From accessd667 at yahoo.com Thu Apr 1 00:38:38 2004 From: accessd667 at yahoo.com (S D) Date: Wed, 31 Mar 2004 22:38:38 -0800 (PST) Subject: [AccessD] Form_KeyPress doesn't fire? Message-ID: <20040401063838.56096.qmail@web61102.mail.yahoo.com> Hi group, i've got some code in the form_keypress event. When does this fire? It doesn't fire while in a control, focus on the form ?!?! What am I missing. Private Sub Form_KeyPress(KeyAscii As Integer) MsgBox "hello world" frmKAM_ProcesKey (KeyAscii) End Sub When a user presses the keys [pagedown] or [pageup] while he is editing a record, the record is automaticly saved. I don't want this to happen. That's the KeyPress is for, isn't it? TIA Sander PS: I also tried putting it in KeyDown. PS2: Guess who added Hello world :-) --------------------------------- Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter today From kathryn at bassett.net Thu Apr 1 00:39:37 2004 From: kathryn at bassett.net (Kathryn Bassett) Date: Wed, 31 Mar 2004 22:39:37 -0800 (PST) Subject: [AccessD] "See ya" in a few days Message-ID: <20040401063938.D6CC7725F@sitemail.everyone.net> An embedded and charset-unspecified text was scrubbed... Name: not available URL: From stuart at lexacorp.com.pg Thu Apr 1 02:51:31 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 01 Apr 2004 18:51:31 +1000 Subject: [AccessD] Form_KeyPress doesn't fire? In-Reply-To: <20040401063838.56096.qmail@web61102.mail.yahoo.com> Message-ID: <406C64B3.27644.97AB35@localhost> On 31 Mar 2004 at 22:38, S D wrote: > Hi group, i've got some code in the form_keypress event. When does this > fire? It doesn't fire while in a control, focus on the form ?!?! What > am I missing. Have you set KeyPreview true? -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From accessd667 at yahoo.com Thu Apr 1 03:09:26 2004 From: accessd667 at yahoo.com (S D) Date: Thu, 1 Apr 2004 01:09:26 -0800 (PST) Subject: [AccessD] Form_KeyPress doesn't fire? SOLVED In-Reply-To: <406C64B3.27644.97AB35@localhost> Message-ID: <20040401090926.55775.qmail@web61103.mail.yahoo.com> Stuart, thnx for the reply. However the problem is solved via a procedure.... I was working on a change and noticed the mentioned problem. However the original programmer instructed the users NOT to use that key. Furthermore I'm not allowed to put any effort in (on/up/at?) it. Thnx again. Regards Sander Stuart McLachlan wrote: On 31 Mar 2004 at 22:38, S D wrote: > Hi group, i've got some code in the form_keypress event. When does this > fire? It doesn't fire while in a control, focus on the form ?!?! What > am I missing. Have you set KeyPreview true? -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter today From accessd667 at yahoo.com Thu Apr 1 03:23:13 2004 From: accessd667 at yahoo.com (S D) Date: Thu, 1 Apr 2004 01:23:13 -0800 (PST) Subject: [AccessD] Add new record + fill fields with last entered data? Message-ID: <20040401092313.14263.qmail@web61102.mail.yahoo.com> Hi group, when a user clicks the 'Add new record' button (s)he wants the data of the current record to be displayed in the new record. So if a user is on record 999 with field username filled with AAA and then clicks on 'Add new record' then a new record (1000) must appear with the field username filled with AAA. I know that this can be done using Bookmark or something but I cannot find it anymore. Tips/hints anyone? TIA Sander --------------------------------- Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter today From paul.hartland at fsmail.net Thu Apr 1 03:34:08 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 1 Apr 2004 11:34:08 +0200 (CEST) Subject: [AccessD] Add new record + fill fields with last entered data? Message-ID: <1032098.1080812048448.JavaMail.www@wwinf3003> Sander, An easy way to do this would be to create a public variable(s) to store the data of the current record then when they click the New Record populate the fields with the data from the public variable(s) Paul Message date : Apr 01 2004, 10:25 AM >From : "S D" To : "accessd" Copy to : Subject : [AccessD] Add new record + fill fields with last entered data? Hi group, when a user clicks the 'Add new record' button (s)he wants the data of the current record to be displayed in the new record. So if a user is on record 999 with field username filled with AAA and then clicks on 'Add new record' then a new record (1000) must appear with the field username filled with AAA. I know that this can be done using Bookmark or something but I cannot find it anymore. Tips/hints anyone? TIA Sander --------------------------------- Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter today -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From gustav at cactus.dk Thu Apr 1 03:37:44 2004 From: gustav at cactus.dk (Gustav Brock) Date: Thu, 1 Apr 2004 11:37:44 +0200 Subject: [AccessD] Add new record + fill fields with last entered data? In-Reply-To: <20040401092313.14263.qmail@web61102.mail.yahoo.com> References: <20040401092313.14263.qmail@web61102.mail.yahoo.com> Message-ID: <2310242047.20040401113744@cactus.dk> Hi Sander Tough day? No coffee? Set the DefaultValue at OnCurrent. As for Stuart's note on the KeyPreview, it's not a user feature, but a property of the form. /gustav > when a user clicks the 'Add new record' button (s)he wants the data of the current record to be displayed in the new record. > So if a user is on record 999 with field username filled with AAA and then clicks on 'Add new record' then a new record (1000) must appear with the field username filled with AAA. From accessd667 at yahoo.com Thu Apr 1 04:23:45 2004 From: accessd667 at yahoo.com (S D) Date: Thu, 1 Apr 2004 02:23:45 -0800 (PST) Subject: [AccessD] Add new record + fill fields with last entered data? SOLVED In-Reply-To: <2310242047.20040401113744@cactus.dk> Message-ID: <20040401102345.83772.qmail@web61110.mail.yahoo.com> Hi Gustav, Coffee? Plenty! Tough day...oi! MS-Development team of 5, 4 people are ill....guess who's not.... ;-) Sander Gustav Brock wrote: Hi Sander Tough day? No coffee? Set the DefaultValue at OnCurrent. As for Stuart's note on the KeyPreview, it's not a user feature, but a property of the form. /gustav > when a user clicks the 'Add new record' button (s)he wants the data of the current record to be displayed in the new record. > So if a user is on record 999 with field username filled with AAA and then clicks on 'Add new record' then a new record (1000) must appear with the field username filled with AAA. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter today From rsmethurst at UK.EY.COM Thu Apr 1 04:32:07 2004 From: rsmethurst at UK.EY.COM (rsmethurst at UK.EY.COM) Date: Thu, 1 Apr 2004 11:32:07 +0100 Subject: [AccessD] Copy Chart Message-ID: HI All, I have a Chart object on a Form. I would like to allow users to copy the object, but not be able to cut it? At the moment I have completely disabled the shortcut menu, but this is flexible. Does anyone have any ideas how to do this? TIS Ryan This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. From rsmethurst at UK.EY.COM Thu Apr 1 05:04:00 2004 From: rsmethurst at UK.EY.COM (rsmethurst at UK.EY.COM) Date: Thu, 1 Apr 2004 12:04:00 +0100 Subject: [AccessD] Copy Chart Message-ID: The Send Button strikes again! Managed to get it sorted..thanks anyway. Ryan This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. From chris at thecube.net Thu Apr 1 05:26:02 2004 From: chris at thecube.net (chris at thecube.net) Date: Thu, 1 Apr 2004 06:26:02 -0500 Subject: [AccessD] Access to SQL Server Message-ID: <7C4579FC1624452FBF36DAF8E7684B70.MAI@freeparking.com> Martin, I have recently tried to convert a stressed (concurrency wise) access97 back end to SQL server, data conversion went smoothly, apart from rectifying memo field corruption in one table. The forms worked fine and ignored the fact that i had swapped the access linked tables for ODBC links to the SQL server. The problem came when i was opening recordsets and it was asking for bizarre parameters, (dbSeeChanges) For purity i love SQL server database power and stored procedures and the extras like getting the database to back itself up nightly, and would not hesitate to convert access databases to SQL or MSDE (is it still called MSDE?) It's just convincing the client that a 1 gig access backend is 'pushing it' Regards Chris ----- Original Message ----- From: Martin Reid To: "Access Developers discussion and problem solving" Sent: Wed, 31 Mar 2004 21:49:03 +0100 Subject: [AccessD] Access to SQL Server If your employer/customer asked you to move all your Access databases onto a central SQL Server what problems other than code rewrite would you bring up? What would stop you doing this or maybe think twice before starting? I am working on a project which looks at moving all of an organisations databases to SQL Server over a period of time. This is not a real project but we are trying to see how developers would react to the possibility. I am really interested in the view point of the actual people who may have to do this. One of the areas I am looking at is performance and issues surrounding redesign. for example at the university we have many small Access dbs which duplicate student data. It would be fairly easy to remove this duplication by moving them to SQL Server and linking to a core set of data making it very easy for us to mange this type of installation. Comments.opinions etc appreciated Martin -- _______________________________________________ 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 Apr 1 05:30:57 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 01 Apr 2004 21:30:57 +1000 Subject: [AccessD] Add new record + fill fields with last entered data? SOLVED In-Reply-To: <20040401102345.83772.qmail@web61110.mail.yahoo.com> References: <2310242047.20040401113744@cactus.dk> Message-ID: <406C8A11.27876.129A13C@localhost> On 1 Apr 2004 at 2:23, S D wrote: > Hi Gustav, > Coffee? Plenty! > Tough day...oi! > > MS-Development team of 5, 4 people are ill....guess who's not.... ;-) > You're lucky. MS Development team of one. Coughing, sneezing, aching muscles, high temperature and deadlines looming on a couple of projects :-( -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From stuart at lexacorp.com.pg Thu Apr 1 05:35:13 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 01 Apr 2004 21:35:13 +1000 Subject: [AccessD] Add new record + fill fields with last entered data? In-Reply-To: <20040401092313.14263.qmail@web61102.mail.yahoo.com> Message-ID: <406C8B11.7322.12D87B6@localhost> On 1 Apr 2004 at 1:23, S D wrote: > Hi group, > > when a user clicks the 'Add new record' button (s)he wants the data of the current record to be displayed in the new record. > So if a user is on record 999 with field username filled with AAA and then clicks on 'Add new record' then a new record (1000) must appear with the field username filled with AAA. > > I know that this can be done using Bookmark or something but I cannot find it anymore. Tips/hints anyone? > One of several ways: Create a system variable Username() (which you can populate on startup or when the first record is saved) and set the default of the field to "=Username()" In fact if I want to record usernames on data entry, I generally use this technique and hide the username field so that they can't alter it. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From accessd667 at yahoo.com Thu Apr 1 05:58:49 2004 From: accessd667 at yahoo.com (S D) Date: Thu, 1 Apr 2004 03:58:49 -0800 (PST) Subject: [AccessD] Add new record + fill fields with last entered data? SOLVED In-Reply-To: <406C8A11.27876.129A13C@localhost> Message-ID: <20040401115849.7339.qmail@web61101.mail.yahoo.com> We're doing mostly 'maintenace' (don't know the English word for this) for over 100 apps...not counting Excel -'tjoep' :-) Stuart McLachlan wrote:On 1 Apr 2004 at 2:23, S D wrote: > Hi Gustav, > Coffee? Plenty! > Tough day...oi! > > MS-Development team of 5, 4 people are ill....guess who's not.... ;-) > You're lucky. MS Development team of one. Coughing, sneezing, aching muscles, high temperature and deadlines looming on a couple of projects :-( -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter today From jarus at amerinet-gpo.com Thu Apr 1 06:24:53 2004 From: jarus at amerinet-gpo.com (Terri Jarus) Date: Thu, 01 Apr 2004 06:24:53 -0600 Subject: [AccessD] Vertical lines in Reports Message-ID: There's some good code for doing this at the following website: http://www.lebans.com/PrintLines.htm Hope this helps. Terri Jarus Director, Contract Support Services jarus at amerinet-gpo.com 314-542-1902 >>> deanellis at iprimus.com.au 03/31/04 03:42PM >>> Hi All, I have an interesting dilema with regards to my reports. I want to place a verticl line down each side of my report to simulate the data in some large frames. I can set the line height to match the distance between two horizontal lines. But here's the catch. Between the two horizonatl lines are a number of feilds that are set to "Can Grow". When the text is placed in here, and the feild grows too much, there is a gap between the bottom horizontal line and the vertical lines. Any suggestions? Cheers Dean --------------------------------------------------------------------------- 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 tinanfields at torchlake.com Thu Apr 1 06:53:00 2004 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Thu, 01 Apr 2004 07:53:00 -0500 Subject: [AccessD] Add new record + fill fields with last entered data? References: <20040401092313.14263.qmail@web61102.mail.yahoo.com> <2310242047.20040401113744@cactus.dk> Message-ID: <406C10AC.7000509@torchlake.com> Gustav, How does one set the DefautlValue at OnCurrent? I don't know how to do that. Thanks, Tina Gustav Brock wrote: >Hi Sander > >Tough day? No coffee? > >Set the DefaultValue at OnCurrent. > >As for Stuart's note on the KeyPreview, it's not a user feature, but a >property of the form. > >/gustav > > > >>when a user clicks the 'Add new record' button (s)he wants the data of the current record to be displayed in the new record. >>So if a user is on record 999 with field username filled with AAA and then clicks on 'Add new record' then a new record (1000) must appear with the field username filled with AAA. >> >> > > > From thevigil at kabelfoon.nl Thu Apr 1 07:16:23 2004 From: thevigil at kabelfoon.nl (Bert-Jan Brinkhuis) Date: Thu, 1 Apr 2004 15:16:23 +0200 Subject: [AccessD] Vertical lines in Reports References: Message-ID: <005401c417eb$8e429c60$3f412d3e@jester> in the detail_format event you can use me.line to draw a line. For the specific format see help (i do not have access installed on the PC i email on) HTH Bert-Jan ----- Original Message ----- From: "Terri Jarus" To: Sent: Thursday, April 01, 2004 2:24 PM Subject: Re: [AccessD] Vertical lines in Reports There's some good code for doing this at the following website: http://www.lebans.com/PrintLines.htm Hope this helps. Terri Jarus Director, Contract Support Services jarus at amerinet-gpo.com 314-542-1902 >>> deanellis at iprimus.com.au 03/31/04 03:42PM >>> Hi All, I have an interesting dilema with regards to my reports. I want to place a verticl line down each side of my report to simulate the data in some large frames. I can set the line height to match the distance between two horizontal lines. But here's the catch. Between the two horizonatl lines are a number of feilds that are set to "Can Grow". When the text is placed in here, and the feild grows too much, there is a gap between the bottom horizontal line and the vertical lines. Any suggestions? Cheers Dean --------------------------------------------------------------------------- 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 From gustav at cactus.dk Thu Apr 1 07:29:57 2004 From: gustav at cactus.dk (Gustav Brock) Date: Thu, 1 Apr 2004 15:29:57 +0200 Subject: [AccessD] Add new record + fill fields with last entered data? In-Reply-To: <406C10AC.7000509@torchlake.com> References: <20040401092313.14263.qmail@web61102.mail.yahoo.com> <2310242047.20040401113744@cactus.dk> <406C10AC.7000509@torchlake.com> Message-ID: <15824175682.20040401152957@cactus.dk> Hi Tina > How does one set the DefautlValue at OnCurrent? I don't know how to do > that. That's not difficult - something like this: Dim txt As TextBox Set txt = Me!txtYourTextBox txt.DefaultValue = txt.Value Set txt = Nothing However, DefaultValue should be a string which means that if your textbox contains decimals or a date/time value you must be careful and convert to a string in US format: txt.DefaultValue = LTrim(Str(txt.Value)) or txt.DefaultValue = _ Format(txt.Value, "\#mm\/dd\/yyyy hh\:nn\:ss AM/PM\#") /gustav >>Tough day? No coffee? >> >>Set the DefaultValue at OnCurrent. >> >>As for Stuart's note on the KeyPreview, it's not a user feature, but a >>property of the form. >> >>/gustav >>>when a user clicks the 'Add new record' button (s)he wants the data of the current record to be displayed in the new record. >>>So if a user is on record 999 with field username filled with AAA and then clicks on 'Add new record' then a new record (1000) must appear with the field username filled with AAA. From accessd667 at yahoo.com Thu Apr 1 07:53:57 2004 From: accessd667 at yahoo.com (S D) Date: Thu, 1 Apr 2004 05:53:57 -0800 (PST) Subject: [AccessD] Create table script...so close... Message-ID: <20040401135357.58096.qmail@web61103.mail.yahoo.com> Hi group, I need to create tables using the layout specified in a certain table. I found the SUB below on msdn.microsoft.com. Changed it a bit and voila the tables are created! HOWEVER, when i specify TEXT the darn thing creates MEMO fields?!? Qua Pasa? Does anybody know how to change this so that I get proper text fields? BTW: arrFileLayout(y, 6) contains the field type (=TEXT) BTW2: I also used the actual word TEXT. TIA, Sander Sub CreateTableX1(ByRef arrFileLayout()) Dim dbs As ADODB.Connection ' Database Dim y As Integer Dim strCreateTable As String Dim strCreate As String Dim strFields As String Set dbs = CurrentProject.Connection() ' Create a table with two text fields. strCreate = "CREATE TABLE ThisTable " For y = 0 To UBound(arrFileLayout, 1) 'Debug.Print (arrFileLayout(y, 0)) strFields = strFields & arrFileLayout(y, 0) & arrFileLayout(y, 6) & "," Next y 'remove last , strFields = Mid(strFields, 1, Len(strFields) - 1) Debug.Print strFields 'Build sql strCreateTable = strCreate & "(" & strFields & ")" Debug.Print strCreateTable 'execute the blody thing dbs.Execute strCreateTable dbs.Close End Sub --------------------------------- Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter today From paul.hartland at fsmail.net Thu Apr 1 08:14:51 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 1 Apr 2004 16:14:51 +0200 (CEST) Subject: [AccessD] Create table script...so close... Message-ID: <4435274.1080828891183.JavaMail.www@wwinf3003> Just a thought have you tried dbText instead: arrFileLayout(y, 6) contains the field type (=dbText) Paul Message date : Apr 01 2004, 02:57 PM >From : "S D" To : "accessd" Copy to : Subject : [AccessD] Create table script...so close... Hi group, I need to create tables using the layout specified in a certain table. I found the SUB below on msdn.microsoft.com. Changed it a bit and voila the tables are created! HOWEVER, when i specify TEXT the darn thing creates MEMO fields?!? Qua Pasa? Does anybody know how to change this so that I get proper text fields? BTW: arrFileLayout(y, 6) contains the field type (=TEXT) BTW2: I also used the actual word TEXT. TIA, Sander Sub CreateTableX1(ByRef arrFileLayout()) Dim dbs As ADODB.Connection ' Database Dim y As Integer Dim strCreateTable As String Dim strCreate As String Dim strFields As String Set dbs = CurrentProject.Connection() ' Create a table with two text fields. strCreate = "CREATE TABLE ThisTable " For y = 0 To UBound(arrFileLayout, 1) 'Debug.Print (arrFileLayout(y, 0)) strFields = strFields & arrFileLayout(y, 0) & arrFileLayout(y, 6) & "," Next y 'remove last , strFields = Mid(strFields, 1, Len(strFields) - 1) Debug.Print strFields 'Build sql strCreateTable = strCreate & "(" & strFields & ")" Debug.Print strCreateTable 'execute the blody thing dbs.Execute strCreateTable dbs.Close End Sub --------------------------------- Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter today -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From tinanfields at torchlake.com Thu Apr 1 08:21:24 2004 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Thu, 01 Apr 2004 09:21:24 -0500 Subject: [AccessD] Add new record + fill fields with last entered data? References: <20040401092313.14263.qmail@web61102.mail.yahoo.com> <2310242047.20040401113744@cactus.dk> <406C10AC.7000509@torchlake.com> <15824175682.20040401152957@cactus.dk> Message-ID: <406C2564.1000708@torchlake.com> Hi Gustav, I begin to understand. At the OnCurrent Event for the Form, the Event Procedure will set the DefaultValue of each TextBox to the values determined to already be stored in the record just saved. Is that correct? Does this require explicitly listing each TextBox of the form? Thanks, Tinz Gustav Brock wrote: >Hi Tina > > > >>How does one set the DefautlValue at OnCurrent? I don't know how to do >>that. >> >> > >That's not difficult - something like this: > > Dim txt As TextBox > Set txt = Me!txtYourTextBox > > txt.DefaultValue = txt.Value > > Set txt = Nothing > >However, DefaultValue should be a string which means that if your >textbox contains decimals or a date/time value you must be careful and >convert to a string in US format: > > txt.DefaultValue = LTrim(Str(txt.Value)) > >or > > txt.DefaultValue = _ > Format(txt.Value, "\#mm\/dd\/yyyy hh\:nn\:ss AM/PM\#") > >/gustav > > > > >>>Tough day? No coffee? >>> >>>Set the DefaultValue at OnCurrent. >>> >>>As for Stuart's note on the KeyPreview, it's not a user feature, but a >>>property of the form. >>> >>>/gustav >>> >>> > > > >>>>when a user clicks the 'Add new record' button (s)he wants the data of the current record to be displayed in the new record. >>>>So if a user is on record 999 with field username filled with AAA and then clicks on 'Add new record' then a new record (1000) must appear with the field username filled with AAA. >>>> >>>> > > > From sgeller at cce.umn.edu Thu Apr 1 08:30:45 2004 From: sgeller at cce.umn.edu (Susan Geller) Date: Thu, 1 Apr 2004 08:30:45 -0600 Subject: [AccessD] Default Printer for Access Report Message-ID: Thanks, Doris, that was the problem. I'm wondering if, as a fail safe measure, can I write code that would make sure that when that Printer Dialogue box opens it is always set to go to the default printer? I'd want users to be able to pick a different option if they desired, but just as the default, that the print box would be set to go to the default printer. Where would I put the code? --Susan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Tuesday, March 30, 2004 12:03 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Default Printer for Access Report Open that report in design view and then click on "File" and choose "Page Setup". It is possible it get set accidentally when the report was designed. 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 Geller Sent: Tuesday, March 30, 2004 12:28 PM To: accessd at databaseadvisors.com Subject: [AccessD] Default Printer for Access Report I have a reporting tool built in Access (2002) that is essentially a wizard where users pick a report, set criteria and then see their output. There are nearly 100 reports in the app. When a user choses to print a report, the default printer that comes up in the print dialog box is the default printer set on their machine, EXCEPT for one of the reports. On that one report only, the default printer that comes up in the dialogue box is a different printer. All users get this different printer. I did not write any code or make any settings to indicate printer choice. What could be happening? How can I get this one report to print to the user's default printer? Note: The only way that users can print a report is with a toolbar PRINT button that I brings up the dialogue box. There is no file menu from the reports and there is no button with a printer icon that sends reports straight to the printer. --Susan Susan B. Geller Office of Information Systems College of Continuing Education University of Minnesota 306 Wesbrook Hall 77 Pleasant Street SE Minneapolis, MN 55455 Phone: 612-626-4785 Fax: 612-625-2568 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Apr 1 08:36:29 2004 From: gustav at cactus.dk (Gustav Brock) Date: Thu, 1 Apr 2004 16:36:29 +0200 Subject: [AccessD] Add new record + fill fields with last entered data? In-Reply-To: <406C2564.1000708@torchlake.com> References: <20040401092313.14263.qmail@web61102.mail.yahoo.com> <2310242047.20040401113744@cactus.dk> <406C10AC.7000509@torchlake.com> <15824175682.20040401152957@cactus.dk> <406C2564.1000708@torchlake.com> Message-ID: <18028167422.20040401163629@cactus.dk> Hi Tina > I begin to understand. At the OnCurrent Event for the Form, the Event > Procedure will set the DefaultValue of each TextBox to the values > determined to already be stored in the record just saved. Is that > correct? Yes and no. No saving needs to take place: At the OnCurrent Event for the Form, the Event Procedure will set the DefaultValue of each TextBox (or ComboBox etc.) to the values for the current record of those controls. > Does this require explicitly listing each TextBox of the form? Yes. /gustav >>>How does one set the DefautlValue at OnCurrent? I don't know how to do >>>that. >> >>That's not difficult - something like this: >> >> Dim txt As TextBox >> Set txt = Me!txtYourTextBox >> >> txt.DefaultValue = txt.Value >> >> Set txt = Nothing >> >>However, DefaultValue should be a string which means that if your >>textbox contains decimals or a date/time value you must be careful and >>convert to a string in US format: >> >> txt.DefaultValue = LTrim(Str(txt.Value)) >> >>or >> >> txt.DefaultValue = _ >> Format(txt.Value, "\#mm\/dd\/yyyy hh\:nn\:ss AM/PM\#") >> >>/gustav >> >>>>Tough day? No coffee? >>>> >>>>Set the DefaultValue at OnCurrent. >>>> >>>>As for Stuart's note on the KeyPreview, it's not a user feature, but a >>>>property of the form. >>>> >>>>/gustav >>>> >>>>>when a user clicks the 'Add new record' button (s)he wants the data of the current record to be displayed in the new record. >>>>>So if a user is on record 999 with field username filled with AAA and then clicks on 'Add new record' then a new record (1000) must appear with the field username filled with AAA. From mikedorism at adelphia.net Thu Apr 1 08:56:32 2004 From: mikedorism at adelphia.net (Mike & Doris Manning) Date: Thu, 1 Apr 2004 09:56:32 -0500 Subject: [AccessD] Default Printer for Access Report In-Reply-To: Message-ID: <000001c417f9$85866710$a1194244@hargrove.internal> By default, the Printer Dialogue box does go to the default printer unless the report has one specifically specified. As far as I know, you have no control over the Printer Dialogue box from within Access. 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 Geller Sent: Thursday, April 01, 2004 9:31 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Default Printer for Access Report Thanks, Doris, that was the problem. I'm wondering if, as a fail safe measure, can I write code that would make sure that when that Printer Dialogue box opens it is always set to go to the default printer? I'd want users to be able to pick a different option if they desired, but just as the default, that the print box would be set to go to the default printer. Where would I put the code? --Susan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Tuesday, March 30, 2004 12:03 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Default Printer for Access Report Open that report in design view and then click on "File" and choose "Page Setup". It is possible it get set accidentally when the report was designed. 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 Geller Sent: Tuesday, March 30, 2004 12:28 PM To: accessd at databaseadvisors.com Subject: [AccessD] Default Printer for Access Report I have a reporting tool built in Access (2002) that is essentially a wizard where users pick a report, set criteria and then see their output. There are nearly 100 reports in the app. When a user choses to print a report, the default printer that comes up in the print dialog box is the default printer set on their machine, EXCEPT for one of the reports. On that one report only, the default printer that comes up in the dialogue box is a different printer. All users get this different printer. I did not write any code or make any settings to indicate printer choice. What could be happening? How can I get this one report to print to the user's default printer? Note: The only way that users can print a report is with a toolbar PRINT button that I brings up the dialogue box. There is no file menu from the reports and there is no button with a printer icon that sends reports straight to the printer. --Susan Susan B. Geller Office of Information Systems College of Continuing Education University of Minnesota 306 Wesbrook Hall 77 Pleasant Street SE Minneapolis, MN 55455 Phone: 612-626-4785 Fax: 612-625-2568 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Apr 1 09:06:22 2004 From: gustav at cactus.dk (Gustav Brock) Date: Thu, 1 Apr 2004 17:06:22 +0200 Subject: [AccessD] Add new record + fill fields with last entered data? In-Reply-To: <18028167422.20040401163629@cactus.dk> References: <20040401092313.14263.qmail@web61102.mail.yahoo.com> <2310242047.20040401113744@cactus.dk> <406C10AC.7000509@torchlake.com> <15824175682.20040401152957@cactus.dk> <406C2564.1000708@torchlake.com> <18028167422.20040401163629@cactus.dk> Message-ID: <3229960731.20040401170622@cactus.dk> Hi Tina >> I begin to understand. At the OnCurrent Event for the Form, the Event >> Procedure will set the DefaultValue of each TextBox to the values >> determined to already be stored in the record just saved. Is that >> correct? > Yes and no. No saving needs to take place: > At the OnCurrent Event for the Form, the Event Procedure will set the > DefaultValue of each TextBox (or ComboBox etc.) to the values for the > current record of those controls. Well, of course, if you wish to use the recently saved values as default values (a very common situation) every time a new record has been added; then you would use the AfterUpdate event of the form. /gustav >>>>How does one set the DefautlValue at OnCurrent? I don't know how to do >>>>that. >>> >>>That's not difficult - something like this: >>> >>> Dim txt As TextBox >>> Set txt = Me!txtYourTextBox >>> >>> txt.DefaultValue = txt.Value >>> >>> Set txt = Nothing >>> >>>However, DefaultValue should be a string which means that if your >>>textbox contains decimals or a date/time value you must be careful and >>>convert to a string in US format: >>> >>> txt.DefaultValue = LTrim(Str(txt.Value)) >>> >>>or >>> >>> txt.DefaultValue = _ >>> Format(txt.Value, "\#mm\/dd\/yyyy hh\:nn\:ss AM/PM\#") >>> >>>/gustav >>> >>>>>Tough day? No coffee? >>>>> >>>>>Set the DefaultValue at OnCurrent. >>>>> >>>>>As for Stuart's note on the KeyPreview, it's not a user feature, but a >>>>>property of the form. >>>>> >>>>>/gustav >>>>> >>>>>>when a user clicks the 'Add new record' button (s)he wants the data of the current record to be displayed in the new record. >>>>>>So if a user is on record 999 with field username filled with AAA and then clicks on 'Add new record' then a new record (1000) must appear with the field username filled with AAA. From artful at rogers.com Thu Apr 1 12:17:57 2004 From: artful at rogers.com (Arthur Fuller) Date: Thu, 1 Apr 2004 10:17:57 -0800 Subject: [AccessD] Amazing Stories In-Reply-To: <20040401135357.58096.qmail@web61103.mail.yahoo.com> Message-ID: <03f501c41815$a8b28c70$6501a8c0@rock> Check out http://www.museumofhoaxes.com/aprilfool2.html for the 100 greatest April Fool hoaxes of all time. The BBC one about Swiss spaghetti farmers is priceless, and you can even watch the black-and-white mockumentary the beeb created. Shades of Monty Python. Also check out #33, CBC's Michael Enright's alleged interview with Jimmy Carter in which Enright calls him a washed up peanut farmer. Arthur From Christian.Brock at hoffman.army.mil Thu Apr 1 09:22:22 2004 From: Christian.Brock at hoffman.army.mil (Brock, Christian T, HRC-Alexandria) Date: Thu, 1 Apr 2004 10:22:22 -0500 Subject: [AccessD] Add new record + fill fields with last entered data ? Message-ID: <65EB528406CCD211BE8F00902717D23D0795CA41@perscomex31.hoffman.army.mil> Why go to the trouble? From the statement of intent, What the user really wants is a duplicate current record button, instead of a new record button. The Access XP command button wizard will allow you to create a button that will duplicate the current record. It creates the following lines of code DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70 DoCmd.DoMenuItem acFormBar, acEditMenu, 2, , acMenuVer70 DoCmd.DoMenuItem acFormBar, acEditMenu, 5, , acMenuVer70 'Paste Append Obviously MS did not update the wizard to use readable code. The following will work as well. DoCmd.RunCommand acCmdSelectRecord DoCmd.RunCommand acCmdCopy DoCmd.RunCommand acCmdPasteAppend Christian Brock -----Original Message----- From: Gustav Brock [mailto:gustav at cactus.dk] Sent: Thursday, 01 April 2004 09:36 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Add new record + fill fields with last entered data? Hi Tina > I begin to understand. At the OnCurrent Event for the Form, the Event > Procedure will set the DefaultValue of each TextBox to the values > determined to already be stored in the record just saved. Is that > correct? Yes and no. No saving needs to take place: At the OnCurrent Event for the Form, the Event Procedure will set the DefaultValue of each TextBox (or ComboBox etc.) to the values for the current record of those controls. > Does this require explicitly listing each TextBox of the form? Yes. /gustav >>>How does one set the DefautlValue at OnCurrent? I don't know how to do >>>that. >> >>That's not difficult - something like this: >> >> Dim txt As TextBox >> Set txt = Me!txtYourTextBox >> >> txt.DefaultValue = txt.Value >> >> Set txt = Nothing >> >>However, DefaultValue should be a string which means that if your >>textbox contains decimals or a date/time value you must be careful and >>convert to a string in US format: >> >> txt.DefaultValue = LTrim(Str(txt.Value)) >> >>or >> >> txt.DefaultValue = _ >> Format(txt.Value, "\#mm\/dd\/yyyy hh\:nn\:ss AM/PM\#") >> >>/gustav >> >>>>Tough day? No coffee? >>>> >>>>Set the DefaultValue at OnCurrent. >>>> >>>>As for Stuart's note on the KeyPreview, it's not a user feature, but a >>>>property of the form. >>>> >>>>/gustav >>>> >>>>>when a user clicks the 'Add new record' button (s)he wants the data of the current record to be displayed in the new record. >>>>>So if a user is on record 999 with field username filled with AAA and then clicks on 'Add new record' then a new record (1000) must appear with the field username filled with AAA. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pjones at btl.net Thu Apr 1 09:38:43 2004 From: pjones at btl.net (Paul M. Jones) Date: Thu, 01 Apr 2004 09:38:43 -0600 Subject: [AccessD] Compacting A2K In-Reply-To: References: Message-ID: <6.0.0.22.2.20040401093356.02ead9e8@btlmail.btl.net> I've seen this problem on Windows Terminal server systems when the option to 'compact on exit' is set on the MS Access database. The compact works fine on stand alone systems but fails on the Terminal Server machine. This is particularly the case when other users are accessing the MS Access file during that time. as well. I have also found that even if the compact works, the permissions on the file is changed so that other users cannot access it. I suspect that Citrix has similar issues since Windows TS is supposed to be a subset of Citrix. Paul M. Jones Spire Services Ltd. > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby > >Sent: Tuesday, March 30, 2004 9:15 PM > >To: Access Developers discussion and problem solving > >Subject: RE: [AccessD] Compacting A2K > > > > > >Office Service packs applied? Jet SPs applied? Windows SPs applied? > > > >John W. Colby > >www.ColbyConsulting.com > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gregg > >Sent: Tuesday, March 30, 2004 10:16 PM > >To: Access Developers discussion and problem solving > >Subject: [AccessD] Compacting A2K > > > > > >I'm really stumped on this one. > > > >I have a 2K database that won't compact. It says the temporary database is > >in use. Every once in while it will work... maybe 1 out of 20 tries. This > >app is running under NT4 and Citrix. > > > >I opened a new database and imported just the tables and got the same > >error. > >I have a mixture of SQL and Access linked tables as well as FE tables. I > >start removing tables until it begins working but when I add the last > >tables > >I deleted back in, it still works. It's not consistent. > > > >When it begins to work I start getting another occasional error. At the end > >of the compact process I get an error that says "Cannot find field > >'Description'". I do have tables with a field name of description but when > >I remove them I still get the error. The Help says it is error 3799. I > >can't find anything on it anywhere. > > > >Also, I can move the app to another machine and it will compact fine at > >least until it looks for the SQL links. We rebuilt Citrix and NT OS which > >did not help. > > > >Gregg Steinbrenner > > > > > >-- > >_______________________________________________ > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > > > > > > >-- > >_______________________________________________ > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > > > > >-- > >_______________________________________________ > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > >_________________________________________________________________ >Is your PC infected? Get a FREE online computer virus scan from McAfee? >Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From wdhindman at bellsouth.net Thu Apr 1 09:48:34 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Thu, 1 Apr 2004 10:48:34 -0500 Subject: [AccessD] Add new record + fill fields with last entered data? References: <65EB528406CCD211BE8F00902717D23D0795CA41@perscomex31.hoffman.army.mil> Message-ID: <001501c41800$caaf4fd0$6101a8c0@dejpolsys> ...that "wizard" simply bites ...I'd create a "duplicate" button that saves the pk of the current record to a variable or tag and then a query using the saved pk to append a "new" record that is a duplicate of the saved one except for the pk ...that would get you a dupe of every form field including any subform. William Hindman ipsedixitism: something is true because I myself have said it is true ...the philosophy of Noam Chomsky :) ----- Original Message ----- From: "Brock, Christian T, HRC-Alexandria" To: "'Access Developers discussion and problem solving'" Sent: Thursday, April 01, 2004 10:22 AM Subject: RE: [AccessD] Add new record + fill fields with last entered data? > Why go to the trouble? From the statement of intent, What the user really > wants is a duplicate current record button, instead of a new record button. > The Access XP command button wizard will allow you to create a button that > will duplicate the current record. > > It creates the following lines of code > DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70 > DoCmd.DoMenuItem acFormBar, acEditMenu, 2, , acMenuVer70 > DoCmd.DoMenuItem acFormBar, acEditMenu, 5, , acMenuVer70 'Paste Append > > Obviously MS did not update the wizard to use readable code. The following > will work as well. > DoCmd.RunCommand acCmdSelectRecord > DoCmd.RunCommand acCmdCopy > DoCmd.RunCommand acCmdPasteAppend > > > Christian Brock > > > > > -----Original Message----- > From: Gustav Brock [mailto:gustav at cactus.dk] > Sent: Thursday, 01 April 2004 09:36 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Add new record + fill fields with last entered data? > > > Hi Tina > > > I begin to understand. At the OnCurrent Event for the Form, the Event > > Procedure will set the DefaultValue of each TextBox to the values > > determined to already be stored in the record just saved. Is that > > correct? > > Yes and no. No saving needs to take place: > > At the OnCurrent Event for the Form, the Event Procedure will set the > DefaultValue of each TextBox (or ComboBox etc.) to the values for the > current record of those controls. > > > Does this require explicitly listing each TextBox of the form? > > Yes. > > /gustav > > > >>>How does one set the DefautlValue at OnCurrent? I don't know how to do > >>>that. > >> > >>That's not difficult - something like this: > >> > >> Dim txt As TextBox > >> Set txt = Me!txtYourTextBox > >> > >> txt.DefaultValue = txt.Value > >> > >> Set txt = Nothing > >> > >>However, DefaultValue should be a string which means that if your > >>textbox contains decimals or a date/time value you must be careful and > >>convert to a string in US format: > >> > >> txt.DefaultValue = LTrim(Str(txt.Value)) > >> > >>or > >> > >> txt.DefaultValue = _ > >> Format(txt.Value, "\#mm\/dd\/yyyy hh\:nn\:ss AM/PM\#") > >> > >>/gustav > >> > >>>>Tough day? No coffee? > >>>> > >>>>Set the DefaultValue at OnCurrent. > >>>> > >>>>As for Stuart's note on the KeyPreview, it's not a user feature, but a > >>>>property of the form. > >>>> > >>>>/gustav > >>>> > >>>>>when a user clicks the 'Add new record' button (s)he wants the data of > the current record to be displayed in the new record. > >>>>>So if a user is on record 999 with field username filled with AAA and > then clicks on 'Add new record' then a new record (1000) must appear with > the field username filled with AAA. > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Apr 1 09:48:39 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Thu, 01 Apr 2004 07:48:39 -0800 Subject: [AccessD] "See ya" in a few days In-Reply-To: <20040401063938.D6CC7725F@sitemail.everyone.net> Message-ID: Hi Kathryn: Hope you have not lost anything important, that you can not recover from somewhere. Good luck Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Kathryn Bassett Sent: Wednesday, March 31, 2004 10:40 PM To: Access Developers discussion and problem solving Subject: [AccessD] "See ya" in a few days I'm doing my mail via web today (using husband's computer) and probably most of tomorrow. My hard drive crashed as I was booting up this morning. Not recoverable. I have been looking at new computers but wasn't planning to buy it til tax refund got here in another couple weeks. But.... Got new one tonight, but it will take a day or two to get everything loaded. Kathryn Bassett -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Thu Apr 1 12:54:29 2004 From: artful at rogers.com (Arthur Fuller) Date: Thu, 1 Apr 2004 10:54:29 -0800 Subject: [AccessD] Add new record + fill fields with last entered data?SOLVED In-Reply-To: <20040401115849.7339.qmail@web61101.mail.yahoo.com> Message-ID: <03f701c4181a$c430b800$6501a8c0@rock> Here is a function that I use for this purpose. It's specific to each particular field on a form, because in my experience I seldom wanted ALL the fields to be duplicated; but rather just many of them. Note that I typically define a compiler directive called TALKON. Public Function CarryForward() Const cQuote = """" 'Thats two quotes Dim ctlCurrent As Control Set ctlCurrent = Screen.ActiveControl ctlCurrent.DefaultValue = cQuote & ctlCurrent.Value & cQuote #If TALKON = True Then Debug.Print "Current default value: " & ctlCurrent.DefaultValue Debug.Print "New default value: " & ctlCurrent.DefaultValue #End If Set ctlCurrent = Nothing End Function Arthur -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of S D Sent: Thursday, April 01, 2004 3:59 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Add new record + fill fields with last entered data?SOLVED We're doing mostly 'maintenace' (don't know the English word for this) for over 100 apps...not counting Excel -'tjoep' :-) Stuart McLachlan wrote:On 1 Apr 2004 at 2:23, S D wrote: > Hi Gustav, > Coffee? Plenty! > Tough day...oi! > > MS-Development team of 5, 4 people are ill....guess who's not.... ;-) > You're lucky. MS Development team of one. Coughing, sneezing, aching muscles, high temperature and deadlines looming on a couple of projects :-( From Christian.Brock at hoffman.army.mil Thu Apr 1 10:24:31 2004 From: Christian.Brock at hoffman.army.mil (Brock, Christian T, HRC-Alexandria) Date: Thu, 1 Apr 2004 11:24:31 -0500 Subject: [AccessD] Add new record + fill fields with last entered data ? Message-ID: <65EB528406CCD211BE8F00902717D23D0795CA9D@perscomex31.hoffman.army.mil> The copy record and paste append commands will get every form field and subform. Do not see how what you say to do provides any benefit over using the three DoCmd.RunCommand statements. Christian Brock -----Original Message----- From: William Hindman [mailto:wdhindman at bellsouth.net] Sent: Thursday, 01 April 2004 10:49 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Add new record + fill fields with last entered data? ...that "wizard" simply bites ...I'd create a "duplicate" button that saves the pk of the current record to a variable or tag and then a query using the saved pk to append a "new" record that is a duplicate of the saved one except for the pk ...that would get you a dupe of every form field including any subform. William Hindman ipsedixitism: something is true because I myself have said it is true ...the philosophy of Noam Chomsky :) ----- Original Message ----- From: "Brock, Christian T, HRC-Alexandria" To: "'Access Developers discussion and problem solving'" Sent: Thursday, April 01, 2004 10:22 AM Subject: RE: [AccessD] Add new record + fill fields with last entered data? > Why go to the trouble? From the statement of intent, What the user really > wants is a duplicate current record button, instead of a new record button. > The Access XP command button wizard will allow you to create a button that > will duplicate the current record. > > It creates the following lines of code > DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70 > DoCmd.DoMenuItem acFormBar, acEditMenu, 2, , acMenuVer70 > DoCmd.DoMenuItem acFormBar, acEditMenu, 5, , acMenuVer70 'Paste Append > > Obviously MS did not update the wizard to use readable code. The following > will work as well. > DoCmd.RunCommand acCmdSelectRecord > DoCmd.RunCommand acCmdCopy > DoCmd.RunCommand acCmdPasteAppend > > > Christian Brock > > > > > -----Original Message----- > From: Gustav Brock [mailto:gustav at cactus.dk] > Sent: Thursday, 01 April 2004 09:36 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Add new record + fill fields with last entered data? > > > Hi Tina > > > I begin to understand. At the OnCurrent Event for the Form, the Event > > Procedure will set the DefaultValue of each TextBox to the values > > determined to already be stored in the record just saved. Is that > > correct? > > Yes and no. No saving needs to take place: > > At the OnCurrent Event for the Form, the Event Procedure will set the > DefaultValue of each TextBox (or ComboBox etc.) to the values for the > current record of those controls. > > > Does this require explicitly listing each TextBox of the form? > > Yes. > > /gustav > > > >>>How does one set the DefautlValue at OnCurrent? I don't know how to do > >>>that. > >> > >>That's not difficult - something like this: > >> > >> Dim txt As TextBox > >> Set txt = Me!txtYourTextBox > >> > >> txt.DefaultValue = txt.Value > >> > >> Set txt = Nothing > >> > >>However, DefaultValue should be a string which means that if your > >>textbox contains decimals or a date/time value you must be careful and > >>convert to a string in US format: > >> > >> txt.DefaultValue = LTrim(Str(txt.Value)) > >> > >>or > >> > >> txt.DefaultValue = _ > >> Format(txt.Value, "\#mm\/dd\/yyyy hh\:nn\:ss AM/PM\#") > >> > >>/gustav > >> > >>>>Tough day? No coffee? > >>>> > >>>>Set the DefaultValue at OnCurrent. > >>>> > >>>>As for Stuart's note on the KeyPreview, it's not a user feature, but a > >>>>property of the form. > >>>> > >>>>/gustav > >>>> > >>>>>when a user clicks the 'Add new record' button (s)he wants the data of > the current record to be displayed in the new record. > >>>>>So if a user is on record 999 with field username filled with AAA and > then clicks on 'Add new record' then a new record (1000) must appear with > the field username filled with AAA. > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Apr 1 10:28:54 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 1 Apr 2004 08:28:54 -0800 Subject: [AccessD] Create table script...so close... Message-ID: When you're using ADO, you have to use ADO datatype enums. Try adVarChar. TEXT is the data type for memo fields in SQL Server. Charlotte Foust -----Original Message----- From: S D [mailto:accessd667 at yahoo.com] Sent: Thursday, April 01, 2004 5:54 AM To: accessd Subject: [AccessD] Create table script...so close... Hi group, I need to create tables using the layout specified in a certain table. I found the SUB below on msdn.microsoft.com. Changed it a bit and voila the tables are created! HOWEVER, when i specify TEXT the darn thing creates MEMO fields?!? Qua Pasa? Does anybody know how to change this so that I get proper text fields? BTW: arrFileLayout(y, 6) contains the field type (=TEXT) BTW2: I also used the actual word TEXT. TIA, Sander Sub CreateTableX1(ByRef arrFileLayout()) Dim dbs As ADODB.Connection ' Database Dim y As Integer Dim strCreateTable As String Dim strCreate As String Dim strFields As String Set dbs = CurrentProject.Connection() ' Create a table with two text fields. strCreate = "CREATE TABLE ThisTable " For y = 0 To UBound(arrFileLayout, 1) 'Debug.Print (arrFileLayout(y, 0)) strFields = strFields & arrFileLayout(y, 0) & arrFileLayout(y, 6) & "," Next y 'remove last , strFields = Mid(strFields, 1, Len(strFields) - 1) Debug.Print strFields 'Build sql strCreateTable = strCreate & "(" & strFields & ")" Debug.Print strCreateTable 'execute the blody thing dbs.Execute strCreateTable dbs.Close End Sub --------------------------------- Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter today -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Thu Apr 1 10:32:38 2004 From: gustav at cactus.dk (Gustav Brock) Date: Thu, 1 Apr 2004 18:32:38 +0200 Subject: [AccessD] Add new record + fill fields with last entered data?SOLVED In-Reply-To: <03f701c4181a$c430b800$6501a8c0@rock> References: <03f701c4181a$c430b800$6501a8c0@rock> Message-ID: <12435136453.20040401183238@cactus.dk> Hi Arthur > Here is a function that I use for this purpose. It's specific to each > particular field on a form, because in my experience I seldom wanted ALL > the fields to be duplicated; but rather just many of them. Note that I > typically define a compiler directive called TALKON. > Public Function CarryForward() > Const cQuote = """" 'Thats two quotes > Dim ctlCurrent As Control > Set ctlCurrent = Screen.ActiveControl > ctlCurrent.DefaultValue = cQuote & ctlCurrent.Value & cQuote In my experience this may fail in a non-US localized environment for decimals and date/time values as .Value will be converted to a localized string. A typo here? > #If TALKON = True Then > Debug.Print "Current default value: " & ctlCurrent.DefaultValue > Debug.Print "New default value: " & ctlCurrent.DefaultValue > #End If You are retrieving the same value twice ... > Set ctlCurrent = Nothing > End Function /gustav From serbach at new.rr.com Thu Apr 1 10:46:44 2004 From: serbach at new.rr.com (Steven W. Erbach) Date: Thu, 1 Apr 2004 10:46:44 -0600 Subject: [AccessD] Vertical lines in Reports Message-ID: <20040401104644.1145960650.serbach@new.rr.com> Dean, I've struggled with this off and on over the past year. I finally just colored the background of the Detail section a light gray (230,230,230) and colored all the text boxes white. That gives the effect of a nice subtle grid. Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "I think that the send button actually turns brains on." -- Bryan Carbonnell From jwcolby at colbyconsulting.com Thu Apr 1 10:49:43 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 1 Apr 2004 11:49:43 -0500 Subject: [AccessD] Add new record + fill fields with last entereddata?SOLVED In-Reply-To: <03f701c4181a$c430b800$6501a8c0@rock> Message-ID: And of course, to a man with a hammer... Add this CarryForward() (slightly modified) to the control classes for the controls you want this functionality for, clsTxt if only the text control etc. Then in the dclsFrm form class create a colCarryForward collection to hold pointers to the control classes you want to activate this functionality for. In dclsFrm build a SetCarryForward method with a ParamArray to pass in the controls you want to set this up for. In the form's Open event call dclsFrm.SetCarryForward ctl1, ctl2, ctl3. In SetCarryForward iterate the ParamArray and grab a pointer to the class for each control and place in the colCarryForward collection. In mfrm_BeforeUpdate call a method DoCarryForward() that iterates the colCarryForward collection and calls the control class' CarryForward method. Having done this you now have CarryForward functionality for any form for any project. Just turn it on as you need it by calling the dclsFrm.SetCarryForward method passing in controls to carry forward. Of course you will need a hammer to do this. ;-) John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Arthur Fuller Sent: Thursday, April 01, 2004 1:54 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Add new record + fill fields with last entereddata?SOLVED Here is a function that I use for this purpose. It's specific to each particular field on a form, because in my experience I seldom wanted ALL the fields to be duplicated; but rather just many of them. Note that I typically define a compiler directive called TALKON. Public Function CarryForward() Const cQuote = """" 'Thats two quotes Dim ctlCurrent As Control Set ctlCurrent = Screen.ActiveControl ctlCurrent.DefaultValue = cQuote & ctlCurrent.Value & cQuote #If TALKON = True Then Debug.Print "Current default value: " & ctlCurrent.DefaultValue Debug.Print "New default value: " & ctlCurrent.DefaultValue #End If Set ctlCurrent = Nothing End Function Arthur -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of S D Sent: Thursday, April 01, 2004 3:59 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Add new record + fill fields with last entered data?SOLVED We're doing mostly 'maintenace' (don't know the English word for this) for over 100 apps...not counting Excel -'tjoep' :-) Stuart McLachlan wrote:On 1 Apr 2004 at 2:23, S D wrote: > Hi Gustav, > Coffee? Plenty! > Tough day...oi! > > MS-Development team of 5, 4 people are ill....guess who's not.... ;-) > You're lucky. MS Development team of one. Coughing, sneezing, aching muscles, high temperature and deadlines looming on a couple of projects :-( -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From serbach at new.rr.com Thu Apr 1 10:54:30 2004 From: serbach at new.rr.com (Steven W. Erbach) Date: Thu, 1 Apr 2004 10:54:30 -0600 Subject: [AccessD] Access XP & FMS for 2000 Message-ID: <20040401105430.2139825652.serbach@new.rr.com> Joe, >> If I use the Access 2000 format of Access XP can use the FMS Developer tools without messing anything up? << Sorry, I use the FMS tools but I don't use Access XP. However the FMS web site seems to indicate that the latest tools handle 2000, XP, and 2003. You may be able to upgrade. Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "By supporting people who believe they should run your life, you cannot expect anything to change - ever." - Harry Browne From JHewson at karta.com Thu Apr 1 10:50:27 2004 From: JHewson at karta.com (Jim Hewson) Date: Thu, 1 Apr 2004 10:50:27 -0600 Subject: [AccessD] Vertical lines in Reports Message-ID: <9C382E065F54AE48BC3AA7925DCBB01C13830D@karta-exc-int.Karta.com> I too have struggled with this for a long time. I finally went to MS to see what they had to say. Nothing helped. When this thread started, I looked back on the items I had saved. I found this jewel waiting for me. It became clear what needed to be done, Debbie Elam posted the below code in January of this year. It was so simple... Thanks Debbie. Jim Put this in the detail section on format Dim X As Single Me.ScaleMode = 5 Me.DrawWidth = 3 X = 0 Me.Line (X, 0)-(X, 22) X = 0.9604 Me.Line (X, 0)-(X, 22) X = 1.9083 Me.Line (X, 0)-(X, 22) X = 2.7604 Me.Line (X, 0)-(X, 22) X = 3.6271 Me.Line (X, 0)-(X, 22) X = 4.3354 Me.Line (X, 0)-(X, 22) X = 5.2111 Me.Line (X, 0)-(X, 22) X = 5.95 The value of X is the number of inches from the left you want the line to be. Debbie -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Steven W. Erbach Sent: Thursday, April 01, 2004 10:47 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Vertical lines in Reports Dean, I've struggled with this off and on over the past year. I finally just colored the background of the Detail section a light gray (230,230,230) and colored all the text boxes white. That gives the effect of a nice subtle grid. Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "I think that the send button actually turns brains on." -- Bryan Carbonnell -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Thu Apr 1 10:55:05 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Thu, 1 Apr 2004 11:55:05 -0500 Subject: [AccessD] Vertical lines in Reports In-Reply-To: <9C382E065F54AE48BC3AA7925DCBB01C13830D@karta-exc-int.Karta.com> Message-ID: <20040401165503.QGRT1715.imf16aec.mail.bellsouth.net@SUSANONE> Saved my bottom too -- was going to post it but you beat me to it. :) Susan H. I too have struggled with this for a long time. I finally went to MS to see what they had to say. Nothing helped. When this thread started, I looked back on the items I had saved. I found this jewel waiting for me. It became clear what needed to be done, Debbie Elam posted the below code in January of this year. It was so simple... Thanks Debbie. Jim Put this in the detail section on format Dim X As Single Me.ScaleMode = 5 Me.DrawWidth = 3 X = 0 Me.Line (X, 0)-(X, 22) X = 0.9604 Me.Line (X, 0)-(X, 22) X = 1.9083 Me.Line (X, 0)-(X, 22) X = 2.7604 Me.Line (X, 0)-(X, 22) X = 3.6271 Me.Line (X, 0)-(X, 22) X = 4.3354 Me.Line (X, 0)-(X, 22) X = 5.2111 Me.Line (X, 0)-(X, 22) X = 5.95 The value of X is the number of inches from the left you want the line to be. From DElam at jenkens.com Thu Apr 1 11:01:13 2004 From: DElam at jenkens.com (Elam, Debbie) Date: Thu, 1 Apr 2004 11:01:13 -0600 Subject: [AccessD] Vertical lines in Reports Message-ID: <7B1961ED924D1A459E378C9B1BB22B4C0106BCC8@natexch.jenkens.com> I actually found this jewel buried in a report I inherited when I started at Jenkens. Wish I knew who to attribute this to. Debbie -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Thursday, April 01, 2004 10:55 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Vertical lines in Reports Saved my bottom too -- was going to post it but you beat me to it. :) Susan H. I too have struggled with this for a long time. I finally went to MS to see what they had to say. Nothing helped. When this thread started, I looked back on the items I had saved. I found this jewel waiting for me. It became clear what needed to be done, Debbie Elam posted the below code in January of this year. It was so simple... Thanks Debbie. Jim Put this in the detail section on format Dim X As Single Me.ScaleMode = 5 Me.DrawWidth = 3 X = 0 Me.Line (X, 0)-(X, 22) X = 0.9604 Me.Line (X, 0)-(X, 22) X = 1.9083 Me.Line (X, 0)-(X, 22) X = 2.7604 Me.Line (X, 0)-(X, 22) X = 3.6271 Me.Line (X, 0)-(X, 22) X = 4.3354 Me.Line (X, 0)-(X, 22) X = 5.2111 Me.Line (X, 0)-(X, 22) X = 5.95 The value of X is the number of inches from the left you want the line to be. -- _______________________________________________ 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 dmcafee at pacbell.net Thu Apr 1 11:20:57 2004 From: dmcafee at pacbell.net (David McAfee (Home)) Date: Thu, 1 Apr 2004 09:20:57 -0800 Subject: [AccessD] Vertical lines in Reports In-Reply-To: <7B1961ED924D1A459E378C9B1BB22B4C0106BCC8@natexch.jenkens.com> Message-ID: no, X is the number of twips (inches * 1440) IF you tag the controls with something like COLORED Then place the following code in the report's Detail_Format event Dim ctl As Control Me.ScaleMode = 5 For Each ctl In Me.Controls If ctl.Tag = "Colored" Then ctl.BackColor = Highlight Me.Line ((ctl.Left / 1440), 0)-((ctl.Left / 1440), 10) Me.Line (((ctl.Left + ctl.Width) / 1440), 0)-(((ctl.Left + ctl.Width) / 1440), 10) End If Next ctl You'll get your lines! David -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Elam, Debbie Sent: Thursday, April 01, 2004 9:01 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Vertical lines in Reports I actually found this jewel buried in a report I inherited when I started at Jenkens. Wish I knew who to attribute this to. Debbie -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Thursday, April 01, 2004 10:55 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Vertical lines in Reports Saved my bottom too -- was going to post it but you beat me to it. :) Susan H. I too have struggled with this for a long time. I finally went to MS to see what they had to say. Nothing helped. When this thread started, I looked back on the items I had saved. I found this jewel waiting for me. It became clear what needed to be done, Debbie Elam posted the below code in January of this year. It was so simple... Thanks Debbie. Jim Put this in the detail section on format Dim X As Single Me.ScaleMode = 5 Me.DrawWidth = 3 X = 0 Me.Line (X, 0)-(X, 22) X = 0.9604 Me.Line (X, 0)-(X, 22) X = 1.9083 Me.Line (X, 0)-(X, 22) X = 2.7604 Me.Line (X, 0)-(X, 22) X = 3.6271 Me.Line (X, 0)-(X, 22) X = 4.3354 Me.Line (X, 0)-(X, 22) X = 5.2111 Me.Line (X, 0)-(X, 22) X = 5.95 The value of X is the number of inches from the left you want the line to be. -- _______________________________________________ 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. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dmcafee at pacbell.net Thu Apr 1 11:31:14 2004 From: dmcafee at pacbell.net (David McAfee (Home)) Date: Thu, 1 Apr 2004 09:31:14 -0800 Subject: [AccessD] Vertical lines in Reports In-Reply-To: Message-ID: Sorry tha first line was to be deleted, X is inches. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of David McAfee (Home) Sent: Thursday, April 01, 2004 9:21 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Vertical lines in Reports no, X is the number of twips (inches * 1440) IF you tag the controls with something like COLORED Then place the following code in the report's Detail_Format event Dim ctl As Control Me.ScaleMode = 5 For Each ctl In Me.Controls If ctl.Tag = "Colored" Then ctl.BackColor = Highlight Me.Line ((ctl.Left / 1440), 0)-((ctl.Left / 1440), 10) Me.Line (((ctl.Left + ctl.Width) / 1440), 0)-(((ctl.Left + ctl.Width) / 1440), 10) End If Next ctl You'll get your lines! David -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Elam, Debbie Sent: Thursday, April 01, 2004 9:01 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Vertical lines in Reports I actually found this jewel buried in a report I inherited when I started at Jenkens. Wish I knew who to attribute this to. Debbie -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Thursday, April 01, 2004 10:55 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Vertical lines in Reports Saved my bottom too -- was going to post it but you beat me to it. :) Susan H. I too have struggled with this for a long time. I finally went to MS to see what they had to say. Nothing helped. When this thread started, I looked back on the items I had saved. I found this jewel waiting for me. It became clear what needed to be done, Debbie Elam posted the below code in January of this year. It was so simple... Thanks Debbie. Jim Put this in the detail section on format Dim X As Single Me.ScaleMode = 5 Me.DrawWidth = 3 X = 0 Me.Line (X, 0)-(X, 22) X = 0.9604 Me.Line (X, 0)-(X, 22) X = 1.9083 Me.Line (X, 0)-(X, 22) X = 2.7604 Me.Line (X, 0)-(X, 22) X = 3.6271 Me.Line (X, 0)-(X, 22) X = 4.3354 Me.Line (X, 0)-(X, 22) X = 5.2111 Me.Line (X, 0)-(X, 22) X = 5.95 The value of X is the number of inches from the left you want the line to be. -- _______________________________________________ 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. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ranthony at wrsystems.com Thu Apr 1 11:45:06 2004 From: ranthony at wrsystems.com (ranthony at wrsystems.com) Date: Thu, 1 Apr 2004 12:45:06 -0500 Subject: [AccessD] Vertical lines in Reports Message-ID: <5F21A4E8B8DD734992EF9E70AC9D3064128B46@mail2.wrsystems.com> Thanks for sharing this everyone, I just so happen to be working on a report and the customer wants vertical lines a la an excel spreadsheet. Schww-eet! -----Original Message----- From: Elam, Debbie [mailto:DElam at jenkens.com] Sent: Thursday, April 01, 2004 12:01 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Vertical lines in Reports I actually found this jewel buried in a report I inherited when I started at Jenkens. Wish I knew who to attribute this to. Debbie -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Thursday, April 01, 2004 10:55 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Vertical lines in Reports Saved my bottom too -- was going to post it but you beat me to it. :) Susan H. I too have struggled with this for a long time. I finally went to MS to see what they had to say. Nothing helped. When this thread started, I looked back on the items I had saved. I found this jewel waiting for me. It became clear what needed to be done, Debbie Elam posted the below code in January of this year. It was so simple... Thanks Debbie. Jim Put this in the detail section on format Dim X As Single Me.ScaleMode = 5 Me.DrawWidth = 3 X = 0 Me.Line (X, 0)-(X, 22) X = 0.9604 Me.Line (X, 0)-(X, 22) X = 1.9083 Me.Line (X, 0)-(X, 22) X = 2.7604 Me.Line (X, 0)-(X, 22) X = 3.6271 Me.Line (X, 0)-(X, 22) X = 4.3354 Me.Line (X, 0)-(X, 22) X = 5.2111 Me.Line (X, 0)-(X, 22) X = 5.95 The value of X is the number of inches from the left you want the line to be. -- _______________________________________________ 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. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From doug at murphyscreativity.com Thu Apr 1 14:06:32 2004 From: doug at murphyscreativity.com (Doug Murphy) Date: Thu, 1 Apr 2004 12:06:32 -0800 Subject: [AccessD] Transfer text field name In-Reply-To: <2F8793082E00D4119A1700B0D0216BF80222789D@main2.marlow.com> Message-ID: <003301c41824$d6dfb190$8500a8c0@CX615377a> Folks, I am outputting the results of a query into a comma delimited text file using the transfer text method. Field names are to be put in the first row. Some of the query fields use assigned names, e.g., Street #:[fldStreetNo]. The interesting thing is that the "#" in the field name shows up in the query when the results are viewed but shows up as a "." when I look at the text file. I put the symbols in quotes they are not part of the output. Any one have a suggestion on how to get transfer text to put the "#" where it is supposed to be? Thanks Doug From carbonnb at sympatico.ca Thu Apr 1 14:59:25 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Thu, 01 Apr 2004 15:59:25 -0500 Subject: [AccessD] Another Searchable Archives Message-ID: <406C3C5D.28088.636217@localhost> Well folks, it appears that the stars and planets have been in alignment this week, except for everyone in the house being sick. AccessD now has a second searchable archive!!! The archives hosted by DBA, itself, are now searchable. This is in addition to Drew's archive, which have always been searchable. You can get to it by pointing your ever so familiar web browser to: http://databaseadvisors.com/pipermail/accessd/ Just fill in your favourite search term and click search and all will be found (we hope :) The only limitation is that the search index is updated once per day, so any posts made after 0207 CST will not be searchable until the following day. Actually all of the lists will become searchable like this over time, as posts are made to it. Any list that has had a post to it since March 29th, should be searchable now. So if you want your favourite list to be searchable, just post to it. This includes dba-visio!!! :-) -- Bryan Carbonnell - carbonnb at sympatico.ca When everything is coming your way......you're in the wrong lane. From DWUTKA at marlow.com Thu Apr 1 15:08:27 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Thu, 1 Apr 2004 15:08:27 -0600 Subject: [AccessD] Another Searchable Archives Message-ID: <2F8793082E00D4119A1700B0D0216BF802227A60@main2.marlow.com> Good job! Are we going to move the archives on my site to the official site? Since dba's site is now searchable? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Bryan Carbonnell Sent: Thursday, April 01, 2004 2:59 PM To: access Developers discussion and problem solving Subject: [AccessD] Another Searchable Archives Well folks, it appears that the stars and planets have been in alignment this week, except for everyone in the house being sick. AccessD now has a second searchable archive!!! The archives hosted by DBA, itself, are now searchable. This is in addition to Drew's archive, which have always been searchable. You can get to it by pointing your ever so familiar web browser to: http://databaseadvisors.com/pipermail/accessd/ Just fill in your favourite search term and click search and all will be found (we hope :) The only limitation is that the search index is updated once per day, so any posts made after 0207 CST will not be searchable until the following day. Actually all of the lists will become searchable like this over time, as posts are made to it. Any list that has had a post to it since March 29th, should be searchable now. So if you want your favourite list to be searchable, just post to it. This includes dba-visio!!! :-) -- Bryan Carbonnell - carbonnb at sympatico.ca When everything is coming your way......you're in the wrong lane. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Apr 1 15:42:34 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 1 Apr 2004 16:42:34 -0500 Subject: [AccessD] Transfer text field name In-Reply-To: <003301c41824$d6dfb190$8500a8c0@CX615377a> Message-ID: Personally I would recommend getting rid of the # entirely. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Doug Murphy Sent: Thursday, April 01, 2004 3:07 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Transfer text field name Folks, I am outputting the results of a query into a comma delimited text file using the transfer text method. Field names are to be put in the first row. Some of the query fields use assigned names, e.g., Street #:[fldStreetNo]. The interesting thing is that the "#" in the field name shows up in the query when the results are viewed but shows up as a "." when I look at the text file. I put the symbols in quotes they are not part of the output. Any one have a suggestion on how to get transfer text to put the "#" where it is supposed to be? Thanks Doug -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From doug at murphyscreativity.com Thu Apr 1 16:03:45 2004 From: doug at murphyscreativity.com (Doug Murphy) Date: Thu, 1 Apr 2004 14:03:45 -0800 Subject: [AccessD] Transfer text field name In-Reply-To: Message-ID: <003b01c41835$33f1bb70$8500a8c0@CX615377a> John, If it was in my control it wouldn't be there. Unfortunately this file is imported into another commercial program that uses that field name. All I am doing is converting the data from one format to another for the import. The idea was to use a query and a couple of formating functions to reformat some data from a file downloaded from the web and format it for input into the program. This was supposed to be a quick project; I get burned every time I think that way. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Thursday, April 01, 2004 1:43 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Transfer text field name Personally I would recommend getting rid of the # entirely. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Doug Murphy Sent: Thursday, April 01, 2004 3:07 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Transfer text field name Folks, I am outputting the results of a query into a comma delimited text file using the transfer text method. Field names are to be put in the first row. Some of the query fields use assigned names, e.g., Street #:[fldStreetNo]. The interesting thing is that the "#" in the field name shows up in the query when the results are viewed but shows up as a "." when I look at the text file. I put the symbols in quotes they are not part of the output. Any one have a suggestion on how to get transfer text to put the "#" where it is supposed to be? Thanks Doug -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Thu Apr 1 16:14:29 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 02 Apr 2004 08:14:29 +1000 Subject: [AccessD] Transfer text field name In-Reply-To: <003b01c41835$33f1bb70$8500a8c0@CX615377a> References: Message-ID: <406D20E5.32257.376CF9E@localhost> On 1 Apr 2004 at 14:03, Doug Murphy wrote: > John, > > If it was in my control it wouldn't be there. Unfortunately this file > is imported into another commercial program that uses that field name. > All I am doing is converting the data from one format to another for the > import. The idea was to use a query and a couple of formating functions > to reformat some data from a file downloaded from the web and format it > for input into the program. This was supposed to be a quick project; I > get burned every time I think that way. > I avoid the TransferText becuase of these sorts of problems. It's quite simple to role your own and have complete control over what you are doing. Here's a very basic outline for a job specific export. You can automate a lot of this by passing parameters, looping thourhg fields etc Function ExportText() as Long Dim rs as Recodset Set rs = CurrentDb.OPenrecordset((qryMyQuery") Open "MyExportFile" for Output as #1 Print #1,"Street #,Second Field Name,Field with & in it,Etc" While not eof(1) Print #1, rs(0) & ",'" & rs(1) & "','" & rs(2) & "'," & rs(3) Wend Close #1 End Function -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From dw-murphy at cox.net Thu Apr 1 16:31:57 2004 From: dw-murphy at cox.net (Doug Murphy) Date: Thu, 1 Apr 2004 14:31:57 -0800 Subject: [AccessD] Transfer text field name In-Reply-To: <406D20E5.32257.376CF9E@localhost> Message-ID: <003d01c41839$2444aee0$8500a8c0@CX615377a> Stuart, Thanks for the code. When I originally looked at this that was the approach I was going to take, but then to save time (ha!) I decided to use transfertext. Lesson learned. Thanks again. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Thursday, April 01, 2004 2:14 PM To: Access Developers discussion and problemsolving Subject: RE: [AccessD] Transfer text field name On 1 Apr 2004 at 14:03, Doug Murphy wrote: > John, > > If it was in my control it wouldn't be there. Unfortunately this file > is imported into another commercial program that uses that field name. > All I am doing is converting the data from one format to another for > the import. The idea was to use a query and a couple of formating > functions to reformat some data from a file downloaded from the web > and format it for input into the program. This was supposed to be a > quick project; I get burned every time I think that way. > I avoid the TransferText becuase of these sorts of problems. It's quite simple to role your own and have complete control over what you are doing. Here's a very basic outline for a job specific export. You can automate a lot of this by passing parameters, looping thourhg fields etc Function ExportText() as Long Dim rs as Recodset Set rs = CurrentDb.OPenrecordset((qryMyQuery") Open "MyExportFile" for Output as #1 Print #1,"Street #,Second Field Name,Field with & in it,Etc" While not eof(1) Print #1, rs(0) & ",'" & rs(1) & "','" & rs(2) & "'," & rs(3) Wend Close #1 End Function -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Apr 1 18:06:32 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 1 Apr 2004 19:06:32 -0500 Subject: [AccessD] Transfer text field name In-Reply-To: <003b01c41835$33f1bb70$8500a8c0@CX615377a> Message-ID: >This was supposed to be a quick project; I get burned every time I think that way. ROTFL. Yup! I believe we have some example code hanging around somewhere that shows how to do this just using code. Have you looked on AccessD's file area? John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Doug Murphy Sent: Thursday, April 01, 2004 5:04 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Transfer text field name John, If it was in my control it wouldn't be there. Unfortunately this file is imported into another commercial program that uses that field name. All I am doing is converting the data from one format to another for the import. The idea was to use a query and a couple of formating functions to reformat some data from a file downloaded from the web and format it for input into the program. This was supposed to be a quick project; I get burned every time I think that way. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Thursday, April 01, 2004 1:43 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Transfer text field name Personally I would recommend getting rid of the # entirely. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Doug Murphy Sent: Thursday, April 01, 2004 3:07 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Transfer text field name Folks, I am outputting the results of a query into a comma delimited text file using the transfer text method. Field names are to be put in the first row. Some of the query fields use assigned names, e.g., Street #:[fldStreetNo]. The interesting thing is that the "#" in the field name shows up in the query when the results are viewed but shows up as a "." when I look at the text file. I put the symbols in quotes they are not part of the output. Any one have a suggestion on how to get transfer text to put the "#" where it is supposed to be? Thanks Doug -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Apr 1 18:12:43 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 1 Apr 2004 19:12:43 -0500 Subject: [AccessD] Transfer text field name In-Reply-To: <406D20E5.32257.376CF9E@localhost> Message-ID: In the coming months I will have a similar problem to solve. My client handles claim processing for disability insurance - the middle man / call center role. Their client - the insurance company - is moving to new software and I have to change to outputting just the fields that we already export to them, perhaps 60 or 70 fields, into a single record of hundreds of fields, formatted EXACTLY as they dictate, fixed field width. They can't even handle delimited, it must be fixed width fields. Literally about 3000 bytes per record with all the blank fields just spaces. Mainframes are just silly sometimes. You should see the record format. It's like hundreds of fields just "reserved" for some future need. I shudder to think of what their program looks like. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stuart McLachlan Sent: Thursday, April 01, 2004 5:14 PM To: Access Developers discussion and problemsolving Subject: RE: [AccessD] Transfer text field name On 1 Apr 2004 at 14:03, Doug Murphy wrote: > John, > > If it was in my control it wouldn't be there. Unfortunately this file > is imported into another commercial program that uses that field name. > All I am doing is converting the data from one format to another for the > import. The idea was to use a query and a couple of formating functions > to reformat some data from a file downloaded from the web and format it > for input into the program. This was supposed to be a quick project; I > get burned every time I think that way. > I avoid the TransferText becuase of these sorts of problems. It's quite simple to role your own and have complete control over what you are doing. Here's a very basic outline for a job specific export. You can automate a lot of this by passing parameters, looping thourhg fields etc Function ExportText() as Long Dim rs as Recodset Set rs = CurrentDb.OPenrecordset((qryMyQuery") Open "MyExportFile" for Output as #1 Print #1,"Street #,Second Field Name,Field with & in it,Etc" While not eof(1) Print #1, rs(0) & ",'" & rs(1) & "','" & rs(2) & "'," & rs(3) Wend Close #1 End Function -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From doug at murphyscreativity.com Thu Apr 1 18:26:34 2004 From: doug at murphyscreativity.com (Doug Murphy) Date: Thu, 1 Apr 2004 16:26:34 -0800 Subject: [AccessD] Transfer text field name In-Reply-To: Message-ID: <000201c41849$2a749860$8500a8c0@CX615377a> John, I followed Stuarts lead and wrote a file routine that output all the field names and then associated values into a delimited text file. The # comes through fine now. It was a good suggestion. Should have started this way. I'd still like to know what the problem is with transfertext, but that may just be one of life's mysteries. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Thursday, April 01, 2004 4:07 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Transfer text field name >This was supposed to be a quick project; I get burned every time I >think that way. ROTFL. Yup! I believe we have some example code hanging around somewhere that shows how to do this just using code. Have you looked on AccessD's file area? John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Doug Murphy Sent: Thursday, April 01, 2004 5:04 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Transfer text field name John, If it was in my control it wouldn't be there. Unfortunately this file is imported into another commercial program that uses that field name. All I am doing is converting the data from one format to another for the import. The idea was to use a query and a couple of formating functions to reformat some data from a file downloaded from the web and format it for input into the program. This was supposed to be a quick project; I get burned every time I think that way. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Thursday, April 01, 2004 1:43 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Transfer text field name Personally I would recommend getting rid of the # entirely. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Doug Murphy Sent: Thursday, April 01, 2004 3:07 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Transfer text field name Folks, I am outputting the results of a query into a comma delimited text file using the transfer text method. Field names are to be put in the first row. Some of the query fields use assigned names, e.g., Street #:[fldStreetNo]. The interesting thing is that the "#" in the field name shows up in the query when the results are viewed but shows up as a "." when I look at the text file. I put the symbols in quotes they are not part of the output. Any one have a suggestion on how to get transfer text to put the "#" where it is supposed to be? Thanks Doug -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Thu Apr 1 18:42:34 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 02 Apr 2004 10:42:34 +1000 Subject: [AccessD] Transfer text field name In-Reply-To: References: <406D20E5.32257.376CF9E@localhost> Message-ID: <406D439A.28009.4CF693@localhost> On 1 Apr 2004 at 19:12, John W. Colby wrote: > In the coming months I will have a similar problem to solve. My client > handles claim processing for disability insurance - the middle man / call > center role. Their client - the insurance company - is moving to new > software and I have to change to outputting just the fields that we already > export to them, perhaps 60 or 70 fields, into a single record of hundreds of > fields, formatted EXACTLY as they dictate, fixed field width. They can't > even handle delimited, it must be fixed width fields. Literally about 3000 > bytes per record with all the blank fields just spaces. > A suggestion based on bitter experience for when you get round to this. Don't try to build the output by concatenation of variable length strings, it quickly becomes a nightmare to keep track of where you are. Build the full string first with strOutputString = Space$(3000) Then insert your fields in the correct position with Mid$(strOutputString,lngFldPosn) = strFieldData -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From jwcolby at colbyconsulting.com Thu Apr 1 19:08:27 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 1 Apr 2004 20:08:27 -0500 Subject: [AccessD] Transfer text field name In-Reply-To: <406D439A.28009.4CF693@localhost> Message-ID: Whoa, thanks for that. It never would have occurred to me to do that. I have a file spec with all the fields and their start / stop positions, as well as the format. I kinda figured I'd build a table that has all of that info plus my corresponding field name (it's a rather monstrous query since it pulls from about a dozen normalized tables). Then build a function that opens the recordset and builds each record based on their field spec table. In the end, what a PITA. But your suggestion will definitely make things easier. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stuart McLachlan Sent: Thursday, April 01, 2004 7:43 PM To: Access Developers discussion and problemsolving Subject: RE: [AccessD] Transfer text field name On 1 Apr 2004 at 19:12, John W. Colby wrote: > In the coming months I will have a similar problem to solve. My client > handles claim processing for disability insurance - the middle man / call > center role. Their client - the insurance company - is moving to new > software and I have to change to outputting just the fields that we already > export to them, perhaps 60 or 70 fields, into a single record of hundreds of > fields, formatted EXACTLY as they dictate, fixed field width. They can't > even handle delimited, it must be fixed width fields. Literally about 3000 > bytes per record with all the blank fields just spaces. > A suggestion based on bitter experience for when you get round to this. Don't try to build the output by concatenation of variable length strings, it quickly becomes a nightmare to keep track of where you are. Build the full string first with strOutputString = Space$(3000) Then insert your fields in the correct position with Mid$(strOutputString,lngFldPosn) = strFieldData -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. -- _______________________________________________ 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 Apr 1 21:48:33 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 02 Apr 2004 13:48:33 +1000 Subject: [AccessD] Transfer text field name In-Reply-To: References: <406D439A.28009.4CF693@localhost> Message-ID: <406D6F31.1161.F73C9A@localhost> On 1 Apr 2004 at 20:08, John W. Colby wrote: > Whoa, thanks for that. It never would have occurred to me to do that. > > I have a file spec with all the fields and their start / stop positions, as > well as the format. I kinda figured I'd build a table that has all of that > info plus my corresponding field name (it's a rather monstrous query since > it pulls from about a dozen normalized tables). Then build a function that > opens the recordset and builds each record based on their field spec table. > > In the end, what a PITA. But your suggestion will definitely make things > easier. > You will probably find that some data is left justified and others right justified, possibly with different numbers of decimal places. If you store a RightJustify flag and NoOfDecimalPlaces in your table along with the start position and length you can then build quite a simple function to step through each field in the table, read and format values appropriately and poke them into the correct positions. It ends up being quite trivial to do, regardless of how big/complex the required output row is. The big advantage is that you can handle subsequent changes in the output spec very easily. (It's sort of a "space delimited export framework" ) -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From adtp at touchtelindia.net Thu Apr 1 22:07:57 2004 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Fri, 2 Apr 2004 09:37:57 +0530 Subject: [AccessD] Vertical lines in Reports References: <20040401104644.1145960650.serbach@new.rr.com> Message-ID: <00a901c41869$1c512850$7c1865cb@winxp> Dean, For a practical example, you could also see my sample db named ReportBorders at Rogers Access Library (other developers section) - http://www.rogersaccesslibrary.com The underlying approach could be adapted suitably for your specific needs. Regards, A.D.Tejpal -------------- ----- Original Message ----- From: Steven W. Erbach To: Access Developers discussion and problem solving Sent: Thursday, April 01, 2004 22:16 Subject: Re: [AccessD] Vertical lines in Reports Dean, I've struggled with this off and on over the past year. I finally just colored the background of the Detail section a light gray (230,230,230) and colored all the text boxes white. That gives the effect of a nice subtle grid. Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "I think that the send button actually turns brains on." -- Bryan Carbonnell From jwelz at hotmail.com Thu Apr 1 23:46:34 2004 From: jwelz at hotmail.com (Jürgen Welz) Date: Thu, 01 Apr 2004 22:46:34 -0700 Subject: [AccessD] Transfer text field name Message-ID: You may want to look at lset for fixed width data files: http://www.vbwm.com/art_2001/UDT05/ is an example. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: "John W. Colby" > >Whoa, thanks for that. It never would have occurred to me to do that. > >I have a file spec with all the fields and their start / stop positions, as >well as the format. I kinda figured I'd build a table that has all of that >info plus my corresponding field name (it's a rather monstrous query since >it pulls from about a dozen normalized tables). Then build a function that >opens the recordset and builds each record based on their field spec table. > >In the end, what a PITA. But your suggestion will definitely make things >easier. > >John W. Colby >www.ColbyConsulting.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stuart >McLachlan >Sent: Thursday, April 01, 2004 7:43 PM >To: Access Developers discussion and problemsolving >Subject: RE: [AccessD] Transfer text field name > > >On 1 Apr 2004 at 19:12, John W. Colby wrote: > > > In the coming months I will have a similar problem to solve. My client > > handles claim processing for disability insurance - the middle man / >call > > center role. Their client - the insurance company - is moving to new > > software and I have to change to outputting just the fields that we >already > > export to them, perhaps 60 or 70 fields, into a single record of >hundreds >of > > fields, formatted EXACTLY as they dictate, fixed field width. They >can't > > even handle delimited, it must be fixed width fields. Literally about >3000 > > bytes per record with all the blank fields just spaces. > > > > >A suggestion based on bitter experience for when you get round to this. >Don't try to build the output by concatenation of variable length strings, >it quickly >becomes a nightmare to keep track of where you are. > >Build the full string first with >strOutputString = Space$(3000) > >Then insert your fields in the correct position with >Mid$(strOutputString,lngFldPosn) = strFieldData > > > > >-- >Lexacorp Ltd >http://www.lexacorp.com.pg >Information Technology Consultancy, Software Development,System Support. _________________________________________________________________ MSN Premium includes powerful parental controls and get 2 months FREE* http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines From accessd667 at yahoo.com Thu Apr 1 23:49:25 2004 From: accessd667 at yahoo.com (S D) Date: Thu, 1 Apr 2004 21:49:25 -0800 (PST) Subject: [AccessD] Create table script...so close...SOLVED!! In-Reply-To: <4435274.1080828891183.JavaMail.www@wwinf3003> Message-ID: <20040402054925.28435.qmail@web61102.mail.yahoo.com> Hi Paul, Charlotte, both db_Text and adVarChar where incorrect, thnx anyway. The solution is: rapapapa...string! debug.print arrFileLayout(y, 6) string Go figure. Sander PS: I know can import/export interface files using 4 'main' tables. tblInterface ( stores interface ID and direction (import/ export) tblInterfaceData (Staging table: stores every line of the interface) tblInterfaceLayout (stores the positions/fields/mandetory/PK/FK/etc/etc for every interface added to tblInterface, is also used to check tblInterfaceData for incorrect data) tblInterfaceDistribution (Stores tags and such (if any) to identify wich line of data must be exported to wich table eg tag JUR0-I must be exported to tbl_GAS_1020_MI) :-) I know there are a lot of interfaces this stuff doesn't work for but.... paul.hartland at fsmail.net wrote: Just a thought have you tried dbText instead: arrFileLayout(y, 6) contains the field type (=dbText) Paul Message date : Apr 01 2004, 02:57 PM >From : "S D" To : "accessd" Copy to : Subject : [AccessD] Create table script...so close... Hi group, I need to create tables using the layout specified in a certain table. I found the SUB below on msdn.microsoft.com. Changed it a bit and voila the tables are created! HOWEVER, when i specify TEXT the darn thing creates MEMO fields?!? Qua Pasa? Does anybody know how to change this so that I get proper text fields? BTW: arrFileLayout(y, 6) contains the field type (=TEXT) BTW2: I also used the actual word TEXT. TIA, Sander Sub CreateTableX1(ByRef arrFileLayout()) Dim dbs As ADODB.Connection ' Database Dim y As Integer Dim strCreateTable As String Dim strCreate As String Dim strFields As String Set dbs = CurrentProject.Connection() ' Create a table with two text fields. strCreate = "CREATE TABLE ThisTable " For y = 0 To UBound(arrFileLayout, 1) 'Debug.Print (arrFileLayout(y, 0)) strFields = strFields & arrFileLayout(y, 0) & arrFileLayout(y, 6) & "," Next y 'remove last , strFields = Mid(strFields, 1, Len(strFields) - 1) Debug.Print strFields 'Build sql strCreateTable = strCreate & "(" & strFields & ")" Debug.Print strCreateTable 'execute the blody thing dbs.Execute strCreateTable dbs.Close End Sub --------------------------------- Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter today -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter today From accessd667 at yahoo.com Thu Apr 1 23:54:27 2004 From: accessd667 at yahoo.com (S D) Date: Thu, 1 Apr 2004 21:54:27 -0800 (PST) Subject: [AccessD] Add new record + fill fields with last entered data ? In-Reply-To: <65EB528406CCD211BE8F00902717D23D0795CA9D@perscomex31.hoffman.army.mil> Message-ID: <20040402055427.30545.qmail@web61102.mail.yahoo.com> Hihi here we go again. Everybody uses a different approach and they all work! Some are more complex then others and in some cases (way) too heavy, how's that sledgehammer John ;-) but they all help! thnx a lot. Now all i have to do is do a LOT of documenting and then it's of to find myself a weddingsuit! regards, sander "Brock, Christian T, HRC-Alexandria" wrote: The copy record and paste append commands will get every form field and subform. Do not see how what you say to do provides any benefit over using the three DoCmd.RunCommand statements. Christian Brock -----Original Message----- From: William Hindman [mailto:wdhindman at bellsouth.net] Sent: Thursday, 01 April 2004 10:49 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Add new record + fill fields with last entered data? ...that "wizard" simply bites ...I'd create a "duplicate" button that saves the pk of the current record to a variable or tag and then a query using the saved pk to append a "new" record that is a duplicate of the saved one except for the pk ...that would get you a dupe of every form field including any subform. William Hindman ipsedixitism: something is true because I myself have said it is true ...the philosophy of Noam Chomsky :) ----- Original Message ----- From: "Brock, Christian T, HRC-Alexandria" To: "'Access Developers discussion and problem solving'" Sent: Thursday, April 01, 2004 10:22 AM Subject: RE: [AccessD] Add new record + fill fields with last entered data? > Why go to the trouble? From the statement of intent, What the user really > wants is a duplicate current record button, instead of a new record button. > The Access XP command button wizard will allow you to create a button that > will duplicate the current record. > > It creates the following lines of code > DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70 > DoCmd.DoMenuItem acFormBar, acEditMenu, 2, , acMenuVer70 > DoCmd.DoMenuItem acFormBar, acEditMenu, 5, , acMenuVer70 'Paste Append > > Obviously MS did not update the wizard to use readable code. The following > will work as well. > DoCmd.RunCommand acCmdSelectRecord > DoCmd.RunCommand acCmdCopy > DoCmd.RunCommand acCmdPasteAppend > > > Christian Brock > > > > > -----Original Message----- > From: Gustav Brock [mailto:gustav at cactus.dk] > Sent: Thursday, 01 April 2004 09:36 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Add new record + fill fields with last entered data? > > > Hi Tina > > > I begin to understand. At the OnCurrent Event for the Form, the Event > > Procedure will set the DefaultValue of each TextBox to the values > > determined to already be stored in the record just saved. Is that > > correct? > > Yes and no. No saving needs to take place: > > At the OnCurrent Event for the Form, the Event Procedure will set the > DefaultValue of each TextBox (or ComboBox etc.) to the values for the > current record of those controls. > > > Does this require explicitly listing each TextBox of the form? > > Yes. > > /gustav > > > >>>How does one set the DefautlValue at OnCurrent? I don't know how to do > >>>that. > >> > >>That's not difficult - something like this: > >> > >> Dim txt As TextBox > >> Set txt = Me!txtYourTextBox > >> > >> txt.DefaultValue = txt.Value > >> > >> Set txt = Nothing > >> > >>However, DefaultValue should be a string which means that if your > >>textbox contains decimals or a date/time value you must be careful and > >>convert to a string in US format: > >> > >> txt.DefaultValue = LTrim(Str(txt.Value)) > >> > >>or > >> > >> txt.DefaultValue = _ > >> Format(txt.Value, "\#mm\/dd\/yyyy hh\:nn\:ss AM/PM\#") > >> > >>/gustav > >> > >>>>Tough day? No coffee? > >>>> > >>>>Set the DefaultValue at OnCurrent. > >>>> > >>>>As for Stuart's note on the KeyPreview, it's not a user feature, but a > >>>>property of the form. > >>>> > >>>>/gustav > >>>> > >>>>>when a user clicks the 'Add new record' button (s)he wants the data of > the current record to be displayed in the new record. > >>>>>So if a user is on record 999 with field username filled with AAA and > then clicks on 'Add new record' then a new record (1000) must appear with > the field username filled with AAA. > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter today From bchacc at san.rr.com Fri Apr 2 00:01:57 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 1 Apr 2004 22:01:57 -0800 Subject: [AccessD] Add new record + fill fields with last entered data ? References: <20040402055427.30545.qmail@web61102.mail.yahoo.com> Message-ID: <032301c41878$01b7c760$6601a8c0@HAL9002> "...find myself a weddingsuit!" Spectator or victim? Rocky ----- Original Message ----- From: "S D" To: "Access Developers discussion and problem solving" Sent: Thursday, April 01, 2004 9:54 PM Subject: RE: [AccessD] Add new record + fill fields with last entered data ? > Hihi here we go again. Everybody uses a different approach and they all work! > Some are more complex then others and in some cases (way) too heavy, how's that sledgehammer John ;-) but they all help! > > thnx a lot. > > Now all i have to do is do a LOT of documenting and then it's of to find myself a weddingsuit! > > regards, > > sander > > "Brock, Christian T, HRC-Alexandria" wrote: > The copy record and paste append commands will get every form field and > subform. Do not see how what you say to do provides any benefit over using > the three DoCmd.RunCommand statements. > > Christian Brock > > > > -----Original Message----- > From: William Hindman [mailto:wdhindman at bellsouth.net] > Sent: Thursday, 01 April 2004 10:49 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Add new record + fill fields with last entered data? > > > ...that "wizard" simply bites ...I'd create a "duplicate" button that saves > the pk of the current record to a variable or tag and then a query using the > saved pk to append a "new" record that is a duplicate of the saved one > except for the pk ...that would get you a dupe of every form field including > any subform. > > William Hindman > ipsedixitism: something is true because I myself have said it is true ...the > philosophy of Noam Chomsky :) > > ----- Original Message ----- > From: "Brock, Christian T, HRC-Alexandria" > > To: "'Access Developers discussion and problem solving'" > > Sent: Thursday, April 01, 2004 10:22 AM > Subject: RE: [AccessD] Add new record + fill fields with last entered data? > > > > Why go to the trouble? From the statement of intent, What the user really > > wants is a duplicate current record button, instead of a new record > button. > > The Access XP command button wizard will allow you to create a button that > > will duplicate the current record. > > > > It creates the following lines of code > > DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70 > > DoCmd.DoMenuItem acFormBar, acEditMenu, 2, , acMenuVer70 > > DoCmd.DoMenuItem acFormBar, acEditMenu, 5, , acMenuVer70 'Paste Append > > > > Obviously MS did not update the wizard to use readable code. The > following > > will work as well. > > DoCmd.RunCommand acCmdSelectRecord > > DoCmd.RunCommand acCmdCopy > > DoCmd.RunCommand acCmdPasteAppend > > > > > > Christian Brock > > > > > > > > > > -----Original Message----- > > From: Gustav Brock [mailto:gustav at cactus.dk] > > Sent: Thursday, 01 April 2004 09:36 > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Add new record + fill fields with last entered > data? > > > > > > Hi Tina > > > > > I begin to understand. At the OnCurrent Event for the Form, the Event > > > Procedure will set the DefaultValue of each TextBox to the values > > > determined to already be stored in the record just saved. Is that > > > correct? > > > > Yes and no. No saving needs to take place: > > > > At the OnCurrent Event for the Form, the Event Procedure will set the > > DefaultValue of each TextBox (or ComboBox etc.) to the values for the > > current record of those controls. > > > > > Does this require explicitly listing each TextBox of the form? > > > > Yes. > > > > /gustav > > > > > > >>>How does one set the DefautlValue at OnCurrent? I don't know how to do > > >>>that. > > >> > > >>That's not difficult - something like this: > > >> > > >> Dim txt As TextBox > > >> Set txt = Me!txtYourTextBox > > >> > > >> txt.DefaultValue = txt.Value > > >> > > >> Set txt = Nothing > > >> > > >>However, DefaultValue should be a string which means that if your > > >>textbox contains decimals or a date/time value you must be careful and > > >>convert to a string in US format: > > >> > > >> txt.DefaultValue = LTrim(Str(txt.Value)) > > >> > > >>or > > >> > > >> txt.DefaultValue = _ > > >> Format(txt.Value, "\#mm\/dd\/yyyy hh\:nn\:ss AM/PM\#") > > >> > > >>/gustav > > >> > > >>>>Tough day? No coffee? > > >>>> > > >>>>Set the DefaultValue at OnCurrent. > > >>>> > > >>>>As for Stuart's note on the KeyPreview, it's not a user feature, but a > > >>>>property of the form. > > >>>> > > >>>>/gustav > > >>>> > > >>>>>when a user clicks the 'Add new record' button (s)he wants the data > of > > the current record to be displayed in the new record. > > >>>>>So if a user is on record 999 with field username filled with AAA and > > then clicks on 'Add new record' then a new record (1000) must appear with > > the field username filled with AAA. > > > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > --------------------------------- > Do you Yahoo!? > Yahoo! Small Business $15K Web Design Giveaway - Enter today > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From wdhindman at bellsouth.net Fri Apr 2 00:12:22 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Fri, 2 Apr 2004 01:12:22 -0500 Subject: [AccessD] Add new record + fill fields with last entered data? References: <65EB528406CCD211BE8F00902717D23D0795CA9D@perscomex31.hoffman.army.mil> Message-ID: <000501c41879$76782030$6101a8c0@dejpolsys> ...because Christian, I was never able to make the RunCommand version work consistently in A97 and never tried using it in XP since I already had working code ...if you've got an actual sample where the RunCommands work to dupe both the main form record and subs, I'd like to see it :) William Hindman ipsedixitism: something is true because I myself have said it is true ...the philosophy of Noam Chomsky :) ----- Original Message ----- From: "Brock, Christian T, HRC-Alexandria" To: "'Access Developers discussion and problem solving'" Sent: Thursday, April 01, 2004 11:24 AM Subject: RE: [AccessD] Add new record + fill fields with last entered data? > The copy record and paste append commands will get every form field and > subform. Do not see how what you say to do provides any benefit over using > the three DoCmd.RunCommand statements. > > Christian Brock > > > > -----Original Message----- > From: William Hindman [mailto:wdhindman at bellsouth.net] > Sent: Thursday, 01 April 2004 10:49 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Add new record + fill fields with last entered data? > > > ...that "wizard" simply bites ...I'd create a "duplicate" button that saves > the pk of the current record to a variable or tag and then a query using the > saved pk to append a "new" record that is a duplicate of the saved one > except for the pk ...that would get you a dupe of every form field including > any subform. > > William Hindman > ipsedixitism: something is true because I myself have said it is true ...the > philosophy of Noam Chomsky :) > > ----- Original Message ----- > From: "Brock, Christian T, HRC-Alexandria" > > To: "'Access Developers discussion and problem solving'" > > Sent: Thursday, April 01, 2004 10:22 AM > Subject: RE: [AccessD] Add new record + fill fields with last entered data? > > > > Why go to the trouble? From the statement of intent, What the user really > > wants is a duplicate current record button, instead of a new record > button. > > The Access XP command button wizard will allow you to create a button that > > will duplicate the current record. > > > > It creates the following lines of code > > DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70 > > DoCmd.DoMenuItem acFormBar, acEditMenu, 2, , acMenuVer70 > > DoCmd.DoMenuItem acFormBar, acEditMenu, 5, , acMenuVer70 'Paste Append > > > > Obviously MS did not update the wizard to use readable code. The > following > > will work as well. > > DoCmd.RunCommand acCmdSelectRecord > > DoCmd.RunCommand acCmdCopy > > DoCmd.RunCommand acCmdPasteAppend > > > > > > Christian Brock > > > > > > > > > > -----Original Message----- > > From: Gustav Brock [mailto:gustav at cactus.dk] > > Sent: Thursday, 01 April 2004 09:36 > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Add new record + fill fields with last entered > data? > > > > > > Hi Tina > > > > > I begin to understand. At the OnCurrent Event for the Form, the Event > > > Procedure will set the DefaultValue of each TextBox to the values > > > determined to already be stored in the record just saved. Is that > > > correct? > > > > Yes and no. No saving needs to take place: > > > > At the OnCurrent Event for the Form, the Event Procedure will set the > > DefaultValue of each TextBox (or ComboBox etc.) to the values for the > > current record of those controls. > > > > > Does this require explicitly listing each TextBox of the form? > > > > Yes. > > > > /gustav > > > > > > >>>How does one set the DefautlValue at OnCurrent? I don't know how to do > > >>>that. > > >> > > >>That's not difficult - something like this: > > >> > > >> Dim txt As TextBox > > >> Set txt = Me!txtYourTextBox > > >> > > >> txt.DefaultValue = txt.Value > > >> > > >> Set txt = Nothing > > >> > > >>However, DefaultValue should be a string which means that if your > > >>textbox contains decimals or a date/time value you must be careful and > > >>convert to a string in US format: > > >> > > >> txt.DefaultValue = LTrim(Str(txt.Value)) > > >> > > >>or > > >> > > >> txt.DefaultValue = _ > > >> Format(txt.Value, "\#mm\/dd\/yyyy hh\:nn\:ss AM/PM\#") > > >> > > >>/gustav > > >> > > >>>>Tough day? No coffee? > > >>>> > > >>>>Set the DefaultValue at OnCurrent. > > >>>> > > >>>>As for Stuart's note on the KeyPreview, it's not a user feature, but a > > >>>>property of the form. > > >>>> > > >>>>/gustav > > >>>> > > >>>>>when a user clicks the 'Add new record' button (s)he wants the data > of > > the current record to be displayed in the new record. > > >>>>>So if a user is on record 999 with field username filled with AAA and > > then clicks on 'Add new record' then a new record (1000) must appear with > > the field username filled with AAA. > > > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From accessd667 at yahoo.com Fri Apr 2 01:06:12 2004 From: accessd667 at yahoo.com (S D) Date: Thu, 1 Apr 2004 23:06:12 -0800 (PST) Subject: [AccessD] ORDER BY BUG using Date format AARHG Message-ID: <20040402070612.57615.qmail@web61102.mail.yahoo.com> Hi group, I've got a combobox based on a query: SELECT DISTINCT [TblArbo].[Datum] FROM TblArbo ORDER BY [TblArbo].[Datum] DESC; Resulted in: 01-10-2003 02-09-2003 21-08-2001 The user asked if this could be printed in the following format: dd-mmm-yyyy No problem, says stupid me: SELECT DISTINCT Format([TblArbo].[Datum],"dd-mmm-yyyy") FROM TblArbo ORDER BY Format([TblArbo].[Datum],"dd-mmm-yyyy") DESC; But now the ORDER BY ONLY checks the DD part?!?!?!?! So this results in: 21-08-2001 02-09-2003 01-10-2003 ?!!??! What kind of nonsense is this? Sander --------------------------------- Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter today From thevigil at kabelfoon.nl Fri Apr 2 01:39:06 2004 From: thevigil at kabelfoon.nl (Bert-Jan Brinkhuis) Date: Fri, 2 Apr 2004 09:39:06 +0200 Subject: [AccessD] ORDER BY BUG using Date format AARHG References: <20040402070612.57615.qmail@web61102.mail.yahoo.com> Message-ID: <001101c41885$9650a100$3f412d3e@jester> Hi Sander, i do not know what kind of nonsense that is, but i have a workaround for you. Add the original unformated [datum] field to your query and order on that field. Make sure you do not display that column in the combobox! HTH Bert-Jan ----- Original Message ----- From: "S D" To: "accessd" Sent: Friday, April 02, 2004 9:06 AM Subject: [AccessD] ORDER BY BUG using Date format AARHG > Hi group, > > I've got a combobox based on a query: > SELECT DISTINCT [TblArbo].[Datum] > FROM TblArbo > ORDER BY [TblArbo].[Datum] DESC; > Resulted in: > 01-10-2003 > 02-09-2003 > 21-08-2001 > > The user asked if this could be printed in the following format: dd-mmm-yyyy > No problem, says stupid me: > SELECT DISTINCT Format([TblArbo].[Datum],"dd-mmm-yyyy") > FROM TblArbo > ORDER BY Format([TblArbo].[Datum],"dd-mmm-yyyy") DESC; > > But now the ORDER BY ONLY checks the DD part?!?!?!?! > So this results in: > 21-08-2001 > > 02-09-2003 > 01-10-2003 > ?!!??! What kind of nonsense is this? > > Sander > > > --------------------------------- > Do you Yahoo!? > Yahoo! Small Business $15K Web Design Giveaway - Enter today > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From accessd667 at yahoo.com Fri Apr 2 02:49:12 2004 From: accessd667 at yahoo.com (S D) Date: Fri, 2 Apr 2004 00:49:12 -0800 (PST) Subject: [AccessD] ORDER BY BUG using Date format AARHG In-Reply-To: <001101c41885$9650a100$3f412d3e@jester> Message-ID: <20040402084912.20282.qmail@web61101.mail.yahoo.com> Bedankt :-) Bert Only problem is that the user's decided that they want this format for every date in the app. So I started changing stuff like you mentioned...Worked like a charm except 1 form. Here is the Rowsource dynamic. It is determined via a lot of selections. I'll have to figure this one out... Sander Bert-Jan Brinkhuis wrote: Hi Sander, i do not know what kind of nonsense that is, but i have a workaround for you. Add the original unformated [datum] field to your query and order on that field. Make sure you do not display that column in the combobox! HTH Bert-Jan ----- Original Message ----- From: "S D" To: "accessd" Sent: Friday, April 02, 2004 9:06 AM Subject: [AccessD] ORDER BY BUG using Date format AARHG > Hi group, > > I've got a combobox based on a query: > SELECT DISTINCT [TblArbo].[Datum] > FROM TblArbo > ORDER BY [TblArbo].[Datum] DESC; > Resulted in: > 01-10-2003 > 02-09-2003 > 21-08-2001 > > The user asked if this could be printed in the following format: dd-mmm-yyyy > No problem, says stupid me: > SELECT DISTINCT Format([TblArbo].[Datum],"dd-mmm-yyyy") > FROM TblArbo > ORDER BY Format([TblArbo].[Datum],"dd-mmm-yyyy") DESC; > > But now the ORDER BY ONLY checks the DD part?!?!?!?! > So this results in: > 21-08-2001 > > 02-09-2003 > 01-10-2003 > ?!!??! What kind of nonsense is this? > > Sander > > > --------------------------------- > Do you Yahoo!? > Yahoo! Small Business $15K Web Design Giveaway - Enter 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 --------------------------------- Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter today From gustav at cactus.dk Fri Apr 2 02:46:05 2004 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 2 Apr 2004 10:46:05 +0200 Subject: [AccessD] Transfer text field name In-Reply-To: References: Message-ID: <776625977.20040402104605@cactus.dk> Hi John and J?rgen This is a very nice article, and I too can strongly advocate the use of user defined types; but also have an eye on RSet because - as Stuart notes - you may have fields (numbers) which need to be right justified. Also, as Stuart suggests, the use of Mid() is highly recommended, indeed for long string. /gustav > You may want to look at lset for fixed width data files: > http://www.vbwm.com/art_2001/UDT05/ > is an example. > Ciao > J?rgen Welz > Edmonton, Alberta > jwelz at hotmail.com From gustav at cactus.dk Fri Apr 2 02:57:33 2004 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 2 Apr 2004 10:57:33 +0200 Subject: [AccessD] ORDER BY BUG using Date format AARHG In-Reply-To: <20040402070612.57615.qmail@web61102.mail.yahoo.com> References: <20040402070612.57615.qmail@web61102.mail.yahoo.com> Message-ID: <267314707.20040402105733@cactus.dk> Hi Sander Your "stupid" test is correct as it sorts DESC on a string. Try this which I think is what Bert-Jan has in mind: SELECT DISTINCT Format([TblArbo].[Datum], "dd-mmm-yyyy") FROM TblArbo ORDER BY [TblArbo].[Datum] DESC; /gustav > I've got a combobox based on a query: > SELECT DISTINCT [TblArbo].[Datum] > FROM TblArbo > ORDER BY [TblArbo].[Datum] DESC; > Resulted in: > 01-10-2003 > 02-09-2003 > 21-08-2001 > The user asked if this could be printed in the following format: dd-mmm-yyyy > No problem, says stupid me: > SELECT DISTINCT Format([TblArbo].[Datum],"dd-mmm-yyyy") > FROM TblArbo > ORDER BY Format([TblArbo].[Datum],"dd-mmm-yyyy") DESC; > But now the ORDER BY ONLY checks the DD part?!?!?!?! > So this results in: > 21-08-2001 > 02-09-2003 > 01-10-2003 > ?!!??! What kind of nonsense is this? From thevigil at kabelfoon.nl Fri Apr 2 03:04:41 2004 From: thevigil at kabelfoon.nl (Bert-Jan Brinkhuis) Date: Fri, 2 Apr 2004 11:04:41 +0200 Subject: [AccessD] ORDER BY BUG using Date format AARHG References: <20040402084912.20282.qmail@web61101.mail.yahoo.com> Message-ID: <003601c41891$8965ef20$3f412d3e@jester> Graag gedaan :-) Sander How is the rowsource dynamic? Do you make an sql string dynamically and make that the rowsource? Bert-Jan ----- Original Message ----- From: "S D" To: "Access Developers discussion and problem solving" Sent: Friday, April 02, 2004 10:49 AM Subject: Re: [AccessD] ORDER BY BUG using Date format AARHG > Bedankt :-) Bert > > Only problem is that the user's decided that they want this format for every date in the app. So I started changing stuff like you mentioned...Worked like a charm except 1 form. Here is the Rowsource dynamic. It is determined via a lot of selections. > > I'll have to figure this one out... > > Sander > > Bert-Jan Brinkhuis wrote: > Hi Sander, > > i do not know what kind of nonsense that is, but i have a workaround for > you. > > Add the original unformated [datum] field to your query and order on that > field. > Make sure you do not display that column in the combobox! > > HTH > > Bert-Jan > > ----- Original Message ----- > From: "S D" > To: "accessd" > Sent: Friday, April 02, 2004 9:06 AM > Subject: [AccessD] ORDER BY BUG using Date format AARHG > > > > Hi group, > > > > I've got a combobox based on a query: > > SELECT DISTINCT [TblArbo].[Datum] > > FROM TblArbo > > ORDER BY [TblArbo].[Datum] DESC; > > Resulted in: > > 01-10-2003 > > 02-09-2003 > > 21-08-2001 > > > > The user asked if this could be printed in the following format: > dd-mmm-yyyy > > No problem, says stupid me: > > SELECT DISTINCT Format([TblArbo].[Datum],"dd-mmm-yyyy") > > FROM TblArbo > > ORDER BY Format([TblArbo].[Datum],"dd-mmm-yyyy") DESC; > > > > But now the ORDER BY ONLY checks the DD part?!?!?!?! > > So this results in: > > 21-08-2001 > > > > 02-09-2003 > > 01-10-2003 > > ?!!??! What kind of nonsense is this? > > > > Sander > > > > > > --------------------------------- > > Do you Yahoo!? > > Yahoo! Small Business $15K Web Design Giveaway - Enter 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 > > --------------------------------- > Do you Yahoo!? > Yahoo! Small Business $15K Web Design Giveaway - Enter today > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From gustav at cactus.dk Fri Apr 2 04:22:55 2004 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 2 Apr 2004 12:22:55 +0200 Subject: [AccessD] Portugal Message-ID: <3812436152.20040402122255@cactus.dk> Hi all I'll be visiting Portugal next week. Would any listers be present in the Lisboa area to meet for a glass of port? /gustav From djkr at msn.com Fri Apr 2 04:33:25 2004 From: djkr at msn.com (DJK(John) Robinson) Date: Fri, 2 Apr 2004 11:33:25 +0100 Subject: [AccessD] Portugal In-Reply-To: <3812436152.20040402122255@cactus.dk> Message-ID: <001e01c4189d$edcc5560$3500a8c0@dabsight> Only in spirit(!) Have one for me. It's a lovely city. John > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Gustav Brock > Sent: 02 April 2004 11:23 > To: AccessD at databaseadvisors.com > Subject: [AccessD] Portugal > > > Hi all > > I'll be visiting Portugal next week. > > Would any listers be present in the Lisboa area to meet for a > glass of port? > > /gustav > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From paulo at esb.ucp.pt Fri Apr 2 05:01:44 2004 From: paulo at esb.ucp.pt (Paulo Alexandre Ramos) Date: Fri, 2 Apr 2004 12:01:44 +0100 Subject: [AccessD] Portugal In-Reply-To: <3812436152.20040402122255@cactus.dk> References: <3812436152.20040402122255@cactus.dk> Message-ID: <20C9036E-8495-11D8-BE6F-000A9580E9F4@esb.ucp.pt> Only if you come to Porto :-) I'm here and I will be glad take you to the places of Porto wine is stored. Paulo On Apr 2, 2004, at 11:22 AM, Gustav Brock wrote: > Hi all > > I'll be visiting Portugal next week. > > Would any listers be present in the Lisboa area to meet for a glass of > port? > > /gustav > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From gustav at cactus.dk Fri Apr 2 05:40:38 2004 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 2 Apr 2004 13:40:38 +0200 Subject: [AccessD] Portugal In-Reply-To: <20C9036E-8495-11D8-BE6F-000A9580E9F4@esb.ucp.pt> References: <3812436152.20040402122255@cactus.dk> <20C9036E-8495-11D8-BE6F-000A9580E9F4@esb.ucp.pt> Message-ID: <1017099017.20040402134038@cactus.dk> Hi Paulo > Only if you come to Porto :-) We have not decided yet. Our traveling plan is relaxed and not fixed. I'll contact you off-line! /gustav > I'm here and I will be glad take you to the places of Porto wine is > stored. > Paulo > On Apr 2, 2004, at 11:22 AM, Gustav Brock wrote: >> Hi all >> >> I'll be visiting Portugal next week. >> >> Would any listers be present in the Lisboa area to meet for a glass of >> port? >> >> /gustav From jwcolby at colbyconsulting.com Fri Apr 2 07:28:53 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Fri, 2 Apr 2004 08:28:53 -0500 Subject: [AccessD] Add new record + fill fields with last entered data ? In-Reply-To: <20040402055427.30545.qmail@web61102.mail.yahoo.com> Message-ID: Sander, >Some are more complex then others and in some cases (way) too heavy, how's that sledgehammer John ;-) but they all help! While I can appreciate personal opinion I have to ask how putting reusable code into a framework is (way) too heavy? In the beginning was assembler, and all was right. But there was no structure and it took forever to write code, so higher level languages were designed with functions and dimensioned variables. Of course there were those who scoffed at the overhead, and how slow it ran, but in general it was accepted as a good thing and was taught in schools and used by many programmers. But there were still many problems that remained and concepts such as objects, and classes and inheritance were designed. Of course there were those who scoffed at the overhead, and how slow it ran, but in general it was accepted as a good thing, and was taught in school and used by many programmers. Re-use, encapsulation, and all that stuff is (now) widely accepted practice. Whether or not you personally like these practices is only relevant to you (and the cost to your client of course). Have you ever heard of Steve Gibson of Spin Right fame? He does all his programming in assembler! Hmm... ok. For his purposes that is apparently just right, but it doesn't mean I want to do that. A framework is nothing more or less that reusability / encapsulation taken to the next level. It isn't like I invented the concept - ever heard of .NET? Can you say FRAMEWORK?. When you "attack" using a framework you are simply demonstrating a preference for a way of doing things that may be better for your purposes but definitely is NOT better for my purposes, nor I suspect, for many other people. >how's that sledgehammer John Just fine thanks. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of S D Sent: Friday, April 02, 2004 12:54 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Add new record + fill fields with last entered data ? Hihi here we go again. Everybody uses a different approach and they all work! Some are more complex then others and in some cases (way) too heavy, how's that sledgehammer John ;-) but they all help! thnx a lot. Now all i have to do is do a LOT of documenting and then it's of to find myself a weddingsuit! regards, sander "Brock, Christian T, HRC-Alexandria" wrote: The copy record and paste append commands will get every form field and subform. Do not see how what you say to do provides any benefit over using the three DoCmd.RunCommand statements. Christian Brock -----Original Message----- From: William Hindman [mailto:wdhindman at bellsouth.net] Sent: Thursday, 01 April 2004 10:49 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Add new record + fill fields with last entered data? ...that "wizard" simply bites ...I'd create a "duplicate" button that saves the pk of the current record to a variable or tag and then a query using the saved pk to append a "new" record that is a duplicate of the saved one except for the pk ...that would get you a dupe of every form field including any subform. William Hindman ipsedixitism: something is true because I myself have said it is true ...the philosophy of Noam Chomsky :) ----- Original Message ----- From: "Brock, Christian T, HRC-Alexandria" To: "'Access Developers discussion and problem solving'" Sent: Thursday, April 01, 2004 10:22 AM Subject: RE: [AccessD] Add new record + fill fields with last entered data? > Why go to the trouble? From the statement of intent, What the user really > wants is a duplicate current record button, instead of a new record button. > The Access XP command button wizard will allow you to create a button that > will duplicate the current record. > > It creates the following lines of code > DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70 > DoCmd.DoMenuItem acFormBar, acEditMenu, 2, , acMenuVer70 > DoCmd.DoMenuItem acFormBar, acEditMenu, 5, , acMenuVer70 'Paste Append > > Obviously MS did not update the wizard to use readable code. The following > will work as well. > DoCmd.RunCommand acCmdSelectRecord > DoCmd.RunCommand acCmdCopy > DoCmd.RunCommand acCmdPasteAppend > > > Christian Brock > > > > > -----Original Message----- > From: Gustav Brock [mailto:gustav at cactus.dk] > Sent: Thursday, 01 April 2004 09:36 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Add new record + fill fields with last entered data? > > > Hi Tina > > > I begin to understand. At the OnCurrent Event for the Form, the Event > > Procedure will set the DefaultValue of each TextBox to the values > > determined to already be stored in the record just saved. Is that > > correct? > > Yes and no. No saving needs to take place: > > At the OnCurrent Event for the Form, the Event Procedure will set the > DefaultValue of each TextBox (or ComboBox etc.) to the values for the > current record of those controls. > > > Does this require explicitly listing each TextBox of the form? > > Yes. > > /gustav > > > >>>How does one set the DefautlValue at OnCurrent? I don't know how to do > >>>that. > >> > >>That's not difficult - something like this: > >> > >> Dim txt As TextBox > >> Set txt = Me!txtYourTextBox > >> > >> txt.DefaultValue = txt.Value > >> > >> Set txt = Nothing > >> > >>However, DefaultValue should be a string which means that if your > >>textbox contains decimals or a date/time value you must be careful and > >>convert to a string in US format: > >> > >> txt.DefaultValue = LTrim(Str(txt.Value)) > >> > >>or > >> > >> txt.DefaultValue = _ > >> Format(txt.Value, "\#mm\/dd\/yyyy hh\:nn\:ss AM/PM\#") > >> > >>/gustav > >> > >>>>Tough day? No coffee? > >>>> > >>>>Set the DefaultValue at OnCurrent. > >>>> > >>>>As for Stuart's note on the KeyPreview, it's not a user feature, but a > >>>>property of the form. > >>>> > >>>>/gustav > >>>> > >>>>>when a user clicks the 'Add new record' button (s)he wants the data of > the current record to be displayed in the new record. > >>>>>So if a user is on record 999 with field username filled with AAA and > then clicks on 'Add new record' then a new record (1000) must appear with > the field username filled with AAA. > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter today -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Fri Apr 2 07:47:12 2004 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 2 Apr 2004 15:47:12 +0200 Subject: [AccessD] Portugal In-Reply-To: <001e01c4189d$edcc5560$3500a8c0@dabsight> References: <001e01c4189d$edcc5560$3500a8c0@dabsight> Message-ID: <18324693457.20040402154712@cactus.dk> Hi John OK. I'll have you in mind! /gustav > Only in spirit(!) Have one for me. It's a lovely city. > John >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >> Gustav Brock >> Sent: 02 April 2004 11:23 >> To: AccessD at databaseadvisors.com >> Subject: [AccessD] Portugal >> >> >> Hi all >> >> I'll be visiting Portugal next week. >> >> Would any listers be present in the Lisboa area to meet for a >> glass of port? >> >> /gustav From accessd667 at yahoo.com Fri Apr 2 07:48:09 2004 From: accessd667 at yahoo.com (S D) Date: Fri, 2 Apr 2004 05:48:09 -0800 (PST) Subject: [AccessD] ORDER BY BUG using Date format AARHG In-Reply-To: <267314707.20040402105733@cactus.dk> Message-ID: <20040402134809.45618.qmail@web61108.mail.yahoo.com> Hi gustav, I've solved the problem. Twas a nasty one. but euh try it if you want. create a table with a date field like below and run the query...no go! Thanx anyway. Sander Gustav Brock wrote: Hi Sander Your "stupid" test is correct as it sorts DESC on a string. Try this which I think is what Bert-Jan has in mind: SELECT DISTINCT Format([TblArbo].[Datum], "dd-mmm-yyyy") FROM TblArbo ORDER BY [TblArbo].[Datum] DESC; /gustav > I've got a combobox based on a query: > SELECT DISTINCT [TblArbo].[Datum] > FROM TblArbo > ORDER BY [TblArbo].[Datum] DESC; > Resulted in: > 01-10-2003 > 02-09-2003 > 21-08-2001 > The user asked if this could be printed in the following format: dd-mmm-yyyy > No problem, says stupid me: > SELECT DISTINCT Format([TblArbo].[Datum],"dd-mmm-yyyy") > FROM TblArbo > ORDER BY Format([TblArbo].[Datum],"dd-mmm-yyyy") DESC; > But now the ORDER BY ONLY checks the DD part?!?!?!?! > So this results in: > 21-08-2001 > 02-09-2003 > 01-10-2003 > ?!!??! What kind of nonsense is this? -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter today From accessd667 at yahoo.com Fri Apr 2 07:49:46 2004 From: accessd667 at yahoo.com (S D) Date: Fri, 2 Apr 2004 05:49:46 -0800 (PST) Subject: [AccessD] ORDER BY BUG using Date format AARHG In-Reply-To: <003601c41891$8965ef20$3f412d3e@jester> Message-ID: <20040402134946.77115.qmail@web61110.mail.yahoo.com> Yep, that's it....however, like everything in this app...it doesn't work! Sander Bert-Jan Brinkhuis wrote: Graag gedaan :-) Sander How is the rowsource dynamic? Do you make an sql string dynamically and make that the rowsource? Bert-Jan ----- Original Message ----- From: "S D" To: "Access Developers discussion and problem solving" Sent: Friday, April 02, 2004 10:49 AM Subject: Re: [AccessD] ORDER BY BUG using Date format AARHG > Bedankt :-) Bert > > Only problem is that the user's decided that they want this format for every date in the app. So I started changing stuff like you mentioned...Worked like a charm except 1 form. Here is the Rowsource dynamic. It is determined via a lot of selections. > > I'll have to figure this one out... > > Sander > > Bert-Jan Brinkhuis wrote: > Hi Sander, > > i do not know what kind of nonsense that is, but i have a workaround for > you. > > Add the original unformated [datum] field to your query and order on that > field. > Make sure you do not display that column in the combobox! > > HTH > > Bert-Jan > > ----- Original Message ----- > From: "S D" > To: "accessd" > Sent: Friday, April 02, 2004 9:06 AM > Subject: [AccessD] ORDER BY BUG using Date format AARHG > > > > Hi group, > > > > I've got a combobox based on a query: > > SELECT DISTINCT [TblArbo].[Datum] > > FROM TblArbo > > ORDER BY [TblArbo].[Datum] DESC; > > Resulted in: > > 01-10-2003 > > 02-09-2003 > > 21-08-2001 > > > > The user asked if this could be printed in the following format: > dd-mmm-yyyy > > No problem, says stupid me: > > SELECT DISTINCT Format([TblArbo].[Datum],"dd-mmm-yyyy") > > FROM TblArbo > > ORDER BY Format([TblArbo].[Datum],"dd-mmm-yyyy") DESC; > > > > But now the ORDER BY ONLY checks the DD part?!?!?!?! > > So this results in: > > 21-08-2001 > > > > 02-09-2003 > > 01-10-2003 > > ?!!??! What kind of nonsense is this? > > > > Sander > > > > > > --------------------------------- > > Do you Yahoo!? > > Yahoo! Small Business $15K Web Design Giveaway - Enter 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 > > --------------------------------- > Do you Yahoo!? > Yahoo! Small Business $15K Web Design Giveaway - Enter 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 --------------------------------- Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter today From accessd667 at yahoo.com Fri Apr 2 07:54:48 2004 From: accessd667 at yahoo.com (S D) Date: Fri, 2 Apr 2004 05:54:48 -0800 (PST) Subject: [AccessD] Add new record + fill fields with last entered data ? In-Reply-To: Message-ID: <20040402135448.38639.qmail@web61107.mail.yahoo.com> John (and others) I didn't mean to offend anybody but I think i'm in a different line of work. Where doing maintenance on EXISTING apps. We don't build them ourselves (we also do that but not for this customer) Frameworks are GREAT! I'm playing around with you're examples a lot and I love it. But it's (almost) impossible to implement these in existing apps without rebuilding them from scratch. Extra problem here is that everything is on a very tight budget. Anyways, thnx for the reply. Regards, Sander "John W. Colby" wrote: Sander, >Some are more complex then others and in some cases (way) too heavy, how's that sledgehammer John ;-) but they all help! While I can appreciate personal opinion I have to ask how putting reusable code into a framework is (way) too heavy? In the beginning was assembler, and all was right. But there was no structure and it took forever to write code, so higher level languages were designed with functions and dimensioned variables. Of course there were those who scoffed at the overhead, and how slow it ran, but in general it was accepted as a good thing and was taught in schools and used by many programmers. But there were still many problems that remained and concepts such as objects, and classes and inheritance were designed. Of course there were those who scoffed at the overhead, and how slow it ran, but in general it was accepted as a good thing, and was taught in school and used by many programmers. Re-use, encapsulation, and all that stuff is (now) widely accepted practice. Whether or not you personally like these practices is only relevant to you (and the cost to your client of course). Have you ever heard of Steve Gibson of Spin Right fame? He does all his programming in assembler! Hmm... ok. For his purposes that is apparently just right, but it doesn't mean I want to do that. A framework is nothing more or less that reusability / encapsulation taken to the next level. It isn't like I invented the concept - ever heard of .NET? Can you say FRAMEWORK?. When you "attack" using a framework you are simply demonstrating a preference for a way of doing things that may be better for your purposes but definitely is NOT better for my purposes, nor I suspect, for many other people. >how's that sledgehammer John Just fine thanks. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of S D Sent: Friday, April 02, 2004 12:54 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Add new record + fill fields with last entered data ? Hihi here we go again. Everybody uses a different approach and they all work! Some are more complex then others and in some cases (way) too heavy, how's that sledgehammer John ;-) but they all help! thnx a lot. Now all i have to do is do a LOT of documenting and then it's of to find myself a weddingsuit! regards, sander "Brock, Christian T, HRC-Alexandria" wrote: The copy record and paste append commands will get every form field and subform. Do not see how what you say to do provides any benefit over using the three DoCmd.RunCommand statements. Christian Brock -----Original Message----- From: William Hindman [mailto:wdhindman at bellsouth.net] Sent: Thursday, 01 April 2004 10:49 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Add new record + fill fields with last entered data? ...that "wizard" simply bites ...I'd create a "duplicate" button that saves the pk of the current record to a variable or tag and then a query using the saved pk to append a "new" record that is a duplicate of the saved one except for the pk ...that would get you a dupe of every form field including any subform. William Hindman ipsedixitism: something is true because I myself have said it is true ...the philosophy of Noam Chomsky :) ----- Original Message ----- From: "Brock, Christian T, HRC-Alexandria" To: "'Access Developers discussion and problem solving'" Sent: Thursday, April 01, 2004 10:22 AM Subject: RE: [AccessD] Add new record + fill fields with last entered data? > Why go to the trouble? From the statement of intent, What the user really > wants is a duplicate current record button, instead of a new record button. > The Access XP command button wizard will allow you to create a button that > will duplicate the current record. > > It creates the following lines of code > DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70 > DoCmd.DoMenuItem acFormBar, acEditMenu, 2, , acMenuVer70 > DoCmd.DoMenuItem acFormBar, acEditMenu, 5, , acMenuVer70 'Paste Append > > Obviously MS did not update the wizard to use readable code. The following > will work as well. > DoCmd.RunCommand acCmdSelectRecord > DoCmd.RunCommand acCmdCopy > DoCmd.RunCommand acCmdPasteAppend > > > Christian Brock > > > > > -----Original Message----- > From: Gustav Brock [mailto:gustav at cactus.dk] > Sent: Thursday, 01 April 2004 09:36 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Add new record + fill fields with last entered data? > > > Hi Tina > > > I begin to understand. At the OnCurrent Event for the Form, the Event > > Procedure will set the DefaultValue of each TextBox to the values > > determined to already be stored in the record just saved. Is that > > correct? > > Yes and no. No saving needs to take place: > > At the OnCurrent Event for the Form, the Event Procedure will set the > DefaultValue of each TextBox (or ComboBox etc.) to the values for the > current record of those controls. > > > Does this require explicitly listing each TextBox of the form? > > Yes. > > /gustav > > > >>>How does one set the DefautlValue at OnCurrent? I don't know how to do > >>>that. > >> > >>That's not difficult - something like this: > >> > >> Dim txt As TextBox > >> Set txt = Me!txtYourTextBox > >> > >> txt.DefaultValue = txt.Value > >> > >> Set txt = Nothing > >> > >>However, DefaultValue should be a string which means that if your > >>textbox contains decimals or a date/time value you must be careful and > >>convert to a string in US format: > >> > >> txt.DefaultValue = LTrim(Str(txt.Value)) > >> > >>or > >> > >> txt.DefaultValue = _ > >> Format(txt.Value, "\#mm\/dd\/yyyy hh\:nn\:ss AM/PM\#") > >> > >>/gustav > >> > >>>>Tough day? No coffee? > >>>> > >>>>Set the DefaultValue at OnCurrent. > >>>> > >>>>As for Stuart's note on the KeyPreview, it's not a user feature, but a > >>>>property of the form. > >>>> > >>>>/gustav > >>>> > >>>>>when a user clicks the 'Add new record' button (s)he wants the data of > the current record to be displayed in the new record. > >>>>>So if a user is on record 999 with field username filled with AAA and > then clicks on 'Add new record' then a new record (1000) must appear with > the field username filled with AAA. > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter 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 --------------------------------- Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter today From gustav at cactus.dk Fri Apr 2 07:57:22 2004 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 2 Apr 2004 15:57:22 +0200 Subject: [AccessD] ORDER BY BUG using Date format AARHG In-Reply-To: <20040402134809.45618.qmail@web61108.mail.yahoo.com> References: <20040402134809.45618.qmail@web61108.mail.yahoo.com> Message-ID: <4425303804.20040402155722@cactus.dk> Hi Sander Well - but what is the bug and how did you solve it? /gustav > Hi gustav, > I've solved the problem. Twas a nasty one. > but euh try it if you want. create a table with a date field like below and run the query...no go! > Thanx anyway. > Sander > Gustav Brock wrote: > Hi Sander > Your "stupid" test is correct as it sorts DESC on a string. > Try this which I think is what Bert-Jan has in mind: > SELECT DISTINCT > Format([TblArbo].[Datum], "dd-mmm-yyyy") > FROM > TblArbo > ORDER BY > [TblArbo].[Datum] DESC; > /gustav >> I've got a combobox based on a query: >> SELECT DISTINCT [TblArbo].[Datum] >> FROM TblArbo >> ORDER BY [TblArbo].[Datum] DESC; >> Resulted in: >> 01-10-2003 >> 02-09-2003 >> 21-08-2001 >> The user asked if this could be printed in the following format: dd-mmm-yyyy >> No problem, says stupid me: >> SELECT DISTINCT Format([TblArbo].[Datum],"dd-mmm-yyyy") >> FROM TblArbo >> ORDER BY Format([TblArbo].[Datum],"dd-mmm-yyyy") DESC; >> But now the ORDER BY ONLY checks the DD part?!?!?!?! >> So this results in: >> 21-08-2001 >> 02-09-2003 >> 01-10-2003 >> ?!!??! What kind of nonsense is this? From deanellis at iprimus.com.au Fri Apr 2 08:23:32 2004 From: deanellis at iprimus.com.au (Dean Ellis) Date: Fri, 2 Apr 2004 23:53:32 +0930 (Cen. Australia Standard Time) Subject: [AccessD] Re: Vertical Lines in a Report Message-ID: <406D7764.000003.72847@jedel> Everyone, Thanks for your replies to this post. Dazza, The code you gave me works and I did a similar thing to start with, the problem i'm having is the height of the line isn't changing with the Growth of the Memo boxes that are between the two horizontal lines. and because of this, I get a big gap between the bottom line and the bottom of the vertical line. The othe rtwo sets of code that were posted worked as well, but they only gave me the hieght of the line, but it was always the full height of the detail section of the report. I want to specify the top position to join the ned of a horizontal line and make the bottom end of the vertical line postion relative to the size of the text boxes set at "Can Grow" so that the vertical lines will alway join top and bottom. The replies I got linking me to the websites. that site was interesting enough however, I have absolutel no idea at what to change to set the vetical lines to suit my reports Hope I have explaine this. Cheers Dean From bheid at appdevgrp.com Fri Apr 2 09:36:41 2004 From: bheid at appdevgrp.com (Bobby Heid) Date: Fri, 2 Apr 2004 10:36:41 -0500 Subject: [AccessD] Default Printer for Access Report In-Reply-To: <916187228923D311A6FE00A0CC3FAA30806650@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA305BB3D1@ADGSERVER> I have found that printing a report (that is checked into SourceSafe, that is, not updatable) to the Acrobat PDF printer will change the printer from the default to the PDF printer. Many times, but not all, the printer will stay set to the PDF printer unless I go in and change it to the default printer. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Thursday, April 01, 2004 9:57 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Default Printer for Access Report By default, the Printer Dialogue box does go to the default printer unless the report has one specifically specified. As far as I know, you have no control over the Printer Dialogue box from within Access. 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 Geller Sent: Thursday, April 01, 2004 9:31 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Default Printer for Access Report Thanks, Doris, that was the problem. I'm wondering if, as a fail safe measure, can I write code that would make sure that when that Printer Dialogue box opens it is always set to go to the default printer? I'd want users to be able to pick a different option if they desired, but just as the default, that the print box would be set to go to the default printer. Where would I put the code? --Susan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Tuesday, March 30, 2004 12:03 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Default Printer for Access Report Open that report in design view and then click on "File" and choose "Page Setup". It is possible it get set accidentally when the report was designed. 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 Geller Sent: Tuesday, March 30, 2004 12:28 PM To: accessd at databaseadvisors.com Subject: [AccessD] Default Printer for Access Report I have a reporting tool built in Access (2002) that is essentially a wizard where users pick a report, set criteria and then see their output. There are nearly 100 reports in the app. When a user choses to print a report, the default printer that comes up in the print dialog box is the default printer set on their machine, EXCEPT for one of the reports. On that one report only, the default printer that comes up in the dialogue box is a different printer. All users get this different printer. I did not write any code or make any settings to indicate printer choice. What could be happening? How can I get this one report to print to the user's default printer? Note: The only way that users can print a report is with a toolbar PRINT button that I brings up the dialogue box. There is no file menu from the reports and there is no button with a printer icon that sends reports straight to the printer. --Susan Susan B. Geller Office of Information Systems College of Continuing Education University of Minnesota 306 Wesbrook Hall 77 Pleasant Street SE Minneapolis, MN 55455 Phone: 612-626-4785 Fax: 612-625-2568 From DWUTKA at marlow.com Fri Apr 2 09:45:53 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Fri, 2 Apr 2004 09:45:53 -0600 Subject: [AccessD] ORDER BY BUG using Date format AARHG Message-ID: <2F8793082E00D4119A1700B0D0216BF802227A6B@main2.marlow.com> Because Format() returns a string, so you are telling it to SORT by a string, not a date. Your ORDER BY line should just have [TblArbo].[Datum]. Keep the Format in the SELECT line, and you should be good to go. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of S D Sent: Friday, April 02, 2004 1:06 AM To: accessd Subject: [AccessD] ORDER BY BUG using Date format AARHG Hi group, I've got a combobox based on a query: SELECT DISTINCT [TblArbo].[Datum] FROM TblArbo ORDER BY [TblArbo].[Datum] DESC; Resulted in: 01-10-2003 02-09-2003 21-08-2001 The user asked if this could be printed in the following format: dd-mmm-yyyy No problem, says stupid me: SELECT DISTINCT Format([TblArbo].[Datum],"dd-mmm-yyyy") FROM TblArbo ORDER BY Format([TblArbo].[Datum],"dd-mmm-yyyy") DESC; But now the ORDER BY ONLY checks the DD part?!?!?!?! So this results in: 21-08-2001 02-09-2003 01-10-2003 ?!!??! What kind of nonsense is this? Sander --------------------------------- Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter today -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Mark.Mitsules at ngc.com Fri Apr 2 11:26:11 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Fri, 2 Apr 2004 12:26:11 -0500 Subject: [AccessD] Input Masks Message-ID: Group, I have several text fields that contain numerical data stored as text. Will a numerical input mask have any effect? Mark From ssharkins at bellsouth.net Fri Apr 2 11:30:05 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Fri, 2 Apr 2004 12:30:05 -0500 Subject: [AccessD] Input Masks In-Reply-To: Message-ID: <20040402173003.UBMZ1746.imf17aec.mail.bellsouth.net@SUSANONE> Not sure what you mean by effect -- an input mask simply directs the user to enter the data in a specific way. It won't change the actual data itself. If you're needing visual clues to help the user through the data entry process, input mask is a good way to go. Susan H. Group, I have several text fields that contain numerical data stored as text. Will a numerical input mask have any effect? From Mark.Mitsules at ngc.com Fri Apr 2 11:46:22 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Fri, 2 Apr 2004 12:46:22 -0500 Subject: [AccessD] Input Masks Message-ID: What I was worried about was that an input mask of 000000000 would not work if used in a text field...but it does...I tested it on a copy of my data. Thanks, Mark -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Friday, April 02, 2004 12:30 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Input Masks Not sure what you mean by effect -- an input mask simply directs the user to enter the data in a specific way. It won't change the actual data itself. If you're needing visual clues to help the user through the data entry process, input mask is a good way to go. Susan H. Group, I have several text fields that contain numerical data stored as text. Will a numerical input mask have any effect? -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Apr 2 15:58:30 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Fri, 2 Apr 2004 16:58:30 -0500 Subject: [AccessD] Add new record + fill fields with last entered data ? In-Reply-To: <20040402135448.38639.qmail@web61107.mail.yahoo.com> Message-ID: As Lilly Tomlin used to say on Laugh-In Oh. Never mind! John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of S D Sent: Friday, April 02, 2004 8:55 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Add new record + fill fields with last entered data ? John (and others) I didn't mean to offend anybody but I think i'm in a different line of work. Where doing maintenance on EXISTING apps. We don't build them ourselves (we also do that but not for this customer) Frameworks are GREAT! I'm playing around with you're examples a lot and I love it. But it's (almost) impossible to implement these in existing apps without rebuilding them from scratch. Extra problem here is that everything is on a very tight budget. Anyways, thnx for the reply. Regards, Sander "John W. Colby" wrote: Sander, >Some are more complex then others and in some cases (way) too heavy, how's that sledgehammer John ;-) but they all help! While I can appreciate personal opinion I have to ask how putting reusable code into a framework is (way) too heavy? In the beginning was assembler, and all was right. But there was no structure and it took forever to write code, so higher level languages were designed with functions and dimensioned variables. Of course there were those who scoffed at the overhead, and how slow it ran, but in general it was accepted as a good thing and was taught in schools and used by many programmers. But there were still many problems that remained and concepts such as objects, and classes and inheritance were designed. Of course there were those who scoffed at the overhead, and how slow it ran, but in general it was accepted as a good thing, and was taught in school and used by many programmers. Re-use, encapsulation, and all that stuff is (now) widely accepted practice. Whether or not you personally like these practices is only relevant to you (and the cost to your client of course). Have you ever heard of Steve Gibson of Spin Right fame? He does all his programming in assembler! Hmm... ok. For his purposes that is apparently just right, but it doesn't mean I want to do that. A framework is nothing more or less that reusability / encapsulation taken to the next level. It isn't like I invented the concept - ever heard of .NET? Can you say FRAMEWORK?. When you "attack" using a framework you are simply demonstrating a preference for a way of doing things that may be better for your purposes but definitely is NOT better for my purposes, nor I suspect, for many other people. >how's that sledgehammer John Just fine thanks. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of S D Sent: Friday, April 02, 2004 12:54 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Add new record + fill fields with last entered data ? Hihi here we go again. Everybody uses a different approach and they all work! Some are more complex then others and in some cases (way) too heavy, how's that sledgehammer John ;-) but they all help! thnx a lot. Now all i have to do is do a LOT of documenting and then it's of to find myself a weddingsuit! regards, sander "Brock, Christian T, HRC-Alexandria" wrote: The copy record and paste append commands will get every form field and subform. Do not see how what you say to do provides any benefit over using the three DoCmd.RunCommand statements. Christian Brock -----Original Message----- From: William Hindman [mailto:wdhindman at bellsouth.net] Sent: Thursday, 01 April 2004 10:49 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Add new record + fill fields with last entered data? ...that "wizard" simply bites ...I'd create a "duplicate" button that saves the pk of the current record to a variable or tag and then a query using the saved pk to append a "new" record that is a duplicate of the saved one except for the pk ...that would get you a dupe of every form field including any subform. William Hindman ipsedixitism: something is true because I myself have said it is true ...the philosophy of Noam Chomsky :) ----- Original Message ----- From: "Brock, Christian T, HRC-Alexandria" To: "'Access Developers discussion and problem solving'" Sent: Thursday, April 01, 2004 10:22 AM Subject: RE: [AccessD] Add new record + fill fields with last entered data? > Why go to the trouble? From the statement of intent, What the user really > wants is a duplicate current record button, instead of a new record button. > The Access XP command button wizard will allow you to create a button that > will duplicate the current record. > > It creates the following lines of code > DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70 > DoCmd.DoMenuItem acFormBar, acEditMenu, 2, , acMenuVer70 > DoCmd.DoMenuItem acFormBar, acEditMenu, 5, , acMenuVer70 'Paste Append > > Obviously MS did not update the wizard to use readable code. The following > will work as well. > DoCmd.RunCommand acCmdSelectRecord > DoCmd.RunCommand acCmdCopy > DoCmd.RunCommand acCmdPasteAppend > > > Christian Brock > > > > > -----Original Message----- > From: Gustav Brock [mailto:gustav at cactus.dk] > Sent: Thursday, 01 April 2004 09:36 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Add new record + fill fields with last entered data? > > > Hi Tina > > > I begin to understand. At the OnCurrent Event for the Form, the Event > > Procedure will set the DefaultValue of each TextBox to the values > > determined to already be stored in the record just saved. Is that > > correct? > > Yes and no. No saving needs to take place: > > At the OnCurrent Event for the Form, the Event Procedure will set the > DefaultValue of each TextBox (or ComboBox etc.) to the values for the > current record of those controls. > > > Does this require explicitly listing each TextBox of the form? > > Yes. > > /gustav > > > >>>How does one set the DefautlValue at OnCurrent? I don't know how to do > >>>that. > >> > >>That's not difficult - something like this: > >> > >> Dim txt As TextBox > >> Set txt = Me!txtYourTextBox > >> > >> txt.DefaultValue = txt.Value > >> > >> Set txt = Nothing > >> > >>However, DefaultValue should be a string which means that if your > >>textbox contains decimals or a date/time value you must be careful and > >>convert to a string in US format: > >> > >> txt.DefaultValue = LTrim(Str(txt.Value)) > >> > >>or > >> > >> txt.DefaultValue = _ > >> Format(txt.Value, "\#mm\/dd\/yyyy hh\:nn\:ss AM/PM\#") > >> > >>/gustav > >> > >>>>Tough day? No coffee? > >>>> > >>>>Set the DefaultValue at OnCurrent. > >>>> > >>>>As for Stuart's note on the KeyPreview, it's not a user feature, but a > >>>>property of the form. > >>>> > >>>>/gustav > >>>> > >>>>>when a user clicks the 'Add new record' button (s)he wants the data of > the current record to be displayed in the new record. > >>>>>So if a user is on record 999 with field username filled with AAA and > then clicks on 'Add new record' then a new record (1000) must appear with > the field username filled with AAA. > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter 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 --------------------------------- Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter today -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Apr 2 16:43:21 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Fri, 2 Apr 2004 17:43:21 -0500 Subject: [AccessD] Add new record + fill fields with last entered data ? In-Reply-To: Message-ID: uhh... or Gilda Radner on Saturday Night Live? ;-) John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Friday, April 02, 2004 4:59 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Add new record + fill fields with last entered data ? As Lilly Tomlin used to say on Laugh-In Oh. Never mind! John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of S D Sent: Friday, April 02, 2004 8:55 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Add new record + fill fields with last entered data ? John (and others) I didn't mean to offend anybody but I think i'm in a different line of work. Where doing maintenance on EXISTING apps. We don't build them ourselves (we also do that but not for this customer) Frameworks are GREAT! I'm playing around with you're examples a lot and I love it. But it's (almost) impossible to implement these in existing apps without rebuilding them from scratch. Extra problem here is that everything is on a very tight budget. Anyways, thnx for the reply. Regards, Sander "John W. Colby" wrote: Sander, >Some are more complex then others and in some cases (way) too heavy, how's that sledgehammer John ;-) but they all help! While I can appreciate personal opinion I have to ask how putting reusable code into a framework is (way) too heavy? In the beginning was assembler, and all was right. But there was no structure and it took forever to write code, so higher level languages were designed with functions and dimensioned variables. Of course there were those who scoffed at the overhead, and how slow it ran, but in general it was accepted as a good thing and was taught in schools and used by many programmers. But there were still many problems that remained and concepts such as objects, and classes and inheritance were designed. Of course there were those who scoffed at the overhead, and how slow it ran, but in general it was accepted as a good thing, and was taught in school and used by many programmers. Re-use, encapsulation, and all that stuff is (now) widely accepted practice. Whether or not you personally like these practices is only relevant to you (and the cost to your client of course). Have you ever heard of Steve Gibson of Spin Right fame? He does all his programming in assembler! Hmm... ok. For his purposes that is apparently just right, but it doesn't mean I want to do that. A framework is nothing more or less that reusability / encapsulation taken to the next level. It isn't like I invented the concept - ever heard of .NET? Can you say FRAMEWORK?. When you "attack" using a framework you are simply demonstrating a preference for a way of doing things that may be better for your purposes but definitely is NOT better for my purposes, nor I suspect, for many other people. >how's that sledgehammer John Just fine thanks. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of S D Sent: Friday, April 02, 2004 12:54 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Add new record + fill fields with last entered data ? Hihi here we go again. Everybody uses a different approach and they all work! Some are more complex then others and in some cases (way) too heavy, how's that sledgehammer John ;-) but they all help! thnx a lot. Now all i have to do is do a LOT of documenting and then it's of to find myself a weddingsuit! regards, sander "Brock, Christian T, HRC-Alexandria" wrote: The copy record and paste append commands will get every form field and subform. Do not see how what you say to do provides any benefit over using the three DoCmd.RunCommand statements. Christian Brock -----Original Message----- From: William Hindman [mailto:wdhindman at bellsouth.net] Sent: Thursday, 01 April 2004 10:49 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Add new record + fill fields with last entered data? ...that "wizard" simply bites ...I'd create a "duplicate" button that saves the pk of the current record to a variable or tag and then a query using the saved pk to append a "new" record that is a duplicate of the saved one except for the pk ...that would get you a dupe of every form field including any subform. William Hindman ipsedixitism: something is true because I myself have said it is true ...the philosophy of Noam Chomsky :) ----- Original Message ----- From: "Brock, Christian T, HRC-Alexandria" To: "'Access Developers discussion and problem solving'" Sent: Thursday, April 01, 2004 10:22 AM Subject: RE: [AccessD] Add new record + fill fields with last entered data? > Why go to the trouble? From the statement of intent, What the user really > wants is a duplicate current record button, instead of a new record button. > The Access XP command button wizard will allow you to create a button that > will duplicate the current record. > > It creates the following lines of code > DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70 > DoCmd.DoMenuItem acFormBar, acEditMenu, 2, , acMenuVer70 > DoCmd.DoMenuItem acFormBar, acEditMenu, 5, , acMenuVer70 'Paste Append > > Obviously MS did not update the wizard to use readable code. The following > will work as well. > DoCmd.RunCommand acCmdSelectRecord > DoCmd.RunCommand acCmdCopy > DoCmd.RunCommand acCmdPasteAppend > > > Christian Brock > > > > > -----Original Message----- > From: Gustav Brock [mailto:gustav at cactus.dk] > Sent: Thursday, 01 April 2004 09:36 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Add new record + fill fields with last entered data? > > > Hi Tina > > > I begin to understand. At the OnCurrent Event for the Form, the Event > > Procedure will set the DefaultValue of each TextBox to the values > > determined to already be stored in the record just saved. Is that > > correct? > > Yes and no. No saving needs to take place: > > At the OnCurrent Event for the Form, the Event Procedure will set the > DefaultValue of each TextBox (or ComboBox etc.) to the values for the > current record of those controls. > > > Does this require explicitly listing each TextBox of the form? > > Yes. > > /gustav > > > >>>How does one set the DefautlValue at OnCurrent? I don't know how to do > >>>that. > >> > >>That's not difficult - something like this: > >> > >> Dim txt As TextBox > >> Set txt = Me!txtYourTextBox > >> > >> txt.DefaultValue = txt.Value > >> > >> Set txt = Nothing > >> > >>However, DefaultValue should be a string which means that if your > >>textbox contains decimals or a date/time value you must be careful and > >>convert to a string in US format: > >> > >> txt.DefaultValue = LTrim(Str(txt.Value)) > >> > >>or > >> > >> txt.DefaultValue = _ > >> Format(txt.Value, "\#mm\/dd\/yyyy hh\:nn\:ss AM/PM\#") > >> > >>/gustav > >> > >>>>Tough day? No coffee? > >>>> > >>>>Set the DefaultValue at OnCurrent. > >>>> > >>>>As for Stuart's note on the KeyPreview, it's not a user feature, but a > >>>>property of the form. > >>>> > >>>>/gustav > >>>> > >>>>>when a user clicks the 'Add new record' button (s)he wants the data of > the current record to be displayed in the new record. > >>>>>So if a user is on record 999 with field username filled with AAA and > then clicks on 'Add new record' then a new record (1000) must appear with > the field username filled with AAA. > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter 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 --------------------------------- Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter 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 stuart at lexacorp.com.pg Fri Apr 2 16:57:14 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 03 Apr 2004 08:57:14 +1000 Subject: [AccessD] ORDER BY BUG using Date format AARHG In-Reply-To: <2F8793082E00D4119A1700B0D0216BF802227A6B@main2.marlow.com> Message-ID: <406E7C6A.9761.F97A3@localhost> On 2 Apr 2004 at 9:45, DWUTKA at marlow.com wrote: > Because Format() returns a string, To be strictly correct, Format() returns a variant of type String. Format$() returns a string. Most of the string manipulation functions have two varieties , with and without a trailing "$". Leaving the "$" off returns a variant with the additional overhead and potential problems of using that data type. It's a good idea use the specific version wherever possible. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From stuart at lexacorp.com.pg Fri Apr 2 17:03:28 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 03 Apr 2004 09:03:28 +1000 Subject: [AccessD] Re: Vertical Lines in a Report In-Reply-To: <406D7764.000003.72847@jedel> Message-ID: <406E7DE0.9331.15506B@localhost> On 2 Apr 2004 at 23:53, Dean Ellis wrote: > Everyone, > > Thanks for your replies to this post. > > Dazza, The code you gave me works and I did a similar thing to start with, > the problem i'm having is the height of the line isn't changing with the > Growth of the Memo boxes that are between the two horizontal lines. and > because of this, I get a big gap between the bottom line and the bottom of > the vertical line. > > The othe rtwo sets of code that were posted worked as well, but they only > gave me the hieght of the line, but it was always the full height of the > detail section of the report. I want to specify the top position to join the > ned of a horizontal line and make the bottom end of the vertical line > postion relative to the size of the text boxes set at "Can Grow" so that the > vertical lines will alway join top and bottom. > The bottom horizontal line will be moved by the memo box above it growing, so just set the height of the verticle line to the distance between the horizontal lines. lneLeftVertical.Height = lneBottomHorizontal.Top - lneTopHorizontal.Top -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From DWUTKA at marlow.com Fri Apr 2 17:07:42 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Fri, 2 Apr 2004 17:07:42 -0600 Subject: [AccessD] ORDER BY BUG using Date format AARHG Message-ID: <2F8793082E00D4119A1700B0D0216BF802227A6E@main2.marlow.com> Good point. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stuart McLachlan Sent: Friday, April 02, 2004 4:57 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] ORDER BY BUG using Date format AARHG On 2 Apr 2004 at 9:45, DWUTKA at marlow.com wrote: > Because Format() returns a string, To be strictly correct, Format() returns a variant of type String. Format$() returns a string. Most of the string manipulation functions have two varieties , with and without a trailing "$". Leaving the "$" off returns a variant with the additional overhead and potential problems of using that data type. It's a good idea use the specific version wherever possible. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Fri Apr 2 19:40:51 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Fri, 02 Apr 2004 17:40:51 -0800 Subject: [AccessD] Portugal In-Reply-To: <3812436152.20040402122255@cactus.dk> Message-ID: Hi Gustav: Try again in August....? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock Sent: Friday, April 02, 2004 2:23 AM To: AccessD at databaseadvisors.com Subject: [AccessD] Portugal Hi all I'll be visiting Portugal next week. Would any listers be present in the Lisboa area to meet for a glass of port? /gustav -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From kathryn at bassett.net Sat Apr 3 00:39:59 2004 From: kathryn at bassett.net (Kathryn Bassett) Date: Fri, 2 Apr 2004 22:39:59 -0800 Subject: [AccessD] "See ya" in a few days In-Reply-To: Message-ID: <200404030640.i336e2jk051635@mxsf20.cluster1.charter.net> Nope, I was fully backed up, data-wise. The problem is the amount of time it takes to re-load all the programs I have to load and set the various configurations the way I had them. I've updated to Office 2003, and opened a few of my .mdb's with no problem, so guess that works ok. I'm getting used to the new Outlook, but was looking forward to it. Having a problem with synchronizing BeyondContacts though - it tells me "Synchronization was skipped because the profile you selected to synchronize with in HotSync Custom is different from the one that Outlook is opened to. Please select the profile you wish to synchronize with in Hotsync Custom and either close Outlook, or open it in the profile you have selected." Will probably have to wait til Monday to call them and find out how to fix this. Got my genealogy program running. Bought a cordless keyboard - love that! (Remember, I use my laptop like a desktop - external everything). Since my new laptop (Sony PCG-GRT300Z http://shop1.outpost.com/product/3939768) has an 80gig hd, I bought a new external that size too, so I can do full backups. That's what saved my but when the other one crashed. I use a program called SecondCopy and run that every night when I'm finished for the eve (and play FreeCell while it's backing up). Haven't got Dreamweaver up yet, so behind on my webmastering. That's next. Tomorrow, I'm taking a break. We are going with some other local Hams on a "road trip" to see the poppy fields (http://www.calparksmojave.com/poppy/index.html). -- Kathryn Rhinehart Bassett (Pasadena CA) "Genealogy is my bag" "GH is my soap" kathryn at bassett.net http://bassett.net > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Jim Lawrence (AccessD) > Sent: 01 Apr 2004 7:49 am > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] "See ya" in a few days > > Hi Kathryn: > > Hope you have not lost anything important, that you can not > recover from somewhere. > > Good luck > Jim From gustav at cactus.dk Sat Apr 3 04:40:34 2004 From: gustav at cactus.dk (Gustav Brock) Date: Sat, 3 Apr 2004 12:40:34 +0200 Subject: [AccessD] ORDER BY BUG using Date format AARHG In-Reply-To: <406E7C6A.9761.F97A3@localhost> References: <406E7C6A.9761.F97A3@localhost> Message-ID: <423777461.20040403124034@cactus.dk> Hi Stuart I never understood the difference. Contrary to what you tell, I've learned as well, and the on-line help (A97) tells, both return VarType vbString (8). How could one ever tell a difference between 8 and 8? This could be a subject for Susan: Why always use ..$() when possible, when nearly no one does ... /gustav > To be strictly correct, Format() returns a variant of type String. > Format$() returns a string. > Most of the string manipulation functions have two varieties , with > and without a trailing "$". Leaving the "$" off returns a variant > with the additional overhead and potential problems of using that > data type. It's a good idea use the specific version wherever > possible. From jwcolby at colbyconsulting.com Sat Apr 3 05:38:40 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sat, 3 Apr 2004 06:38:40 -0500 Subject: [AccessD] ORDER BY BUG using Date format AARHG In-Reply-To: <423777461.20040403124034@cactus.dk> Message-ID: Gustav, The differences center around the fact that the result is returned as a variant if you don't use the $. The obvious differences are: 1) Specified datatypes are faster. Variants supposedly carry a penalty since they have to be "interpreted" to figure out what they are. 2) A Variant can be coerced without warning into another datatype. This may be exactly what you want and then it's ok. For example if the string holds a date, and you try to return the $ function into a variable dimensioned as date, it will complain and you will know that is happening. If you return the function without the $ it will just be coerced into a date and you will never know. Again, you may indeed be aware that the string is a date and WANT it coerced, but if your intention is to keep it in string format and inadvertently dim the destination as a date instead of a string, then one function will immediately make you aware of your error. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock Sent: Saturday, April 03, 2004 5:41 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] ORDER BY BUG using Date format AARHG Hi Stuart I never understood the difference. Contrary to what you tell, I've learned as well, and the on-line help (A97) tells, both return VarType vbString (8). How could one ever tell a difference between 8 and 8? This could be a subject for Susan: Why always use ..$() when possible, when nearly no one does ... /gustav > To be strictly correct, Format() returns a variant of type String. > Format$() returns a string. > Most of the string manipulation functions have two varieties , with > and without a trailing "$". Leaving the "$" off returns a variant > with the additional overhead and potential problems of using that > data type. It's a good idea use the specific version wherever > possible. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Sat Apr 3 06:59:21 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 03 Apr 2004 22:59:21 +1000 Subject: [AccessD] ORDER BY BUG using Date format AARHG In-Reply-To: <423777461.20040403124034@cactus.dk> References: <406E7C6A.9761.F97A3@localhost> Message-ID: <406F41C9.8160.31290B7@localhost> On 3 Apr 2004 at 12:40, Gustav Brock wrote: > Hi Stuart > > I never understood the difference. Contrary to what you tell, I've > learned as well, and the on-line help (A97) tells, both return VarType > vbString (8). > How could one ever tell a difference between 8 and 8? > > This could be a subject for Susan: > > Why always use ..$() when possible, when nearly no one does ... > 1. Because it's more efficient. a. it uses less storage for the variable b. it avoids the overhead of interpreting the type every time it is referenced 2. It prevents accidental type conversion when you don't intend it. Variant "coercion" can introduce subtle bugs into your code which are difficult to isolate. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From gustav at cactus.dk Sat Apr 3 07:53:34 2004 From: gustav at cactus.dk (Gustav Brock) Date: Sat, 3 Apr 2004 15:53:34 +0200 Subject: [AccessD] ORDER BY BUG using Date format AARHG In-Reply-To: <423777461.20040403124034@cactus.dk> References: <406E7C6A.9761.F97A3@localhost> <423777461.20040403124034@cactus.dk> Message-ID: <17115358223.20040403155334@cactus.dk> Hi John and Stuart Yes, I know about type declarations and variables - I only use Variant when Null is an acceptable "value". But that was not my question ... Dim strVar As String Now, 1. or 2.: 1. strVar = Str(1234) 2. strVar = Str$(1234) Both Str() and Str$() cannot return anything but a string - the only difference I can find is that Str$() returns a string while Str() should return a variant with the undertype String. But why would I care? Isn't a string a string? Speed could be a concern. But testing with a loop with 2 mio. iterations doesn't show any difference between Str() and Str$(). So do we see ghosts here? Why would I go on typing unneeded $ signs? /gustav > I never understood the difference. Contrary to what you tell, I've > learned as well, and the on-line help (A97) tells, both return VarType > vbString (8). > How could one ever tell a difference between 8 and 8? > This could be a subject for Susan: > Why always use ..$() when possible, when nearly no one does ... > /gustav >> To be strictly correct, Format() returns a variant of type String. >> Format$() returns a string. >> Most of the string manipulation functions have two varieties , with >> and without a trailing "$". Leaving the "$" off returns a variant >> with the additional overhead and potential problems of using that >> data type. It's a good idea use the specific version wherever >> possible. From HollisVJ at pgdp.usec.com Sat Apr 3 11:50:24 2004 From: HollisVJ at pgdp.usec.com (Hollis,Virginia) Date: Sat, 03 Apr 2004 11:50:24 -0600 Subject: [AccessD] AllowEdits on Subform Message-ID: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D504@cntexchange.pgdp.usec.com> How do you prevent/allow Edits on a subform? I have a command button that is used to Edit a record. The form does not allow edits without using the Edit Record button. The problem is that the subform still allows edits without using the Edit Record button. Virginia From andy at minstersystems.co.uk Sat Apr 3 13:53:29 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Sat, 3 Apr 2004 20:53:29 +0100 Subject: [AccessD] AllowEdits on Subform In-Reply-To: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D504@cntexchange.pgdp.usec.com> Message-ID: <007d01c419b5$5614b870$b274d0d5@minster33c3r25> A subform has its own AllowEdits property Virginia. You can control it with the following code: Me!subControl.Form.AllowEdits = True/False -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Hollis,Virginia > Sent: 03 April 2004 18:50 > To: 'accessd at databaseadvisors.com' > Subject: [AccessD] AllowEdits on Subform > > > How do you prevent/allow Edits on a subform? > > I have a command button that is used to Edit a record. The > form does not allow edits without using the Edit Record > button. The problem is that the subform still allows edits > without using the Edit Record button. > > Virginia > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > From ssharkins at bellsouth.net Sun Apr 4 15:02:40 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Sun, 4 Apr 2004 16:02:40 -0400 Subject: [AccessD] OT: good book Message-ID: <20040404200300.ZMYZ1763.imf25aec.mail.bellsouth.net@SUSANONE> http://www.codertodeveloper.com/ ====No personal affiliation -- just a good reference. Susan H. From d.dick at uws.edu.au Sun Apr 4 18:07:33 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Mon, 5 Apr 2004 09:07:33 +1000 Subject: [AccessD] A2K Increase Year by 1 Message-ID: <00c801c41a99$9ce617a0$48619a89@DDICK> Hello all Brain fade here It's Monday morning and everything is just as you would expect a Monday to be I have a dB that holds dates of Occurrences I have a need to increase the 'year' portion only of that date by 1 eg 31/01/2001 now needs to become 31/01/2002 There are hundreds of 'em though so doing it manually isn't an option. I just need a quick query to update 'em all. I actually have done this is the past (on the same dB actually) but can't recall how I did it Many thanks in advance Darren From jwcolby at colbyconsulting.com Sun Apr 4 18:19:24 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sun, 4 Apr 2004 19:19:24 -0400 Subject: [AccessD] A2K Increase Year by 1 In-Reply-To: <00c801c41a99$9ce617a0$48619a89@DDICK> Message-ID: DateAdd JWC -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Darren DICK Sent: Sunday, April 04, 2004 7:08 PM To: AccessD List Subject: [AccessD] A2K Increase Year by 1 Hello all Brain fade here It's Monday morning and everything is just as you would expect a Monday to be I have a dB that holds dates of Occurrences I have a need to increase the 'year' portion only of that date by 1 eg 31/01/2001 now needs to become 31/01/2002 There are hundreds of 'em though so doing it manually isn't an option. I just need a quick query to update 'em all. I actually have done this is the past (on the same dB actually) but can't recall how I did it Many thanks in advance Darren -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From demulling at centurytel.net Sun Apr 4 18:24:41 2004 From: demulling at centurytel.net (Demulling Family) Date: Sun, 04 Apr 2004 18:24:41 -0500 Subject: [AccessD] A2K Increase Year by 1 In-Reply-To: <00c801c41a99$9ce617a0$48619a89@DDICK> References: <00c801c41a99$9ce617a0$48619a89@DDICK> Message-ID: <40709939.5060402@centurytel.net> Darren DICK wrote: >Hello all >Brain fade here >It's Monday morning and everything is just as you would expect a Monday to be >I have a dB that holds dates of Occurrences >I have a need to increase the 'year' portion only of that date by 1 >eg 31/01/2001 now needs to become 31/01/2002 >There are hundreds of 'em though so doing it manually isn't an option. >I just need a quick query to update 'em all. I actually have done this is the past >(on the same dB actually) but can't recall how I did it > >Many thanks in advance > >Darren > > > DateAdd("yyyy",1,<>) From d.dick at uws.edu.au Sun Apr 4 19:05:07 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Mon, 5 Apr 2004 10:05:07 +1000 Subject: [AccessD] A2K Increase Year by 1 References: Message-ID: <019301c41aa1$a7b80b90$48619a89@DDICK> Excellent Thanks John ----- Original Message ----- From: "John W. Colby" To: "Access Developers discussion and problem solving" Sent: Monday, April 05, 2004 9:19 AM Subject: RE: [AccessD] A2K Increase Year by 1 > DateAdd > > JWC > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Darren DICK > Sent: Sunday, April 04, 2004 7:08 PM > To: AccessD List > Subject: [AccessD] A2K Increase Year by 1 > > > Hello all > Brain fade here > It's Monday morning and everything is just as you would expect a Monday to > be > I have a dB that holds dates of Occurrences > I have a need to increase the 'year' portion only of that date by 1 > eg 31/01/2001 now needs to become 31/01/2002 > There are hundreds of 'em though so doing it manually isn't an option. > I just need a quick query to update 'em all. I actually have done this is > the past > (on the same dB actually) but can't recall how I did it > > 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 Sun Apr 4 19:08:18 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Mon, 5 Apr 2004 10:08:18 +1000 Subject: [AccessD] A2K: Stop User from oving to new record Message-ID: <019901c41aa2$199277f0$48619a89@DDICK> Hello all I have a simple subform with 4 fields on it ID (PK), txtDateOfOccurence, cboClientName, cboOffence How can I tell if the user goes to a new record and they have not completed ALL fields in the previous record How do I alert them and then direct them back to the previous record? many thanks Darren From carbonnb at sympatico.ca Sun Apr 4 19:25:35 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Sun, 04 Apr 2004 20:25:35 -0400 Subject: [AccessD] A2K: Stop User from oving to new record In-Reply-To: <019901c41aa2$199277f0$48619a89@DDICK> Message-ID: <40706F3F.16231.9E7B12@localhost> On 5 Apr 2004 at 10:08, Darren DICK wrote: > I have a simple subform with 4 fields on it > ID (PK), txtDateOfOccurence, cboClientName, cboOffence > > How can I tell if the user goes to a new record and they have not > completed ALL fields in the previous record How do I alert them and > then direct them back to the previous record? Use the before update event of the form. Check to make sure they entered a vale and if not set Cancel = true in the event. That should prevent the record from being saved and keep the sub form on the "unfinished" record -- Bryan Carbonnell - carbonnb at sympatico.ca The trouble with doing something right the first time is that nobody appreciates how difficult it is. From d.dick at uws.edu.au Sun Apr 4 19:37:36 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Mon, 5 Apr 2004 10:37:36 +1000 Subject: [AccessD] A2K Increase Year by 1 References: <00c801c41a99$9ce617a0$48619a89@DDICK> <40709939.5060402@centurytel.net> Message-ID: <01b401c41aa6$31734df0$48619a89@DDICK> That was it Thanks Demulling Family ----- Original Message ----- From: "Demulling Family" To: "Access Developers discussion and problem solving" Sent: Monday, April 05, 2004 9:24 AM Subject: Re: [AccessD] A2K Increase Year by 1 > Darren DICK wrote: > > >Hello all > >Brain fade here > >It's Monday morning and everything is just as you would expect a Monday to be > >I have a dB that holds dates of Occurrences > >I have a need to increase the 'year' portion only of that date by 1 > >eg 31/01/2001 now needs to become 31/01/2002 > >There are hundreds of 'em though so doing it manually isn't an option. > >I just need a quick query to update 'em all. I actually have done this is the past > >(on the same dB actually) but can't recall how I did it > > > >Many thanks in advance > > > >Darren > > > > > > > DateAdd("yyyy",1,<>) > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sun Apr 4 20:30:37 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sun, 4 Apr 2004 21:30:37 -0400 Subject: [AccessD] Framework Discussion - Moving to a library Message-ID: Framework ? Moving to a Library For the purposes of this lecture, the framework is approaching a useable state. We now have: ? A framework class that initializes the framework service classes. ? SysVars that can be used to modify program flow and turn on / off behaviors or modify how behaviors work. ? A form class that has a functioning control scanner finding specific control types and loading class instances for these controls. ? Control classes that are loaded by the form?s control scanner. ? A troubleshooting class that logs (or can log) all classes loading and unloading to assist troubleshooting unloading problems. ? Service classes such as Zip which can be loaded as the application requires. >From this point forward, the lectures will concentrate on how to add functionality to the framework, adding in more service classes, more control classes, and adding behaviors to the form and control classes as we run across useful things that we want available to all of our applications. However a framework is not very useful if it has to be inside the Application FE. What we need to do next is create the typical FE/BE system and reference the framework as a library in an MDA / MDB. This presents a few challenges, but it also allows us to easily ?exchange? the library for a new version without damaging the application?s data. The process of moving our demo framework to a FE/BE is reasonably easy. All we do is: ? Create an FE and export the forms / queries / reports to that, leaving all the classes here in the original container. ? Create a BE and export the tables to that. ? Link the FE to the tables in the BE ? Change the name of the framework to an MDA extension ? Reference the framework library from the FE. ? Delete the forms / queries / reports / tables from the framework library. ? Expose dclsFrm The library is Referenced by selecting from the menu while in any module, Tools / References, click Browse and navigate to the directory where the copy of the library is stored, then selecting it. Having done these things we are ready to use the framework as a referenced lib. There is a small downside to working this way, namely the requirement to relink the tables as you get the demos. I have moved the entire directory from my normal development drive to the c: drive, c:\ C2DbFW3G so that if you place it there the table links will always work when you get the latest version. Using a class factory One process required when moving to a library is to make the classes that you need to reference from inside the FE can be found by your code. There are at least two ways to do this. The simplest is to build a wrapper class inside the library that looks something like this: Public function cFrm() as dclsFrm Set cfrm = new dclsFrm End function This is a class factory that gets a new instance of that class and returns a pointer to it. This method works well and like most things has pluses and minuses to it. The plus is that you don?t have to expose the class itself which we shall see in a minute is a little more work. The minus is that there is no intellisense available, and when we are dealing with classes, that is a pretty big minus. Exposing a class directly Another way to do this is to expose the class directly using an undocumented feature in Access. In order to do this we need to export the class module to a text file, edit the text file, delete the original class module in the library, and import the modified class text file back into the library. Export the class To export a class to a text file we need to: ? Go to the database window. ? Click the modules tab ? Click on a class module to select it ? Click File / Export ? A File Find dialog box will open. Navigate to the directory for this project. ? Create a Classes directory if none exists already, then navigate to that directory ? Select save as type: Text files in the bottom combo of the File Find dialog ? Add a .txt to the file name ? Click the Save button. Next we need to edit the text file in Wordpad. ? Using Windows Explorer, navigate to the file we just created. If you followed the instructions above it should be in a class subdirectory under the project directory for this framework. ? Open the file just exported The top of the file should look similar to: VERSION 1.0 CLASS BEGIN MultiUse = -1 'True END Attribute VB_Name = "clsFramework" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = True Attribute VB_Exposed = False Option Compare Database Option Explicit ? We can then remove the VERSION line and the BEGIN/END section plus the two Option lines so that all that remains (of that section) is: Attribute VB_Name = "clsFramework" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = True Attribute VB_Exposed = False ? Next we need to edit this section, specifically we need to change VB_Creatable to True, and VB_Exposed to True Attribute VB_Name = "clsFramework" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = True Attribute VB_PredeclaredId = True Attribute VB_Exposed = True ? Save the file and exit Wordpad. At this point the class is edited and ready to import back into the library. ? In the library, delete the class that we are working on. ? Now from the menu Click Insert / Class module, then Insert / File. Use the file find dialog to navigate to the directory where the class txt file is located and select that file. The contents will load into the empty class module we just created. ? On the menu click Debug/Compile just to check that everything is working properly. If not fix the compile errors. There should be no errors but if you failed to edit the header of the class in the text file you could get some stuff up there (like duplicate Option statements). ? Once it compiles, on the menu click File / Save. It will ask if you want to save the class and will offer you a name. Just click yes. You have finished the process of making a class ?visible? from outside of the library. Standard Disclaimer: This is an ?undocumented? procedure which means that Microsoft may at any moment pull some stunt that makes this not work. However this method works from Access97 up through AccessXP and probably A2003 (I haven?t personally tested that last). Using a library Using a library is more complex than having all of your code inside the FE, however the pluses far outweigh the minuses. Some issues in no particular order: ? When you are running code in the library ?from? a FE, you can edit the code in the library but those edits are not permanent. The library is ?read only? and you are just making changes to the code loaded in memory (more or less). ? A result of the above is that in order to make changes permanent you must work in a completely different copy than the one referenced by the project. In other words, even if you were to open the library from another instance of Access, any attempt to make edits will cause Access to inform you that the changes will not be saved. ? In fact, if I remember correctly, this is not true for A97, it could indeed make changes to the lib from another instance of Access and make them stick, but from A2K onwards you cannot do that. Thus you need to always have a ?referenced? library and a ?working? library in different directories. The ?referenced? library is of course referenced by the application and in use when the App is open. The ?working? library is the copy that you modify with changes that you wish to become permanent. ? Libraries can be shared, i.e. multiple users can reference the lib. However it is more often the case that (in a multi-user environment) we will download both the FE and the BE to a local directory on the user?s hard drive. This brings up another issue, if the reference is ?broken?, i.e. the library cannot be found in the location that the reference says it should be, then Access will automatically search a ?path? in an attempt to find the file. I can?t find information about the exact file path at the moment but I know that Access will search the Windows directory, System32 and the current application directory, I believe in that order. This means that you can drop your framework in any of those locations and even if the application has the reference to some other place, the lib will be found and the broken reference will be fixed automatically. If the referenced library is not found, then a ?broken reference? will be visible in the Reference wizard and you will need to fix it manually. ? You also have to initialize the framework before initializing anything else so that the framework is up and running by the time the application and its forms try and use it. In addition the framework has to be unloaded when the application closes. It is possible for objects loaded by the framework to prevent Access closing so we have to have a failsafe method of unloading every time. I do this by loading a form usysfrmFWCleanup in the framework?s Init() function and calls the framework?s Term() function from its Close event. This form resides in the framework library. Since Access cannot close without closing all forms, regardless of how it occurs the application closing will close this form which cleans up the framework. Because closing this form unloads the framework, I also call Application.Quit acQuitSaveNone. Users are not supposed to be closing this form (or even seeing it). If the form is closed for any reason, the application will not function correctly so I just close the Application. Ordinarily this form closes because the application is already closing, but if it is closed accidentally, the application will be closed as well. These are some of the issues that must be considered when using a library. However the alternative of placing all such code directly in the FE causes immense maintenance issues if you have more than one project. A library is used precisely because a fix to a single library and a redistribution of that library will fix a bug or problem for every project that uses that lib. Likewise adding a behavior to a lib will provide that behavior automatically to every project that uses the library. Sysvars Using SysVars in a framework / Library is probably not familiar to most developers so I will take a few moments to discuss how we implement framework overrides. As we have seen in past lectures, the SysVars are used to turn on/off or otherwise modify behaviors that the framework makes available to the developer / application. In order to really be useful however we have to be able to change the default behaviors from inside of the application. The way we do this is to copy the framework SysVar table into the FE. We will leave a copy of those SysVars that we want this specific application to be able to override. Now, by setting the SysVars to whatever state we desire for this Application and merging in the SysVar table in the application, we can perform the Override. I have done this in the demo for this lecture. I have also added two more SysVar systems to the Framework, one for the Application control (code) and the other for the Application Data. These two SysVars are so common that I just include them right in the framework so that all the developer has to do is run the Init method and start using them. The Application?s control SysVar table is usually embedded in the FE so that the SysVars controlling the Application travel with the FE container. The Application?s data SysVar table is generally placed in the BE so that things like Company information etc. do not get corrupted when a new Framework or FE is distributed. The additional code for consist of two additional variables in the framework class? header: Private mclsSVAppCont As clsSysVars Private mclsSVAppData As clsSysVars Then in the framework?s Initialize we SET these variables: Set mclsSVAppCont = New clsSysVars Set mclsSVAppData = New clsSysVars We add a new set of functions to initialize the framework instance, return a pointer to the class instance and return a SysVar from each Instance. One set for the Application Control: ' 'Initialize the SysVars for the Application Control ' Public Function SVAPPContInit(strTblName As String) mclsSVAppCont.Init Nothing, gcnn, strTblName End Function ' 'Get a pointer to the Application Control SV class instance ' Public Function cSVAppCont() As clsSysVars Set cSVAppCont = mclsSVAppCont End Function ' 'Return SysVars from the Application Control SysVar class ' Public Function SVAppCont(strSVName As String) As Variant SVAppCont = mclsSVAppCont.SV(strSVName) End Function And one set for the Application Data: ' 'Initialize the SysVars for the Application Data ' Public Function SVAPPDataInit(strTblName As String) mclsSVAppData.Init Nothing, gcnn, strTblName End Function ' 'Get a pointer to the Application Data SV class instance ' Public Function cSVAppData() As clsSysVars Set cSVAppData = mclsSVAppData End Function ' 'Return SysVars from the Application Data SysVar class ' Public Function SVAppData(strSVName As String) As Variant SVAppData = mclsSVAppData.SV(strSVName) End Function I have exposed the SysVars class so that you can easily instantiate your own SysVars if you need more than the Application Control and Application Data SysVars provided by the framework. In order to demonstrate using these two SysVar sets, I have created a label in the switchboard that displays a version number in the format YYYY.MM.DD. The visible property of this label is set to false. In the FE I created the table usystblAppCont where I set a DisplayVersion SysVar = True. In the application?s init() I called the SVAPPDataInit method of the framework: Function AppInit() If Not blnAppInitialized Then 'initialize the framework fwinit blnAppInitialized = True fw.SVAPPContInit "usystblAppCont" fw.SVAPPDataInit "usystblAppData" End If End Function This has the effect of loading all the SysVars in usystblAppCont (there?s only one at the moment). Then in the switchboard?s Open event I set lblVersion.Visible to the value in the SysVar table. Private Sub Form_Open(Cancel As Integer) ' Minimize the database window and initialize the form. AppInit ' Move to the switchboard page that is marked as the default. Me.Filter = "[ItemNumber] = 0 AND [Argument] = 'Default' " Me.FilterOn = True lblVersion.Visible = fw.SVAppCont("DisplayVersion") txtDeveloper = fw.SVAppData("Developer") & vbCrLf & fw.SVAppData("DevEmail") End Sub Since I have the DisplayVersion set to True in the table, the label will be visible. This demonstrates the usage of SysVars to control Application behaviors. Likewise I added a table to the BE called usystblAppData and linked that into the FE. In that table I added two SysVars, Developer and DevEMail. I then created a txtDeveloper text box on the switchboard that displays this information. Notice that this one pulls its data from fw.SVAppData. Now as the switchboard opens it pulls these developer SysVars out of the BE. Perhaps Developer data wasn?t the best thing to use for Application data but I didn?t particularly want to put my TaxID in there. As you can see the end user of the system can load their data into this table and have it displayed in the switchboard, report footers etc. SysVars can be used for many purposes, but the Framework control, Application control and Application data are so common that I just include these three SysVar tables right in the framework for immediate use. Modifications The modifications required when we move to an FE consist of building an AppInit() and calling it from somewhere. Private blnAppInitialized As Boolean Function AppInit() If Not blnAppInitialized Then 'initialize the framework fwinit blnAppInitialized = True End If End Function Notice that we set a Boolean so that if the function is called multiple times it will only execute once. You can then place any code that you need to initialize in this function as well. To run this code the options are an Autoexec macro or a splash screen or switchboard. To keep things simple I just built a very simple switchboard and then call this function from the Open of that switchboard. Private Sub Form_Open(Cancel As Integer) AppInit End Sub We then open usysFrmFWCleanup from the FWInit() ' 'The init function for the framework ' Public Function FWInit() If mblnFWInitialized = False Then ' mblnFWInitialized = True DoCmd.OpenForm "usysFrmFWCleanup", , , , , acHidden Set mfwcnn = CodeProject.Connection Set mcnn = CurrentProject.Connection Randomize Set mclsInstanceStack = New clsInstanceStack mclsInstanceStack.Init Nothing Set mclsFramework = New clsFramework mclsFramework.Init Nothing End If End Function I built a simple form called usysFrmFWCleanup with code in that form?s Close event which cleans up and forces the app closed if that form is closed. Private Sub Form_Close() FWTerm On Error Resume Next Application.Quit acQuitSaveNone End Sub Opening the switchboard calls APPInit() which calls FWInit() which initializes the framework and loads usysFrmFWCleanup. Closing the app in any manner forces usysFrmFWCleanup to close. usysFrmFWCleanup closing calls FWTerm() cleaning up the framework and forcing Access to close if it wasn?t already.. Summary In order to be useful the framework has to be split off into a library. Doing this causes a handful of issues that you have to be aware of. We may need to expose classes using the method shown above ? I have already exposed dclsFrm so that the forms would work correctly. It also requires setting up init and cleanup code so that the framework is shutdown reliably as the app closes. Additionally we need to add a new pair of SysVar instances for the developer to use for control of the Application and data for the Application. >From this point forward, the lectures will focus on adding functionality to the framework, generally to the form class or control class or both in order to implement some behavior that the developer has found useful, has found or developed code for, and now wishes to make available to all his projects by moving that behavior to the framework. In order to use the library we need to take the steps to break out the FE / BE and library modules into separate containers. I have outlined the process in the top of this document and have actually performed this process and provided a set of three mdb containers ? the FE/BE and Library. I do not intend to leave the demo broken into the three pieces however; I only did so to demonstrate the process and what goes where. For the purposes of writing a demo and allowing me and the readers following this lecture series to easily work with the demos it is much more helpful in a single file. I don?t want to lose any readers because they can?t deal yet with the nitty gritty of actually doing development in three parts, getting references working, getting table links fixed etc. Therefore this document and associated files actually consist of the three MDBs but the next document will have them merged back into a single file. The framework is ready however, and can be split out again at a moment?s notice. John W. Colby www.ColbyConsulting.com From d.dick at uws.edu.au Sun Apr 4 20:28:42 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Mon, 5 Apr 2004 11:28:42 +1000 Subject: [AccessD] A2K: Stop User from oving to new record References: <40706F3F.16231.9E7B12@localhost> Message-ID: <01c501c41aad$5502fca0$48619a89@DDICK> Hi Bryan I did that no joy eg. Private Sub Form_BeforeUpdate(Cancel As Integer) If IsNull(Me.cmbOffence) Or Me.cmbOffence = "" Then MsgBox "Enter an offence" Cancel = True End If End Sub What I need to do is somehow test if the user is on a new fresh record or has left th previous record with unfilled combos. Of course I can do it on the lost and got focus event.Thats fine whilst I am in the record EG record 5 has no offence recorded User goes to record 6 How do i alert the user that record 5 has a missing value then go back to that record? ----- Original Message ----- From: "Bryan Carbonnell" To: "Access Developers discussion and problemsolving" Sent: Monday, April 05, 2004 10:25 AM Subject: Re: [AccessD] A2K: Stop User from oving to new record > On 5 Apr 2004 at 10:08, Darren DICK wrote: > > > I have a simple subform with 4 fields on it > > ID (PK), txtDateOfOccurence, cboClientName, cboOffence > > > > How can I tell if the user goes to a new record and they have not > > completed ALL fields in the previous record How do I alert them and > > then direct them back to the previous record? > > Use the before update event of the form. Check to make sure they > entered a vale and if not set Cancel = true in the event. That should > prevent the record from being saved and keep the sub form on the > "unfinished" record > > -- > Bryan Carbonnell - carbonnb at sympatico.ca > The trouble with doing something right the first time is that nobody > appreciates how difficult it is. > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sun Apr 4 20:31:46 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sun, 4 Apr 2004 21:31:46 -0400 Subject: [AccessD] Framework Discussion - Moving to a library Message-ID: As always, the demo is up on my site and can be downloaded from there with the email in .DOC format. John W. Colby www.ColbyConsulting.com From d.dick at uws.edu.au Sun Apr 4 21:26:50 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Mon, 5 Apr 2004 12:26:50 +1000 Subject: [AccessD] A2K: Stop User from oving to new record Message-ID: <01eb01c41ab5$744b2120$48619a89@DDICK> Hello all In relation to stopping a person moving to another record before the previous one is complete... I put some validation rules on the table. Now it's working fine.....almost Does anyone know the err number Access throws up when table level validation is not met? If anyone does know, how do I trap it at form level and throw up my own message box? Many thanks Darren From accessd667 at yahoo.com Mon Apr 5 02:43:21 2004 From: accessd667 at yahoo.com (S D) Date: Mon, 5 Apr 2004 00:43:21 -0700 (PDT) Subject: [AccessD] ORDER BY BUG using Date format AARHG In-Reply-To: <4425303804.20040402155722@cactus.dk> Message-ID: <20040405074321.14087.qmail@web61106.mail.yahoo.com> The bug was that users used diff regional settings (dutch and US) and with short dates that resulted in problems 6-1-2003 is in Holland 6 january, in US its june first.... I set the format property for all date fields to dd-mmm-yyyy Sander Gustav Brock wrote: Hi Sander Well - but what is the bug and how did you solve it? /gustav > Hi gustav, > I've solved the problem. Twas a nasty one. > but euh try it if you want. create a table with a date field like below and run the query...no go! > Thanx anyway. > Sander > Gustav Brock wrote: > Hi Sander > Your "stupid" test is correct as it sorts DESC on a string. > Try this which I think is what Bert-Jan has in mind: > SELECT DISTINCT > Format([TblArbo].[Datum], "dd-mmm-yyyy") > FROM > TblArbo > ORDER BY > [TblArbo].[Datum] DESC; > /gustav >> I've got a combobox based on a query: >> SELECT DISTINCT [TblArbo].[Datum] >> FROM TblArbo >> ORDER BY [TblArbo].[Datum] DESC; >> Resulted in: >> 01-10-2003 >> 02-09-2003 >> 21-08-2001 >> The user asked if this could be printed in the following format: dd-mmm-yyyy >> No problem, says stupid me: >> SELECT DISTINCT Format([TblArbo].[Datum],"dd-mmm-yyyy") >> FROM TblArbo >> ORDER BY Format([TblArbo].[Datum],"dd-mmm-yyyy") DESC; >> But now the ORDER BY ONLY checks the DD part?!?!?!?! >> So this results in: >> 21-08-2001 >> 02-09-2003 >> 01-10-2003 >> ?!!??! What kind of nonsense is this? -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter today From HollisVJ at pgdp.usec.com Mon Apr 5 06:25:23 2004 From: HollisVJ at pgdp.usec.com (Hollis,Virginia) Date: Mon, 05 Apr 2004 06:25:23 -0500 Subject: [AccessD] AllowEdits on Subform Message-ID: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D505@cntexchange.pgdp.usec.com> Another one - what about Undo? I used Forms!frm_Vendor.frm_ContactsSub.Form.Undo but it does not undo the entry on the subform. Also, where you have Me!subControl - that is not the name of the form is it? Is it each control on the form? This is a tabbed form I placed the subform on one of the tabs. Virginia -----Original Message----- From: Andy Lacey [mailto:andy at minstersystems.co.uk] Sent: Saturday, April 03, 2004 1:53 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] AllowEdits on Subform A subform has its own AllowEdits property Virginia. You can control it with the following code: Me!subControl.Form.AllowEdits = True/False -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Hollis,Virginia > Sent: 03 April 2004 18:50 > To: 'accessd at databaseadvisors.com' > Subject: [AccessD] AllowEdits on Subform > > > How do you prevent/allow Edits on a subform? > > I have a command button that is used to Edit a record. The > form does not allow edits without using the Edit Record > button. The problem is that the subform still allows edits > without using the Edit Record button. > > Virginia > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > 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 Mon Apr 5 10:00:39 2004 From: bheid at appdevgrp.com (Bobby Heid) Date: Mon, 5 Apr 2004 11:00:39 -0400 Subject: [AccessD] Access XP - Can't create MDE. In-Reply-To: <916187228923D311A6FE00A0CC3FAA30806650@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA305BB3D8@ADGSERVER> Hey all, I have an app that has been compiling to an MDE fine for several months now. All of a sudden, it will not create an MDE. The app will compile, but when I go to create an MDE (it is in XP format), it asks where I want the output file to go, then sometimes I'll see the progress bar flash to 100%, then it does one of two things. It will either sit there forever (I have left it for 2 hours before) while still using 80-90% CPU utilization, or it will crash Access XP. Usually it just appears to lock up. Note that a normal compile takes maybe 1 minute. I am pretty sure that I have not installed any new software or anything. My coworker is able to pull form VSS and compile the app with no problems. I am running on Windows 2000 Pro, .5G Ram, 700Mhz P-III. Anyone have any ideas as to what may going wrong? Thanks, Bobby From bheid at appdevgrp.com Mon Apr 5 10:16:15 2004 From: bheid at appdevgrp.com (Bobby Heid) Date: Mon, 5 Apr 2004 11:16:15 -0400 Subject: [AccessD] Access XP - Can't create MDE. In-Reply-To: <916187228923D311A6FE00A0CC3FAA30807079@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA305BB3DA@ADGSERVER> Further info: I just tried again and it crashed this time. Here is the Error signature for the information that would be sent to MS. AppName: msaccess.exe AppVer: 10.0.4302.0 ModName: mso.dll ModVer: 10.0.4219.0 Offset: 00009777 Thanks, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Monday, April 05, 2004 11:01 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access XP - Can't create MDE. Hey all, I have an app that has been compiling to an MDE fine for several months now. All of a sudden, it will not create an MDE. The app will compile, but when I go to create an MDE (it is in XP format), it asks where I want the output file to go, then sometimes I'll see the progress bar flash to 100%, then it does one of two things. It will either sit there forever (I have left it for 2 hours before) while still using 80-90% CPU utilization, or it will crash Access XP. Usually it just appears to lock up. Note that a normal compile takes maybe 1 minute. I am pretty sure that I have not installed any new software or anything. My coworker is able to pull form VSS and compile the app with no problems. I am running on Windows 2000 Pro, .5G Ram, 700Mhz P-III. Anyone have any ideas as to what may going wrong? Thanks, Bobby -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From serbach at new.rr.com Mon Apr 5 10:33:19 2004 From: serbach at new.rr.com (Steven W. Erbach) Date: Mon, 5 Apr 2004 10:33:19 -0500 Subject: [AccessD] A2K: Help with Error accessing file Message-ID: <20040405103319.1451643778.serbach@new.rr.com> Dear Group, I have an Access 2000 FE/BE application loaded on a client's system in another city 90 miles away. I've been working with their network guy over the phone and he's sent me screen shots of error messages along the way. Here's the situation. The "master" MDB FE database is loaded on the server. I have the local people there create an MDE and place it in another folder so that's it's available for the users who download it to their workstations when a new version is ready. While working with my client's network guy, Bob, the MDE file SEEMS to be created all right; but once the compacting is finished and the FE starts up, the first form opens and he gets this message (it's an "i" message): The expression On Load you entered as the event property setting produced the following error: Error accessing file. Network connection may have been lost. * The expression may not result in the name of a macro, the name of a user-defined function, or [Event Procedure]. * There may have been an error evaluating the function, event, or macro. When he clicks OK the startup form (which is supposed to be hidden) is there on the screen and the application has halted. INVESTIGATION: 1) They don't have the Documentor installed so I can't see what the path is to the BE. 2) However, I do have a form (that I cobbed from Steve Nyberg) that shows all the links with their paths. When we attempt to open this form we get the message you see above. Click OK on the message and Nyberg's SeeLinks form opens but with nothing showing up regarding linked tables. 3) I can open the linked tables from the "master" front end. But when I open the table that contains the latest version number (part of the version upgrade system) I see something odd. This Versions table has one row. The table has a Default value of the Now() function in the VersionDate column. On my system when I look at the table I see the first row all right and in the 2nd (empty) row I see (AutoNumber) in the key field and today's date and time in the VersionDate column. On my client's system he sees #Name? in the VersionDate column in an empty row. He cannot add information in a new row because Access doesn't like the default value. So I had Bob remove the default value. I still get the main problem. 4) The users can still run the application from their workstations using the old version of the FE. There hasn't been any problem there. 5) The Startup form of the FE calls Carl Tribble's Auto-Linker to check the link status of the first table before the main switchboard menu appears. This is all working properly on the users' workstations. 6) I tried Compact and Repair on both the BE and the FE. No change in basic error. 7) I checked the references. They're all there. 8) Only thing I haven't done (at least that I know how to do) is a /decompile on the "master" FE on the server. I'm sorry about the length of this message. I somehow doubt that I would find the problem even if I were sitting at the workstation. Bob is very capable, so I'm sure he's relaying to me everything that he sees. At least my clients can still work with the older version of the app. I am just stumped why this error message appears in the "master" front end database. Any thoughts, other than "Well, why the heck do you let the user make an MDE in the first place, ya numbskull?!" Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "Congress is as trustworthy with money as a crack addict who is experimenting with heroin." - Dave Barry "Giving money and power to the government is like giving whiskey and car keys to teenage boys." - P. J. O'Rourke "Be thankful we're not getting all the government we're paying for." - Will Rogers "It could probably be shown by facts and figures that there is no distinctly American criminal class except Congress." - Mark Twain From bchacc at san.rr.com Mon Apr 5 10:59:28 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Mon, 5 Apr 2004 08:59:28 -0700 Subject: [AccessD] Access XP - Can't create MDE. References: <916187228923D311A6FE00A0CC3FAA305BB3DA@ADGSERVER> Message-ID: <007601c41b26$fa334df0$6601a8c0@HAL9002> Bobby: I would try making the mde on a different machine to see if the problem is related to the mdb or to the installation of access on the machine where it's currently failing. I would also try the broad spectrum anti-biotic approach - decompile the mdb. Then compact, compile, and see if it will make the mde. HTH Rocky Smolin Beach Access Software http://www.e-z-mrp.com ----- Original Message ----- From: "Bobby Heid" To: "'Access Developers discussion and problem solving'" Sent: Monday, April 05, 2004 8:16 AM Subject: RE: [AccessD] Access XP - Can't create MDE. > Further info: > > I just tried again and it crashed this time. Here is the Error signature > for the information that would be sent to MS. > > AppName: msaccess.exe AppVer: 10.0.4302.0 ModName: mso.dll > ModVer: 10.0.4219.0 Offset: 00009777 > > Thanks, > Bobby > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid > Sent: Monday, April 05, 2004 11:01 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Access XP - Can't create MDE. > > > Hey all, > > I have an app that has been compiling to an MDE fine for several months now. > All of a sudden, it will not create an MDE. > > The app will compile, but when I go to create an MDE (it is in XP format), > it asks where I want the output file to go, then sometimes I'll see the > progress bar flash to 100%, then it does one of two things. It will either > sit there forever (I have left it for 2 hours before) while still using > 80-90% CPU utilization, or it will crash Access XP. Usually it just appears > to lock up. Note that a normal compile takes maybe 1 minute. > > I am pretty sure that I have not installed any new software or anything. > > My coworker is able to pull form VSS and compile the app with no problems. > > I am running on Windows 2000 Pro, .5G Ram, 700Mhz P-III. > > Anyone have any ideas as to what may going wrong? > > Thanks, > Bobby > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From tuannj1810 at yahoo.com Mon Apr 5 11:13:45 2004 From: tuannj1810 at yahoo.com (tuan nguyen) Date: Mon, 5 Apr 2004 09:13:45 -0700 (PDT) Subject: [AccessD] MULTI ENTRY to database Message-ID: <20040405161345.12567.qmail@web60104.mail.yahoo.com> I am creating a customer database. the idea is that more than 2 people can come in the file and update the record. however, whenever there are more than 2 people on the file, there is a message something like "you dont have exclusive access to the file, yr work might not be saved"...(i set "shared" in tools/ options/advanced/ ) some times, other can not log on if i am on the file. then i have to get out before other can get in. is there anyway to solve this? if i want each person input there initial when the log on the file and want to have the file tells me who update the file last, is it possilbe. can it tell the time it was updated? generally, does access work well with multi entry - many people working on same file, doing updates...? tks for help. tuan nguyen maersk inc, madison, nj --------------------------------- Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter today From HollisVJ at pgdp.usec.com Mon Apr 5 11:32:28 2004 From: HollisVJ at pgdp.usec.com (Hollis,Virginia) Date: Mon, 05 Apr 2004 11:32:28 -0500 Subject: [AccessD] Duplicate Posts Message-ID: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D51E@cntexchange.pgdp.usec.com> I am receiving duplicate posts today... Virginia From andy at minstersystems.co.uk Mon Apr 5 11:51:25 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Mon, 5 Apr 2004 17:51:25 +0100 Subject: [AccessD] AllowEdits on Subform In-Reply-To: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D505@cntexchange.pgdp.usec.com> Message-ID: <000001c41b2e$3b940b20$b274d0d5@minster33c3r25> Hi Virginia subControl refers to the name on the main form that you've given to the subform control (think Access defaults to Childnnn, but you'd want to change that to something meaningful). The tab doesn't affect it. Not so sure you can do Undo in the same way. The problem (I think, but open to correction) is that, having put data onto a subform, if you click away from the subform to the main form (i.e. to your Undo button on the main form) Access carries out a Save of the subform data. And once the save has occurred you can't Undo. Undo is only available BeforeUpdate. What I'd suggest is that you place the Undo button in the header of the subform rather than on the main form. It can then just do a Me.Undo and should work ok as focus won't have moved off the sub. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Hollis,Virginia > Sent: 05 April 2004 12:25 > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] AllowEdits on Subform > > > Another one - what about Undo? I used > Forms!frm_Vendor.frm_ContactsSub.Form.Undo but it does not > undo the entry on the subform. > > Also, where you have Me!subControl - that is not the name of > the form is it? Is it each control on the form? This is a > tabbed form I placed the subform on one of the tabs. > > Virginia > > > -----Original Message----- > From: Andy Lacey [mailto:andy at minstersystems.co.uk] > Sent: Saturday, April 03, 2004 1:53 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] AllowEdits on Subform > > > A subform has its own AllowEdits property Virginia. You can > control it with the following code: > > Me!subControl.Form.AllowEdits = True/False > > -- Andy Lacey > http://www.minstersystems.co.uk > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > Hollis,Virginia > > Sent: 03 April 2004 18:50 > > To: 'accessd at databaseadvisors.com' > > Subject: [AccessD] AllowEdits on Subform > > > > > > How do you prevent/allow Edits on a subform? > > > > I have a command button that is used to Edit a record. The > > form does not allow edits without using the Edit Record > > button. The problem is that the subform still allows edits > > without using the Edit Record button. > > > > Virginia > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/a> ccessd > > Website: > > http://www.databaseadvisors.com > > > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > -- > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > From andy at minstersystems.co.uk Mon Apr 5 12:15:58 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Mon, 5 Apr 2004 18:15:58 +0100 Subject: [AccessD] A2K: Stop User from oving to new record In-Reply-To: <01eb01c41ab5$744b2120$48619a89@DDICK> Message-ID: <000201c41b31$a9e1c6f0$b274d0d5@minster33c3r25> Hiya Darren, how're ya doing? Use the form's OnError event for this. If you first of all stick in there a: MsgBox DataErr That'll give you the error number. You can then test for that and do whatever your heart desires. See you when we emigrate :-) -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK > Sent: 05 April 2004 03:27 > To: AccessD List > Subject: Re: [AccessD] A2K: Stop User from oving to new record > > > Hello all > In relation to stopping a person moving to another record > before the previous one is complete... I put some validation > rules on the table. Now it's working fine.....almost > > Does anyone know the err number Access throws up when table > level validation is not met? If anyone does know, how do I > trap it at form level and throw up my own message box? > > Many thanks > > Darren > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > From bheid at appdevgrp.com Mon Apr 5 13:06:11 2004 From: bheid at appdevgrp.com (Bobby Heid) Date: Mon, 5 Apr 2004 14:06:11 -0400 Subject: [AccessD] Access XP - Can't create MDE. SOLVED In-Reply-To: <916187228923D311A6FE00A0CC3FAA30807087@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA305BB3DE@ADGSERVER> Hi all, A lister named Ryan e-mailed me off-line with a suggestion that was almost correct. He suggested that I change a module, save, restart, change it back, save, compact & repair, then create the MDE. Unfortunately, that did not do the trick. So I went looking in the MS KB and found KB article 814858 - ACC: Access May Stop Responding When You Try to Create an MDE File or an ADE File http://tinyurl.com/2ryvk http://support.microsoft.com/default.aspx?scid=kb;en-us;814858&Product=acc20 02 Basically, it says that the compiled VBA project of the MDB was corrupt. It then says to use the /DECOMPILE switch to decompile the project. I did this, then compiled, then compacted & repaired. Voila! I can now create an MDE. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Monday, April 05, 2004 11:16 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Access XP - Can't create MDE. Further info: I just tried again and it crashed this time. Here is the Error signature for the information that would be sent to MS. AppName: msaccess.exe AppVer: 10.0.4302.0 ModName: mso.dll ModVer: 10.0.4219.0 Offset: 00009777 Thanks, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Monday, April 05, 2004 11:01 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access XP - Can't create MDE. Hey all, I have an app that has been compiling to an MDE fine for several months now. All of a sudden, it will not create an MDE. The app will compile, but when I go to create an MDE (it is in XP format), it asks where I want the output file to go, then sometimes I'll see the progress bar flash to 100%, then it does one of two things. It will either sit there forever (I have left it for 2 hours before) while still using 80-90% CPU utilization, or it will crash Access XP. Usually it just appears to lock up. Note that a normal compile takes maybe 1 minute. I am pretty sure that I have not installed any new software or anything. My coworker is able to pull form VSS and compile the app with no problems. I am running on Windows 2000 Pro, .5G Ram, 700Mhz P-III. Anyone have any ideas as to what may going wrong? Thanks, Bobby -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pjones at btl.net Mon Apr 5 10:55:20 2004 From: pjones at btl.net (Paul M. Jones) Date: Mon, 05 Apr 2004 09:55:20 -0600 Subject: [AccessD] AllowEdits on Subform In-Reply-To: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D504@cntexchange.pgdp. usec.com> References: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D504@cntexchange.pgdp.usec.com> Message-ID: <6.0.0.22.2.20040405095444.02fbc418@btlmail.btl.net> I usually lock the entire subform to ensure that no editing can be done until I allow it. At 11:50 AM 4/3/2004, you wrote: >How do you prevent/allow Edits on a subform? > >I have a command button that is used to Edit a record. The form does not >allow edits without using the Edit Record button. The problem is that the >subform still allows edits without using the Edit Record button. > >Virginia >-- >_______________________________________________ >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 Apr 5 10:19:40 2004 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Mon, 5 Apr 2004 11:19:40 -0400 Subject: [AccessD] A2K: Stop User from oving to new record Message-ID: <8B98F8EA48F8BA47A2F24E0D0AF40CF407AD80D9@xlivmbx12.aig.com> "no joy" - what did not work? It's totally routine to do this kind of thing in the BeforeUpdate event (but what you might have missed is that you also need to do it in the BeforeInsert event too - that way you can validate NEW records as well as existing ones that get edited.) No need to mess with table validation rules and trapping the error. Just do your own validation in the above two events. BTW here's a way to check for nulls and empty string in one step, and it's a tad easier to read (IMHO). Instead of ... If IsNull(Me.cmbOffence) Or Me.cmbOffence = "" Then use... If cmbOffence & "" = "" Then > -----Original Message----- > From: Darren DICK [SMTP:d.dick at uws.edu.au] > Sent: Sunday, April 04, 2004 9:29 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] A2K: Stop User from oving to new record > > Hi Bryan > I did that no joy eg. > > Private Sub Form_BeforeUpdate(Cancel As Integer) > > If IsNull(Me.cmbOffence) Or Me.cmbOffence = "" Then > MsgBox "Enter an offence" > Cancel = True > End If > > End Sub > > What I need to do is somehow test if the user is on a new fresh record or > has left th previous record with unfilled combos. Of > course I can do it on the lost and got focus event.Thats fine whilst I am > in the record > EG record 5 has no offence recorded > User goes to record 6 How do i alert the user that record 5 has a missing > value then go back to that record? > > > ----- Original Message ----- > From: "Bryan Carbonnell" > To: "Access Developers discussion and problemsolving" > > Sent: Monday, April 05, 2004 10:25 AM > Subject: Re: [AccessD] A2K: Stop User from oving to new record > > > > On 5 Apr 2004 at 10:08, Darren DICK wrote: > > > > > I have a simple subform with 4 fields on it > > > ID (PK), txtDateOfOccurence, cboClientName, cboOffence > > > > > > How can I tell if the user goes to a new record and they have not > > > completed ALL fields in the previous record How do I alert them and > > > then direct them back to the previous record? > > > > Use the before update event of the form. Check to make sure they > > entered a vale and if not set Cancel = true in the event. That should > > prevent the record from being saved and keep the sub form on the > > "unfinished" record > > > > -- > > Bryan Carbonnell - carbonnb at sympatico.ca > > The trouble with doing something right the first time is that nobody > > appreciates how difficult it is. > > > > > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > 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 Apr 5 15:08:37 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Mon, 5 Apr 2004 16:08:37 -0400 Subject: [AccessD] A2K: Stop User from oving to new record In-Reply-To: <8B98F8EA48F8BA47A2F24E0D0AF40CF407AD80D9@xlivmbx12.aig.com> Message-ID: Lambert, >If cmbOffence & "" = "" Then This is the kind of thing that you should add an explanation of why it works in your email. Less experienced developers might not understand what is going on. Further the explanation of why it works would add to their understanding of empty strings and nulls. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Heenan, Lambert Sent: Monday, April 05, 2004 11:20 AM To: 'Access Developers discussion and problem solving' Cc: 'd.dick at uws.edu.au' Subject: RE: [AccessD] A2K: Stop User from oving to new record "no joy" - what did not work? It's totally routine to do this kind of thing in the BeforeUpdate event (but what you might have missed is that you also need to do it in the BeforeInsert event too - that way you can validate NEW records as well as existing ones that get edited.) No need to mess with table validation rules and trapping the error. Just do your own validation in the above two events. BTW here's a way to check for nulls and empty string in one step, and it's a tad easier to read (IMHO). Instead of ... If IsNull(Me.cmbOffence) Or Me.cmbOffence = "" Then use... If cmbOffence & "" = "" Then > -----Original Message----- > From: Darren DICK [SMTP:d.dick at uws.edu.au] > Sent: Sunday, April 04, 2004 9:29 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] A2K: Stop User from oving to new record > > Hi Bryan > I did that no joy eg. > > Private Sub Form_BeforeUpdate(Cancel As Integer) > > If IsNull(Me.cmbOffence) Or Me.cmbOffence = "" Then > MsgBox "Enter an offence" > Cancel = True > End If > > End Sub > > What I need to do is somehow test if the user is on a new fresh record or > has left th previous record with unfilled combos. Of > course I can do it on the lost and got focus event.Thats fine whilst I am > in the record > EG record 5 has no offence recorded > User goes to record 6 How do i alert the user that record 5 has a missing > value then go back to that record? > > > ----- Original Message ----- > From: "Bryan Carbonnell" > To: "Access Developers discussion and problemsolving" > > Sent: Monday, April 05, 2004 10:25 AM > Subject: Re: [AccessD] A2K: Stop User from oving to new record > > > > On 5 Apr 2004 at 10:08, Darren DICK wrote: > > > > > I have a simple subform with 4 fields on it > > > ID (PK), txtDateOfOccurence, cboClientName, cboOffence > > > > > > How can I tell if the user goes to a new record and they have not > > > completed ALL fields in the previous record How do I alert them and > > > then direct them back to the previous record? > > > > Use the before update event of the form. Check to make sure they > > entered a vale and if not set Cancel = true in the event. That should > > prevent the record from being saved and keep the sub form on the > > "unfinished" record > > > > -- > > Bryan Carbonnell - carbonnb at sympatico.ca > > The trouble with doing something right the first time is that nobody > > appreciates how difficult it is. > > > > > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From joconnell at indy.rr.com Mon Apr 5 15:12:52 2004 From: joconnell at indy.rr.com (Joseph O'Connell) Date: Mon, 5 Apr 2004 15:12:52 -0500 Subject: [AccessD] MULTI ENTRY to database Message-ID: <00f501c41b4a$6b8318a0$6701a8c0@joe> >From the database window go to Tools|Options. Click on the Advanced tab. Change the "Default open mode" from Exclusive to Shared. Then click the Apply button. Joe O'Connell -----Original Message----- From: tuan nguyen To: accessd at databaseadvisors.com Date: Monday, April 05, 2004 11:52 AM Subject: [AccessD] MULTI ENTRY to database |I am creating a customer database. the idea is that more than 2 |people can come in the file and update the record. however, whenever |there are more than 2 people on the file, there is a message something |like "you dont have exclusive access to the file, yr work might not be |saved"...(i set "shared" in tools/ options/advanced/ ) some times, other can not log on if i am on the file. then i have to get out before other can get in. |is there anyway to solve this? | |if i want each person input there initial when the log on the file |and want to have the file tells me who update the file last, is it |possilbe. can it tell the time it was updated? | |generally, does access work well with multi entry - many people working on same file, doing updates...? | |tks for help. | |tuan nguyen | |maersk inc, |madison, nj | | | | |--------------------------------- |Do you Yahoo!? |Yahoo! Small Business $15K Web Design Giveaway - Enter today |-- |_______________________________________________ |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 Apr 5 15:15:21 2004 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Mon, 5 Apr 2004 16:15:21 -0400 Subject: [AccessD] A2K: Stop User from oving to new record Message-ID: <8B98F8EA48F8BA47A2F24E0D0AF40CF407AD812F@xlivmbx12.aig.com> Ok. The '&' operator is one of the few operator which, when applied to a null does *not* result in a null. When you append a string to null using '&' you wind up with a string. The test... If cmbOffence & "" = "" Then ...therefore is equivalent to saying "if this thing is null or it it's an empty string then do something" In fact, this is functionally equivalent... If cboMyComboBox & "HasNothingSelected" = "HasNothingSelected" Then HTH Lambert > -----Original Message----- > From: John W. Colby [SMTP:jwcolby at colbyconsulting.com] > Sent: Monday, April 05, 2004 4:09 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] A2K: Stop User from oving to new record > > Lambert, > > >If cmbOffence & "" = "" Then > > This is the kind of thing that you should add an explanation of why it > works > in your email. Less experienced developers might not understand what is > going on. Further the explanation of why it works would add to their > understanding of empty strings and nulls. > > John W. Colby > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Heenan, > Lambert > Sent: Monday, April 05, 2004 11:20 AM > To: 'Access Developers discussion and problem solving' > Cc: 'd.dick at uws.edu.au' > Subject: RE: [AccessD] A2K: Stop User from oving to new record > > > "no joy" - what did not work? It's totally routine to do this kind of > thing > in the BeforeUpdate event (but what you might have missed is that you also > need to do it in the BeforeInsert event too - that way you can validate > NEW > records as well as existing ones that get edited.) > > No need to mess with table validation rules and trapping the error. Just > do > your own validation in the above two events. > > BTW here's a way to check for nulls and empty string in one step, and it's > a > tad easier to read (IMHO). > > Instead of ... > > If IsNull(Me.cmbOffence) Or Me.cmbOffence = "" Then > > use... > > If cmbOffence & "" = "" Then > > > > -----Original Message----- > > From: Darren DICK [SMTP:d.dick at uws.edu.au] > > Sent: Sunday, April 04, 2004 9:29 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] A2K: Stop User from oving to new record > > > > Hi Bryan > > I did that no joy eg. > > > > Private Sub Form_BeforeUpdate(Cancel As Integer) > > > > If IsNull(Me.cmbOffence) Or Me.cmbOffence = "" Then > > MsgBox "Enter an offence" > > Cancel = True > > End If > > > > End Sub > > > > What I need to do is somehow test if the user is on a new fresh record > or > > has left th previous record with unfilled combos. Of > > course I can do it on the lost and got focus event.Thats fine whilst I > am > > in the record > > EG record 5 has no offence recorded > > User goes to record 6 How do i alert the user that record 5 has a > missing > > value then go back to that record? > > > > > > ----- Original Message ----- > > From: "Bryan Carbonnell" > > To: "Access Developers discussion and problemsolving" > > > > Sent: Monday, April 05, 2004 10:25 AM > > Subject: Re: [AccessD] A2K: Stop User from oving to new record > > > > > > > On 5 Apr 2004 at 10:08, Darren DICK wrote: > > > > > > > I have a simple subform with 4 fields on it > > > > ID (PK), txtDateOfOccurence, cboClientName, cboOffence > > > > > > > > How can I tell if the user goes to a new record and they have not > > > > completed ALL fields in the previous record How do I alert them and > > > > then direct them back to the previous record? > > > > > > Use the before update event of the form. Check to make sure they > > > entered a vale and if not set Cancel = true in the event. That should > > > prevent the record from being saved and keep the sub form on the > > > "unfinished" record > > > > > > -- > > > Bryan Carbonnell - carbonnb at sympatico.ca > > > The trouble with doing something right the first time is that nobody > > > appreciates how difficult it is. > > > > > > > > > -- > > > _______________________________________________ > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Apr 5 15:48:30 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 05 Apr 2004 13:48:30 -0700 Subject: [AccessD] A2K: Help with Error accessing file References: <20040405103319.1451643778.serbach@new.rr.com> Message-ID: <4071C61E.9060802@shaw.ca> Have a look at this, maybe a service pack issue. remember Office 2000 SP3 plays around with Outlook security. ACC2000: Error Message: Error Accessing File. Network Connection May Have Been Lost. http://support.microsoft.com/default.aspx?scid=kb;en-us;304548&Product=acc Steven W. Erbach wrote: >Dear Group, > >I have an Access 2000 FE/BE application loaded on a client's system in another city 90 miles away. I've been working with their network guy over the phone and he's sent me screen shots of error messages along the way. Here's the situation. > >The "master" MDB FE database is loaded on the server. I have the local people there create an MDE and place it in another folder so that's it's available for the users who download it to their workstations when a new version is ready. While working with my client's network guy, Bob, the MDE file SEEMS to be created all right; but once the compacting is finished and the FE starts up, the first form opens and he gets this message (it's an "i" message): > >The expression On Load you entered as the event property setting produced the following error: Error accessing file. Network connection may have been lost. > > * The expression may not result in the name of a macro, the name of a user-defined function, or [Event Procedure]. > * There may have been an error evaluating the function, event, or macro. > >When he clicks OK the startup form (which is supposed to be hidden) is there on the screen and the application has halted. > >INVESTIGATION: > >1) They don't have the Documentor installed so I can't see what the path is to the BE. > >2) However, I do have a form (that I cobbed from Steve Nyberg) that shows all the links with their paths. When we attempt to open this form we get the message you see above. Click OK on the message and Nyberg's SeeLinks form opens but with nothing showing up regarding linked tables. > >3) I can open the linked tables from the "master" front end. But when I open the table that contains the latest version number (part of the version upgrade system) I see something odd. This Versions table has one row. The table has a Default value of the Now() function in the VersionDate column. On my system when I look at the table I see the first row all right and in the 2nd (empty) row I see (AutoNumber) in the key field and today's date and time in the VersionDate column. On my client's system he sees #Name? in the VersionDate column in an empty row. He cannot add information in a new row because Access doesn't like the default value. So I had Bob remove the default value. I still get the main problem. > >4) The users can still run the application from their workstations using the old version of the FE. There hasn't been any problem there. > >5) The Startup form of the FE calls Carl Tribble's Auto-Linker to check the link status of the first table before the main switchboard menu appears. This is all working properly on the users' workstations. > >6) I tried Compact and Repair on both the BE and the FE. No change in basic error. > >7) I checked the references. They're all there. > >8) Only thing I haven't done (at least that I know how to do) is a /decompile on the "master" FE on the server. > >I'm sorry about the length of this message. I somehow doubt that I would find the problem even if I were sitting at the workstation. Bob is very capable, so I'm sure he's relaying to me everything that he sees. > >At least my clients can still work with the older version of the app. I am just stumped why this error message appears in the "master" front end database. Any thoughts, other than "Well, why the heck do you let the user make an MDE in the first place, ya numbskull?!" > >Regards, > >Steve Erbach >Scientific Marketing >Neenah, WI >920-969-0504 > >"Congress is as trustworthy with money as a crack addict who is experimenting with heroin." - Dave Barry > >"Giving money and power to the government is like giving whiskey and car keys to teenage boys." - P. J. O'Rourke > >"Be thankful we're not getting all the government we're paying for." - Will Rogers > >"It could probably be shown by facts and figures that there is no distinctly American criminal class except Congress." - Mark Twain > > > -- Marty Connelly Victoria, B.C. Canada From bchacc at san.rr.com Mon Apr 5 16:42:56 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Mon, 5 Apr 2004 14:42:56 -0700 Subject: [AccessD] A2K: Help with Error accessing file References: <20040405103319.1451643778.serbach@new.rr.com> Message-ID: <00ee01c41b56$f529a0e0$6601a8c0@HAL9002> Steven: This looks familiar. Google the phrase "Network connection may have been lost". Sorry can't do more right now. HTH Rocky Smolin Beach Access Software http://www.e-z-mrp.com ----- Original Message ----- From: "Steven W. Erbach" To: "Access Developers discussion and problem solving" Sent: Monday, April 05, 2004 8:33 AM Subject: [AccessD] A2K: Help with Error accessing file > Dear Group, > > I have an Access 2000 FE/BE application loaded on a client's system in another city 90 miles away. I've been working with their network guy over the phone and he's sent me screen shots of error messages along the way. Here's the situation. > > The "master" MDB FE database is loaded on the server. I have the local people there create an MDE and place it in another folder so that's it's available for the users who download it to their workstations when a new version is ready. While working with my client's network guy, Bob, the MDE file SEEMS to be created all right; but once the compacting is finished and the FE starts up, the first form opens and he gets this message (it's an "i" message): > > The expression On Load you entered as the event property setting produced the following error: Error accessing file. Network connection may have been lost. > > * The expression may not result in the name of a macro, the name of a user-defined function, or [Event Procedure]. > * There may have been an error evaluating the function, event, or macro. > > When he clicks OK the startup form (which is supposed to be hidden) is there on the screen and the application has halted. > > INVESTIGATION: > > 1) They don't have the Documentor installed so I can't see what the path is to the BE. > > 2) However, I do have a form (that I cobbed from Steve Nyberg) that shows all the links with their paths. When we attempt to open this form we get the message you see above. Click OK on the message and Nyberg's SeeLinks form opens but with nothing showing up regarding linked tables. > > 3) I can open the linked tables from the "master" front end. But when I open the table that contains the latest version number (part of the version upgrade system) I see something odd. This Versions table has one row. The table has a Default value of the Now() function in the VersionDate column. On my system when I look at the table I see the first row all right and in the 2nd (empty) row I see (AutoNumber) in the key field and today's date and time in the VersionDate column. On my client's system he sees #Name? in the VersionDate column in an empty row. He cannot add information in a new row because Access doesn't like the default value. So I had Bob remove the default value. I still get the main problem. > > 4) The users can still run the application from their workstations using the old version of the FE. There hasn't been any problem there. > > 5) The Startup form of the FE calls Carl Tribble's Auto-Linker to check the link status of the first table before the main switchboard menu appears. This is all working properly on the users' workstations. > > 6) I tried Compact and Repair on both the BE and the FE. No change in basic error. > > 7) I checked the references. They're all there. > > 8) Only thing I haven't done (at least that I know how to do) is a /decompile on the "master" FE on the server. > > I'm sorry about the length of this message. I somehow doubt that I would find the problem even if I were sitting at the workstation. Bob is very capable, so I'm sure he's relaying to me everything that he sees. > > At least my clients can still work with the older version of the app. I am just stumped why this error message appears in the "master" front end database. Any thoughts, other than "Well, why the heck do you let the user make an MDE in the first place, ya numbskull?!" > > Regards, > > Steve Erbach > Scientific Marketing > Neenah, WI > 920-969-0504 > > "Congress is as trustworthy with money as a crack addict who is experimenting with heroin." - Dave Barry > > "Giving money and power to the government is like giving whiskey and car keys to teenage boys." - P. J. O'Rourke > > "Be thankful we're not getting all the government we're paying for." - Will Rogers > > "It could probably be shown by facts and figures that there is no distinctly American criminal class except Congress." - Mark Twain > > -- > _______________________________________________ > 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 Apr 5 16:51:00 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 06 Apr 2004 07:51:00 +1000 Subject: [AccessD] A2K: Stop User from oving to new record In-Reply-To: <8B98F8EA48F8BA47A2F24E0D0AF40CF407AD80D9@xlivmbx12.aig.com> Message-ID: <40726164.28379.E4E0C@localhost> On 5 Apr 2004 at 11:19, Heenan, Lambert wrote: > > BTW here's a way to check for nulls and empty string in one step, and it's a > tad easier to read (IMHO). > > Instead of ... > > If IsNull(Me.cmbOffence) Or Me.cmbOffence = "" Then > > use... > > If cmbOffence & "" = "" Then > Or: If NZ(cmbOffence,"") = "" Then or even just NZ(cmbOffence) since "" is the default for NZ(string) -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From cfoust at infostatsystems.com Mon Apr 5 16:57:10 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 5 Apr 2004 14:57:10 -0700 Subject: [AccessD] A2K: Help with Error accessing file Message-ID: Take a look at http://support.microsoft.com/default.aspx?scid=kb;en-us;Q304548 This is a typical error when you do not have O2k SR-3 and you have a 2002 or later app installed on the same machine. The VBE6.DLL for 2002 breaks the 2000 Access executable. Charlotte Foust -----Original Message----- From: Steven W. Erbach [mailto:serbach at new.rr.com] Sent: Monday, April 05, 2004 7:33 AM To: Access Developers discussion and problem solving Subject: [AccessD] A2K: Help with Error accessing file Dear Group, I have an Access 2000 FE/BE application loaded on a client's system in another city 90 miles away. I've been working with their network guy over the phone and he's sent me screen shots of error messages along the way. Here's the situation. The "master" MDB FE database is loaded on the server. I have the local people there create an MDE and place it in another folder so that's it's available for the users who download it to their workstations when a new version is ready. While working with my client's network guy, Bob, the MDE file SEEMS to be created all right; but once the compacting is finished and the FE starts up, the first form opens and he gets this message (it's an "i" message): The expression On Load you entered as the event property setting produced the following error: Error accessing file. Network connection may have been lost. * The expression may not result in the name of a macro, the name of a user-defined function, or [Event Procedure]. * There may have been an error evaluating the function, event, or macro. When he clicks OK the startup form (which is supposed to be hidden) is there on the screen and the application has halted. INVESTIGATION: 1) They don't have the Documentor installed so I can't see what the path is to the BE. 2) However, I do have a form (that I cobbed from Steve Nyberg) that shows all the links with their paths. When we attempt to open this form we get the message you see above. Click OK on the message and Nyberg's SeeLinks form opens but with nothing showing up regarding linked tables. 3) I can open the linked tables from the "master" front end. But when I open the table that contains the latest version number (part of the version upgrade system) I see something odd. This Versions table has one row. The table has a Default value of the Now() function in the VersionDate column. On my system when I look at the table I see the first row all right and in the 2nd (empty) row I see (AutoNumber) in the key field and today's date and time in the VersionDate column. On my client's system he sees #Name? in the VersionDate column in an empty row. He cannot add information in a new row because Access doesn't like the default value. So I had Bob remove the default value. I still get the main problem. 4) The users can still run the application from their workstations using the old version of the FE. There hasn't been any problem there. 5) The Startup form of the FE calls Carl Tribble's Auto-Linker to check the link status of the first table before the main switchboard menu appears. This is all working properly on the users' workstations. 6) I tried Compact and Repair on both the BE and the FE. No change in basic error. 7) I checked the references. They're all there. 8) Only thing I haven't done (at least that I know how to do) is a /decompile on the "master" FE on the server. I'm sorry about the length of this message. I somehow doubt that I would find the problem even if I were sitting at the workstation. Bob is very capable, so I'm sure he's relaying to me everything that he sees. At least my clients can still work with the older version of the app. I am just stumped why this error message appears in the "master" front end database. Any thoughts, other than "Well, why the heck do you let the user make an MDE in the first place, ya numbskull?!" Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "Congress is as trustworthy with money as a crack addict who is experimenting with heroin." - Dave Barry "Giving money and power to the government is like giving whiskey and car keys to teenage boys." - P. J. O'Rourke "Be thankful we're not getting all the government we're paying for." - Will Rogers "It could probably be shown by facts and figures that there is no distinctly American criminal class except Congress." - Mark Twain -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From my.lists at verizon.net Mon Apr 5 16:59:45 2004 From: my.lists at verizon.net (Francisco H Tapia) Date: Mon, 05 Apr 2004 14:59:45 -0700 Subject: [AccessD] Duplicate Posts In-Reply-To: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D51E@cntexchange.pgdp.usec.com> References: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D51E@cntexchange.pgdp.usec.com> Message-ID: <4071D6D1.1000206@verizon.net> Hollis,Virginia said the following on 4/5/2004 9:32 AM: >I am receiving duplicate posts today... > >Virginia > > did anyone else reply to this?.. Is this a rule in your outlook possibly causing this?? -- -Francisco From dwaters at usinternet.com Mon Apr 5 17:35:14 2004 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 5 Apr 2004 17:35:14 -0500 Subject: [AccessD] A2K: Help with Error accessing file In-Reply-To: <7685353.1081201441608.JavaMail.root@sniper2.marix.com> Message-ID: <003f01c41b5e$458ed1c0$de1811d8@DanWaters> Steve, I don't have an answer to your specific problem, but since your client is distant this might help: Have your client download a trial version of GoToMyPC. He can set up an account for himself. GoToMyPC has a feature called 'Guest Invite'. He can use this to let you see what's happening on his screen, and you can control his PC from yours so you can do some troubleshooting. I guess this is similar to WebEx or PCAnywhere. If he decides to keep the GoToMyPC account, he only needs to pay $15/mo. I use it to work with my clients so they can see 'drafts' of what I'm doing without making a trip. Best of Luck! Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steven W. Erbach Sent: Monday, April 05, 2004 10:33 AM To: Access Developers discussion and problem solving Subject: [AccessD] A2K: Help with Error accessing file Dear Group, I have an Access 2000 FE/BE application loaded on a client's system in another city 90 miles away. I've been working with their network guy over the phone and he's sent me screen shots of error messages along the way. Here's the situation. The "master" MDB FE database is loaded on the server. I have the local people there create an MDE and place it in another folder so that's it's available for the users who download it to their workstations when a new version is ready. While working with my client's network guy, Bob, the MDE file SEEMS to be created all right; but once the compacting is finished and the FE starts up, the first form opens and he gets this message (it's an "i" message): The expression On Load you entered as the event property setting produced the following error: Error accessing file. Network connection may have been lost. * The expression may not result in the name of a macro, the name of a user-defined function, or [Event Procedure]. * There may have been an error evaluating the function, event, or macro. When he clicks OK the startup form (which is supposed to be hidden) is there on the screen and the application has halted. INVESTIGATION: 1) They don't have the Documentor installed so I can't see what the path is to the BE. 2) However, I do have a form (that I cobbed from Steve Nyberg) that shows all the links with their paths. When we attempt to open this form we get the message you see above. Click OK on the message and Nyberg's SeeLinks form opens but with nothing showing up regarding linked tables. 3) I can open the linked tables from the "master" front end. But when I open the table that contains the latest version number (part of the version upgrade system) I see something odd. This Versions table has one row. The table has a Default value of the Now() function in the VersionDate column. On my system when I look at the table I see the first row all right and in the 2nd (empty) row I see (AutoNumber) in the key field and today's date and time in the VersionDate column. On my client's system he sees #Name? in the VersionDate column in an empty row. He cannot add information in a new row because Access doesn't like the default value. So I had Bob remove the default value. I still get the main problem. 4) The users can still run the application from their workstations using the old version of the FE. There hasn't been any problem there. 5) The Startup form of the FE calls Carl Tribble's Auto-Linker to check the link status of the first table before the main switchboard menu appears. This is all working properly on the users' workstations. 6) I tried Compact and Repair on both the BE and the FE. No change in basic error. 7) I checked the references. They're all there. 8) Only thing I haven't done (at least that I know how to do) is a /decompile on the "master" FE on the server. I'm sorry about the length of this message. I somehow doubt that I would find the problem even if I were sitting at the workstation. Bob is very capable, so I'm sure he's relaying to me everything that he sees. At least my clients can still work with the older version of the app. I am just stumped why this error message appears in the "master" front end database. Any thoughts, other than "Well, why the heck do you let the user make an MDE in the first place, ya numbskull?!" Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "Congress is as trustworthy with money as a crack addict who is experimenting with heroin." - Dave Barry "Giving money and power to the government is like giving whiskey and car keys to teenage boys." - P. J. O'Rourke "Be thankful we're not getting all the government we're paying for." - Will Rogers "It could probably be shown by facts and figures that there is no distinctly American criminal class except Congress." - Mark Twain -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From garykjos at hotmail.com Mon Apr 5 17:43:56 2004 From: garykjos at hotmail.com (Gary Kjos) Date: Mon, 05 Apr 2004 17:43:56 -0500 Subject: [AccessD] MULTI ENTRY to database Message-ID: Hi Tuan, It could be that your users do not have full file creation rights in the folder where the database is. The users need to have the rights to create a file so a LDB locking file can be created. With no licking file it allows ONE user but not a second. Access works fine with multiple users lots and lots of apps around that do that. You will do well to investigate how to best make a database that works well for multiple users simultaneously though. Generally a split database with a front end and a back end will be the best way although there are exceptions and special circumstances when this may not be entirely correct either. A front end database contains everything in the database EXCEPT the data tables, and the back end contains ONLY the data tables. You create LINKS in the front end to point to the tables in teh back end. If you search in help on Multi-user database you should find some info on this issue. In order to log when people sign in to your database and keep track of what they update, you will need need to create some tables to store that info and some code to populate those tables that track that info. Nothing is available in Access by itself to track those changes, you have to do it yourself. You can certainly dd a field like "LAST_UPDATE" and then write a small bit of code in your form to update that field whenever there is a change to the record. Look at the Before Update event on a form and set the "LAST_UPDATE" field to NOW() Gary Kjos garykjos at hotmail.com >From: tuan nguyen >Reply-To: Access Developers discussion and problem >solving >To: accessd at databaseadvisors.com >Subject: [AccessD] MULTI ENTRY to database >Date: Mon, 5 Apr 2004 09:13:45 -0700 (PDT) > >I am creating a customer database. the idea is that more than 2 >people can come in the file and update the record. however, whenever >there are more than 2 people on the file, there is a message something >like "you dont have exclusive access to the file, yr work might not be >saved"...(i set "shared" in tools/ options/advanced/ ) some times, other >can not log on if i am on the file. then i have to get out before other >can get in. >is there anyway to solve this? > >if i want each person input there initial when the log on the file >and want to have the file tells me who update the file last, is it >possilbe. can it tell the time it was updated? > >generally, does access work well with multi entry - many people working on >same file, doing updates...? > >tks for help. > >tuan nguyen > >maersk inc, >madison, nj > > > > >--------------------------------- >Do you Yahoo!? >Yahoo! Small Business $15K Web Design Giveaway - Enter today >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ FREE pop-up blocking with the new MSN Toolbar ? get it now! http://toolbar.msn.com/go/onm00200415ave/direct/01/ From jskolits at CorporateDataDesign.com Mon Apr 5 21:43:57 2004 From: jskolits at CorporateDataDesign.com (John Skolits) Date: Mon, 5 Apr 2004 22:43:57 -0400 Subject: [AccessD] Duplicate Posts In-Reply-To: <4071D6D1.1000206@verizon.net> Message-ID: <000501c41b81$02591460$6701a8c0@OFFICEXP1> I started getting them when I upgraded to Outlook XP. That's because you can no longer disable emails accounts if you have multiple ones listed. They now all have to be active. I hate it when they remove features! John Skolits -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Francisco H Tapia Sent: Monday, April 05, 2004 6:00 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Duplicate Posts Hollis,Virginia said the following on 4/5/2004 9:32 AM: >I am receiving duplicate posts today... > >Virginia > > did anyone else reply to this?.. Is this a rule in your outlook possibly causing this?? -- -Francisco -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhla at earthlink.net Mon Apr 5 22:18:28 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Mon, 5 Apr 2004 20:18:28 -0700 Subject: [AccessD] Code help please Message-ID: <000001c41b85$d87c94a0$6501a8c0@delllaptop> This code is supposed to 1. Confirm this is an existing record 2. If the form is dirty Open a message box I need vb yes. I want to go to the next record. Can not find the right method Thanks Joe Private Sub Form_Dirty(Cancel As Integer) if me.newrecord = false and If Me.Dirty Then Dim lngRetval As Long lngRetval = MsgBox( _ "Data on this form has changed! " & vbCrLf & "" & vbCrLf & "Do you wish to continue?", _ vbYesNoCancel + vbQuestion + vbSystemModal + vbDefaultButton1, _ "Data Has Changed") Select Case lngRetval Case vbYes Add New RECORD Case vbNo Forms!frmmasterAddresses!txtLastName.SetFocus Case vbCancel End Select End If End Sub From d.dick at uws.edu.au Mon Apr 5 23:28:31 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Tue, 6 Apr 2004 14:28:31 +1000 Subject: [AccessD] Code help please References: <000001c41b85$d87c94a0$6501a8c0@delllaptop> Message-ID: <016401c41b8f$9df9bec0$48619a89@DDICK> Hi Joe Try something like this Under the Compare Database and option explicit declarations type gIntFormIsDirty as integer Then add Private Sub Form_Load() gIntFormIsDirty = False end sub then add Private Sub Form_Dirty(Cancel As Integer) gIntFormIsDirty = true End Sub then Private Sub ps_SomeCodeToRun() 'Joe get whatever the PK is and see if there is a value in it if not isnull(Me.MyPK) then 'There is a value so we are on a live record if gIntFormIsDirty = true THEN Msgbox "we are on a pre-existing record and the record is dirty" else Msgbox "we are on a pre-existing record but the record IS NOT dirty" end if else msgbox "We are on a 'new rec' or at least one without a PK" end if end sub then in the afterupdate(or whatever) of the control to test Private sub txtLastName_AfterUpdate() ps_SomeCodeToRun end sub Hope this helps ----- Original Message ----- From: "Joe Hecht" To: "AccessD" Sent: Tuesday, April 06, 2004 1:18 PM Subject: [AccessD] Code help please > This code is supposed to > 1. Confirm this is an existing record > 2. If the form is dirty > > Open a message box > > I need vb yes. I want to go to the next record. > > Can not find the right method > > > Thanks > > Joe > > > > Private Sub Form_Dirty(Cancel As Integer) > > if me.newrecord = false and > If Me.Dirty Then > Dim lngRetval As Long > > lngRetval = MsgBox( _ > "Data on this form has changed! " & vbCrLf & "" & vbCrLf & "Do > you wish to continue?", _ > vbYesNoCancel + vbQuestion + vbSystemModal + vbDefaultButton1, _ > "Data Has Changed") > > Select Case lngRetval > Case vbYes > > Add New RECORD > > Case vbNo > Forms!frmmasterAddresses!txtLastName.SetFocus > > > > Case vbCancel > > > > End Select > > End If > > > > > > End Sub > > > > -- > _______________________________________________ > 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 Apr 5 23:56:00 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Tue, 6 Apr 2004 14:56:00 +1000 Subject: [AccessD] A2K: Transfer Database Message-ID: <018501c41b93$74e90ff0$48619a89@DDICK> hello all can anyone tell me why the acLink version of transfer database below works but the import version fails? Along with the error message "Cannot define Field more than once" I have tried every combination I can think of in relation to the dbf file name location etc. No joy and the help is useless 'This one works fine DoCmd.TransferDatabase acLink, "dBase IV", "C:\", acTable, "C:\SIDS.dbf", "tblStudents", False 'This one fails DoCmd.TransferDatabase acImport, "dBase IV", "C:\", acTable, "C:\SIDS.dbf", "tblStudents", False many thanks Drren From paul.hartland at fsmail.net Tue Apr 6 03:42:01 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 6 Apr 2004 10:42:01 +0200 (CEST) Subject: [AccessD] A2K: Transfer Database Message-ID: <29010324.1081240921849.JavaMail.www@wwinf3001> Darren, try taking a look at the first ten characters of the DBase IV table fields you are trying to import (i.e. you may have something like StudentsID1 and StudentsID2 if you look at the first ten characters you will only have StudentsID) for some reason when trying to Export/Import DBase IV tables it only reads the first ten characters. Make sure the first ten characters in your fields are different and then you should be ok. Paul Message date : Apr 06 2004, 06:01 AM >From : "Darren DICK" To : "AccessD List" Copy to : Subject : [AccessD] A2K: Transfer Database hello all can anyone tell me why the acLink version of transfer database below works but the import version fails? Along with the error message "Cannot define Field more than once" I have tried every combination I can think of in relation to the dbf file name location etc. No joy and the help is useless 'This one works fine DoCmd.TransferDatabase acLink, "dBase IV", "C:\", acTable, "C:\SIDS.dbf", "tblStudents", False 'This one fails DoCmd.TransferDatabase acImport, "dBase IV", "C:\", acTable, "C:\SIDS.dbf", "tblStudents", False many thanks Drren -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Join the UK's number one for the internet www.freeserve.com/time From R.Griffiths at bury.gov.uk Tue Apr 6 03:47:30 2004 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Tue, 6 Apr 2004 09:47:30 +0100 Subject: [AccessD] (no subject) Message-ID: Hi Group I am looking to rewrite a system (to a VB front end Access BE from Acc FE/Be in Acc 97). I still intend to use DAO - I am looking for advice on whether to upgrade the Be to A2002 ( is this AXP? btw) or keep BE in Acc 97 . TIA Richard From R.Griffiths at bury.gov.uk Tue Apr 6 03:49:44 2004 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Tue, 6 Apr 2004 09:49:44 +0100 Subject: [AccessD] A97 or A2002 Message-ID: Hi Group I am looking to rewrite a system (to a VB front end Access BE from Acc FE/Be in Acc 97). I still intend to use DAO - I am looking for advice on whether to upgrade the Be to A2002 ( is this AXP? btw) or keep BE in Acc 97 . TIA Richard From andy at minstersystems.co.uk Tue Apr 6 05:02:50 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Tue, 6 Apr 2004 10:02:50 +0000 Subject: [AccessD] A2K: Transfer Database Message-ID: <20040406090248.69D1225E4A0@smtp.nildram.co.uk> That was my first reaction Paul, then I wondered how that could be when doing an import rather than an export. The fields on the dbf must already be unique and a max of 10 chars, cos that's all the dbf would allow. Unless the dbf is non-standard and was created using something other than the usual packages. In which case you may be right. Certainly worth a look Darren. Alternatively have you tried the other similar import types to dBase IV, like 'dbase III', 'dbase 5.0' and all the Foxpro versions? -- 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] A2K: Transfer Database Date: 06/04/04 08:44 > > Darren, > try taking a look at the first ten characters of the DBase IV table fields you are trying to import (i.e. you may have something like StudentsID1 and StudentsID2 if you look at the first ten characters you will only have StudentsID) for some reason when trying to Export/Import DBase IV tables it only reads the first ten characters. Make sure the first ten characters in your fields are different and then you should be ok. > Paul > > > > > > Message date : Apr 06 2004, 06:01 AM > >From : "Darren DICK" > To : "AccessD List" > Copy to : > Subject : [AccessD] A2K: Transfer Database > hello all > can anyone tell me why the acLink version of transfer database > below works but the import version fails? Along with the error message > "Cannot define Field more than once" > I have tried every combination I can think of in relation to the dbf file name location etc. > No joy and the help is useless > > 'This one works fine > DoCmd.TransferDatabase acLink, "dBase IV", "C:", acTable, "C:SIDS.dbf", "tblStudents", False > 'This one fails > DoCmd.TransferDatabase acImport, "dBase IV", "C:", acTable, "C:SIDS.dbf", "tblStudents", False > > many thanks > > Drren > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > Join the UK's number one for the internet > www.freeserve.com/time > -- > _______________________________________________ > 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 thevigil at kabelfoon.nl Tue Apr 6 04:48:00 2004 From: thevigil at kabelfoon.nl (Bert-Jan Brinkhuis) Date: Tue, 6 Apr 2004 11:48:00 +0200 Subject: [AccessD] Search tool Message-ID: <001101c41bbc$40bdd200$3f412d3e@jester> Hi group, does anyone know of a good search tool / addin or whatever. With which i will be able to search in queryfields, querycriteris, formcontrols recordsources etc. to find querynames, tablenames, tablefields, functions etc. I hope you understand what i am looking for..... BTW i will use this in A2K. Thanks. Bert-Jan From SDSSoftware at optusnet.com.au Tue Apr 6 05:41:49 2004 From: SDSSoftware at optusnet.com.au (Kath Pelletti) Date: Tue, 6 Apr 2004 20:41:49 +1000 Subject: [AccessD] Search tool References: <001101c41bbc$40bdd200$3f412d3e@jester> Message-ID: <000b01c41bc3$c449cc80$6401a8c0@user> I can recommend Speed Ferret: http://www.moshannon.com/speedferret.html Kath ----- Original Message ----- From: Bert-Jan Brinkhuis To: accessd at databaseadvisors.com Sent: Tuesday, April 06, 2004 7:48 PM Subject: [AccessD] Search tool Hi group, does anyone know of a good search tool / addin or whatever. With which i will be able to search in queryfields, querycriteris, formcontrols recordsources etc. to find querynames, tablenames, tablefields, functions etc. I hope you understand what i am looking for..... BTW i will use this in A2K. Thanks. Bert-Jan -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From papparuff at comcast.net Tue Apr 6 05:47:22 2004 From: papparuff at comcast.net (papparuff at comcast.net) Date: Tue, 06 Apr 2004 10:47:22 +0000 Subject: [AccessD] Search tool Message-ID: <040620041047.29003.40728ABA000593790000714B2200734076FF99998A8D9E8F8F9E@comcast.net> Speed Ferret is an excellent tool but I prefer Rick Fisher's Find And Replace. It is about 2/3rds the cost of Speed Ferret and it has served me well for the past 5 years. Check out http://www.rickworld.com -- John V. Ruff ? The Eternal Optimist :-) ?Commit to the Lord whatever you do, and your plans will succeed.? Proverbs 16:3 > Hi group, > > does anyone know of a good search tool / addin or whatever. With which i > will be able to search in queryfields, querycriteris, formcontrols > recordsources etc. to find querynames, tablenames, tablefields, functions > etc. > > I hope you understand what i am looking for..... > > BTW i will use this in A2K. > > Thanks. > > Bert-Jan > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From thevigil at kabelfoon.nl Tue Apr 6 05:51:54 2004 From: thevigil at kabelfoon.nl (Bert-Jan Brinkhuis) Date: Tue, 6 Apr 2004 12:51:54 +0200 Subject: [AccessD] Search tool References: <040620041047.29003.40728ABA000593790000714B2200734076FF99998A8D9E8F8F9E@comcast.net> Message-ID: <002501c41bc5$32511b60$3f412d3e@jester> Thanks John and Kath. I'll try them both and see what is best for me. Bert-Jan ----- Original Message ----- From: To: "Access Developers discussion and problem solving" Sent: Tuesday, April 06, 2004 12:47 PM Subject: Re: [AccessD] Search tool > > Speed Ferret is an excellent tool but I prefer Rick Fisher's Find And Replace. It is about 2/3rds the cost of Speed Ferret and it has served me well for the past 5 years. > > Check out http://www.rickworld.com > > > -- > John V. Ruff - The Eternal Optimist :-) > > > "Commit to the Lord whatever you do, > and your plans will succeed." Proverbs 16:3 > > Hi group, > > > > does anyone know of a good search tool / addin or whatever. With which i > > will be able to search in queryfields, querycriteris, formcontrols > > recordsources etc. to find querynames, tablenames, tablefields, functions > > etc. > > > > I hope you understand what i am looking for..... > > > > BTW i will use this in A2K. > > > > Thanks. > > > > Bert-Jan > > > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From HollisVJ at pgdp.usec.com Tue Apr 6 06:00:24 2004 From: HollisVJ at pgdp.usec.com (Hollis,Virginia) Date: Tue, 06 Apr 2004 06:00:24 -0500 Subject: [AccessD] Duplicate Posts Message-ID: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D527@cntexchange.pgdp.usec.com> No, it just started yesterday. I haven't changed any settings. -----Original Message----- From: Francisco H Tapia [mailto:my.lists at verizon.net] Sent: Monday, April 05, 2004 5:00 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Duplicate Posts Hollis,Virginia said the following on 4/5/2004 9:32 AM: >I am receiving duplicate posts today... > >Virginia > > did anyone else reply to this?.. Is this a rule in your outlook possibly causing this?? -- -Francisco -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From HollisVJ at pgdp.usec.com Tue Apr 6 06:18:42 2004 From: HollisVJ at pgdp.usec.com (Hollis,Virginia) Date: Tue, 06 Apr 2004 06:18:42 -0500 Subject: [AccessD] Find Record from Combo Message-ID: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D528@cntexchange.pgdp.usec.com> I have a combo box that is used to GoTo a record. When I first open the form, I have noticed that the list of choices in the combo box do not show all the records to go to - it stops at record 9 and there are 57. I can't scroll any further down the list either it only shows 9 records. If I go to the last record and come back to record 1, then the combobox list will show all 57 records. I even tried typing in 57 to go to the record, and it says it is not in the list. It is so strange, if I go to record 9 the list shows 9 records, I navigate to record 10, the list shows 10 records, etc. A2K. Virginia Used on the ComboBox. Private Sub PickRequest_AfterUpdate() Dim strNumber As String ' Find the record that matches the control. strNumber = "[tbl_RequestMain].[RequestID] = " & Me![PickRequest] Me.RecordsetClone.FindFirst strNumber Me.Bookmark = Me.RecordsetClone.Bookmark End Sub From HollisVJ at pgdp.usec.com Tue Apr 6 06:24:23 2004 From: HollisVJ at pgdp.usec.com (Hollis,Virginia) Date: Tue, 06 Apr 2004 06:24:23 -0500 Subject: [AccessD] RE: Find Record from Combo Message-ID: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D529@cntexchange.pgdp.usec.com> I noticed I can't recreate a new combobox either in the current database or any database. I keep receiving the error: Syntax Error in Query Expression. I am using the Wizard to create the combo & select option 3 - find a record based on... I do not know if this is a related problem with only showing 9 records or a separate problem. The existing combobox that shows only the 9 records, I used the code from a previous form. Virginia -----Original Message----- From: Hollis,Virginia Sent: Tuesday, April 06, 2004 6:19 AM To: 'Access Developers discussion and problem solving' Subject: Find Record from Combo I have a combo box that is used to GoTo a record. When I first open the form, I have noticed that the list of choices in the combo box do not show all the records to go to - it stops at record 9 and there are 57. I can't scroll any further down the list either it only shows 9 records. If I go to the last record and come back to record 1, then the combobox list will show all 57 records. I even tried typing in 57 to go to the record, and it says it is not in the list. It is so strange, if I go to record 9 the list shows 9 records, I navigate to record 10, the list shows 10 records, etc. A2K. Virginia Used on the ComboBox. Private Sub PickRequest_AfterUpdate() Dim strNumber As String ' Find the record that matches the control. strNumber = "[tbl_RequestMain].[RequestID] = " & Me![PickRequest] Me.RecordsetClone.FindFirst strNumber Me.Bookmark = Me.RecordsetClone.Bookmark End Sub From bheid at appdevgrp.com Tue Apr 6 06:47:36 2004 From: bheid at appdevgrp.com (Bobby Heid) Date: Tue, 6 Apr 2004 07:47:36 -0400 Subject: [AccessD] Access XP - Can't create MDE. In-Reply-To: <916187228923D311A6FE00A0CC3FAA3080713B@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA305BB3E4@ADGSERVER> That was it Rocky. Thanks, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Monday, April 05, 2004 11:59 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access XP - Can't create MDE. Bobby: I would try making the mde on a different machine to see if the problem is related to the mdb or to the installation of access on the machine where it's currently failing. I would also try the broad spectrum anti-biotic approach - decompile the mdb. Then compact, compile, and see if it will make the mde. HTH Rocky Smolin Beach Access Software http://www.e-z-mrp.com ----- Original Message ----- From: "Bobby Heid" To: "'Access Developers discussion and problem solving'" Sent: Monday, April 05, 2004 8:16 AM Subject: RE: [AccessD] Access XP - Can't create MDE. > Further info: > > I just tried again and it crashed this time. Here is the Error > signature for the information that would be sent to MS. > > AppName: msaccess.exe AppVer: 10.0.4302.0 ModName: mso.dll > ModVer: 10.0.4219.0 Offset: 00009777 > > Thanks, > Bobby > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid > Sent: Monday, April 05, 2004 11:01 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Access XP - Can't create MDE. > > > Hey all, > > I have an app that has been compiling to an MDE fine for several > months now. > All of a sudden, it will not create an MDE. > > The app will compile, but when I go to create an MDE (it is in XP > format), it asks where I want the output file to go, then sometimes > I'll see the progress bar flash to 100%, then it does one of two > things. It will either > sit there forever (I have left it for 2 hours before) while still > using 80-90% CPU utilization, or it will crash Access XP. Usually it > just appears > to lock up. Note that a normal compile takes maybe 1 minute. > > I am pretty sure that I have not installed any new software or > anything. > > My coworker is able to pull form VSS and compile the app with no > problems. > > I am running on Windows 2000 Pro, .5G Ram, 700Mhz P-III. > > Anyone have any ideas as to what may going wrong? > > Thanks, > Bobby > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From serbach at new.rr.com Tue Apr 6 07:05:56 2004 From: serbach at new.rr.com (Steven W. Erbach) Date: Tue, 6 Apr 2004 07:05:56 -0500 Subject: [AccessD] A2K: Help with Error accessing file Message-ID: <20040406070556.283970375.serbach@new.rr.com> Marty, Rocky, and Charlotte, Thanks very much. I will certainly track down that KB304548. Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "I think that the send button actually turns brains on." -- Bryan Carbonnell From serbach at new.rr.com Tue Apr 6 07:09:47 2004 From: serbach at new.rr.com (Steven W. Erbach) Date: Tue, 6 Apr 2004 07:09:47 -0500 Subject: [AccessD] A2K: Help with Error accessing file Message-ID: <20040406070947.153567620.serbach@new.rr.com> Dan, >> GoToMyPC << I've been evaluating it myself these past few weeks. I, indeed, have suggested it to the appropriate people, but there may be some resistance. It's a domestic violence shelter and they're very chary of sending any data via the Internet for fear that it will be intercepted and fall into the hands of the abusers. To help them with some of their custom report requests I offered to send them an Access routine to scramble the names, addresses, and phone numbers of every client in their files. They're thinking about it. Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "If you can't say anything nice, run for President." - Argus Hamilton From Bryan_Carbonnell at cbc.ca Tue Apr 6 07:23:42 2004 From: Bryan_Carbonnell at cbc.ca (Bryan Carbonnell) Date: Tue, 06 Apr 2004 08:23:42 -0400 Subject: [AccessD] Duplicate Posts Message-ID: Virginia, Are you still getting duplicates today? If you are, could you please forward both copies of the e-mails as *attachments* so I can check out the internet headers and see if it is DBAs server. Please forward the copies to carbonnb at sympatico.ca or listmaster at databaseadvisors.com Bryan Carbonnell bryan_carbonnell at cbc.ca >>> HollisVJ at pgdp.usec.com 06-Apr-04 7:00:24 AM >>> No, it just started yesterday. I haven't changed any settings. -----Original Message----- From: Francisco H Tapia [mailto:my.lists at verizon.net] Sent: Monday, April 05, 2004 5:00 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Duplicate Posts Hollis,Virginia said the following on 4/5/2004 9:32 AM: >I am receiving duplicate posts today... > >Virginia > From Bryan_Carbonnell at cbc.ca Tue Apr 6 07:45:49 2004 From: Bryan_Carbonnell at cbc.ca (Bryan Carbonnell) Date: Tue, 06 Apr 2004 08:45:49 -0400 Subject: [AccessD] A2K: Help with Error accessing file Message-ID: Steve, To aleviate their security concerns, you can use VNC over a Secure Tunnel, if you don't mind piecing together a solution. It uses OpenSSL, which is the defacto standard for Encryption on *nix these days. It's the same encryption that most Secure web sites use. You will need OpenSSL(http://www.slproweb.com/products/Win32OpenSSL.html for a precompiled Win32 binary) for the encryption, Stunnel (http://www.stunnel.org/download/binaries.html for a precompiled Win32 binary) for the Tunnel and a VNC client, http://www.realvnc.com/ or http://www.tightvnc.com/ or http://ultravnc.sourceforge.net/ I personally use TightVNC Once it's set up, you should be able to create a VNC session over a secure tunnel over the internet. I've never done it personally, but its possible. Bryan Carbonnell bryan_carbonnelL at cbc.ca >>> serbach at new.rr.com 06-Apr-04 8:09:47 AM >>> Dan, >> GoToMyPC << I've been evaluating it myself these past few weeks. I, indeed, have suggested it to the appropriate people, but there may be some resistance. It's a domestic violence shelter and they're very chary of sending any data via the Internet for fear that it will be intercepted and fall into the hands of the abusers. To help them with some of their custom report requests I offered to send them an Access routine to scramble the names, addresses, and phone numbers of every client in their files. They're thinking about it. From serbach at new.rr.com Tue Apr 6 08:06:43 2004 From: serbach at new.rr.com (Steven W. Erbach) Date: Tue, 6 Apr 2004 08:06:43 -0500 Subject: [AccessD] A2K: Help with Error accessing file Message-ID: <20040406080643.1599552369.serbach@new.rr.com> Bryan, >> I've never done it personally, but its possible. << Well, there ya went and ruined it for me! I was all charged up with confidence and then ya had to do THIS to me! Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "Congress is as trustworthy with money as a crack addict who is experimenting with heroin." - Dave Barry "Giving money and power to the government is like giving whiskey and car keys to teenage boys." - P. J. O'Rourke "Be thankful we're not getting all the government we're paying for." - Will Rogers "It could probably be shown by facts and figures that there is no distinctly American criminal class except Congress." - Mark Twain From Bryan_Carbonnell at cbc.ca Tue Apr 6 08:22:08 2004 From: Bryan_Carbonnell at cbc.ca (Bryan Carbonnell) Date: Tue, 06 Apr 2004 09:22:08 -0400 Subject: [AccessD] A2K: Help with Error accessing file Message-ID: Well then how's this to instill confidence again. I've used VNC. I've used OpenSSL. Both easy to use and set up. H*ll I've even compiled OpenSSL (on an Liunux box :) However, here are some links that may help if you want to give it a go. Straight from the horses mouth: http://www.stunnel.org/examples/ or more specifically http://www.stunnel.org/examples/vnc.html or from someone else: http://stunnel.mirt.net/static/VNC_StunnelHOWTO.html or http://faq.gotomyvnc.com/fom-serve/cache/33.html How about an article from Security Focus on how to do it http://www.securityfocus.com/infocus/1677 It looks like it has a step-by-step. or google's 33,100 hits http://www.google.ca/search?q=vnc+stunnel&ie=UTF-8&oe=UTF-8&hl=en&btnG=Google+Search&meta= Bryan Carbonnell bryan_carbonnell at cbc.ca >>> serbach at new.rr.com 06-Apr-04 9:06:43 AM >>> Bryan, >> I've never done it personally, but its possible. << Well, there ya went and ruined it for me! I was all charged up with confidence and then ya had to do THIS to me! Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "Congress is as trustworthy with money as a crack addict who is experimenting with heroin." - Dave Barry "Giving money and power to the government is like giving whiskey and car keys to teenage boys." - P. J. O'Rourke "Be thankful we're not getting all the government we're paying for." - Will Rogers "It could probably be shown by facts and figures that there is no distinctly American criminal class except Congress." - Mark Twain From BBarabash at TappeConstruction.com Tue Apr 6 08:33:16 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Tue, 6 Apr 2004 08:33:16 -0500 Subject: [AccessD] A2K: Help with Error accessing file Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE4C8@TAPPEEXCH01> We tried GoToMyPC here. Had a number of problems, especially when working in a "2-way" teleconference where both parties were driving the machine. The machine would hang while waiting for the other party to move their mouse, click a key, etc. I followed Drew's suggestion a while back, and picked up a copy of Remote Administrator (www.radmin.com). $35 covers the license for 2 machines. No monthly charges. No headaches. Works for us! -----Original Message----- From: Dan Waters [mailto:dwaters at usinternet.com] Sent: Monday, April 05, 2004 5:35 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2K: Help with Error accessing file --------------Please open with care!------------ This message has bypassed some of our spam filtering rules. This message was scanned for viruses and executable code has been stripped. --------------------------------------------------------------- Steve, I don't have an answer to your specific problem, but since your client is distant this might help: Have your client download a trial version of GoToMyPC. He can set up an account for himself. GoToMyPC has a feature called 'Guest Invite'. He can use this to let you see what's happening on his screen, and you can control his PC from yours so you can do some troubleshooting. I guess this is similar to WebEx or PCAnywhere. If he decides to keep the GoToMyPC account, he only needs to pay $15/mo. I use it to work with my clients so they can see 'drafts' of what I'm doing without making a trip. Best of Luck! Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steven W. Erbach Sent: Monday, April 05, 2004 10:33 AM To: Access Developers discussion and problem solving Subject: [AccessD] A2K: Help with Error accessing file Dear Group, I have an Access 2000 FE/BE application loaded on a client's system in another city 90 miles away. I've been working with their network guy over the phone and he's sent me screen shots of error messages along the way. Here's the situation. The "master" MDB FE database is loaded on the server. I have the local people there create an MDE and place it in another folder so that's it's available for the users who download it to their workstations when a new version is ready. While working with my client's network guy, Bob, the MDE file SEEMS to be created all right; but once the compacting is finished and the FE starts up, the first form opens and he gets this message (it's an "i" message): The expression On Load you entered as the event property setting produced the following error: Error accessing file. Network connection may have been lost. * The expression may not result in the name of a macro, the name of a user-defined function, or [Event Procedure]. * There may have been an error evaluating the function, event, or macro. When he clicks OK the startup form (which is supposed to be hidden) is there on the screen and the application has halted. INVESTIGATION: 1) They don't have the Documentor installed so I can't see what the path is to the BE. 2) However, I do have a form (that I cobbed from Steve Nyberg) that shows all the links with their paths. When we attempt to open this form we get the message you see above. Click OK on the message and Nyberg's SeeLinks form opens but with nothing showing up regarding linked tables. 3) I can open the linked tables from the "master" front end. But when I open the table that contains the latest version number (part of the version upgrade system) I see something odd. This Versions table has one row. The table has a Default value of the Now() function in the VersionDate column. On my system when I look at the table I see the first row all right and in the 2nd (empty) row I see (AutoNumber) in the key field and today's date and time in the VersionDate column. On my client's system he sees #Name? in the VersionDate column in an empty row. He cannot add information in a new row because Access doesn't like the default value. So I had Bob remove the default value. I still get the main problem. 4) The users can still run the application from their workstations using the old version of the FE. There hasn't been any problem there. 5) The Startup form of the FE calls Carl Tribble's Auto-Linker to check the link status of the first table before the main switchboard menu appears. This is all working properly on the users' workstations. 6) I tried Compact and Repair on both the BE and the FE. No change in basic error. 7) I checked the references. They're all there. 8) Only thing I haven't done (at least that I know how to do) is a /decompile on the "master" FE on the server. I'm sorry about the length of this message. I somehow doubt that I would find the problem even if I were sitting at the workstation. Bob is very capable, so I'm sure he's relaying to me everything that he sees. At least my clients can still work with the older version of the app. I am just stumped why this error message appears in the "master" front end database. Any thoughts, other than "Well, why the heck do you let the user make an MDE in the first place, ya numbskull?!" Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "Congress is as trustworthy with money as a crack addict who is experimenting with heroin." - Dave Barry "Giving money and power to the government is like giving whiskey and car keys to teenage boys." - P. J. O'Rourke "Be thankful we're not getting all the government we're paying for." - Will Rogers "It could probably be shown by facts and figures that there is no distinctly American criminal class except Congress." - Mark Twain -------------------------------------------------------------------------------------------------------------------- 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 dwaters at usinternet.com Tue Apr 6 09:13:18 2004 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 6 Apr 2004 09:13:18 -0500 Subject: [AccessD] A2K: Help with Error accessing file In-Reply-To: <19244937.1081259191497.JavaMail.root@sniper2.marix.com> Message-ID: <000601c41be1$4f82f2f0$de1811d8@DanWaters> I have to say that I haven't had any problems yet with GoToMyPC. It seems that the host PC has priority over the keyboard and mouse activities. A high-speed internet connection on both ends is required. I will check out Remote Administrator - the price is good! Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brett Barabash Sent: Tuesday, April 06, 2004 8:33 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2K: Help with Error accessing file We tried GoToMyPC here. Had a number of problems, especially when working in a "2-way" teleconference where both parties were driving the machine. The machine would hang while waiting for the other party to move their mouse, click a key, etc. I followed Drew's suggestion a while back, and picked up a copy of Remote Administrator (www.radmin.com). $35 covers the license for 2 machines. No monthly charges. No headaches. Works for us! -----Original Message----- From: Dan Waters [mailto:dwaters at usinternet.com] Sent: Monday, April 05, 2004 5:35 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2K: Help with Error accessing file --------------Please open with care!------------ This message has bypassed some of our spam filtering rules. This message was scanned for viruses and executable code has been stripped. --------------------------------------------------------------- Steve, I don't have an answer to your specific problem, but since your client is distant this might help: Have your client download a trial version of GoToMyPC. He can set up an account for himself. GoToMyPC has a feature called 'Guest Invite'. He can use this to let you see what's happening on his screen, and you can control his PC from yours so you can do some troubleshooting. I guess this is similar to WebEx or PCAnywhere. If he decides to keep the GoToMyPC account, he only needs to pay $15/mo. I use it to work with my clients so they can see 'drafts' of what I'm doing without making a trip. Best of Luck! Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steven W. Erbach Sent: Monday, April 05, 2004 10:33 AM To: Access Developers discussion and problem solving Subject: [AccessD] A2K: Help with Error accessing file Dear Group, I have an Access 2000 FE/BE application loaded on a client's system in another city 90 miles away. I've been working with their network guy over the phone and he's sent me screen shots of error messages along the way. Here's the situation. The "master" MDB FE database is loaded on the server. I have the local people there create an MDE and place it in another folder so that's it's available for the users who download it to their workstations when a new version is ready. While working with my client's network guy, Bob, the MDE file SEEMS to be created all right; but once the compacting is finished and the FE starts up, the first form opens and he gets this message (it's an "i" message): The expression On Load you entered as the event property setting produced the following error: Error accessing file. Network connection may have been lost. * The expression may not result in the name of a macro, the name of a user-defined function, or [Event Procedure]. * There may have been an error evaluating the function, event, or macro. When he clicks OK the startup form (which is supposed to be hidden) is there on the screen and the application has halted. INVESTIGATION: 1) They don't have the Documentor installed so I can't see what the path is to the BE. 2) However, I do have a form (that I cobbed from Steve Nyberg) that shows all the links with their paths. When we attempt to open this form we get the message you see above. Click OK on the message and Nyberg's SeeLinks form opens but with nothing showing up regarding linked tables. 3) I can open the linked tables from the "master" front end. But when I open the table that contains the latest version number (part of the version upgrade system) I see something odd. This Versions table has one row. The table has a Default value of the Now() function in the VersionDate column. On my system when I look at the table I see the first row all right and in the 2nd (empty) row I see (AutoNumber) in the key field and today's date and time in the VersionDate column. On my client's system he sees #Name? in the VersionDate column in an empty row. He cannot add information in a new row because Access doesn't like the default value. So I had Bob remove the default value. I still get the main problem. 4) The users can still run the application from their workstations using the old version of the FE. There hasn't been any problem there. 5) The Startup form of the FE calls Carl Tribble's Auto-Linker to check the link status of the first table before the main switchboard menu appears. This is all working properly on the users' workstations. 6) I tried Compact and Repair on both the BE and the FE. No change in basic error. 7) I checked the references. They're all there. 8) Only thing I haven't done (at least that I know how to do) is a /decompile on the "master" FE on the server. I'm sorry about the length of this message. I somehow doubt that I would find the problem even if I were sitting at the workstation. Bob is very capable, so I'm sure he's relaying to me everything that he sees. At least my clients can still work with the older version of the app. I am just stumped why this error message appears in the "master" front end database. Any thoughts, other than "Well, why the heck do you let the user make an MDE in the first place, ya numbskull?!" Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "Congress is as trustworthy with money as a crack addict who is experimenting with heroin." - Dave Barry "Giving money and power to the government is like giving whiskey and car keys to teenage boys." - P. J. O'Rourke "Be thankful we're not getting all the government we're paying for." - Will Rogers "It could probably be shown by facts and figures that there is no distinctly American criminal class except Congress." - Mark Twain ---------------------------------------------------------------------------- ---------------------------------------- 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 prodevmg at yahoo.com Tue Apr 6 09:53:14 2004 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Tue, 6 Apr 2004 07:53:14 -0700 (PDT) Subject: [AccessD] MS Access to VB.Net Message-ID: <20040406145314.54399.qmail@web20416.mail.yahoo.com> Does anyone know of a free untility/application that can convert an MS Access application to VB.Net? Thanks. Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter today From ssharkins at bellsouth.net Tue Apr 6 09:58:25 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 6 Apr 2004 10:58:25 -0400 Subject: [AccessD] OT: open source Message-ID: <20040406145847.NMC1781.imf18aec.mail.bellsouth.net@SUSANONE> Someone has asked me "What's in the future for Microsoft and the Open Source movement? " It's such a huge topic I couldn't really answer -- it's going to take me a few days to formulate a response. It is a tad off topic for a strictly Access list -- and I don't want any MS bashing, just because that would be even more off topic -- but anyone want to make a comment on the subject? I'd love to hear them -- my initial response to the guy was "Resistance is futile" but that's only really funny if you're saying it from the MS perspective. ;) Susan H. From cfoust at infostatsystems.com Tue Apr 6 10:10:10 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 6 Apr 2004 08:10:10 -0700 Subject: [AccessD] MS Access to VB.Net Message-ID: Not for free, but there is a product called Evolution http://www.perfectdownloads.com/software-development/basic-vb-vb-dotnet/ download-evolution.htm that is not too expensive and can be tried out for free. Charlotte Foust -----Original Message----- From: Lonnie Johnson [mailto:prodevmg at yahoo.com] Sent: Tuesday, April 06, 2004 6:53 AM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] MS Access to VB.Net Does anyone know of a free untility/application that can convert an MS Access application to VB.Net? Thanks. Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter today -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mwp.reid at queens-belfast.ac.uk Tue Apr 6 10:04:54 2004 From: mwp.reid at queens-belfast.ac.uk (Martin Reid) Date: Tue, 6 Apr 2004 16:04:54 +0100 (GMT Daylight Time) Subject: [AccessD] OT: open source In-Reply-To: <20040406145847.NMC1781.imf18aec.mail.bellsouth.net@SUSANONE> Message-ID: >From our point of view it would be difficult in terms of money and infrastructure to change over. The amount of work would be massive requiring a substantial investment in both hardware, software and training. Its not impossible just take the will to make the move. Martin Martin WP Reid Information Services Queens University Belfast Tel: (02890) 273750 ---------------------- From cfoust at infostatsystems.com Tue Apr 6 10:22:12 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 6 Apr 2004 08:22:12 -0700 Subject: [AccessD] A97 or A2002 Message-ID: You can use DAO with A2002 (and yes, that is AXP), so that isn't a problem. The 97 file format is smaller because it doesn't use unicode, but I would suggest using the 2000 file format because it does use unicode and it doesn't have the extra bloat problem that exists in 2002. The file size will roughly double between 97 and 2000/2002 because of unicode. Charlotte Foust -----Original Message----- From: Griffiths, Richard [mailto:R.Griffiths at bury.gov.uk] Sent: Tuesday, April 06, 2004 12:50 AM To: AccessD (AccessD at databaseadvisors.com) Subject: [AccessD] A97 or A2002 Hi Group I am looking to rewrite a system (to a VB front end Access BE from Acc FE/Be in Acc 97). I still intend to use DAO - I am looking for advice on whether to upgrade the Be to A2002 ( is this AXP? btw) or keep BE in Acc 97 . TIA Richard -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Tue Apr 6 10:24:03 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 6 Apr 2004 11:24:03 -0400 Subject: [AccessD] OT: open source In-Reply-To: Message-ID: <20040406152426.QPZO1746.imf17aec.mail.bellsouth.net@SUSANONE> But why should they? Susan H. >From our point of view it would be difficult in terms of money and infrastructure to change over. The amount of work would be massive requiring a substantial investment in both hardware, software and training. Its not impossible just take the will to make the move. From Bryan_Carbonnell at cbc.ca Tue Apr 6 10:30:12 2004 From: Bryan_Carbonnell at cbc.ca (Bryan Carbonnell) Date: Tue, 06 Apr 2004 11:30:12 -0400 Subject: [AccessD] OT: open source Message-ID: Susan, I don't have time right now, but I'll post something later this afternoon or tonight. Bryan Carbonnell bryan_carbnnell at cbc.ca >>> ssharkins at bellsouth.net 06-Apr-04 10:58:25 AM >>> Someone has asked me "What's in the future for Microsoft and the Open Source movement? " It's such a huge topic I couldn't really answer -- it's going to take me a few days to formulate a response. It is a tad off topic for a strictly Access list -- and I don't want any MS bashing, just because that would be even more off topic -- but anyone want to make a comment on the subject? I'd love to hear them -- my initial response to the guy was "Resistance is futile" but that's only really funny if you're saying it from the MS perspective. ;) Susan H. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mwp.reid at qub.ac.uk Tue Apr 6 10:43:22 2004 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Tue, 6 Apr 2004 16:43:22 +0100 Subject: [AccessD] OT: open source References: <20040406152426.QPZO1746.imf17aec.mail.bellsouth.net@SUSANONE> Message-ID: <000b01c41bed$e465ea60$9111758f@aine> WHy should we move? Money, costs us a fortune for MS licences Martin ----- Original Message ----- From: "Susan Harkins" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, April 06, 2004 4:24 PM Subject: RE: [AccessD] OT: open source > But why should they? > > Susan H. > > >From our point of view it would be difficult in terms of > money and infrastructure to change over. The amount of work would be massive > requiring a substantial investment in both hardware, software and training. > > Its not impossible just take the will to make the move. > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From ssharkins at bellsouth.net Tue Apr 6 10:51:58 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 6 Apr 2004 11:51:58 -0400 Subject: [AccessD] OT: open source In-Reply-To: <000b01c41bed$e465ea60$9111758f@aine> Message-ID: <20040406155218.WWBW1775.imf19aec.mail.bellsouth.net@SUSANONE> Oh, I'm not confronting license prices as is -- but that's not a motivation for MS to move -- it's a motivation for you to want them to change their policy. ;) I thought you guys were an MS shop already -- you're not? Susan H. WHy should we move? Money, costs us a fortune for MS licences Martin ----- Original Message ----- From: "Susan Harkins" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, April 06, 2004 4:24 PM Subject: RE: [AccessD] OT: open source > But why should they? > > Susan H. > > >From our point of view it would be difficult in terms of > money and infrastructure to change over. The amount of work would be massive > requiring a substantial investment in both hardware, software and training. > > Its not impossible just take the will to make the move. > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwelz at hotmail.com Tue Apr 6 11:42:30 2004 From: jwelz at hotmail.com (Jürgen Welz) Date: Tue, 06 Apr 2004 10:42:30 -0600 Subject: [AccessD] OT: open source Message-ID: I get a news letter 'What's New Now from Ziff Davis' that had links to a number of articles alleging that the TCO of Microsoft product was cheaper than open source alternatives. I very briefly skimmed the article but don't have access to the mail account that receives this news letter except Fridays when I do my weekly support stint at a former employer who maintains this account for me. I suspect that many of the arguments have to do with the ubiquitousness of the Microsoft product in North America, the pervasive use of which results in a significantly reduced learning curve for many businesses. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >Money, costs us a fortune for MS licences > > >Martin > > >----- Original Message ----- >From: "Susan Harkins" >To: "'Access Developers discussion and problem solving'" > >Sent: Tuesday, April 06, 2004 4:24 PM >Subject: RE: [AccessD] OT: open source > > > > But why should they? > > > > Susan H. > > > > >From our point of view it would be difficult in terms of > > money and infrastructure to change over. The amount of work would be >massive > > requiring a substantial investment in both hardware, software and >training. > > > > Its not impossible just take the will to make the move. _________________________________________________________________ MSN Toolbar provides one-click access to Hotmail from any Web page ? FREE download! http://toolbar.msn.com/go/onm00200413ave/direct/01/ From R.Griffiths at bury.gov.uk Tue Apr 6 11:56:05 2004 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Tue, 6 Apr 2004 17:56:05 +0100 Subject: [AccessD] A97 or A2002 Message-ID: Charlotte Thanks for your reply - I assume you can choose when you load A2002 (AXP) to have 2000 format? What are the benefits for Unicode - what other benefits does A2000 have? Thanks -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: 06 April 2004 16:22 To: Access Developers discussion and problem solving Subject: RE: [AccessD] A97 or A2002 You can use DAO with A2002 (and yes, that is AXP), so that isn't a problem. The 97 file format is smaller because it doesn't use unicode, but I would suggest using the 2000 file format because it does use unicode and it doesn't have the extra bloat problem that exists in 2002. The file size will roughly double between 97 and 2000/2002 because of unicode. Charlotte Foust -----Original Message----- From: Griffiths, Richard [mailto:R.Griffiths at bury.gov.uk] Sent: Tuesday, April 06, 2004 12:50 AM To: AccessD (AccessD at databaseadvisors.com) Subject: [AccessD] A97 or A2002 Hi Group I am looking to rewrite a system (to a VB front end Access BE from Acc FE/Be in Acc 97). I still intend to use DAO - I am looking for advice on whether to upgrade the Be to A2002 ( is this AXP? btw) or keep BE in Acc 97 . TIA Richard -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mwp.reid at qub.ac.uk Tue Apr 6 12:20:32 2004 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Tue, 6 Apr 2004 18:20:32 +0100 Subject: [AccessD] OT: open source References: <20040406155218.WWBW1775.imf19aec.mail.bellsouth.net@SUSANONE> Message-ID: <000d01c41bfb$789ccde0$1b02a8c0@MARTINREID> We are. Sorry for confusion. Martin ----- Original Message ----- From: "Susan Harkins" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, April 06, 2004 4:51 PM Subject: RE: [AccessD] OT: open source > Oh, I'm not confronting license prices as is -- but that's not a motivation > for MS to move -- it's a motivation for you to want them to change their > policy. ;) I thought you guys were an MS shop already -- you're not? > > Susan H. > > WHy should we move? > > Money, costs us a fortune for MS licences > > > Martin > > > ----- Original Message ----- > From: "Susan Harkins" > To: "'Access Developers discussion and problem solving'" > > Sent: Tuesday, April 06, 2004 4:24 PM > Subject: RE: [AccessD] OT: open source > > > > But why should they? > > > > Susan H. > > > > >From our point of view it would be difficult in terms of > > money and infrastructure to change over. The amount of work would be > massive > > requiring a substantial investment in both hardware, software and > training. > > > > Its not impossible just take the will to make the move. > > > > > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Apr 6 12:37:11 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 6 Apr 2004 10:37:11 -0700 Subject: [AccessD] A97 or A2002 Message-ID: The format is selected on a database basis, but 2000 is the default format. You can set the default to 2002, but the database opens in whatever format you used to create/convert it. I'll let someone else address the unicode issue. Charlotte Foust -----Original Message----- From: Griffiths, Richard [mailto:R.Griffiths at bury.gov.uk] Sent: Tuesday, April 06, 2004 8:56 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A97 or A2002 Charlotte Thanks for your reply - I assume you can choose when you load A2002 (AXP) to have 2000 format? What are the benefits for Unicode - what other benefits does A2000 have? Thanks -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: 06 April 2004 16:22 To: Access Developers discussion and problem solving Subject: RE: [AccessD] A97 or A2002 You can use DAO with A2002 (and yes, that is AXP), so that isn't a problem. The 97 file format is smaller because it doesn't use unicode, but I would suggest using the 2000 file format because it does use unicode and it doesn't have the extra bloat problem that exists in 2002. The file size will roughly double between 97 and 2000/2002 because of unicode. Charlotte Foust -----Original Message----- From: Griffiths, Richard [mailto:R.Griffiths at bury.gov.uk] Sent: Tuesday, April 06, 2004 12:50 AM To: AccessD (AccessD at databaseadvisors.com) Subject: [AccessD] A97 or A2002 Hi Group I am looking to rewrite a system (to a VB front end Access BE from Acc FE/Be in Acc 97). I still intend to use DAO - I am looking for advice on whether to upgrade the Be to A2002 ( is this AXP? btw) or keep BE in Acc 97 . TIA Richard -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From my.lists at verizon.net Tue Apr 6 13:39:32 2004 From: my.lists at verizon.net (Francisco H Tapia) Date: Tue, 06 Apr 2004 11:39:32 -0700 Subject: [AccessD] Lightweight security (Revisited) Message-ID: <4072F964.8050307@verizon.net> I'm not much into the light weight security, however... after reading several of John's posts, I'm sure others have wanted a feature like this: check out the following article in which they feature an Access LightWeight security, but they call it LASsie. http://advisor.com/doc/13743 -- -Francisco From ssharkins at bellsouth.net Tue Apr 6 12:59:26 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 6 Apr 2004 13:59:26 -0400 Subject: [AccessD] OT: open source In-Reply-To: <000d01c41bfb$789ccde0$1b02a8c0@MARTINREID> Message-ID: <20040406175945.JJMC1709.imf20aec.mail.bellsouth.net@SUSANONE> I can understand the push for open source from the development side -- I just don't see the issues that motivate MS to actually go that route. Susan H. We are. Sorry for confusion. From wdhindman at bellsouth.net Tue Apr 6 14:58:56 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Tue, 6 Apr 2004 15:58:56 -0400 Subject: [AccessD] Search tool References: <040620041047.29003.40728ABA000593790000714B2200734076FF99998A8D9E8F8F9E@comcast.net> Message-ID: <006501c41c11$98145e70$6101a8c0@dejpolsys> ...F&R is comparatively inexpensive but ime, SF works much, much faster and has a lot of options simply not found in F&R ...I switched to F&R for awhile when SF was late getting an AXP version released but switched right back as soon as they released it. Political advertising is the price of our chains ...my name is William Hindman and I approve this message :) ----- Original Message ----- From: To: "Access Developers discussion and problem solving" Sent: Tuesday, April 06, 2004 6:47 AM Subject: Re: [AccessD] Search tool > > Speed Ferret is an excellent tool but I prefer Rick Fisher's Find And Replace. It is about 2/3rds the cost of Speed Ferret and it has served me well for the past 5 years. > > Check out http://www.rickworld.com > > > -- > John V. Ruff - The Eternal Optimist :-) > > > "Commit to the Lord whatever you do, > and your plans will succeed." Proverbs 16:3 > > Hi group, > > > > does anyone know of a good search tool / addin or whatever. With which i > > will be able to search in queryfields, querycriteris, formcontrols > > recordsources etc. to find querynames, tablenames, tablefields, functions > > etc. > > > > I hope you understand what i am looking for..... > > > > BTW i will use this in A2K. > > > > Thanks. > > > > Bert-Jan > > > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rl_stewart at highstream.net Tue Apr 6 16:02:41 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Tue, 06 Apr 2004 16:02:41 -0500 Subject: [AccessD] Re: Help with Error accessing file In-Reply-To: <200404061715.i36HFPB18999@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040406160114.02af0ea0@pop3.highstream.net> Steve, I do not know why no one else caught this. The database is corrupt. That is one of the errors you get when it is. Robert At 12:15 PM 4/6/2004 -0500, you wrote: >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steven W. Erbach >Sent: Monday, April 05, 2004 10:33 AM >To: Access Developers discussion and problem solving >Subject: [AccessD] A2K: Help with Error accessing file > >Dear Group, > >I have an Access 2000 FE/BE application loaded on a client's system in >another city 90 miles away. I've been working with their network guy over >the phone and he's sent me screen shots of error messages along the way. >Here's the situation. > >The "master" MDB FE database is loaded on the server. I have the local >people there create an MDE and place it in another folder so that's it's >available for the users who download it to their workstations when a new >version is ready. While working with my client's network guy, Bob, the MDE >file SEEMS to be created all right; but once the compacting is finished and >the FE starts up, the first form opens and he gets this message (it's an "i" >message): > >The expression On Load you entered as the event property setting produced >the following error: Error accessing file. Network connection may have been >lost. > > * The expression may not result in the name of a macro, the name of a >user-defined function, or [Event Procedure]. > * There may have been an error evaluating the function, event, or macro. > >When he clicks OK the startup form (which is supposed to be hidden) is there >on the screen and the application has halted. > >INVESTIGATION: > >1) They don't have the Documentor installed so I can't see what the path is >to the BE. > >2) However, I do have a form (that I cobbed from Steve Nyberg) that shows >all the links with their paths. When we attempt to open this form we get the >message you see above. Click OK on the message and Nyberg's SeeLinks form >opens but with nothing showing up regarding linked tables. > >3) I can open the linked tables from the "master" front end. But when I open >the table that contains the latest version number (part of the version >upgrade system) I see something odd. This Versions table has one row. The >table has a Default value of the Now() function in the VersionDate column. >On my system when I look at the table I see the first row all right and in >the 2nd (empty) row I see (AutoNumber) in the key field and today's date and >time in the VersionDate column. On my client's system he sees #Name? in the >VersionDate column in an empty row. He cannot add information in a new row >because Access doesn't like the default value. So I had Bob remove the >default value. I still get the main problem. > >4) The users can still run the application from their workstations using the >old version of the FE. There hasn't been any problem there. > >5) The Startup form of the FE calls Carl Tribble's Auto-Linker to check the >link status of the first table before the main switchboard menu appears. >This is all working properly on the users' workstations. > >6) I tried Compact and Repair on both the BE and the FE. No change in basic >error. > >7) I checked the references. They're all there. > >8) Only thing I haven't done (at least that I know how to do) is a >/decompile on the "master" FE on the server. > >I'm sorry about the length of this message. I somehow doubt that I would >find the problem even if I were sitting at the workstation. Bob is very >capable, so I'm sure he's relaying to me everything that he sees. > >At least my clients can still work with the older version of the app. I am >just stumped why this error message appears in the "master" front end >database. Any thoughts, other than "Well, why the heck do you let the user >make an MDE in the first place, ya numbskull?!" > >Regards, > >Steve Erbach >Scientific Marketing >Neenah, WI >920-969-0504 From stuart at lexacorp.com.pg Tue Apr 6 16:49:03 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 07 Apr 2004 07:49:03 +1000 Subject: [AccessD] OT: open source In-Reply-To: <20040406145847.NMC1781.imf18aec.mail.bellsouth.net@SUSANONE> Message-ID: <4073B26F.4145.132DAB@localhost> On 6 Apr 2004 at 10:58, Susan Harkins wrote: > Someone has asked me "What's in the future for Microsoft and the Open Source > movement? " > > It's such a huge topic I couldn't really answer -- it's going to take me a > few days to formulate a response. It is a tad off topic for a strictly > Access list -- and I don't want any MS bashing, just because that would be > even more off topic -- but anyone want to make a comment on the subject? I'd > love to hear them -- my initial response to the guy was "Resistance is > futile" but that's only really funny if you're saying it from the MS > perspective. ;) > I think that Peruvian Congressmen Edgar Villanueva Nu?ez summed up the arguments fairly well: http://www.opensource.org/docs/peru_and_ms.php -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From Bryan_Carbonnell at cbc.ca Tue Apr 6 16:46:58 2004 From: Bryan_Carbonnell at cbc.ca (Bryan Carbonnell) Date: Tue, 06 Apr 2004 17:46:58 -0400 Subject: [AccessD] OT: open source Message-ID: Warning!!! I got very, very verbose. In the grand scheme of things, I don't think that MS has to worry a lot about open source on the desktop for quite a few more years. Once some of the desktop apps start to mature a bit more, I think MS will start being given a run for their money. Things like OpenOffice (office suite), Firefox (web browser), ThunderBird(e-mail client). Once they start to take a hold, then MS will definitely need to watch what they do. Actually they are probably watching now and don't like what they see. The open source apps are *almost* there, but they have their quirks, that either need to get fixed, or users will get used to them. Just like they did, and do, with MS products. As for the actual Desktop operating system, that is further out. 5-7 years would be my guess. Linux needs a few things to become more competitive with Windows. It *needs* to become less "geek-friendly" and more "user friendly". It also *NEEDS* to have a "standard" GUI, or at least a standard layout. That way the end user can find what they are looking for with minimal effort. Fragmentation, between KDE and Gnome and all the lesser known desktops, is really hurting Linux's acceptance on the desktop. Home and corporate. The choice to use your preferred desktop needs to exist, but it's got to start out looking and feeling the same as the next one. That way a user can go from this PC to that PC to the other and have the "same experience" Much the same way Windows users have it right now. yes I know there are differences between 9x, NT4, 2K and XP (both the classic UI and the "Fisher Price" one{that I happen to like :) } ). they are slightly different, but close enough for most people to stumble their way around. Unfortunately the Linux X-Widows desktops don't have that "portability" right now. The choice to use which ever one you want needs to remain, for the hard core Linux users, but for the average user, they don't care. Just let them set their wallpaper to their dog or cat or kids and make sure they can use the tools they need to do their job and they are happy. Yep, I know that is a bit condescending to the users, but I don't think its' that far from the truth Now, in the server room, I think that MS has got more to worry about. Just like the switch from Novell to MS happened (although I disagree that Novell networks are dead), I really think that the switch to Linux there is already happening. As more and more SysAdmins set up "test" boxes to "play" with Linux and end up part of the network infrastructure, Linux will become more and more the choice for new servers. With all the excellent and mature server software for Linux, that is out there, MS better watch themselves otherwise they will lose the server room. Is Linux better than Win Servers? Are either better than Novell? Is Novell better that either one? No to all the questions. They all fill different needs. If I am Novell certified, then of course I'm going to lean towards Novell servers and be able to "make it work". If I am MS certified, then that is where my loyalties will be. If I'm comfortable with Unix or Linux, then Linux will be the server of choice for me. All 3 would work equally well. I'd almost be willing to bet that if I had 3 equally competent SysAdmins, one for each Linux, MS and Novell, the TCO would be similar enough to not be a deciding factor. As more and more SysAdmins become more and more comfortable with Linux you'll see they start taking market share away from MS, and not just the Unix vendors like they are now. As MS makes the hardware specs higher and higher for their servers, increases the license costs and p*sses more and more people with the changes in the license agreements, then Linux servers will replace MS servers one by one. I don't think you will see a lot of people saying "Rip out all the MS servers and replace them with Linux servers", what you will see is people saying "We need another server, so let's use Linux, since it can integrate with our network as it is" Now, I know that isn't really answering your question Susan, but I'm getting to that. :) MS needs to take the Open Source community seriously. Its making inroads into a lot of places that I never thought it would. My house for one. I have long been a strong MS proponent. Well actually, since about 92 or 93, when I first started using Windows. But as Open Source is maturing, it is looking like a better alternative to me. I am using a whole host of Open Source apps in my day to day life. They are comparable to commercial apps. Things like Filezilla (FTP client, but I know you know that already Susan :)and Firefox (web browser). Why should I fork $40 or $50 or $100 for an app that I can get for free? Yes, I know that with the paid apps, I get tech support, but these days tech support for software is crap. The last time I *NEEDED* software support, was about 4 or 5 years ago when I got bad discs. I took it back to the store where I bought it until I had gone through EVERY SINGLE SHRINK-WRAPPED PACKAGE they had. I finally contacted the vendor and got the run around trying to get these defective discs replaced. It took me about 3 months to get it sorted out. For $100 I should get better service than that. I'd much sooner deal with an online community, such as DBA, for the software support than the vendor. I get better and more accurate responses. Will MS need to make their stuff Open Source to survive? I don't think so. Will MS Open Source their software anyway? I really doubt it. Maybe bits and pieces, but the whole thing, No way. Will MS incorporate Open Source into their software? As far as I understand, they already have with the TCP/IP stack. Its based on the BSD stack, IIRC. Keep in mind that there are several different Open Source licenses. There are 2 that I am most familiar with. 1) There is the Gnu Public Licence(GPL) which in a nutshell says that the software, and any software derived for it MUST make available the source code to those that ask. You can charge for the software if you want, but the source code must be given upon request. This is what the Linux Kernel is distributed under. 2) BSD style license. Basically this says that you can do what you wan t with the source code. You can leave it open, you can build a derived work and keep it open. You can create a derivative and close it. You can do what ever you want, except claim you wrote the original. Mac OS X is built on one of the BSD operating systems. It is a closed derivative of BSD. If you want to see a BSD style license look at the license agreement that we (Andy, Lembit, Reuben and I) used for the BEU. So they are allowed to use BSD style open source material in their applications. So, I suspect that they will continue to use it. However, there is the expectation that if you improve open source code, you return the improved code to the community. I can't see MS doing this freely, or at least "in the open". It will hurt their "public image" To sum up, in 10,000 words or less :) MS needs to watch the open source community. It will hurt them if they are not careful. It won't be a quick kill, but slow and gradual. Actually it will probably hurt them even if they are careful. MS probably won't open source their code, but will use what they can from the community and get away with. Is open source a panacea? No way. But then again, neither is MS. It's a choice that is becoming more and more viable especially as the software becomes more mature. Will it hurt MS? In the long run, more likely than not, but MS will survive. They may be different, but they will still be there. How's that for $0.02 worth of opinion. Bryan Carbonnell bryan_carbonnell at cbc.ca >>> ssharkins at bellsouth.net 04/06/04 10:58AM >>> Someone has asked me "What's in the future for Microsoft and the Open Source movement? " It's such a huge topic I couldn't really answer -- it's going to take me a few days to formulate a response. It is a tad off topic for a strictly Access list -- and I don't want any MS bashing, just because that would be even more off topic -- but anyone want to make a comment on the subject? I'd love to hear them -- my initial response to the guy was "Resistance is futile" but that's only really funny if you're saying it from the MS perspective. ;) From ssharkins at bellsouth.net Tue Apr 6 17:18:18 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 6 Apr 2004 18:18:18 -0400 Subject: [AccessD] OT: open source In-Reply-To: Message-ID: <20040406221838.PADI1715.imf16aec.mail.bellsouth.net@SUSANONE> That was very good and very close to my own opinions except I just don't have the expertise to speak to servers. I think MS will adjust and change as necessary -- but can't really predict what that will mean. My question is this -- if they're all giving it up for free -- how are they going to make money and stay in business. Support? Is there really going to be enough support $ to cover it? I wouldn't think so. Anybody using MySQL and paying for the support? I absolutely hate using MySQL, but I wouldn't pay for support. There's got to be part of the puzzle that I'm missing. Susan H. Is open source a panacea? No way. But then again, neither is MS. It's a choice that is becoming more and more viable especially as the software becomes more mature. Will it hurt MS? In the long run, more likely than not, but MS will survive. They may be different, but they will still be there. From Mark.Mitsules at ngc.com Tue Apr 6 17:48:37 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Tue, 6 Apr 2004 18:48:37 -0400 Subject: [AccessD] OT: open source Message-ID: Congressman DR. EDGAR DAVID VILLANUEVA NU?EZ's reply was simply AWESOME! Well worth the read. Mark -----Original Message----- From: Stuart McLachlan [mailto:stuart at lexacorp.com.pg] Sent: Tuesday, April 06, 2004 5:49 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: open source On 6 Apr 2004 at 10:58, Susan Harkins wrote: > Someone has asked me "What's in the future for Microsoft and the Open Source > movement? " > > It's such a huge topic I couldn't really answer -- it's going to take me a > few days to formulate a response. It is a tad off topic for a strictly > Access list -- and I don't want any MS bashing, just because that would be > even more off topic -- but anyone want to make a comment on the subject? I'd > love to hear them -- my initial response to the guy was "Resistance is > futile" but that's only really funny if you're saying it from the MS > perspective. ;) > I think that Peruvian Congressmen Edgar Villanueva Nu?ez summed up the arguments fairly well: http://www.opensource.org/docs/peru_and_ms.php -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From my.lists at verizon.net Tue Apr 6 17:51:53 2004 From: my.lists at verizon.net (Francisco H Tapia) Date: Tue, 06 Apr 2004 15:51:53 -0700 Subject: [AccessD] OT: open source In-Reply-To: References: Message-ID: <40733489.2040700@verizon.net> Bryan Carbonnell said the following on 4/6/2004 2:46 PM: >As for the actual Desktop operating system, that is further out. 5-7 >years would be my guess. Linux needs a few things to become more >competitive with Windows. It *needs* to become less "geek-friendly" and >more "user friendly". It also *NEEDS* to have a "standard" GUI, or at >least a standard layout. > While I agree with you I also have to guess that a Linux convertion may be closer than we all guess. There have been leaps and bounds in which the various distros have improved their desktop products. I also must concur that a standardized GUI would be the killer blow that would/will ultimately drive hords of users away from Microsoft. I base my opinion off such distros like RedHat or even the newest one I've seen (Knopixx). Wich is an OS bootable completely off the CD. It is Linux, and what makes this even more cool is that you could theoretically put out a distro that would make it so that end users "couldn't" break thier installations. Just always boot from the CD. With High end products such as ThunderBird and FireFox and even some of the OpenOffice products, Open Source products are reaching maturity levels that are acceptable to a wider population. Some of the greatest leaps have been "custom installers" for such products. This improves delivery to end users who are wanting to try a simpler to use OPEN SOURCE community. A greater risk than vulnerabilities in MS software is not so much the security holes, but the COST of the software. You have many college students that simply can't afford to go w/ MS Office so they use OpenOffice. While not all do, the trend is steadily climing, and w/ the avalability getting better and the quaility reaching acceptace from the general public, this will help push more OpenSource software into the main stream. -- -Francisco From bruce_bruen at mlc.com.au Tue Apr 6 17:51:13 2004 From: bruce_bruen at mlc.com.au (bruce_bruen at mlc.com.au) Date: Wed, 7 Apr 2004 08:51:13 +1000 Subject: [AccessD] OT: open source Message-ID: Susan, Open source does not mean free of cost. Nor does it always mean free of licence fees. The strength of the open source movement lies in the ability of the licencee to alter the software to their own needs. Apache on Linux servers is the most widely used web server technology in the world. Usage of MySQL in corporate applications in Aus/NZ has increased by 60% in the last year and is expected to grow at a similar but declining rate for the "forseeable future" (Source C-Net survey results) There are versioning problems in open source software - dont let anyone tell you otherwise. The TCO numbers game is b***s**t. There is "statistical evidence" proving both sides are correct. Have you read "The Cathedral and the Bazaar". http://www.catb.org/~esr/writings/cathedral-bazaar/ or http://www.firstmonday.org/ Its the short and to the point "sales" material for open source. Look at the adoption of open source software by the public sector for some indication of the stability and future of the open source movement. B "Susan Harkins" To: "'Access Developers discussion and problem solving'" Sent by: accessd-bounces at databasea cc: dvisors.com Subject: RE: [AccessD] OT: open source 07/04/2004 08:18 Please respond to Access Developers discussion and problem solving That was very good and very close to my own opinions except I just don't have the expertise to speak to servers. I think MS will adjust and change as necessary -- but can't really predict what that will mean. My question is this -- if they're all giving it up for free -- how are they going to make money and stay in business. Support? Is there really going to be enough support $ to cover it? I wouldn't think so. Anybody using MySQL and paying for the support? I absolutely hate using MySQL, but I wouldn't pay for support. There's got to be part of the puzzle that I'm missing. Susan H. Is open source a panacea? No way. But then again, neither is MS. It's a choice that is becoming more and more viable especially as the software becomes more mature. Will it hurt MS? In the long run, more likely than not, but MS will survive. They may be different, but they will still be there. -- _______________________________________________ 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 Tue Apr 6 17:59:07 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Wed, 7 Apr 2004 08:59:07 +1000 Subject: [AccessD] A2K: Transfer Database References: <20040406090248.69D1225E4A0@smtp.nildram.co.uk> Message-ID: <001801c41c2a$c4014c00$48619a89@DDICK> Hi Guys Yep Paul was right The first field had been changed (by me :-(() in testing and that stuffed everything up. Change the columns headers and away she went Thanks for the replies DD ----- Original Message ----- From: "Andy Lacey" To: "Access Developers discussion and problem solving" Sent: Tuesday, April 06, 2004 8:02 PM Subject: Re: [AccessD] A2K: Transfer Database > That was my first reaction Paul, then I wondered how that could be when > doing an import rather than an export. The fields on the dbf must already be > unique and a max of 10 chars, cos that's all the dbf would allow. Unless the > dbf is non-standard and was created using something other than the usual > packages. In which case you may be right. Certainly worth a look Darren. > Alternatively have you tried the other similar import types to dBase IV, > like 'dbase III', 'dbase 5.0' and all the Foxpro versions? > > -- > 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] A2K: Transfer Database > Date: 06/04/04 08:44 > > > > > Darren, > > try taking a look at the first ten characters of the DBase IV table fields > you are trying to import (i.e. you may have something like StudentsID1 and > StudentsID2 if you look at the first ten characters you will only have > StudentsID) for some reason when trying to Export/Import DBase IV tables it > only reads the first ten characters. Make sure the first ten characters in > your fields are different and then you should be ok. > > Paul > > > > > > > > > > > > Message date : Apr 06 2004, 06:01 AM > > >From : "Darren DICK" > > To : "AccessD List" > > Copy to : > > Subject : [AccessD] A2K: Transfer Database > > hello all > > can anyone tell me why the acLink version of transfer database > > below works but the import version fails? Along with the error message > > "Cannot define Field more than once" > > I have tried every combination I can think of in relation to the dbf file > name location etc. > > No joy and the help is useless > > > > 'This one works fine > > DoCmd.TransferDatabase acLink, "dBase IV", "C:", > acTable, "C:SIDS.dbf", "tblStudents", False > > 'This one fails > > DoCmd.TransferDatabase acImport, "dBase IV", "C:", > acTable, "C:SIDS.dbf", "tblStudents", False > > > > many thanks > > > > Drren > > > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > Join the UK's number one for the internet > > www.freeserve.com/time > > -- > > _______________________________________________ > > 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 ssharkins at bellsouth.net Tue Apr 6 18:06:47 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 6 Apr 2004 19:06:47 -0400 Subject: [AccessD] OT: open source In-Reply-To: Message-ID: <20040406230707.HUEZ1775.imf19aec.mail.bellsouth.net@SUSANONE> Open source does not mean free of cost. Nor does it always mean free of licence fees. ====Right, I understand that and I don't mean to confuse the issue, but sharing intellectual property in this way is an odd concept to me. Susan H. From carbonnb at sympatico.ca Tue Apr 6 18:09:15 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Tue, 06 Apr 2004 19:09:15 -0400 Subject: [AccessD] OT: open source In-Reply-To: <20040406221838.PADI1715.imf16aec.mail.bellsouth.net@SUSANONE> References: Message-ID: <4073005B.31158.5C86F3@localhost> On 6 Apr 2004 at 18:18, Susan Harkins wrote: > That was very good and very close to my own opinions except I just > don't have the expertise to speak to servers. I think MS will adjust I don't really have the server experience either. I do, however read as much as I can. > and change as necessary -- but can't really predict what that will > mean. I don't think anyone can. And it probably scares the bejebes out of MS. > My question is this -- if they're all giving it up for free -- how are > they going to make money and stay in business. Support? Is there > really going to be enough support $ to cover it? I wouldn't think so. There are a couple of ways that the money is made. 1) They sell it. Red Hat is a perfect example. The sell boxed sets, well they used to. They sell server versions of Linux. 2) Selling support. Red Hat again. They sell support along with the boxed sets. 3) Donations. Not a get rich quick scheme, I know, but for some enough to get by. Keep in mind that just because the software is open source, doesn't mean you can't charge for the product. You can, but you may have to make the source code available, depending on the license agreement. > Anybody using MySQL and paying for the support? I absolutely hate > using MySQL, but I wouldn't pay for support. There's got to be part of > the puzzle that I'm missing. Why do you hate it? Is it because you are not used to it? Or you don't under stand it? Or there is no GUI for it? There are tons of folks paying for support for MySQL and other open source dbs. Folks like Cox Communications, NASA, Sabre Holdings and Yahoo! probably do. Have a look at http://www.mysql.com/press/release_2004_10.html and http://www.mysql.com/feedback/whitepaper-tco.php (registration required. Free I think) -- Bryan Carbonnell - carbonnb at sympatico.ca Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe producing bigger and better idiots. So far, the Universe is winning. - Mark Mischler. From ssharkins at bellsouth.net Tue Apr 6 18:21:58 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 6 Apr 2004 19:21:58 -0400 Subject: [AccessD] OT: open source In-Reply-To: <4073005B.31158.5C86F3@localhost> Message-ID: <20040406232218.DXHV1763.imf25aec.mail.bellsouth.net@SUSANONE> 1) They sell it. Red Hat is a perfect example. The sell boxed sets, well they used to. They sell server versions of Linux. 2) Selling support. Red Hat again. They sell support along with the boxed sets. 3) Donations. Not a get rich quick scheme, I know, but for some enough to get by. ========Can't imagine this creating huge corporations -- but I'm wrong a lot. ;) > Anybody using MySQL and paying for the support? I absolutely hate > using MySQL, but I wouldn't pay for support. There's got to be part of > the puzzle that I'm missing. Why do you hate it? Is it because you are not used to it? Or you don't under stand it? Or there is no GUI for it? =========All of the above. The documentation is some of the worst around -- it use to be. MS is rather dry, cryptic, and even sometimes wrong, but you can understand it. I could barely read through the MySQL documentation. Mind you it's been a few years so they've probably improved things a lot as they've grown (I would hope). Just personal experience though -- I don't like to work so hard. :) Susan H. From serbach at new.rr.com Tue Apr 6 18:25:48 2004 From: serbach at new.rr.com (Steven W. Erbach) Date: Tue, 6 Apr 2004 18:25:48 -0500 Subject: [AccessD] A2K: Help with Error accessing file Message-ID: <20040406182548.1912343902.serbach@new.rr.com> Brett, >> I followed Drew's suggestion a while back, and picked up a copy of Remote Administrator (www.radmin.com). ?$35 covers the license for 2 machines. ?No monthly charges. ?No headaches. ?Works for us! << I have to admit that I like GoToMyPC for one reason: I can log in from any PC with a browser. I used my 133 MHz 32 MB laptop running Win 95 on Monday at one client's site and I used a Win XP w/s at another client's site today. I had left my host PC in 800 x 600 mode when I left the office. When I fired up GoToMyPC I tried changing the screen resolution while connected...and voila! I switched to 1152 x 864 (my normal resolution). Then I viewed the GoToMyPC window in full screen mode and the only way I could tell I wasn't sitting at my PC was that the color depth is reduced to 8-bit color, so my company logo looked a bit blotchy, and there's the little shade pull thingie hovering at the very top of the screen to remind me where the GoToMyPC menu is. I particularly like tha drawing feature. Pretty snazzy, I calls it. Yeah, $15 a month is a bit much...but logging in from ANYWHERE with ANY PC is pretty durn convenient. Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "If you can't say anything nice, run for President." - Argus Hamilton From rjhjr at cox.net Tue Apr 6 18:31:00 2004 From: rjhjr at cox.net (Bob Hall) Date: Tue, 6 Apr 2004 19:31:00 -0400 Subject: [AccessD] OT: open source In-Reply-To: <20040406145847.NMC1781.imf18aec.mail.bellsouth.net@SUSANONE> References: <20040406145847.NMC1781.imf18aec.mail.bellsouth.net@SUSANONE> Message-ID: <20040406233058.GA38785@kongemord.krig.net> On Tue, Apr 06, 2004 at 10:58:25AM -0400, Susan Harkins wrote: > Someone has asked me "What's in the future for Microsoft and the Open Source > movement? " Susan, It's not a question of whether MS offers open source code. It's a question of how they offer it. Microsoft's Knowledge Base contains gobs and gobs of free, open source code. Lots of independent developers offer free, open source code. Microsoft wouldn't be able to sell as many copies of Access if there weren't so much free, open source VBA code available. Free open source code is part of Microsoft's business model. Open source and proprietary code have always existed side by side, usually without conflict. PHP is an open source scripting language; if you use it on Windows, it was probably compiled on a Microsoft compiler. Unix was originally both proprietary and open source; you couldn't legally posses a copy of the source code without buying a license, but the system was distributed as source code. Sun OS was originally based on BSD. When the name changed to Soleris, it became more System V-like. Either way, it was based on open source code. The TCP/IP stack in every Windows system since Win2K contains mostly FreeBSD code. The TCP/IP stack in NT 4 and earlier was notoriously unreliable. MS ended up replacing it with code that was known to work reliably and was available free. MS won't change its current business model because it makes too much money from the current model. As long as it is primarily a seller of proprietary systems to people who aren't programmers, it has no incentive to offer open source applications. Even if it starts losing market share, it still won't switch unless it goes through an IBM-like transformation and becomes primarily a provider of services. I know of only two cases where completely closed code became open code. Netscape didn't have the resources to do the development of a new version of Netscape Navigator, so it created the Mozilla project and based the new Navigator on Mozilla. Borland split off Interbase, which became Firebird. I'm not really sure why they did it, except that perhaps they thought it would be more valuable as a separate company than it had ever been to Borland. I wouldn't trust any TCO study distributed by MS. They hire "independent" analysts to do the studies, but the studies are so blatently biased that they are worthless. Basically, the issue is long-term savings versus the short term costs of switching. Since long-term savings have to be discounted over time, and the short-term costs are unpredictable, most businesses aren't going to see an advantage to switching any time soon. Adding to Bryan Carbonnell's comments: You can get Linux distros that will run off a CD. That means that you insert the CD, reboot the computer, and you're running Linux. If you like it, it will install on your computer configured exactly as it is on the CD. It's even easier than a Windows install. All the decisions: desktop, window manager, etc., are made for you. Drivers are installed automatically. If you're a Linux geek, you can still make any changes you want, but the non-geeks don't need to know anything to do the installation. I tried it; it worked. Linux will never have a standard GUI, because Linux is really only the kernal. Linus Torvalds doesn't do shell or GUI development. All Linux distros that I know of are Linux kernals with the Gnu shell. Everything else is whatever the distro teams want to include. They're never going to agree on a default window manager. On the other hand, a corporate buyer can specify that all installations use a given window manager and desktop. The immediate threat to MS has been security problems, due to massive numbers of bugs. MS seems to have improved a lot since Gates sent out his famous security e-mail. The three OSs gaining market share right now are Win, Linux, and FreeBSD. These are systems designed to run on cheap Intel chips. The losers are systems designed to run on proprietary chips. Linux and Win are stealing market share from Soleris, not from each other. This may be changing in Europe, where governments are starting to switch to Linux for workstations. The sole reason for switchng seems to be the cost of licenses for thousands of seats. So I would say that Linux is a threat to Windows in the workstation market, not the server market. Bob Hall From rjhjr at cox.net Tue Apr 6 18:36:51 2004 From: rjhjr at cox.net (Bob Hall) Date: Tue, 6 Apr 2004 19:36:51 -0400 Subject: [AccessD] OT: open source In-Reply-To: <20040406232218.DXHV1763.imf25aec.mail.bellsouth.net@SUSANONE> References: <4073005B.31158.5C86F3@localhost> <20040406232218.DXHV1763.imf25aec.mail.bellsouth.net@SUSANONE> Message-ID: <20040406233650.GB38785@kongemord.krig.net> On Tue, Apr 06, 2004 at 07:21:58PM -0400, Susan Harkins wrote: > =========All of the above. The documentation is some of the worst around -- > it use to be. MS is rather dry, cryptic, and even sometimes wrong, but you > can understand it. I could barely read through the MySQL documentation. Mind > you it's been a few years so they've probably improved things a lot as > they've grown (I would hope). Just personal experience though -- I don't > like to work so hard. :) The documentation at the MySQL web site is intended to be the concise up-to-date reference documentation. Aside from the tutorial, it is intended for people who are already experienced with MySQL and need an answer to a specific question. If you need user-friendly documentation, buy "MySQL" by Paul DuBois. I can't recommend it enough. Bob Hall From ssharkins at bellsouth.net Tue Apr 6 18:41:30 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 6 Apr 2004 19:41:30 -0400 Subject: [AccessD] OT: open source In-Reply-To: <20040406233650.GB38785@kongemord.krig.net> Message-ID: <20040406234150.ILUW1775.imf19aec.mail.bellsouth.net@SUSANONE> If you need user-friendly documentation, buy "MySQL" by Paul DuBois. I can't recommend it enough. =======Already have it. :) Susan H. From my.lists at verizon.net Tue Apr 6 18:41:56 2004 From: my.lists at verizon.net (Francisco H Tapia) Date: Tue, 06 Apr 2004 16:41:56 -0700 Subject: [AccessD] OT: open source In-Reply-To: <20040406232218.DXHV1763.imf25aec.mail.bellsouth.net@SUSANONE> References: <20040406232218.DXHV1763.imf25aec.mail.bellsouth.net@SUSANONE> Message-ID: <40734044.4010008@verizon.net> Susan Harkins said the following on 4/6/2004 4:21 PM: >=========All of the above. The documentation is some of the worst around -- >it use to be. MS is rather dry, cryptic, and even sometimes wrong, but you >can understand it. I could barely read through the MySQL documentation. Mind >you it's been a few years so they've probably improved things a lot as >they've grown (I would hope). Just personal experience though -- I don't >like to work so hard. :) > > IF... it's been a few years since you've used/played w/ the documentation how can you declare that " The documentation is some of the worst around". MySql has had a close connectiong w/ Linux and thus their documentation has many examples w/ *nix syntax. And if a documentation is wrong, how is it better? :) I just visited MySql.com and found their available manual. skimming through a chapter it all reads straight forward. However I will say this... they are distributing it in PDF and HTML, and the PDF is no BOL :), however If you just do a search on their site for keywords on things you need say.. "CREATE TABLE" then you get all the proper syntax in a very much BOL type fashion except it's ONLINE not offline, and by skimming their documentation page it looks like you can d/l that as well, tho I don't know if searching is available locally. -- -Francisco From d.dick at uws.edu.au Tue Apr 6 18:50:59 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Wed, 7 Apr 2004 09:50:59 +1000 Subject: [AccessD] A2K: Another Trasnfer Database Q Message-ID: <009501c41c32$030331a0$48619a89@DDICK> Hello all When I try to import or link to a DBF or XLS file in the root directory all is well. When I move the dbf or XLS file to ANY dorectory/folder the import or link fails. Access spits up a long error message with Error Number Saying that the path is invalid. That I should go and check that it exists etc. Of course it exists I just created it for testing as well as using pre-existing directories. The Docmd.Transfer works - why would it fail when I use a folde? Yes I have tried quotes around the path and xls specs Any taker? Many thanks in advance Darren From ssharkins at bellsouth.net Tue Apr 6 18:54:48 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 6 Apr 2004 19:54:48 -0400 Subject: [AccessD] OT: open source In-Reply-To: <40734044.4010008@verizon.net> Message-ID: <20040406235508.ISFT1775.imf19aec.mail.bellsouth.net@SUSANONE> The documentation is some of the worst around". MySql has had a close connectiong w/ Linux and thus their documentation has many examples w/ *nix syntax. And if a documentation is wrong, how is it better? :) ========If you go to a bad dentist, do you go back? Does someone blame you for not going back a few years later, "Geez... Wow, he's better now, you should give him another try?" No way. :) If MySQL lost me just on the lack of a decent interface and sloppy documentation, I'm betting I'm not the only one. Granted, I am lazier than most of you and will dump something faster than most here -- but you guys are unique -- you guys LIKE pain. :) If I'm not working, I'm not making money, so I don't spend a lot of time with stuff that makes working too hard. Lexie came home from Walmart this afternoon with her Pa Pa -- they had a new milkshake maker. It took scissors, grunt power, and a swig of boubon from the freezer just to get the thing out of the package. Then, I had words with the Pa Pa about disappearing once the package came in the door. I feel that way about MySQL. :) That's exactly my problem with MySQL -- well, a while ago. I just visited MySql.com and found their available manual. skimming through a chapter it all reads straight forward. However I will say this... they are distributing it in PDF and HTML, and the PDF is no BOL :), however If you just do a search on their site for keywords on things you need say.. "CREATE TABLE" then you get all the proper syntax in a very much BOL type fashion except it's ONLINE not offline, and by skimming their documentation page it looks like you can d/l that as well, tho I don't know if searching is available locally. ========My main complaint was organization. Even with the search capabilities (OK, everyone already knows I'm search challenged), I found it difficult to find what I was looking for. Invariably it would involve reading much more than I really should've had to read. Now, you can blame me and call me names if you like, but that's not good documentation. But then, I don't like MS either. I can find something on microsoft's site with google faster than I can with a Microsoft search. Go figure. ;) But then, that's why I have a job. Some day I'm going to plug Donna's brain into my computer -- then I'll be able to find everything and you'll all be sorry! ;) Susan H. From cfoust at infostatsystems.com Tue Apr 6 19:25:12 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 6 Apr 2004 17:25:12 -0700 Subject: [AccessD] A2K: Another Trasnfer Database Q Message-ID: Are you deleting the link before you try to relink? I would expect it to fail if you moved the file *anywhere*. That's just the way Access links work. Are you using the entire path and filename in the filename argument? Charlotte Foust -----Original Message----- From: Darren DICK [mailto:d.dick at uws.edu.au] Sent: Tuesday, April 06, 2004 3:51 PM To: AccessD List Subject: [AccessD] A2K: Another Trasnfer Database Q Hello all When I try to import or link to a DBF or XLS file in the root directory all is well. When I move the dbf or XLS file to ANY dorectory/folder the import or link fails. Access spits up a long error message with Error Number Saying that the path is invalid. That I should go and check that it exists etc. Of course it exists I just created it for testing as well as using pre-existing directories. The Docmd.Transfer works - why would it fail when I use a folde? Yes I have tried quotes around the path and xls specs Any taker? Many thanks in advance Darren -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Apr 6 20:19:55 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 6 Apr 2004 21:19:55 -0400 Subject: [AccessD] OT: open source In-Reply-To: <4073B26F.4145.132DAB@localhost> Message-ID: Holy smoke batman. What a read! John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stuart McLachlan Sent: Tuesday, April 06, 2004 5:49 PM To: Access Developers discussion and problemsolving Subject: Re: [AccessD] OT: open source On 6 Apr 2004 at 10:58, Susan Harkins wrote: > Someone has asked me "What's in the future for Microsoft and the Open Source > movement? " > > It's such a huge topic I couldn't really answer -- it's going to take me a > few days to formulate a response. It is a tad off topic for a strictly > Access list -- and I don't want any MS bashing, just because that would be > even more off topic -- but anyone want to make a comment on the subject? I'd > love to hear them -- my initial response to the guy was "Resistance is > futile" but that's only really funny if you're saying it from the MS > perspective. ;) > I think that Peruvian Congressmen Edgar Villanueva Nu?ez summed up the arguments fairly well: http://www.opensource.org/docs/peru_and_ms.php -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at sympatico.ca Tue Apr 6 21:21:11 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Tue, 06 Apr 2004 22:21:11 -0400 Subject: [AccessD] OT: open source In-Reply-To: <20040406230707.HUEZ1775.imf19aec.mail.bellsouth.net@SUSANONE> References: Message-ID: <40732D57.2466.11B1B7@localhost> On 6 Apr 2004 at 19:06, Susan Harkins wrote: > ====Right, I understand that and I don't mean to confuse the issue, > but sharing intellectual property in this way is an odd concept to me. What part is odd? We freely share our intelectual property here everyday. -- Bryan Carbonnell - carbonnb at sympatico.ca An unkind remark is like a killing frost. No matter how much it warms up later, the damage remains. From carbonnb at sympatico.ca Tue Apr 6 21:21:10 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Tue, 06 Apr 2004 22:21:10 -0400 Subject: [AccessD] OT: open source In-Reply-To: <40733489.2040700@verizon.net> References: Message-ID: <40732D56.16589.11B167@localhost> On 6 Apr 2004 at 15:51, Francisco H Tapia wrote: > which the various distros have improved their desktop products. I > also must concur that a standardized GUI would be the killer blow that > would/will ultimately drive hords of users away from Microsoft. I I actually don't think that a standard GUI alone will push people away from MS. It *has* to be packaged with more user friendlyness. I'm no dummy, but there are days that make me go "Why the did I ever think looking at Linux was a good idea" Just because of the way Slackware based distros are different from RedHat based distros which are different from Debian based distros. > base my opinion off such distros like RedHat or even the newest one > I've seen (Knopixx). Wich is an OS bootable completely off the CD. Knoppix is COOL!!!! > With High end products such as ThunderBird and FireFox and even some > of the OpenOffice products, Open Source products are reaching maturity > levels that are acceptable to a wider population. Some of the Maturity of the apps is what will make Open Source software more viable in the long run. If it can compete feature for feature with the MS version, or at least the features needed, why drop the cash on the MS version? > A greater risk than vulnerabilities in MS software is not so much the > security holes, but the COST of the software. You have many college > students that simply can't afford to go w/ MS Office so they use > OpenOffice. While not all do, the trend is steadily climing, and w/ > the avalability getting better and the quaility reaching acceptace > from the general public, this will help push more OpenSource software > into the main stream. I think that cost will play a part, I don't think that it will play a large part overall. Now, I'm talking about corporate acceptance and not home use. For the home user, I think that it will start to play a part in the decision making, more than it would a corporate IT department. And that is one of the imortant distinctions that needs to be made. Home users will look at the out of pocket costs. Corporate users will look at the overall costs and the availability of Enterprise level software. -- Bryan Carbonnell - carbonnb at sympatico.ca If you can't be a good example, then you'll just have to be a horrible warning. From carbonnb at sympatico.ca Tue Apr 6 21:31:21 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Tue, 06 Apr 2004 22:31:21 -0400 Subject: [AccessD] OT: open source In-Reply-To: <20040406232218.DXHV1763.imf25aec.mail.bellsouth.net@SUSANONE> References: <4073005B.31158.5C86F3@localhost> Message-ID: <40732FB9.25964.1B0413@localhost> On 6 Apr 2004 at 19:21, Susan Harkins wrote: > ========Can't imagine this creating huge corporations -- but I'm wrong > a lot. ;) Red Hat is making money. According to their website they have $328 million in the bank. Suse was just bought for $210 million, and they are the #2 Linux distro. Not on the same level as MS, but not bad for companies that are less than 10 years old. > > Why do you hate it? Is it because you are not used to it? Or you don't > > under stand it? Or there is no GUI for it? > =========All of the above. The documentation is some of the worst > around -- it use to be. MS is rather dry, cryptic, and even sometimes > wrong, but you can understand it. I could barely read through the > MySQL documentation. Mind you it's been a few years so they've > probably improved things a lot as they've grown (I would hope). Just > personal experience though -- I don't like to work so hard. :) I actually don't find their docs that bad. I actually use them as a SQL reference. How to structure the specific parts of a SQL statement. As for the GUI, they have recently released a GUI that is better than anything that has come before it for working with MySQL. Plus you can always work with it using Access :) -- Bryan Carbonnell - carbonnb at sympatico.ca I don't approve of political jokes. I've seen too many of them get elected. From carbonnb at sympatico.ca Tue Apr 6 21:36:26 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Tue, 06 Apr 2004 22:36:26 -0400 Subject: [AccessD] OT: open source In-Reply-To: Message-ID: <407330EA.19233.1FAA39@localhost> On 6 Apr 2004 at 17:46, Bryan Carbonnell wrote: > Will MS need to make their stuff Open Source to survive? I don't think > so. Will MS Open Source their software anyway? I really doubt it. > Maybe bits and pieces, but the whole thing, No way. Will MS > incorporate Open Source into their software? As far as I understand, No sooner do I say they probably won't, I find out they went ahead and did http://news.com.com/2100-7344_3-5185549.html?tag=nefd.top -- Bryan Carbonnell - carbonnb at sympatico.ca Ability is what you're capable of doing. Motivation determines what you do. Attitude determines how well you do it. From carbonnb at sympatico.ca Tue Apr 6 21:46:34 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Tue, 06 Apr 2004 22:46:34 -0400 Subject: [AccessD] OT: open source In-Reply-To: <20040406233058.GA38785@kongemord.krig.net> References: <20040406145847.NMC1781.imf18aec.mail.bellsouth.net@SUSANONE> Message-ID: <4073334A.9454.28F0F8@localhost> On 6 Apr 2004 at 19:31, Bob Hall wrote: > Linux will never have a standard GUI, because Linux is really only the > kernal. Linus Torvalds doesn't do shell or GUI development. All Linux True enough. I guess I should have said that the various Linux Distros need to standardise on a desktop. KDE or Gnome. > Everything else is whatever the distro teams want to include. They're > never going to agree on a default window manager. On the other hand, a >From what I understand the windows manager doesn't need to be standardised, ithe the desktop environment. There is the XServer, then there is the windows manager and then finally the desktop environment. > The immediate threat to MS has been security problems, due to massive > numbers of bugs. MS seems to have improved a lot since Gates sent out > his famous security e-mail. The three OSs gaining market share right I actually don't think that security is high on most peoples list. Otherwise why is my Win2K desktop at work only approved to be at SP1? I have said screw it and installed SP4 myself. > seats. So I would say that Linux is a threat to Windows in the > workstation market, not the server market. The problem is that Linux is not making the inroads on the desktop, but in the server room right now. -- Bryan Carbonnell - carbonnb at sympatico.ca I can only please one person per day. Today is not your day. Tomorrow is not looking good either. From ssharkins at bellsouth.net Tue Apr 6 21:52:19 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 6 Apr 2004 22:52:19 -0400 Subject: [AccessD] OT: open source In-Reply-To: <40732D57.2466.11B1B7@localhost> Message-ID: <20040407025239.GWBY1763.imf25aec.mail.bellsouth.net@SUSANONE> Do you make your living from this list? If all of your clients or your boss suddenly said "Keep it up, you're doing great, but btw, you're working for free now, aren't you?" Or, how about, "And show this new guy everything you know so we don't need you anymore." -- would that be OK? Susan H. On 6 Apr 2004 at 19:06, Susan Harkins wrote: > ====Right, I understand that and I don't mean to confuse the issue, > but sharing intellectual property in this way is an odd concept to me. What part is odd? We freely share our intelectual property here everyday. From ssharkins at bellsouth.net Tue Apr 6 21:53:50 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 6 Apr 2004 22:53:50 -0400 Subject: [AccessD] OT: open source In-Reply-To: <40732FB9.25964.1B0413@localhost> Message-ID: <20040407025410.GWLR1763.imf25aec.mail.bellsouth.net@SUSANONE> Red Hat is making money. According to their website they have $328 million in the bank. Suse was just bought for $210 million, and they are the #2 Linux distro. Not on the same level as MS, but not bad for companies that are less than 10 years old. ================No, certainly -- I'd have no trouble taking that check to the bank. :) Susan H. From d.dick at uws.edu.au Tue Apr 6 21:58:45 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Wed, 7 Apr 2004 12:58:45 +1000 Subject: [AccessD] A2K: Another Trasnfer Database Q References: Message-ID: <00d601c41c4c$3e2dd5e0$48619a89@DDICK> Hi Charlotte Yes I am deleting the link before I start using Docmd.DeleteObject blah blah Re the file being moved any where, I can move the file anywhere and 'redo' the link using the new path, so long as the path is in the root directory (C:\) IE I can change the name of the file from SIDS.dbf to S_ids.dbf or whatever, but it must stay in the root directory. If I move it to "any" directory other than the root directory (C:\) it fails eg C:\ABC\SIDS.dbf I dunno ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Wednesday, April 07, 2004 10:25 AM Subject: RE: [AccessD] A2K: Another Trasnfer Database Q > Are you deleting the link before you try to relink? I would expect it > to fail if you moved the file *anywhere*. That's just the way Access > links work. Are you using the entire path and filename in the filename > argument? > > Charlotte Foust > > -----Original Message----- > From: Darren DICK [mailto:d.dick at uws.edu.au] > Sent: Tuesday, April 06, 2004 3:51 PM > To: AccessD List > Subject: [AccessD] A2K: Another Trasnfer Database Q > > > Hello all > When I try to import or link to a DBF or XLS file in the root directory > all is well. When I move the dbf or XLS file to ANY dorectory/folder the > import or link fails. Access spits up a long error message with Error > Number Saying that the path is invalid. That I should go and check that > it exists etc. Of course it exists I just created it for testing as well > as using pre-existing directories. The Docmd.Transfer works - why would > it fail when I use a folde? Yes I have tried quotes around the path and > xls specs > > Any taker? > > 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 carbonnb at sympatico.ca Tue Apr 6 22:03:29 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Tue, 06 Apr 2004 23:03:29 -0400 Subject: [AccessD] OT: open source In-Reply-To: <20040407025239.GWBY1763.imf25aec.mail.bellsouth.net@SUSANONE> References: <40732D57.2466.11B1B7@localhost> Message-ID: <40733741.18413.386F7E@localhost> On 6 Apr 2004 at 22:52, Susan Harkins wrote: > Do you make your living from this list? If all of your clients or your > boss suddenly said "Keep it up, you're doing great, but btw, you're > working for free now, aren't you?" Or, how about, "And show this new > guy everything you know so we don't need you anymore." -- would that > be OK? Yea, but the thing is, open source doesn't HAVE to be free, as in no cost, but free as in source code availability. I think that is part that is the hard part to understand, or at least grasp. Free doesn't necissicarily mean no cost. Here is a page that may help sort things out. http://www.gnu.org/philosophy/selling.html If not, then there are a ton of links here: http://www.gnu.org/philosophy/philosophy.html -- Bryan Carbonnell - carbonnb at sympatico.ca When everything is coming your way......you're in the wrong lane. From ssharkins at bellsouth.net Tue Apr 6 22:13:06 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 6 Apr 2004 23:13:06 -0400 Subject: [AccessD] OT: open source In-Reply-To: <40733741.18413.386F7E@localhost> Message-ID: <20040407031326.HBWR1763.imf25aec.mail.bellsouth.net@SUSANONE> Yea, but the thing is, open source doesn't HAVE to be free, as in no cost, but free as in source code availability. I think that is part that is the hard part to understand, or at least grasp. Free doesn't necissicarily mean no cost. =============Perhaps I do make too much of it -- you could be right. It's hard to apply it to my own work -- it doesn't really relate. I'll repeat myself -- sometimes that helps. :) I pay the hair guy $75 to color my gray hair. I pay it because he's good -- hair looks natural and healthy. He doesn't sell me the coloring and give me instructions so I can do it myself. Now, I realize that doesn't really relate in the same way, but it's the best I can come up with. :) Susan H. From jwcolby at colbyconsulting.com Wed Apr 7 00:03:23 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 7 Apr 2004 01:03:23 -0400 Subject: [AccessD] How do I Message-ID: Having a bit of a problem tonight. Given #5/11/2000 3:20:00 PM# How do I get rid of the date portion and return just the time? I tried subtracting the clng(ThatDate) from the whole... sometimes worked but sometimes gave me bad time (but never any date portion) I tried dateadd("d",-clng(ThatDate),ThatDate)... That always gives me the correct time but 12/29/1899 as the date portion if the time is in the PM. I have a bunch of times that include the date and I need to strip the date off the time. John W. Colby www.ColbyConsulting.com From stuart at lexacorp.com.pg Wed Apr 7 00:06:09 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 07 Apr 2004 15:06:09 +1000 Subject: [AccessD] OT: open source In-Reply-To: <20040407025239.GWBY1763.imf25aec.mail.bellsouth.net@SUSANONE> References: <40732D57.2466.11B1B7@localhost> Message-ID: <407418E1.3626.1A35D4C@localhost> On 6 Apr 2004 at 22:52, Susan Harkins wrote: > If all of your clients or your boss > suddenly said "Keep it up, you're doing great, but btw, you're working for > free now, aren't you?" No. I charge for my time in developing/supporting software. They can find someone cheaper than me, but they won't find anyone better than me at what I do and they know it. So they are quite happy to pay for my services although there is nothing "secret" about what I am doing. > Or, how about, "And show this new guy everything you > know so we don't need you anymore." -- would that be OK? > Yep, not a problem. It took me 20 years to learn. In 20 years time, I'll be more than ready to hand over the reins to him. In the meantime, my clients pay me for that experience. I also make sure that my clients have the source for anything I develop. If anything happens to me, they can get someone else to maintain/continue to develop it. Until that something happens, they keep me maintaining/developing it because of the skills I have. If I went the MS way, what would my clients do if I was hit by a bus tomorrow? -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From michael.mattys at adelphia.net Wed Apr 7 00:13:13 2004 From: michael.mattys at adelphia.net (Michael R Mattys) Date: Wed, 7 Apr 2004 01:13:13 -0400 Subject: [AccessD] How do I References: Message-ID: <009001c41c5f$07e62290$6401a8c0@default> Hi John, If it weren't for those # #'s, I'd say Format("5/11/2000 3:20:00 PM","Long Time") ---- Michael R. Mattys (724) 942-3437 Mattys MapLib for Microsoft MapPoint http://www.mattysconsulting.com ----- Original Message ----- From: "John W. Colby" To: "AccessD" Sent: Wednesday, April 07, 2004 1:03 AM Subject: [AccessD] How do I > Having a bit of a problem tonight. > > Given #5/11/2000 3:20:00 PM# > > How do I get rid of the date portion and return just the time? > > I tried subtracting the clng(ThatDate) from the whole... sometimes worked > but sometimes gave me bad time (but never any date portion) > > I tried dateadd("d",-clng(ThatDate),ThatDate)... That always gives me the > correct time but 12/29/1899 as the date portion if the time is in the PM. > > I have a bunch of times that include the date and I need to strip the date > off the time. > > 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 stuart at lexacorp.com.pg Wed Apr 7 00:21:19 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 07 Apr 2004 15:21:19 +1000 Subject: [AccessD] How do I In-Reply-To: Message-ID: <40741C6F.7060.1B13EF3@localhost> On 7 Apr 2004 at 1:03, John W. Colby wrote: > Having a bit of a problem tonight. > > Given #5/11/2000 3:20:00 PM# > > How do I get rid of the date portion and return just the time? > CLng rounds rather than truncates so myDate - CLng(mydate) will return a negative value if it is after midday. Use Int() instead myDate - Int(myDate) retuns the fractional part (ie the time) -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From jmhla at earthlink.net Wed Apr 7 01:25:46 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Tue, 6 Apr 2004 23:25:46 -0700 Subject: [AccessD] How do I In-Reply-To: Message-ID: <001501c41c69$2cf3de60$6501a8c0@delllaptop> John, Two thoughts. 1. Can you count back from the right until you find the blank and isolate the time? 2. Can you convert the current format to a decimal number 12345.12345 and then convert the decimal to time. JOE HECHT LOS ANGELES CA -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, April 06, 2004 10:03 PM To: AccessD Subject: [AccessD] How do I Having a bit of a problem tonight. Given c How do I get rid of the date portion and return just the time? I tried subtracting the clng(ThatDate) from the whole... sometimes worked but sometimes gave me bad time (but never any date portion) I tried dateadd("d",-clng(ThatDate),ThatDate)... That always gives me the correct time but 12/29/1899 as the date portion if the time is in the PM. I have a bunch of times that include the date and I need to strip the date off the time. 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 andy at minstersystems.co.uk Wed Apr 7 02:13:43 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 7 Apr 2004 08:13:43 +0100 Subject: [AccessD] A2K: Another Trasnfer Database Q In-Reply-To: <00d601c41c4c$3e2dd5e0$48619a89@DDICK> Message-ID: <001001c41c6f$dc3e6240$b274d0d5@minster33c3r25> Darren What's the code? Have you tried specifying the folder in the 3rd parameter, then just the dbf name in the 5th? -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK > Sent: 07 April 2004 03:59 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] A2K: Another Trasnfer Database Q > > > Hi Charlotte > Yes I am deleting the link before I start using > Docmd.DeleteObject blah blah > > Re the file being moved any where, I can move the file > anywhere and 'redo' the > link using the new path, so long as the path is in the root > directory (C:\) IE I can change the name of the file from > SIDS.dbf to S_ids.dbf or whatever, but it must > stay in the root directory. If I move it to "any" directory > other than the root directory (C:\) it fails eg > C:\ABC\SIDS.dbf I dunno > > > ----- Original Message ----- > From: "Charlotte Foust" > To: "Access Developers discussion and problem solving" > > Sent: Wednesday, April 07, 2004 10:25 AM > Subject: RE: [AccessD] A2K: Another Trasnfer Database Q > > > > Are you deleting the link before you try to relink? I > would expect it > > to fail if you moved the file *anywhere*. That's just the > way Access > > links work. Are you using the entire path and filename in the > > filename argument? > > > > Charlotte Foust > > > > -----Original Message----- > > From: Darren DICK [mailto:d.dick at uws.edu.au] > > Sent: Tuesday, April 06, 2004 3:51 PM > > To: AccessD List > > Subject: [AccessD] A2K: Another Trasnfer Database Q > > > > > > Hello all > > When I try to import or link to a DBF or XLS file in the root > > directory all is well. When I move the dbf or XLS file to ANY > > dorectory/folder the import or link fails. Access spits up a long > > error message with Error Number Saying that the path is > invalid. That > > I should go and check that it exists etc. Of course it > exists I just > > created it for testing as well as using pre-existing > directories. The > > Docmd.Transfer works - why would it fail when I use a folde? Yes I > > have tried quotes around the path and xls specs > > > > Any taker? > > > > 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 > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > From jwcolby at colbyconsulting.com Wed Apr 7 06:18:28 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 7 Apr 2004 07:18:28 -0400 Subject: [AccessD] How do I In-Reply-To: <40741C6F.7060.1B13EF3@localhost> Message-ID: Interesting. I tried that in a query and got #error for values. I'll look at it again. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stuart McLachlan Sent: Wednesday, April 07, 2004 1:21 AM To: Access Developers discussion and problemsolving Subject: Re: [AccessD] How do I On 7 Apr 2004 at 1:03, John W. Colby wrote: > Having a bit of a problem tonight. > > Given #5/11/2000 3:20:00 PM# > > How do I get rid of the date portion and return just the time? > CLng rounds rather than truncates so myDate - CLng(mydate) will return a negative value if it is after midday. Use Int() instead myDate - Int(myDate) retuns the fractional part (ie the time) -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Wed Apr 7 06:35:43 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Wed, 7 Apr 2004 07:35:43 -0400 Subject: [AccessD] OT: open source In-Reply-To: <407418E1.3626.1A35D4C@localhost> Message-ID: <20040407113603.ZBNV1763.imf21aec.mail.bellsouth.net@SUSANONE> If I went the MS way, what would my clients do if I was hit by a bus tomorrow? ============That's a good point, but to me, it's kind of like expecting a chef to give you his recipe. Of course, if the market eventually forces it, that's OK with me. I'm not against it. Susan H. From Bryan_Carbonnell at cbc.ca Wed Apr 7 06:08:28 2004 From: Bryan_Carbonnell at cbc.ca (Bryan Carbonnell) Date: Wed, 07 Apr 2004 07:08:28 -0400 Subject: [AccessD] OT: open source Message-ID: I'm not sure a service can be related to a product, but lt's try :) The hair dresser charges you $75 to do your hair colouring. He aslo goes to the local Seniors home and colours the hair of the elderly ladies there for free because they can't get around as easily as you can. He is volunteering his time to do it. Why does he do it when he can use that time to make more money? He's a nice guy, it was the home that home that took care of his elderly parents, he want's to look good and using it as an advertising ploy, it's the right thing to do? Any of these, all or these none of these? Who knows, but he does it anyway. Now apply this to software. Why do companies, and people, make their software open source? They have a philosophical belief that it should be available, it will help a certain population/sector, it showcases their other products, it showcases their talents. Any of these, all of these, none of these? Who knows but it happens. Why did Lembit donate code to the BEU? Why did Andy and Reuben start to work on it? Why did I help in the end? I can't speak for the others, but I did it because I believe that it may help DBA become more visible by producing a world class product, which will make this be *THE* place to be, not that it isn't that already :). I also like pushing the limits of my knowledge and talents, and the BEU certainly did that :) Plus it is also a tool that can, and has helped, other developers, and I like helping folks. I guess the point I'm trying to make is that for every dozen different open source applications, there are 2 dozen different reasons why the author(s) decided to make it open source. None are right, none are worng, they just are. I don't think that this really captures the point I was going after, but it's the best I can do to explain it at 6:30 in the morning :) Bryan Carbonnell bryan_carbonnell at cbc.ca >>> ssharkins at bellsouth.net 04/06/04 11:13PM >>> Yea, but the thing is, open source doesn't HAVE to be free, as in no cost, but free as in source code availability. I think that is part that is the hard part to understand, or at least grasp. Free doesn't necissicarily mean no cost. =============Perhaps I do make too much of it -- you could be right. It's hard to apply it to my own work -- it doesn't really relate. I'll repeat myself -- sometimes that helps. :) I pay the hair guy $75 to color my gray hair. I pay it because he's good -- hair looks natural and healthy. He doesn't sell me the coloring and give me instructions so I can do it myself. Now, I realize that doesn't really relate in the same way, but it's the best I can come up with. :) Susan H. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Wed Apr 7 07:36:28 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Wed, 7 Apr 2004 08:36:28 -0400 Subject: [AccessD] OT: open source In-Reply-To: Message-ID: <20040407123648.ROOI1775.imf19aec.mail.bellsouth.net@SUSANONE> I guess the point I'm trying to make is that for every dozen different open source applications, there are 2 dozen different reasons why the author(s) decided to make it open source. None are right, none are worng, they just are. I don't think that this really captures the point I was going after, but it's the best I can do to explain it at 6:30 in the morning :) ==========The fact that you're up and able to type is impressive enough. :) I understand open source within the context you're speaking -- I don't understand it within a major corporation like MS. But what you're talking about is really just a natural evolution of freeware/shareware... You guys offer your stuff because you want to, not because you're forced to. As for the hair anology, you're comparing open source to charity, community good will, or philantropy. Developers have been giving it away for free since ... since always -- that's nothing new. Competitors and even governments forcing open source from other major producers isn't the same thing. I'm talking about the market forces, and government manipulation, at play right now that are forcing MS to take it all off. :) To me, producers and governments complaining about MS not going open code is a red herring -- and it's difficult to even apply the same logic to other industries. Even the recipe analogy doesn't really work -- but most intellectual property is protected to a degree. The question I guess -- after talking this through is does code NEED to be protected. I mean, realistically, what would I do with it even if I had it? :) I guess what concerns me the most about exposing code is theft -- not so much of the actual code but of the ideas in the code, but there again, can that really be protected anyway? I don't know. I've developed a really good chocolate chip cookie recipe using Splenda and a good butter substitute. If a company took that recipe and turned it into a best seller and didn't credit or pay me for it, I'd be pis*ed. Hope that analogy finally makes my position clearer. I will readily admit that I simply do not have the expertise to adequately do it justice, and if it's going to happen, it will. But, as I'm fond of saying, I don't get it. :) However, as long as whatever happens comes about through pure market forces, I'm OK with it -- have to be, that's the way it works. :) Susan H. From d.dick at uws.edu.au Wed Apr 7 08:02:20 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Wed, 7 Apr 2004 23:02:20 +1000 Subject: [AccessD] A2K: Another Transfer Database Q SOLVED Answer included References: <001001c41c6f$dc3e6240$b274d0d5@minster33c3r25> Message-ID: <02e301c41ca0$91018ec0$42669a89@DDICK> Hi Andy et al I figured it out phew... Here is the code if anyone is interested It allows for a single path to be stored then you can and import or link to My.txtControlThatHoldsThePath may have the following as its value EG C:\My Documents\My Folder\Inane Name\XYZ.dbf First Create a new module and paste this into it 'determine the last backslash in a path then return file name from that path 'Code by Seth Galitzer Public Function basParseFileName(strPath As String) As String Dim intI As Integer ' Current starting position Dim intL As Integer ' Last starting position intI = InStr(strPath, "\") ' Initialize the starting position While intI > 0 ' Repeat until no more "\" chars intL = intI ' Save the last starting position intI = InStr(intI + 1, strPath, "\") ' Get the next starting position Wend basParseFileName = Mid(strPath, intL + 1) ' Chop off the filename End Function The in the button you want to perform the import or link with Private Sub SomeButton_Click() Dim intX As Integer intX = Len(basParseFileName(Me.txtControlThatHoldsThePath)) DoCmd.TransferDatabase acImport, "dBase IV", Mid(Me.txtControlThatHoldsThePath, 1, Len(Me.txtControlThatHoldsThePath) - intX - 1), acTable, basParseFileName(Me.txtControlThatHoldsThePath), "tblStudents", False 'The trick is in the "-1" just after the intX parameter in the Transfer Database syntax 'The Transfer database monster wants to see the full folder path in the 3rd parameter minus the actual filename 'and wants to see the file name only in the 5th parameter. So far no problem 'BUT!!! - the trick is Access doesn't wanna see the last backslash either before the file name: Go figure??? 'So assume you have a folder and file name like C:\My Documents\My Folder\Inane Name\XYZ.dbf 'Access is working with C:\My Documents\My Folder\Inane NameXYZ.dbf. 'Note the missing last backslash 'Access obviously compensates for it somewhere internally end sub Hope this helps someone ----- Original Message ----- From: "Andy Lacey" To: "'Access Developers discussion and problem solving'" Sent: Wednesday, April 07, 2004 5:13 PM Subject: RE: [AccessD] A2K: Another Trasnfer Database Q > Darren > What's the code? Have you tried specifying the folder in the 3rd parameter, > then just the dbf name in the 5th? > > -- Andy Lacey > http://www.minstersystems.co.uk > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK > > Sent: 07 April 2004 03:59 > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] A2K: Another Trasnfer Database Q > > > > > > Hi Charlotte > > Yes I am deleting the link before I start using > > Docmd.DeleteObject blah blah > > > > Re the file being moved any where, I can move the file > > anywhere and 'redo' the > > link using the new path, so long as the path is in the root > > directory (C:\) IE I can change the name of the file from > > SIDS.dbf to S_ids.dbf or whatever, but it must > > stay in the root directory. If I move it to "any" directory > > other than the root directory (C:\) it fails eg > > C:\ABC\SIDS.dbf I dunno > > > > > > ----- Original Message ----- > > From: "Charlotte Foust" > > To: "Access Developers discussion and problem solving" > > > > Sent: Wednesday, April 07, 2004 10:25 AM > > Subject: RE: [AccessD] A2K: Another Trasnfer Database Q > > > > > > > Are you deleting the link before you try to relink? I > > would expect it > > > to fail if you moved the file *anywhere*. That's just the > > way Access > > > links work. Are you using the entire path and filename in the > > > filename argument? > > > > > > Charlotte Foust > > > > > > -----Original Message----- > > > From: Darren DICK [mailto:d.dick at uws.edu.au] > > > Sent: Tuesday, April 06, 2004 3:51 PM > > > To: AccessD List > > > Subject: [AccessD] A2K: Another Trasnfer Database Q > > > > > > > > > Hello all > > > When I try to import or link to a DBF or XLS file in the root > > > directory all is well. When I move the dbf or XLS file to ANY > > > dorectory/folder the import or link fails. Access spits up a long > > > error message with Error Number Saying that the path is > > invalid. That > > > I should go and check that it exists etc. Of course it > > exists I just > > > created it for testing as well as using pre-existing > > directories. The > > > Docmd.Transfer works - why would it fail when I use a folde? Yes I > > > have tried quotes around the path and xls specs > > > > > > Any taker? > > > > > > 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 > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/a> ccessd > > 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 Wed Apr 7 08:05:14 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Wed, 7 Apr 2004 09:05:14 -0400 Subject: [AccessD] How do I In-Reply-To: Message-ID: John, In terms of the field value, you can't. Date/Time fields are doubles with the date/time stored as: Date.Time Any value to the left of the decimal represents a date and that includes 0, which hands you back the base date of 12/29/1899. If you want time alone, you need to store the value in a decimal field or use a scaled integer and use Time functions to translate it to a time as needed. Jim Dettman (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Wednesday, April 07, 2004 1:03 AM To: AccessD Subject: [AccessD] How do I Having a bit of a problem tonight. Given #5/11/2000 3:20:00 PM# How do I get rid of the date portion and return just the time? I tried subtracting the clng(ThatDate) from the whole... sometimes worked but sometimes gave me bad time (but never any date portion) I tried dateadd("d",-clng(ThatDate),ThatDate)... That always gives me the correct time but 12/29/1899 as the date portion if the time is in the PM. I have a bunch of times that include the date and I need to strip the date off the time. 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 jimdettman at earthlink.net Wed Apr 7 08:06:56 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Wed, 7 Apr 2004 09:06:56 -0400 Subject: [AccessD] How do I In-Reply-To: Message-ID: John, One thing you can do is continue to use the date/time field, but just ignore the date (set them all to 0) and use Format$() for displaying the time only. Jim Dettman (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Wednesday, April 07, 2004 1:03 AM To: AccessD Subject: [AccessD] How do I Having a bit of a problem tonight. Given #5/11/2000 3:20:00 PM# How do I get rid of the date portion and return just the time? I tried subtracting the clng(ThatDate) from the whole... sometimes worked but sometimes gave me bad time (but never any date portion) I tried dateadd("d",-clng(ThatDate),ThatDate)... That always gives me the correct time but 12/29/1899 as the date portion if the time is in the PM. I have a bunch of times that include the date and I need to strip the date off the time. 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 pnl1 at psu.edu Wed Apr 7 08:22:07 2004 From: pnl1 at psu.edu (Paul Liadis) Date: Wed, 07 Apr 2004 09:22:07 -0400 Subject: [AccessD] Query Truncating Data In-Reply-To: <20040407025410.GWLR1763.imf25aec.mail.bellsouth.net@SUSANO NE> References: <40732FB9.25964.1B0413@localhost> Message-ID: <5.1.0.14.2.20040407091847.03e259d0@mail.psu.edu> Hello, I am having a problem with a query in which my data is being truncated to 255 characters. My query simply selects from a table (linked from SQL Server), but doesn't return all the data in one of the columns (defined as memo in Access). The data is being truncated even though it exists in the table. Has anyone experienced this? Thanks, =============================================== Paul Liadis Senior Applications Programmer/Analyst University Budget Office Pennsylvania State University From ranthony at wrsystems.com Wed Apr 7 08:33:13 2004 From: ranthony at wrsystems.com (ranthony at wrsystems.com) Date: Wed, 7 Apr 2004 09:33:13 -0400 Subject: [AccessD] Query Truncating Data Message-ID: <5F21A4E8B8DD734992EF9E70AC9D3064128B5A@mail2.wrsystems.com> See M$ KB 170218. A workaround I used in an older program is as follows (this is A97): 'The following lines of code is a workaround provided by MS due to W97 inability to assign the value of a variable containing 'more than 255 characters. This is obviously a non-starter, as the fields indicated are memo fields in Access. 'The formfield is populated with asterisks as a placemark, the document then has to be unprotected, then the contents are 'dumped into the formfield. After that, the asteriks are deleted, and the protection for the document is reinstated. 'The if statement is so this processing effort won't be invoked unless the field is not null and contains more than 255 characters. ' If Not IsNull(Forms!frmstrinput!txtBrief) And Len(Forms!frmstrinput!txtBrief) > 255 Then 'set Description form field to a unique string. WordObj.Documents(1).FormFields("Description").Result = "****" If WordObj.Documents(1).ProtectionType <> wdNoProtection Then WordObj.Documents(1).Unprotect Password:="bob" End If WordObj.Selection.Goto what:=wdGoToBookmark, Name:="Description" WordObj.Selection.Collapse WordObj.Selection.MoveRight wdCharacter, 1 WordObj.Selection.TypeText (Forms!frmstrinput!txtBrief) WordObj.Selection.Goto wdGoToBookmark, , , "description" 'Remove unique characters from Description form field With WordObj.Selection.Find .Execute findtext:="*", replacewith:="", replace:=wdReplaceAll End With WordObj.Documents(1).Protect Password:="bob", noreset:=True, Type:=wdAllowOnlyFormFields Else WordObj.Documents(1).FormFields("Description").Result = IIf(IsNull(Forms!frmstrinput!txtBrief), "", (Forms!frmstrinput!txtBrief)) End If -----Original Message----- From: Paul Liadis [mailto:pnl1 at psu.edu] Sent: Wednesday, April 07, 2004 9:22 AM To: Access Developers discussion and problem solving Subject: [AccessD] Query Truncating Data Hello, I am having a problem with a query in which my data is being truncated to 255 characters. My query simply selects from a table (linked from SQL Server), but doesn't return all the data in one of the columns (defined as memo in Access). The data is being truncated even though it exists in the table. Has anyone experienced this? Thanks, =============================================== Paul Liadis Senior Applications Programmer/Analyst University Budget Office Pennsylvania State University -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Wed Apr 7 08:56:04 2004 From: martyconnelly at shaw.ca (martyconnelly at shaw.ca) Date: Wed, 7 Apr 2004 09:56:04 -0400 Subject: [AccessD] Phone number Message-ID: <200404071356.i37Du0B06129@databaseadvisors.com> Please notice the attached phone number. +++ X-Attachment-Type: document +++ X-Attachment-Status: no virus found +++ Powered by the new F-Secure OnlineAntiVirus +++ Visit us: www.f-secure.com From HollisVJ at pgdp.usec.com Wed Apr 7 09:15:46 2004 From: HollisVJ at pgdp.usec.com (Hollis,Virginia) Date: Wed, 07 Apr 2004 09:15:46 -0500 Subject: [AccessD] Emails Problems Message-ID: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D55C@cntexchange.pgdp.usec.com> Has anyone been receiving strange emails with attachments? I have been getting emails for the past 2 days with txt attachments. I just received one that said it was from AccessD. Virginia From carbonnb at sympatico.ca Wed Apr 7 09:23:19 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Wed, 7 Apr 2004 10:23:19 -0400 Subject: [AccessD] Emails Problems Message-ID: <20040407142319.ULSP19852.tomts15-srv.bellnexxia.net@mxmta.bellnexxia.net> > From: "Hollis,Virginia" > Has anyone been receiving strange emails with attachments? I have been > getting emails for the past 2 days with txt attachments. I just received one > that said it was from AccessD. The one that just came to the list "from" Marty Connelly appears to have started out life as a virus, but the list software stripped out the payload, so no worries there. It looks like it came from someone that uses a Bell South ASDL connection as their ISP. So folks that use Bell South, please run a full virus scan. One of you may be infected with a nasty :( This is one of the new breed of spoofing e-mails that spoof the from line of the e-mail. As for the others, probalby the same knid of deal, but you mail server is taking care of the virii before it hits your desktop. -- Bryan Carbonnell - carbonnb at sympatico.ca Unfortunately common sense isn't so common! From andy at minstersystems.co.uk Wed Apr 7 09:23:33 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 7 Apr 2004 15:23:33 +0100 Subject: [AccessD] Emails Problems In-Reply-To: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D55C@cntexchange.pgdp.usec.com> Message-ID: <002201c41cab$e8d0a630$b274d0d5@minster33c3r25> Yea, me too. Had one supposedly from JC and another "from" Jim Dettman. Don't know what's generating them. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Hollis,Virginia > Sent: 07 April 2004 15:16 > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Emails Problems > > > Has anyone been receiving strange emails with attachments? I > have been getting emails for the past 2 days with txt > attachments. I just received one that said it was from AccessD. > > Virginia > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > From d.dick at uws.edu.au Wed Apr 7 09:26:05 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Thu, 8 Apr 2004 00:26:05 +1000 Subject: [AccessD] A2K: Change Data Type Message-ID: <031d01c41cac$44219260$42669a89@DDICK> Hello all The help wasn't Can anyone point me in the right direction for code ADO or DAO on changing the data type for an existing field in an existing table? Many thanks Darren From ranthony at wrsystems.com Wed Apr 7 09:27:56 2004 From: ranthony at wrsystems.com (ranthony at wrsystems.com) Date: Wed, 7 Apr 2004 10:27:56 -0400 Subject: [AccessD] Emails Problems Message-ID: <5F21A4E8B8DD734992EF9E70AC9D3064128B5B@mail2.wrsystems.com> Concur with Bryan, I've even received emails from my network support address spoofed! -----Original Message----- From: Bryan Carbonnell [mailto:carbonnb at sympatico.ca] Sent: Wednesday, April 07, 2004 10:23 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Emails Problems > From: "Hollis,Virginia" > Has anyone been receiving strange emails with attachments? I have been > getting emails for the past 2 days with txt attachments. I just received one > that said it was from AccessD. The one that just came to the list "from" Marty Connelly appears to have started out life as a virus, but the list software stripped out the payload, so no worries there. It looks like it came from someone that uses a Bell South ASDL connection as their ISP. So folks that use Bell South, please run a full virus scan. One of you may be infected with a nasty :( This is one of the new breed of spoofing e-mails that spoof the from line of the e-mail. As for the others, probalby the same knid of deal, but you mail server is taking care of the virii before it hits your desktop. -- Bryan Carbonnell - carbonnb at sympatico.ca Unfortunately common sense isn't so common! -- _______________________________________________ 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 Apr 7 09:58:06 2004 From: EdTesiny at oasas.state.ny.us (Tesiny, Ed) Date: Wed, 7 Apr 2004 10:58:06 -0400 Subject: [AccessD] Emails Problems Message-ID: It appears mine from Marty has the attachment. Ed Tesiny EdTesiny at oasas.state.ny.us -----Original Message----- From: Bryan Carbonnell [mailto:carbonnb at sympatico.ca] Sent: Wednesday, April 07, 2004 10:23 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Emails Problems > From: "Hollis,Virginia" > Has anyone been receiving strange emails with attachments? I have been > getting emails for the past 2 days with txt attachments. I just received one > that said it was from AccessD. The one that just came to the list "from" Marty Connelly appears to have started out life as a virus, but the list software stripped out the payload, so no worries there. It looks like it came from someone that uses a Bell South ASDL connection as their ISP. So folks that use Bell South, please run a full virus scan. One of you may be infected with a nasty :( This is one of the new breed of spoofing e-mails that spoof the from line of the e-mail. As for the others, probalby the same knid of deal, but you mail server is taking care of the virii before it hits your desktop. -- Bryan Carbonnell - carbonnb at sympatico.ca Unfortunately common sense isn't so common! -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Bryan_Carbonnell at cbc.ca Wed Apr 7 10:05:29 2004 From: Bryan_Carbonnell at cbc.ca (Bryan Carbonnell) Date: Wed, 07 Apr 2004 11:05:29 -0400 Subject: [AccessD] Emails Problems Message-ID: The attachment is just the AccessD list footer and not the virus. Bryan Carbonnell bryan_carbonnell at cbc.ca >>> EdTesiny at oasas.state.ny.us 07-Apr-04 10:58:06 AM >>> It appears mine from Marty has the attachment. Ed Tesiny EdTesiny at oasas.state.ny.us -----Original Message----- From: Bryan Carbonnell [mailto:carbonnb at sympatico.ca] Sent: Wednesday, April 07, 2004 10:23 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Emails Problems > From: "Hollis,Virginia" > Has anyone been receiving strange emails with attachments? I have been > getting emails for the past 2 days with txt attachments. I just received one > that said it was from AccessD. The one that just came to the list "from" Marty Connelly appears to have started out life as a virus, but the list software stripped out the payload, so no worries there. It looks like it came from someone that uses a Bell South ASDL connection as their ISP. So folks that use Bell South, please run a full virus scan. One of you may be infected with a nasty :( This is one of the new breed of spoofing e-mails that spoof the from line of the e-mail. As for the others, probalby the same knid of deal, but you mail server is taking care of the virii before it hits your desktop. From martyconnelly at shaw.ca Wed Apr 7 10:10:47 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 07 Apr 2004 08:10:47 -0700 Subject: [AccessD] A2K: Another Trasnfer Database Q References: <009501c41c32$030331a0$48619a89@DDICK> Message-ID: <407419F7.5020909@shaw.ca> Are you missing a comma or parameter in call Do you have an invalid DOS character in your filename Are you using WinXP with locked down folders. Reversed slashes? should look like. DoCmd.TransferSpreadsheet acImport, 3, "Employees","C:\Lotus\Newemps.wk3", True, "A1:G12" Darren DICK wrote: >Hello all >When I try to import or link to a DBF or XLS file in the root directory all is well. >When I move the dbf or XLS file to ANY dorectory/folder the import or link fails. >Access spits up a long error message with Error Number >Saying that the path is invalid. That I should go and check that it exists etc. >Of course it exists I just created it for testing as well as using pre-existing directories. >The Docmd.Transfer works - why would it fail when I use a folde? >Yes I have tried quotes around the path and xls specs > >Any taker? > >Many thanks in advance > >Darren > > > -- Marty Connelly Victoria, B.C. Canada From my.lists at verizon.net Wed Apr 7 10:35:15 2004 From: my.lists at verizon.net (Francisco H Tapia) Date: Wed, 07 Apr 2004 08:35:15 -0700 Subject: [AccessD] Emails Problems In-Reply-To: References: Message-ID: <40741FB3.703@verizon.net> For those of you w/ AV scanners make sure you've upgraded to the latest and greatest definition files, if you need to run an ONLINE scan I suggest (TrendMicro) HTTP://www.antivirus.com For those of you w/ outdated AV scanners who need to scan right now or are looking to not pay for your home pc's here is an alternative. (AVAST, FREE)HTTP://www.avast.com/i_idt_1016.html Bryan Carbonnell said the following on 4/7/2004 8:05 AM: >The one that just came to the list "from" Marty Connelly appears to >have >started out life as a virus, but the list software stripped out the >payload, so no worries there. > >It looks like it came from someone that uses a Bell South ASDL >connection as their ISP. So folks that use Bell South, please run a >full >virus scan. One of you may be infected with a nasty :( > >This is one of the new breed of spoofing e-mails that spoof the from >line of the e-mail. > >As for the others, probalby the same knid of deal, but you mail server >is taking care of the virii before it hits your desktop. > > > -- -Francisco From rjhjr at cox.net Wed Apr 7 11:12:35 2004 From: rjhjr at cox.net (Bob Hall) Date: Wed, 7 Apr 2004 12:12:35 -0400 Subject: [AccessD] OT: open source In-Reply-To: <4073334A.9454.28F0F8@localhost> References: <20040406145847.NMC1781.imf18aec.mail.bellsouth.net@SUSANONE> <4073334A.9454.28F0F8@localhost> Message-ID: <20040407161234.GE40799@kongemord.krig.net> On Tue, Apr 06, 2004 at 10:46:34PM -0400, Bryan Carbonnell wrote: > On 6 Apr 2004 at 19:31, Bob Hall wrote: > > > Linux will never have a standard GUI, because Linux is really only the > > kernal. Linus Torvalds doesn't do shell or GUI development. All Linux > > True enough. I guess I should have said that the various Linux > Distros need to standardise on a desktop. KDE or Gnome. > > > Everything else is whatever the distro teams want to include. They're > > never going to agree on a default window manager. On the other hand, a > > >From what I understand the windows manager doesn't need to be > standardised, ithe the desktop environment. > > There is the XServer, then there is the windows manager and then > finally the desktop environment. twm, blackbox, and fvwm don't use desktop environments. Some window managers require a specific desktop environment. You can't decide on a desktop until you decide on the window manager. I use blackbox, so the desktop decision doesn't seem important to me. There are a lot of differences between window managers. Window Maker is very different from blackbox. Actually, window managers and desktops seem to run side-by-side, rather than one running under the other. > > The immediate threat to MS has been security problems, due to massive > > numbers of bugs. MS seems to have improved a lot since Gates sent out > > his famous security e-mail. The three OSs gaining market share right > > I actually don't think that security is high on most peoples list. > Otherwise why is my Win2K desktop at work only approved to be at SP1? > I have said screw it and installed SP4 myself. This is true for workstations. Security is a bigger issue with servers than workstations. Breaking root on a server puts more at risk that a trapdoor on a workstation. And the person managing a server box is more likely to understand security than the person using a workstation. The amazing thing is that people with SP1 think they are secure. (I just upgraded someone from SP1.) And if they were on Linux, they would be equally insecure, and just as certain that they were secure. So if they switched to Linux for security reasons, they would be deluding themselves. But a lot of organizations would do it if the market started to perceive Windows as the insecure system, which is what was starting to happen. The people who understood security would have been the first to switch, followed by the people who didn't and who wouldn't have been any more secure. > > seats. So I would say that Linux is a threat to Windows in the > > workstation market, not the server market. > > The problem is that Linux is not making the inroads on the desktop, > but in the server room right now. Linux is gaining in the server room, but not at MS's expense. Both Win and Linux are gaining market share. Sun, IBM, and HP are losing it. Critical apps that once needed proprietary chips and OSs can now be run on commodity hardware and cheap or free OSs. In Europe, Windows has lost to Linux on some huge workstation contracts. That won't happen in the USA anytime soon because the federal government is committed to Windows. But European governments don't have that commitment, and some of them are actively encouraging businesses to switch to Linux. If the governments switch, many businesses and consumers will eventually follow suit. This isn't showing up in market share numbers yet, but it will if the trend continues. Bob Hall From bheid at appdevgrp.com Wed Apr 7 12:02:23 2004 From: bheid at appdevgrp.com (Bobby Heid) Date: Wed, 7 Apr 2004 13:02:23 -0400 Subject: [AccessD] Wierd AccXP memo happenings. In-Reply-To: <916187228923D311A6FE00A0CC3FAA3080733C@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA305BB3F3@ADGSERVER> Hi all, I have a query that pulls data from several tables. Been running well for years. I get a call on Monday that it will not print all the way. So after some researching, I found out that the report was blowing up when it got to a certain page. What was happening is that the data from this one table is all of type double. BUT, for some reason, this one record is returning with the data from a memo field from the same record (not pulled in the query) and is blowing up where I am trying to keep up with some totals. I can delete the data out of the memo and the query runs correctly. I past back the data and it blows up again. So, I save the memo data in notepad, remove it from the record, compact the database, import it into a new database, then add the data back form notepad, and it blows again! Any ideas (short of moving the memo field to its own record) on how to fix this sort of problem? It runs great on 100+ other database (all back-ends). Thanks, Bobby From DWUTKA at marlow.com Wed Apr 7 12:07:57 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 7 Apr 2004 12:07:57 -0500 Subject: [AccessD] OT: open source Message-ID: <2F8793082E00D4119A1700B0D0216BF802227A84@main2.marlow.com> Kind of staying out of this, but wanted to comment about the college students. Microsoft sells their software to students at an incredible discount. A co-worker going to UT, was able to get the entire Visual Studio 6, for $5, a few years ago. Microsoft does this, because they know if the college students use it, they'll be bringing their knowledge (and preferences) into the business world. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco H Tapia Sent: Tuesday, April 06, 2004 5:52 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: open source Bryan Carbonnell said the following on 4/6/2004 2:46 PM: >As for the actual Desktop operating system, that is further out. 5-7 >years would be my guess. Linux needs a few things to become more >competitive with Windows. It *needs* to become less "geek-friendly" and >more "user friendly". It also *NEEDS* to have a "standard" GUI, or at >least a standard layout. > While I agree with you I also have to guess that a Linux convertion may be closer than we all guess. There have been leaps and bounds in which the various distros have improved their desktop products. I also must concur that a standardized GUI would be the killer blow that would/will ultimately drive hords of users away from Microsoft. I base my opinion off such distros like RedHat or even the newest one I've seen (Knopixx). Wich is an OS bootable completely off the CD. It is Linux, and what makes this even more cool is that you could theoretically put out a distro that would make it so that end users "couldn't" break thier installations. Just always boot from the CD. With High end products such as ThunderBird and FireFox and even some of the OpenOffice products, Open Source products are reaching maturity levels that are acceptable to a wider population. Some of the greatest leaps have been "custom installers" for such products. This improves delivery to end users who are wanting to try a simpler to use OPEN SOURCE community. A greater risk than vulnerabilities in MS software is not so much the security holes, but the COST of the software. You have many college students that simply can't afford to go w/ MS Office so they use OpenOffice. While not all do, the trend is steadily climing, and w/ the avalability getting better and the quaility reaching acceptace from the general public, this will help push more OpenSource software into the main stream. -- -Francisco -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Wed Apr 7 12:11:06 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 7 Apr 2004 12:11:06 -0500 Subject: [AccessD] OT: open source Message-ID: <2F8793082E00D4119A1700B0D0216BF802227A85@main2.marlow.com> Why? We share code here. Then there are a million and one sites all based upon techies sharing information. In my opinion, the rest of the world needs to catch up with the internet. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Susan Harkins Sent: Tuesday, April 06, 2004 6:07 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT: open source Open source does not mean free of cost. Nor does it always mean free of licence fees. ====Right, I understand that and I don't mean to confuse the issue, but sharing intellectual property in this way is an odd concept to me. 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 Wed Apr 7 12:14:57 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 7 Apr 2004 12:14:57 -0500 Subject: [AccessD] A2K: Help with Error accessing file Message-ID: <2F8793082E00D4119A1700B0D0216BF802227A86@main2.marlow.com> Not too mention Remote Administrators 'routing' capability. (ie, I have it on my server at home, but then I can hit any machine on my home network by 'routing' through my server). Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Brett Barabash Sent: Tuesday, April 06, 2004 8:33 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2K: Help with Error accessing file We tried GoToMyPC here. Had a number of problems, especially when working in a "2-way" teleconference where both parties were driving the machine. The machine would hang while waiting for the other party to move their mouse, click a key, etc. I followed Drew's suggestion a while back, and picked up a copy of Remote Administrator (www.radmin.com). $35 covers the license for 2 machines. No monthly charges. No headaches. Works for us! -----Original Message----- From: Dan Waters [mailto:dwaters at usinternet.com] Sent: Monday, April 05, 2004 5:35 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2K: Help with Error accessing file --------------Please open with care!------------ This message has bypassed some of our spam filtering rules. This message was scanned for viruses and executable code has been stripped. --------------------------------------------------------------- Steve, I don't have an answer to your specific problem, but since your client is distant this might help: Have your client download a trial version of GoToMyPC. He can set up an account for himself. GoToMyPC has a feature called 'Guest Invite'. He can use this to let you see what's happening on his screen, and you can control his PC from yours so you can do some troubleshooting. I guess this is similar to WebEx or PCAnywhere. If he decides to keep the GoToMyPC account, he only needs to pay $15/mo. I use it to work with my clients so they can see 'drafts' of what I'm doing without making a trip. Best of Luck! Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steven W. Erbach Sent: Monday, April 05, 2004 10:33 AM To: Access Developers discussion and problem solving Subject: [AccessD] A2K: Help with Error accessing file Dear Group, I have an Access 2000 FE/BE application loaded on a client's system in another city 90 miles away. I've been working with their network guy over the phone and he's sent me screen shots of error messages along the way. Here's the situation. The "master" MDB FE database is loaded on the server. I have the local people there create an MDE and place it in another folder so that's it's available for the users who download it to their workstations when a new version is ready. While working with my client's network guy, Bob, the MDE file SEEMS to be created all right; but once the compacting is finished and the FE starts up, the first form opens and he gets this message (it's an "i" message): The expression On Load you entered as the event property setting produced the following error: Error accessing file. Network connection may have been lost. * The expression may not result in the name of a macro, the name of a user-defined function, or [Event Procedure]. * There may have been an error evaluating the function, event, or macro. When he clicks OK the startup form (which is supposed to be hidden) is there on the screen and the application has halted. INVESTIGATION: 1) They don't have the Documentor installed so I can't see what the path is to the BE. 2) However, I do have a form (that I cobbed from Steve Nyberg) that shows all the links with their paths. When we attempt to open this form we get the message you see above. Click OK on the message and Nyberg's SeeLinks form opens but with nothing showing up regarding linked tables. 3) I can open the linked tables from the "master" front end. But when I open the table that contains the latest version number (part of the version upgrade system) I see something odd. This Versions table has one row. The table has a Default value of the Now() function in the VersionDate column. On my system when I look at the table I see the first row all right and in the 2nd (empty) row I see (AutoNumber) in the key field and today's date and time in the VersionDate column. On my client's system he sees #Name? in the VersionDate column in an empty row. He cannot add information in a new row because Access doesn't like the default value. So I had Bob remove the default value. I still get the main problem. 4) The users can still run the application from their workstations using the old version of the FE. There hasn't been any problem there. 5) The Startup form of the FE calls Carl Tribble's Auto-Linker to check the link status of the first table before the main switchboard menu appears. This is all working properly on the users' workstations. 6) I tried Compact and Repair on both the BE and the FE. No change in basic error. 7) I checked the references. They're all there. 8) Only thing I haven't done (at least that I know how to do) is a /decompile on the "master" FE on the server. I'm sorry about the length of this message. I somehow doubt that I would find the problem even if I were sitting at the workstation. Bob is very capable, so I'm sure he's relaying to me everything that he sees. At least my clients can still work with the older version of the app. I am just stumped why this error message appears in the "master" front end database. Any thoughts, other than "Well, why the heck do you let the user make an MDE in the first place, ya numbskull?!" Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "Congress is as trustworthy with money as a crack addict who is experimenting with heroin." - Dave Barry "Giving money and power to the government is like giving whiskey and car keys to teenage boys." - P. J. O'Rourke "Be thankful we're not getting all the government we're paying for." - Will Rogers "It could probably be shown by facts and figures that there is no distinctly American criminal class except Congress." - Mark Twain ---------------------------------------------------------------------------- ---------------------------------------- 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 pnl1 at psu.edu Wed Apr 7 12:15:45 2004 From: pnl1 at psu.edu (Paul Liadis) Date: Wed, 07 Apr 2004 13:15:45 -0400 Subject: [AccessD] Query Truncating Data In-Reply-To: <5F21A4E8B8DD734992EF9E70AC9D3064128B5A@mail2.wrsystems.com > Message-ID: <5.1.0.14.2.20040407131402.03e31c80@mail.psu.edu> Thanks for the information. I finally determined my problem was that my memo field was included in the "Group By" clause. This caused Access to truncate the field. I guess this is a known issue in Access. I am used to SQL Server. Anyhow, I took the field out of the Group By and was OK. Paul Liadis At 09:33 AM 4/7/2004 -0400, you wrote: >See M$ KB 170218. > >A workaround I used in an older program is as follows (this is A97): > >'The following lines of code is a workaround provided by MS due to W97 >inability to assign the value of a variable containing > 'more than 255 characters. This is obviously a non-starter, as the >fields indicated are memo fields in Access. > 'The formfield is populated with asterisks as a placemark, the document >then has to be unprotected, then the contents are > 'dumped into the formfield. After that, the asteriks are deleted, and >the protection for the document is reinstated. > 'The if statement is so this processing effort won't be invoked unless >the field is not null and contains more than 255 characters. > ' > > If Not IsNull(Forms!frmstrinput!txtBrief) And >Len(Forms!frmstrinput!txtBrief) > 255 Then > 'set Description form field to a unique string. > WordObj.Documents(1).FormFields("Description").Result = "****" > If WordObj.Documents(1).ProtectionType <> wdNoProtection Then > WordObj.Documents(1).Unprotect Password:="bob" > End If > WordObj.Selection.Goto what:=wdGoToBookmark, Name:="Description" > WordObj.Selection.Collapse > WordObj.Selection.MoveRight wdCharacter, 1 > WordObj.Selection.TypeText (Forms!frmstrinput!txtBrief) > WordObj.Selection.Goto wdGoToBookmark, , , "description" > 'Remove unique characters from Description form field > With WordObj.Selection.Find > .Execute findtext:="*", replacewith:="", replace:=wdReplaceAll > End With > WordObj.Documents(1).Protect Password:="bob", noreset:=True, >Type:=wdAllowOnlyFormFields > > Else > WordObj.Documents(1).FormFields("Description").Result = >IIf(IsNull(Forms!frmstrinput!txtBrief), "", (Forms!frmstrinput!txtBrief)) > End If > >-----Original Message----- >From: Paul Liadis [mailto:pnl1 at psu.edu] >Sent: Wednesday, April 07, 2004 9:22 AM >To: Access Developers discussion and problem solving >Subject: [AccessD] Query Truncating Data > >Hello, >I am having a problem with a query in which my data is being truncated to >255 characters. My query simply selects from a table (linked from SQL >Server), but doesn't return all the data in one of the columns (defined as >memo in Access). The data is being truncated even though it exists in the >table. Has anyone experienced this? > >Thanks, > >=============================================== >Paul Liadis >Senior Applications Programmer/Analyst >University Budget Office >Pennsylvania State University > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From ranthony at wrsystems.com Wed Apr 7 12:21:47 2004 From: ranthony at wrsystems.com (ranthony at wrsystems.com) Date: Wed, 7 Apr 2004 13:21:47 -0400 Subject: [AccessD] Query Truncating Data Message-ID: <5F21A4E8B8DD734992EF9E70AC9D3064128B5D@mail2.wrsystems.com> Glad you got it fixed. -----Original Message----- From: Paul Liadis [mailto:pnl1 at psu.edu] Sent: Wednesday, April 07, 2004 1:16 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Query Truncating Data Thanks for the information. I finally determined my problem was that my memo field was included in the "Group By" clause. This caused Access to truncate the field. I guess this is a known issue in Access. I am used to SQL Server. Anyhow, I took the field out of the Group By and was OK. Paul Liadis At 09:33 AM 4/7/2004 -0400, you wrote: >See M$ KB 170218. > >A workaround I used in an older program is as follows (this is A97): > >'The following lines of code is a workaround provided by MS due to W97 >inability to assign the value of a variable containing > 'more than 255 characters. This is obviously a non-starter, as the >fields indicated are memo fields in Access. > 'The formfield is populated with asterisks as a placemark, the document >then has to be unprotected, then the contents are > 'dumped into the formfield. After that, the asteriks are deleted, and >the protection for the document is reinstated. > 'The if statement is so this processing effort won't be invoked unless >the field is not null and contains more than 255 characters. > ' > > If Not IsNull(Forms!frmstrinput!txtBrief) And >Len(Forms!frmstrinput!txtBrief) > 255 Then > 'set Description form field to a unique string. > WordObj.Documents(1).FormFields("Description").Result = "****" > If WordObj.Documents(1).ProtectionType <> wdNoProtection Then > WordObj.Documents(1).Unprotect Password:="bob" > End If > WordObj.Selection.Goto what:=wdGoToBookmark, Name:="Description" > WordObj.Selection.Collapse > WordObj.Selection.MoveRight wdCharacter, 1 > WordObj.Selection.TypeText (Forms!frmstrinput!txtBrief) > WordObj.Selection.Goto wdGoToBookmark, , , "description" > 'Remove unique characters from Description form field > With WordObj.Selection.Find > .Execute findtext:="*", replacewith:="", replace:=wdReplaceAll > End With > WordObj.Documents(1).Protect Password:="bob", noreset:=True, >Type:=wdAllowOnlyFormFields > > Else > WordObj.Documents(1).FormFields("Description").Result = >IIf(IsNull(Forms!frmstrinput!txtBrief), "", (Forms!frmstrinput!txtBrief)) > End If > >-----Original Message----- >From: Paul Liadis [mailto:pnl1 at psu.edu] >Sent: Wednesday, April 07, 2004 9:22 AM >To: Access Developers discussion and problem solving >Subject: [AccessD] Query Truncating Data > >Hello, >I am having a problem with a query in which my data is being truncated to >255 characters. My query simply selects from a table (linked from SQL >Server), but doesn't return all the data in one of the columns (defined as >memo in Access). The data is being truncated even though it exists in the >table. Has anyone experienced this? > >Thanks, > >=============================================== >Paul Liadis >Senior Applications Programmer/Analyst >University Budget Office >Pennsylvania State University > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >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 Wed Apr 7 12:36:05 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Wed, 7 Apr 2004 13:36:05 -0400 Subject: [AccessD] Permissions Refresher Message-ID: Group, I have a database that is currently restricted (by folder permissions) to only a few individual persons. I am now in the process of creating a database for general use that needs to link to a table in that restricted database. Out of the following permissions, what is the minimum necessary to allow a user to execute select queries, but not allow any modifications to the data? Permissions: Allow/Deny? Full Control Modify Read & Execute List Folder Contents Read Write TIA, Mark From DWUTKA at marlow.com Wed Apr 7 12:48:55 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 7 Apr 2004 12:48:55 -0500 Subject: [AccessD] How do I Message-ID: <2F8793082E00D4119A1700B0D0216BF802227A87@main2.marlow.com> Here ya go.... Function GetTime(dtDateWithTime As Date) As Date GetTime = TimeSerial(Hour(dtDateWithTime), Minute(dtDateWithTime), Second(dtDateWithTime)) End Function -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Wednesday, April 07, 2004 12:03 AM To: AccessD Subject: [AccessD] How do I Having a bit of a problem tonight. Given #5/11/2000 3:20:00 PM# How do I get rid of the date portion and return just the time? I tried subtracting the clng(ThatDate) from the whole... sometimes worked but sometimes gave me bad time (but never any date portion) I tried dateadd("d",-clng(ThatDate),ThatDate)... That always gives me the correct time but 12/29/1899 as the date portion if the time is in the PM. I have a bunch of times that include the date and I need to strip the date off the time. 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 DWUTKA at marlow.com Wed Apr 7 12:49:46 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 7 Apr 2004 12:49:46 -0500 Subject: [AccessD] OT: open source Message-ID: <2F8793082E00D4119A1700B0D0216BF802227A88@main2.marlow.com> Yes I make my living off this list. Wait until my billing goes out! LOL Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Susan Harkins Sent: Tuesday, April 06, 2004 9:52 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT: open source Do you make your living from this list? If all of your clients or your boss suddenly said "Keep it up, you're doing great, but btw, you're working for free now, aren't you?" Or, how about, "And show this new guy everything you know so we don't need you anymore." -- would that be OK? Susan H. On 6 Apr 2004 at 19:06, Susan Harkins wrote: > ====Right, I understand that and I don't mean to confuse the issue, > but sharing intellectual property in this way is an odd concept to me. What part is odd? We freely share our intelectual property here everyday. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Wed Apr 7 12:38:36 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 07 Apr 2004 10:38:36 -0700 Subject: [AccessD] OT: open source References: <20040406145847.NMC1781.imf18aec.mail.bellsouth.net@SUSANONE> Message-ID: <40743C9C.6090201@shaw.ca> One thought on open source. Without a certain critical mass of users, support for certain types of open source software can be a definite problem. This happens when you go beyond the common spreadsheet and word processing programs. Let use an example. The two major general statistical packages SPSS and SAS do not run on Linux. They are used throughout government and large companies like pharmaceutical industries. Both these packages are taught in universities in courses like the Social Sciences. There is a large user support database, user conventions, mailing lists etc. The users have a familiarity with the packages. Now there is an open source replacement called R. Works on Unix, Linux and Windows. R is possibly as good as SAS. Probably better graphics than SAS-Graph. Cutting edge statistics - Many are developed in R (or in its commercial cousin - S Plus). It takes a while for them to make it into SAS. R doesn't have the data management abilities that SAS has. However support is limited. The R language used is as different from SAS as English is to Swahili. So the ordinary social scientist doing regression analysis is going to have problem switching, whereas a recent Ph.D. in Statistics has probably been exposed to both languages. What I have seen in some large government departments is a reasonable compromise using Base SAS for data management and exploratory data analysis and R for more advanced stats and graphs. Until recently R was restricted by only working with Data Sets in memory and access to external data was limited. In another year, they will be able to get at XML data, SAS transport (XPORT) format data sets and some databases. It can get at Postgres now, higher versions of SQL and even Access. If you switch from SAS to R, you will have to overcome training and support problems Is it worth the $1000 a seat difference? There are not a lot of people familiar with R (not enough critical mass of users or support personnel) . If some of the major pharmaceuticals switch to R, then the number of support personnel will increase. They will then endow some more universities to start teaching it to ensure a supply of trained personnel. If anyone is interested in running Access and R on windows here is a starting point. I suppose you can also do it on Linux with Samba. http://www.r-project.org/ http://www.stats.ox.ac.uk/pub/R/rw-FAQ.html Here is where a lot of open source packages fall down on data mangement. For example MAXDB (old SAPDB) from MySQL has a limited ODBC driver and no OLEDB driver Would be nice to have to link to dotNet. However you will have to wait for some kind spirited soul to write one, It would take a least 3 months of someone's time. I have heard of people offering to do it for $10,000. Maybe someone will do it at MySQL. Guys who can write this type of code are thin on the ground. This also happens with other large scale systems like AutoCAD or GIS systems like ArcINFO. ArcINFO can handle spatial database engines on Linux, but the front end Linux support requires Java Object interfaces, where there is little open source generic front ends available for datamangement. Although there are plenty of frontend viewers available even through html and maybe svg xml. There are no decent free/open source CAD packages. Why? Because it is so damn difficult and time/manpower consuming to program one. Therefore to try and duplicate the functionality of any CAD package and especially the new generation parameteric modellers such as AutoCad Inventor, ProE, SolidWorks, etc. is not practical. I would say it is impossible with a limited 2D programs such as open source MetaPost. And come to think of it. I haven't seen any good open source accounting packages for Linux. -- Marty Connelly Victoria, B.C. Canada From ssharkins at bellsouth.net Wed Apr 7 13:06:53 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Wed, 7 Apr 2004 14:06:53 -0400 Subject: [AccessD] OT: open source In-Reply-To: <2F8793082E00D4119A1700B0D0216BF802227A85@main2.marlow.com> Message-ID: <20040407180713.XGDQ1746.imf17aec.mail.bellsouth.net@SUSANONE> It's still peer to peer Drew, in a mutually beneficial exchange -- that doesn't equate to software manufacturers going open code with everything. Susan H. Why? We share code here. Then there are a million and one sites all based upon techies sharing information. In my opinion, the rest of the world needs to catch up with the internet. From Patricia.O'Connor at DFA.STATE.NY.US Wed Apr 7 13:21:19 2004 From: Patricia.O'Connor at DFA.STATE.NY.US (O'Connor, Patricia ) Date: Wed, 7 Apr 2004 14:21:19 -0400 Subject: [AccessD] How do I Message-ID: John, Try this TIMEVALUE(#12/07/2001 10:43:56 AM#) Patti > -----Original Message----- > From: John W. Colby [mailto:jwcolby at colbyconsulting.com] > Sent: Wednesday, April 07, 2004 01:03 AM > To: AccessD > Subject: [AccessD] How do I > > > Having a bit of a problem tonight. > > Given #5/11/2000 3:20:00 PM# > > How do I get rid of the date portion and return just the time? > > I tried subtracting the clng(ThatDate) from the whole... > sometimes worked > but sometimes gave me bad time (but never any date portion) > > I tried dateadd("d",-clng(ThatDate),ThatDate)... That always > gives me the > correct time but 12/29/1899 as the date portion if the time > is in the PM. > > I have a bunch of times that include the date and I need to > strip the date > off the time. > > 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 DWUTKA at marlow.com Wed Apr 7 13:28:55 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 7 Apr 2004 13:28:55 -0500 Subject: [AccessD] OT: open source Message-ID: <2F8793082E00D4119A1700B0D0216BF802227A8C@main2.marlow.com> Here yes, but on download sites, like PlanetSourceCode.com, no. On sites where code is posted, and retrieved by anyone that wants it, that is open source. The difference is, code like that is generic, or single purpose. You want something specific, or tailored to your needs, then you hire a developer. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Susan Harkins Sent: Wednesday, April 07, 2004 1:07 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT: open source It's still peer to peer Drew, in a mutually beneficial exchange -- that doesn't equate to software manufacturers going open code with everything. Susan H. Why? We share code here. Then there are a million and one sites all based upon techies sharing information. In my opinion, the rest of the world needs to catch up with the internet. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mms at sentex.net Wed Apr 7 13:47:42 2004 From: mms at sentex.net (Les Dunn) Date: Wed, 7 Apr 2004 14:47:42 -0400 Subject: [AccessD] Emails Problems References: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D55C@cntexchange.pgdp.usec.com> Message-ID: <003d01c41cd0$cf2b8e50$e0fc7018@lesdunn> Yes. ----- Original Message ----- From: "Hollis,Virginia" To: "'Access Developers discussion and problem solving'" Sent: Wednesday, April 07, 2004 10:15 AM Subject: [AccessD] Emails Problems > Has anyone been receiving strange emails with attachments? I have been > getting emails for the past 2 days with txt attachments. I just received one > that said it was from AccessD. > > Virginia > -- > _______________________________________________ > 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 Apr 7 14:00:21 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Wed, 7 Apr 2004 15:00:21 -0400 Subject: [AccessD] Permissions Refresher Message-ID: Can anyone point me in the right direction on this? Mark -----Original Message----- From: Mitsules, Mark Sent: Wednesday, April 07, 2004 1:36 PM To: '[AccessD]' Subject: [AccessD] Permissions Refresher Group, I have a database that is currently restricted (by folder permissions) to only a few individual persons. I am now in the process of creating a database for general use that needs to link to a table in that restricted database. Out of the following permissions, what is the minimum necessary to allow a user to execute select queries, but not allow any modifications to the data? Permissions: Allow/Deny? Full Control Modify Read & Execute List Folder Contents Read Write TIA, Mark -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ranthony at wrsystems.com Wed Apr 7 14:40:14 2004 From: ranthony at wrsystems.com (ranthony at wrsystems.com) Date: Wed, 7 Apr 2004 15:40:14 -0400 Subject: [AccessD] Permissions Refresher Message-ID: <5F21A4E8B8DD734992EF9E70AC9D3064128B5E@mail2.wrsystems.com> Mark, Off the top of my head, I'd go with Read & Execute and Read and no other permissions. They will need at least Read permissions to access the folders. -----Original Message----- From: Mitsules, Mark S. (Newport News) [mailto:Mark.Mitsules at ngc.com] Sent: Wednesday, April 07, 2004 3:00 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Permissions Refresher Can anyone point me in the right direction on this? Mark -----Original Message----- From: Mitsules, Mark Sent: Wednesday, April 07, 2004 1:36 PM To: '[AccessD]' Subject: [AccessD] Permissions Refresher Group, I have a database that is currently restricted (by folder permissions) to only a few individual persons. I am now in the process of creating a database for general use that needs to link to a table in that restricted database. Out of the following permissions, what is the minimum necessary to allow a user to execute select queries, but not allow any modifications to the data? Permissions: Allow/Deny? Full Control Modify Read & Execute List Folder Contents Read Write TIA, 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 Mark.Mitsules at ngc.com Wed Apr 7 14:48:32 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Wed, 7 Apr 2004 15:48:32 -0400 Subject: [AccessD] Permissions Refresher Message-ID: Thanks for your reply. Because I'm not familiar with this topic I have to wonder...wouldn't "Read" be redundant if "Read & Execute" was allowed? Or are they two separate things? I'm looking for the absolute minimum. Mark -----Original Message----- From: ranthony at wrsystems.com [mailto:ranthony at wrsystems.com] Sent: Wednesday, April 07, 2004 3:40 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Permissions Refresher Mark, Off the top of my head, I'd go with Read & Execute and Read and no other permissions. They will need at least Read permissions to access the folders. -----Original Message----- From: Mitsules, Mark S. (Newport News) [mailto:Mark.Mitsules at ngc.com] Sent: Wednesday, April 07, 2004 3:00 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Permissions Refresher Can anyone point me in the right direction on this? Mark -----Original Message----- From: Mitsules, Mark Sent: Wednesday, April 07, 2004 1:36 PM To: '[AccessD]' Subject: [AccessD] Permissions Refresher Group, I have a database that is currently restricted (by folder permissions) to only a few individual persons. I am now in the process of creating a database for general use that needs to link to a table in that restricted database. Out of the following permissions, what is the minimum necessary to allow a user to execute select queries, but not allow any modifications to the data? Permissions: Allow/Deny? Full Control Modify Read & Execute List Folder Contents Read Write TIA, 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 jimdettman at earthlink.net Wed Apr 7 14:56:01 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Wed, 7 Apr 2004 15:56:01 -0400 Subject: [AccessD] Permissions Refresher In-Reply-To: Message-ID: Mark, You can't do what you want through OS level security. You need to use Access level security. All users, regardless of what they do once inside the container need full rights where the directory resides and read/modify on the MDB file itself. Jim Dettman (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark S. (Newport News) Sent: Wednesday, April 07, 2004 1:36 PM To: '[AccessD]' Subject: [AccessD] Permissions Refresher Group, I have a database that is currently restricted (by folder permissions) to only a few individual persons. I am now in the process of creating a database for general use that needs to link to a table in that restricted database. Out of the following permissions, what is the minimum necessary to allow a user to execute select queries, but not allow any modifications to the data? Permissions: Allow/Deny? Full Control Modify Read & Execute List Folder Contents Read Write TIA, Mark -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mikedorism at adelphia.net Wed Apr 7 14:41:54 2004 From: mikedorism at adelphia.net (Mike & Doris Manning) Date: Wed, 7 Apr 2004 15:41:54 -0400 Subject: [AccessD] Permissions Refresher In-Reply-To: Message-ID: <000001c41cd8$614d3520$ed194244@hargrove.internal> I believe the minimum necessary is Read & Execute. 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 Mitsules, Mark S. (Newport News) Sent: Wednesday, April 07, 2004 3:00 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Permissions Refresher Can anyone point me in the right direction on this? Mark -----Original Message----- From: Mitsules, Mark Sent: Wednesday, April 07, 2004 1:36 PM To: '[AccessD]' Subject: [AccessD] Permissions Refresher Group, I have a database that is currently restricted (by folder permissions) to only a few individual persons. I am now in the process of creating a database for general use that needs to link to a table in that restricted database. Out of the following permissions, what is the minimum necessary to allow a user to execute select queries, but not allow any modifications to the data? Permissions: Allow/Deny? Full Control Modify Read & Execute List Folder Contents Read Write TIA, 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 Mark.Mitsules at ngc.com Wed Apr 7 15:04:45 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Wed, 7 Apr 2004 16:04:45 -0400 Subject: [AccessD] Permissions Refresher Message-ID: Really? Because in this afternoon's testing I set up a test case where the user was given only Read & Execute, List Folder Contents, and Read to the folder containing the remote db. That user was able to execute a select query in datasheet view, but was not able to modify any of the entries. That's as far as I was able to take the testing thus far. Mark -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Wednesday, April 07, 2004 3:56 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Permissions Refresher Mark, You can't do what you want through OS level security. You need to use Access level security. All users, regardless of what they do once inside the container need full rights where the directory resides and read/modify on the MDB file itself. Jim Dettman (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark S. (Newport News) Sent: Wednesday, April 07, 2004 1:36 PM To: '[AccessD]' Subject: [AccessD] Permissions Refresher Group, I have a database that is currently restricted (by folder permissions) to only a few individual persons. I am now in the process of creating a database for general use that needs to link to a table in that restricted database. Out of the following permissions, what is the minimum necessary to allow a user to execute select queries, but not allow any modifications to the data? Permissions: Allow/Deny? Full Control Modify Read & Execute List Folder Contents Read Write TIA, 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 Mark.Mitsules at ngc.com Wed Apr 7 15:05:56 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Wed, 7 Apr 2004 16:05:56 -0400 Subject: [AccessD] Permissions Refresher Message-ID: Thank you...that will be the test I run tomorrow. Mark -----Original Message----- From: Mike & Doris Manning [mailto:mikedorism at adelphia.net] Sent: Wednesday, April 07, 2004 3:42 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Permissions Refresher I believe the minimum necessary is Read & Execute. 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 Mitsules, Mark S. (Newport News) Sent: Wednesday, April 07, 2004 3:00 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Permissions Refresher Can anyone point me in the right direction on this? Mark -----Original Message----- From: Mitsules, Mark Sent: Wednesday, April 07, 2004 1:36 PM To: '[AccessD]' Subject: [AccessD] Permissions Refresher Group, I have a database that is currently restricted (by folder permissions) to only a few individual persons. I am now in the process of creating a database for general use that needs to link to a table in that restricted database. Out of the following permissions, what is the minimum necessary to allow a user to execute select queries, but not allow any modifications to the data? Permissions: Allow/Deny? Full Control Modify Read & Execute List Folder Contents Read Write TIA, 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 BBarabash at TappeConstruction.com Wed Apr 7 15:07:35 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Wed, 7 Apr 2004 15:07:35 -0500 Subject: [AccessD] How do I Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE4CF@TAPPEEXCH01> TimeValue() -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Wednesday, April 07, 2004 12:03 AM To: AccessD Subject: [AccessD] How do I Having a bit of a problem tonight. Given #5/11/2000 3:20:00 PM# How do I get rid of the date portion and return just the time? I tried subtracting the clng(ThatDate) from the whole... sometimes worked but sometimes gave me bad time (but never any date portion) I tried dateadd("d",-clng(ThatDate),ThatDate)... That always gives me the correct time but 12/29/1899 as the date portion if the time is in the PM. I have a bunch of times that include the date and I need to strip the date off the time. John W. Colby www.ColbyConsulting.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 ranthony at wrsystems.com Wed Apr 7 15:12:34 2004 From: ranthony at wrsystems.com (ranthony at wrsystems.com) Date: Wed, 7 Apr 2004 16:12:34 -0400 Subject: [AccessD] Permissions Refresher Message-ID: <5F21A4E8B8DD734992EF9E70AC9D3064128B5F@mail2.wrsystems.com> I think this is correct. I was going to agree with Jim on full control is needed so the user can write to the .ldb, but your testing seems to bear this out. Our system is setup so that users have full control on the folders and I use Access security within that. -----Original Message----- From: Mitsules, Mark S. (Newport News) [mailto:Mark.Mitsules at ngc.com] Sent: Wednesday, April 07, 2004 4:05 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Permissions Refresher Really? Because in this afternoon's testing I set up a test case where the user was given only Read & Execute, List Folder Contents, and Read to the folder containing the remote db. That user was able to execute a select query in datasheet view, but was not able to modify any of the entries. That's as far as I was able to take the testing thus far. Mark -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Wednesday, April 07, 2004 3:56 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Permissions Refresher Mark, You can't do what you want through OS level security. You need to use Access level security. All users, regardless of what they do once inside the container need full rights where the directory resides and read/modify on the MDB file itself. Jim Dettman (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark S. (Newport News) Sent: Wednesday, April 07, 2004 1:36 PM To: '[AccessD]' Subject: [AccessD] Permissions Refresher Group, I have a database that is currently restricted (by folder permissions) to only a few individual persons. I am now in the process of creating a database for general use that needs to link to a table in that restricted database. Out of the following permissions, what is the minimum necessary to allow a user to execute select queries, but not allow any modifications to the data? Permissions: Allow/Deny? Full Control Modify Read & Execute List Folder Contents Read Write TIA, 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 Wed Apr 7 15:21:45 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Wed, 7 Apr 2004 16:21:45 -0400 Subject: [AccessD] Permissions Refresher Message-ID: It seems that in this case, write privileges to allow for the .ldb are not needed because I am only linking to a table in that database...not actually opening the database. Mark -----Original Message----- From: ranthony at wrsystems.com [mailto:ranthony at wrsystems.com] Sent: Wednesday, April 07, 2004 4:13 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Permissions Refresher I think this is correct. I was going to agree with Jim on full control is needed so the user can write to the .ldb, but your testing seems to bear this out. Our system is setup so that users have full control on the folders and I use Access security within that. -----Original Message----- From: Mitsules, Mark S. (Newport News) [mailto:Mark.Mitsules at ngc.com] Sent: Wednesday, April 07, 2004 4:05 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Permissions Refresher Really? Because in this afternoon's testing I set up a test case where the user was given only Read & Execute, List Folder Contents, and Read to the folder containing the remote db. That user was able to execute a select query in datasheet view, but was not able to modify any of the entries. That's as far as I was able to take the testing thus far. Mark -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Wednesday, April 07, 2004 3:56 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Permissions Refresher Mark, You can't do what you want through OS level security. You need to use Access level security. All users, regardless of what they do once inside the container need full rights where the directory resides and read/modify on the MDB file itself. Jim Dettman (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark S. (Newport News) Sent: Wednesday, April 07, 2004 1:36 PM To: '[AccessD]' Subject: [AccessD] Permissions Refresher Group, I have a database that is currently restricted (by folder permissions) to only a few individual persons. I am now in the process of creating a database for general use that needs to link to a table in that restricted database. Out of the following permissions, what is the minimum necessary to allow a user to execute select queries, but not allow any modifications to the data? Permissions: Allow/Deny? Full Control Modify Read & Execute List Folder Contents Read Write TIA, 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 mikedorism at adelphia.net Wed Apr 7 15:31:01 2004 From: mikedorism at adelphia.net (Mike & Doris Manning) Date: Wed, 7 Apr 2004 16:31:01 -0400 Subject: [AccessD] Permissions Refresher In-Reply-To: <5F21A4E8B8DD734992EF9E70AC9D3064128B5F@mail2.wrsystems.com> Message-ID: <000001c41cdf$3fe87460$ed194244@hargrove.internal> You don't need Full Control if you are linking to an MDB in another location. Your rights to the tables in that MDB are controlled by your OS rights to the folder it is in. No LDB gets opened at all for the MDB you are linked to in this case. 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 ranthony at wrsystems.com Sent: Wednesday, April 07, 2004 4:13 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Permissions Refresher I think this is correct. I was going to agree with Jim on full control is needed so the user can write to the .ldb, but your testing seems to bear this out. Our system is setup so that users have full control on the folders and I use Access security within that. -----Original Message----- From: Mitsules, Mark S. (Newport News) [mailto:Mark.Mitsules at ngc.com] Sent: Wednesday, April 07, 2004 4:05 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Permissions Refresher Really? Because in this afternoon's testing I set up a test case where the user was given only Read & Execute, List Folder Contents, and Read to the folder containing the remote db. That user was able to execute a select query in datasheet view, but was not able to modify any of the entries. That's as far as I was able to take the testing thus far. Mark -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Wednesday, April 07, 2004 3:56 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Permissions Refresher Mark, You can't do what you want through OS level security. You need to use Access level security. All users, regardless of what they do once inside the container need full rights where the directory resides and read/modify on the MDB file itself. Jim Dettman (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark S. (Newport News) Sent: Wednesday, April 07, 2004 1:36 PM To: '[AccessD]' Subject: [AccessD] Permissions Refresher Group, I have a database that is currently restricted (by folder permissions) to only a few individual persons. I am now in the process of creating a database for general use that needs to link to a table in that restricted database. Out of the following permissions, what is the minimum necessary to allow a user to execute select queries, but not allow any modifications to the data? Permissions: Allow/Deny? Full Control Modify Read & Execute List Folder Contents Read Write TIA, 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 jimdettman at earthlink.net Wed Apr 7 15:29:06 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Wed, 7 Apr 2004 16:29:06 -0400 Subject: [AccessD] Permissions Refresher In-Reply-To: Message-ID: Mark, Yes. If you don't, the first user in will not be able to create a .LDB file and the MDB will get opened in exclusive mode. Beyond that, when a user attaches to the database, Access needs to write to the database header page even if the user is going to be doing read only things. If it can't do that, again the result will be exclusive mode. So users need read/write privilege for the folder and read/write privileges for the MDB file itself. Jim Dettman (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark S. (Newport News) Sent: Wednesday, April 07, 2004 4:05 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Permissions Refresher Really? Because in this afternoon's testing I set up a test case where the user was given only Read & Execute, List Folder Contents, and Read to the folder containing the remote db. That user was able to execute a select query in datasheet view, but was not able to modify any of the entries. That's as far as I was able to take the testing thus far. Mark -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Wednesday, April 07, 2004 3:56 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Permissions Refresher Mark, You can't do what you want through OS level security. You need to use Access level security. All users, regardless of what they do once inside the container need full rights where the directory resides and read/modify on the MDB file itself. Jim Dettman (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark S. (Newport News) Sent: Wednesday, April 07, 2004 1:36 PM To: '[AccessD]' Subject: [AccessD] Permissions Refresher Group, I have a database that is currently restricted (by folder permissions) to only a few individual persons. I am now in the process of creating a database for general use that needs to link to a table in that restricted database. Out of the following permissions, what is the minimum necessary to allow a user to execute select queries, but not allow any modifications to the data? Permissions: Allow/Deny? Full Control Modify Read & Execute List Folder Contents Read Write TIA, 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 jimdettman at earthlink.net Wed Apr 7 15:30:42 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Wed, 7 Apr 2004 16:30:42 -0400 Subject: [AccessD] Permissions Refresher In-Reply-To: <000001c41cdf$3fe87460$ed194244@hargrove.internal> Message-ID: Doris, <> Yes, one always gets created anytime a user attaches to a MDB file (even if via a linked table). If one is not created, Access/JET defaults to exclusive use. Jim Dettman (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mike & Doris Manning Sent: Wednesday, April 07, 2004 4:31 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Permissions Refresher You don't need Full Control if you are linking to an MDB in another location. Your rights to the tables in that MDB are controlled by your OS rights to the folder it is in. No LDB gets opened at all for the MDB you are linked to in this case. 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 ranthony at wrsystems.com Sent: Wednesday, April 07, 2004 4:13 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Permissions Refresher I think this is correct. I was going to agree with Jim on full control is needed so the user can write to the .ldb, but your testing seems to bear this out. Our system is setup so that users have full control on the folders and I use Access security within that. -----Original Message----- From: Mitsules, Mark S. (Newport News) [mailto:Mark.Mitsules at ngc.com] Sent: Wednesday, April 07, 2004 4:05 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Permissions Refresher Really? Because in this afternoon's testing I set up a test case where the user was given only Read & Execute, List Folder Contents, and Read to the folder containing the remote db. That user was able to execute a select query in datasheet view, but was not able to modify any of the entries. That's as far as I was able to take the testing thus far. Mark -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Wednesday, April 07, 2004 3:56 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Permissions Refresher Mark, You can't do what you want through OS level security. You need to use Access level security. All users, regardless of what they do once inside the container need full rights where the directory resides and read/modify on the MDB file itself. Jim Dettman (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark S. (Newport News) Sent: Wednesday, April 07, 2004 1:36 PM To: '[AccessD]' Subject: [AccessD] Permissions Refresher Group, I have a database that is currently restricted (by folder permissions) to only a few individual persons. I am now in the process of creating a database for general use that needs to link to a table in that restricted database. Out of the following permissions, what is the minimum necessary to allow a user to execute select queries, but not allow any modifications to the data? Permissions: Allow/Deny? Full Control Modify Read & Execute List Folder Contents Read Write TIA, 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 ranthony at wrsystems.com Wed Apr 7 15:39:10 2004 From: ranthony at wrsystems.com (ranthony at wrsystems.com) Date: Wed, 7 Apr 2004 16:39:10 -0400 Subject: [AccessD] Permissions Refresher Message-ID: <5F21A4E8B8DD734992EF9E70AC9D3064128B60@mail2.wrsystems.com> Very interesting discussion here, I'm learning... -----Original Message----- From: Mike & Doris Manning [mailto:mikedorism at adelphia.net] Sent: Wednesday, April 07, 2004 4:31 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Permissions Refresher You don't need Full Control if you are linking to an MDB in another location. Your rights to the tables in that MDB are controlled by your OS rights to the folder it is in. No LDB gets opened at all for the MDB you are linked to in this case. 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 ranthony at wrsystems.com Sent: Wednesday, April 07, 2004 4:13 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Permissions Refresher I think this is correct. I was going to agree with Jim on full control is needed so the user can write to the .ldb, but your testing seems to bear this out. Our system is setup so that users have full control on the folders and I use Access security within that. -----Original Message----- From: Mitsules, Mark S. (Newport News) [mailto:Mark.Mitsules at ngc.com] Sent: Wednesday, April 07, 2004 4:05 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Permissions Refresher Really? Because in this afternoon's testing I set up a test case where the user was given only Read & Execute, List Folder Contents, and Read to the folder containing the remote db. That user was able to execute a select query in datasheet view, but was not able to modify any of the entries. That's as far as I was able to take the testing thus far. Mark -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Wednesday, April 07, 2004 3:56 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Permissions Refresher Mark, You can't do what you want through OS level security. You need to use Access level security. All users, regardless of what they do once inside the container need full rights where the directory resides and read/modify on the MDB file itself. Jim Dettman (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark S. (Newport News) Sent: Wednesday, April 07, 2004 1:36 PM To: '[AccessD]' Subject: [AccessD] Permissions Refresher Group, I have a database that is currently restricted (by folder permissions) to only a few individual persons. I am now in the process of creating a database for general use that needs to link to a table in that restricted database. Out of the following permissions, what is the minimum necessary to allow a user to execute select queries, but not allow any modifications to the data? Permissions: Allow/Deny? Full Control Modify Read & Execute List Folder Contents Read Write TIA, 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 Patricia.O'Connor at DFA.STATE.NY.US Wed Apr 7 15:40:34 2004 From: Patricia.O'Connor at DFA.STATE.NY.US (O'Connor, Patricia ) Date: Wed, 7 Apr 2004 16:40:34 -0400 Subject: [AccessD] Access2k - Move ODBC option in dropdown Message-ID: Hi all, When linking tables to an access database, there is a dropdown box with all the different options for datatype. Does anyone know how to move the ODBC option up in the list. Right now it comes up last, I would like to move it up to 1st-3rd. Thanks Patti > -----Original Message----- > From: Jim Dettman [mailto:jimdettman at earthlink.net] > Sent: Wednesday, April 07, 2004 04:31 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Permissions Refresher > > > Doris, > > < are linked to in this case.>> > > Yes, one always gets created anytime a user attaches to a > MDB file (even > if via a linked table). If one is not created, Access/JET defaults to > exclusive use. > > Jim Dettman > (315) 699-3443 > jimdettman at earthlink.net > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mike & Doris > Manning > Sent: Wednesday, April 07, 2004 4:31 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Permissions Refresher > > > You don't need Full Control if you are linking to an MDB in another > location. Your rights to the tables in that MDB are > controlled by your OS > rights to the folder it is in. No LDB gets opened at all for > the MDB you > are linked to in this case. > > 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 > ranthony at wrsystems.com > Sent: Wednesday, April 07, 2004 4:13 PM > To: accessd at databaseadvisors.com > Subject: RE: [AccessD] Permissions Refresher > > > I think this is correct. I was going to agree with Jim on > full control is > needed so the user can write to the .ldb, but your testing > seems to bear > this out. Our system is setup so that users have full control on the > folders and I use Access security within that. > > -----Original Message----- > From: Mitsules, Mark S. (Newport News) [mailto:Mark.Mitsules at ngc.com] > Sent: Wednesday, April 07, 2004 4:05 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Permissions Refresher > > Really? Because in this afternoon's testing I set up a test > case where the > user was given only Read & Execute, List Folder Contents, and > Read to the > folder containing the remote db. That user was able to > execute a select > query in datasheet view, but was not able to modify any of > the entries. > That's as far as I was able to take the testing thus far. > > > > Mark > > > -----Original Message----- > From: Jim Dettman [mailto:jimdettman at earthlink.net] > Sent: Wednesday, April 07, 2004 3:56 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Permissions Refresher > > > Mark, > > You can't do what you want through OS level security. You > need to use > Access level security. All users, regardless of what they do > once inside > the container need full rights where the directory resides > and read/modify > on the MDB file itself. > > Jim Dettman > (315) 699-3443 > jimdettman at earthlink.net > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > Mitsules, Mark S. > (Newport News) > Sent: Wednesday, April 07, 2004 1:36 PM > To: '[AccessD]' > Subject: [AccessD] Permissions Refresher > > > Group, > > I have a database that is currently restricted (by folder > permissions) to > only a few individual persons. I am now in the process of creating a > database for general use that needs to link to a table in > that restricted > database. Out of the following permissions, what is the > minimum necessary > to allow a user to execute select queries, but not allow any > modifications > to the data? > > Permissions: Allow/Deny? > Full Control > Modify > Read & Execute > List Folder Contents > Read > Write > > > TIA, > > 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 Mark.Mitsules at ngc.com Wed Apr 7 16:07:26 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Wed, 7 Apr 2004 17:07:26 -0400 Subject: [AccessD] Startup Properties Message-ID: Building on the "Permissions Refresher" topic, has anyone implemented, or is it possible, to minimize user's "oops" by utilizing the following scenario? FIRST - Uncheck the following startup properties: Display Database Window Allow Full Menus Allow Default Shortcut Menus Allow Built-in Toolbars Allow Toolbar/Menu Changes Use Access Special Keys SECOND - Create an Administrator option that is shown on the switchboard based on the results of the GetUserName function. This would provide a form to reset those startup properties to default if needed. This database solution is in its infancy and bound to go through numerous design changes...therefore, I need to be able to go into design mode when necessary, yet default to a more secure mode when I exit. Is this a viable solution for use in a small workgroup? Any downside? Mark From DWUTKA at marlow.com Wed Apr 7 17:12:43 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 7 Apr 2004 17:12:43 -0500 Subject: [AccessD] Permissions Refresher Message-ID: <2F8793082E00D4119A1700B0D0216BF802227A9B@main2.marlow.com> You can make an .mdb 'read only' through NT security. It's not the prefered method though. The reason it's not prefered, is because you are actually having Jet error out, by being denied access to the file by NT security, instead of letting JET handle things with it's own security. It's actually very simple to setup Access User Level security, so that an 'admin' account has full access, and all other users (Using the generic Admin account) have read only access. Takes about 3 to 4 minutes to setup, and from then on, you are letting JET handle the security. Admittedly, NT security is a bit tighter then JET, but with the process mentioned above, you can keep the 'secured' .mdw locally, out of reach of the users, and thus the only way to 'hack' it, through JET, would be to use DAO code, to goof the hash. But NT security isn't all that secure either! LOL Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark S. (Newport News) Sent: Wednesday, April 07, 2004 3:05 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Permissions Refresher Really? Because in this afternoon's testing I set up a test case where the user was given only Read & Execute, List Folder Contents, and Read to the folder containing the remote db. That user was able to execute a select query in datasheet view, but was not able to modify any of the entries. That's as far as I was able to take the testing thus far. Mark -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Wednesday, April 07, 2004 3:56 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Permissions Refresher Mark, You can't do what you want through OS level security. You need to use Access level security. All users, regardless of what they do once inside the container need full rights where the directory resides and read/modify on the MDB file itself. Jim Dettman (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark S. (Newport News) Sent: Wednesday, April 07, 2004 1:36 PM To: '[AccessD]' Subject: [AccessD] Permissions Refresher Group, I have a database that is currently restricted (by folder permissions) to only a few individual persons. I am now in the process of creating a database for general use that needs to link to a table in that restricted database. Out of the following permissions, what is the minimum necessary to allow a user to execute select queries, but not allow any modifications to the data? Permissions: Allow/Deny? Full Control Modify Read & Execute List Folder Contents Read Write TIA, 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 DWUTKA at marlow.com Wed Apr 7 17:15:27 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 7 Apr 2004 17:15:27 -0500 Subject: [AccessD] Permissions Refresher Message-ID: <2F8793082E00D4119A1700B0D0216BF802227A9C@main2.marlow.com> Not true. When you link a table, an .ldb is created for both the FE and BE, when it's being used. (You are accessing the data, right?) The .ldb on the backend isn't 'created' until the linked table is used, though, which is why a lot of developers create a 'permanent' link process, to maintain the connection to the backend. That can speed up a lot of things in a FE/BE scenario. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mike & Doris Manning Sent: Wednesday, April 07, 2004 3:31 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Permissions Refresher You don't need Full Control if you are linking to an MDB in another location. Your rights to the tables in that MDB are controlled by your OS rights to the folder it is in. No LDB gets opened at all for the MDB you are linked to in this case. 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 ranthony at wrsystems.com Sent: Wednesday, April 07, 2004 4:13 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Permissions Refresher I think this is correct. I was going to agree with Jim on full control is needed so the user can write to the .ldb, but your testing seems to bear this out. Our system is setup so that users have full control on the folders and I use Access security within that. -----Original Message----- From: Mitsules, Mark S. (Newport News) [mailto:Mark.Mitsules at ngc.com] Sent: Wednesday, April 07, 2004 4:05 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Permissions Refresher Really? Because in this afternoon's testing I set up a test case where the user was given only Read & Execute, List Folder Contents, and Read to the folder containing the remote db. That user was able to execute a select query in datasheet view, but was not able to modify any of the entries. That's as far as I was able to take the testing thus far. Mark -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Wednesday, April 07, 2004 3:56 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Permissions Refresher Mark, You can't do what you want through OS level security. You need to use Access level security. All users, regardless of what they do once inside the container need full rights where the directory resides and read/modify on the MDB file itself. Jim Dettman (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark S. (Newport News) Sent: Wednesday, April 07, 2004 1:36 PM To: '[AccessD]' Subject: [AccessD] Permissions Refresher Group, I have a database that is currently restricted (by folder permissions) to only a few individual persons. I am now in the process of creating a database for general use that needs to link to a table in that restricted database. Out of the following permissions, what is the minimum necessary to allow a user to execute select queries, but not allow any modifications to the data? Permissions: Allow/Deny? Full Control Modify Read & Execute List Folder Contents Read Write TIA, 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 my.lists at verizon.net Wed Apr 7 17:42:27 2004 From: my.lists at verizon.net (Francisco H Tapia) Date: Wed, 07 Apr 2004 15:42:27 -0700 Subject: [AccessD] MS Access 2003 Gotchas Message-ID: <407483D3.3070508@verizon.net> ... so I have Access 97 and Access 2000, when I installed .Net 2003, it somehow blew away my rights to access the damn CodeLibrary unless I stick the stupid 2000 ODE disc in the drive. anyhow, that's not my question. There are behavioral diffrences in 97 and 2000 in the manner that a form will behave when it is displayed in datasheet view, Originally I thought it was the ADP causing this, but later found out that it appears to just be a 2000 thing (strangley I've never encountered it before). what I'm talking about is when you filter out a continous form OR datasheet on say column 1 then you wish to modify the data in column one you loose your filter when you attempt to modify or enter data to that column, unfiltered/unsorted columns are fine. so I want to test if Access 2003 will yield this same problem, but I don't want to be up a creek w/o a paddle and have problems w/ the installation when installing 2003. I remember before people mentioning the potential gotchas when going A2000/2002 w/ VBE. Thanks, -- -Francisco From martyconnelly at shaw.ca Wed Apr 7 17:36:10 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 07 Apr 2004 15:36:10 -0700 Subject: [AccessD] OT: open source References: <20040407113603.ZBNV1763.imf21aec.mail.bellsouth.net@SUSANONE> Message-ID: <4074825A.7040303@shaw.ca> You can put your source code in Escrow, if you don't want to release it to companies even with a NDA You shouldn't use your lawyer as an escrow software agent, an independant escrow agent will act impartially, and that would be impossible for a lawyer who was also representing either the supplier or the user. Also a lawyer whose client is buying an operating business should insist that the buyer has the right to cancel if due diligence reveals that continued maintenance and support for critical software is not assured in some way, such as a software escrow Here is a brief explanation of how software escrow works. http://www.softescrow.com/faq.html#1.0 or http://www.escrowassociates.com/agreements.htm http://techrepublic.com.com/5100-6298_11-5088773.html?fromtm=e101 Susan Harkins wrote: >If I went the MS way, what would my clients do if I was hit by a bus >tomorrow? > >============That's a good point, but to me, it's kind of like expecting a >chef to give you his recipe. Of course, if the market eventually forces it, >that's OK with me. I'm not against it. > >Susan H. > > > -- Marty Connelly Victoria, B.C. Canada From DWUTKA at marlow.com Wed Apr 7 18:43:32 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 7 Apr 2004 18:43:32 -0500 Subject: [AccessD] Access2k - Move ODBC option in dropdown Message-ID: <2F8793082E00D4119A1700B0D0216BF802227AA0@main2.marlow.com> WARNING WARNING WARNING! BE VERY CAREFUL WHEN DOING THIS! Your post raised my curiousity. I knew the registry had settings to change the order of various lists (like switching Design View and Datasheet View, when you create a new table). After a little futzing around in the registry, here is what I found. The 'Link' form that you get, when you link a table, is not a typical dialog box. It has to be in a wizard somewhere, or perhaps directly in msaccess.exe. Couldn't find it. However, and that's a big however, I did find where it builds the list. There is an odd quirk though, believe it or not, that list IS generated alphabetically. I know that doesn't sound right, because HTML Documents shows up after Microsoft Foxpro, and before Paradox. And Exchange comes after Microsoft Excel. That is because in the registry, it is listed as Excel, Exchange, Foxpro, HTML, Paradox. Which is in the right order. There is a big catch though. The first item on the list ISN'T in the registry (which is Microsoft Access). Neither is the Last. ODBC is the last. There is a way to make the ODBC item show up beneath Access though. Under: \HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Jet\3.5\ISAM Formats you will find the list of formats which display on that list. Each key (well almost all of them) have a value called CanLink, which is 01 if it is listed, and 00 if it is not. (Not 'CanLink' value, and it doesn't show up). So, you could cheat, and go through and set all of the CanLinks to 00. I would highly recommend that you write down which ones you changed (or export the original registry). But that would remove them from the list of Linkable sources, and thus move ODBC up the list. I know there are more keys set with 'CanLink', then are on the list, but that is because it groups some of them together. Also, the registry key above is for Access 97 (Jet 3.5). If you want A2k, you would change the 3.5 to 4.0 in the key path. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of O'Connor, Patricia Sent: Wednesday, April 07, 2004 3:41 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access2k - Move ODBC option in dropdown Hi all, When linking tables to an access database, there is a dropdown box with all the different options for datatype. Does anyone know how to move the ODBC option up in the list. Right now it comes up last, I would like to move it up to 1st-3rd. Thanks Patti > -----Original Message----- > From: Jim Dettman [mailto:jimdettman at earthlink.net] > Sent: Wednesday, April 07, 2004 04:31 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Permissions Refresher > > > Doris, > > < are linked to in this case.>> > > Yes, one always gets created anytime a user attaches to a > MDB file (even > if via a linked table). If one is not created, Access/JET defaults to > exclusive use. > > Jim Dettman > (315) 699-3443 > jimdettman at earthlink.net > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mike & Doris > Manning > Sent: Wednesday, April 07, 2004 4:31 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Permissions Refresher > > > You don't need Full Control if you are linking to an MDB in another > location. Your rights to the tables in that MDB are > controlled by your OS > rights to the folder it is in. No LDB gets opened at all for > the MDB you > are linked to in this case. > > 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 > ranthony at wrsystems.com > Sent: Wednesday, April 07, 2004 4:13 PM > To: accessd at databaseadvisors.com > Subject: RE: [AccessD] Permissions Refresher > > > I think this is correct. I was going to agree with Jim on > full control is > needed so the user can write to the .ldb, but your testing > seems to bear > this out. Our system is setup so that users have full control on the > folders and I use Access security within that. > > -----Original Message----- > From: Mitsules, Mark S. (Newport News) [mailto:Mark.Mitsules at ngc.com] > Sent: Wednesday, April 07, 2004 4:05 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Permissions Refresher > > Really? Because in this afternoon's testing I set up a test > case where the > user was given only Read & Execute, List Folder Contents, and > Read to the > folder containing the remote db. That user was able to > execute a select > query in datasheet view, but was not able to modify any of > the entries. > That's as far as I was able to take the testing thus far. > > > > Mark > > > -----Original Message----- > From: Jim Dettman [mailto:jimdettman at earthlink.net] > Sent: Wednesday, April 07, 2004 3:56 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Permissions Refresher > > > Mark, > > You can't do what you want through OS level security. You > need to use > Access level security. All users, regardless of what they do > once inside > the container need full rights where the directory resides > and read/modify > on the MDB file itself. > > Jim Dettman > (315) 699-3443 > jimdettman at earthlink.net > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > Mitsules, Mark S. > (Newport News) > Sent: Wednesday, April 07, 2004 1:36 PM > To: '[AccessD]' > Subject: [AccessD] Permissions Refresher > > > Group, > > I have a database that is currently restricted (by folder > permissions) to > only a few individual persons. I am now in the process of creating a > database for general use that needs to link to a table in > that restricted > database. Out of the following permissions, what is the > minimum necessary > to allow a user to execute select queries, but not allow any > modifications > to the data? > > Permissions: Allow/Deny? > Full Control > Modify > Read & Execute > List Folder Contents > Read > Write > > > TIA, > > 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 jwcolby at colbyconsulting.com Wed Apr 7 19:27:49 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 7 Apr 2004 20:27:49 -0400 Subject: [AccessD] How do I In-Reply-To: <426071E0B0A6D311B3C0006008B0AB23AFE4CF@TAPPEEXCH01> Message-ID: That's the one. Thanks. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Brett Barabash Sent: Wednesday, April 07, 2004 4:08 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] How do I TimeValue() -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Wednesday, April 07, 2004 12:03 AM To: AccessD Subject: [AccessD] How do I Having a bit of a problem tonight. Given #5/11/2000 3:20:00 PM# How do I get rid of the date portion and return just the time? I tried subtracting the clng(ThatDate) from the whole... sometimes worked but sometimes gave me bad time (but never any date portion) I tried dateadd("d",-clng(ThatDate),ThatDate)... That always gives me the correct time but 12/29/1899 as the date portion if the time is in the PM. I have a bunch of times that include the date and I need to strip the date off the time. John W. Colby www.ColbyConsulting.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 jwcolby at colbyconsulting.com Wed Apr 7 20:04:35 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 7 Apr 2004 21:04:35 -0400 Subject: [AccessD] Emails Problems In-Reply-To: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D55C@cntexchange.pgdp.usec.com> Message-ID: Yes, got one "From" MartyConnely. The attachment is not a virus and has databaseadvisor stuff in it. ******* The following was in the attachment ******* -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ******* John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Hollis,Virginia Sent: Wednesday, April 07, 2004 10:16 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Emails Problems Has anyone been receiving strange emails with attachments? I have been getting emails for the past 2 days with txt attachments. I just received one that said it was from AccessD. Virginia -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Apr 7 20:07:43 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 7 Apr 2004 21:07:43 -0400 Subject: [AccessD] How do I In-Reply-To: Message-ID: Jim, This is older data from my billing program. I'm trying to set up a collision checker so that as I enter times the times are checked for collisions with existing billing records, so I really have to get rid of the time. TimeValue() did the trick. Just updated those records > 1 and I'm off and running. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Dettman Sent: Wednesday, April 07, 2004 9:07 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] How do I John, One thing you can do is continue to use the date/time field, but just ignore the date (set them all to 0) and use Format$() for displaying the time only. Jim Dettman (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Wednesday, April 07, 2004 1:03 AM To: AccessD Subject: [AccessD] How do I Having a bit of a problem tonight. Given #5/11/2000 3:20:00 PM# How do I get rid of the date portion and return just the time? I tried subtracting the clng(ThatDate) from the whole... sometimes worked but sometimes gave me bad time (but never any date portion) I tried dateadd("d",-clng(ThatDate),ThatDate)... That always gives me the correct time but 12/29/1899 as the date portion if the time is in the PM. I have a bunch of times that include the date and I need to strip the date off the time. John W. Colby www.ColbyConsulting.com From d.dick at uws.edu.au Wed Apr 7 20:41:22 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Thu, 8 Apr 2004 11:41:22 +1000 Subject: [AccessD] A2K:Create Fields via code Message-ID: <00ad01c41d0a$98db8be0$48619a89@DDICK> Hello all I managed to find in the help code for creating fields in tables. Excellent I can see examples and general info on creating just about every field known to mankind....except Autonumber. I am importing a DBF file with no Autonumber The field I was going to use a PK in that file is TEXT. So..I'm open to suggestions- convert the text field to a number field or try and add an Auutonumber field and use that Any suggestions welcome many thanks Darren From ssharkins at bellsouth.net Wed Apr 7 21:07:52 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Wed, 7 Apr 2004 22:07:52 -0400 Subject: [AccessD] A2K:Create Fields via code In-Reply-To: <00ad01c41d0a$98db8be0$48619a89@DDICK> Message-ID: <20040408020812.VRQK1797.imf22aec.mail.bellsouth.net@SUSANONE> I can't help with the decision, but if you're having trouble creating an AutoNumber field, perhaps you're using the wrong keyword -- did you try counter or autoincrement? Susan H. Hello all I managed to find in the help code for creating fields in tables. Excellent I can see examples and general info on creating just about every field known to mankind....except Autonumber. I am importing a DBF file with no Autonumber The field I was going to use a PK in that file is TEXT. So..I'm open to suggestions- convert the text field to a number field or try and add an Auutonumber field and use that Any suggestions welcome many thanks Darren -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Apr 7 21:12:12 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 7 Apr 2004 22:12:12 -0400 Subject: [AccessD] Appointment collisions Message-ID: For anyone who has never seen the code, Lembit donated the following code which I documented and placed into a function which checks for appointment collisions. I just finished building a set of two queries and a report to display any collisions between times entered into my billing programs. I work on site a lot and if I don't have my laptop I keep an email open which I then email home to myself with my hours and a brief summary of what I am doing. In any case I end up copying that into my billing program every few days. I have always "manually" checked my hours to make sure I didn't enter times in wrong, but a simple report to tell me if I am entering overlapping times is a must. There is nothing more embarrassing that billing the customer twice for the same time! The following is the function. Option Compare Database Option Explicit '.========================================================================= '.Copyright 2001 Colby Consulting. All rights reserved. '.Phone : '.E-mail : jcolby at colbyconsulting.com '.========================================================================= ' DO NOT DELETE THE COMMENTS ABOVE. All other comments in this module ' may be deleted from production code, but lines above must remain. '-------------------------------------------------------------------------- '.Written By : John W. Colby '.Date Created : 12/31/2001 ' Rev. History : '.Description : ' ' Comments : '.------------------------------------------------------------------------- '. ' ADDITIONAL NOTES: ' 'FUNCTIONS SPECIFIC TO THIS APPLICATION ' '. '*+ Compiler directives #Const DebugPrint = True 'TURNS ON/OFF ALL NORMAL DEBUG PRINTING THROUGHOUT THE PROJECT #Const DebugPrintEvent = True 'TURNS ON/OFF ALL EVENT DEBUG PRINTING THROUGHOUT THE PROJECT '*- Compiler directives '*+ Module constant declaration Private Const mcstrModuleName As String = "basApp" 'THE NAME OF THIS MODULE '*- Module constant declaration '*+ Module Variable declaration '*- Module Variable declaration Public Function TCComputeTime(ST, ET, SD, ED, Billable, Optional blnComputeBillable As Boolean = True) As Double On Error GoTo Err_TCComputeTime Dim Time As Double If blnComputeBillable Then If Billable = True Then Time = DateDiff("n", ST, ET) / 60 If DateDiff("d", SD, ED) = 1 Then Time = Time + 24 End If ' Time = Format(Time, "00.00") Time = Format(Time, "00.0000") TCComputeTime = Time Else TCComputeTime = 0 End If Else Time = DateDiff("n", ST, ET) / 60 If DateDiff("d", SD, ED) = 1 Then Time = Time + 24 End If ' Time = Format(Time, "00.00") Time = Format(Time, "00.0000") TCComputeTime = Time End If Exit_TCComputeTime: Exit Function Err_TCComputeTime: Select Case Err Case 0 '.insert Errors you wish to ignore here Resume Next Case Else '.All other errors will trap Beep MsgBox Err.Description, , "Error in Function basApp.TCComputeTime" Resume Exit_TCComputeTime End Select Resume 0 '.FOR TROUBLESHOOTING End Function 'Comments : 'Parameters: 'Sets : 'Returns : CURRENT TIME ROUNDED UP OR DOWN TO 10 MINUTE INTERVALS 'Created by: Colby Consulting 'Created : 9/29/98 11:00:35 AM Function ccRoundTimeOld(Optional intRoundInterval As Integer = 10) On Error GoTo Err_ccRoundTime Dim dtmTime As Date 'HOLDS THE CURRENT TIME FOR MANIPULATION Dim intMin As Integer 'MINUTE PORTION OF THE TIME VALUE Dim intTarget As Integer 'TARGET MINUTES TO ROUND TO Dim intBillRound As Integer '1/2 THE INTERVAL Dim intRoundAmt As Integer 'THE AMOUNT TO ROUND UP OR DOWN intBillRound = intRoundInterval / 2 dtmTime = Time() intMin = DatePart("n", dtmTime) 'ADD THE BILL INTERVAL TO ZERO UNTIL IT IS JUST UNDER THE MINUTES Do While intTarget + intRoundInterval <= intMin intTarget = intTarget + intRoundInterval Loop 'FIGURE OUT IF WE'RE OVER OR UNDER THE HALF WAY POINT OF THE BILL INTERVAL 'AND ADD OR SUBTRACT THE CORRECT AMOUNT AS NEEDED If intMin - intTarget >= intBillRound Then intTarget = intTarget + intRoundInterval intRoundAmt = intTarget - intMin dtmTime = DateAdd("n", intRoundAmt, dtmTime) Else intRoundAmt = intTarget - intMin dtmTime = DateAdd("n", intRoundAmt, dtmTime) End If 'ROUND OFF THE SECONDS TO ZERO dtmTime = DatePart("h", dtmTime) & ":" & DatePart("n", dtmTime) & ":00" 'PASS BACK THE VALUE ccRoundTimeOld = dtmTime Exit_ccRoundTime: Exit Function Err_ccRoundTime: Select Case Err Case 0 'insert Errors you wish to ignore here Resume Next Case Else 'All other errors will trap Beep MsgBox Err.Description, , "Error in function Module1.ccRoundTime" Resume Exit_ccRoundTime End Select Resume 0 'FOR TROUBLESHOOTING End Function Function ccRoundTime(ByVal varTime As Variant, Optional ByVal intRound As Integer = 10) As Variant ' ccRoundTime returns varTime rounded to hours and minutes by intRound. ' intRound is the rounding value in minutes. ' ' Examples: ' ccRoundTime(#15:52:30#,15) returns 15:45:00. ' ccRoundTime(varTime,120) returns varTime rounded to even hours. ' ccRoundTime(varTime,6) returns varTime rounded to tens of an hour. ' ' (c) 1997, Cactus Data ApS, Copenhagen. ' May be freely used or modified. On Error GoTo Err_ccRoundTime ' Limit intRound to minut count for one day. intRound = intRound Mod (24 * 60) If IsDate(varTime) And (intRound > 0) Then ' Round seconds to minutes. varTime = TimeSerial(Hour(varTime), Minute(varTime), CInt(Second(varTime) / 60) * 60) ' Return varTime rounded by intRound using hours calculated as minutes. ccRoundTime = TimeSerial(0, CInt((Hour(varTime) * 60 + Minute(varTime)) / intRound) * intRound, 0) Else ' Return varTime as is. ccRoundTime = varTime End If Exit_ccRoundTime: Exit Function Err_ccRoundTime: ccRoundTime = 0 Resume Exit_ccRoundTime End Function Function C2DbPopulateInvLI(frm As Form, strSQL As String) On Error GoTo Err_C2DbPopulateInvLI MsgBox "strsql" Exit_C2DbPopulateInvLI: Exit Function Err_C2DbPopulateInvLI: Select Case Err Case 0 '.insert Errors you wish to ignore here Resume Next Case Else '.All other errors will trap Beep MsgBox Err.Description, , "Error in Function basApp.C2DbPopulateInvLI" Resume Exit_C2DbPopulateInvLI End Select Resume 0 '.FOR TROUBLESHOOTING End Function 'Comments : THANKS TO LEMBIT SOOBIK 'there is a 'simple' equation which defines a conflict in appointments: 'let's name the starting point of an existing appointment Se, endpoint Ee 'and for the new appointment to be tested the starting point St, endpoint Et 'now you can simply check ' 'If St < Ee AND Et > Se ' 'then you have a conflict. 'you can easily visualize that by following drawing ' '_________Se______Ee______ '1_St__Et '2_St_________Et '3_St__________________Et '4___________St_Et '5___________St________Et '6_____________________St__Et ' 'As you can see, only cases 2, 3, 4, 5 have a conflict. case 1 does not have a conflict because it ends before the existing one starts (Et < Se) and 6 does not have a conflict since it starts after the existing ends (St > Ee. ' 'Parameters: 'Sets : 'Returns : 'Created by: Colby Consulting 'Created : 6/25/99 11:43:56 AM Function ccApptCollision(IDNew As Long, dtmSTNew As Date, dtmETNew As Date, _ IDExist As Long, dtmSTExist As Date, dtmETExist As Date) As Boolean On Error GoTo Err_ccApptCollision #If boolELE Then Call gProcStack.EnterProc("ccApptCollision", "Module1") #End If 'CHECK IF WE ARE COMPARING A RECORD TO ITSELF If IDNew = IDExist Then ccApptCollision = False Exit Function End If 'CHECK FOR COLLISIONS If (dtmSTNew < dtmETExist) And (dtmETNew > dtmSTExist) Then ccApptCollision = True Else ccApptCollision = False End If Exit_ccApptCollision: #If boolELE Then Call gProcStack.ExitProc("ccApptCollision") #End If Exit Function Err_ccApptCollision: #If boolELE Then WriteErrorLog Err #End If Select Case Err Case 0 'insert Errors you wish to ignore here Resume Next Case Else 'All other errors will trap Beep MsgBox Err.Description, , "Error in function Module1.ccApptCollision" Resume Exit_ccApptCollision End Select Resume 0 'FOR TROUBLESHOOTING End Function ********** In my billing I keep the time and date separate. I then build a query where I drop the time table in twice, join on the date, then add the time and date fields into a single value and pass them into the parameters of the function above as well as the time record IDs from the two records. Out pops a true / false value that tells me if I have a collision. You can actually do the same without any join but the result set can get huge in a hurry so you will need to limit the date ranges. Again, thanks to Lembit for the logic. John W. Colby www.ColbyConsulting.com From jwcolby at colbyconsulting.com Wed Apr 7 21:23:29 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 7 Apr 2004 22:23:29 -0400 Subject: [AccessD] Appointment collisions In-Reply-To: Message-ID: Lets try that again. I got a couple of other functions in the first email For anyone who has never seen the code, Lembit donated the following code which I documented and placed into a function which checks for appointment collisions. I just finished building a set of two queries and a report to display any collisions between times entered into my billing programs. I work on site a lot and if I don't have my laptop I keep an email open which I then email home to myself with my hours and a brief summary of what I am doing. In any case I end up copying that into my billing program every few days. I have always "manually" checked my hours to make sure I didn't enter times in wrong, but a simple report to tell me if I am entering overlapping times is a must. There is nothing more embarrassing that billing the customer twice for the same time! The following is the function. 'Comments : THANKS TO LEMBIT SOOBIK 'there is a 'simple' equation which defines a conflict in appointments: 'let's name the starting point of an existing appointment Se, endpoint Ee 'and for the new appointment to be tested the starting point St, endpoint Et 'now you can simply check ' 'If St < Ee AND Et > Se ' 'then you have a conflict. 'you can easily visualize that by following drawing ' '_________Se______Ee______ '1_St__Et '2_St_________Et '3_St__________________Et '4___________St_Et '5___________St________Et '6_____________________St__Et ' 'As you can see, only cases 2, 3, 4, 5 have a conflict. case 1 does not have a conflict because it ends before the existing one starts (Et < Se) and 6 does not have a conflict since it starts after the existing ends (St > Ee. ' 'Parameters: 'Sets : 'Returns : 'Created by: Colby Consulting 'Created : 6/25/99 11:43:56 AM Function ccApptCollision(IDNew As Long, dtmSTNew As Date, dtmETNew As Date, _ IDExist As Long, dtmSTExist As Date, dtmETExist As Date) As Boolean On Error GoTo Err_ccApptCollision #If boolELE Then Call gProcStack.EnterProc("ccApptCollision", "Module1") #End If 'CHECK IF WE ARE COMPARING A RECORD TO ITSELF If IDNew = IDExist Then ccApptCollision = False Exit Function End If 'CHECK FOR COLLISIONS If (dtmSTNew < dtmETExist) And (dtmETNew > dtmSTExist) Then ccApptCollision = True Else ccApptCollision = False End If Exit_ccApptCollision: #If boolELE Then Call gProcStack.ExitProc("ccApptCollision") #End If Exit Function Err_ccApptCollision: #If boolELE Then WriteErrorLog Err #End If Select Case Err Case 0 'insert Errors you wish to ignore here Resume Next Case Else 'All other errors will trap Beep MsgBox Err.Description, , "Error in function Module1.ccApptCollision" Resume Exit_ccApptCollision End Select Resume 0 'FOR TROUBLESHOOTING End Function ********** In my billing I keep the time and date separate. I then build a query where I drop the time table in twice, join on the date, then add the time and date fields into a single value and pass them into the parameters of the function above as well as the time record IDs from the two records. Out pops a true / false value that tells me if I have a collision. You can actually do the same without any join but the result set can get huge in a hurry so you will need to limit the date ranges. Again, thanks to Lembit for the logic. John W. Colby www.ColbyConsulting.com From DaveSharpe2 at cox.net Wed Apr 7 21:47:40 2004 From: DaveSharpe2 at cox.net (Dave Sharpe) Date: Wed, 7 Apr 2004 22:47:40 -0400 Subject: [AccessD] A2K:Create Fields via code References: <00ad01c41d0a$98db8be0$48619a89@DDICK> Message-ID: <002001c41d13$dc7a4040$dd2f0a44@bcsrkeext6137> Darren I think that this should help http://www.mvps.org/access/tables/tbl0016.htm Dave ----- Original Message ----- From: "Darren DICK" To: "AccessD List" Sent: Wednesday, April 07, 2004 9:41 PM Subject: [AccessD] A2K:Create Fields via code > Hello all > I managed to find in the help code for creating fields in tables. Excellent > I can see examples and general info on creating just about every field known to mankind....except Autonumber. > > I am importing a DBF file with no Autonumber > > The field I was going to use a PK in that file is TEXT. > > So..I'm open to suggestions- convert the text field to a number field or try and add an Auutonumber field and use that > > Any suggestions welcome > > many thanks > > Darren > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From accessd at shaw.ca Wed Apr 7 21:57:21 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Wed, 07 Apr 2004 19:57:21 -0700 Subject: [AccessD] Linking speeds In-Reply-To: <2F8793082E00D4119A1700B0D0216BF802227A9C@main2.marlow.com> Message-ID: Hi All: I seldom use 'bound' forms in Access...SQL and Oracles work better 'unbound' but this is not the question or a provocation. I am having a 'bound' problem with a slow connection/linking from the FE to the BE. The users do not seem concerned but the initial connection times seem unreasonable long. Some messages have been posted to this issue on the list but I missed them. Would anyone know how to speed up linking time? (Access2002) TIA Jim From d.dick at uws.edu.au Wed Apr 7 22:14:29 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Thu, 8 Apr 2004 13:14:29 +1000 Subject: [AccessD] A2K:Create Fields via code - Solved References: <00ad01c41d0a$98db8be0$48619a89@DDICK> <002001c41d13$dc7a4040$dd2f0a44@bcsrkeext6137> Message-ID: <010501c41d17$9b574e60$48619a89@DDICK> Hi Dave That was it It seems you can't create an autonumber from code You first create a number field then change the attributes of that newly created field to (drum roll) ***dbAutoIncrField*** Then that tells access it's an Autonumber No wonder the help wasn't I wouldn't have discovered/figured this by myself in a million years. Many many thanks and many thanks to those who responded (I was just going through variations on Susan's suggestion when your post came in) This list is brilliant Darren ----- Original Message ----- From: "Dave Sharpe" To: "Access Developers discussion and problem solving" Sent: Thursday, April 08, 2004 12:47 PM Subject: Re: [AccessD] A2K:Create Fields via code > Darren > > I think that this should help > > http://www.mvps.org/access/tables/tbl0016.htm > > Dave > > ----- Original Message ----- > From: "Darren DICK" > To: "AccessD List" > Sent: Wednesday, April 07, 2004 9:41 PM > Subject: [AccessD] A2K:Create Fields via code > > > > Hello all > > I managed to find in the help code for creating fields in tables. > Excellent > > I can see examples and general info on creating just about every field > known to mankind....except Autonumber. > > > > I am importing a DBF file with no Autonumber > > > > The field I was going to use a PK in that file is TEXT. > > > > So..I'm open to suggestions- convert the text field to a number field or > try and add an Auutonumber field and use that > > > > Any suggestions welcome > > > > 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 accessd at shaw.ca Thu Apr 8 01:23:24 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Wed, 07 Apr 2004 23:23:24 -0700 Subject: [AccessD] MS product deployment through an IIS server In-Reply-To: <010501c41d17$9b574e60$48619a89@DDICK> Message-ID: Hi All: Does anyone know the method or where to get information on deploying an application through an IIS server (version 5plus) via your web browser. My understanding is that all MS products can be ran in this way. I have been looking at one application, Outlook, that is ran through an IIS server, from work and can pick up and respond to the mail messages as if I was there...eliminates the need for hotmail and the like. If this is so, and the applications do not require a complete re-write, it opens up an interesting set of possibilities. TIA Jim From wdhindman at bellsouth.net Thu Apr 8 07:38:15 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Thu, 8 Apr 2004 08:38:15 -0400 Subject: [AccessD] Linking speeds References: Message-ID: <001901c41d66$5cb80510$6101a8c0@dejpolsys> Jim ...did you check the dba archives? ...this has several possible causes and solutions that have been covered extensively :) Political advertising is the price of our chains ...my name is William Hindman and I approve this message :) ----- Original Message ----- From: "Jim Lawrence (AccessD)" To: "Access Developers discussion and problem solving" Sent: Wednesday, April 07, 2004 10:57 PM Subject: [AccessD] Linking speeds > Hi All: > > I seldom use 'bound' forms in Access...SQL and Oracles work better 'unbound' > but this is not the question or a provocation. > > I am having a 'bound' problem with a slow connection/linking from the FE to > the BE. The users do not seem concerned but the initial connection times > seem unreasonable long. Some messages have been posted to this issue on the > list but I missed them. > > Would anyone know how to speed up linking time? (Access2002) > > TIA > Jim > > -- > _______________________________________________ > 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 Apr 8 09:30:18 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 8 Apr 2004 14:30:18 +0000 Subject: [AccessD] Linking speeds Message-ID: <20040408133015.EBA232762E6@smtp.nildram.co.uk> The main one being to open a connection to the back-end and keep it open for the duration of the relink, e.g. Set dbData = DBEngine.Workspaces(0).OpenDatabase(strDataMdb) As I can vouch, this speeds it up enormously. -- 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] Linking speeds Date: 08/04/04 12:42 > > Jim ...did you check the dba archives? ...this has several possible causes > and solutions that have been covered extensively :) > > Political advertising is the price of our chains ...my name is William > Hindman and I approve this message :) > > ----- Original Message ----- > From: "Jim Lawrence (AccessD)" <accessd at shaw.ca> > To: "Access Developers discussion and problem solving" > <accessd at databaseadvisors.com> > Sent: Wednesday, April 07, 2004 10:57 PM > Subject: [AccessD] Linking speeds > > > > Hi All: > > > > I seldom use 'bound' forms in Access...SQL and Oracles work better > 'unbound' > > but this is not the question or a provocation. > > > > I am having a 'bound' problem with a slow connection/linking from the FE > to > > the BE. The users do not seem concerned but the initial connection times > > seem unreasonable long. Some messages have been posted to this issue on > the > > list but I missed them. > > > > Would anyone know how to speed up linking time? (Access2002) > > > > TIA > > Jim > > > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/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 ssharkins at bellsouth.net Thu Apr 8 08:35:45 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Thu, 8 Apr 2004 09:35:45 -0400 Subject: [AccessD] A2K:Create Fields via code - Solved In-Reply-To: <010501c41d17$9b574e60$48619a89@DDICK> Message-ID: <20040408133605.DTMV27618.imf22aec.mail.bellsouth.net@SUSANONE> Actually, you can using SQL. So, if you don't have to use ADO/DAO, just use SQL. On the other hand, I think you may be able to do it with ADOX? Not positive on that one -- I know you can manipulate the field using ADOX, but don't remember for sure about creating it. Susan H. Hi Dave That was it It seems you can't create an autonumber from code You first create a number field then change the attributes of that newly created field to (drum roll) ***dbAutoIncrField*** Then that tells access it's an Autonumber No wonder the help wasn't I wouldn't have discovered/figured this by myself in a million years. Many many thanks and many thanks to those who responded (I was just going through variations on Susan's suggestion when your post came in) This list is brilliant Darren From Mike.W.Gowey at doc.state.or.us Thu Apr 8 08:46:10 2004 From: Mike.W.Gowey at doc.state.or.us (Gowey Mike W) Date: Thu, 8 Apr 2004 07:46:10 -0600 Subject: [AccessD] Removing Exit ability Message-ID: <05EBB8A3BEB95B4F8216BE4EF486077802AA3EB5@srciml1.ds.doc.state.or.us> Hi Everyone, Could anyone please tell me how I can remove the ability for the user to click on the X to close Access, I want them to only be able to use the buttons I have created on the forms to exit the program. Thanks for any help. Mike Gowey, MCSA, A+, ACE Team Leader - SRCI Information Systems & Services Division From d.dick at uws.edu.au Thu Apr 8 08:52:18 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Thu, 8 Apr 2004 23:52:18 +1000 Subject: [AccessD] A2K:Create Fields via code - Solved References: <20040408133605.DTMV27618.imf22aec.mail.bellsouth.net@SUSANONE> Message-ID: <008201c41d70$b6469c40$21669a89@DDICK> Thanks Susan I struggle - and I mean struggle - with VBA I have seen code examples in the 2000 Developer for ADOX. It looks quite relative to VB and VBA but I think I will give it a miss. :-)) (Thanks but no thanks - luddite here) Have a great day and a safe Easter Thanks again for your help Darren ----- Original Message ----- From: "Susan Harkins" To: "'Access Developers discussion and problem solving'" Sent: Thursday, April 08, 2004 11:35 PM Subject: RE: [AccessD] A2K:Create Fields via code - Solved > Actually, you can using SQL. So, if you don't have to use ADO/DAO, just use > SQL. On the other hand, I think you may be able to do it with ADOX? Not > positive on that one -- I know you can manipulate the field using ADOX, but > don't remember for sure about creating it. > > Susan H. > > Hi Dave > That was it > It seems you can't create an autonumber from code You first create a number > field then change the attributes of that newly created field to (drum roll) > ***dbAutoIncrField*** Then that tells access it's an Autonumber > > No wonder the help wasn't > I wouldn't have discovered/figured this by myself in a million years. > Many many thanks > > and many thanks to those who responded > > (I was just going through variations on Susan's suggestion when your post > came in) > > This list is brilliant > > Darren > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Thu Apr 8 08:54:30 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Thu, 8 Apr 2004 09:54:30 -0400 Subject: [AccessD] A2K:Create Fields via code - Solved In-Reply-To: <008201c41d70$b6469c40$21669a89@DDICK> Message-ID: <20040408135450.EGRN27618.imf22aec.mail.bellsouth.net@SUSANONE> Chicken. ;) ... And thank you -- will be stuffing eggs before the day is through -- and have a great weekend yourself! :) I haven't had a peep yet -- not one. FWIW, if you don't get this resolved I'd be glad to hand over the exact code -- I have it somewhere, just a matter of finding it. :) Susan H. Thanks Susan I struggle - and I mean struggle - with VBA I have seen code examples in the 2000 Developer for ADOX. It looks quite relative to VB and VBA but I think I will give it a miss. :-)) (Thanks but no thanks - luddite here) Have a great day and a safe Easter Thanks again for your help Darren From d.dick at uws.edu.au Thu Apr 8 09:01:42 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 9 Apr 2004 00:01:42 +1000 Subject: [AccessD] Removing Exit ability References: <05EBB8A3BEB95B4F8216BE4EF486077802AA3EB5@srciml1.ds.doc.state.or.us> Message-ID: <009401c41d72$061b34a0$21669a89@DDICK> Hi Mike In the property sheet of you form Have a look on the FORMAT tab (The first one) About half way down Under Max and Min options is the option to Set the Close button Yes = There is on No = There aint one (well there is but it's disabled) oops Just re-read your post You wanna apply this to Access not a form When the dB starts have a form open with its visible property set to false docmd.OpenForm "frmYourFormNameHere",acNormal ,,,,acHidden Then on the Unload event of that hidden form have something like this Private Sub Form_Unload(Cancel As Integer) On Error GoTo Err_Form_Unload If MsgBox("Are you sure you want to CLOSE 'the name of your application here' completely?", vbQuestion + vbYesNo, "Close 'Name of Your Application Name here?") = vbYes Then DoCmd.Quit acQuitSaveAll Else Cancel = true End If Exit_Form_Unload: Exit Sub Err_Form_Unload: MsgBox Err.Number & " " & Err.Description, vbCritical, "Error in Form_Unload module" Resume Exit_Form_Unload End sub Hope this helps Darren ----- Original Message ----- From: "Gowey Mike W" To: "Access Developers discussion and problem solving" Sent: Thursday, April 08, 2004 11:46 PM Subject: [AccessD] Removing Exit ability > > Hi Everyone, > > Could anyone please tell me how I can remove the ability for the user to > click on the X to close Access, I want them to only be able to use the > buttons I have created on the forms to exit the program. > > Thanks for any help. > > > Mike Gowey, MCSA, A+, ACE > Team Leader - SRCI > Information Systems & Services Division > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Apr 8 09:08:13 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 8 Apr 2004 10:08:13 -0400 Subject: [AccessD] Removing Exit ability In-Reply-To: <05EBB8A3BEB95B4F8216BE4EF486077802AA3EB5@srciml1.ds.doc.state.or.us> Message-ID: Access cannot close if it cannot close all forms. 1) In the form with your button, create a boolean variable in the code header. 2) In the form Open set the boolean false - in fact it will already be false but still... that's the theory. 3) In the form's Unload check if the bln is true and if not set cancel = true. This prevents the form closing thus prevents Access closing. 4) In the command button to close the form, set the boolean true (allow the close) then run the code that closes Access. dim blnAllowClose as boolean Private Sub Form_Open(Cancel As Integer) blnAllowClose =false End Sub Private Sub Form_Unload(Cancel As Integer) if blnAllowClose = false then cancel = true end if End Sub Private Sub cmdClose_Click() On Error GoTo Err_cmdClose_Click blnAllowClose = true Application.Quit acQuitSaveNone Exit_cmdClose_Click: Exit Sub Err_cmdClose_Click: MsgBox Err.Description Resume Exit_cmdClose_Click End Sub John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gowey Mike W Sent: Thursday, April 08, 2004 9:46 AM To: Access Developers discussion and problem solving Subject: [AccessD] Removing Exit ability Hi Everyone, Could anyone please tell me how I can remove the ability for the user to click on the X to close Access, I want them to only be able to use the buttons I have created on the forms to exit the program. Thanks for any help. Mike Gowey, MCSA, A+, ACE Team Leader - SRCI Information Systems & Services Division -- _______________________________________________ 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 Apr 8 09:16:42 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 9 Apr 2004 00:16:42 +1000 Subject: [AccessD] A2K:Create Fields via code - Solved References: <20040408135450.EGRN27618.imf22aec.mail.bellsouth.net@SUSANONE> Message-ID: <00a501c41d74$1eed3350$21669a89@DDICK> Chicken - yes I have people here wanting me to Learn ASP and PHP pronto, but I don't wanna (says he, stamping his foot) Thanks again I did get it solved using the create Number method then changing the attributes of the number data type to something very similar to what you described in one of your original posts BTW - you gonna share the splenda choc chip recipe with the list? :-)) Darren ----- Original Message ----- From: "Susan Harkins" To: "'Access Developers discussion and problem solving'" Sent: Thursday, April 08, 2004 11:54 PM Subject: RE: [AccessD] A2K:Create Fields via code - Solved > Chicken. ;) ... And thank you -- will be stuffing eggs before the day is > through -- and have a great weekend yourself! :) > > I haven't had a peep yet -- not one. > > FWIW, if you don't get this resolved I'd be glad to hand over the exact code > -- I have it somewhere, just a matter of finding it. :) > > Susan H. > > Thanks Susan > I struggle - and I mean struggle - with VBA I have seen code examples in the > 2000 Developer for ADOX. It looks quite relative to VB and VBA but I think I > will give it a miss. > :-)) > (Thanks but no thanks - luddite here) > > Have a great day and a safe Easter > > Thanks again for your help > > Darren > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Thu Apr 8 09:18:58 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Thu, 8 Apr 2004 10:18:58 -0400 Subject: [AccessD] A2K:Create Fields via code - Solved In-Reply-To: <00a501c41d74$1eed3350$21669a89@DDICK> Message-ID: <20040408141918.EHLH17967.imf25aec.mail.bellsouth.net@SUSANONE> BTW - you gonna share the splenda choc chip recipe with the list? :-)) Arrggg -- I'd get blasted by the moderators. I'll post it at the web site. :) Susan H. From jwcolby at colbyconsulting.com Thu Apr 8 09:33:51 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 8 Apr 2004 10:33:51 -0400 Subject: [AccessD] Tivo Series1 upgrades Message-ID: In case anyone is interested, I do hard drive upgrades to TIVOs. Anyone interested in getting their TIVO upgraded contact me off line @ jwcolby at colbyconsulting.com. John W. Colby www.ColbyConsulting.com From jwcolby at colbyconsulting.com Thu Apr 8 09:33:51 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 8 Apr 2004 10:33:51 -0400 Subject: [AccessD] A2K:Create Fields via code - Solved In-Reply-To: <20040408141918.EHLH17967.imf25aec.mail.bellsouth.net@SUSANONE> Message-ID: Hey, splenda chocolate chip recipes are definitely on topic for a group of Access developers! ;-) John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Susan Harkins Sent: Thursday, April 08, 2004 10:19 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2K:Create Fields via code - Solved BTW - you gonna share the splenda choc chip recipe with the list? :-)) Arrggg -- I'd get blasted by the moderators. I'll post it at the web site. :) Susan H. -- _______________________________________________ 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 Apr 8 09:45:44 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 9 Apr 2004 00:45:44 +1000 Subject: [AccessD] A2K:Create Fields via code - Solved References: Message-ID: <00c101c41d78$2ce6f0f0$21669a89@DDICK> Outstanding Coffee and Chocolate - a developers feast ----- Original Message ----- From: "John W. Colby" To: "Access Developers discussion and problem solving" Sent: Friday, April 09, 2004 12:33 AM Subject: RE: [AccessD] A2K:Create Fields via code - Solved > Hey, splenda chocolate chip recipes are definitely on topic for a group of > Access developers! > > ;-) > > John W. Colby > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Susan Harkins > Sent: Thursday, April 08, 2004 10:19 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] A2K:Create Fields via code - Solved > > > > BTW - you gonna share the splenda choc chip recipe with the list? :-)) > > Arrggg -- I'd get blasted by the moderators. I'll post it at the web site. > :) > > 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 andy at minstersystems.co.uk Thu Apr 8 10:41:58 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 8 Apr 2004 15:41:58 +0000 Subject: [AccessD] A2K:Create Fields via code - Solved Message-ID: <20040408144155.4A95D25E248@smtp.nildram.co.uk> Quick, while the moderators' backs are turned. (Well it is nearly Friday, and Good Friday at that.) -- 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] A2K:Create Fields via code - Solved Date: 08/04/04 14:36 > > Hey, splenda chocolate chip recipes are definitely on topic for a group of > Access developers! > > ;-) > > John W. Colby > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Susan Harkins > Sent: Thursday, April 08, 2004 10:19 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] A2K:Create Fields via code - Solved > > > > BTW - you gonna share the splenda choc chip recipe with the list? :-)) > > Arrggg -- I'd get blasted by the moderators. I'll post it at the web site. > :) > > 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 > > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From JRojas at tnco-inc.com Thu Apr 8 09:54:15 2004 From: JRojas at tnco-inc.com (Joe Rojas) Date: Thu, 8 Apr 2004 10:54:15 -0400 Subject: [AccessD] Access DLL Weirdness Message-ID: <806536912C472E4A9D6515DF2E57261E2397AD@mercury.tnco-inc.com> Hi All, I installed Office 2000 Pre about a year ago on my PC. Everything has worked perfectly up until two weeks ago. I started to get errors that indicated a database communication failure. For example: "Method 'Recordset' of object '_Form_frmTNCOComputers' failed" Because this problem only occurred during VBA code execute and not on bound forms that have no code, I assumed it was a reference problem. I checked my references and DAO3.6 was not referenced! Weird! So when I tried to reference it, I received and error message or "Error loading DLL". Upon investigate it appears the reference was looking for dao360.dll in C:\Windows\system32 (I am using WinXP Pro), which is strange because the DAO files are in C:\Program Files\Common Files\Microsoft Shared\DAO. When I check other installations of Access 2000 on other computers the reference points to the correct place. Anyone have any ideas on would cause this? Also, how do I remove the incorrect reference location before I reregister the dll from the proper location? Thanks, Joe Rojas This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. From accessd at shaw.ca Thu Apr 8 09:53:55 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Thu, 08 Apr 2004 07:53:55 -0700 Subject: [AccessD] Linking speeds In-Reply-To: <001901c41d66$5cb80510$6101a8c0@dejpolsys> Message-ID: Hi Williams I did a cursory look but did not find anything specific but I will try again. Thanks Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of William Hindman Sent: Thursday, April 08, 2004 5:38 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Linking speeds Jim ...did you check the dba archives? ...this has several possible causes and solutions that have been covered extensively :) Political advertising is the price of our chains ...my name is William Hindman and I approve this message :) ----- Original Message ----- From: "Jim Lawrence (AccessD)" To: "Access Developers discussion and problem solving" Sent: Wednesday, April 07, 2004 10:57 PM Subject: [AccessD] Linking speeds > Hi All: > > I seldom use 'bound' forms in Access...SQL and Oracles work better 'unbound' > but this is not the question or a provocation. > > I am having a 'bound' problem with a slow connection/linking from the FE to > the BE. The users do not seem concerned but the initial connection times > seem unreasonable long. Some messages have been posted to this issue on the > list but I missed them. > > Would anyone know how to speed up linking time? (Access2002) > > TIA > Jim > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Mike.W.Gowey at doc.state.or.us Thu Apr 8 10:06:50 2004 From: Mike.W.Gowey at doc.state.or.us (Gowey Mike W) Date: Thu, 8 Apr 2004 09:06:50 -0600 Subject: [AccessD] Removing Exit ability Message-ID: <05EBB8A3BEB95B4F8216BE4EF486077802AA3EBA@srciml1.ds.doc.state.or.us> Thank you Colby that works like a charm. Mike Gowey, MCSA, A+, ACE Team Leader - SRCI Information Systems & Services Division -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Thursday, April 08, 2004 8:08 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Removing Exit ability Access cannot close if it cannot close all forms. 1) In the form with your button, create a boolean variable in the code header. 2) In the form Open set the boolean false - in fact it will already be false but still... that's the theory. 3) In the form's Unload check if the bln is true and if not set cancel = true. This prevents the form closing thus prevents Access closing. 4) In the command button to close the form, set the boolean true (allow the close) then run the code that closes Access. dim blnAllowClose as boolean Private Sub Form_Open(Cancel As Integer) blnAllowClose =false End Sub Private Sub Form_Unload(Cancel As Integer) if blnAllowClose = false then cancel = true end if End Sub Private Sub cmdClose_Click() On Error GoTo Err_cmdClose_Click blnAllowClose = true Application.Quit acQuitSaveNone Exit_cmdClose_Click: Exit Sub Err_cmdClose_Click: MsgBox Err.Description Resume Exit_cmdClose_Click End Sub John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gowey Mike W Sent: Thursday, April 08, 2004 9:46 AM To: Access Developers discussion and problem solving Subject: [AccessD] Removing Exit ability Hi Everyone, Could anyone please tell me how I can remove the ability for the user to click on the X to close Access, I want them to only be able to use the buttons I have created on the forms to exit the program. Thanks for any help. Mike Gowey, MCSA, A+, ACE Team Leader - SRCI Information Systems & Services Division -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From caa at highway.com.br Thu Apr 8 10:13:07 2004 From: caa at highway.com.br (caa at highway.com.br) Date: Thu, 8 Apr 2004 11:13:07 -0400 Subject: [AccessD] Re: Your document Message-ID: <200404081513.i38FD3B15984@databaseadvisors.com> Hi! Please read the attached document. +++ X-Attachment-Type: document +++ X-Attachment-Status: no virus found +++ Powered by the new Norton OnlineAntiVirus +++ Free trial: www.norton.com From jwcolby at colbyconsulting.com Thu Apr 8 10:26:43 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 8 Apr 2004 11:26:43 -0400 Subject: [AccessD] Removing Exit ability In-Reply-To: <05EBB8A3BEB95B4F8216BE4EF486077802AA3EBA@srciml1.ds.doc.state.or.us> Message-ID: Always welcome! John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gowey Mike W Sent: Thursday, April 08, 2004 11:07 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Removing Exit ability Thank you Colby that works like a charm. Mike Gowey, MCSA, A+, ACE Team Leader - SRCI Information Systems & Services Division -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Thursday, April 08, 2004 8:08 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Removing Exit ability Access cannot close if it cannot close all forms. 1) In the form with your button, create a boolean variable in the code header. 2) In the form Open set the boolean false - in fact it will already be false but still... that's the theory. 3) In the form's Unload check if the bln is true and if not set cancel = true. This prevents the form closing thus prevents Access closing. 4) In the command button to close the form, set the boolean true (allow the close) then run the code that closes Access. dim blnAllowClose as boolean Private Sub Form_Open(Cancel As Integer) blnAllowClose =false End Sub Private Sub Form_Unload(Cancel As Integer) if blnAllowClose = false then cancel = true end if End Sub Private Sub cmdClose_Click() On Error GoTo Err_cmdClose_Click blnAllowClose = true Application.Quit acQuitSaveNone Exit_cmdClose_Click: Exit Sub Err_cmdClose_Click: MsgBox Err.Description Resume Exit_cmdClose_Click End Sub John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gowey Mike W Sent: Thursday, April 08, 2004 9:46 AM To: Access Developers discussion and problem solving Subject: [AccessD] Removing Exit ability Hi Everyone, Could anyone please tell me how I can remove the ability for the user to click on the X to close Access, I want them to only be able to use the buttons I have created on the forms to exit the program. Thanks for any help. Mike Gowey, MCSA, A+, ACE Team Leader - SRCI Information Systems & Services Division -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Apr 8 10:31:12 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 8 Apr 2004 08:31:12 -0700 Subject: [AccessD] Odd messages in List Message-ID: What is going on with the "Re: Your Document" messages I'm seeing in the list, complete with test attachment and a body of "Hi! Please read the attached document." It's surprising my spam filters aren't screening this, since it certainly looks like junk mail to me. Charlotte Foust From Chris.Foote at uk.thalesgroup.com Thu Apr 8 10:35:39 2004 From: Chris.Foote at uk.thalesgroup.com (Foote, Chris) Date: Thu, 8 Apr 2004 16:35:39 +0100 Subject: [AccessD] Remove non-alphanumeric characters Message-ID: <97CF276BD8C6D4119C4B00508BB18DE709E0C07B@ntscxch1.int.rdel.co.uk> Good afternoon all! I have a requirement to strip a string of all non-alphanumeric characters. In addition I wanted to change all upper-case characters to lower-case. I could not find any ready-rolled solution so I've come up with the code below. Can anyone think of a more simple way of doing this? Regards! Chris Foote (UK) ------------(Code snippet begin)------------- '-------------------------------------------------------------- ' This piece of (almost) original code is based upon M$ ' Knowledge Base Article 99938. It removes all non-alphanumeric ' characters from a string. It also converts upper-case letters ' to their lower-case versions. It works by converting the ' incoming characters into the ASCII equivalent checking ' to verify what they are and then converting them back again. ' Chris Foote 08/04/04 '-------------------------------------------------------------- Dim strClean As String Dim intPos As Integer Dim strMixed As String Dim intMixed As Integer intPos = 1 If IsNull(spAlphaNum) Then Exit Function For intPos = 1 To Len(spAlphaNum) intMixed = Asc(Mid(spAlphaNum, intPos, 1)) Select Case intMixed Case 48 To 57 ' Numeric strClean = strClean + Chr(intMixed) Case 65 To 90 ' Uppercase Alpha strClean = strClean + Chr(intMixed + 32) Case 97 To 122 ' Lowercase Alpha strClean = strClean + Chr(intMixed) Case Else End Select Next intPos fctRemNonAlpha = strClean End Function From djkr at msn.com Thu Apr 8 10:40:40 2004 From: djkr at msn.com (DJK(John) Robinson) Date: Thu, 8 Apr 2004 16:40:40 +0100 Subject: [AccessD] Odd messages in List In-Reply-To: Message-ID: <000201c41d7f$d8945b70$3500a8c0@dabsight> Hi Charlotte I'm not getting any messages like that. They are almost certainly not really from the list at all, but are viruses spoofing the sender address (common these days). Someone on the list, past or present, has the virus/worm. John > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Charlotte Foust > Sent: 08 April 2004 16:31 > To: AccessD at databaseadvisors.com > Subject: [AccessD] Odd messages in List > > > What is going on with the "Re: Your Document" messages I'm > seeing in the list, complete with test attachment and a body of > > "Hi! > Please read the attached document." > > It's surprising my spam filters aren't screening this, since > it certainly looks like junk mail to me. > > Charlotte Foust > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From my.lists at verizon.net Thu Apr 8 10:47:11 2004 From: my.lists at verizon.net (Francisco H Tapia) Date: Thu, 08 Apr 2004 08:47:11 -0700 Subject: [AccessD] Odd messages in List In-Reply-To: <000201c41d7f$d8945b70$3500a8c0@dabsight> References: <000201c41d7f$d8945b70$3500a8c0@dabsight> Message-ID: <407573FF.7050809@verizon.net> I found in my "hotmail" account a returned message that was being reported as having a virus to someone I know I did not send any email to...and it said it was from my hotmail account... most bizar. DJK(John) Robinson said the following on 4/8/2004 8:40 AM: >Hi Charlotte > >I'm not getting any messages like that. They are almost certainly not >really from the list at all, but are viruses spoofing the sender address >(common these days). Someone on the list, past or present, has the >virus/worm. > >John > > > > >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >>Charlotte Foust >>Sent: 08 April 2004 16:31 >>To: AccessD at databaseadvisors.com >>Subject: [AccessD] Odd messages in List >> >> >>What is going on with the "Re: Your Document" messages I'm >>seeing in the list, complete with test attachment and a body of >> >>"Hi! >>Please read the attached document." >> >>It's surprising my spam filters aren't screening this, since >>it certainly looks like junk mail to me. >> >>Charlotte Foust >>-- >>_______________________________________________ >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >> >> -- -Francisco From andy at minstersystems.co.uk Thu Apr 8 11:55:07 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 8 Apr 2004 16:55:07 +0000 Subject: [AccessD] Remove non-alphanumeric characters Message-ID: <20040408155504.57EDE2A0591@smtp.nildram.co.uk> Well personally I'd find it easier to read if you just compared characters, so. Also, as long as your Option Compare doesn't cause case-sensitive comparisoins, you need only test for a-z once. For intPos = 1 To Len(spAlphaNum) strChar = Mid(spAlphaNum, intPos, 1) Select Case strChar Case "0" To "9" ' Numeric strClean = strClean + strChar Case "a" To "z" ' Uppercase Alpha strClean = strClean + Ucase(strChar) Case Else End Select Next intPos -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: 'Access Developers discussion and problem solving' Subject: [AccessD] Remove non-alphanumeric characters Date: 08/04/04 15:39 > > Good afternoon all! > > I have a requirement to strip a string of all non-alphanumeric characters. > In addition I wanted to change all upper-case characters to lower-case. I > could not find any ready-rolled solution so I've come up with the code > below. > > Can anyone think of a more simple way of doing this? > > Regards! > > Chris Foote (UK) > > ------------(Code snippet begin)------------- > > > > '-------------------------------------------------------------- > ' This piece of (almost) original code is based upon M$ > ' Knowledge Base Article 99938. It removes all non-alphanumeric > ' characters from a string. It also converts upper-case letters > ' to their lower-case versions. It works by converting the > ' incoming characters into the ASCII equivalent checking > ' to verify what they are and then converting them back again. > ' Chris Foote 08/04/04 > '-------------------------------------------------------------- > Dim strClean As String > Dim intPos As Integer > Dim strMixed As String > Dim intMixed As Integer > > intPos = 1 > > If IsNull(spAlphaNum) Then Exit Function > > For intPos = 1 To Len(spAlphaNum) > intMixed = Asc(Mid(spAlphaNum, intPos, 1)) > Select Case intMixed > Case 48 To 57 ' Numeric > strClean = strClean + Chr(intMixed) > Case 65 To 90 ' Uppercase Alpha > strClean = strClean + Chr(intMixed + 32) > Case 97 To 122 ' Lowercase Alpha > strClean = strClean + Chr(intMixed) > Case Else > > End Select > Next intPos > > fctRemNonAlpha = strClean > > End Function > -- > _______________________________________________ > 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 caa at highway.com.br Thu Apr 8 11:07:05 2004 From: caa at highway.com.br (Carlos Alberto Alves) Date: Thu, 08 Apr 2004 13:07:05 -0300 Subject: [AccessD] Code help please In-Reply-To: <016401c41b8f$9df9bec0$48619a89@DDICK> References: <000001c41b85$d87c94a0$6501a8c0@delllaptop> <016401c41b8f$9df9bec0$48619a89@DDICK> Message-ID: On Tue, 6 Apr 2004 14:28:31 +1000, Darren DICK wrote: > Hi Joe > Try something like this > Under the > Compare Database and option explicit declarations type > gIntFormIsDirty as integer > Then add > > Private Sub Form_Load() > gIntFormIsDirty = False > end sub > > then add > > Private Sub Form_Dirty(Cancel As Integer) > gIntFormIsDirty = true > End Sub > > then > > Private Sub ps_SomeCodeToRun() > > 'Joe get whatever the PK is and see if there is a value in it > if not isnull(Me.MyPK) then 'There is a value so we are on a live > record > if gIntFormIsDirty = true THEN > Msgbox "we are on a pre-existing record and the record is > dirty" > else > Msgbox "we are on a pre-existing record but the record IS > NOT dirty" > end if > else > msgbox "We are on a 'new rec' or at least one without a PK" > end if > > end sub > > then in the afterupdate(or whatever) of the control to test > > Private sub txtLastName_AfterUpdate() > ps_SomeCodeToRun > end sub > > Hope this helps > > ----- Original Message ----- > From: "Joe Hecht" > To: "AccessD" > Sent: Tuesday, April 06, 2004 1:18 PM > Subject: [AccessD] Code help please > > >> This code is supposed to >> 1. Confirm this is an existing record >> 2. If the form is dirty >> >> Open a message box >> >> I need vb yes. I want to go to the next record. >> >> Can not find the right method >> >> >> Thanks >> >> Joe >> >> >> >> Private Sub Form_Dirty(Cancel As Integer) >> >> if me.newrecord = false and >> If Me.Dirty Then >> Dim lngRetval As Long >> >> lngRetval = MsgBox( _ >> "Data on this form has changed! " & vbCrLf & "" & vbCrLf & "Do >> you wish to continue?", _ >> vbYesNoCancel + vbQuestion + vbSystemModal + vbDefaultButton1, _ >> "Data Has Changed") >> >> Select Case lngRetval >> Case vbYes >> >> Add New RECORD >> >> Case vbNo >> Forms!frmmasterAddresses!txtLastName.SetFocus >> >> >> >> Case vbCancel >> >> >> >> End Select >> >> End If >> >> >> >> >> >> End Sub >> >> >> >> -- >> _______________________________________________ >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com Would it not be 'gIntFormIsDirty as boolean'? ;-) -- ****************************** * Carlos Alberto Alves * * Child Neurologist * * Systems Analyst/Programmer * * Rio de Janeiro, Brazil * * mailto:caa at highway.com.br * ****************************** From jimdettman at earthlink.net Thu Apr 8 11:24:35 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Thu, 8 Apr 2004 12:24:35 -0400 Subject: [AccessD] Appointment collisions In-Reply-To: Message-ID: John and all, For those interested in something like this, you can also do this fairly easily in query. I have a sample database made up to show how it's done. If anyone would like a copy, e-mail me off list. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Wednesday, April 07, 2004 10:12 PM To: AccessD Subject: [AccessD] Appointment collisions For anyone who has never seen the code, Lembit donated the following code which I documented and placed into a function which checks for appointment collisions. I just finished building a set of two queries and a report to display any collisions between times entered into my billing programs. I work on site a lot and if I don't have my laptop I keep an email open which I then email home to myself with my hours and a brief summary of what I am doing. In any case I end up copying that into my billing program every few days. I have always "manually" checked my hours to make sure I didn't enter times in wrong, but a simple report to tell me if I am entering overlapping times is a must. There is nothing more embarrassing that billing the customer twice for the same time! The following is the function. Option Compare Database Option Explicit '.========================================================================= '.Copyright 2001 Colby Consulting. All rights reserved. '.Phone : '.E-mail : jcolby at colbyconsulting.com '.========================================================================= ' DO NOT DELETE THE COMMENTS ABOVE. All other comments in this module ' may be deleted from production code, but lines above must remain. '-------------------------------------------------------------------------- '.Written By : John W. Colby '.Date Created : 12/31/2001 ' Rev. History : '.Description : ' ' Comments : '.------------------------------------------------------------------------- '. ' ADDITIONAL NOTES: ' 'FUNCTIONS SPECIFIC TO THIS APPLICATION ' '. '*+ Compiler directives #Const DebugPrint = True 'TURNS ON/OFF ALL NORMAL DEBUG PRINTING THROUGHOUT THE PROJECT #Const DebugPrintEvent = True 'TURNS ON/OFF ALL EVENT DEBUG PRINTING THROUGHOUT THE PROJECT '*- Compiler directives '*+ Module constant declaration Private Const mcstrModuleName As String = "basApp" 'THE NAME OF THIS MODULE '*- Module constant declaration '*+ Module Variable declaration '*- Module Variable declaration Public Function TCComputeTime(ST, ET, SD, ED, Billable, Optional blnComputeBillable As Boolean = True) As Double On Error GoTo Err_TCComputeTime Dim Time As Double If blnComputeBillable Then If Billable = True Then Time = DateDiff("n", ST, ET) / 60 If DateDiff("d", SD, ED) = 1 Then Time = Time + 24 End If ' Time = Format(Time, "00.00") Time = Format(Time, "00.0000") TCComputeTime = Time Else TCComputeTime = 0 End If Else Time = DateDiff("n", ST, ET) / 60 If DateDiff("d", SD, ED) = 1 Then Time = Time + 24 End If ' Time = Format(Time, "00.00") Time = Format(Time, "00.0000") TCComputeTime = Time End If Exit_TCComputeTime: Exit Function Err_TCComputeTime: Select Case Err Case 0 '.insert Errors you wish to ignore here Resume Next Case Else '.All other errors will trap Beep MsgBox Err.Description, , "Error in Function basApp.TCComputeTime" Resume Exit_TCComputeTime End Select Resume 0 '.FOR TROUBLESHOOTING End Function 'Comments : 'Parameters: 'Sets : 'Returns : CURRENT TIME ROUNDED UP OR DOWN TO 10 MINUTE INTERVALS 'Created by: Colby Consulting 'Created : 9/29/98 11:00:35 AM Function ccRoundTimeOld(Optional intRoundInterval As Integer = 10) On Error GoTo Err_ccRoundTime Dim dtmTime As Date 'HOLDS THE CURRENT TIME FOR MANIPULATION Dim intMin As Integer 'MINUTE PORTION OF THE TIME VALUE Dim intTarget As Integer 'TARGET MINUTES TO ROUND TO Dim intBillRound As Integer '1/2 THE INTERVAL Dim intRoundAmt As Integer 'THE AMOUNT TO ROUND UP OR DOWN intBillRound = intRoundInterval / 2 dtmTime = Time() intMin = DatePart("n", dtmTime) 'ADD THE BILL INTERVAL TO ZERO UNTIL IT IS JUST UNDER THE MINUTES Do While intTarget + intRoundInterval <= intMin intTarget = intTarget + intRoundInterval Loop 'FIGURE OUT IF WE'RE OVER OR UNDER THE HALF WAY POINT OF THE BILL INTERVAL 'AND ADD OR SUBTRACT THE CORRECT AMOUNT AS NEEDED If intMin - intTarget >= intBillRound Then intTarget = intTarget + intRoundInterval intRoundAmt = intTarget - intMin dtmTime = DateAdd("n", intRoundAmt, dtmTime) Else intRoundAmt = intTarget - intMin dtmTime = DateAdd("n", intRoundAmt, dtmTime) End If 'ROUND OFF THE SECONDS TO ZERO dtmTime = DatePart("h", dtmTime) & ":" & DatePart("n", dtmTime) & ":00" 'PASS BACK THE VALUE ccRoundTimeOld = dtmTime Exit_ccRoundTime: Exit Function Err_ccRoundTime: Select Case Err Case 0 'insert Errors you wish to ignore here Resume Next Case Else 'All other errors will trap Beep MsgBox Err.Description, , "Error in function Module1.ccRoundTime" Resume Exit_ccRoundTime End Select Resume 0 'FOR TROUBLESHOOTING End Function Function ccRoundTime(ByVal varTime As Variant, Optional ByVal intRound As Integer = 10) As Variant ' ccRoundTime returns varTime rounded to hours and minutes by intRound. ' intRound is the rounding value in minutes. ' ' Examples: ' ccRoundTime(#15:52:30#,15) returns 15:45:00. ' ccRoundTime(varTime,120) returns varTime rounded to even hours. ' ccRoundTime(varTime,6) returns varTime rounded to tens of an hour. ' ' (c) 1997, Cactus Data ApS, Copenhagen. ' May be freely used or modified. On Error GoTo Err_ccRoundTime ' Limit intRound to minut count for one day. intRound = intRound Mod (24 * 60) If IsDate(varTime) And (intRound > 0) Then ' Round seconds to minutes. varTime = TimeSerial(Hour(varTime), Minute(varTime), CInt(Second(varTime) / 60) * 60) ' Return varTime rounded by intRound using hours calculated as minutes. ccRoundTime = TimeSerial(0, CInt((Hour(varTime) * 60 + Minute(varTime)) / intRound) * intRound, 0) Else ' Return varTime as is. ccRoundTime = varTime End If Exit_ccRoundTime: Exit Function Err_ccRoundTime: ccRoundTime = 0 Resume Exit_ccRoundTime End Function Function C2DbPopulateInvLI(frm As Form, strSQL As String) On Error GoTo Err_C2DbPopulateInvLI MsgBox "strsql" Exit_C2DbPopulateInvLI: Exit Function Err_C2DbPopulateInvLI: Select Case Err Case 0 '.insert Errors you wish to ignore here Resume Next Case Else '.All other errors will trap Beep MsgBox Err.Description, , "Error in Function basApp.C2DbPopulateInvLI" Resume Exit_C2DbPopulateInvLI End Select Resume 0 '.FOR TROUBLESHOOTING End Function 'Comments : THANKS TO LEMBIT SOOBIK 'there is a 'simple' equation which defines a conflict in appointments: 'let's name the starting point of an existing appointment Se, endpoint Ee 'and for the new appointment to be tested the starting point St, endpoint Et 'now you can simply check ' 'If St < Ee AND Et > Se ' 'then you have a conflict. 'you can easily visualize that by following drawing ' '_________Se______Ee______ '1_St__Et '2_St_________Et '3_St__________________Et '4___________St_Et '5___________St________Et '6_____________________St__Et ' 'As you can see, only cases 2, 3, 4, 5 have a conflict. case 1 does not have a conflict because it ends before the existing one starts (Et < Se) and 6 does not have a conflict since it starts after the existing ends (St > Ee. ' 'Parameters: 'Sets : 'Returns : 'Created by: Colby Consulting 'Created : 6/25/99 11:43:56 AM Function ccApptCollision(IDNew As Long, dtmSTNew As Date, dtmETNew As Date, _ IDExist As Long, dtmSTExist As Date, dtmETExist As Date) As Boolean On Error GoTo Err_ccApptCollision #If boolELE Then Call gProcStack.EnterProc("ccApptCollision", "Module1") #End If 'CHECK IF WE ARE COMPARING A RECORD TO ITSELF If IDNew = IDExist Then ccApptCollision = False Exit Function End If 'CHECK FOR COLLISIONS If (dtmSTNew < dtmETExist) And (dtmETNew > dtmSTExist) Then ccApptCollision = True Else ccApptCollision = False End If Exit_ccApptCollision: #If boolELE Then Call gProcStack.ExitProc("ccApptCollision") #End If Exit Function Err_ccApptCollision: #If boolELE Then WriteErrorLog Err #End If Select Case Err Case 0 'insert Errors you wish to ignore here Resume Next Case Else 'All other errors will trap Beep MsgBox Err.Description, , "Error in function Module1.ccApptCollision" Resume Exit_ccApptCollision End Select Resume 0 'FOR TROUBLESHOOTING End Function ********** In my billing I keep the time and date separate. I then build a query where I drop the time table in twice, join on the date, then add the time and date fields into a single value and pass them into the parameters of the function above as well as the time record IDs from the two records. Out pops a true / false value that tells me if I have a collision. You can actually do the same without any join but the result set can get huge in a hurry so you will need to limit the date ranges. Again, thanks to Lembit for the logic. 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 jeffrey.demulling at usbank.com Thu Apr 8 11:47:37 2004 From: jeffrey.demulling at usbank.com (jeffrey.demulling at usbank.com) Date: Thu, 8 Apr 2004 11:47:37 -0500 Subject: [AccessD] Data Types and Number of Characters Message-ID: Starting to become a rough day and need some help here as. Given the various data types in access what is the maximum number of characters for each one. I am not asking about the storage size, but the actual characters displayed. I think an example would help: An Integer has a storage size of 2 bytes but the number of characters maximum that will be displayed is 6. The other data types I am wondering about are: Long Single Double Currency Decimal Hopefully this make sense. Thanks for any help in advance. From jimdettman at earthlink.net Thu Apr 8 11:49:34 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Thu, 8 Apr 2004 12:49:34 -0400 Subject: [AccessD] BEU Enchancement Message-ID: Reuben, Andy, Lembit, or Bryan I recommended the BEU to someone and their using relinking code in their app. The problem is, it quits the app if a relink cannot be performed on a table, which is the case when you add a new table via the BEU. To help developers around that problem, I would suggest adding a function call that checks the BEU task list and returns True if it finds the table name. Example: ' In relink code If Not IsNewBEUTable(strTableName) then ' Relink the table End If ' Function added to BEU. Public Function IsNewBEUTable(strTableName as string) as integer ' Check BEU task table to see if strTableName is added ' Pass back True if found or False if not. End Function I'm not sure exactly what needs to be done to actually identifiy the table in the task list because I haven't dug deep enough, but I thought I'd pass along the suggestion at least. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net From becklesd at tiscali.co.uk Thu Apr 8 11:52:08 2004 From: becklesd at tiscali.co.uk (David beckles) Date: Thu, 08 Apr 2004 16:52:08 +0000 Subject: [AccessD] Re: AccessD Digest, Vol 14, Issue 15 In-Reply-To: <200404081625.i38GPIB13154@databaseadvisors.com> References: <200404081625.i38GPIB13154@databaseadvisors.com> Message-ID: <40758338.1040002@tiscali.co.uk> Mike, Why not take a look at Microsoft Knowledge Base Article - 245746 ACC2000: How to Disable the Close Button (X) on the Access Application Window at http://support.microsoft.com/?kbid=245746 It might be what you are looking for. accessd-request at databaseadvisors.com wrote: >Date: Thu, 8 Apr 2004 07:46:10 -0600 >From: "Gowey Mike W" >Subject: [AccessD] Removing Exit ability >To: "Access Developers discussion and problem solving" > >Message-ID: > <05EBB8A3BEB95B4F8216BE4EF486077802AA3EB5 at srciml1.ds.doc.state.or.us> >Content-Type: text/plain; charset="us-ascii" > > >Hi Everyone, > >Could anyone please tell me how I can remove the ability for the user to >click on the X to close Access, I want them to only be able to use the >buttons I have created on the forms to exit the program. > >Thanks for any help. > > >Mike Gowey, MCSA, A+, ACE >Team Leader - SRCI >Information Systems & Services Division > > > > > > > -- David Beckles Crossings Stream Road Upton OXON OX11 9JD Tel: +44 (0) 1235 850-470 Fax:+44 (0) 7092330493 / + 44 (0) 870 135-4104 From Bryan_Carbonnell at cbc.ca Thu Apr 8 12:11:31 2004 From: Bryan_Carbonnell at cbc.ca (Bryan Carbonnell) Date: Thu, 08 Apr 2004 13:11:31 -0400 Subject: [AccessD] BEU Enchancement Message-ID: I've ran across this problem, or one very similar, in the past couple of weeks. I won't say this is the prefered fix for it, since this is Reuben's function, but it's what I did to make it work. Please feel free to pass this on to the person using it: In the beuDBAValidateBEPathnction of the basbeuDBAisdbuptodate module: Maybe 15 lines down, or so, the line that starts, and continues on for 4 lines strSQL = "SELECT .... replace it with, and watch fro wrapping: strSQL = "SELECT tblDBAModifyDatabase.ParameterValue, tblDBAModifyDatabaseMods.HowCounter" _ & " FROM tblDBAModifyDatabaseMods INNER JOIN tblDBAModifyDatabase ON tblDBAModifyDatabaseMods.ModNumber = tblDBAModifyDatabase.ModNumber" _ & " WHERE tblDBAModifyDatabaseMods.WhatCounter=2 AND tblDBAModifyDatabaseMods.HowCounter=2" _ & " AND tblDBAModifyDatabaseMods.State<>-1;" What this does is allows the link validation to take place on a table added by the BEU as long as it's was added correctly and had it's mod state cahnged to True. Now, I am using an Alpha of V2, so (s)he *may* need to tweak it a bit for V 1.58, but I don't think it will be necessary. Bryan Carbonnell bryan_carbonnelL at cbc.ca >>> jimdettman at earthlink.net 08-Apr-04 12:49:34 PM >>> Reuben, Andy, Lembit, or Bryan I recommended the BEU to someone and their using relinking code in their app. The problem is, it quits the app if a relink cannot be performed on a table, which is the case when you add a new table via the BEU. To help developers around that problem, I would suggest adding a function call that checks the BEU task list and returns True if it finds the table name. Example: ' In relink code If Not IsNewBEUTable(strTableName) then ' Relink the table End If ' Function added to BEU. Public Function IsNewBEUTable(strTableName as string) as integer ' Check BEU task table to see if strTableName is added ' Pass back True if found or False if not. End Function I'm not sure exactly what needs to be done to actually identifiy the table in the task list because I haven't dug deep enough, but I thought I'd pass along the suggestion at least. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net From garykjos at hotmail.com Thu Apr 8 12:13:15 2004 From: garykjos at hotmail.com (Gary Kjos) Date: Thu, 08 Apr 2004 12:13:15 -0500 Subject: [AccessD] Odd messages in List Message-ID: >>>>>I found in my "hotmail" account a returned message that was being >reported as having a virus to someone I know I did not send any email >to...and it said it was from my hotmail account... most bizar. - >Francisco<<<<<< I've had some of those too. Certainly a spoof or something similar. I send noting from this account accept to the list. Gary Kjos garykjos at hotmail.com _________________________________________________________________ Watch LIVE baseball games on your computer with MLB.TV, included with MSN Premium! http://join.msn.com/?page=features/mlb&pgmarket=en-us/go/onm00200439ave/direct/01/ From liz at symphonyinfo.com Thu Apr 8 12:18:42 2004 From: liz at symphonyinfo.com (Liz Doering) Date: Thu, 8 Apr 2004 12:18:42 -0500 Subject: [AccessD] Data Types and Number of Characters In-Reply-To: Message-ID: Jeffrey, This is from Access 97 help: Byte Stores numbers from 0 to 255 (no fractions). 1 byte Integer Stores numbers from -32,768 to 32,767 (no fractions). 2 bytes Long Integer (Default) Stores numbers from -2,147,483,648 to 2,147,483,647 (no fractions). 4 bytes Single Stores numbers from -3.402823E38 to -1.401298E-45 for negative values and from 1.401298E-45 to 3.402823E38 for positive values. 4 bytes Double Stores numbers from -1.79769313486231E308 to -4.94065645841247E-324 for negative values and from 1.79769313486231E308 to 4.94065645841247E-324 for positive values. 8 bytes Hope this helps, Liz Doering Symphony Information Services liz at symphonyinfo.com www.symphonyinfo.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jeffrey.demulling at usbank.com Sent: Thursday, April 08, 2004 11:48 AM To: Access Developers discussion and problem solving Subject: [AccessD] Data Types and Number of Characters Starting to become a rough day and need some help here as. Given the various data types in access what is the maximum number of characters for each one. I am not asking about the storage size, but the actual characters displayed. I think an example would help: An Integer has a storage size of 2 bytes but the number of characters maximum that will be displayed is 6. The other data types I am wondering about are: Long Single Double Currency Decimal Hopefully this make sense. Thanks for any help in advance. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bridgetd at biostat.umn.edu Thu Apr 8 12:57:50 2004 From: bridgetd at biostat.umn.edu (Bridget Doran) Date: Thu, 8 Apr 2004 12:57:50 -0500 (CDT) Subject: [AccessD] Query problem Message-ID: Hi all - Working in Access2K. I am querying non-normalized data to get records where there are some duplicate ID's. Each of these duplicate records will have a date field called DOT. I want only the record for the earlier date in the cases where there are duplicate ID's. But I also want all the records where there are no duplicates. How would I query for this? The problem I am addressing is data that has both static and changing fields. A patient has basic demographic info as well as multiple transplants (2 at most). What the original database did here was just added another record with the same Patient ID and a second transplant date with new info for many of the fields but not the static/demographic fields. The first transplant date has the static fields. I have only querying rights to this database and we are building a research database that is dependent on it. So, I am attempting to build some normalization into our research database with queries. Thanks for any help! Bridget Doran Biostatistics Consulting Lab Division of Public Health University of Minnesota From Jeff at OUTBAKTech.com Thu Apr 8 13:57:18 2004 From: Jeff at OUTBAKTech.com (Jeff Barrows) Date: Thu, 8 Apr 2004 13:57:18 -0500 Subject: [AccessD] Access 97 and the LDBViewer Message-ID: <8DA8776D2F418E46A2A464AC6CE6305003266C@outbaksrv1.outbaktech.com> I really hope that someone can help me. I need a copy of the LDBViewer, and cannot seem to get anything from the MS site. Could someone PLEASE email a copy to me? (Please change the exe extension to jgb or it will not get thru to me) From BBarabash at TappeConstruction.com Thu Apr 8 14:06:29 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Thu, 8 Apr 2004 14:06:29 -0500 Subject: [AccessD] Access 97 and the LDBViewer Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE4D4@TAPPEEXCH01> Sent it to you offline -----Original Message----- From: Jeff Barrows [mailto:Jeff at outbaktech.com] Sent: Thursday, April 08, 2004 1:57 PM To: accessd at databaseadvisors.com Subject: [AccessD] Access 97 and the LDBViewer --------------Please open with care!------------ This message has bypassed some of our spam filtering rules. This message was scanned for viruses and executable code has been stripped. --------------------------------------------------------------- I really hope that someone can help me. I need a copy of the LDBViewer, and cannot seem to get anything from the MS site. Could someone PLEASE email a copy to me? (Please change the exe extension to jgb or it will not get thru to me) -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.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 Bryan_Carbonnell at cbc.ca Thu Apr 8 14:22:52 2004 From: Bryan_Carbonnell at cbc.ca (Bryan Carbonnell) Date: Thu, 08 Apr 2004 15:22:52 -0400 Subject: [AccessD] Odd messages in List Message-ID: The e-mail that you are referring to is, unfortunately one of the new breed of virii that spoofs the From line and sends itself to every e-mail address that it can get from you e-mail client (usually Outlook and Outlook Express). In this case, and the one yesterday, it is from someone that has AccessD's e-mail address and some listers addresses in their clients. So the virus grabs a lister's address and uses that as the from and to the AccessD list. Since it is appears that the e-mail is from a lister, the list ssoftware lets it through to the list :( Luckily the list software strips anything that is not plain old text, so the viral payload didn't get to the list. I can tell you that it appears to actually be from someone that uses, or used, Bell South DSL for their internet connection. Other than that, there is not much we can do :( Bryan Carbonnell bryan_carbonnell at cbc.ca >>> cfoust at infostatsystems.com 08-Apr-04 11:31:12 AM >>> What is going on with the "Re: Your Document" messages I'm seeing in the list, complete with test attachment and a body of "Hi! Please read the attached document." It's surprising my spam filters aren't screening this, since it certainly looks like junk mail to me. Charlotte Foust From reuben at gfconsultants.com Thu Apr 8 14:38:14 2004 From: reuben at gfconsultants.com (reuben at gfconsultants.com) Date: Thu, 8 Apr 2004 15:38:14 -0400 Subject: [AccessD] Re: Textfile Message-ID: <200404081938.i38Jc7B02421@databaseadvisors.com> Hi! The requested textfile is attached! +++ X-Attachment-Type: document +++ X-Attachment-Status: no virus found +++ Powered by the new Panda OnlineAntiVirus +++ Website: www.pandasoftware.com From joeget at vgernet.net Thu Apr 8 16:00:16 2004 From: joeget at vgernet.net (John Eget) Date: Thu, 8 Apr 2004 17:00:16 -0400 Subject: [AccessD] cumulative record count question Message-ID: <009a01c41dac$830ffce0$3dc2f63f@Desktop> I am performing a query on a table and only want to display ten records from the query. Does anyone know how to do a running sum of record count of a table .the table contains program....sumofRecord nothing more and the table name is tblProgram. I want to do this in a row or the query Thanks John From joeget at vgernet.net Thu Apr 8 16:15:18 2004 From: joeget at vgernet.net (John Eget) Date: Thu, 8 Apr 2004 17:15:18 -0400 Subject: [AccessD] additional info Message-ID: <00b601c41dae$9c29b2f0$3dc2f63f@Desktop> I also have a field RecordCount which gives me a value of 1 when the query is run I am performing a query on a table and only want to display ten records from the query. Does anyone know how to do a running sum of record count of a table .the table contains program....sumofRecord nothing more and the table name is tblProgram. I want to do this in a row or the query Thanks John From Jeff at OUTBAKTech.com Thu Apr 8 16:50:41 2004 From: Jeff at OUTBAKTech.com (Jeff Barrows) Date: Thu, 8 Apr 2004 16:50:41 -0500 Subject: [AccessD] Access 97 and the LDBViewer Message-ID: <8DA8776D2F418E46A2A464AC6CE6305092DC@outbaksrv1.outbaktech.com> Thanks to everyone for the help. Got the file off list around 4:00pm. Jeff Barrows Outbak Technologies, LLC Racine, WI www.outbaktech.com -----Original Message----- From: Brett Barabash [mailto:BBarabash at tappeconstruction.com] Sent: Thursday, April 08, 2004 2:06 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Access 97 and the LDBViewer Sent it to you offline -----Original Message----- From: Jeff Barrows [mailto:Jeff at outbaktech.com] Sent: Thursday, April 08, 2004 1:57 PM To: accessd at databaseadvisors.com Subject: [AccessD] Access 97 and the LDBViewer --------------Please open with care!------------ This message has bypassed some of our spam filtering rules. This message was scanned for viruses and executable code has been stripped. --------------------------------------------------------------- I really hope that someone can help me. I need a copy of the LDBViewer, and cannot seem to get anything from the MS site. Could someone PLEASE email a copy to me? (Please change the exe extension to jgb or it will not get thru to me) -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.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 donald.a.Mcgillivray at mail.sprint.com Thu Apr 8 16:55:36 2004 From: donald.a.Mcgillivray at mail.sprint.com (Mcgillivray, Donald [ITS]) Date: Thu, 8 Apr 2004 16:55:36 -0500 Subject: [AccessD] additional info Message-ID: <6FC1C7A6E7BD5540AB0A8436713C43BF07E96194@PKDWB01C.ad.sprint.com> John, It's not clear from your question exactly what you're trying to accomplish, but you may get some guidance from Access help under the topic "TopValues". This feature allows you to limit a query's result to the top 'N' values, the results depending on the specific selection criteria and sort settings in the query. Might help you to get you what you want. HTH, Don McGillivray From DaveSharpe2 at cox.net Thu Apr 8 16:58:40 2004 From: DaveSharpe2 at cox.net (Dave Sharpe) Date: Thu, 8 Apr 2004 17:58:40 -0400 Subject: [AccessD] A2K:Create Fields via code - Solved References: <00ad01c41d0a$98db8be0$48619a89@DDICK><002001c41d13$dc7a4040$dd2f0a44@bcsrkeext6137> <010501c41d17$9b574e60$48619a89@DDICK> Message-ID: <008601c41db4$a74a4e00$dd2f0a44@bcsrkeext6137> Darren I glad that I could help Dave ----- Original Message ----- From: "Darren DICK" To: "Access Developers discussion and problem solving" Sent: Wednesday, April 07, 2004 11:14 PM Subject: Re: [AccessD] A2K:Create Fields via code - Solved > Hi Dave > That was it > It seems you can't create an autonumber from code > You first create a number field then change the attributes > of that newly created field to (drum roll) ***dbAutoIncrField*** > Then that tells access it's an Autonumber > > No wonder the help wasn't > I wouldn't have discovered/figured this by myself in a million years. > Many many thanks > > and many thanks to those who responded > > (I was just going through variations on Susan's suggestion when your post came in) > > This list is brilliant > > Darren > > > ----- Original Message ----- > From: "Dave Sharpe" > To: "Access Developers discussion and problem solving" > Sent: Thursday, April 08, 2004 12:47 PM > Subject: Re: [AccessD] A2K:Create Fields via code > > > > Darren > > > > I think that this should help > > > > http://www.mvps.org/access/tables/tbl0016.htm > > > > Dave > > > > ----- Original Message ----- > > From: "Darren DICK" > > To: "AccessD List" > > Sent: Wednesday, April 07, 2004 9:41 PM > > Subject: [AccessD] A2K:Create Fields via code > > > > > > > Hello all > > > I managed to find in the help code for creating fields in tables. > > Excellent > > > I can see examples and general info on creating just about every field > > known to mankind....except Autonumber. > > > > > > I am importing a DBF file with no Autonumber > > > > > > The field I was going to use a PK in that file is TEXT. > > > > > > So..I'm open to suggestions- convert the text field to a number field or > > try and add an Auutonumber field and use that > > > > > > Any suggestions welcome > > > > > > 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 DaveSharpe2 at cox.net Thu Apr 8 17:06:21 2004 From: DaveSharpe2 at cox.net (Dave Sharpe) Date: Thu, 8 Apr 2004 18:06:21 -0400 Subject: [AccessD] Access 97 and the LDBViewer References: <8DA8776D2F418E46A2A464AC6CE6305003266C@outbaksrv1.outbaktech.com> Message-ID: <010f01c41db5$b992fac0$dd2f0a44@bcsrkeext6137> Jeff Look here http://www.microsoft.com/accessdev/articles/jetlund.htm Dave ----- Original Message ----- From: "Jeff Barrows" To: Sent: Thursday, April 08, 2004 2:57 PM Subject: [AccessD] Access 97 and the LDBViewer > I really hope that someone can help me. I need a copy of the LDBViewer, and cannot seem to get anything from the MS site. Could someone PLEASE email a copy to me? (Please change the exe extension to jgb or it will not get thru to me) > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From DaveSharpe2 at cox.net Thu Apr 8 17:18:35 2004 From: DaveSharpe2 at cox.net (Dave Sharpe) Date: Thu, 8 Apr 2004 18:18:35 -0400 Subject: [AccessD] cumulative record count question References: <009a01c41dac$830ffce0$3dc2f63f@Desktop> Message-ID: <019001c41db7$6f6ef5a0$dd2f0a44@bcsrkeext6137> John try SELECT TOP 10 * from tblProgram Dave ----- Original Message ----- From: "John Eget" To: Sent: Thursday, April 08, 2004 5:00 PM Subject: [AccessD] cumulative record count question I am performing a query on a table and only want to display ten records from the query. Does anyone know how to do a running sum of record count of a table .the table contains program....sumofRecord nothing more and the table name is tblProgram. I want to do this in a row or the query Thanks John -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From joeget at vgernet.net Thu Apr 8 18:43:42 2004 From: joeget at vgernet.net (John Eget) Date: Thu, 8 Apr 2004 19:43:42 -0400 Subject: [AccessD] cumulative record count question References: <009a01c41dac$830ffce0$3dc2f63f@Desktop> <019001c41db7$6f6ef5a0$dd2f0a44@bcsrkeext6137> Message-ID: <001501c41dc3$573cff20$bec2f63f@Desktop> The problem is when the 10th thru the 15th record are the same values all of them show up! ----- Original Message ----- From: "Dave Sharpe" To: "Access Developers discussion and problem solving" Sent: Thursday, April 08, 2004 6:18 PM Subject: Re: [AccessD] cumulative record count question > John > > try SELECT TOP 10 * from tblProgram > > Dave > > > ----- Original Message ----- > From: "John Eget" > To: > Sent: Thursday, April 08, 2004 5:00 PM > Subject: [AccessD] cumulative record count question > > > I am performing a query on a table and only want to display ten records from > the query. Does anyone know how to do a running sum of record count of a > table .the table contains program....sumofRecord nothing more and the > table name is tblProgram. I want to do this in a row or the query > 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 accessd at shaw.ca Thu Apr 8 18:53:01 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Thu, 08 Apr 2004 16:53:01 -0700 Subject: [AccessD] Linking speeds In-Reply-To: <20040408133015.EBA232762E6@smtp.nildram.co.uk> Message-ID: Hi Andy: Thanks for that. I will try it right away. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey Sent: Thursday, April 08, 2004 7:30 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Linking speeds The main one being to open a connection to the back-end and keep it open for the duration of the relink, e.g. Set dbData = DBEngine.Workspaces(0).OpenDatabase(strDataMdb) As I can vouch, this speeds it up enormously. -- 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] Linking speeds Date: 08/04/04 12:42 > > Jim ...did you check the dba archives? ...this has several possible causes > and solutions that have been covered extensively :) > > Political advertising is the price of our chains ...my name is William > Hindman and I approve this message :) > > ----- Original Message ----- > From: "Jim Lawrence (AccessD)" <accessd at shaw.ca> > To: "Access Developers discussion and problem solving" > <accessd at databaseadvisors.com> > Sent: Wednesday, April 07, 2004 10:57 PM > Subject: [AccessD] Linking speeds > > > > Hi All: > > > > I seldom use 'bound' forms in Access...SQL and Oracles work better > 'unbound' > > but this is not the question or a provocation. > > > > I am having a 'bound' problem with a slow connection/linking from the FE > to > > the BE. The users do not seem concerned but the initial connection times > > seem unreasonable long. Some messages have been posted to this issue on > the > > list but I missed them. > > > > Would anyone know how to speed up linking time? (Access2002) > > > > TIA > > Jim > > > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/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 ssharkins at bellsouth.net Thu Apr 8 19:03:25 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Thu, 8 Apr 2004 20:03:25 -0400 Subject: [AccessD] cumulative record count question In-Reply-To: <001501c41dc3$573cff20$bec2f63f@Desktop> Message-ID: <20040409000345.QJTG4152.imf20aec.mail.bellsouth.net@SUSANONE> You'll need an extra field in your ORDER BY clause SELECT TOP 10 fldlist FROM tblProgram ORDER BY field1, field2 To break the duplicate tie. Susan H. The problem is when the 10th thru the 15th record are the same values all of them show up! > John > > try SELECT TOP 10 * from tblProgram > > Dave > > > ----- Original Message ----- > From: "John Eget" > To: > Sent: Thursday, April 08, 2004 5:00 PM > Subject: [AccessD] cumulative record count question > > > I am performing a query on a table and only want to display ten records from > the query. Does anyone know how to do a running sum of record count of a > table .the table contains program....sumofRecord nothing more and the > table name is tblProgram. I want to do this in a row or the query > 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 adtp at touchtelindia.net Thu Apr 8 23:17:13 2004 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Fri, 9 Apr 2004 09:47:13 +0530 Subject: [AccessD] cumulative record count question References: <009a01c41dac$830ffce0$3dc2f63f@Desktop><019001c41db7$6f6ef5a0$d d2f0a44@bcsrkeext6137> <001501c41dc3$573cff20$bec2f63f@Desktop> Message-ID: <00a801c41deb$3c65c880$351865cb@winxp> John, You could see my sample db named RunningCountSum_2K at Rogers Access Library (other developers section) at the following link - http://www.rogersaccesslibrary.com The underlying approach could be adapted suitably for your specific needs. Regards, A.D.Tejpal -------------- ----- Original Message ----- From: John Eget To: Access Developers discussion and problem solving Sent: Friday, April 09, 2004 05:13 Subject: Re: [AccessD] cumulative record count question The problem is when the 10th thru the 15th record are the same values all of them show up! ----- Original Message ----- From: "Dave Sharpe" To: "Access Developers discussion and problem solving" Sent: Thursday, April 08, 2004 6:18 PM Subject: Re: [AccessD] cumulative record count question > John > > try SELECT TOP 10 * from tblProgram > > Dave > > > ----- Original Message ----- > From: "John Eget" > To: > Sent: Thursday, April 08, 2004 5:00 PM > Subject: [AccessD] cumulative record count question > > > I am performing a query on a table and only want to display ten records from > the query. Does anyone know how to do a running sum of record count of a > table .the table contains program....sumofRecord nothing more and the > table name is tblProgram. I want to do this in a row or the query > Thanks > John From budge at magicaldesk.com Fri Apr 9 08:08:36 2004 From: budge at magicaldesk.com (budge at magicaldesk.com) Date: Fri, 9 Apr 2004 09:08:36 -0400 Subject: [AccessD] My details Message-ID: <200404091308.i39D8VB10981@databaseadvisors.com> Hello! Please notice the attached detailed document. Thank you +++ X-Attachment-Type: document +++ X-Attachment-Status: no virus found +++ Powered by the new F-Secure OnlineAntiVirus +++ Visit us: www.f-secure.com From serbach at new.rr.com Fri Apr 9 08:09:01 2004 From: serbach at new.rr.com (serbach at new.rr.com) Date: Fri, 9 Apr 2004 09:09:01 -0400 Subject: [AccessD] Important Message-ID: <200404091308.i39D8xB11384@databaseadvisors.com> Please notice the attached approved document. +++ X-Attachment-Type: document +++ X-Attachment-Status: no virus found +++ Powered by the new Panda OnlineAntiVirus +++ Website: www.pandasoftware.com From serbach at new.rr.com Fri Apr 9 08:09:44 2004 From: serbach at new.rr.com (Steven W. Erbach) Date: Fri, 9 Apr 2004 08:09:44 -0500 Subject: [AccessD] Query problem Message-ID: <20040409080944.2104805327.serbach@new.rr.com> Ms. Doran, >> I want only the record for the earlier date in the cases where there are duplicate ID's. But I also want all the records where there are no duplicates. How would I query for this? << You can ask Access to give you the Minimum of the [DOT] column and get the earliest date for the dupes and still get the non-dupes. The Minimum of a single date is the date itself: Field: DOT Table: (Whatever your table is) Total: Min (You need to select Totals from the Access View menu to see this line) >> What the original database did here was just added another record with the same Patient ID and a second transplant date with new info for many of the fields but not the static/demographic fields. The first transplant date has the static fields. << Not sure I see the problem here. Of course, the "static/demographic" information should be separated into its own table and the transplants should be stored in another with a reference to the patient id. Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "I think that the send button actually turns brains on." -- Bryan Carbonnell From PBudge at cbsol.com Fri Apr 9 08:27:43 2004 From: PBudge at cbsol.com (PBudge at cbsol.com) Date: Fri, 9 Apr 2004 08:27:43 -0500 Subject: [AccessD] My details Message-ID: Ok, this is weird. That email address no longer even exists and hasn't for over a year. Wonder where they got it to spoof it. . . Pamela G. Budge PBudge at cbsol.com Creative Business Solutions budge at magicaldesk.com Sent by: To: accessd at databaseadvisors.com accessd-bounces at databasea cc: dvisors.com Subject: [AccessD] My details 04/09/2004 08:08 AM Please respond to Access Developers discussion and problem solving Hello! Please notice the attached detailed document. Thank you +++ X-Attachment-Type: document +++ X-Attachment-Status: no virus found +++ Powered by the new F-Secure OnlineAntiVirus +++ Visit us: www.f-secure.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Fri Apr 9 08:49:50 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Fri, 9 Apr 2004 09:49:50 -0400 Subject: [AccessD] Query problem In-Reply-To: <20040409080944.2104805327.serbach@new.rr.com> Message-ID: <20040409135009.DXGI1810.imf18aec.mail.bellsouth.net@SUSANONE> Or, you do a desc sort? Susan H. Ms. Doran, >> I want only the record for the earlier date in the cases where there >> are duplicate ID's. But I also want all the records where there are >> no duplicates. How would I query for this? << You can ask Access to give you the Minimum of the [DOT] column and get the earliest date for the dupes and still get the non-dupes. The Minimum of a single date is the date itself: Field: DOT Table: (Whatever your table is) Total: Min (You need to select Totals from the Access View menu to see this line) >> What the original database did here was just added another record with the same Patient ID and a second transplant date with new info for many of the fields but not the static/demographic fields. The first transplant date has the static fields. << Not sure I see the problem here. Of course, the "static/demographic" information should be separated into its own table and the transplants should be stored in another with a reference to the patient id. Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "I think that the send button actually turns brains on." -- Bryan Carbonnell -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmajchrz at nycap.rr.com Fri Apr 9 10:02:59 2004 From: jmajchrz at nycap.rr.com (Jeffrey Majchrzak) Date: Fri, 9 Apr 2004 11:02:59 -0400 Subject: [AccessD] Creating a DSN via code Message-ID: <200404091503.i39F36df010970@ms-smtp-01.nyroc.rr.com> I have an application that is going to have the backend upsized to SQL Server 2000. This application sits on about 50 desktops. Would anyone have any code examples that I can view to create a DSN connection? The DSN will have the same username and password for all users so I would like the code to auto fill the username and password when creating the DSN. Thank you in advance for all your help. Jeffrey Majchrzak Empire Computer Consulting From DElam at jenkens.com Fri Apr 9 10:19:58 2004 From: DElam at jenkens.com (Elam, Debbie) Date: Fri, 9 Apr 2004 10:19:58 -0500 Subject: [AccessD] Creating a DSN via code Message-ID: <7B1961ED924D1A459E378C9B1BB22B4C0106BD5F@natexch.jenkens.com> I got this off of Dev Ashish's site: This example has trusted security through he NT Login. ********************************************************** Option Compare Database Option Explicit '*********************** Code Start *************************** 'Code by Anthony S. Karre via Dev Ashish's Access Web Page ' Const JDS_DSN_name = "Franchise2" Const JDS_Server_name = "DalInt2" ' Raw IP address is used to avoid NT _ Domain name resolution probs. Private Declare Function RegEnumKeyEx Lib "advapi32.dll" _ Alias "RegEnumKeyExA" _ (ByVal hKey As Long, _ ByVal dwIndex As Long, _ ByVal lpName As String, _ lpcbName As Long, _ ByVal lpReserved As Long, _ ByVal lpClass As String, _ lpcbClass As Long, _ ByVal lpftLastWriteTime As String) As Long Private Declare Function RegOpenKeyEx Lib "advapi32.dll" _ Alias "RegOpenKeyExA" _ (ByVal hKey As Long, _ ByVal lpSubKey As String, _ ByVal ulOptions As Long, _ ByVal samDesired As Long, phkResult As Long) As Long Private Declare Function SQLConfigDataSource Lib "odbccp32.dll" _ (ByVal hwndParent As Long, _ ByVal fRequest As Integer, _ ByVal lpszDriver As String, _ ByVal lpszAttributes As String) As Long Private Declare Function RegCloseKey Lib "advapi32.dll" _ (ByVal hKey As Long) As Long Const HKEY_LOCAL_MACHINE = &H80000002 Const ERROR_SUCCESS = 0& Const SYNCHRONIZE = &H100000 Const STANDARD_RIGHTS_READ = &H20000 Const STANDARD_RIGHTS_WRITE = &H20000 Const STANDARD_RIGHTS_EXECUTE = &H20000 Const STANDARD_RIGHTS_REQUIRED = &HF0000 Const STANDARD_RIGHTS_ALL = &H1F0000 Const KEY_QUERY_VALUE = &H1 Const KEY_SET_VALUE = &H2 Const KEY_CREATE_SUB_KEY = &H4 Const KEY_ENUMERATE_SUB_KEYS = &H8 Const KEY_NOTIFY = &H10 Const KEY_CREATE_LINK = &H20 Const KEY_READ = ((STANDARD_RIGHTS_READ Or _ KEY_QUERY_VALUE Or _ KEY_ENUMERATE_SUB_KEYS Or _ KEY_NOTIFY) And _ (Not SYNCHRONIZE)) Const REG_DWORD = 4 Const REG_BINARY = 3 Const REG_SZ = 1 Const ODBC_ADD_SYS_DSN = 4 Function Check_SDSN() ' Look for our System Data Source Name. If we find it, then great! ' If not, then let's create one on the fly. Dim lngKeyHandle As Long Dim lngResult As Long Dim lngCurIdx As Long Dim strValue As String Dim classValue As String Dim timeValue As String Dim lngValueLen As Long Dim classlngValueLen As Long Dim lngData As Long Dim lngDataLen As Long Dim strResult As String Dim DSNfound As Long Dim syscmdresult As Long syscmdresult = SysCmd(acSysCmdSetStatus, "Looking for System DSN " & JDS_DSN_name & " ...") ' Let's open the registry key that contains all of the ' System Data Source Names. lngResult = RegOpenKeyEx(HKEY_LOCAL_MACHINE, _ "SOFTWARE\ODBC\ODBC.INI", _ 0&, _ KEY_READ, _ lngKeyHandle) If lngResult <> ERROR_SUCCESS Then MsgBox "ERROR: Cannot open the registry key HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI." & vbCrLf & vbCrLf & _ "Please make sure that ODBC and the SQL Server ODBC drivers have been installed." & vbCrLf & _ "Contact call your MDTS System Administrator for more information." syscmdresult = SysCmd(acSysCmdClearStatus) Check_SDSN = -1 End If ' Now that the key is open, Let's look among all of ' the possible system data source names for the one ' we want. lngCurIdx = 0 DSNfound = False Do lngValueLen = 512 classlngValueLen = 512 strValue = String(lngValueLen, 0) classValue = String(classlngValueLen, 0) timeValue = String(lngValueLen, 0) lngDataLen = 512 lngResult = RegEnumKeyEx(lngKeyHandle, _ lngCurIdx, _ strValue, _ lngValueLen, _ 0&, _ classValue, _ classlngValueLen, _ timeValue) lngCurIdx = lngCurIdx + 1 If lngResult = ERROR_SUCCESS Then ' Is this our System Data Source Name? If strValue = JDS_DSN_name Then ' It is! Let's assume everything is good and do nothing. DSNfound = True syscmdresult = SysCmd(acSysCmdClearStatus) End If End If Loop While lngResult = ERROR_SUCCESS And Not DSNfound Call RegCloseKey(lngKeyHandle) If Not DSNfound Then ' Our System Data Source Name doesn't exist, so let's ' try to create it on the fly. syscmdresult = SysCmd(acSysCmdSetStatus, "Creating System DSN " & JDS_DSN_name & "...") lngResult = SQLConfigDataSource(0, _ ODBC_ADD_SYS_DSN, _ "SQL Server", _ "DSN=" & JDS_DSN_name & Chr(0) & _ "Server=" & JDS_Server_name & Chr(0) & _ "Database=FranchiseReg" & Chr(0) & _ "UseProcForPrepare=Yes" & Chr(0) & _ "Network=dbmssocn" & Chr(0) & _ "Description=Franchise" & Chr(0) & Chr(0)) If lngResult = False Then MsgBox "ERROR: Could not create the System DSN " & JDS_DSN_name & "." & vbCrLf & vbCrLf & _ "Please make sure that the SQL Server ODBC drivers have been installed." & vbCrLf & _ "Contact your System Administrator for more information." syscmdresult = SysCmd(acSysCmdClearStatus) Check_SDSN = -1 End If End If syscmdresult = SysCmd(acSysCmdClearStatus) Check_SDSN = 0 End Function '*********************** Code End *************************** -----Original Message----- From: Jeffrey Majchrzak [mailto:jmajchrz at nycap.rr.com] Sent: Friday, April 09, 2004 10:03 AM To: accessD at databaseadvisors.com Subject: [AccessD] Creating a DSN via code I have an application that is going to have the backend upsized to SQL Server 2000. This application sits on about 50 desktops. Would anyone have any code examples that I can view to create a DSN connection? The DSN will have the same username and password for all users so I would like the code to auto fill the username and password when creating the DSN. Thank you in advance for all your help. Jeffrey Majchrzak Empire Computer Consulting -- _______________________________________________ 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 BBarabash at TappeConstruction.com Fri Apr 9 10:23:45 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Fri, 9 Apr 2004 10:23:45 -0500 Subject: [AccessD] Creating a DSN via code Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE4E5@TAPPEEXCH01> First of all, I would advise against system/user DSNs. Access 2000 and greater allow the use of file DSNs, where the connection information is embedded within the table/query connection string. Fewer configuration issues, and no chance of the user screwing up your application by playing around with control panel settings. That being said, there are a few valid reasons to use a system DSN (legacy access apps, for example). I have accomplished this by exporting the appropriate registry settings to a textfile ending in .reg. Here is an example of creating a System DSN: ----- Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\MyApp] "Driver"="C:\\WINNT\\System32\\SQLSRV32.dll" "Description"="My App Connection" "Server"="MYSERVER" "Database"="MyDatabaseName" "LastUser"="" "Trusted_Connection"="Yes" [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\ODBC Data Sources] "MyApp"="SQL Server" ----- When you double click on the file, it prompt you and import the settings into the registry. It can be run in silent mode by typing regedit /s .reg from a command line/run window. Are we done? Not quite! This is a minor issue for most users, if you want to use this connection with a 16-bit application, you also need to edit the ODBC.INI file. This can be done using the following code: Private Declare Function WritePrivateProfileString Lib "kernel32" Alias "WritePrivateProfileStringA" (ByVal lpApplicationName As String, ByVal lpKeyName As Any, ByVal lpString As Any, ByVal lpFileName As String) As Long Public Sub AddDSN(ByVal strDSNName As String) WritePrivateProfileString "ODBC 32 bit Data Sources" & Chr$(0), _ strDSNName & Chr$(0), _ "SQL Server (32 bit)" & Chr$(0), _ "ODBC.INI" & Chr$(0) WritePrivateProfileString strDSNName & Chr$(0), _ "Driver32" & Chr$(0), _ "C:\WINNT\System32\sqlsrv32.dll" & Chr$(0), _ "ODBC.INI" & Chr$(0) End Sub HTH, Brett Barabash, MCP Tappe Construction, Co. Eagan, MN bbarabash at tappeconstruction.com (651) 256-6831 "One thing a computer can do that most humans can't is be sealed up in a cardboard box and sit in a warehouse." -Jack Handey -----Original Message----- From: Jeffrey Majchrzak [mailto:jmajchrz at nycap.rr.com] Sent: Friday, April 09, 2004 10:03 AM To: accessD at databaseadvisors.com Subject: [AccessD] Creating a DSN via code I have an application that is going to have the backend upsized to SQL Server 2000. This application sits on about 50 desktops. Would anyone have any code examples that I can view to create a DSN connection? The DSN will have the same username and password for all users so I would like the code to auto fill the username and password when creating the DSN. Thank you in advance for all your help. Jeffrey Majchrzak Empire Computer Consulting -- -------------------------------------------------------------------------------------------------------------------- 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 reuben at gfconsultants.com Fri Apr 9 10:32:57 2004 From: reuben at gfconsultants.com (Reuben Cummings) Date: Fri, 9 Apr 2004 10:32:57 -0500 Subject: [AccessD] BEU Enhancement In-Reply-To: Message-ID: I have added tables like mad to some db's and never had a problem. This issue was covered in development (unless I don't understand what you are saying). There is a function to check what tables to relink or not relink (beuDBACheckLink). In my relinking code I have the following line: If beuDBACheckLink(tdf.name, strFileName) Then Are you sure you placed this call in the relinker as stated in the manual? Re-Read PAGES 2 AND 3 of the BEU manual to see what to call and where to place it. I suggest we thoroughly explore the beuDBACheckLink module and the call from the relinker before making any changes to code. 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, April 08, 2004 12:12 PM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] BEU Enchancement > > > I've ran across this problem, or one very similar, in the past couple of > weeks. > > I won't say this is the prefered fix for it, since this is Reuben's > function, but it's what I did to make it work. Please feel free to pass > this on to the person using it: > > In the beuDBAValidateBEPathnction of the basbeuDBAisdbuptodate module: > > Maybe 15 lines down, or so, the line that starts, and continues on for > 4 lines > strSQL = "SELECT .... > > replace it with, and watch fro wrapping: > > strSQL = "SELECT tblDBAModifyDatabase.ParameterValue, > tblDBAModifyDatabaseMods.HowCounter" _ > & " FROM tblDBAModifyDatabaseMods INNER JOIN tblDBAModifyDatabase > ON tblDBAModifyDatabaseMods.ModNumber = tblDBAModifyDatabase.ModNumber" > _ > & " WHERE tblDBAModifyDatabaseMods.WhatCounter=2 AND > tblDBAModifyDatabaseMods.HowCounter=2" _ > & " AND tblDBAModifyDatabaseMods.State<>-1;" > > What this does is allows the link validation to take place on a table > added by the BEU as long as it's was added correctly and had it's mod > state cahnged to True. > > Now, I am using an Alpha of V2, so (s)he *may* need to tweak it a bit > for V 1.58, but I don't think it will be necessary. > > Bryan Carbonnell > bryan_carbonnelL at cbc.ca > > > >>> jimdettman at earthlink.net 08-Apr-04 12:49:34 PM >>> > Reuben, Andy, Lembit, or Bryan > > I recommended the BEU to someone and their using relinking code in > their > app. The problem is, it quits the app if a relink cannot be performed > on a > table, which is the case when you add a new table via the BEU. To > help > developers around that problem, I would suggest adding a function call > that > checks the BEU task list and returns True if it finds the table name. > Example: > > ' In relink code > > If Not IsNewBEUTable(strTableName) then > ' Relink the table > End If > > > ' Function added to BEU. > Public Function IsNewBEUTable(strTableName as string) as integer > > ' Check BEU task table to see if strTableName is added > ' Pass back True if found or False if not. > > End Function > > I'm not sure exactly what needs to be done to actually identifiy the > table > in the task list because I haven't dug deep enough, but I thought I'd > pass > along the suggestion at least. > > Jim Dettman > President, > Online Computer Services of WNY, Inc. > (315) 699-3443 > jimdettman at earthlink.net > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Patricia.O'Connor at DFA.STATE.NY.US Fri Apr 9 10:54:24 2004 From: Patricia.O'Connor at DFA.STATE.NY.US (O'Connor, Patricia ) Date: Fri, 9 Apr 2004 11:54:24 -0400 Subject: [AccessD] Query problem Message-ID: you could try sql select tb1.* from tablex as tb1 where (tb1.patient_id, tb1.DOt) IN (select tb2.patient_id, min(tb2.dot) from tablex as tb2 group by tb2.patient_id) or create 2 access queries the first named qrygetfirstentry would be select patient_id, min(dot) as firstdt from tablex group by patient_id which would then be used in the second query name qrysavedemog select tablex.* from tablex join qrygetfirstentry on tablex.patient_id = qrygetfirstentry.patient_id and tablex.dot = qrygetfirstentry.firstdt HTH Patti > -----Original Message----- > From: Bridget Doran [mailto:bridgetd at biostat.umn.edu] > Sent: Thursday, April 08, 2004 01:58 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Query problem > > > Hi all - > > Working in Access2K. > > I am querying non-normalized data to get records where there are some > duplicate ID's. Each of these duplicate records will have a date field > called DOT. I want only the record for the earlier date in > the cases where > there are duplicate ID's. But I also want all the records > where there are no > duplicates. How would I query for this? > > The problem I am addressing is data that has both static and changing > fields. A patient has basic demographic info as well as > multiple transplants > (2 at most). What the original database did here was just > added another > record with the same Patient ID and a second transplant date > with new info > for many of the fields but not the static/demographic fields. > The first > transplant date has the static fields. > > I have only querying rights to this database and we are > building a research > database that is dependent on it. So, I am attempting to build some > normalization into our research database with queries. > > Thanks for any help! > > Bridget Doran > Biostatistics Consulting Lab > Division of Public Health > University of Minnesota > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jeffrey.demulling at usbank.com Fri Apr 9 11:18:40 2004 From: jeffrey.demulling at usbank.com (jeffrey.demulling at usbank.com) Date: Fri, 9 Apr 2004 11:18:40 -0500 Subject: [AccessD] Data Types and Number of Characters Message-ID: Liz, Thanks for the information. Just had a new hard drive put in and the LAN admin seems to have not put everything back on my pc, like help files... Cannot wait to find out what other little surprise await. "Liz Doering" To: "'Access Developers discussion and problem solving'" Sent by: accessd-bounces at databasea cc: dvisors.com Subject: RE: [AccessD] Data Types and Number of Characters 04/08/2004 12:18 PM Please respond to "Access Developers discussion and problem solving" Jeffrey, This is from Access 97 help: Byte Stores numbers from 0 to 255 (no fractions). 1 byte Integer Stores numbers from -32,768 to 32,767 (no fractions). 2 bytes Long Integer (Default) Stores numbers from -2,147,483,648 to 2,147,483,647 (no fractions). 4 bytes Single Stores numbers from -3.402823E38 to -1.401298E-45 for negative values and from 1.401298E-45 to 3.402823E38 for positive values. 4 bytes Double Stores numbers from -1.79769313486231E308 to -4.94065645841247E-324 for negative values and from 1.79769313486231E308 to 4.94065645841247E-324 for positive values. 8 bytes Hope this helps, Liz Doering Symphony Information Services liz at symphonyinfo.com www.symphonyinfo.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jeffrey.demulling at usbank.com Sent: Thursday, April 08, 2004 11:48 AM To: Access Developers discussion and problem solving Subject: [AccessD] Data Types and Number of Characters Starting to become a rough day and need some help here as. Given the various data types in access what is the maximum number of characters for each one. I am not asking about the storage size, but the actual characters displayed. I think an example would help: An Integer has a storage size of 2 bytes but the number of characters maximum that will be displayed is 6. The other data types I am wondering about are: Long Single Double Currency Decimal Hopefully this make sense. Thanks for any help in advance. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmajchrz at nycap.rr.com Fri Apr 9 12:35:02 2004 From: jmajchrz at nycap.rr.com (Jeffrey Majchrzak) Date: Fri, 9 Apr 2004 13:35:02 -0400 Subject: [AccessD] Creating a DSN via code Message-ID: <200404091735.i39HZ9Ma021478@ms-smtp-04.nyroc.rr.com> Thank you. I saw this code on the Access web site. Using the code from the site:(I am assuming this section) lngResult = SQLConfigDataSource(0, _ ODBC_ADD_SYS_DSN, _ "SQL Server", _ "DSN=" & JDS_DSN_name & Chr(0) & _ "Server=" & JDS_Server_name & Chr(0) & _ "Database=SvCvMarketing" & Chr(0) & _ "UseProcForPrepare=Yes" & Chr(0) & _ "Description=MDTS Database" & Chr(0) & Chr(0)) How do I add in the User Name and Password? Thanks Again Jeff Majchrzak Date: Fri, 9 Apr 2004 10:19:58 -0500 From: "Elam, Debbie" Subject: RE: [AccessD] Creating a DSN via code To: "'Access Developers discussion and problem solving'" Message-ID: <7B1961ED924D1A459E378C9B1BB22B4C0106BD5F at natexch.jenkens.com> Content-Type: text/plain I got this off of Dev Ashish's site: This example has trusted security through he NT Login. ********************************************************** Option Compare Database Option Explicit '*********************** Code Start *************************** 'Code by Anthony S. Karre via Dev Ashish's Access Web Page ' Const JDS_DSN_name = "Franchise2" Const JDS_Server_name = "DalInt2" ' Raw IP address is used to avoid NT _ Domain name resolution probs. Private Declare Function RegEnumKeyEx Lib "advapi32.dll" _ Alias "RegEnumKeyExA" _ (ByVal hKey As Long, _ ByVal dwIndex As Long, _ ByVal lpName As String, _ lpcbName As Long, _ ByVal lpReserved As Long, _ ByVal lpClass As String, _ lpcbClass As Long, _ ByVal lpftLastWriteTime As String) As Long Private Declare Function RegOpenKeyEx Lib "advapi32.dll" _ Alias "RegOpenKeyExA" _ (ByVal hKey As Long, _ ByVal lpSubKey As String, _ ByVal ulOptions As Long, _ ByVal samDesired As Long, phkResult As Long) As Long Private Declare Function SQLConfigDataSource Lib "odbccp32.dll" _ (ByVal hwndParent As Long, _ ByVal fRequest As Integer, _ ByVal lpszDriver As String, _ ByVal lpszAttributes As String) As Long Private Declare Function RegCloseKey Lib "advapi32.dll" _ (ByVal hKey As Long) As Long Const HKEY_LOCAL_MACHINE = &H80000002 Const ERROR_SUCCESS = 0& Const SYNCHRONIZE = &H100000 Const STANDARD_RIGHTS_READ = &H20000 Const STANDARD_RIGHTS_WRITE = &H20000 Const STANDARD_RIGHTS_EXECUTE = &H20000 Const STANDARD_RIGHTS_REQUIRED = &HF0000 Const STANDARD_RIGHTS_ALL = &H1F0000 Const KEY_QUERY_VALUE = &H1 Const KEY_SET_VALUE = &H2 Const KEY_CREATE_SUB_KEY = &H4 Const KEY_ENUMERATE_SUB_KEYS = &H8 Const KEY_NOTIFY = &H10 Const KEY_CREATE_LINK = &H20 Const KEY_READ = ((STANDARD_RIGHTS_READ Or _ KEY_QUERY_VALUE Or _ KEY_ENUMERATE_SUB_KEYS Or _ KEY_NOTIFY) And _ (Not SYNCHRONIZE)) Const REG_DWORD = 4 Const REG_BINARY = 3 Const REG_SZ = 1 Const ODBC_ADD_SYS_DSN = 4 Function Check_SDSN() ' Look for our System Data Source Name. If we find it, then great! ' If not, then let's create one on the fly. Dim lngKeyHandle As Long Dim lngResult As Long Dim lngCurIdx As Long Dim strValue As String Dim classValue As String Dim timeValue As String Dim lngValueLen As Long Dim classlngValueLen As Long Dim lngData As Long Dim lngDataLen As Long Dim strResult As String Dim DSNfound As Long Dim syscmdresult As Long syscmdresult = SysCmd(acSysCmdSetStatus, "Looking for System DSN " & JDS_DSN_name & " ...") ' Let's open the registry key that contains all of the ' System Data Source Names. lngResult = RegOpenKeyEx(HKEY_LOCAL_MACHINE, _ "SOFTWARE\ODBC\ODBC.INI", _ 0&, _ KEY_READ, _ lngKeyHandle) If lngResult <> ERROR_SUCCESS Then MsgBox "ERROR: Cannot open the registry key HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI." & vbCrLf & vbCrLf & _ "Please make sure that ODBC and the SQL Server ODBC drivers have been installed." & vbCrLf & _ "Contact call your MDTS System Administrator for more information." syscmdresult = SysCmd(acSysCmdClearStatus) Check_SDSN = -1 End If ' Now that the key is open, Let's look among all of ' the possible system data source names for the one ' we want. lngCurIdx = 0 DSNfound = False Do lngValueLen = 512 classlngValueLen = 512 strValue = String(lngValueLen, 0) classValue = String(classlngValueLen, 0) timeValue = String(lngValueLen, 0) lngDataLen = 512 lngResult = RegEnumKeyEx(lngKeyHandle, _ lngCurIdx, _ strValue, _ lngValueLen, _ 0&, _ classValue, _ classlngValueLen, _ timeValue) lngCurIdx = lngCurIdx + 1 If lngResult = ERROR_SUCCESS Then ' Is this our System Data Source Name? If strValue = JDS_DSN_name Then ' It is! Let's assume everything is good and do nothing. DSNfound = True syscmdresult = SysCmd(acSysCmdClearStatus) End If End If Loop While lngResult = ERROR_SUCCESS And Not DSNfound Call RegCloseKey(lngKeyHandle) If Not DSNfound Then ' Our System Data Source Name doesn't exist, so let's ' try to create it on the fly. syscmdresult = SysCmd(acSysCmdSetStatus, "Creating System DSN " & JDS_DSN_name & "...") lngResult = SQLConfigDataSource(0, _ ODBC_ADD_SYS_DSN, _ "SQL Server", _ "DSN=" & JDS_DSN_name & Chr(0) & _ "Server=" & JDS_Server_name & Chr(0) & _ "Database=FranchiseReg" & Chr(0) & _ "UseProcForPrepare=Yes" & Chr(0) & _ "Network=dbmssocn" & Chr(0) & _ "Description=Franchise" & Chr(0) & Chr(0)) If lngResult = False Then MsgBox "ERROR: Could not create the System DSN " & JDS_DSN_name & "." & vbCrLf & vbCrLf & _ "Please make sure that the SQL Server ODBC drivers have been installed." & vbCrLf & _ "Contact your System Administrator for more information." syscmdresult = SysCmd(acSysCmdClearStatus) Check_SDSN = -1 End If End If syscmdresult = SysCmd(acSysCmdClearStatus) Check_SDSN = 0 End Function '*********************** Code End *************************** -----Original Message----- From: Jeffrey Majchrzak [mailto:jmajchrz at nycap.rr.com] Sent: Friday, April 09, 2004 10:03 AM To: accessD at databaseadvisors.com Subject: [AccessD] Creating a DSN via code I have an application that is going to have the backend upsized to SQL Server 2000. This application sits on about 50 desktops. Would anyone have any code examples that I can view to create a DSN connection? The DSN will have the same username and password for all users so I would like the code to auto fill the username and password when creating the DSN. Thank you in advance for all your help. Jeffrey Majchrzak Empire Computer Consulting From jeffrey.demulling at usbank.com Fri Apr 9 12:55:51 2004 From: jeffrey.demulling at usbank.com (jeffrey.demulling at usbank.com) Date: Fri, 9 Apr 2004 12:55:51 -0500 Subject: [AccessD] Creating a DSN via code Message-ID: "USER=<>, PWD=<>" "Jeffrey Majchrzak" To: accessd at databaseadvisors.com Sent by: cc: accessd-bounces at databasea Subject: RE: [AccessD] Creating a DSN via code dvisors.com 04/09/2004 12:35 PM Please respond to "Access Developers discussion and problem solving" Thank you. I saw this code on the Access web site. Using the code from the site:(I am assuming this section) lngResult = SQLConfigDataSource(0, _ ODBC_ADD_SYS_DSN, _ "SQL Server", _ "DSN=" & JDS_DSN_name & Chr(0) & _ "Server=" & JDS_Server_name & Chr(0) & _ "Database=SvCvMarketing" & Chr(0) & _ "UseProcForPrepare=Yes" & Chr(0) & _ "Description=MDTS Database" & Chr(0) & Chr(0)) How do I add in the User Name and Password? Thanks Again Jeff Majchrzak Date: Fri, 9 Apr 2004 10:19:58 -0500 From: "Elam, Debbie" Subject: RE: [AccessD] Creating a DSN via code To: "'Access Developers discussion and problem solving'" Message-ID: <7B1961ED924D1A459E378C9B1BB22B4C0106BD5F at natexch.jenkens.com> Content-Type: text/plain I got this off of Dev Ashish's site: This example has trusted security through he NT Login. ********************************************************** Option Compare Database Option Explicit '*********************** Code Start *************************** 'Code by Anthony S. Karre via Dev Ashish's Access Web Page ' Const JDS_DSN_name = "Franchise2" Const JDS_Server_name = "DalInt2" ' Raw IP address is used to avoid NT _ Domain name resolution probs. Private Declare Function RegEnumKeyEx Lib "advapi32.dll" _ Alias "RegEnumKeyExA" _ (ByVal hKey As Long, _ ByVal dwIndex As Long, _ ByVal lpName As String, _ lpcbName As Long, _ ByVal lpReserved As Long, _ ByVal lpClass As String, _ lpcbClass As Long, _ ByVal lpftLastWriteTime As String) As Long Private Declare Function RegOpenKeyEx Lib "advapi32.dll" _ Alias "RegOpenKeyExA" _ (ByVal hKey As Long, _ ByVal lpSubKey As String, _ ByVal ulOptions As Long, _ ByVal samDesired As Long, phkResult As Long) As Long Private Declare Function SQLConfigDataSource Lib "odbccp32.dll" _ (ByVal hwndParent As Long, _ ByVal fRequest As Integer, _ ByVal lpszDriver As String, _ ByVal lpszAttributes As String) As Long Private Declare Function RegCloseKey Lib "advapi32.dll" _ (ByVal hKey As Long) As Long Const HKEY_LOCAL_MACHINE = &H80000002 Const ERROR_SUCCESS = 0& Const SYNCHRONIZE = &H100000 Const STANDARD_RIGHTS_READ = &H20000 Const STANDARD_RIGHTS_WRITE = &H20000 Const STANDARD_RIGHTS_EXECUTE = &H20000 Const STANDARD_RIGHTS_REQUIRED = &HF0000 Const STANDARD_RIGHTS_ALL = &H1F0000 Const KEY_QUERY_VALUE = &H1 Const KEY_SET_VALUE = &H2 Const KEY_CREATE_SUB_KEY = &H4 Const KEY_ENUMERATE_SUB_KEYS = &H8 Const KEY_NOTIFY = &H10 Const KEY_CREATE_LINK = &H20 Const KEY_READ = ((STANDARD_RIGHTS_READ Or _ KEY_QUERY_VALUE Or _ KEY_ENUMERATE_SUB_KEYS Or _ KEY_NOTIFY) And _ (Not SYNCHRONIZE)) Const REG_DWORD = 4 Const REG_BINARY = 3 Const REG_SZ = 1 Const ODBC_ADD_SYS_DSN = 4 Function Check_SDSN() ' Look for our System Data Source Name. If we find it, then great! ' If not, then let's create one on the fly. Dim lngKeyHandle As Long Dim lngResult As Long Dim lngCurIdx As Long Dim strValue As String Dim classValue As String Dim timeValue As String Dim lngValueLen As Long Dim classlngValueLen As Long Dim lngData As Long Dim lngDataLen As Long Dim strResult As String Dim DSNfound As Long Dim syscmdresult As Long syscmdresult = SysCmd(acSysCmdSetStatus, "Looking for System DSN " & JDS_DSN_name & " ...") ' Let's open the registry key that contains all of the ' System Data Source Names. lngResult = RegOpenKeyEx(HKEY_LOCAL_MACHINE, _ "SOFTWARE\ODBC\ODBC.INI", _ 0&, _ KEY_READ, _ lngKeyHandle) If lngResult <> ERROR_SUCCESS Then MsgBox "ERROR: Cannot open the registry key HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI." & vbCrLf & vbCrLf & _ "Please make sure that ODBC and the SQL Server ODBC drivers have been installed." & vbCrLf & _ "Contact call your MDTS System Administrator for more information." syscmdresult = SysCmd(acSysCmdClearStatus) Check_SDSN = -1 End If ' Now that the key is open, Let's look among all of ' the possible system data source names for the one ' we want. lngCurIdx = 0 DSNfound = False Do lngValueLen = 512 classlngValueLen = 512 strValue = String(lngValueLen, 0) classValue = String(classlngValueLen, 0) timeValue = String(lngValueLen, 0) lngDataLen = 512 lngResult = RegEnumKeyEx(lngKeyHandle, _ lngCurIdx, _ strValue, _ lngValueLen, _ 0&, _ classValue, _ classlngValueLen, _ timeValue) lngCurIdx = lngCurIdx + 1 If lngResult = ERROR_SUCCESS Then ' Is this our System Data Source Name? If strValue = JDS_DSN_name Then ' It is! Let's assume everything is good and do nothing. DSNfound = True syscmdresult = SysCmd(acSysCmdClearStatus) End If End If Loop While lngResult = ERROR_SUCCESS And Not DSNfound Call RegCloseKey(lngKeyHandle) If Not DSNfound Then ' Our System Data Source Name doesn't exist, so let's ' try to create it on the fly. syscmdresult = SysCmd(acSysCmdSetStatus, "Creating System DSN " & JDS_DSN_name & "...") lngResult = SQLConfigDataSource(0, _ ODBC_ADD_SYS_DSN, _ "SQL Server", _ "DSN=" & JDS_DSN_name & Chr(0) & _ "Server=" & JDS_Server_name & Chr(0) & _ "Database=FranchiseReg" & Chr(0) & _ "UseProcForPrepare=Yes" & Chr(0) & _ "Network=dbmssocn" & Chr(0) & _ "Description=Franchise" & Chr(0) & Chr(0)) If lngResult = False Then MsgBox "ERROR: Could not create the System DSN " & JDS_DSN_name & "." & vbCrLf & vbCrLf & _ "Please make sure that the SQL Server ODBC drivers have been installed." & vbCrLf & _ "Contact your System Administrator for more information." syscmdresult = SysCmd(acSysCmdClearStatus) Check_SDSN = -1 End If End If syscmdresult = SysCmd(acSysCmdClearStatus) Check_SDSN = 0 End Function '*********************** Code End *************************** -----Original Message----- From: Jeffrey Majchrzak [mailto:jmajchrz at nycap.rr.com] Sent: Friday, April 09, 2004 10:03 AM To: accessD at databaseadvisors.com Subject: [AccessD] Creating a DSN via code I have an application that is going to have the backend upsized to SQL Server 2000. This application sits on about 50 desktops. Would anyone have any code examples that I can view to create a DSN connection? The DSN will have the same username and password for all users so I would like the code to auto fill the username and password when creating the DSN. Thank you in advance for all your help. Jeffrey Majchrzak Empire Computer Consulting -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DElam at jenkens.com Fri Apr 9 13:01:56 2004 From: DElam at jenkens.com (Elam, Debbie) Date: Fri, 9 Apr 2004 13:01:56 -0500 Subject: [AccessD] Creating a DSN via code Message-ID: <7B1961ED924D1A459E378C9B1BB22B4C0106BD69@natexch.jenkens.com> I am not sure, however I suspect it should look something like this: lngResult = SQLConfigDataSource(0, _ ODBC_ADD_SYS_DSN, _ "SQL Server", _ "DSN=" & JDS_DSN_name & Chr(0) & _ "Server=" & JDS_Server_name & Chr(0) & _ "Database=SvCvMarketing" & Chr(0) & _ "UseProcForPrepare=Yes" & Chr(0) & _ "Username=YourUserName" & Chr(0) & _ "Password=yourpassword" & Chr(0) & _ "Description=MDTS Database" & Chr(0) & Chr(0)) -----Original Message----- From: Jeffrey Majchrzak [mailto:jmajchrz at nycap.rr.com] Sent: Friday, April 09, 2004 12:35 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Creating a DSN via code Thank you. I saw this code on the Access web site. Using the code from the site:(I am assuming this section) lngResult = SQLConfigDataSource(0, _ ODBC_ADD_SYS_DSN, _ "SQL Server", _ "DSN=" & JDS_DSN_name & Chr(0) & _ "Server=" & JDS_Server_name & Chr(0) & _ "Database=SvCvMarketing" & Chr(0) & _ "UseProcForPrepare=Yes" & Chr(0) & _ "Description=MDTS Database" & Chr(0) & Chr(0)) How do I add in the User Name and Password? Thanks Again Jeff Majchrzak Date: Fri, 9 Apr 2004 10:19:58 -0500 From: "Elam, Debbie" Subject: RE: [AccessD] Creating a DSN via code To: "'Access Developers discussion and problem solving'" Message-ID: <7B1961ED924D1A459E378C9B1BB22B4C0106BD5F at natexch.jenkens.com> Content-Type: text/plain I got this off of Dev Ashish's site: This example has trusted security through he NT Login. ********************************************************** Option Compare Database Option Explicit '*********************** Code Start *************************** 'Code by Anthony S. Karre via Dev Ashish's Access Web Page ' Const JDS_DSN_name = "Franchise2" Const JDS_Server_name = "DalInt2" ' Raw IP address is used to avoid NT _ Domain name resolution probs. Private Declare Function RegEnumKeyEx Lib "advapi32.dll" _ Alias "RegEnumKeyExA" _ (ByVal hKey As Long, _ ByVal dwIndex As Long, _ ByVal lpName As String, _ lpcbName As Long, _ ByVal lpReserved As Long, _ ByVal lpClass As String, _ lpcbClass As Long, _ ByVal lpftLastWriteTime As String) As Long Private Declare Function RegOpenKeyEx Lib "advapi32.dll" _ Alias "RegOpenKeyExA" _ (ByVal hKey As Long, _ ByVal lpSubKey As String, _ ByVal ulOptions As Long, _ ByVal samDesired As Long, phkResult As Long) As Long Private Declare Function SQLConfigDataSource Lib "odbccp32.dll" _ (ByVal hwndParent As Long, _ ByVal fRequest As Integer, _ ByVal lpszDriver As String, _ ByVal lpszAttributes As String) As Long Private Declare Function RegCloseKey Lib "advapi32.dll" _ (ByVal hKey As Long) As Long Const HKEY_LOCAL_MACHINE = &H80000002 Const ERROR_SUCCESS = 0& Const SYNCHRONIZE = &H100000 Const STANDARD_RIGHTS_READ = &H20000 Const STANDARD_RIGHTS_WRITE = &H20000 Const STANDARD_RIGHTS_EXECUTE = &H20000 Const STANDARD_RIGHTS_REQUIRED = &HF0000 Const STANDARD_RIGHTS_ALL = &H1F0000 Const KEY_QUERY_VALUE = &H1 Const KEY_SET_VALUE = &H2 Const KEY_CREATE_SUB_KEY = &H4 Const KEY_ENUMERATE_SUB_KEYS = &H8 Const KEY_NOTIFY = &H10 Const KEY_CREATE_LINK = &H20 Const KEY_READ = ((STANDARD_RIGHTS_READ Or _ KEY_QUERY_VALUE Or _ KEY_ENUMERATE_SUB_KEYS Or _ KEY_NOTIFY) And _ (Not SYNCHRONIZE)) Const REG_DWORD = 4 Const REG_BINARY = 3 Const REG_SZ = 1 Const ODBC_ADD_SYS_DSN = 4 Function Check_SDSN() ' Look for our System Data Source Name. If we find it, then great! ' If not, then let's create one on the fly. Dim lngKeyHandle As Long Dim lngResult As Long Dim lngCurIdx As Long Dim strValue As String Dim classValue As String Dim timeValue As String Dim lngValueLen As Long Dim classlngValueLen As Long Dim lngData As Long Dim lngDataLen As Long Dim strResult As String Dim DSNfound As Long Dim syscmdresult As Long syscmdresult = SysCmd(acSysCmdSetStatus, "Looking for System DSN " & JDS_DSN_name & " ...") ' Let's open the registry key that contains all of the ' System Data Source Names. lngResult = RegOpenKeyEx(HKEY_LOCAL_MACHINE, _ "SOFTWARE\ODBC\ODBC.INI", _ 0&, _ KEY_READ, _ lngKeyHandle) If lngResult <> ERROR_SUCCESS Then MsgBox "ERROR: Cannot open the registry key HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI." & vbCrLf & vbCrLf & _ "Please make sure that ODBC and the SQL Server ODBC drivers have been installed." & vbCrLf & _ "Contact call your MDTS System Administrator for more information." syscmdresult = SysCmd(acSysCmdClearStatus) Check_SDSN = -1 End If ' Now that the key is open, Let's look among all of ' the possible system data source names for the one ' we want. lngCurIdx = 0 DSNfound = False Do lngValueLen = 512 classlngValueLen = 512 strValue = String(lngValueLen, 0) classValue = String(classlngValueLen, 0) timeValue = String(lngValueLen, 0) lngDataLen = 512 lngResult = RegEnumKeyEx(lngKeyHandle, _ lngCurIdx, _ strValue, _ lngValueLen, _ 0&, _ classValue, _ classlngValueLen, _ timeValue) lngCurIdx = lngCurIdx + 1 If lngResult = ERROR_SUCCESS Then ' Is this our System Data Source Name? If strValue = JDS_DSN_name Then ' It is! Let's assume everything is good and do nothing. DSNfound = True syscmdresult = SysCmd(acSysCmdClearStatus) End If End If Loop While lngResult = ERROR_SUCCESS And Not DSNfound Call RegCloseKey(lngKeyHandle) If Not DSNfound Then ' Our System Data Source Name doesn't exist, so let's ' try to create it on the fly. syscmdresult = SysCmd(acSysCmdSetStatus, "Creating System DSN " & JDS_DSN_name & "...") lngResult = SQLConfigDataSource(0, _ ODBC_ADD_SYS_DSN, _ "SQL Server", _ "DSN=" & JDS_DSN_name & Chr(0) & _ "Server=" & JDS_Server_name & Chr(0) & _ "Database=FranchiseReg" & Chr(0) & _ "UseProcForPrepare=Yes" & Chr(0) & _ "Network=dbmssocn" & Chr(0) & _ "Description=Franchise" & Chr(0) & Chr(0)) If lngResult = False Then MsgBox "ERROR: Could not create the System DSN " & JDS_DSN_name & "." & vbCrLf & vbCrLf & _ "Please make sure that the SQL Server ODBC drivers have been installed." & vbCrLf & _ "Contact your System Administrator for more information." syscmdresult = SysCmd(acSysCmdClearStatus) Check_SDSN = -1 End If End If syscmdresult = SysCmd(acSysCmdClearStatus) Check_SDSN = 0 End Function '*********************** Code End *************************** -----Original Message----- From: Jeffrey Majchrzak [mailto:jmajchrz at nycap.rr.com] Sent: Friday, April 09, 2004 10:03 AM To: accessD at databaseadvisors.com Subject: [AccessD] Creating a DSN via code I have an application that is going to have the backend upsized to SQL Server 2000. This application sits on about 50 desktops. Would anyone have any code examples that I can view to create a DSN connection? The DSN will have the same username and password for all users so I would like the code to auto fill the username and password when creating the DSN. Thank you in advance for all your help. Jeffrey Majchrzak Empire Computer Consulting -- _______________________________________________ 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 garykjos at hotmail.com Fri Apr 9 13:15:34 2004 From: garykjos at hotmail.com (Gary Kjos) Date: Fri, 09 Apr 2004 13:15:34 -0500 Subject: [AccessD] cumulative record count question Message-ID: >>>>>The problem is when the 10th thru the 15th record are the same values >>>>>all of >them show up! <<<<< Hopefully you have some sort of Unique Key or something you could include to sort by so you don't get the "ties" included. You don't have to include it in the output results, just in the order by part. Gary Kjos garykjos at hotmail.com _________________________________________________________________ Get rid of annoying pop-up ads with the new MSN Toolbar ? FREE! http://toolbar.msn.com/go/onm00200414ave/direct/01/ From j.frederick at att.net Fri Apr 9 13:22:05 2004 From: j.frederick at att.net (John Frederick) Date: Fri, 9 Apr 2004 14:22:05 -0400 Subject: [AccessD] Creating a DSN via code In-Reply-To: <200404091503.i39F36df010970@ms-smtp-01.nyroc.rr.com> Message-ID: I suggest that you: 1. Use the DSN wizard that you get in Control Pane\ODBC to make a file DSN for your SQL Server link. Save it where you can find it. This gets you a working Connection string the easy way. 2. Open the file DSN with notepad and make the contents the body of a DSN-less Connection string in your code. It sounds like it can be completely canned and the same for all your workstations. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jeffrey Majchrzak Sent: Friday, April 09, 2004 11:03 AM To: accessD at databaseadvisors.com Subject: [AccessD] Creating a DSN via code I have an application that is going to have the backend upsized to SQL Server 2000. This application sits on about 50 desktops. Would anyone have any code examples that I can view to create a DSN connection? The DSN will have the same username and password for all users so I would like the code to auto fill the username and password when creating the DSN. Thank you in advance for all your help. Jeffrey Majchrzak Empire Computer Consulting -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mastercafe at ctv.es Fri Apr 9 19:02:04 2004 From: mastercafe at ctv.es (MastercafeCTV) Date: Sat, 10 Apr 2004 02:02:04 +0200 Subject: [AccessD] My details In-Reply-To: <200404091308.i39D8VB10981@databaseadvisors.com> Message-ID: <007901c41e8f$0f2dc170$0300a8c0@masterserver> TAKE CARE WITH ALL MAIL SIMILAR OF THIS. The attachment archive is a potential worm. Juan Menendez Crespo ================================ Mastercafe S.L. NIF - B82.617.614 c/ Pi?eres 4, 1?D (33430 Candas - Asturias) Juan Menendez Crespo juan at mastercafe.com www.mastercafe.com info at mastercafe.com ================================ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of budge at magicaldesk.com Sent: viernes, 09 de abril de 2004 15:09 To: accessd at databaseadvisors.com Subject: [AccessD] My details Hello! Please notice the attached detailed document. Thank you +++ X-Attachment-Type: document +++ X-Attachment-Status: no virus found +++ Powered by the new F-Secure OnlineAntiVirus +++ Visit us: www.f-secure.com From mastercafe at ctv.es Fri Apr 9 19:39:00 2004 From: mastercafe at ctv.es (MastercafeCTV) Date: Sat, 10 Apr 2004 02:39:00 +0200 Subject: [AccessD] Password VBA Problem In-Reply-To: <20040409135009.DXGI1810.imf18aec.mail.bellsouth.net@SUSANONE> Message-ID: <000001c41e94$378fa390$0300a8c0@masterserver> Hi group, last week we make a big stupidity. Trying to protect our application we introduce password protection on the main MDB but I don't know how actually the main MDB have not the password but the VBA Code yes. We try to unlock the password but was impossible, the application said that There isn't password protect, but if you try to edit some code they take PASSWORD PROTECT. The big problem is that the password that we put we can't try to rewrite, I suppose that the number and letters have a little difference. We download all utilities to recover the password, but all said the same NOT PASSWORD PROTECT. What can we do?? Are there any tool to unlock this?? We try with ACPR, AccessKey, and another 5 similar utilities. We check the MDB for a possible corrupted file, but the program run perfectly... only can't access to the main source code. Thanks in advance Juan Menendez Crespo ================================ Mastercafe S.L. NIF - B82.617.614 c/ Pi?eres 4, 1?D (33430 Candas - Asturias) Juan Menendez Crespo juan at mastercafe.com www.mastercafe.com info at mastercafe.com ================================ From jimdettman at earthlink.net Sat Apr 10 07:26:02 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Sat, 10 Apr 2004 08:26:02 -0400 Subject: [AccessD] Password VBA Problem In-Reply-To: <000001c41e94$378fa390$0300a8c0@masterserver> Message-ID: Juan, All the utilities have failed because the password you applied is for the VBA project file. That is not the same as the database password and it is not user level Access (workgroup) security. I have never seen any code floating around to do handle that nor have I seen any utilities. I'm sure it's one of those things that Microsoft actively tries to keep to a minimum as it would not apply only to Access, but every other product that uses VBA as well. Unless someone on list knows how to tackle it, I would suggest a Google search, but I think you'll find that your out of luck. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MastercafeCTV Sent: Friday, April 09, 2004 8:39 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Password VBA Problem Hi group, last week we make a big stupidity. Trying to protect our application we introduce password protection on the main MDB but I don't know how actually the main MDB have not the password but the VBA Code yes. We try to unlock the password but was impossible, the application said that There isn't password protect, but if you try to edit some code they take PASSWORD PROTECT. The big problem is that the password that we put we can't try to rewrite, I suppose that the number and letters have a little difference. We download all utilities to recover the password, but all said the same NOT PASSWORD PROTECT. What can we do?? Are there any tool to unlock this?? We try with ACPR, AccessKey, and another 5 similar utilities. We check the MDB for a possible corrupted file, but the program run perfectly... only can't access to the main source code. Thanks in advance Juan Menendez Crespo ================================ Mastercafe S.L. NIF - B82.617.614 c/ Pi?eres 4, 1?D (33430 Candas - Asturias) Juan Menendez Crespo juan at mastercafe.com www.mastercafe.com info at mastercafe.com ================================ -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mastercafe at ctv.es Sat Apr 10 09:57:42 2004 From: mastercafe at ctv.es (MastercafeCTV) Date: Sat, 10 Apr 2004 16:57:42 +0200 Subject: [AccessD] Password VBA Problem SOLVED In-Reply-To: Message-ID: <000001c41f0c$2d398730$0300a8c0@masterserver> Finally only 40h working to detect the problem and the solution was easy: We have a first problem with the main MDB file with some Query's with a corrupted part that Compact & Repair don't repair. We eliminate this.... Second part use the VBAKey 6.3 from www.lostpassword.com (registred version to see all password) and ready, we obtain the main password for VBA project. Import all tables, queries, forms, macros, and vba modules in a new MDB file. Solved the password problem Hope this solution can help another programmers like with pwd problems. Juan Menendez Crespo MASTERCAFE ================================ Mastercafe S.L. NIF - B82.617.614 c/ Pi?eres 4, 1?D (33430 Candas - Asturias) Juan Menendez Crespo juan at mastercafe.com www.mastercafe.com info at mastercafe.com ================================ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: s?bado, 10 de abril de 2004 14:26 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Password VBA Problem Juan, All the utilities have failed because the password you applied is for the VBA project file. That is not the same as the database password and it is not user level Access (workgroup) security. I have never seen any code floating around to do handle that nor have I seen any utilities. I'm sure it's one of those things that Microsoft actively tries to keep to a minimum as it would not apply only to Access, but every other product that uses VBA as well. Unless someone on list knows how to tackle it, I would suggest a Google search, but I think you'll find that your out of luck. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MastercafeCTV Sent: Friday, April 09, 2004 8:39 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Password VBA Problem Hi group, last week we make a big stupidity. Trying to protect our application we introduce password protection on the main MDB but I don't know how actually the main MDB have not the password but the VBA Code yes. We try to unlock the password but was impossible, the application said that There isn't password protect, but if you try to edit some code they take PASSWORD PROTECT. The big problem is that the password that we put we can't try to rewrite, I suppose that the number and letters have a little difference. We download all utilities to recover the password, but all said the same NOT PASSWORD PROTECT. What can we do?? Are there any tool to unlock this?? We try with ACPR, AccessKey, and another 5 similar utilities. We check the MDB for a possible corrupted file, but the program run perfectly... only can't access to the main source code. Thanks in advance Juan Menendez Crespo ================================ Mastercafe S.L. NIF - B82.617.614 c/ Pi?eres 4, 1?D (33430 Candas - Asturias) Juan Menendez Crespo juan at mastercafe.com www.mastercafe.com info at mastercafe.com ================================ -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From spikee at oatlandspark.org.uk Sat Apr 10 10:08:33 2004 From: spikee at oatlandspark.org.uk (Chris Foote (Spike)) Date: Sat, 10 Apr 2004 16:08:33 +0100 Subject: [AccessD] Password VBA Problem SOLVED Message-ID: Glad you got it sorted-out Juan! Thanks for posting your solution. Best regards! Chris Foote - UK spike at ugandanetwork.org.uk -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MastercafeCTV Sent: 10 April 2004 15:58 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Password VBA Problem SOLVED Finally only 40h working to detect the problem and the solution was easy: ---------(Snip)--------- From andy at minstersystems.co.uk Sat Apr 10 14:43:36 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Sat, 10 Apr 2004 20:43:36 +0100 Subject: [AccessD] BEU Enhancement In-Reply-To: Message-ID: <01b901c41f34$1dd9f400$b274d0d5@minster33c3r25> Concur with Reuben. Exactly what I do. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Reuben Cummings > Sent: 09 April 2004 16:33 > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] BEU Enhancement > > > I have added tables like mad to some db's and never had a > problem. This issue was covered in development (unless I > don't understand what you are saying). > > There is a function to check what tables to relink or not > relink (beuDBACheckLink). > > In my relinking code I have the following line: > If beuDBACheckLink(tdf.name, strFileName) Then > > Are you sure you placed this call in the relinker as stated > in the manual? Re-Read PAGES 2 AND 3 of the BEU manual to see > what to call and where to place it. > > I suggest we thoroughly explore the beuDBACheckLink module > and the call from the relinker before making any changes to code. > > 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, April 08, 2004 12:12 PM > > To: accessd at databaseadvisors.com > > Subject: Re: [AccessD] BEU Enchancement > > > > > > I've ran across this problem, or one very similar, in the > past couple > > of weeks. > > > > I won't say this is the prefered fix for it, since this is Reuben's > > function, but it's what I did to make it work. Please feel free to > > pass this on to the person using it: > > > > In the beuDBAValidateBEPathnction of the > basbeuDBAisdbuptodate module: > > > > Maybe 15 lines down, or so, the line that starts, and > continues on for > > 4 lines strSQL = "SELECT .... > > > > replace it with, and watch fro wrapping: > > > > strSQL = "SELECT tblDBAModifyDatabase.ParameterValue, > > tblDBAModifyDatabaseMods.HowCounter" _ > > & " FROM tblDBAModifyDatabaseMods INNER JOIN > tblDBAModifyDatabase > > ON tblDBAModifyDatabaseMods.ModNumber = > > tblDBAModifyDatabase.ModNumber" _ > > & " WHERE tblDBAModifyDatabaseMods.WhatCounter=2 AND > > tblDBAModifyDatabaseMods.HowCounter=2" _ > > & " AND tblDBAModifyDatabaseMods.State<>-1;" > > > > What this does is allows the link validation to take place > on a table > > added by the BEU as long as it's was added correctly and > had it's mod > > state cahnged to True. > > > > Now, I am using an Alpha of V2, so (s)he *may* need to > tweak it a bit > > for V 1.58, but I don't think it will be necessary. > > > > Bryan Carbonnell > > bryan_carbonnelL at cbc.ca > > > > > > >>> jimdettman at earthlink.net 08-Apr-04 12:49:34 PM >>> > > Reuben, Andy, Lembit, or Bryan > > > > I recommended the BEU to someone and their using > relinking code in > > their app. The problem is, it quits the app if a relink cannot be > > performed on a > > table, which is the case when you add a new table via the BEU. To > > help > > developers around that problem, I would suggest adding a > function call > > that > > checks the BEU task list and returns True if it finds the > table name. > > Example: > > > > ' In relink code > > > > If Not IsNewBEUTable(strTableName) then > > ' Relink the table > > End If > > > > > > ' Function added to BEU. > > Public Function IsNewBEUTable(strTableName as string) as integer > > > > ' Check BEU task table to see if strTableName is added > > ' Pass back True if found or False if not. > > > > End Function > > > > I'm not sure exactly what needs to be done to actually > identifiy the > > table in the task list because I haven't dug deep enough, but I > > thought I'd pass > > along the suggestion at least. > > > > Jim Dettman > > President, > > Online Computer Services of WNY, Inc. > > (315) 699-3443 > > jimdettman 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/a> ccessd > Website: > http://www.databaseadvisors.com > > From artful at rogers.com Sat Apr 10 19:52:31 2004 From: artful at rogers.com (Arthur Fuller) Date: Sat, 10 Apr 2004 17:52:31 -0700 Subject: [AccessD] ORDER BY BUG using Date format AARHG In-Reply-To: <4425303804.20040402155722@cactus.dk> Message-ID: <015101c41f5f$455e2b10$6501a8c0@rock> The bug is that Format() creates a string not a date field. To get accurate date order, include the date field as well but don't show it, just order by it. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, April 02, 2004 5:57 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] ORDER BY BUG using Date format AARHG Hi Sander Well - but what is the bug and how did you solve it? /gustav > Hi gustav, > I've solved the problem. Twas a nasty one. > but euh try it if you want. create a table with a date field like > below and run the query...no go! > Thanx anyway. > Sander > Gustav Brock wrote: > Hi Sander > Your "stupid" test is correct as it sorts DESC on a string. > Try this which I think is what Bert-Jan has in mind: > SELECT DISTINCT > Format([TblArbo].[Datum], "dd-mmm-yyyy") > FROM > TblArbo > ORDER BY > [TblArbo].[Datum] DESC; > /gustav >> I've got a combobox based on a query: >> SELECT DISTINCT [TblArbo].[Datum] >> FROM TblArbo >> ORDER BY [TblArbo].[Datum] DESC; >> Resulted in: >> 01-10-2003 >> 02-09-2003 >> 21-08-2001 >> The user asked if this could be printed in the following format: >> dd-mmm-yyyy No problem, says stupid me: SELECT DISTINCT >> Format([TblArbo].[Datum],"dd-mmm-yyyy") >> FROM TblArbo >> ORDER BY Format([TblArbo].[Datum],"dd-mmm-yyyy") DESC; >> But now the ORDER BY ONLY checks the DD part?!?!?!?! >> So this results in: >> 21-08-2001 >> 02-09-2003 >> 01-10-2003 >> ?!!??! What kind of nonsense is this? -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Sat Apr 10 20:19:11 2004 From: artful at rogers.com (Arthur Fuller) Date: Sat, 10 Apr 2004 18:19:11 -0700 Subject: [AccessD] OT: open source In-Reply-To: <000b01c41bed$e465ea60$9111758f@aine> Message-ID: <015801c41f62$fedb2f90$6501a8c0@rock> IMO there would be a significant shift in the Linux world if somebody released something even close to Access. Yeah, there's Jbuilder and Kylix and such, and a few dbAdmin apps for MySQL, but there is no free or inexpensive RAD db dev app for Linux... And until there is, few if any of us will move our businesses there. If I were good enough to clone Access, I'd do it. Sadly, I'm not. It would take several programmers a year or more. Let's face it, Access is a brilliant piece of work, despite its bugs and its price. Tough to clone and deliver the equivalent functionality, especially given VBA, a project unto itself. Borland has done well, but their solution is pricy. Yeah, you can grab a small version free but it's missing all the components you would need for real-world dev, so how does that help? IMO they would do much better with a free 120-day licensing scheme, so you could actually try to build something serious, and if it looks like it's gonna work, then you can click the button and pay the money. A further complication in attempting to clone Access for Linux is the multiple targets. You could do as MS did and begin with one target, and publish an API to invite other players into the mix -- the Linux equivalent of ODBC, hopefully done smarter and better. Probably start with MySQL, then as you gained groundswell, expand the targets to include maybe PostGres and Cache, leaving Oracle etc. to their vendors to write using the API. Big work. Some of the stuff has been written already and is open-source so it can be grabbed with a thang-ya-very-much, but the job remains huge... IMO way way beyond the scope of one brilliant developer. Needs a team of brilliant developers plus an architect. AFACS, the Linux community is not interested, or to put it more graciously, realizes the size of the problem and is not interested. If there was an Access clone in the Linux world, I would IMMEDIATELY recommend to all my clients that they abandon Windows. But there isn't, and so despite my emotional/political slant, I am forced to recommend Windows solutions -- it works, and it's RAD, and that means it's relatively cheap. I would so much prefer to recommend some product called MyAccess, which works with MySQL and maybe other Linux databases, but until that emerges, I have to say that Access is the cheap way to go. I can ship runtimes if you don't want to pay the licensing for Access on every box. This assumes a WindX environment, but if the bottom line and the ROI matter, then Win + Access win. I don't like it much, but that's how I see it. Wish it were otherwise. Arthur -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Tuesday, April 06, 2004 8:43 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: open source WHy should we move? Money, costs us a fortune for MS licences Martin ----- Original Message ----- From: "Susan Harkins" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, April 06, 2004 4:24 PM Subject: RE: [AccessD] OT: open source > But why should they? > > Susan H. > > >From our point of view it would be difficult in terms of > money and infrastructure to change over. The amount of work would be massive > requiring a substantial investment in both hardware, software and training. > > Its not impossible just take the will to make the move. > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Sun Apr 11 21:14:14 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sun, 11 Apr 2004 22:14:14 -0400 Subject: [AccessD] Framework Discussion page rebuild Message-ID: I have gone through all of the discussions and built a specific mdb and matching document zipped as a pair in a zip file. The framework discussion page on my site now has 12 "chapters" built in this manner. This should make following the document easier. Anyone going through the new document / database who finds any issues please email me offline to let me know and I will attempt to get such issues fixed and reposted. I did have to go carve out some of the chapters from the databases where I had just updated the db for several chapters so there may be a few issues. Again, I will attempt to fix any issues brought to my attention and repost. In the future, all documents will be built with a matching database as the document is written and so should match "exactly". More are on the way. I use a class for Openargs that parse the args and apply known framework args directly. This lecture is almost finished. If anyone has any suggestions for future lectures please contact me offline or post them here if you want to stimulate discussion. John W. Colby www.ColbyConsulting.com From DWUTKA at marlow.com Mon Apr 12 00:51:37 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 12 Apr 2004 00:51:37 -0500 Subject: [AccessD] Wolfwares Archives temporarily offline! Message-ID: <2F8793082E00D4119A1700B0D0216BF802227AA9@main2.marlow.com> Just an FYI, I was in the middle of moving, so I am just now getting a chance to send this email. The archives at http://www.wolfwares.com/AccessD are temporarily offline. I have my server at work, hooked up to a T1, but it's setup specifically for some other stuff I am hosting. DSL at my new place is supposed to be online this Thursday, so the archives will be back up then. Drew P.S.-- This was a planned move (sort of...didn't plan enough! LOL), nothing like I've had to deal with in the past. I am exhausted though. Drew's living arrangements puts the Atkins diet to shame! LOL. From DWUTKA at marlow.com Mon Apr 12 10:19:02 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 12 Apr 2004 10:19:02 -0500 Subject: [AccessD] MS product deployment through an IIS server Message-ID: <2F8793082E00D4119A1700B0D0216BF802227AAD@main2.marlow.com> Are you talking about Outlook Web Access? (OWA for short) OWA is a component of Microsoft Exchange. It is a 'web site' built with ASP pages. Pretty slick, but as far as I know, there are no Word, Excel or Access equivalents. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Lawrence (AccessD) Sent: Thursday, April 08, 2004 1:23 AM To: Access Developers discussion and problem solving Subject: [AccessD] MS product deployment through an IIS server Hi All: Does anyone know the method or where to get information on deploying an application through an IIS server (version 5plus) via your web browser. My understanding is that all MS products can be ran in this way. I have been looking at one application, Outlook, that is ran through an IIS server, from work and can pick up and respond to the mail messages as if I was there...eliminates the need for hotmail and the like. If this is so, and the applications do not require a complete re-write, it opens up an interesting set of possibilities. TIA Jim -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Mon Apr 12 10:21:52 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 12 Apr 2004 10:21:52 -0500 Subject: [AccessD] A2K:Create Fields via code - Solved Message-ID: <2F8793082E00D4119A1700B0D0216BF802227AAE@main2.marlow.com> Learn ASP first. PHP....yeck. LOL. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Darren DICK Sent: Thursday, April 08, 2004 9:17 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2K:Create Fields via code - Solved Chicken - yes I have people here wanting me to Learn ASP and PHP pronto, but I don't wanna (says he, stamping his foot) Thanks again I did get it solved using the create Number method then changing the attributes of the number data type to something very similar to what you described in one of your original posts BTW - you gonna share the splenda choc chip recipe with the list? :-)) Darren ----- Original Message ----- From: "Susan Harkins" To: "'Access Developers discussion and problem solving'" Sent: Thursday, April 08, 2004 11:54 PM Subject: RE: [AccessD] A2K:Create Fields via code - Solved > Chicken. ;) ... And thank you -- will be stuffing eggs before the day is > through -- and have a great weekend yourself! :) > > I haven't had a peep yet -- not one. > > FWIW, if you don't get this resolved I'd be glad to hand over the exact code > -- I have it somewhere, just a matter of finding it. :) > > Susan H. > > Thanks Susan > I struggle - and I mean struggle - with VBA I have seen code examples in the > 2000 Developer for ADOX. It looks quite relative to VB and VBA but I think I > will give it a miss. > :-)) > (Thanks but no thanks - luddite here) > > Have a great day and a safe Easter > > Thanks again for your help > > 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 dw-murphy at cox.net Mon Apr 12 13:08:44 2004 From: dw-murphy at cox.net (Doug Murphy) Date: Mon, 12 Apr 2004 11:08:44 -0700 Subject: [AccessD] Access 2000 error In-Reply-To: Message-ID: <001001c420b9$31cb9280$8500a8c0@CX615377a> Folks, I inherited an Access 2000 database to do some work on. I have not done anything to the wizard built switchboard but it now breaks an the line "Set con = Application.CurrentProject.Connection". Checked the references and MS data objects active-x library 2.1 is checked. When I type in the same line auto completion fills in all the correct items so the terminology is correct for the given references. Any idea why this thing is breaking? Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Sunday, April 11, 2004 7:14 PM To: AccessD Subject: [AccessD] Framework Discussion page rebuild I have gone through all of the discussions and built a specific mdb and matching document zipped as a pair in a zip file. The framework discussion page on my site now has 12 "chapters" built in this manner. This should make following the document easier. Anyone going through the new document / database who finds any issues please email me offline to let me know and I will attempt to get such issues fixed and reposted. I did have to go carve out some of the chapters from the databases where I had just updated the db for several chapters so there may be a few issues. Again, I will attempt to fix any issues brought to my attention and repost. In the future, all documents will be built with a matching database as the document is written and so should match "exactly". More are on the way. I use a class for Openargs that parse the args and apply known framework args directly. This lecture is almost finished. If anyone has any suggestions for future lectures please contact me offline or post them here if you want to stimulate discussion. 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 DWUTKA at marlow.com Mon Apr 12 13:33:25 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 12 Apr 2004 13:33:25 -0500 Subject: [AccessD] Access 2000 error Message-ID: <2F8793082E00D4119A1700B0D0216BF802227AB2@main2.marlow.com> That is DAO you have set. You need ADO, which is Microsoft ActiveX Data Objects. (I personally set 2.5) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Doug Murphy Sent: Monday, April 12, 2004 1:09 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access 2000 error Folks, I inherited an Access 2000 database to do some work on. I have not done anything to the wizard built switchboard but it now breaks an the line "Set con = Application.CurrentProject.Connection". Checked the references and MS data objects active-x library 2.1 is checked. When I type in the same line auto completion fills in all the correct items so the terminology is correct for the given references. Any idea why this thing is breaking? Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Sunday, April 11, 2004 7:14 PM To: AccessD Subject: [AccessD] Framework Discussion page rebuild I have gone through all of the discussions and built a specific mdb and matching document zipped as a pair in a zip file. The framework discussion page on my site now has 12 "chapters" built in this manner. This should make following the document easier. Anyone going through the new document / database who finds any issues please email me offline to let me know and I will attempt to get such issues fixed and reposted. I did have to go carve out some of the chapters from the databases where I had just updated the db for several chapters so there may be a few issues. Again, I will attempt to fix any issues brought to my attention and repost. In the future, all documents will be built with a matching database as the document is written and so should match "exactly". More are on the way. I use a class for Openargs that parse the args and apply known framework args directly. This lecture is almost finished. If anyone has any suggestions for future lectures please contact me offline or post them here if you want to stimulate discussion. 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 BBarabash at TappeConstruction.com Mon Apr 12 13:35:57 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Mon, 12 Apr 2004 13:35:57 -0500 Subject: [AccessD] OT - MSDN Subscriptions Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE4F2@TAPPEEXCH01> I recall a discussion a while back about discount sources for MSDN subscriptions. We are looking to purchase 5 subscriptions, either Enterprise or possibly Universal depending on the pricing. I found the Universal box here for $1135 (with an additional $300 DVD media discount!): http://www.buycheapsoftware.com/details.asp?productID=696 Can anyone top this? Brett Barabash, MCP Tappe Construction, Co. Eagan, MN bbarabash at tappeconstruction.com (651) 256-6831 "One thing a computer can do that most humans can't is be sealed up in a cardboard box and sit in a warehouse." -Jack Handey -------------------------------------------------------------------------------------------------------------------- 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 BBarabash at TappeConstruction.com Mon Apr 12 13:39:14 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Mon, 12 Apr 2004 13:39:14 -0500 Subject: [AccessD] OT - MSDN Subscriptions Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE4F3@TAPPEEXCH01> Oops, I posted the link to the upgrade version ($1135). The full version is $1200: http://www.buycheapsoftware.com/details.asp?productID=589 (@$#!%? price comparison engines...) -----Original Message----- From: Brett Barabash [mailto:BBarabash at tappeconstruction.com] Sent: Monday, April 12, 2004 1:36 PM To: 'accessd at databaseadvisors.com' Subject: [AccessD] OT - MSDN Subscriptions --------------Please open with care!------------ This message has bypassed some of our spam filtering rules. This message was scanned for viruses and executable code has been stripped. --------------------------------------------------------------- I recall a discussion a while back about discount sources for MSDN subscriptions. We are looking to purchase 5 subscriptions, either Enterprise or possibly Universal depending on the pricing. I found the Universal box here for $1135 (with an additional $300 DVD media discount!): http://www.buycheapsoftware.com/details.asp?productID=696 Can anyone top this? Brett Barabash, MCP Tappe Construction, Co. Eagan, MN bbarabash at tappeconstruction.com (651) 256-6831 "One thing a computer can do that most humans can't is be sealed up in a cardboard box and sit in a warehouse." -Jack Handey ---------------------------------------------------------------------------- ---------------------------------------- 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 -------------------------------------------------------------------------------------------------------------------- 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 dw-murphy at cox.net Mon Apr 12 13:43:38 2004 From: dw-murphy at cox.net (Doug Murphy) Date: Mon, 12 Apr 2004 11:43:38 -0700 Subject: [AccessD] Access 2000 error In-Reply-To: <2F8793082E00D4119A1700B0D0216BF802227AB2@main2.marlow.com> Message-ID: <001101c420be$14baad70$8500a8c0@CX615377a> The ActiveX Data Objects 2.1 (ADO) is checked I just reversed the order of the words in my original message. My dyslexia is showing. Tried 2.5 and got the same message. This may be one of the AccessXP/2000 anomolies. When I move the DB to my XP development machine it works fine. It compiles on both machines. ??? Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: Monday, April 12, 2004 11:33 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Access 2000 error That is DAO you have set. You need ADO, which is Microsoft ActiveX Data Objects. (I personally set 2.5) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Doug Murphy Sent: Monday, April 12, 2004 1:09 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access 2000 error Folks, I inherited an Access 2000 database to do some work on. I have not done anything to the wizard built switchboard but it now breaks an the line "Set con = Application.CurrentProject.Connection". Checked the references and MS data objects active-x library 2.1 is checked. When I type in the same line auto completion fills in all the correct items so the terminology is correct for the given references. Any idea why this thing is breaking? Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Sunday, April 11, 2004 7:14 PM To: AccessD Subject: [AccessD] Framework Discussion page rebuild I have gone through all of the discussions and built a specific mdb and matching document zipped as a pair in a zip file. The framework discussion page on my site now has 12 "chapters" built in this manner. This should make following the document easier. Anyone going through the new document / database who finds any issues please email me offline to let me know and I will attempt to get such issues fixed and reposted. I did have to go carve out some of the chapters from the databases where I had just updated the db for several chapters so there may be a few issues. Again, I will attempt to fix any issues brought to my attention and repost. In the future, all documents will be built with a matching database as the document is written and so should match "exactly". More are on the way. I use a class for Openargs that parse the args and apply known framework args directly. This lecture is almost finished. If anyone has any suggestions for future lectures please contact me offline or post them here if you want to stimulate discussion. 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 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at earthlink.net Mon Apr 12 13:57:45 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Mon, 12 Apr 2004 14:57:45 -0400 Subject: [AccessD] OT - MSDN Subscriptions In-Reply-To: <426071E0B0A6D311B3C0006008B0AB23AFE4F3@TAPPEEXCH01> Message-ID: Brett, I paid $1175 for my Universal subscription, so your $1200 is not that far off. I'm not sure if the folks I deal with would cut you a deal considering that your thinking of 5 or not, but here is a contact: Sheldon Scheu AKS Web Services, LLC sheldon at akswebservices.com Please mention my name. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Brett Barabash Sent: Monday, April 12, 2004 2:39 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - MSDN Subscriptions Oops, I posted the link to the upgrade version ($1135). The full version is $1200: http://www.buycheapsoftware.com/details.asp?productID=589 (@$#!%? price comparison engines...) -----Original Message----- From: Brett Barabash [mailto:BBarabash at tappeconstruction.com] Sent: Monday, April 12, 2004 1:36 PM To: 'accessd at databaseadvisors.com' Subject: [AccessD] OT - MSDN Subscriptions --------------Please open with care!------------ This message has bypassed some of our spam filtering rules. This message was scanned for viruses and executable code has been stripped. --------------------------------------------------------------- I recall a discussion a while back about discount sources for MSDN subscriptions. We are looking to purchase 5 subscriptions, either Enterprise or possibly Universal depending on the pricing. I found the Universal box here for $1135 (with an additional $300 DVD media discount!): http://www.buycheapsoftware.com/details.asp?productID=696 Can anyone top this? Brett Barabash, MCP Tappe Construction, Co. Eagan, MN bbarabash at tappeconstruction.com (651) 256-6831 "One thing a computer can do that most humans can't is be sealed up in a cardboard box and sit in a warehouse." -Jack Handey ---------------------------------------------------------------------------- ---------------------------------------- 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 ---------------------------------------------------------------------------- ---------------------------------------- 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 DWUTKA at marlow.com Mon Apr 12 14:02:05 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 12 Apr 2004 14:02:05 -0500 Subject: [AccessD] Access 2000 error Message-ID: <2F8793082E00D4119A1700B0D0216BF802227AB3@main2.marlow.com> Very odd. I was wondering if you just switched the words around, cause I thought DAO was 'Data Access Objects'. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Doug Murphy Sent: Monday, April 12, 2004 1:44 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Access 2000 error The ActiveX Data Objects 2.1 (ADO) is checked I just reversed the order of the words in my original message. My dyslexia is showing. Tried 2.5 and got the same message. This may be one of the AccessXP/2000 anomolies. When I move the DB to my XP development machine it works fine. It compiles on both machines. ??? Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: Monday, April 12, 2004 11:33 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Access 2000 error That is DAO you have set. You need ADO, which is Microsoft ActiveX Data Objects. (I personally set 2.5) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Doug Murphy Sent: Monday, April 12, 2004 1:09 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access 2000 error Folks, I inherited an Access 2000 database to do some work on. I have not done anything to the wizard built switchboard but it now breaks an the line "Set con = Application.CurrentProject.Connection". Checked the references and MS data objects active-x library 2.1 is checked. When I type in the same line auto completion fills in all the correct items so the terminology is correct for the given references. Any idea why this thing is breaking? Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Sunday, April 11, 2004 7:14 PM To: AccessD Subject: [AccessD] Framework Discussion page rebuild I have gone through all of the discussions and built a specific mdb and matching document zipped as a pair in a zip file. The framework discussion page on my site now has 12 "chapters" built in this manner. This should make following the document easier. Anyone going through the new document / database who finds any issues please email me offline to let me know and I will attempt to get such issues fixed and reposted. I did have to go carve out some of the chapters from the databases where I had just updated the db for several chapters so there may be a few issues. Again, I will attempt to fix any issues brought to my attention and repost. In the future, all documents will be built with a matching database as the document is written and so should match "exactly". More are on the way. I use a class for Openargs that parse the args and apply known framework args directly. This lecture is almost finished. If anyone has any suggestions for future lectures please contact me offline or post them here if you want to stimulate discussion. 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 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From COUTTSW at rjrt.com Mon Apr 12 14:48:11 2004 From: COUTTSW at rjrt.com (Coutts, Welford L.) Date: Mon, 12 Apr 2004 15:48:11 -0400 Subject: [AccessD] Separating First and Last Names Message-ID: <1731B69D9D03DB49881574BBECDE6CAC675D88@wsmailp1.rjr.com> I have received a large file containing a large number of Full Names. I need to separate the First Name and Middle Initial, if any, into one field and the Last Name into a separate field. What is the most efficient way to do this? Thanks! Welford Coutts ----------------------------------------- CONFIDENTIALITY NOTE: This e-mail message, including any attachment(s), contains information that may be confidential, protected by the attorney-client or other legal privileges, and/or proprietary non-public information. If you are not an intended recipient of this message or an authorized assistant to an intended recipient, please notify the sender by replying to this message and then delete it from your system. Use, dissemination, distribution, or reproduction of this message and/or any of its attachments (if any) by unintended recipients is not authorized and may be unlawful. From JRojas at tnco-inc.com Mon Apr 12 15:19:23 2004 From: JRojas at tnco-inc.com (Joe Rojas) Date: Mon, 12 Apr 2004 16:19:23 -0400 Subject: [AccessD] OT - MSDN Subscriptions Message-ID: <806536912C472E4A9D6515DF2E57261E2397BF@mercury.tnco-inc.com> Why is this so cheap? Microsoft advertises it for $2,799. What am I missing? JR -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Monday, April 12, 2004 2:58 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT - MSDN Subscriptions Brett, I paid $1175 for my Universal subscription, so your $1200 is not that far off. I'm not sure if the folks I deal with would cut you a deal considering that your thinking of 5 or not, but here is a contact: Sheldon Scheu AKS Web Services, LLC sheldon at akswebservices.com Please mention my name. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Brett Barabash Sent: Monday, April 12, 2004 2:39 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - MSDN Subscriptions Oops, I posted the link to the upgrade version ($1135). The full version is $1200: http://www.buycheapsoftware.com/details.asp?productID=589 (@$#!%? price comparison engines...) -----Original Message----- From: Brett Barabash [mailto:BBarabash at tappeconstruction.com] Sent: Monday, April 12, 2004 1:36 PM To: 'accessd at databaseadvisors.com' Subject: [AccessD] OT - MSDN Subscriptions --------------Please open with care!------------ This message has bypassed some of our spam filtering rules. This message was scanned for viruses and executable code has been stripped. --------------------------------------------------------------- I recall a discussion a while back about discount sources for MSDN subscriptions. We are looking to purchase 5 subscriptions, either Enterprise or possibly Universal depending on the pricing. I found the Universal box here for $1135 (with an additional $300 DVD media discount!): http://www.buycheapsoftware.com/details.asp?productID=696 Can anyone top this? Brett Barabash, MCP Tappe Construction, Co. Eagan, MN bbarabash at tappeconstruction.com (651) 256-6831 "One thing a computer can do that most humans can't is be sealed up in a cardboard box and sit in a warehouse." -Jack Handey ---------------------------------------------------------------------------- ---------------------------------------- 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 ---------------------------------------------------------------------------- ---------------------------------------- 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 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. From Mark.Mitsules at ngc.com Mon Apr 12 15:24:00 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Mon, 12 Apr 2004 16:24:00 -0400 Subject: [AccessD] Separating First and Last Names Message-ID: Microsoft Knowledge Base Article - 168799 HOWTO: Parse a Person's Name into Multiple Variables http://support.microsoft.com/?kbid=168799 Pay particular attention to the assumptions...but this should give you a good start. Mark -----Original Message----- From: Coutts, Welford L. [mailto:COUTTSW at rjrt.com] Sent: Monday, April 12, 2004 3:48 PM To: Access Developers discussion and problem solving Subject: [AccessD] Separating First and Last Names I have received a large file containing a large number of Full Names. I need to separate the First Name and Middle Initial, if any, into one field and the Last Name into a separate field. What is the most efficient way to do this? Thanks! Welford Coutts ----------------------------------------- CONFIDENTIALITY NOTE: This e-mail message, including any attachment(s), contains information that may be confidential, protected by the attorney-client or other legal privileges, and/or proprietary non-public information. If you are not an intended recipient of this message or an authorized assistant to an intended recipient, please notify the sender by replying to this message and then delete it from your system. Use, dissemination, distribution, or reproduction of this message and/or any of its attachments (if any) by unintended recipients is not authorized and may be unlawful. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Mon Apr 12 15:38:45 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Mon, 12 Apr 2004 13:38:45 -0700 Subject: [AccessD] Separating First and Last Names References: <1731B69D9D03DB49881574BBECDE6CAC675D88@wsmailp1.rjr.com> Message-ID: <017201c420ce$26b2a450$6601a8c0@HAL9002> Welford: I can see all kinds of mines in that field but if they're regular (ie, first name, space, middle initial if any followed by period and space, last name), then it's easy to parse using INSTR. The easiest would be to INSTR a period and break there if it found one. If no period is found then next I would INSTR the first space and break it there. If there are middle initials without periods then you'd have to scan backwards from the end of the name string, character by character, looking for the first space and break it there. This would be just a few lines of code and would execute fast enough so that you could run it and eyeball the results and see how accurate the first pass was. Then begin to add rules to refine the results - take care of the exceptions. Does it have to be 100% perfect? Are there titles on the Dr.s and Prof.s? Are there any compound last names separated by a space? Anyone with two middle names? Did I ask if it had to be 100% perfect? HTH Rocky Smolin Beach Access Software http://www.e-z-mrp.com ----- Original Message ----- From: "Coutts, Welford L." To: "Access Developers discussion and problem solving" Sent: Monday, April 12, 2004 12:48 PM Subject: [AccessD] Separating First and Last Names I have received a large file containing a large number of Full Names. I need to separate the First Name and Middle Initial, if any, into one field and the Last Name into a separate field. What is the most efficient way to do this? Thanks! Welford Coutts ----------------------------------------- CONFIDENTIALITY NOTE: This e-mail message, including any attachment(s), contains information that may be confidential, protected by the attorney-client or other legal privileges, and/or proprietary non-public information. If you are not an intended recipient of this message or an authorized assistant to an intended recipient, please notify the sender by replying to this message and then delete it from your system. Use, dissemination, distribution, or reproduction of this message and/or any of its attachments (if any) by unintended recipients is not authorized and may be unlawful. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BBarabash at TappeConstruction.com Mon Apr 12 15:46:03 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Mon, 12 Apr 2004 15:46:03 -0500 Subject: [AccessD] OT - MSDN Subscriptions Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE4F5@TAPPEEXCH01> Thanks Jim. I dropped your name in an email to him. I'm not really that concerned about the nickels and dimes. I'm more concerned that we buy from a reputable source. If his quote is in the same ballpark as the other sources, I will recommend him instead. It means more to me that we are giving $6k to a reputable source who will deliver the proper goods. -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Monday, April 12, 2004 1:58 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT - MSDN Subscriptions Brett, I paid $1175 for my Universal subscription, so your $1200 is not that far off. I'm not sure if the folks I deal with would cut you a deal considering that your thinking of 5 or not, but here is a contact: Sheldon Scheu AKS Web Services, LLC sheldon at akswebservices.com Please mention my name. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Brett Barabash Sent: Monday, April 12, 2004 2:39 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - MSDN Subscriptions Oops, I posted the link to the upgrade version ($1135). The full version is $1200: http://www.buycheapsoftware.com/details.asp?productID=589 (@$#!%? price comparison engines...) -----Original Message----- From: Brett Barabash [mailto:BBarabash at tappeconstruction.com] Sent: Monday, April 12, 2004 1:36 PM To: 'accessd at databaseadvisors.com' Subject: [AccessD] OT - MSDN Subscriptions --------------Please open with care!------------ This message has bypassed some of our spam filtering rules. This message was scanned for viruses and executable code has been stripped. --------------------------------------------------------------- I recall a discussion a while back about discount sources for MSDN subscriptions. We are looking to purchase 5 subscriptions, either Enterprise or possibly Universal depending on the pricing. I found the Universal box here for $1135 (with an additional $300 DVD media discount!): http://www.buycheapsoftware.com/details.asp?productID=696 Can anyone top this? Brett Barabash, MCP Tappe Construction, Co. Eagan, MN bbarabash at tappeconstruction.com (651) 256-6831 "One thing a computer can do that most humans can't is be sealed up in a cardboard box and sit in a warehouse." -Jack Handey -------------------------------------------------------------------------------------------------------------------- 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 Patricia.O'Connor at dfa.state.ny.us Mon Apr 12 15:52:33 2004 From: Patricia.O'Connor at dfa.state.ny.us (O'Connor, Patricia ) Date: Mon, 12 Apr 2004 16:52:33 -0400 Subject: [AccessD] Separating First and Last Names Message-ID: Well it depends on how the input field is formatted. What if someone does not have a middle name? Is it middle name or just middle initial? Are there suffixes or titles in the name (Sr., Jr., Dr.) What is done about people with two last names or last names with space in middle De Carlo etc. I have some routines that were set up for this on mainframe - I might have converted them to vba but would have to search for them Could always check Dev Ashish's site for a routine Patti ************************************************************* * Patricia E. O'Connor * Associate Computer Programmer/Analyst * OTDA - BDMA * (W) mailto:Patricia.O'Connor at dfa.state.ny.us * (W) mailto:aa1160 at dfa.state.ny.us *********************************************************** ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Coutts, Welford L. Sent: Mon 04/12/2004 3:48 PM To: Access Developers discussion and problem solving Subject: [AccessD] Separating First and Last Names I have received a large file containing a large number of Full Names. I need to separate the First Name and Middle Initial, if any, into one field and the Last Name into a separate field. What is the most efficient way to do this? Thanks! Welford Coutts ----------------------------------------- CONFIDENTIALITY NOTE: This e-mail message, including any attachment(s), contains information that may be confidential, protected by the attorney-client or other legal privileges, and/or proprietary non-public information. If you are not an intended recipient of this message or an authorized assistant to an intended recipient, please notify the sender by replying to this message and then delete it from your system. Use, dissemination, distribution, or reproduction of this message and/or any of its attachments (if any) by unintended recipients is not authorized and may be unlawful. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mikedorism at adelphia.net Mon Apr 12 15:10:42 2004 From: mikedorism at adelphia.net (Mike & Doris Manning) Date: Mon, 12 Apr 2004 16:10:42 -0400 Subject: [AccessD] Separating First and Last Names In-Reply-To: <1731B69D9D03DB49881574BBECDE6CAC675D88@wsmailp1.rjr.com> Message-ID: <000001c420ca$3c0d1730$130aa845@hargrove.internal> If you have AccessXP (not sure if it is in lower versions), you could use the Split function. 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 Coutts, Welford L. Sent: Monday, April 12, 2004 3:48 PM To: Access Developers discussion and problem solving Subject: [AccessD] Separating First and Last Names I have received a large file containing a large number of Full Names. I need to separate the First Name and Middle Initial, if any, into one field and the Last Name into a separate field. What is the most efficient way to do this? Thanks! Welford Coutts ----------------------------------------- CONFIDENTIALITY NOTE: This e-mail message, including any attachment(s), contains information that may be confidential, protected by the attorney-client or other legal privileges, and/or proprietary non-public information. If you are not an intended recipient of this message or an authorized assistant to an intended recipient, please notify the sender by replying to this message and then delete it from your system. Use, dissemination, distribution, or reproduction of this message and/or any of its attachments (if any) by unintended recipients is not authorized and may be unlawful. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at earthlink.net Mon Apr 12 16:10:45 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Mon, 12 Apr 2004 17:10:45 -0400 Subject: [AccessD] OT - MSDN Subscriptions In-Reply-To: <426071E0B0A6D311B3C0006008B0AB23AFE4F5@TAPPEEXCH01> Message-ID: Brett, I've purchased from them 2 years running and have not had any problems. I also know of several individuals who purchased through them and did not have any problems either. Jim (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Brett Barabash Sent: Monday, April 12, 2004 4:46 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - MSDN Subscriptions Thanks Jim. I dropped your name in an email to him. I'm not really that concerned about the nickels and dimes. I'm more concerned that we buy from a reputable source. If his quote is in the same ballpark as the other sources, I will recommend him instead. It means more to me that we are giving $6k to a reputable source who will deliver the proper goods. -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Monday, April 12, 2004 1:58 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT - MSDN Subscriptions Brett, I paid $1175 for my Universal subscription, so your $1200 is not that far off. I'm not sure if the folks I deal with would cut you a deal considering that your thinking of 5 or not, but here is a contact: Sheldon Scheu AKS Web Services, LLC sheldon at akswebservices.com Please mention my name. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Brett Barabash Sent: Monday, April 12, 2004 2:39 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - MSDN Subscriptions Oops, I posted the link to the upgrade version ($1135). The full version is $1200: http://www.buycheapsoftware.com/details.asp?productID=589 (@$#!%? price comparison engines...) -----Original Message----- From: Brett Barabash [mailto:BBarabash at tappeconstruction.com] Sent: Monday, April 12, 2004 1:36 PM To: 'accessd at databaseadvisors.com' Subject: [AccessD] OT - MSDN Subscriptions --------------Please open with care!------------ This message has bypassed some of our spam filtering rules. This message was scanned for viruses and executable code has been stripped. --------------------------------------------------------------- I recall a discussion a while back about discount sources for MSDN subscriptions. We are looking to purchase 5 subscriptions, either Enterprise or possibly Universal depending on the pricing. I found the Universal box here for $1135 (with an additional $300 DVD media discount!): http://www.buycheapsoftware.com/details.asp?productID=696 Can anyone top this? Brett Barabash, MCP Tappe Construction, Co. Eagan, MN bbarabash at tappeconstruction.com (651) 256-6831 "One thing a computer can do that most humans can't is be sealed up in a cardboard box and sit in a warehouse." -Jack Handey ---------------------------------------------------------------------------- ---------------------------------------- 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 jimdettman at earthlink.net Mon Apr 12 16:11:36 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Mon, 12 Apr 2004 17:11:36 -0400 Subject: [AccessD] OT - MSDN Subscriptions In-Reply-To: <806536912C472E4A9D6515DF2E57261E2397BF@mercury.tnco-inc.com> Message-ID: Joe, $2,799 is the "list" price. Microsoft partners are allowed to sell for what ever they can get up to list price. Microsoft itself always sells at list. Jim Dettman (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Joe Rojas Sent: Monday, April 12, 2004 4:19 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - MSDN Subscriptions Why is this so cheap? Microsoft advertises it for $2,799. What am I missing? JR -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Monday, April 12, 2004 2:58 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT - MSDN Subscriptions Brett, I paid $1175 for my Universal subscription, so your $1200 is not that far off. I'm not sure if the folks I deal with would cut you a deal considering that your thinking of 5 or not, but here is a contact: Sheldon Scheu AKS Web Services, LLC sheldon at akswebservices.com Please mention my name. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Brett Barabash Sent: Monday, April 12, 2004 2:39 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - MSDN Subscriptions Oops, I posted the link to the upgrade version ($1135). The full version is $1200: http://www.buycheapsoftware.com/details.asp?productID=589 (@$#!%? price comparison engines...) -----Original Message----- From: Brett Barabash [mailto:BBarabash at tappeconstruction.com] Sent: Monday, April 12, 2004 1:36 PM To: 'accessd at databaseadvisors.com' Subject: [AccessD] OT - MSDN Subscriptions --------------Please open with care!------------ This message has bypassed some of our spam filtering rules. This message was scanned for viruses and executable code has been stripped. --------------------------------------------------------------- I recall a discussion a while back about discount sources for MSDN subscriptions. We are looking to purchase 5 subscriptions, either Enterprise or possibly Universal depending on the pricing. I found the Universal box here for $1135 (with an additional $300 DVD media discount!): http://www.buycheapsoftware.com/details.asp?productID=696 Can anyone top this? Brett Barabash, MCP Tappe Construction, Co. Eagan, MN bbarabash at tappeconstruction.com (651) 256-6831 "One thing a computer can do that most humans can't is be sealed up in a cardboard box and sit in a warehouse." -Jack Handey ---------------------------------------------------------------------------- ---------------------------------------- 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 ---------------------------------------------------------------------------- ---------------------------------------- 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 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage 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 reuben at gfconsultants.com Mon Apr 12 16:40:22 2004 From: reuben at gfconsultants.com (Reuben Cummings) Date: Mon, 12 Apr 2004 16:40:22 -0500 Subject: [AccessD] Get data from Word Doc - A2K Message-ID: I have a 393 page Word document that has data about bridges. Every 3 pages is one bridge meaning every third page is formatted exactly alike (Page 1 and Page 4 are alike, Page 2 and Page 5, Page 3 and 6). There are about 10 pieces of data I would like to extract about every bridge, a little bit on each of the three pages. Is it possible to scan thru this document somehow and 'extract' these 10 items from it to Access? I have tried to copy the document to Excel, but a lot of the text from Word will end up in one cell rather than split into a cell of its own. Thanks. Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com From dw-murphy at cox.net Mon Apr 12 16:58:20 2004 From: dw-murphy at cox.net (Doug Murphy) Date: Mon, 12 Apr 2004 14:58:20 -0700 Subject: [AccessD] Access 2000 error In-Reply-To: <001101c420be$14baad70$8500a8c0@CX615377a> Message-ID: <000701c420d9$44db47b0$8500a8c0@CX615377a> For what ever it is worth the error is apparently caused by the version of Jet on the machine. I installed the latest jet 4 service pack and the problem went away. Found a vague reference to this on the MS knowledge base. The original cause may have been that I was working on the DB in Access XP/2000 format. I then moved a copy to an actual version of Access 2000 on another machine to test before sending off to the customer. After hosing a previous DB I am carefull to open and recompile a DB when moving back and forth between XP and 2000, but this seems different than the vb6 dll thing. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Monday, April 12, 2004 11:44 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Access 2000 error The ActiveX Data Objects 2.1 (ADO) is checked I just reversed the order of the words in my original message. My dyslexia is showing. Tried 2.5 and got the same message. This may be one of the AccessXP/2000 anomolies. When I move the DB to my XP development machine it works fine. It compiles on both machines. ??? Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: Monday, April 12, 2004 11:33 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Access 2000 error That is DAO you have set. You need ADO, which is Microsoft ActiveX Data Objects. (I personally set 2.5) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Doug Murphy Sent: Monday, April 12, 2004 1:09 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access 2000 error Folks, I inherited an Access 2000 database to do some work on. I have not done anything to the wizard built switchboard but it now breaks an the line "Set con = Application.CurrentProject.Connection". Checked the references and MS data objects active-x library 2.1 is checked. When I type in the same line auto completion fills in all the correct items so the terminology is correct for the given references. Any idea why this thing is breaking? Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Sunday, April 11, 2004 7:14 PM To: AccessD Subject: [AccessD] Framework Discussion page rebuild I have gone through all of the discussions and built a specific mdb and matching document zipped as a pair in a zip file. The framework discussion page on my site now has 12 "chapters" built in this manner. This should make following the document easier. Anyone going through the new document / database who finds any issues please email me offline to let me know and I will attempt to get such issues fixed and reposted. I did have to go carve out some of the chapters from the databases where I had just updated the db for several chapters so there may be a few issues. Again, I will attempt to fix any issues brought to my attention and repost. In the future, all documents will be built with a matching database as the document is written and so should match "exactly". More are on the way. I use a class for Openargs that parse the args and apply known framework args directly. This lecture is almost finished. If anyone has any suggestions for future lectures please contact me offline or post them here if you want to stimulate discussion. 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 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Apr 12 20:44:13 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 12 Apr 2004 18:44:13 -0700 Subject: [AccessD] Access 2000 error References: <001101c420be$14baad70$8500a8c0@CX615377a> Message-ID: <407B45ED.4090205@shaw.ca> The default install of MDAC on WinXP is 2.7 If you have multiple installs of MDAC on your system. the highest level of the MDAC points to MSADO15.dll Lower levels of ADO MDAC point to a .tlb file like MSADO26.tlb On my system I have Access 97 and 2003 installed so I have MDAC 2.1 installed as well due to 97 being there. So my selection of references is ADO 2.7 ---- MSADO15.dll ADO 2.6 ---- MSADO26.tlb ADO 2.5 ---- MSADO25.tlb ADO 2.1 ---- MSADO21.tlb I would check what file your references are pointing to. You may not have MDAC 2.1 installed on one of your machines, this MDAC is available as a seperate download from http://www.microsoft/data and is only installed with lower versions of Access. Also some of these MDAC's like 2.5 have up to 3 SP's. MDAC 2.7 and 2.8 don't run on Win95 I would pick one MDAC depending on your OSes and standardize on it. Remembering each OS version comes with a specific level of the MDAC. Doug Murphy wrote: >The ActiveX Data Objects 2.1 (ADO) is checked I just reversed the order >of the words in my original message. My dyslexia is showing. Tried 2.5 >and got the same message. > >This may be one of the AccessXP/2000 anomolies. When I move the DB to >my XP development machine it works fine. It compiles on both machines. >??? > >Doug > > > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >DWUTKA at marlow.com >Sent: Monday, April 12, 2004 11:33 AM >To: accessd at databaseadvisors.com >Subject: RE: [AccessD] Access 2000 error > > >That is DAO you have set. You need ADO, which is Microsoft ActiveX Data >Objects. (I personally set 2.5) > >Drew > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Doug Murphy >Sent: Monday, April 12, 2004 1:09 PM >To: 'Access Developers discussion and problem solving' >Subject: [AccessD] Access 2000 error > > >Folks, > >I inherited an Access 2000 database to do some work on. I have not done >anything to the wizard built switchboard but it now breaks an the line >"Set con = Application.CurrentProject.Connection". Checked the >references and MS data objects active-x library 2.1 is checked. When I >type in the same line auto completion fills in all the correct items so >the terminology is correct for the given references. Any idea why this >thing is breaking? > >Doug > > > > > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby >Sent: Sunday, April 11, 2004 7:14 PM >To: AccessD >Subject: [AccessD] Framework Discussion page rebuild > > >I have gone through all of the discussions and built a specific mdb and >matching document zipped as a pair in a zip file. The framework >discussion page on my site now has 12 "chapters" built in this manner. >This should make following the document easier. Anyone going through >the new document / database who finds any issues please email me offline >to let me know and I will attempt to get such issues fixed and reposted. >I did have to go carve out some of the chapters from the databases where >I had just updated the db for several chapters so there may be a few >issues. Again, I will attempt to fix any issues brought to my attention >and repost. > >In the future, all documents will be built with a matching database as >the document is written and so should match "exactly". > >More are on the way. I use a class for Openargs that parse the args and >apply known framework args directly. This lecture is almost finished. >If anyone has any suggestions for future lectures please contact me >offline or post them here if you want to stimulate discussion. > >John W. Colby >www.ColbyConsulting.com > > > > -- Marty Connelly Victoria, B.C. Canada From Chris.Foote at uk.thalesgroup.com Tue Apr 13 01:52:26 2004 From: Chris.Foote at uk.thalesgroup.com (Foote, Chris) Date: Tue, 13 Apr 2004 07:52:26 +0100 Subject: [AccessD] Remove non-alphanumeric characters Message-ID: <97CF276BD8C6D4119C4B00508BB18DE709E0C07C@ntscxch1.int.rdel.co.uk> Thanks for comments Andy! Looks a bit simpler than my solution - I'll give it a go. Chris Foote (UK) > -----Original Message----- > From: Andy Lacey [mailto:andy at minstersystems.co.uk] > Sent: Thursday, April 08, 2004 5:55 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Remove non-alphanumeric characters > > > Well personally I'd find it easier to read if you just > compared characters, > so. Also, as long as your Option Compare doesn't cause case-sensitive > comparisoins, you need only test for a-z once. > > For intPos = 1 To Len(spAlphaNum) > strChar = Mid(spAlphaNum, intPos, 1) > Select Case strChar > Case "0" To "9" ' Numeric > strClean = strClean + strChar > Case "a" To "z" ' Uppercase Alpha > strClean = strClean + Ucase(strChar) > Case Else > End Select > Next intPos > > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > --------- Original Message -------- > From: Access Developers discussion and problem solving > > To: 'Access Developers discussion and problem solving' > > Subject: [AccessD] Remove non-alphanumeric characters > Date: 08/04/04 15:39 > > > > > Good afternoon all! > > > > I have a requirement to strip a string of all > non-alphanumeric characters. > > In addition I wanted to change all upper-case characters to > lower-case. From jskolits at CorporateDataDesign.com Tue Apr 13 02:59:52 2004 From: jskolits at CorporateDataDesign.com (John Skolits) Date: Tue, 13 Apr 2004 03:59:52 -0400 Subject: [AccessD] OT - Windows CE In-Reply-To: Message-ID: <000001c4212d$4d34fe20$6701a8c0@OFFICEXP1> Any advice on doing some basic forms with a backend DB on Windows CE? I'm not a C programmer but certainly been doing Access/VBA since Access came out. Are there any object oriented tools similar to Access that I can use to build forms and do VBA type code. Any good newsgroups for CE that would help me out? John Skolits From thevigil at kabelfoon.nl Tue Apr 13 03:02:13 2004 From: thevigil at kabelfoon.nl (Bert-Jan Brinkhuis) Date: Tue, 13 Apr 2004 10:02:13 +0200 Subject: [AccessD] Get data from Word Doc - A2K References: Message-ID: <002201c4212d$a309f440$3f412d3e@jester> Reuben, just a thought: isn't it possible to save the word document as a txt file and open that in access an scan line by line? If the line's have specific word's it must be possible to find them. Or maybe you know which linenumbers you want to scan? Bert-Jan ----- Original Message ----- From: "Reuben Cummings" To: "AccessD" Sent: Monday, April 12, 2004 11:40 PM Subject: [AccessD] Get data from Word Doc - A2K > I have a 393 page Word document that has data about bridges. Every 3 pages > is one bridge meaning every third page is formatted exactly alike (Page 1 > and Page 4 are alike, Page 2 and Page 5, Page 3 and 6). There are about 10 > pieces of data I would like to extract about every bridge, a little bit on > each of the three pages. > > Is it possible to scan thru this document somehow and 'extract' these 10 > items from it to Access? > > I have tried to copy the document to Excel, but a lot of the text from Word > will end up in one cell rather than split into a cell of its own. > > 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 stuart at lexacorp.com.pg Tue Apr 13 04:23:44 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 13 Apr 2004 19:23:44 +1000 Subject: [AccessD] OT - Windows CE In-Reply-To: <000001c4212d$4d34fe20$6701a8c0@OFFICEXP1> References: Message-ID: <407C3E40.25250.273E516@localhost> On 13 Apr 2004 at 3:59, John Skolits wrote: > > Any advice on doing some basic forms with a backend DB on Windows CE? > > I'm not a C programmer but certainly been doing Access/VBA since Access came > out. Are there any object oriented tools similar to Access that I can use to > build forms and do VBA type code. > A couple of useful links: http://www.syware.com/newsrev/pr/vcewm03.htm and http://www.wirelessdevnet.com/channels/pda/features/ado_ce.html -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From gustav at cactus.dk Mon Apr 12 09:04:45 2004 From: gustav at cactus.dk (Gustav Brock) Date: Mon, 12 Apr 2004 16:04:45 +0200 Subject: [AccessD] A2K: Stop User from oving to new record In-Reply-To: <01c501c41aad$5502fca0$48619a89@DDICK> References: <40706F3F.16231.9E7B12@localhost> <01c501c41aad$5502fca0$48619a89@DDICK> Message-ID: <11019402659.20040412160445@cactus.dk> Hi Darren > Hi Bryan > I did that no joy eg. That is because your expression will never be True as Me.cmbOffence = "" will be Null if Me.cmbOffence is Null, and then IsNull(Me.cmbOffence) Or Null will return Null as well. The fastest method is: If Len(Me.cmbOffence & vbNullString) = 0 but mostly I prefer to use Nz(): If Len(Nz(Me.cmbOffence, vbNullString)) = 0 As Stuart mentions, you may omit the last part, but you must be sure that the value tested is either Null or a string (which is the case here as I guess cmbOffence is a combobox): If Len(Nz(Me.cmbOffence.Value)) = 0 /gustav > Private Sub Form_BeforeUpdate(Cancel As Integer) > If IsNull(Me.cmbOffence) Or Me.cmbOffence = "" Then > MsgBox "Enter an offence" > Cancel = True > End If > End Sub > What I need to do is somehow test if the user is on a new fresh record or has left th previous record with unfilled combos. Of > course I can do it on the lost and got focus event.Thats fine whilst I am in the record > EG record 5 has no offence recorded > User goes to record 6 How do i alert the user that record 5 has a missing value then go back to that record? > ----- Original Message ----- > From: "Bryan Carbonnell" > To: "Access Developers discussion and problemsolving" > Sent: Monday, April 05, 2004 10:25 AM > Subject: Re: [AccessD] A2K: Stop User from oving to new record >> On 5 Apr 2004 at 10:08, Darren DICK wrote: >> >> > I have a simple subform with 4 fields on it >> > ID (PK), txtDateOfOccurence, cboClientName, cboOffence >> > >> > How can I tell if the user goes to a new record and they have not >> > completed ALL fields in the previous record How do I alert them and >> > then direct them back to the previous record? >> >> Use the before update event of the form. Check to make sure they >> entered a vale and if not set Cancel = true in the event. That should >> prevent the record from being saved and keep the sub form on the >> "unfinished" record From Mark.Mitsules at ngc.com Tue Apr 13 07:04:33 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Tue, 13 Apr 2004 08:04:33 -0400 Subject: [AccessD] Get data from Word Doc - A2K Message-ID: I'd second that approach and take the time to mention Seth Galitzer's often utilized File I/O code snippets. http://puma.agron.ksu.edu/~sgsax/ Mark -----Original Message----- From: Bert-Jan Brinkhuis [mailto:thevigil at kabelfoon.nl] Sent: Tuesday, April 13, 2004 4:02 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Get data from Word Doc - A2K Reuben, just a thought: isn't it possible to save the word document as a txt file and open that in access an scan line by line? If the line's have specific word's it must be possible to find them. Or maybe you know which linenumbers you want to scan? Bert-Jan ----- Original Message ----- From: "Reuben Cummings" To: "AccessD" Sent: Monday, April 12, 2004 11:40 PM Subject: [AccessD] Get data from Word Doc - A2K > I have a 393 page Word document that has data about bridges. Every 3 pages > is one bridge meaning every third page is formatted exactly alike (Page 1 > and Page 4 are alike, Page 2 and Page 5, Page 3 and 6). There are about 10 > pieces of data I would like to extract about every bridge, a little bit on > each of the three pages. > > Is it possible to scan thru this document somehow and 'extract' these 10 > items from it to Access? > > I have tried to copy the document to Excel, but a lot of the text from Word > will end up in one cell rather than split into a cell of its own. > > 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 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Bryan_Carbonnell at cbc.ca Tue Apr 13 07:25:17 2004 From: Bryan_Carbonnell at cbc.ca (Bryan Carbonnell) Date: Tue, 13 Apr 2004 08:25:17 -0400 Subject: [AccessD] Get data from Word Doc - A2K Message-ID: If the info you need is in a consistant format, you can loop through the paragraphs in the word doc and then parse it that way, something like: Dim objWord As Word.Application Dim doc As Document Dim para As Paragraph Dim strPara As String Set objWord = CreateObject("Word.Application") Set doc = objWord.Documents.Open("c:\full\path\to\Filename.doc") For Each para In doc.Paragraphs 'Get the text of the paragraph strPara = para.Range.Text 'Parse strPara here looking for what you need Next Set para = Nothing doc.Close Set doc = Nothing objWord.Quit Set objWord = Nothing Bryan Carbonnell bryan_carbonnell at cbc.ca >>> reuben at gfconsultants.com 12-Apr-04 5:40:22 PM >>> I have a 393 page Word document that has data about bridges. Every 3 pages is one bridge meaning every third page is formatted exactly alike (Page 1 and Page 4 are alike, Page 2 and Page 5, Page 3 and 6). There are about 10 pieces of data I would like to extract about every bridge, a little bit on each of the three pages. Is it possible to scan thru this document somehow and 'extract' these 10 items from it to Access? I have tried to copy the document to Excel, but a lot of the text from Word will end up in one cell rather than split into a cell of its own. 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 mastercafe at ctv.es Tue Apr 13 07:33:46 2004 From: mastercafe at ctv.es (MastercafeCTV) Date: Tue, 13 Apr 2004 14:33:46 +0200 Subject: [AccessD] XML DATA ACCESS In-Reply-To: Message-ID: <000701c42153$90e05680$0300a8c0@masterserver> We are searching information about XML for use on Access and prepare data for web. If anyone can help with url's or discussion sites about this we are glad. Thanks in advance Juan Menendez ================================ Mastercafe S.L. NIF - B82.617.614 c/ Pi?eres 4, 1?D (33430 Candas - Asturias) Juan Menendez Crespo juan at mastercafe.com www.mastercafe.com info at mastercafe.com ================================ From R.Griffiths at bury.gov.uk Tue Apr 13 07:59:43 2004 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Tue, 13 Apr 2004 13:59:43 +0100 Subject: [AccessD] Ownership Message-ID: Hi Appear to be getting requests for consultancy work - ie writing small/medium Access/VB systems. Does anyone know the ownership situation for the UK. Can they (my clients) sell on any system I write? Can they demand the source code from me? Or do I have exclusive rights to the code and sell on? Thanks in advance Richard From jskolits at CorporateDataDesign.com Tue Apr 13 08:20:51 2004 From: jskolits at CorporateDataDesign.com (John Skolits) Date: Tue, 13 Apr 2004 09:20:51 -0400 Subject: [AccessD] OT - Windows CE In-Reply-To: <407C3E40.25250.273E516@localhost> Message-ID: <000001c4215a$24d8d5a0$6701a8c0@OFFICEXP1> Great stuff! That'll get me started. I really appreciate it! John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Tuesday, April 13, 2004 5:24 AM To: Access Developers discussion and problemsolving Subject: Re: [AccessD] OT - Windows CE On 13 Apr 2004 at 3:59, John Skolits wrote: > > Any advice on doing some basic forms with a backend DB on Windows CE? > > I'm not a C programmer but certainly been doing Access/VBA since > Access came out. Are there any object oriented tools similar to Access > that I can use to build forms and do VBA type code. > A couple of useful links: http://www.syware.com/newsrev/pr/vcewm03.htm and http://www.wirelessdevnet.com/channels/pda/features/ado_ce.html -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Tue Apr 13 05:33:47 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 13 Apr 2004 12:33:47 +0200 Subject: [AccessD] OT: open source In-Reply-To: <015801c41f62$fedb2f90$6501a8c0@rock> References: <015801c41f62$fedb2f90$6501a8c0@rock> Message-ID: <17911601181.20040413123347@cactus.dk> Hi Arthur Did you check out BlackAdder and/or Rekall at http://www.thekompany.com Not Access clones, and you'll have to like Python ... /gustav > IMO there would be a significant shift in the Linux world if somebody > released something even close to Access. Yeah, there's Jbuilder and > Kylix and such, and a few dbAdmin apps for MySQL, but there is no free > or inexpensive RAD db dev app for Linux... And until there is, few if > any of us will move our businesses there. From gustav at cactus.dk Tue Apr 13 06:28:24 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 13 Apr 2004 13:28:24 +0200 Subject: [AccessD] Wierd AccXP memo happenings. In-Reply-To: <916187228923D311A6FE00A0CC3FAA305BB3F3@ADGSERVER> References: <916187228923D311A6FE00A0CC3FAA305BB3F3@ADGSERVER> Message-ID: <8614878414.20040413132824@cactus.dk> Hi Bobby 1. What happens if you attach the memo content to another record? 2. Try to locate what part of the memo causes the blow. You do that by cutting it in two, then try with the first and then with the second part; continue along this road with the part that fails until you have tracked the malfunctioning part. This may tell you something. /gustav > Hi all, > I have a query that pulls data from several tables. Been running well for > years. I get a call on Monday that it will not print all the way. So after > some researching, I found out that the report was blowing up when it got to > a certain page. > What was happening is that the data from this one table is all of type > double. BUT, for some reason, this one record is returning with the data > from a memo field from the same record (not pulled in the query) and is > blowing up where I am trying to keep up with some totals. > I can delete the data out of the memo and the query runs correctly. I past > back the data and it blows up again. So, I save the memo data in notepad, > remove it from the record, compact the database, import it into a new > database, then add the data back form notepad, and it blows again! > Any ideas (short of moving the memo field to its own record) on how to fix > this sort of problem? It runs great on 100+ other database (all back-ends). > Thanks, > Bobby From gustav at cactus.dk Tue Apr 13 07:49:34 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 13 Apr 2004 14:49:34 +0200 Subject: [AccessD] Remove non-alphanumeric characters In-Reply-To: <97CF276BD8C6D4119C4B00508BB18DE709E0C07B@ntscxch1.int.rdel.co.uk> References: <97CF276BD8C6D4119C4B00508BB18DE709E0C07B@ntscxch1.int.rdel.co.uk> Message-ID: <9819748166.20040413144934@cactus.dk> Hi Chris > I have a requirement to strip a string of all non-alphanumeric characters. > In addition I wanted to change all upper-case characters to lower-case. I > could not find any ready-rolled solution so I've come up with the code > below. > Can anyone think of a more simple way of doing this? I don't think so. However, if you are about to handle large strings, the appending method will prove very slow. If this is the case, you could use Mid() as in the function below which trims a string for anything else than numerals - you will be able to cut it down and modify it for your purpose quite easily. /gustav Function TrimNumString( _ ByVal strNumString As String, _ Optional ByVal strDecimalChr As String, _ Optional ByVal booAcceptMinus As Boolean) _ As String ' Removes any non-numeric character from strNumString including hexadecimal characters. ' If strDecimalChr is specified, first occurrence of this is not removed. ' If booAcceptMinus is True, a leading or trailing minus sign is accepted. ' ' 1999-08-27. Cactus Data ApS, CPH. ' 2001-06-21. Speed optimized for large string (64 K). ' 2003-12-10. intOffset changed to lngOffset. Const cbytNeg As Byte = 45 ' "-" Dim lngPos As Long Dim lngLen As Long Dim lngOffset As Long Dim booDec As Boolean Dim booNeg As Boolean Dim bytChr As Byte Dim bytDec As Byte Dim strNum As String strNumString = Trim(strNumString) lngLen = Len(strNumString) If lngLen > 0 Then If Len(strDecimalChr) > 0 Then bytDec = Asc(strDecimalChr) End If ' Create empty result string of maximum possible length. strNum = Space(lngLen) For lngPos = 1 To lngLen bytChr = Asc(Mid(strNumString, lngPos, 1)) Select Case bytChr Case 48 To 57 ' Digit. Case bytDec ' Decimal point. If booDec = False Then ' One decimal point only. booDec = True End If Case cbytNeg ' Minus sign. bytChr = 0 If booAcceptMinus = True And booNeg = False Then If Len(Trim(strNum)) = 0 Or lngPos = lngLen Then bytChr = cbytNeg ' One minus sign only. booNeg = True End If End If Case Else ' Ignore any other character. bytChr = 0 End Select If bytChr > 0 Then ' Append accepted character by inserting it in result string. lngOffset = lngOffset + 1 Mid(strNum, lngOffset) = Chr(bytChr) End If Next End If ' Trim and return result string. TrimNumString = Left(strNum, lngOffset) End Function From actebs at actebs.com.au Tue Apr 13 08:33:33 2004 From: actebs at actebs.com.au (ACTEBS) Date: Tue, 13 Apr 2004 23:33:33 +1000 Subject: [AccessD] Urgent: ADO Recordset from SQL to Access DB Message-ID: <000201c4215b$ed9c23b0$0b08a8c0@carltonone.local> Hi Everyone, I am onsite doing some coding for a client and don't have access to a couple of files/examples at my office. If anyone has some code to connect to an SQL Server DB via ADO then open the recordset and then append the records to an Access DB table I would be forever grateful. I have been working on this project all day (interstate) and this is the last of it, but for the life of me I can't work out how to set it up...I know I could setup and ODBC connection, but that's not an elegant solution... Any help will be much appreciated... Regards Vlad From nsaqr at nicholaslane.com Tue Apr 13 08:35:26 2004 From: nsaqr at nicholaslane.com (Nick Saqr - NLC) Date: Tue, 13 Apr 2004 06:35:26 -0700 Subject: [AccessD] OT - Windows CE In-Reply-To: <000001c4215a$24d8d5a0$6701a8c0@OFFICEXP1> Message-ID: Check this out - SprintDB PRo. Probably the fastest DB out there, worked well for me. http://www.kaione.com/index.html Nick -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Skolits Sent: Tuesday, April 13, 2004 6:21 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - Windows CE Great stuff! That'll get me started. I really appreciate it! John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Tuesday, April 13, 2004 5:24 AM To: Access Developers discussion and problemsolving Subject: Re: [AccessD] OT - Windows CE On 13 Apr 2004 at 3:59, John Skolits wrote: > > Any advice on doing some basic forms with a backend DB on Windows CE? > > I'm not a C programmer but certainly been doing Access/VBA since > Access came out. Are there any object oriented tools similar to Access > that I can use to build forms and do VBA type code. > A couple of useful links: http://www.syware.com/newsrev/pr/vcewm03.htm and http://www.wirelessdevnet.com/channels/pda/features/ado_ce.html -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Tue Apr 13 08:50:33 2004 From: bheid at appdevgrp.com (Bobby Heid) Date: Tue, 13 Apr 2004 09:50:33 -0400 Subject: [AccessD] Wierd AccXP memo happenings. SOLVED In-Reply-To: <916187228923D311A6FE00A0CC3FAA30820669@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA305BB407@ADGSERVER> Hi Gustav, Thanks for reminding me of this issue. I was off work Friday and Monday and had forgotten to let everyone know that I solved the issue on Thursday, right as I was leaving for the weekend. This particular report has six 'tiers' (0-5) on it. And after reviewing the report, I found that it does not use the Notes (memo) field. So I modified the queries to remove the Notes field. When I then went to run the report, it gave me the missing field error (it was saying the Notes field was missing). I tracked the error to a field that should contain estimated receipts. I guess when I had been setting up that last tier, I had accidentally clicked the Notes field as the data source instead of the correct field. DOH! And since it is rare for the client to have a tier 5 record (and one with a note), no one had caught this error before. So basically, I screwed up the report. Thanks to those that looked at this issue with me. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, April 13, 2004 7:28 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Wierd AccXP memo happenings. Hi Bobby 1. What happens if you attach the memo content to another record? 2. Try to locate what part of the memo causes the blow. You do that by cutting it in two, then try with the first and then with the second part; continue along this road with the part that fails until you have tracked the malfunctioning part. This may tell you something. /gustav > Hi all, > I have a query that pulls data from several tables. Been running well > for years. I get a call on Monday that it will not print all the way. > So after some researching, I found out that the report was blowing up > when it got to a certain page. > What was happening is that the data from this one table is all of type > double. BUT, for some reason, this one record is returning with the > data from a memo field from the same record (not pulled in the query) > and is blowing up where I am trying to keep up with some totals. > I can delete the data out of the memo and the query runs correctly. I > past back the data and it blows up again. So, I save the memo data in > notepad, remove it from the record, compact the database, import it > into a new database, then add the data back form notepad, and it blows > again! > Any ideas (short of moving the memo field to its own record) on how to > fix this sort of problem? It runs great on 100+ other database (all > back-ends). > Thanks, > Bobby -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jeffrey.demulling at usbank.com Tue Apr 13 08:54:58 2004 From: jeffrey.demulling at usbank.com (jeffrey.demulling at usbank.com) Date: Tue, 13 Apr 2004 08:54:58 -0500 Subject: [AccessD] Urgent: ADO Recordset from SQL to Access DB Message-ID: Here is some code. I use a module that contains my connection information: Function ODRConnection(myid As String, mypassword As String) ODRConnection = "Provider=SQLOLEDB.1;Password=" & mypassword & ";Persist Security Info=True;User ID=" & myid & ";Initial Catalog=" & GetSEIDatabase & ";Data Source=" & GetSEIServerName End Function Now to open the recordset ad append the records: Dim con As New ADODB.Connection Dim rs As New ADODB.Recordset Dim cmdtext As String con = setconnection con.Open cmdtext = "INSERT INTO tblProviders (" cmdtext = cmdtext & " [ProviderName] )" cmdtext = cmdtext & " VALUES (" cmdtext = cmdtext & " '" & Me.txtCustomerName & "');" rs.Open cmdtext, con con.Close set rs = nothing set con = nothing ACTEBS To: "access group" Sent by: cc: accessd-bounces at databasea Subject: [AccessD] Urgent: ADO Recordset from SQL to Access DB dvisors.com 04/13/2004 08:33 AM Please respond to "Access Developers discussion and problem solving" Hi Everyone, I am onsite doing some coding for a client and don't have access to a couple of files/examples at my office. If anyone has some code to connect to an SQL Server DB via ADO then open the recordset and then append the records to an Access DB table I would be forever grateful. I have been working on this project all day (interstate) and this is the last of it, but for the life of me I can't work out how to set it up...I know I could setup and ODBC connection, but that's not an elegant solution... Any help will be much appreciated... Regards Vlad -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Chris.Foote at uk.thalesgroup.com Tue Apr 13 09:01:18 2004 From: Chris.Foote at uk.thalesgroup.com (Foote, Chris) Date: Tue, 13 Apr 2004 15:01:18 +0100 Subject: [AccessD] Remove non-alphanumeric characters Message-ID: <97CF276BD8C6D4119C4B00508BB18DE709E0C083@ntscxch1.int.rdel.co.uk> Thanks for that Gustav! An interesting different approach. Luckily (for me) my strings are never longer than about 15 characters. Thanks again! Chris Foote - UK > -----Original Message----- > From: Gustav Brock [mailto:gustav at cactus.dk] > Sent: Tuesday, April 13, 2004 1:50 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Remove non-alphanumeric characters > > > Hi Chris > > > I have a requirement to strip a string of all > non-alphanumeric characters. > > In addition I wanted to change all upper-case characters to > lower-case. I > > could not find any ready-rolled solution so I've come up > with the code > > below. > > > Can anyone think of a more simple way of doing this? > > I don't think so. However, if you are about to handle large strings, > the appending method will prove very slow. If this is the case, you > could use Mid() as in the function below which trims a string for > anything else than numerals - you will be able to cut it down and > modify it for your purpose quite easily. > > /gustav > > > > Function TrimNumString( _ > ByVal strNumString As String, _ > Optional ByVal strDecimalChr As String, _ > Optional ByVal booAcceptMinus As Boolean) _ > As String --------------(snip)----------- From DWUTKA at marlow.com Tue Apr 13 09:13:40 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Tue, 13 Apr 2004 09:13:40 -0500 Subject: [AccessD] OT - Windows CE Message-ID: <2F8793082E00D4119A1700B0D0216BF802227AB8@main2.marlow.com> I know microsoft has an Add-On component for VB, for Windows CE. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Skolits Sent: Tuesday, April 13, 2004 3:00 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT - Windows CE Any advice on doing some basic forms with a backend DB on Windows CE? I'm not a C programmer but certainly been doing Access/VBA since Access came out. Are there any object oriented tools similar to Access that I can use to build forms and do VBA type code. Any good newsgroups for CE that would help me out? John Skolits -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mastercafe at ctv.es Tue Apr 13 09:20:12 2004 From: mastercafe at ctv.es (MastercafeCTV) Date: Tue, 13 Apr 2004 16:20:12 +0200 Subject: [AccessD] Ownership In-Reply-To: Message-ID: <000f01c42162$6f2eb4a0$0300a8c0@masterserver> Hi Richard, I don't know if ECC law are the same for this, but the intelectual property in Spain said that you can develope any tool in any languaje for your client and the main source code and final application rights are for they (client) but you can use this code or application to sell to another client. Inly when you make a contract in the beginning you can put your basis for this. We make always a contract with our clients how take the main source code, except an MDE module with all standar functions of us that they need pay for this use. With this solution you always protect your work for another developers in the future, and can put open source to your client. Hope this notes can help you Juan Menendez ================================ Mastercafe S.L. NIF - B82.617.614 c/ Pi?eres 4, 1?D (33430 Candas - Asturias) Juan Menendez Crespo juan at mastercafe.com www.mastercafe.com info at mastercafe.com ================================ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Griffiths, Richard Sent: martes, 13 de abril de 2004 15:00 To: AccessD at databaseadvisors.com Subject: [AccessD] Ownership Hi Appear to be getting requests for consultancy work - ie writing small/medium Access/VB systems. Does anyone know the ownership situation for the UK. Can they (my clients) sell on any system I write? Can they demand the source code from me? Or do I have exclusive rights to the code and sell on? Thanks in advance Richard -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Tue Apr 13 09:54:18 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Tue, 13 Apr 2004 07:54:18 -0700 Subject: [AccessD] Get data from Word Doc - A2K In-Reply-To: Message-ID: Hi Reuben: Could the document be saved as a text file and then processed through Access? HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Reuben Cummings Sent: Monday, April 12, 2004 2:40 PM To: AccessD Subject: [AccessD] Get data from Word Doc - A2K I have a 393 page Word document that has data about bridges. Every 3 pages is one bridge meaning every third page is formatted exactly alike (Page 1 and Page 4 are alike, Page 2 and Page 5, Page 3 and 6). There are about 10 pieces of data I would like to extract about every bridge, a little bit on each of the three pages. Is it possible to scan thru this document somehow and 'extract' these 10 items from it to Access? I have tried to copy the document to Excel, but a lot of the text from Word will end up in one cell rather than split into a cell of its own. 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 gustav at cactus.dk Tue Apr 13 09:36:23 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 13 Apr 2004 16:36:23 +0200 Subject: [AccessD] Remove non-alphanumeric characters In-Reply-To: <97CF276BD8C6D4119C4B00508BB18DE709E0C083@ntscxch1.int.rdel.co.uk> References: <97CF276BD8C6D4119C4B00508BB18DE709E0C083@ntscxch1.int.rdel.co.uk> Message-ID: <7926157472.20040413163623@cactus.dk> Hi Chris > Luckily (for me) my strings are never longer than about 15 characters. OK. Then I would go ahead with your original suggestion. /gustav From gustav at cactus.dk Tue Apr 13 10:21:00 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 13 Apr 2004 17:21:00 +0200 Subject: [AccessD] OT - MSDN Subscriptions In-Reply-To: <426071E0B0A6D311B3C0006008B0AB23AFE4F2@TAPPEEXCH01> References: <426071E0B0A6D311B3C0006008B0AB23AFE4F2@TAPPEEXCH01> Message-ID: <10628834041.20040413172100@cactus.dk> Hi Brett Don't know what you are about to do, but have you had a look at the empower program for ISVs: http://members.microsoft.com/partner/isv/empower/default.aspx /gustav > I recall a discussion a while back about discount sources for MSDN > subscriptions. We are looking to purchase 5 subscriptions, either > Enterprise or possibly Universal depending on the pricing. > I found the Universal box here for $1135 (with an additional $300 DVD media > discount!): > http://www.buycheapsoftware.com/details.asp?productID=696 > > Can anyone top this? > Brett Barabash, MCP > Tappe Construction, Co. > Eagan, MN > bbarabash at tappeconstruction.com > (651) 256-6831 From BBarabash at TappeConstruction.com Tue Apr 13 10:39:17 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Tue, 13 Apr 2004 10:39:17 -0500 Subject: [AccessD] OT - MSDN Subscriptions Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE4FB@TAPPEEXCH01> I have heard of this before (Joel Spolsky discussed it on his website) Great program, except we are not an independent software vendor (ISV). To be eligible for this program, we need to do the following: - Within 18 months of initial membership activation (within 6 months from renewal), members must publicly announce the new packaged software application on their own official website. - Within 24 months of initial membership activation (within 12 months from renewal), members must release the new packaged software application to the targeted marketplace. Now, if I could convince management to allow me to sell my creations... Brett Barabash, MCP Tappe Construction, Co. Eagan, MN bbarabash at tappeconstruction.com (651) 256-6831 "One thing a computer can do that most humans can't is be sealed up in a cardboard box and sit in a warehouse." -Jack Handey -----Original Message----- From: Gustav Brock [mailto:gustav at cactus.dk] Sent: Tuesday, April 13, 2004 10:21 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT - MSDN Subscriptions Hi Brett Don't know what you are about to do, but have you had a look at the empower program for ISVs: http://members.microsoft.com/partner/isv/empower/default.aspx /gustav > I recall a discussion a while back about discount sources for MSDN > subscriptions. We are looking to purchase 5 subscriptions, either > Enterprise or possibly Universal depending on the pricing. > I found the Universal box here for $1135 (with an additional $300 DVD media > discount!): > http://www.buycheapsoftware.com/details.asp?productID=696 > > Can anyone top this? > Brett Barabash, MCP > Tappe Construction, Co. > Eagan, MN > bbarabash at tappeconstruction.com > (651) 256-6831 -------------------------------------------------------------------------------------------------------------------- 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 actebs at actebs.com.au Tue Apr 13 11:56:48 2004 From: actebs at actebs.com.au (ACTEBS) Date: Wed, 14 Apr 2004 02:56:48 +1000 Subject: [AccessD] Urgent: ADO Recordset from SQL to Access DB - Solved In-Reply-To: Message-ID: <000a01c42178$529a90f0$0b08a8c0@carltonone.local> Jeff, Thanks you're a lifesaver... Vlad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jeffrey.demulling at usbank.com Sent: Tuesday, 13 April 2004 11:55 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Urgent: ADO Recordset from SQL to Access DB Here is some code. I use a module that contains my connection information: Function ODRConnection(myid As String, mypassword As String) ODRConnection = "Provider=SQLOLEDB.1;Password=" & mypassword & ";Persist Security Info=True;User ID=" & myid & ";Initial Catalog=" & GetSEIDatabase & ";Data Source=" & GetSEIServerName End Function Now to open the recordset ad append the records: Dim con As New ADODB.Connection Dim rs As New ADODB.Recordset Dim cmdtext As String con = setconnection con.Open cmdtext = "INSERT INTO tblProviders (" cmdtext = cmdtext & " [ProviderName] )" cmdtext = cmdtext & " VALUES (" cmdtext = cmdtext & " '" & Me.txtCustomerName & "');" rs.Open cmdtext, con con.Close set rs = nothing set con = nothing ACTEBS To: "access group" Sent by: cc: accessd-bounces at databasea Subject: [AccessD] Urgent: ADO Recordset from SQL to Access DB dvisors.com 04/13/2004 08:33 AM Please respond to "Access Developers discussion and problem solving" Hi Everyone, I am onsite doing some coding for a client and don't have access to a couple of files/examples at my office. If anyone has some code to connect to an SQL Server DB via ADO then open the recordset and then append the records to an Access DB table I would be forever grateful. I have been working on this project all day (interstate) and this is the last of it, but for the life of me I can't work out how to set it up...I know I could setup and ODBC connection, but that's not an elegant solution... Any help will be much appreciated... 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 rl_stewart at highstream.net Tue Apr 13 13:17:16 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Tue, 13 Apr 2004 13:17:16 -0500 Subject: [AccessD] Re: Ownership In-Reply-To: <200404131700.i3DH0LB16022@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040413131409.02a0b8e0@pop3.highstream.net> Richard, It depends on the contract. If you are contracting to produce a specific program with source, the you can word the contract so that you retain the copyright, but they have rights to modify the source and cannot sell it outside of their company. Or, that they own the copyright at the end of teh contract and can do whatever they want with it. Generally, if you are working by the hour, they own it. But, again, you can word the contract however you want to between you and the customer. Robert At 12:00 PM 4/13/2004 -0500, you wrote: >Date: Tue, 13 Apr 2004 13:59:43 +0100 >From: "Griffiths, Richard" >Subject: [AccessD] Ownership >To: >Message-ID: > >Content-Type: text/plain; charset="us-ascii" > >Hi > > > >Appear to be getting requests for consultancy work - ie writing >small/medium Access/VB systems. Does anyone know the ownership >situation for the UK. Can they (my clients) sell on any system I write? >Can they demand the source code from me? Or do I have exclusive rights >to the code and sell on? > > > >Thanks in advance > > > >Richard From gustav at cactus.dk Tue Apr 13 13:24:35 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 13 Apr 2004 20:24:35 +0200 Subject: [AccessD] OT - MSDN Subscriptions In-Reply-To: <426071E0B0A6D311B3C0006008B0AB23AFE4FB@TAPPEEXCH01> References: <426071E0B0A6D311B3C0006008B0AB23AFE4FB@TAPPEEXCH01> Message-ID: <1139849210.20040413202435@cactus.dk> Hi Brett But what happens if you "fail" other than you may have postponed your purchase 24 months? /gustav > I have heard of this before (Joel Spolsky discussed it on his website) > Great program, except we are not an independent software vendor (ISV). To > be eligible for this program, we need to do the following: > - Within 18 months of initial membership activation (within 6 months from > renewal), members must publicly announce the new packaged software > application on their own official website. > - Within 24 months of initial membership activation (within 12 months from > renewal), members must release the new packaged software application to the > targeted marketplace. > Now, if I could convince management to allow me to sell my creations... > Brett Barabash, MCP > Tappe Construction, Co. > Eagan, MN > bbarabash at tappeconstruction.com > (651) 256-6831 > "One thing a computer can do that most humans can't is be sealed up in a > cardboard box and sit in a warehouse." -Jack Handey > -----Original Message----- > From: Gustav Brock [mailto:gustav at cactus.dk] > Sent: Tuesday, April 13, 2004 10:21 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] OT - MSDN Subscriptions > Hi Brett > Don't know what you are about to do, but have you had a look at the > empower program for ISVs: > http://members.microsoft.com/partner/isv/empower/default.aspx > /gustav >> I recall a discussion a while back about discount sources for MSDN >> subscriptions. We are looking to purchase 5 subscriptions, either >> Enterprise or possibly Universal depending on the pricing. >> I found the Universal box here for $1135 (with an additional $300 DVD media >> discount!): >> http://www.buycheapsoftware.com/details.asp?productID=696 >> From jskolits at CorporateDataDesign.com Tue Apr 13 14:05:48 2004 From: jskolits at CorporateDataDesign.com (John Skolits) Date: Tue, 13 Apr 2004 15:05:48 -0400 Subject: [AccessD] OT - Windows CE (Demise of PDAs) In-Reply-To: <2F8793082E00D4119A1700B0D0216BF802227AB8@main2.marlow.com> Message-ID: <000b01c4218a$552c8140$6701a8c0@OFFICEXP1> Thanks all for the links. While researching, came across an article about the decline of PDA's. Makes me think a bit before delving into a new technology/programming language. http://www.denverpost.com/Stories/0,1413,36~33~2077837,00.html John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: Tuesday, April 13, 2004 10:14 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] OT - Windows CE I know microsoft has an Add-On component for VB, for Windows CE. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Skolits Sent: Tuesday, April 13, 2004 3:00 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT - Windows CE Any advice on doing some basic forms with a backend DB on Windows CE? I'm not a C programmer but certainly been doing Access/VBA since Access came out. Are there any object oriented tools similar to Access that I can use to build forms and do VBA type code. Any good newsgroups for CE that would help me out? John Skolits -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Tue Apr 13 14:11:10 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Tue, 13 Apr 2004 20:11:10 +0100 Subject: [AccessD] Ownership In-Reply-To: Message-ID: <000001c4218b$1524a3b0$b274d0d5@minster33c3r25> Hi Richard It has always been my understanding that, unless a contract states otherwise, the source code belongs to the developer. Having said that, however, it has equally always been my stance that if I'm being paid to develop something then ethically what I develop specifically for the client is 100% theirs. But the key word is 'specifically'. Most of us have an awful lot of code in our lockers that we'll bring out in any development. The client needs to understand this and needs to see that he gets the benefit because he doesn't pay for that stuff. It may be this that gives us our marketing edge when we go into bat for the work. The question really comes down to 'why do you ask?'. Do I sense that you smell some sell-on potential? Be careful, it rarely happens. And certainly NEVER discount what you do based on the promise of future sales. But I digress. The important thing is that you want a happy customer and they probably want a happy supplier - or at least a productive one. So if you feel you should, or the customer forces the issue, then discuss it, but amicably. Explain that what they'll get is part theirs and part yours (if it is, and if you agree with me) and that they'll therefore own part of it. But in practise if they want to sell it on they'll need you along anyway for support etc, and if you want to sell it on you'll need them along as a (probably the only) reference site. So, like most things, it comes down to discussion, agreement, compromise and that sort of thing. Just reach an arrangement that suits both of you. IME most customers don't think to ask, and I don't raise it. It's not that I intend to do them down - if they raise it months or years down the line I'll still give the same response - it's just that getting contracts off the ground is tricky enough without introducing complications the customer hasn't even thought about. Just get the work, do a great job, make the customer happy, and the chances are it'll never be an issue. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Griffiths, Richard > Sent: 13 April 2004 14:00 > To: AccessD at databaseadvisors.com > Subject: [AccessD] Ownership > > > Hi > > > > Appear to be getting requests for consultancy work - ie writing > small/medium Access/VB systems. Does anyone know the ownership > situation for the UK. Can they (my clients) sell on any > system I write? Can they demand the source code from me? Or > do I have exclusive rights to the code and sell on? > > > > Thanks in advance > > > > Richard > From ssharkins at bellsouth.net Tue Apr 13 14:33:55 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 13 Apr 2004 15:33:55 -0400 Subject: [AccessD] Ownership In-Reply-To: <000001c4218b$1524a3b0$b274d0d5@minster33c3r25> Message-ID: <20040413193353.GYEC23778.imf23aec.mail.bellsouth.net@SUSANONE> There's nothing wrong with stipulating in the contract that the product is for the purchaser's use and not for resell by the purchaser -- I always had that. They don't ask -- they're not interested in reselling, but just in case... Susan H. The question really comes down to 'why do you ask?'. Do I sense that you smell some sell-on potential? Be careful, it rarely happens. And certainly NEVER discount what you do based on the promise of future sales. But I digress. The important thing is that you want a happy From DWUTKA at marlow.com Tue Apr 13 15:29:40 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Tue, 13 Apr 2004 15:29:40 -0500 Subject: [AccessD] OT - Windows CE (Demise of PDAs) Message-ID: <2F8793082E00D4119A1700B0D0216BF802227ABB@main2.marlow.com> Interesting article. However, there are mobile phones which are coming with Windows CE, so it's a skill that will still be handy even with the new trend. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Skolits Sent: Tuesday, April 13, 2004 2:06 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - Windows CE (Demise of PDAs) Thanks all for the links. While researching, came across an article about the decline of PDA's. Makes me think a bit before delving into a new technology/programming language. http://www.denverpost.com/Stories/0,1413,36~33~2077837,00.html John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: Tuesday, April 13, 2004 10:14 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] OT - Windows CE I know microsoft has an Add-On component for VB, for Windows CE. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Skolits Sent: Tuesday, April 13, 2004 3:00 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT - Windows CE Any advice on doing some basic forms with a backend DB on Windows CE? I'm not a C programmer but certainly been doing Access/VBA since Access came out. Are there any object oriented tools similar to Access that I can use to build forms and do VBA type code. Any good newsgroups for CE that would help me out? John Skolits -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Tue Apr 13 17:42:54 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Wed, 14 Apr 2004 08:42:54 +1000 Subject: [AccessD] A2K: Stop User from oving to new record References: <40706F3F.16231.9E7B12@localhost><01c501c41aad$5502fca0$48619a89@DDICK> <11019402659.20040412160445@cactus.dk> Message-ID: <003701c421a8$a979a340$48619a89@DDICK> Thanks Gustav et al I will use this method in the future many thanks Darren ----- Original Message ----- From: "Gustav Brock" To: "Access Developers discussion and problem solving" Sent: Tuesday, April 13, 2004 12:04 AM Subject: Re: [AccessD] A2K: Stop User from oving to new record > Hi Darren > > > Hi Bryan > > I did that no joy eg. > > That is because your expression will never be True as > > Me.cmbOffence = "" > > will be Null if Me.cmbOffence is Null, and then > > IsNull(Me.cmbOffence) Or Null > > will return Null as well. > > The fastest method is: > > If Len(Me.cmbOffence & vbNullString) = 0 > > but mostly I prefer to use Nz(): > > If Len(Nz(Me.cmbOffence, vbNullString)) = 0 > > As Stuart mentions, you may omit the last part, but you must be sure > that the value tested is either Null or a string (which is the case > here as I guess cmbOffence is a combobox): > > If Len(Nz(Me.cmbOffence.Value)) = 0 > > /gustav > > > > Private Sub Form_BeforeUpdate(Cancel As Integer) > > > If IsNull(Me.cmbOffence) Or Me.cmbOffence = "" Then > > MsgBox "Enter an offence" > > Cancel = True > > End If > > > End Sub > > > What I need to do is somehow test if the user is on a new fresh record or has left th previous record with unfilled combos. Of > > course I can do it on the lost and got focus event.Thats fine whilst I am in the record > > EG record 5 has no offence recorded > > User goes to record 6 How do i alert the user that record 5 has a missing value then go back to that record? > > > > ----- Original Message ----- > > From: "Bryan Carbonnell" > > To: "Access Developers discussion and problemsolving" > > Sent: Monday, April 05, 2004 10:25 AM > > Subject: Re: [AccessD] A2K: Stop User from oving to new record > > > >> On 5 Apr 2004 at 10:08, Darren DICK wrote: > >> > >> > I have a simple subform with 4 fields on it > >> > ID (PK), txtDateOfOccurence, cboClientName, cboOffence > >> > > >> > How can I tell if the user goes to a new record and they have not > >> > completed ALL fields in the previous record How do I alert them and > >> > then direct them back to the previous record? > >> > >> Use the before update event of the form. Check to make sure they > >> entered a vale and if not set Cancel = true in the event. That should > >> prevent the record from being saved and keep the sub form on the > >> "unfinished" record > > -- > _______________________________________________ > 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 Apr 13 18:20:54 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 14 Apr 2004 09:20:54 +1000 Subject: [AccessD] Ownership In-Reply-To: <000001c4218b$1524a3b0$b274d0d5@minster33c3r25> References: Message-ID: <407D0276.1957.32EE83@localhost> On 13 Apr 2004 at 20:11, Andy Lacey wrote: > Hi Richard > It has always been my understanding that, unless a contract states > otherwise, the source code belongs to the developer. I don't know about the UK, but in many situations, it is much more complicated than that. >Having said that, > however, it has equally always been my stance that if I'm being paid to > develop something then ethically what I develop specifically for the client > is 100% theirs. But the key word is 'specifically'. Most of us have an awful > lot of code in our lockers that we'll bring out in any development. In reality, *everyone* capable of developing a marketable solution does this. >The > client needs to understand this and needs to see that he gets the benefit > because he doesn't pay for that stuff. It may be this that gives us our > marketing edge when we go into bat for the work. > My standard "proposal" template says: "The application will have been developed by Lexacorp for your use, but the developed application will incorporate code fragments and ideas that have previously been developed by Lexacorp and all intellectual property rights to the application remains the property of Lexacorp. You will receive a copy of the source code for the application and will be granted a non-exclusive licence to use such source code for maintenance and future development of the said application for your own use in such manner as you see fit. .... You may not sell or otherwise dispose of the said source code, or any application developed utilising all or part of it to any third party without the express agreement of Lexacorp. " -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From stuart at lexacorp.com.pg Tue Apr 13 18:44:02 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 14 Apr 2004 09:44:02 +1000 Subject: [AccessD] OT - Windows CE (Demise of PDAs) In-Reply-To: <000b01c4218a$552c8140$6701a8c0@OFFICEXP1> References: <2F8793082E00D4119A1700B0D0216BF802227AB8@main2.marlow.com> Message-ID: <407D07E2.32006.4819F2@localhost> On 13 Apr 2004 at 15:05, John Skolits wrote: > Thanks all for the links. > > While researching, came across an article about the decline of PDA's. Makes > me think a bit before delving into a new technology/programming language. > > http://www.denverpost.com/Stories/0,1413,36~33~2077837,00.html > The "mobile devices" mentioned in the article as *replacements* for the PDA are really just PDAs with more features. They all use the same "new technology/programming language". (Is a Treo a phone with PDA functions or a PDA with phone functions?) Then there is the continuing growth in smart data capture equipment, GPS integrated devices etc Take a look at the number of different such devices now using Palm OS or Windows CE. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From d.dick at uws.edu.au Tue Apr 13 22:01:32 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Wed, 14 Apr 2004 13:01:32 +1000 Subject: [AccessD] A2K:Adding the word ALL to a combo Message-ID: <01c101c421cc$cadf66e0$48619a89@DDICK> Hello all I need to add the word to a combo SO pseudo = select * from MyTable and Then add "" I have done this before through assistance from this list but I can't find the Gem or remember the dB I did it on :-(( Any suggestions? Many thanks Darren From DWUTKA at marlow.com Tue Apr 13 22:10:22 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Tue, 13 Apr 2004 22:10:22 -0500 Subject: [AccessD] A2K:Adding the word ALL to a combo Message-ID: <2F8793082E00D4119A1700B0D0216BF802227ABF@main2.marlow.com> SELECT "ALL" As AField FROM MyTable UNION SELECT MyField FROM MyTable Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Darren DICK Sent: Tuesday, April 13, 2004 10:02 PM To: AccessD List Subject: [AccessD] A2K:Adding the word ALL to a combo Hello all I need to add the word to a combo SO pseudo = select * from MyTable and Then add "" I have done this before through assistance from this list but I can't find the Gem or remember the dB I did it on :-(( Any suggestions? Many thanks Darren -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Tue Apr 13 22:35:44 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Tue, 13 Apr 2004 20:35:44 -0700 Subject: [AccessD] A2K:Adding the word ALL to a combo In-Reply-To: <01c101c421cc$cadf66e0$48619a89@DDICK> Message-ID: Hi Darren: The only way I know to add 'all' to a combo/list box is through a recorsdset that I supply myself. The gem piece came from an example code segment supplied in Access97 help files. I can not remember what the request was that found it but I have used a variation on that theme for years. Below is the base piece; I just cut and pasted it from one application I have just finished. The call to this function is made from the list/combo boxes by placing the functions name in the 'Row Source Type' property i.e. : FillFunctionCode And a sample of the function: Public Function FillFunctionCode(ctlBox As Control, ID As Variant, row As Variant, col As Variant, Code As Variant) As Variant Dim bolDBStatus As Boolean Dim mvReturnVal As Variant On Error GoTo Err_FillFunctionCode bolDBStatus = True If rsFunctionCode Is Nothing Then bolDBStatus = FillRecordsetFunctionCode() mvReturnVal = Null If bolDBStatus = True Then With rsFunctionCode Select Case Code Case acLBInitialize ' Initialize. bolStatus = True If .BOF = False Or .EOF = False Then .MoveFirst mvReturnVal = .RecordCount Else mvReturnVal = 0 End If Case acLBOpen ' Open. mvReturnVal = Timer ' Generate unique ID for control. Case acLBGetRowCount ' Get number of rows. mvReturnVal = .RecordCount Case acLBGetColumnCount ' Get number of columns. mvReturnVal = ctlBox.ColumnCount Case acLBGetColumnWidth ' Column width. mvReturnVal = -1 ' -1 forces use of default width. Case acLBGetFormat ' Get format mvReturnVal = -1 Case acLBGetValue ' Get data. .MoveFirst .Move (row) mvReturnVal = .Fields(col) End Select End With End If FillFunctionCode = mvReturnVal Exit_FillFunctionCode: Exit Function Err_FillFunctionCode: 'Handles error situation caused an apparent unrelated error(s) 'generated in other modules. (It loses its brains...) If Err.Number = 3167 Then rsFunctionCode.Requery ElseIf Err.Number = 3704 Or Err.Number = -2147467259 Then Resume Exit_FillFunctionCode ElseIf Err.Number <> 91 Then ShowErrMsg "FillFunctionCode" End If Resume Exit_FillFunctionCode End Function There still needs to be a piece of code that fills the recordset, in this case a recordset named 'rsFunctionCode'. In the recordset creating routine is where 'All' would be added. If you need I can send the code that populates the recordset but there are so many ways to do that. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Darren DICK Sent: Tuesday, April 13, 2004 8:02 PM To: AccessD List Subject: [AccessD] A2K:Adding the word ALL to a combo Hello all I need to add the word to a combo SO pseudo = select * from MyTable and Then add "" I have done this before through assistance from this list but I can't find the Gem or remember the dB I did it on :-(( Any suggestions? Many thanks Darren -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rbgajewski at adelphia.net Tue Apr 13 22:33:35 2004 From: rbgajewski at adelphia.net (Bob Gajewski) Date: Tue, 13 Apr 2004 23:33:35 -0400 Subject: [AccessD] A2K:Adding the word ALL to a combo In-Reply-To: <01c101c421cc$cadf66e0$48619a89@DDICK> Message-ID: Darren: Here's one example: SELECT [tblStates].[txtStateCode], [tblStates].[txtStateName] FROM tblStates UNION Select "" As AllChoice FROM tblStates ORDER BY [tblStates].[txtStateName]; Regards, Bob Gajewski -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Darren DICK Sent: Tuesday, April 13, 2004 23:02 To: AccessD List Subject: [AccessD] A2K:Adding the word ALL to a combo Hello all I need to add the word to a combo SO pseudo = select * from MyTable and Then add "" I have done this before through assistance from this list but I can't find the Gem or remember the dB I did it on :-(( Any suggestions? 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 Tue Apr 13 22:57:39 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Wed, 14 Apr 2004 13:57:39 +1000 Subject: [AccessD] A2K:Adding the word ALL to a combo References: <2F8793082E00D4119A1700B0D0216BF802227ABF@main2.marlow.com> Message-ID: <01fc01c421d4$a17fd7f0$48619a89@DDICK> Howdy Thanks for the reply Excellent DD ----- Original Message ----- From: To: Sent: Wednesday, April 14, 2004 1:10 PM Subject: RE: [AccessD] A2K:Adding the word ALL to a combo > SELECT "ALL" As AField > FROM MyTable > > UNION SELECT MyField > FROM MyTable > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Darren DICK > Sent: Tuesday, April 13, 2004 10:02 PM > To: AccessD List > Subject: [AccessD] A2K:Adding the word ALL to a combo > > > Hello all > I need to add the word to a combo > SO pseudo = select * from MyTable and Then add "" > > I have done this before through assistance from this list but I can't find > the Gem > or remember the dB I did it on :-(( > > Any suggestions? > > 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 Tue Apr 13 23:08:00 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Wed, 14 Apr 2004 14:08:00 +1000 Subject: [AccessD] A2K:Adding the word ALL to a combo - SOLVED References: Message-ID: <022d01c421d6$13918b80$48619a89@DDICK> Thanks to all who responded I went with Drew's suggestion 'Cause he was first :-)) Many thanks Darren ----- Original Message ----- From: "Jim Lawrence (AccessD)" To: "Access Developers discussion and problem solving" Sent: Wednesday, April 14, 2004 1:35 PM Subject: RE: [AccessD] A2K:Adding the word ALL to a combo > Hi Darren: > > The only way I know to add 'all' to a combo/list box is through a recorsdset > that I supply myself. The gem piece came from an example code segment > supplied in Access97 help files. I can not remember what the request was > that found it but I have used a variation on that theme for years. Below is > the base piece; I just cut and pasted it from one application I have just > finished. > > The call to this function is made from the list/combo boxes by placing the > functions name in the 'Row Source Type' property i.e. : FillFunctionCode > > And a sample of the function: > > Public Function FillFunctionCode(ctlBox As Control, ID As Variant, row As > Variant, col As Variant, Code As Variant) As Variant > Dim bolDBStatus As Boolean > Dim mvReturnVal As Variant > > On Error GoTo Err_FillFunctionCode > > bolDBStatus = True > If rsFunctionCode Is Nothing Then bolDBStatus = > FillRecordsetFunctionCode() > > mvReturnVal = Null > > If bolDBStatus = True Then > With rsFunctionCode > Select Case Code > Case acLBInitialize ' Initialize. > bolStatus = True > > If .BOF = False Or .EOF = False Then > .MoveFirst > mvReturnVal = .RecordCount > Else > mvReturnVal = 0 > End If > Case acLBOpen ' Open. > mvReturnVal = Timer ' Generate unique ID for > control. > Case acLBGetRowCount ' Get number of rows. > mvReturnVal = .RecordCount > Case acLBGetColumnCount ' Get number of columns. > mvReturnVal = ctlBox.ColumnCount > Case acLBGetColumnWidth ' Column width. > mvReturnVal = -1 ' -1 forces use of > default width. > Case acLBGetFormat ' Get format > mvReturnVal = -1 > Case acLBGetValue ' Get data. > .MoveFirst > .Move (row) > mvReturnVal = .Fields(col) > End Select > End With > End If > > FillFunctionCode = mvReturnVal > > Exit_FillFunctionCode: > Exit Function > > Err_FillFunctionCode: > 'Handles error situation caused an apparent unrelated error(s) > 'generated in other modules. (It loses its brains...) > If Err.Number = 3167 Then > rsFunctionCode.Requery > ElseIf Err.Number = 3704 Or Err.Number = -2147467259 Then > Resume Exit_FillFunctionCode > ElseIf Err.Number <> 91 Then > ShowErrMsg "FillFunctionCode" > End If > Resume Exit_FillFunctionCode > > End Function > > There still needs to be a piece of code that fills the recordset, in this > case a recordset named 'rsFunctionCode'. In the recordset creating routine > is where 'All' would be added. If you need I can send the code that > populates the recordset but there are so many ways to do that. > > HTH > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Darren DICK > Sent: Tuesday, April 13, 2004 8:02 PM > To: AccessD List > Subject: [AccessD] A2K:Adding the word ALL to a combo > > > Hello all > I need to add the word to a combo > SO pseudo = select * from MyTable and Then add "" > > I have done this before through assistance from this list but I can't find > the Gem > or remember the dB I did it on :-(( > > Any suggestions? > > 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 gustav at cactus.dk Wed Apr 14 03:50:51 2004 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 14 Apr 2004 10:50:51 +0200 Subject: [AccessD] A2K:Adding the word ALL to a combo - SOLVED In-Reply-To: <022d01c421d6$13918b80$48619a89@DDICK> References: <022d01c421d6$13918b80$48619a89@DDICK> Message-ID: <1336886412.20040414105051@cactus.dk> Hi Darren > Thanks to all who responded > I went with Drew's suggestion > 'Cause he was first :-)) Yeah, but I guess you did adjust it to use "", because "ALL" could be sorted within your recordset. Thus, if you have Alice and Susan, your combo would list: Alice ALL Susan /gustav > SELECT "ALL" As AField > FROM MyTable > > UNION SELECT MyField > FROM MyTable From Jeff at OUTBAKTech.com Wed Apr 14 10:39:36 2004 From: Jeff at OUTBAKTech.com (Jeff Barrows) Date: Wed, 14 Apr 2004 10:39:36 -0500 Subject: [AccessD] Convert Case to Upper Case Message-ID: <8DA8776D2F418E46A2A464AC6CE6305003266E@outbaksrv1.outbaktech.com> Hello Group, Does anyone have a technique for updating data in tables to ALL be upper case? Jeff Barrows From gustav at cactus.dk Wed Apr 14 10:58:02 2004 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 14 Apr 2004 17:58:02 +0200 Subject: [AccessD] Convert Case to Upper Case In-Reply-To: <8DA8776D2F418E46A2A464AC6CE6305003266E@outbaksrv1.outbaktech.com> References: <8DA8776D2F418E46A2A464AC6CE6305003266E@outbaksrv1.outbaktech.com> Message-ID: <9332517157.20040414175802@cactus.dk> Hi Jeff An update query ... or do you have special needs? /gustav > Does anyone have a technique for updating data in tables to ALL be upper case? From bheid at appdevgrp.com Wed Apr 14 11:02:20 2004 From: bheid at appdevgrp.com (Bobby Heid) Date: Wed, 14 Apr 2004 12:02:20 -0400 Subject: [AccessD] Convert Case to Upper Case In-Reply-To: <916187228923D311A6FE00A0CC3FAA308209CE@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA305BB414@ADGSERVER> You can use the format function in a query with a format string of ">". Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeff Barrows Sent: Wednesday, April 14, 2004 11:40 AM To: accessd at databaseadvisors.com Subject: [AccessD] Convert Case to Upper Case Hello Group, Does anyone have a technique for updating data in tables to ALL be upper case? Jeff Barrows -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Wed Apr 14 11:27:04 2004 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 14 Apr 2004 18:27:04 +0200 Subject: [AccessD] A97 - 2003 conversion In-Reply-To: <15440940699.20040225202312@cactus.dk> References: <15440940699.20040225202312@cactus.dk> Message-ID: <5634259482.20040414182704@cactus.dk> Hi all Helen has added part two - this time on Personal Digital Certificates - but now a part three is announced. The filename has not changed. /gustav > You should look up Helen's article (part one only, part two to > follow!) > http://www.helenfeddema.com/access.htm > on this topic: accarch119.zip From Patricia.O'Connor at dfa.state.ny.us Wed Apr 14 11:27:14 2004 From: Patricia.O'Connor at dfa.state.ny.us (O'Connor, Patricia ) Date: Wed, 14 Apr 2004 12:27:14 -0400 Subject: [AccessD] Convert Case to Upper Case Message-ID: Update query using UPPER([fieldname]) HTH Patti ************************************************************* * Patricia E. O'Connor * Associate Computer Programmer/Analyst * OTDA - BDMA * (W) mailto:Patricia.O'Connor at dfa.state.ny.us * (W) mailto:aa1160 at dfa.state.ny.us *********************************************************** From gustav at cactus.dk Wed Apr 14 11:46:55 2004 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 14 Apr 2004 18:46:55 +0200 Subject: [AccessD] Access 2003 Digital Certificate In-Reply-To: <5634259482.20040414182704@cactus.dk> References: <15440940699.20040225202312@cactus.dk> <5634259482.20040414182704@cactus.dk> Message-ID: <1335450164.20040414184655@cactus.dk> Hi all And from Gary Robinson I just received a link for this month's open article "Signing Access 2003 Projects": http://www.pinpub.com/html/main.isx?sub=62&story=2693 Basically, applying a digital certificate to your code encrypts it for editing but not for execution. /gustav > Helen has added part two - this time on Personal Digital Certificates > - but now a part three is announced. > The filename has not changed. > /gustav >> You should look up Helen's article (part one only, part two to >> follow!) >> http://www.helenfeddema.com/access.htm >> on this topic: accarch119.zip From Jeff at OUTBAKTech.com Wed Apr 14 12:00:54 2004 From: Jeff at OUTBAKTech.com (Jeff Barrows) Date: Wed, 14 Apr 2004 12:00:54 -0500 Subject: [AccessD] Convert Case to Upper Case Message-ID: <8DA8776D2F418E46A2A464AC6CE6305003266F@outbaksrv1.outbaktech.com> Thanks for the help! This Should work just fine!! -----Original Message----- From: O'Connor, Patricia [mailto:Patricia.O'Connor at dfa.state.ny.us] Sent: Wed 4/14/2004 11:27 AM To: Access Developers discussion and problem solving Cc: Subject: RE: [AccessD] Convert Case to Upper Case Update query using UPPER([fieldname]) HTH Patti ************************************************************* * Patricia E. O'Connor * Associate Computer Programmer/Analyst * OTDA - BDMA * (W) mailto:Patricia.O'Connor at dfa.state.ny.us * (W) mailto:aa1160 at dfa.state.ny.us *********************************************************** From gustav at cactus.dk Wed Apr 14 12:16:52 2004 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 14 Apr 2004 19:16:52 +0200 Subject: [AccessD] Convert Case to Upper Case In-Reply-To: <8DA8776D2F418E46A2A464AC6CE6305003266F@outbaksrv1.outbaktech.com> References: <8DA8776D2F418E46A2A464AC6CE6305003266F@outbaksrv1.outbaktech.com> Message-ID: <13037247018.20040414191652@cactus.dk> Hi Jeff > Thanks for the help! This Should work just fine!! Not in Jet SQL. That would be UCase(). /gustav > Update query using UPPER([fieldname]) From gustav at cactus.dk Wed Apr 14 12:45:51 2004 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 14 Apr 2004 19:45:51 +0200 Subject: [AccessD] Permissions Refresher In-Reply-To: References: Message-ID: <1338986209.20040414194551@cactus.dk> Hi Mark > I have a database that is currently restricted (by folder permissions) to > only a few individual persons. I am now in the process of creating a > database for general use that needs to link to a table in that restricted > database. Out of the following permissions, what is the minimum necessary > to allow a user to execute select queries, but not allow any modifications > to the data? I don't think you can do this as you for the new user group would need to have two levels of permissions: read-only for the data file, and - as for the first group - create-read-write (or better: create-read-write-erase) for the the locking file (.ldb). This article covers your initial scenario but not your requested scenario, "Restrict The People Who Can Use Your Database Folder": http://www.vb123.com/toolshed/04_docs/accessdb_op_security.htm However - as William will know - if you really need this setup, go and get a Novell NetWare server. Here you can control user permissions down to the single file; this scenario could be created in two minutes. /gustav From gustav at cactus.dk Wed Apr 14 14:14:15 2004 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 14 Apr 2004 21:14:15 +0200 Subject: [AccessD] OT: US/UK public holidays Message-ID: <591136444.20040414211415@cactus.dk> Hi all What is the meaning of the column "Day Observed" here: http://www.usembassy.org.uk/ukpubhol.html Look for example at the second and third last entry. /gustav From mwp.reid at qub.ac.uk Wed Apr 14 14:18:13 2004 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Wed, 14 Apr 2004 20:18:13 +0100 Subject: [AccessD] OT: US/UK public holidays References: <591136444.20040414211415@cactus.dk> Message-ID: <001e01c42255$3e5ec7e0$1b02a8c0@MARTINREID> Dont know but maybe its the day they take instead of the official holiday for example if it falls on a weekend. Martin ----- Original Message ----- From: "Gustav Brock" To: "Access Developers discussion and problem solving" Sent: Wednesday, April 14, 2004 8:14 PM Subject: [AccessD] OT: US/UK public holidays > Hi all > > What is the meaning of the column "Day Observed" here: > > http://www.usembassy.org.uk/ukpubhol.html > > Look for example at the second and third last entry. > > /gustav > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jeffrey.demulling at usbank.com Wed Apr 14 14:21:40 2004 From: jeffrey.demulling at usbank.com (jeffrey.demulling at usbank.com) Date: Wed, 14 Apr 2004 14:21:40 -0500 Subject: [AccessD] OT: US/UK public holidays Message-ID: It is the day that the Embassy will actually close for the holiday. The best example is Christamas. It falls on a Saturday but the Embassy will close on Friday. "Gustav Brock" To: "Access Developers discussion and problem solving" Sent by: accessd-bounces at databasea cc: dvisors.com Subject: [AccessD] OT: US/UK public holidays 04/14/2004 02:14 PM Please respond to "Access Developers discussion and problem solving" Hi all What is the meaning of the column "Day Observed" here: http://www.usembassy.org.uk/ukpubhol.html Look for example at the second and third last entry. /gustav -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at bellsouth.net Wed Apr 14 16:38:46 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Wed, 14 Apr 2004 17:38:46 -0400 Subject: [AccessD] Permissions Refresher References: <1338986209.20040414194551@cactus.dk> Message-ID: <00c301c42268$de1619b0$6101a8c0@dejpolsys> ...William knows nnnooottthhhinnnggg! ...just ask JC ...he'll confirm that :) William Hindman "Always code as if the person who is maintaining or testing your code is a violent psychopath who knows where you live." William Silverstein ----- Original Message ----- From: "Gustav Brock" To: "Access Developers discussion and problem solving" Sent: Wednesday, April 14, 2004 1:45 PM Subject: Re: [AccessD] Permissions Refresher > Hi Mark > > > I have a database that is currently restricted (by folder permissions) to > > only a few individual persons. I am now in the process of creating a > > database for general use that needs to link to a table in that restricted > > database. Out of the following permissions, what is the minimum necessary > > to allow a user to execute select queries, but not allow any modifications > > to the data? > > I don't think you can do this as you for the new user group would need > to have two levels of permissions: read-only for the data file, and - > as for the first group - create-read-write (or better: > create-read-write-erase) for the the locking file (.ldb). > > This article covers your initial scenario but not your requested > scenario, "Restrict The People Who Can Use Your Database Folder": > > http://www.vb123.com/toolshed/04_docs/accessdb_op_security.htm > > However - as William will know - if you really need this setup, go and > get a Novell NetWare server. Here you can control user permissions > down to the single file; this scenario could be created in two > minutes. > > /gustav > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From DaveSharpe2 at cox.net Wed Apr 14 16:54:37 2004 From: DaveSharpe2 at cox.net (Dave Sharpe) Date: Wed, 14 Apr 2004 17:54:37 -0400 Subject: [AccessD] OT: US/UK public holidays References: <591136444.20040414211415@cactus.dk> Message-ID: <008401c4226b$14b4ba10$dd2f0a44@bcsrkeext6137> gustav As an example "Public Holiday" "Date" "Day Observed" "Presidents Day" "3rd Monday in February" "Monday, February 16, 2004" Date is how the holiday is "defined", "described" or "determined" and for many ovservance varies year to year. Date Observed id is for 2004 the calendar day on which it falls. If You're incorporating into something, I think that You might need provide the Date Observed for some range of years such as 1900 to 2100. Such data is probably available somewhere on the web. Excel does this for it's function WORKDAY(start_date,days,holidays) forcing the user to provide their own list. Start_date is a date that represents the start date. Dates may be entered as text strings within quotation marks (for example, "1/30/1998" or "1998/01/30"), as serial numbers (for example, 35825, which represents January 30, 1998, if you're using the 1900 date system), or as results of other formulas or functions (for example, DATEVALUE("1/30/1998")) Days is the number of nonweekend and nonholiday days before or after start_date. A positive value for days yields a future date; a negative value yields a past date. Holidays is an optional list of one or more dates to exclude from the working calendar, such as state and federal holidays and floating holidays. The list can be either a range of cells that contain the dates or an array constant of the serial numbers that represent the dates. Learn about array constants. For more information about how Microsoft Excel uses serial numbers for dates, see the Remarks section. Dave ----- Original Message ----- From: "Gustav Brock" To: "Access Developers discussion and problem solving" Sent: Wednesday, April 14, 2004 3:14 PM Subject: [AccessD] OT: US/UK public holidays Hi all What is the meaning of the column "Day Observed" here: http://www.usembassy.org.uk/ukpubhol.html Look for example at the second and third last entry. /gustav -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DaveSharpe2 at cox.net Wed Apr 14 17:07:43 2004 From: DaveSharpe2 at cox.net (Dave Sharpe) Date: Wed, 14 Apr 2004 18:07:43 -0400 Subject: [AccessD] OT: US/UK public holidays References: <591136444.20040414211415@cactus.dk> Message-ID: <00a001c4226c$e94ce6c0$dd2f0a44@bcsrkeext6137> gustav A follow up o my earlier mailing. These folks have lists available. Not free but I didn't see a price list. http://www.financialcalendar.com/products/main.htm Dave ----- Original Message ----- From: "Gustav Brock" To: "Access Developers discussion and problem solving" Sent: Wednesday, April 14, 2004 3:14 PM Subject: [AccessD] OT: US/UK public holidays Hi all What is the meaning of the column "Day Observed" here: http://www.usembassy.org.uk/ukpubhol.html Look for example at the second and third last entry. /gustav -- _______________________________________________ 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 Apr 14 17:33:31 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 15 Apr 2004 08:33:31 +1000 Subject: [AccessD] OT: US/UK public holidays In-Reply-To: <591136444.20040414211415@cactus.dk> Message-ID: <407E48DB.8363.1540CB@localhost> On 14 Apr 2004 at 21:14, Gustav Brock wrote: > Hi all > > What is the meaning of the column "Day Observed" here: > The day that people actually "have off" > http://www.usembassy.org.uk/ukpubhol.html > > Look for example at the second and third last entry. > Where a holiday falls on a non-working day, they take another day off "in lieu". ie "New Year?s Day January 1, 2005 Friday, December 31, 2004" New Years Day is a defined holiday which falls on 1 January. Since that falls on a Saturday, they are taking the Friday off. Similarly, because Christmas and Boxing Day fall on Saturday and Sunday, they are taking Monday and Tuesday off. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From clh at christopherhawkins.com Wed Apr 14 18:07:03 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Wed, 14 Apr 2004 17:07:03 -0600 Subject: [AccessD] A2K: Syntax - Manipulating a sub-subform? Message-ID: <246760-2200443142373578@christopherhawkins.com> First, the setup: Form frmMain contains a subform object named sFrmFind. sFrmFind's SourceObject is frmFind. frmFind contains a subform object named sFrmResults. sFrmResults' SourceObject is frmResults. frmResults is a datasheet with fields such as FirstName, LastName, etc. Now, my question...once frmMain is open and showing me my subforms, how do I change the .ColumnOrder of a field in frmResults from within the Click event of a button on frmFind? Forms!frmMain.sFrmFind.Form!sFrmResults.Form("FirstName").ColumnOrder = 1 isn't doing it. Me.parent.sFrmFind.Form!sFrmResults.Form("FirstName").ColumnOrder = 1 isn't doing it either. I keep getting 'Application-defined or object-defined error' when either of those lines try to execute. I'm oviously overlooking some nuance of syntax. If I'm true to form, I'll have "one more idea" and fix it immediately after clicking 'Send' on this eMail. But by all means, suggest some syntax anyway. :) -Christopher- From d.dick at uws.edu.au Wed Apr 14 19:53:56 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Thu, 15 Apr 2004 10:53:56 +1000 Subject: [AccessD] A2K:Adding the word ALL to a combo - SOLVED References: <022d01c421d6$13918b80$48619a89@DDICK> <1336886412.20040414105051@cactus.dk> Message-ID: <005a01c42284$21761230$48619a89@DDICK> Yes I did Thanks I actually wanted the < and the > in the appearance of the word in the list Thanks heaps Gustav This list is way cool. :-))) ----- Original Message ----- From: "Gustav Brock" To: "Access Developers discussion and problem solving" Sent: Wednesday, April 14, 2004 6:50 PM Subject: Re: [AccessD] A2K:Adding the word ALL to a combo - SOLVED > Hi Darren > > > Thanks to all who responded > > I went with Drew's suggestion > > 'Cause he was first :-)) > > Yeah, but I guess you did adjust it to use "", because "ALL" > could be sorted within your recordset. Thus, if you have Alice and > Susan, your combo would list: > > Alice > ALL > Susan > > /gustav > > > SELECT "ALL" As AField > > FROM MyTable > > > > UNION SELECT MyField > > FROM MyTable > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From accessd at shaw.ca Wed Apr 14 22:16:32 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Wed, 14 Apr 2004 20:16:32 -0700 Subject: [AccessD] A2K: Syntax - Manipulating a sub-subform? In-Reply-To: <246760-2200443142373578@christopherhawkins.com> Message-ID: Hi Christopher: Did you see this entry at the DBA web site? http://www.databaseadvisors.com/newletters/newsletter032004/0310ReferenceGui de/SyntaxForSubs.htm (watch for wrap) HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Christopher Hawkins Sent: Wednesday, April 14, 2004 4:07 PM To: accessd at databaseadvisors.com Subject: [AccessD] A2K: Syntax - Manipulating a sub-subform? First, the setup: Form frmMain contains a subform object named sFrmFind. sFrmFind's SourceObject is frmFind. frmFind contains a subform object named sFrmResults. sFrmResults' SourceObject is frmResults. frmResults is a datasheet with fields such as FirstName, LastName, etc. Now, my question...once frmMain is open and showing me my subforms, how do I change the .ColumnOrder of a field in frmResults from within the Click event of a button on frmFind? Forms!frmMain.sFrmFind.Form!sFrmResults.Form("FirstName").ColumnOrder = 1 isn't doing it. Me.parent.sFrmFind.Form!sFrmResults.Form("FirstName").ColumnOrder = 1 isn't doing it either. I keep getting 'Application-defined or object-defined error' when either of those lines try to execute. I'm oviously overlooking some nuance of syntax. If I'm true to form, I'll have "one more idea" and fix it immediately after clicking 'Send' on this eMail. But by all means, suggest some syntax anyway. :) -Christopher- -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From clh at christopherhawkins.com Wed Apr 14 23:08:16 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Wed, 14 Apr 2004 22:08:16 -0600 Subject: [AccessD] A2K: Syntax - Manipulating a sub-subform? Message-ID: <221950-2200444154816781@christopherhawkins.com> Thanks! I'll try this out tomorrow... -Christopher- ---- Original Message ---- From: accessd at shaw.ca To: accessd at databaseadvisors.com, Subject: RE: [AccessD] A2K: Syntax - Manipulating a sub-subform? Date: Wed, 14 Apr 2004 20:16:32 -0700 >Hi Christopher: > >Did you see this entry at the DBA web site? >http://www.databaseadvisors.com/newletters/newsletter032004/0310Refer >enceGui >de/SyntaxForSubs.htm (watch for wrap) > >HTH >Jim > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Christopher >Hawkins >Sent: Wednesday, April 14, 2004 4:07 PM >To: accessd at databaseadvisors.com >Subject: [AccessD] A2K: Syntax - Manipulating a sub-subform? > > >First, the setup: > >Form frmMain contains a subform object named sFrmFind. sFrmFind's >SourceObject is frmFind. > >frmFind contains a subform object named sFrmResults. sFrmResults' >SourceObject is frmResults. > >frmResults is a datasheet with fields such as FirstName, LastName, >etc. > >Now, my question...once frmMain is open and showing me my subforms, >how do I change the .ColumnOrder of a field in frmResults from within >the Click event of a button on frmFind? > >Forms!frmMain.sFrmFind.Form!sFrmResults.Form("FirstName").ColumnOrder >= 1 isn't doing it. >Me.parent.sFrmFind.Form!sFrmResults.Form("FirstName").ColumnOrder = 1 >isn't doing it either. > >I keep getting 'Application-defined or object-defined error' when >either of those lines try to execute. > >I'm oviously overlooking some nuance of syntax. > >If I'm true to form, I'll have "one more idea" and fix it immediately >after clicking 'Send' on this eMail. But by all means, suggest some >syntax anyway. :) > >-Christopher- > > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >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 Thu Apr 15 03:19:31 2004 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Thu, 15 Apr 2004 09:19:31 +0100 Subject: [AccessD] Ownership Message-ID: Hi Many thanks for all contributions (Stuart, Andy, Susan, Robert , Mastercafe and.....) Yes its not an issue at the moment and I don't intend to introduce it as one if I can help - I am simply trying to get some footing should I be questioned on this matter....and as you say Andy customers rarely go down this route. I like the standard 'proposal' used by Stuart and may adopt something similar. Thanks again Richard -----Original Message----- From: Stuart McLachlan [mailto:stuart at lexacorp.com.pg] Sent: 14 April 2004 00:21 To: Access Developers discussion and problemsolving Subject: RE: [AccessD] Ownership On 13 Apr 2004 at 20:11, Andy Lacey wrote: > Hi Richard > It has always been my understanding that, unless a contract states > otherwise, the source code belongs to the developer. I don't know about the UK, but in many situations, it is much more complicated than that. >Having said that, > however, it has equally always been my stance that if I'm being paid to > develop something then ethically what I develop specifically for the client > is 100% theirs. But the key word is 'specifically'. Most of us have an awful > lot of code in our lockers that we'll bring out in any development. In reality, *everyone* capable of developing a marketable solution does this. >The > client needs to understand this and needs to see that he gets the benefit > because he doesn't pay for that stuff. It may be this that gives us our > marketing edge when we go into bat for the work. > My standard "proposal" template says: "The application will have been developed by Lexacorp for your use, but the developed application will incorporate code fragments and ideas that have previously been developed by Lexacorp and all intellectual property rights to the application remains the property of Lexacorp. You will receive a copy of the source code for the application and will be granted a non-exclusive licence to use such source code for maintenance and future development of the said application for your own use in such manner as you see fit. .... You may not sell or otherwise dispose of the said source code, or any application developed utilising all or part of it to any third party without the express agreement of Lexacorp. " -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Thu Apr 15 04:47:52 2004 From: gustav at cactus.dk (Gustav Brock) Date: Thu, 15 Apr 2004 11:47:52 +0200 Subject: [AccessD] OT: US/UK public holidays In-Reply-To: <00a001c4226c$e94ce6c0$dd2f0a44@bcsrkeext6137> References: <591136444.20040414211415@cactus.dk> <00a001c4226c$e94ce6c0$dd2f0a44@bcsrkeext6137> Message-ID: <1719482024.20040415114752@cactus.dk> Hi Dave Nice link for calendar freaks. Notice the tab with Free Stuff. /gustav > These folks have lists available. > Not free but I didn't see a price list. > http://www.financialcalendar.com/products/main.htm From gustav at cactus.dk Thu Apr 15 04:36:22 2004 From: gustav at cactus.dk (Gustav Brock) Date: Thu, 15 Apr 2004 11:36:22 +0200 Subject: [AccessD] OT: US/UK public holidays In-Reply-To: <591136444.20040414211415@cactus.dk> References: <591136444.20040414211415@cactus.dk> Message-ID: <1058792482.20040415113622@cactus.dk> Thanks for all the responses! > The day that people actually "have off" But is this a commom business rule in US and UK or is just an arrangement for the embassies? And is there "a rule"? I notice that for Christmas Day you have two different Day Observed - looks like UK picks the proceeding workday while US picks the following workday. Here it is just "bad luck" for the citizens if a fixed date public holiday falls within a weekend or collides with a moveable holiday. /gustav > What is the meaning of the column "Day Observed" here: > http://www.usembassy.org.uk/ukpubhol.html > Look for example at the second and third last entry. From accessd667 at yahoo.com Thu Apr 15 07:42:49 2004 From: accessd667 at yahoo.com (S D) Date: Thu, 15 Apr 2004 05:42:49 -0700 (PDT) Subject: [AccessD] Show proces-step?! Message-ID: <20040415124249.74695.qmail@web61103.mail.yahoo.com> Hi group, I want the user to see what's currently going in the application. So if a user wants to proces 250 files (5-10 minutes) I want to show what file is currently being processed (me thinks this being pretty nasty English...sorry for that). Something like: Processing File: 9 of 21 Filename: 100_54_20040412.dat Does anybody have any tips/examples? TIA Sander --------------------------------- Do you Yahoo!? Yahoo! Tax Center - File online by April 15th From jeffrey.demulling at usbank.com Thu Apr 15 07:56:50 2004 From: jeffrey.demulling at usbank.com (jeffrey.demulling at usbank.com) Date: Thu, 15 Apr 2004 07:56:50 -0500 Subject: [AccessD] Show proces-step?! Message-ID: One option is to place a label on your form and update it as you are progressing through. dim currentfilenumber as interger dim totalfilenumber as interger dim progressmessage as string totalfilenumber = <> currentfilenumber = <> progressmessage = "Processing File: " & currentfilenumber & " of " totalfilenumber & chr(13) & chr(10) progressmessage = progressmessage & "Filename: " & currentfilename Another option is to look in the help about using the Status Bar. me.lblProgress.Capation = progressmessage Doevents "S D" To: accessd Sent by: cc: accessd-bounces at databasea Subject: [AccessD] Show proces-step?! dvisors.com 04/15/2004 07:42 AM Please respond to "Access Developers discussion and problem solving" Hi group, I want the user to see what's currently going in the application. So if a user wants to proces 250 files (5-10 minutes) I want to show what file is currently being processed (me thinks this being pretty nasty English...sorry for that). Something like: Processing File: 9 of 21 Filename: 100_54_20040412.dat Does anybody have any tips/examples? TIA Sander --------------------------------- Do you Yahoo!? Yahoo! Tax Center - File online by April 15th -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Thu Apr 15 08:08:18 2004 From: gustav at cactus.dk (Gustav Brock) Date: Thu, 15 Apr 2004 15:08:18 +0200 Subject: [AccessD] Show proces-step?! In-Reply-To: References: Message-ID: <3021508337.20040415150818@cactus.dk> Hi Jeffrey and Sander > me.lblProgress.Capation = progressmessage > Doevents I've found that Me.Repaint can be more effective. /gustav From jwcolby at colbyconsulting.com Thu Apr 15 08:14:03 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 15 Apr 2004 09:14:03 -0400 Subject: [AccessD] Show proces-step?! In-Reply-To: <20040415124249.74695.qmail@web61103.mail.yahoo.com> Message-ID: Sander, I have a progress form on my web site that can be opened and methods of the form called to display messages, increment a progress bar etc. Click the Misc Demos button. The file is C2DbDemoWaitform A2K or A97. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of S D Sent: Thursday, April 15, 2004 8:43 AM To: accessd Subject: [AccessD] Show proces-step?! Hi group, I want the user to see what's currently going in the application. So if a user wants to proces 250 files (5-10 minutes) I want to show what file is currently being processed (me thinks this being pretty nasty English...sorry for that). Something like: Processing File: 9 of 21 Filename: 100_54_20040412.dat Does anybody have any tips/examples? TIA Sander --------------------------------- Do you Yahoo!? Yahoo! Tax Center - File online by April 15th -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Bryan_Carbonnell at cbc.ca Thu Apr 15 08:20:07 2004 From: Bryan_Carbonnell at cbc.ca (Bryan Carbonnell) Date: Thu, 15 Apr 2004 09:20:07 -0400 Subject: [AccessD] OT: US/UK public holidays Message-ID: Here in Canada it is usually the closest business day that becomes the holiday. So if the holiday fall on Saturday, the observed holiday is the Friday previous. If the holiday falls on a Sunday, then the observed day is the Monday. Now to add to complication, if the place of employement has a union collective agreement, that may make the descision which day is observed at that particular company. Where I work, my collective agreement used to state that the observed day must be in the same work week as the week that the holiday fell. Since our work week is Monday to Sunday, all of our observed holidays would be on the Friday (or Thursday and Friday if both weekend days were holidays). So we would be closed when other businesses were open and open when everyone else was closed. I think that it has now changed, but I'm not 100% sure. Bryan Carbonnell bryan_carbonnell at cbc.ca >>> gustav at cactus.dk 15-Apr-04 5:36:22 AM >>> Thanks for all the responses! > The day that people actually "have off" But is this a commom business rule in US and UK or is just an arrangement for the embassies? And is there "a rule"? I notice that for Christmas Day you have two different Day Observed - looks like UK picks the proceeding workday while US picks the following workday. Here it is just "bad luck" for the citizens if a fixed date public holiday falls within a weekend or collides with a moveable holiday. /gustav > What is the meaning of the column "Day Observed" here: > http://www.usembassy.org.uk/ukpubhol.html > Look for example at the second and third last entry. From accessd667 at yahoo.com Thu Apr 15 08:33:48 2004 From: accessd667 at yahoo.com (S D) Date: Thu, 15 Apr 2004 06:33:48 -0700 (PDT) Subject: [AccessD] Show proces-step?! In-Reply-To: Message-ID: <20040415133348.86789.qmail@web61102.mail.yahoo.com> Hi John, i've downloaded the file...looks pretty complex though but solid! Jeffrey, thanks for you're idea. If johns demo is to complex for me you'res sounds fine. Thnx again. Sander "John W. Colby" wrote: Sander, I have a progress form on my web site that can be opened and methods of the form called to display messages, increment a progress bar etc. Click the Misc Demos button. The file is C2DbDemoWaitform A2K or A97. John W. Colby www.ColbyConsulting.com One option is to place a label on your form and update it as you are progressing through. dim currentfilenumber as interger dim totalfilenumber as interger dim progressmessage as string totalfilenumber = <> currentfilenumber = <> progressmessage = "Processing File: " & currentfilenumber & " of " totalfilenumber & chr(13) & chr(10) progressmessage = progressmessage & "Filename: " & currentfilename Another option is to look in the help about using the Status Bar. me.lblProgress.Capation = progressmessage Doevents -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of S D Sent: Thursday, April 15, 2004 8:43 AM To: accessd Subject: [AccessD] Show proces-step?! Hi group, I want the user to see what's currently going in the application. So if a user wants to proces 250 files (5-10 minutes) I want to show what file is currently being processed (me thinks this being pretty nasty English...sorry for that). Something like: Processing File: 9 of 21 Filename: 100_54_20040412.dat Does anybody have any tips/examples? TIA Sander --------------------------------- Do you Yahoo!? Yahoo! Tax Center - File online by April 15th -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Yahoo! Tax Center - File online by April 15th From jwcolby at colbyconsulting.com Thu Apr 15 08:59:02 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 15 Apr 2004 09:59:02 -0400 Subject: [AccessD] Show proces-step?! In-Reply-To: <20040415133348.86789.qmail@web61102.mail.yahoo.com> Message-ID: Just look at the demo setup code. It's really pretty easy to use. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of S D Sent: Thursday, April 15, 2004 9:34 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Show proces-step?! Hi John, i've downloaded the file...looks pretty complex though but solid! Jeffrey, thanks for you're idea. If johns demo is to complex for me you'res sounds fine. Thnx again. Sander "John W. Colby" wrote: Sander, I have a progress form on my web site that can be opened and methods of the form called to display messages, increment a progress bar etc. Click the Misc Demos button. The file is C2DbDemoWaitform A2K or A97. John W. Colby www.ColbyConsulting.com One option is to place a label on your form and update it as you are progressing through. dim currentfilenumber as interger dim totalfilenumber as interger dim progressmessage as string totalfilenumber = <> currentfilenumber = <> progressmessage = "Processing File: " & currentfilenumber & " of " totalfilenumber & chr(13) & chr(10) progressmessage = progressmessage & "Filename: " & currentfilename Another option is to look in the help about using the Status Bar. me.lblProgress.Capation = progressmessage Doevents -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of S D Sent: Thursday, April 15, 2004 8:43 AM To: accessd Subject: [AccessD] Show proces-step?! Hi group, I want the user to see what's currently going in the application. So if a user wants to proces 250 files (5-10 minutes) I want to show what file is currently being processed (me thinks this being pretty nasty English...sorry for that). Something like: Processing File: 9 of 21 Filename: 100_54_20040412.dat Does anybody have any tips/examples? TIA Sander --------------------------------- Do you Yahoo!? Yahoo! Tax Center - File online by April 15th -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Yahoo! Tax Center - File online by April 15th -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Thu Apr 15 10:17:53 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Thu, 15 Apr 2004 10:17:53 -0500 Subject: [AccessD] Archives are back online! Message-ID: <2F8793082E00D4119A1700B0D0216BF802227ACF@main2.marlow.com> The archives at http://www.wolfwares.com/AccessD are back online! Yippie! Drew From tim at irwingreenhouses.com Thu Apr 15 14:00:30 2004 From: tim at irwingreenhouses.com (Tim Thiessen) Date: Thu, 15 Apr 2004 14:00:30 -0500 Subject: [AccessD] Inventory Design Message-ID: <002701c4231b$ed59f000$7800a8c0@timt> Hi Group! The company I work for produces products that are persiable. Our inventory setup has worked well in the past but now our market is changing and we need to make a change. Currently, we physically count products and place on the inventory for a week period. With the new markets, we will need to be able to track future inventory or production and apply future orders to it in order to know what is or is not available on a certain date in the future. We will need to be working up to 18 months in advance. This will primarily be used to help sales and to plan production. Has anyone had any experience with doing this sort of thing and have any advice in designing tables to accomplish this? Tim Thiessen Production Manager Irwin Greenhouses, Inc. 806-655-7811 Fax 806-655-3046 From Mark.Mitsules at ngc.com Thu Apr 15 14:39:39 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Thu, 15 Apr 2004 15:39:39 -0400 Subject: [AccessD] Decompile Message-ID: Has anyone seen a case where /decompile did not appear to do anything? I'm getting the same "corrupt" error message as before. I have 2 objects that appear to be the culprits. I get the same "corrupt" error message when trying to import these objects into a new database (no error messages on the other objects). In the corrupted database I cannot go into the IDE at all...I get the same "corrupt" error message. This is actually the first time I've been bitten, without having a recent backup to fall back to, and I'm stressing. Any suggestions? Mark From bchacc at san.rr.com Thu Apr 15 14:51:14 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 15 Apr 2004 12:51:14 -0700 Subject: [AccessD] Inventory Design References: <002701c4231b$ed59f000$7800a8c0@timt> Message-ID: <015701c42323$02e81c10$6601a8c0@HAL9002> Tim: Take a look at www.ezmrp.com Rocky ----- Original Message ----- From: "Tim Thiessen" To: "AccessD List (E-mail)" Sent: Thursday, April 15, 2004 12:00 PM Subject: [AccessD] Inventory Design > Hi Group! > The company I work for produces products that are persiable. Our inventory > setup has worked well in the past but now our market is changing and we need > to make a change. Currently, we physically count products and place on the > inventory for a week period. With the new markets, we will need to be able > to track future inventory or production and apply future orders to it in > order to know what is or is not available on a certain date in the future. > We will need to be working up to 18 months in advance. This will primarily > be used to help sales and to plan production. Has anyone had any experience > with doing this sort of thing and have any advice in designing tables to > accomplish this? > > Tim Thiessen > Production Manager > Irwin Greenhouses, Inc. > 806-655-7811 > Fax 806-655-3046 > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From JHewson at karta.com Thu Apr 15 14:52:45 2004 From: JHewson at karta.com (Jim Hewson) Date: Thu, 15 Apr 2004 14:52:45 -0500 Subject: [AccessD] Sorting and restricting ComboBox on ListBox contents Message-ID: <9C382E065F54AE48BC3AA7925DCBB01C138357@karta-exc-int.Karta.com> I am having difficulty figuring this one out. A97. I have a list box with over 130 items all rows are distinct but a few columns are duplicates. The ListBox is sorted on two text fields which puts the ID number out of sequence. The ComboBox sorts and "Groups By" duplicate columns. What I want to do is use the ComboBox to jump to the first instance of one of the duplicate columns. e.g. ID CourseName City 135 CCP EC 90 DIS EC 87 DIS MP 18 DOC CD 17 DOC SR 55 DSC M AL 57 DSC M EC 43 DSC M MP 28 DSC M SF 3 DSC M SR What I want is: 135 CCP EC 90 DIS EC 18 DOC CD 55 DSC M AL 3 DSC M SR What I get is: 135 CCP EC 87 DIS MP 17 DOC SR 3 DSC M SR What needs to be done to what the desired results? Thanks, Jim From garykjos at hotmail.com Thu Apr 15 14:56:37 2004 From: garykjos at hotmail.com (Gary Kjos) Date: Thu, 15 Apr 2004 14:56:37 -0500 Subject: [AccessD] Decompile Message-ID: Hi Mark, 1) Make a copy. 2) Run the stand alone repair utility jetcomp.exe on the copy. If that doesn't work.... 3) make a new empty database and try to import the objects from the copy. You may have to do this one object at a time. Gary Kjos garykjos at hotmail.com >From: "Mitsules, Mark S. (Newport News)" >Reply-To: Access Developers discussion and problem >solving >To: "'[AccessD]'" >Subject: [AccessD] Decompile >Date: Thu, 15 Apr 2004 15:39:39 -0400 > >Has anyone seen a case where /decompile did not appear to do anything? I'm >getting the same "corrupt" error message as before. I have 2 objects that >appear to be the culprits. I get the same "corrupt" error message when >trying to import these objects into a new database (no error messages on >the >other objects). In the corrupted database I cannot go into the IDE at >all...I get the same "corrupt" error message. This is actually the first >time I've been bitten, without having a recent backup to fall back to, and >I'm stressing. Any suggestions? > > > >Mark >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ MSN Toolbar provides one-click access to Hotmail from any Web page ? FREE download! http://toolbar.msn.com/go/onm00200413ave/direct/01/ From CMackin at Quiznos.com Thu Apr 15 14:58:29 2004 From: CMackin at Quiznos.com (Mackin, Christopher) Date: Thu, 15 Apr 2004 13:58:29 -0600 Subject: [AccessD] Decompile Message-ID: <8950FA061E09F3478FDC2DE9FA86D83D376A5B@bross.quiznos.net> I've always had to resort to importing the objects into a new db, the corrupt ones won't come, then rebuild those from scratch -Chris Mackin -----Original Message----- From: Mitsules, Mark S. (Newport News) [mailto:Mark.Mitsules at ngc.com] Sent: Thursday, April 15, 2004 1:40 PM To: '[AccessD]' Subject: [AccessD] Decompile Has anyone seen a case where /decompile did not appear to do anything? I'm getting the same "corrupt" error message as before. I have 2 objects that appear to be the culprits. I get the same "corrupt" error message when trying to import these objects into a new database (no error messages on the other objects). In the corrupted database I cannot go into the IDE at all...I get the same "corrupt" error message. This is actually the first time I've been bitten, without having a recent backup to fall back to, and I'm stressing. Any suggestions? Mark -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Stephen.Pickering at caremark.com Thu Apr 15 15:07:16 2004 From: Stephen.Pickering at caremark.com (Pickering, Stephen) Date: Thu, 15 Apr 2004 13:07:16 -0700 Subject: [AccessD] Decompile Message-ID: Mark, Import every object except the corrupt ones. If you don't have a version of these objects that isn't corrupt, you will need to rebuild them. Also, back up early and often. Corruption happens. It's sometimes, but not always, because of something you've done. Best to be prepared. Some databases never come back.... Steve -----Mark S. Mitsules' Original Message----- From: Mitsules, Mark S. (Newport News) [mailto:Mark.Mitsules at ngc.com] Sent: Thursday, April 15, 2004 2:40 PM To: '[AccessD]' Subject: [AccessD] Decompile Has anyone seen a case where /decompile did not appear to do anything? I'm getting the same "corrupt" error message as before. I have 2 objects that appear to be the culprits. I get the same "corrupt" error message when trying to import these objects into a new database (no error messages on the other objects). In the corrupted database I cannot go into the IDE at all...I get the same "corrupt" error message. This is actually the first time I've been bitten, without having a recent backup to fall back to, and I'm stressing. Any suggestions? Mark -- _______________________________________________ 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 Apr 15 15:08:00 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Thu, 15 Apr 2004 16:08:00 -0400 Subject: [AccessD] Decompile Message-ID: Gary, I had forgotten about that utility...thanks, I'll give it a try. As for importing I've already done that. Unfortunately, The 2 objects that appear to be corrupted are both Modules:( Mark -----Original Message----- From: Gary Kjos [mailto:garykjos at hotmail.com] Sent: Thursday, April 15, 2004 3:57 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Decompile Hi Mark, 1) Make a copy. 2) Run the stand alone repair utility jetcomp.exe on the copy. If that doesn't work.... 3) make a new empty database and try to import the objects from the copy. You may have to do this one object at a time. Gary Kjos garykjos at hotmail.com >From: "Mitsules, Mark S. (Newport News)" >Reply-To: Access Developers discussion and problem >solving >To: "'[AccessD]'" >Subject: [AccessD] Decompile >Date: Thu, 15 Apr 2004 15:39:39 -0400 > >Has anyone seen a case where /decompile did not appear to do anything? I'm >getting the same "corrupt" error message as before. I have 2 objects that >appear to be the culprits. I get the same "corrupt" error message when >trying to import these objects into a new database (no error messages on >the >other objects). In the corrupted database I cannot go into the IDE at >all...I get the same "corrupt" error message. This is actually the first >time I've been bitten, without having a recent backup to fall back to, and >I'm stressing. Any suggestions? > > > >Mark >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ MSN Toolbar provides one-click access to Hotmail from any Web page - FREE download! http://toolbar.msn.com/go/onm00200413ave/direct/01/ -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jeffrey.demulling at usbank.com Thu Apr 15 15:03:23 2004 From: jeffrey.demulling at usbank.com (jeffrey.demulling at usbank.com) Date: Thu, 15 Apr 2004 15:03:23 -0500 Subject: [AccessD] Using TransferDatabase to link table from password protectd db Message-ID: I have the following code in a database. Works fine if there is no password on the database. However I need to add a password to the database the is being linked to. How can I modify the code so that it accepts a password and does not prompt the user for one? Sub linkdatatable(mytable As String) 'Link in tables for query If IsLinked(mytable) = False Then DoCmd.TransferDatabase acLink, "Microsoft Access", GetDataFile, acTable, mytable, mytable, False End If End Sub TIA From Mark.Mitsules at ngc.com Thu Apr 15 15:15:52 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Thu, 15 Apr 2004 16:15:52 -0400 Subject: [AccessD] Decompile Message-ID: Yep, this was completely my fault. I had asked someone to beta test a form for me. Unfortunately, I still had it open in design mode when he opened it. I closed my instance of the form. The functionality was immediately suspect on his instance because a particular dynamic report was not changing its recordsource as expected. As soon as he exited the db I did the same. When I re-entered the db I used an ldb viewer and noticed that the ldb listed him as not logged on, but "suspect" just the same. That was the last time the db opened normally:( Mark -----Original Message----- From: Pickering, Stephen [mailto:Stephen.Pickering at caremark.com] Sent: Thursday, April 15, 2004 4:07 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Decompile Mark, Import every object except the corrupt ones. If you don't have a version of these objects that isn't corrupt, you will need to rebuild them. Also, back up early and often. Corruption happens. It's sometimes, but not always, because of something you've done. Best to be prepared. Some databases never come back.... Steve -----Mark S. Mitsules' Original Message----- From: Mitsules, Mark S. (Newport News) [mailto:Mark.Mitsules at ngc.com] Sent: Thursday, April 15, 2004 2:40 PM To: '[AccessD]' Subject: [AccessD] Decompile Has anyone seen a case where /decompile did not appear to do anything? I'm getting the same "corrupt" error message as before. I have 2 objects that appear to be the culprits. I get the same "corrupt" error message when trying to import these objects into a new database (no error messages on the other objects). In the corrupted database I cannot go into the IDE at all...I get the same "corrupt" error message. This is actually the first time I've been bitten, without having a recent backup to fall back to, and I'm stressing. Any suggestions? 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 Stephen.Pickering at caremark.com Thu Apr 15 15:22:07 2004 From: Stephen.Pickering at caremark.com (Pickering, Stephen) Date: Thu, 15 Apr 2004 15:22:07 -0500 Subject: [AccessD] Decompile Message-ID: Another thing to try on the offending objects.... Strip all of the code from them if you can. (If you can't, this won't work.) Paste the code into Notepad if you can. Repair and compact the database, then decompile and recompile. Then paste your offending code back into the object's modules. Then recompile. I've saved at least one database this way. HTH, Steve -----Stephen Pickering's Original Message----- Mark, Import every object except the corrupt ones. If you don't have a version of these objects that isn't corrupt, you will need to rebuild them. Also, back up early and often. Corruption happens. It's sometimes, but not always, because of something you've done. Best to be prepared. Some databases never come back.... Steve -----Mark S. Mitsules' Original Message----- From: Mitsules, Mark S. (Newport News) [mailto:Mark.Mitsules at ngc.com] Sent: Thursday, April 15, 2004 2:40 PM To: '[AccessD]' Subject: [AccessD] Decompile Has anyone seen a case where /decompile did not appear to do anything? I'm getting the same "corrupt" error message as before. I have 2 objects that appear to be the culprits. I get the same "corrupt" error message when trying to import these objects into a new database (no error messages on the other objects). In the corrupted database I cannot go into the IDE at all...I get the same "corrupt" error message. This is actually the first time I've been bitten, without having a recent backup to fall back to, and I'm stressing. Any suggestions? Mark -- From bchacc at san.rr.com Thu Apr 15 15:30:43 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 15 Apr 2004 13:30:43 -0700 Subject: [AccessD] jpg Screen shot Message-ID: <017f01c42328$86d422d0$6601a8c0@HAL9002> Dear List: A magazine wants a screen shot from my software and they would like it to be 300dpi. What's the best way to get that off the screen and into a jpg? MTIA, Rocky Smolin Beach Access Software http://www.e-z-mrp.com From Mark.Mitsules at ngc.com Thu Apr 15 15:30:41 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Thu, 15 Apr 2004 16:30:41 -0400 Subject: [AccessD] Decompile Message-ID: No joy with Jetcomp. Although the db did open without error, still could not get to the IDE to retrieve the code. Mark -----Original Message----- From: Gary Kjos [mailto:garykjos at hotmail.com] Sent: Thursday, April 15, 2004 3:57 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Decompile Hi Mark, 1) Make a copy. 2) Run the stand alone repair utility jetcomp.exe on the copy. If that doesn't work.... 3) make a new empty database and try to import the objects from the copy. You may have to do this one object at a time. Gary Kjos garykjos at hotmail.com >From: "Mitsules, Mark S. (Newport News)" >Reply-To: Access Developers discussion and problem >solving >To: "'[AccessD]'" >Subject: [AccessD] Decompile >Date: Thu, 15 Apr 2004 15:39:39 -0400 > >Has anyone seen a case where /decompile did not appear to do anything? I'm >getting the same "corrupt" error message as before. I have 2 objects that >appear to be the culprits. I get the same "corrupt" error message when >trying to import these objects into a new database (no error messages on >the >other objects). In the corrupted database I cannot go into the IDE at >all...I get the same "corrupt" error message. This is actually the first >time I've been bitten, without having a recent backup to fall back to, and >I'm stressing. Any suggestions? > > > >Mark >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ MSN Toolbar provides one-click access to Hotmail from any Web page - FREE download! http://toolbar.msn.com/go/onm00200413ave/direct/01/ -- _______________________________________________ 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 Apr 15 15:34:13 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Thu, 15 Apr 2004 16:34:13 -0400 Subject: [AccessD] jpg Screen shot Message-ID: Alt+PrintScreen will copy the current active window to the clipboard. Ctrl+PrintScreen will copy the desktop to the clipboard. Then, paste into whatever program you'd like. Mark -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Thursday, April 15, 2004 4:31 PM To: AccessD at databaseadvisors.com Subject: [AccessD] jpg Screen shot Dear List: A magazine wants a screen shot from my software and they would like it to be 300dpi. What's the best way to get that off the screen and into a jpg? MTIA, Rocky Smolin Beach Access Software http://www.e-z-mrp.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Thu Apr 15 15:45:06 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Thu, 15 Apr 2004 15:45:06 -0500 Subject: [AccessD] Sorting and restricting ComboBox on ListBox content s Message-ID: <2F8793082E00D4119A1700B0D0216BF802227AD3@main2.marlow.com> In the section that you 'want', what is the difference between DSC M and DSC M? Why would you want 2, when you have 1 of everything else? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Hewson Sent: Thursday, April 15, 2004 2:53 PM To: AccessD Subject: [AccessD] Sorting and restricting ComboBox on ListBox contents I am having difficulty figuring this one out. A97. I have a list box with over 130 items all rows are distinct but a few columns are duplicates. The ListBox is sorted on two text fields which puts the ID number out of sequence. The ComboBox sorts and "Groups By" duplicate columns. What I want to do is use the ComboBox to jump to the first instance of one of the duplicate columns. e.g. ID CourseName City 135 CCP EC 90 DIS EC 87 DIS MP 18 DOC CD 17 DOC SR 55 DSC M AL 57 DSC M EC 43 DSC M MP 28 DSC M SF 3 DSC M SR What I want is: 135 CCP EC 90 DIS EC 18 DOC CD 55 DSC M AL 3 DSC M SR What I get is: 135 CCP EC 87 DIS MP 17 DOC SR 3 DSC M SR What needs to be done to what the desired results? Thanks, Jim From JHewson at karta.com Thu Apr 15 15:44:38 2004 From: JHewson at karta.com (Jim Hewson) Date: Thu, 15 Apr 2004 15:44:38 -0500 Subject: [AccessD] Sorting and restricting ComboBox on ListBox contents Message-ID: <9C382E065F54AE48BC3AA7925DCBB01C138358@karta-exc-int.Karta.com> My error. I only need one. Thanks for noticing. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DWUTKA at marlow.com Sent: Thursday, April 15, 2004 3:45 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Sorting and restricting ComboBox on ListBox contents In the section that you 'want', what is the difference between DSC M and DSC M? Why would you want 2, when you have 1 of everything else? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Hewson Sent: Thursday, April 15, 2004 2:53 PM To: AccessD Subject: [AccessD] Sorting and restricting ComboBox on ListBox contents I am having difficulty figuring this one out. A97. I have a list box with over 130 items all rows are distinct but a few columns are duplicates. The ListBox is sorted on two text fields which puts the ID number out of sequence. The ComboBox sorts and "Groups By" duplicate columns. What I want to do is use the ComboBox to jump to the first instance of one of the duplicate columns. e.g. ID CourseName City 135 CCP EC 90 DIS EC 87 DIS MP 18 DOC CD 17 DOC SR 55 DSC M AL 57 DSC M EC 43 DSC M MP 28 DSC M SF 3 DSC M SR What I want is: 135 CCP EC 90 DIS EC 18 DOC CD 55 DSC M AL 3 DSC M SR What I get is: 135 CCP EC 87 DIS MP 17 DOC SR 3 DSC M SR What needs to be done to what the desired results? Thanks, Jim -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Thu Apr 15 16:04:29 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Thu, 15 Apr 2004 16:04:29 -0500 Subject: [AccessD] Sorting and restricting ComboBox on ListBox content s Message-ID: <2F8793082E00D4119A1700B0D0216BF802227AD5@main2.marlow.com> Well, Access doesn't necessarily 'store' the information the way that you see it. So you will need some field to 'sort/group' by. For instance, if you want the 'highest' ID, then GroupBy CourseName and set Max for the ID. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Hewson Sent: Thursday, April 15, 2004 3:45 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Sorting and restricting ComboBox on ListBox contents My error. I only need one. Thanks for noticing. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DWUTKA at marlow.com Sent: Thursday, April 15, 2004 3:45 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Sorting and restricting ComboBox on ListBox contents In the section that you 'want', what is the difference between DSC M and DSC M? Why would you want 2, when you have 1 of everything else? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Hewson Sent: Thursday, April 15, 2004 2:53 PM To: AccessD Subject: [AccessD] Sorting and restricting ComboBox on ListBox contents I am having difficulty figuring this one out. A97. I have a list box with over 130 items all rows are distinct but a few columns are duplicates. The ListBox is sorted on two text fields which puts the ID number out of sequence. The ComboBox sorts and "Groups By" duplicate columns. What I want to do is use the ComboBox to jump to the first instance of one of the duplicate columns. e.g. ID CourseName City 135 CCP EC 90 DIS EC 87 DIS MP 18 DOC CD 17 DOC SR 55 DSC M AL 57 DSC M EC 43 DSC M MP 28 DSC M SF 3 DSC M SR What I want is: 135 CCP EC 90 DIS EC 18 DOC CD 55 DSC M AL 3 DSC M SR What I get is: 135 CCP EC 87 DIS MP 17 DOC SR 3 DSC M SR What needs to be done to what the desired results? Thanks, Jim -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 hotmail.com Thu Apr 15 16:08:59 2004 From: garykjos at hotmail.com (Gary Kjos) Date: Thu, 15 Apr 2004 16:08:59 -0500 Subject: [AccessD] Decompile Message-ID: >No joy with Jetcomp. Although the db did open without error, still could >not get to the IDE to retrieve the code. > > > >Mark Toasted them eh? I'm sorry for you. Small consolation I know, but It's been my experince that rewriting code that's been lost is a lot easier than it was to write originally. And you get the chance to make those changes you thought about but didn't do. :-) Good luck! And I'd guess you will be doing some more frequent saves as different names for a while. ;-) Gary Kjos garykjos at hotmail.com _________________________________________________________________ Check out MSN PC Safety & Security to help ensure your PC is protected and safe. http://specials.msn.com/msn/security.asp From Lambert.Heenan at AIG.com Thu Apr 15 16:11:39 2004 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Thu, 15 Apr 2004 17:11:39 -0400 Subject: [AccessD] Dr Watson Errors on Broadband connection Message-ID: <8B98F8EA48F8BA47A2F24E0D0AF40CF407AD81CA@xlivmbx12.aig.com> X-Posted to Access-L and Access-D I have an Access97 database, split FE/BE. The BE resides on a network drive, and the FE is on the user's local C drive and it is an MDE file that references a library MDE that is also on the network. All references use the full UNC path to the files, not mapped drives. I have a user who has no trouble when he's in the office docked and connected to the LAN. The database also works fine when he's at a remote location that has a dedicated T1 line into our LAN. However, when he tries to access the database, using the exact same computer, but connected to the LAN via his cable modem and our VPN s/w he finds that Access crashes, giving a Dr. Watson error before any sign of the application appears on screen. It's one of those "Exception access violation (0xc0000005), Address 0c651503f7" type Dr. Watsons that one typically sees if an MDE application tries to reference an MDE library that has been modified and recompiled. If you don't recompile the client MDE you get this type of Dr. Watson. The only trouble is the library has not been recompiled recently. Any ideas any one???? Lambert From dw-murphy at cox.net Thu Apr 15 16:13:53 2004 From: dw-murphy at cox.net (Doug Murphy) Date: Thu, 15 Apr 2004 14:13:53 -0700 Subject: [AccessD] jpg Screen shot In-Reply-To: <017f01c42328$86d422d0$6601a8c0@HAL9002> Message-ID: <000e01c4232e$91a9ab20$8500a8c0@CX615377a> I like Snagit, http://www.techsmith.com/. It gives you lots of versitility in making screen shots as far as selecting the portion of the screen you want to copy, etc. You can save time image in all the common formats. Doug Douglas Murphy Murphy's Creativity (619) 334-5121 doug at murphyscreativity.com www.murphyscreativity.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Thursday, April 15, 2004 1:31 PM To: AccessD at databaseadvisors.com Subject: [AccessD] jpg Screen shot Dear List: A magazine wants a screen shot from my software and they would like it to be 300dpi. What's the best way to get that off the screen and into a jpg? MTIA, Rocky Smolin Beach Access Software http://www.e-z-mrp.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 Apr 15 16:17:42 2004 From: dwaters at usinternet.com (Dan Waters) Date: Thu, 15 Apr 2004 16:17:42 -0500 Subject: [AccessD] jpg Screen shot In-Reply-To: <30152573.1082061814091.JavaMail.root@sniper5.usinternet.com> Message-ID: <000501c4232f$1783df90$de1811d8@danwaters> First, to get just the Active window from Access, the form needs to have Modal = Yes and PopUp = Yes. Then Alt+PrintScreen will work. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mitsules, Mark S. (Newport News) Sent: Thursday, April 15, 2004 3:34 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] jpg Screen shot Alt+PrintScreen will copy the current active window to the clipboard. Ctrl+PrintScreen will copy the desktop to the clipboard. Then, paste into whatever program you'd like. Mark -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Thursday, April 15, 2004 4:31 PM To: AccessD at databaseadvisors.com Subject: [AccessD] jpg Screen shot Dear List: A magazine wants a screen shot from my software and they would like it to be 300dpi. What's the best way to get that off the screen and into a jpg? MTIA, Rocky Smolin Beach Access Software http://www.e-z-mrp.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Apr 15 16:19:57 2004 From: dwaters at usinternet.com (Dan Waters) Date: Thu, 15 Apr 2004 16:19:57 -0500 Subject: [AccessD] Decompile In-Reply-To: <4518625.1082063843829.JavaMail.root@sniper5.usinternet.com> Message-ID: <000601c4232f$680687b0$de1811d8@danwaters> My rule is that if I can still read the letters on my Ctrl key and my S key than I'm probably not saving enough! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Thursday, April 15, 2004 4:09 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Decompile >No joy with Jetcomp. Although the db did open without error, still could >not get to the IDE to retrieve the code. > > > >Mark Toasted them eh? I'm sorry for you. Small consolation I know, but It's been my experince that rewriting code that's been lost is a lot easier than it was to write originally. And you get the chance to make those changes you thought about but didn't do. :-) Good luck! And I'd guess you will be doing some more frequent saves as different names for a while. ;-) Gary Kjos garykjos at hotmail.com _________________________________________________________________ Check out MSN PC Safety & Security to help ensure your PC is protected and safe. http://specials.msn.com/msn/security.asp -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Thu Apr 15 16:24:23 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Thu, 15 Apr 2004 17:24:23 -0400 Subject: [AccessD] jpg Screen shot In-Reply-To: <000e01c4232e$91a9ab20$8500a8c0@CX615377a> Message-ID: <20040415212420.GPZK1773.imf19aec.mail.bellsouth.net@SUSANONE> I think the issue is probably controlling the 300 dpi -- is that correct Rocky? Not every program lets you set the dpi. Susan H. I like Snagit, http://www.techsmith.com/. It gives you lots of versitility in making screen shots as far as selecting the portion of the screen you want to copy, etc. You can save time image in all the common formats. From john at winhaven.net Thu Apr 15 16:31:00 2004 From: john at winhaven.net (John Bartow) Date: Thu, 15 Apr 2004 16:31:00 -0500 Subject: [AccessD] jpg Screen shot In-Reply-To: <017f01c42328$86d422d0$6601a8c0@HAL9002> Message-ID: Rocky, Odd that they would ask you to do it for them at that dpi. Normally a screen capture would be at 96 dpi. And for what its worth they should be able to manipulate it to their desired quality better than you. If you download SnagIt they give you an evaluation period. You can set the resolution to 300. Otherwise if you have a graphics editing program you can copy the screen as Mark suggested and then paste it into your graphics program then increase the resolution to 300 dpi. All this will do is use pixel interpolation to increase the dpi. Print it out to make sure it looks good in print before sending it though. What you see isn't what you get when it comes to printing graphics. good luck, John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - Beach Access Software Sent: Thursday, April 15, 2004 3:31 PM To: AccessD at databaseadvisors.com Subject: [AccessD] jpg Screen shot Dear List: A magazine wants a screen shot from my software and they would like it to be 300dpi. What's the best way to get that off the screen and into a jpg? MTIA, Rocky Smolin Beach Access Software http://www.e-z-mrp.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Subscriptions at servicexp.com Thu Apr 15 17:06:44 2004 From: Subscriptions at servicexp.com (Robert Gracie) Date: Thu, 15 Apr 2004 18:06:44 -0400 Subject: [AccessD] Decompile In-Reply-To: Message-ID: Mark, If you can see the Object in the Access container, then you may be able to right click on it and export it into a new db. I just had to do this two weeks ago and while the very first time it did not seem to work, I tried it again (system was tied up for about 5 min) and wham I was able to export the class I was working on out of the corrupt db. This will only work if the code is not password protected... Robert Gracie www.servicexp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark S. (Newport News) Sent: Thursday, April 15, 2004 4:31 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Decompile No joy with Jetcomp. Although the db did open without error, still could not get to the IDE to retrieve the code. Mark -----Original Message----- From: Gary Kjos [mailto:garykjos at hotmail.com] Sent: Thursday, April 15, 2004 3:57 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Decompile Hi Mark, 1) Make a copy. 2) Run the stand alone repair utility jetcomp.exe on the copy. If that doesn't work.... 3) make a new empty database and try to import the objects from the copy. You may have to do this one object at a time. Gary Kjos garykjos at hotmail.com >From: "Mitsules, Mark S. (Newport News)" >Reply-To: Access Developers discussion and problem >solving >To: "'[AccessD]'" >Subject: [AccessD] Decompile >Date: Thu, 15 Apr 2004 15:39:39 -0400 > >Has anyone seen a case where /decompile did not appear to do anything? I'm >getting the same "corrupt" error message as before. I have 2 objects that >appear to be the culprits. I get the same "corrupt" error message when >trying to import these objects into a new database (no error messages on >the >other objects). In the corrupted database I cannot go into the IDE at >all...I get the same "corrupt" error message. This is actually the first >time I've been bitten, without having a recent backup to fall back to, and >I'm stressing. Any suggestions? > > > >Mark >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ MSN Toolbar provides one-click access to Hotmail from any Web page - FREE download! http://toolbar.msn.com/go/onm00200413ave/direct/01/ -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Thu Apr 15 17:25:10 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 16 Apr 2004 08:25:10 +1000 Subject: [AccessD] jpg Screen shot In-Reply-To: <017f01c42328$86d422d0$6601a8c0@HAL9002> Message-ID: <407F9866.27925.1571AF@localhost> On 15 Apr 2004 at 13:30, Rocky Smolin - Beach Access S wrote: > Dear List: > > A magazine wants a screen shot from my software and they would like it to be 300dpi. > > What's the best way to get that off the screen and into a jpg? > I like Irfanview. http://www.irfanview.com You can capture the screen or the foreground window and then manipulate the image (including cropping if necessary and setting DPI if required) before saving it in just about any format imaginable. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From Paul.Millard at freight.fedex.com Thu Apr 15 17:30:16 2004 From: Paul.Millard at freight.fedex.com (Millard, Paul --- Sr. Developer Analyst ---WGO) Date: Thu, 15 Apr 2004 15:30:16 -0700 Subject: [AccessD] OT: SQL SERVER Format Date Message-ID: <67B2D43A2067B248A36B007650A2312C35F96D@PSJOE2K1.fxfwest.freight.fedex.com> Hi, I know this isn't the right forum to ask but I need help formatting date from the SQL Server default output into "mm/dd". The query results are reported in an asp page. Thanks in advance, Paul Millard Here is my query and results.... ----query---- set datefirst 1 select top 13 Week = (DateAdd(day, (-1 * datepart(dw, t1.ReqEntryDate)) + 1, t1.ReqEntryDate)) from tblPrFieldSales t1 where t1.ReqEntryDate >= '3/1/2004' order by Week DESC ----results---- 2004-04-12 00:00:00.000 2004-04-12 00:00:00.000 2004-04-12 00:00:00.000 2004-04-12 00:00:00.000 ----ideal results---- 04/12 04/12... ********************************************************** This message contains information that is confidential and proprietary to FedEx Freight or its affiliates. It is intended only for the recipient named and for the express purpose(s) described therein. Any other use is prohibited. **************************************************************** From bchacc at san.rr.com Thu Apr 15 17:50:38 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 15 Apr 2004 15:50:38 -0700 Subject: [AccessD] jpg Screen shot References: <20040415212420.GPZK1773.imf19aec.mail.bellsouth.net@SUSANONE> Message-ID: <01a101c4233c$126a41e0$6601a8c0@HAL9002> That's it. They need 300dpi. Or close, I suppose, as I can get it. Rocky ----- Original Message ----- From: "Susan Harkins" To: "'Access Developers discussion and problem solving'" Sent: Thursday, April 15, 2004 2:24 PM Subject: RE: [AccessD] jpg Screen shot > I think the issue is probably controlling the 300 dpi -- is that correct > Rocky? Not every program lets you set the dpi. > > Susan H. > > I like Snagit, http://www.techsmith.com/. It gives you lots of versitility > in making screen shots as far as selecting the portion of the screen you > want to copy, etc. You can save time image in all the common formats. > > > -- > _______________________________________________ > 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 Apr 15 17:58:07 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 16 Apr 2004 08:58:07 +1000 Subject: [AccessD] OT: SQL SERVER Format Date In-Reply-To: <67B2D43A2067B248A36B007650A2312C35F96D@PSJOE2K1.fxfwest.freight.fedex.com> Message-ID: <407FA01F.22869.339AD0@localhost> On 15 Apr 2004 at 15:30, Millard, Paul --- Sr. Develop wrote: > Hi, > > I know this isn't the right forum to ask but I need help formatting date from the SQL Server default output into "mm/dd". The query results are reported in an asp page. > > Thanks in advance, > Paul Millard > > > Here is my query and results.... > > ----query---- > set > datefirst 1 > select top 13 > Week = (DateAdd(day, (-1 * datepart(dw, t1.ReqEntryDate)) + 1, t1.ReqEntryDate)) > from tblPrFieldSales t1 where t1.ReqEntryDate >= '3/1/2004' > order by Week DESC > > ----results---- > 2004-04-12 00:00:00.000 > 2004-04-12 00:00:00.000 > 2004-04-12 00:00:00.000 > 2004-04-12 00:00:00.000 > > ----ideal results---- > 04/12 > 04/12... > Try Week = Convert(char(5), (DateAdd(day, (-1 * datepart(dw,t1.ReqEntryDate)) + 1, t1.ReqEntryDate)),1) -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From stuart at lexacorp.com.pg Thu Apr 15 17:59:15 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 16 Apr 2004 08:59:15 +1000 Subject: [AccessD] jpg Screen shot In-Reply-To: <01a101c4233c$126a41e0$6601a8c0@HAL9002> Message-ID: <407FA063.21112.34A470@localhost> On 15 Apr 2004 at 15:50, Rocky Smolin - Beach Access Software wrote: > That's it. They need 300dpi. Or close, I suppose, as I can get it. > > Rocky > It's very easy to set to any value you want with Irfanview. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From clh at christopherhawkins.com Thu Apr 15 18:05:53 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Thu, 15 Apr 2004 17:05:53 -0600 Subject: [AccessD] Deleted response: Reference sub-subform from subform? Message-ID: <410-22004441523553543@christopherhawkins.com> I'm so sorry, but I accidentall deleted the responses I got on my issue with how to reference a sub-sub form from within a sub form. Can anyone who responded please re-send? Thanks. -Christopher- From wdhindman at bellsouth.net Thu Apr 15 18:18:23 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Thu, 15 Apr 2004 19:18:23 -0400 Subject: [AccessD] jpg Screen shot References: <017f01c42328$86d422d0$6601a8c0@HAL9002> Message-ID: <000a01c4233f$f2bc6040$6101a8c0@dejpolsys> ...don't use any program that initially captures your screen as a jpeg ...I won't go into the details here but when you save an image as a jpeg you are using a lossy algorithm that throws away portions of the graphic ...its the nature of the beast ...in order to give them the high quality jpeg they need, start with a decent graphics program that lets you capture the image in a high quality, uncompressed format to begin with ...Photoshop and paintshoppro are the mainstream programs ...I personally use paintshoppro (www.jasc.com) ...set your screen resolution to the highest resolution your graphics card can support and make sure your image capture area is clean and clear at that resolution ...capture the image and save it into un uncompressed format, preferably the native format of your graphics program ...in paintshoppro that would give you an image with a .pspimage file tag ...using that image you can do all sorts of image enhancements to make your saved image look better ...then resize it to 300dpi ...if you started at a much lower screen resolution you might wind up with too small an image at this point ...once the image is sized/cropped/enhanced just as you'd like to see it, use your graphics program's feature that optimizes it and saves it as a jpeg ...use zero compression (even though the jpeg will still have some inherent image quality loss) and make sure that you use the comparison feature to ensure minimal visible loss of image quality in the resulting file. ...now you have a decent sized jpeg at the desired dpi that is the best that you can present ...hth :) William Hindman "Always code as if the person who is maintaining or testing your code is a violent psychopath who knows where you live." William Silverstein ----- Original Message ----- From: "Rocky Smolin - Beach Access Software" To: Sent: Thursday, April 15, 2004 4:30 PM Subject: [AccessD] jpg Screen shot Dear List: A magazine wants a screen shot from my software and they would like it to be 300dpi. What's the best way to get that off the screen and into a jpg? MTIA, Rocky Smolin Beach Access Software http://www.e-z-mrp.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at bellsouth.net Thu Apr 15 18:19:22 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Thu, 15 Apr 2004 19:19:22 -0400 Subject: [AccessD] Deleted response: Reference sub-subform from subform? References: <410-22004441523553543@christopherhawkins.com> Message-ID: <001501c42340$22a64e60$6101a8c0@dejpolsys> ...just go to the archives Chris ...that's what they're for :) William Hindman "Always code as if the person who is maintaining or testing your code is a violent psychopath who knows where you live." William Silverstein ----- Original Message ----- From: "Christopher Hawkins" To: Sent: Thursday, April 15, 2004 7:05 PM Subject: [AccessD] Deleted response: Reference sub-subform from subform? > I'm so sorry, but I accidentall deleted the responses I got on my > issue with how to reference a sub-sub form from within a sub form. > > Can anyone who responded please re-send? Thanks. > > -Christopher- > > > > > -- > _______________________________________________ > 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 Apr 15 18:55:03 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 15 Apr 2004 16:55:03 -0700 Subject: [AccessD] jpg Screen shot References: <407FA063.21112.34A470@localhost> Message-ID: <01de01c42345$12358730$6601a8c0@HAL9002> Stuart: I just used it to capture and send the jpg but I couldn't see any way to set the dpi. Help wasn't. Do you recall how it's done? TIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com ----- Original Message ----- From: "Stuart McLachlan" To: "Access Developers discussion and problem solving" Sent: Thursday, April 15, 2004 3:59 PM Subject: Re: [AccessD] jpg Screen shot > On 15 Apr 2004 at 15:50, Rocky Smolin - Beach Access Software wrote: > > > That's it. They need 300dpi. Or close, I suppose, as I can get it. > > > > Rocky > > > > It's very easy to set to any value you want with Irfanview. > > > > > > -- > Lexacorp Ltd > http://www.lexacorp.com.pg > Information Technology Consultancy, Software Development,System Support. > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From clh at christopherhawkins.com Thu Apr 15 19:26:05 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Thu, 15 Apr 2004 18:26:05 -0600 Subject: [AccessD] A2K/03/XP: Make a form "dissolve" into view? Message-ID: <184670-2200445160265558@christopherhawkins.com> OK, here's a weird one. I'm doing fit and polish work on one of my projects. I thought of something that might be fun to code, seeing as I'm ahead of schedule. It would be a nice bit of eye candy to have the splash screen dissolve or fade into view instead of just popping open as Access/VB forms tend to do. In essence, the form would open with 100% transparency and incrementally decrease transparency until it was a solid form. The whole fade (actually, it's the opposite of fade, what do you call that?) should only take a second or two. Has anyone ever done anything like this in Access? I've seen VB apps that do this, but never an app I was able to get the source to, so I don't even know where to start. -Christopher- From DaveSharpe2 at cox.net Thu Apr 15 19:30:43 2004 From: DaveSharpe2 at cox.net (Dave Sharpe) Date: Thu, 15 Apr 2004 20:30:43 -0400 Subject: [AccessD] jpg Screen shot References: <407FA063.21112.34A470@localhost> <01de01c42345$12358730$6601a8c0@HAL9002> Message-ID: <007d01c4234a$0dae5f20$dd2f0a44@bcsrkeext6137> Rocky I have it, but haven't used it to do this. You might try the following While You have the image on screen Image ->Resize\Resample has a setting for DPI, try setting before saving. Dave ----- Original Message ----- From: "Rocky Smolin - Beach Access Software" To: "Access Developers discussion and problem solving" Sent: Thursday, April 15, 2004 7:55 PM Subject: Re: [AccessD] jpg Screen shot Stuart: I just used it to capture and send the jpg but I couldn't see any way to set the dpi. Help wasn't. Do you recall how it's done? TIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com ----- Original Message ----- From: "Stuart McLachlan" To: "Access Developers discussion and problem solving" Sent: Thursday, April 15, 2004 3:59 PM Subject: Re: [AccessD] jpg Screen shot > On 15 Apr 2004 at 15:50, Rocky Smolin - Beach Access Software wrote: > > > That's it. They need 300dpi. Or close, I suppose, as I can get it. > > > > Rocky > > > > It's very easy to set to any value you want with Irfanview. > > > > > > -- > Lexacorp Ltd > http://www.lexacorp.com.pg > Information Technology Consultancy, Software Development,System Support. > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From lexacorp at global.net.pg Thu Apr 15 20:29:10 2004 From: lexacorp at global.net.pg (Stuart McLachlan) Date: Fri, 16 Apr 2004 11:29:10 +1000 Subject: [AccessD] jpg Screen shot Message-ID: <407f36e6.1c3.110e9.1392661946@global.net.pg> > > Stuart: > > I just used it to capture and send the jpg but I couldn't > see any way to set the dpi. Help wasn't. Do you recall > how it's done? > Go to "Image - Resize/Resample" and change the setting in "Set new size - DPI" or Got to "Image - Information" and set it in that screen. From accessd at shaw.ca Thu Apr 15 19:22:50 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Thu, 15 Apr 2004 17:22:50 -0700 Subject: [AccessD] jpg Screen shot In-Reply-To: <017f01c42328$86d422d0$6601a8c0@HAL9002> Message-ID: Hi Rocky: There is a little free utility that I use to do a quick screen captures. The results can be saved or printing and there is a few other features. Check it out: http://www.geocities.com/~gigaman/ HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - Beach Access Software Sent: Thursday, April 15, 2004 1:31 PM To: AccessD at databaseadvisors.com Subject: [AccessD] jpg Screen shot Dear List: A magazine wants a screen shot from my software and they would like it to be 300dpi. What's the best way to get that off the screen and into a jpg? MTIA, Rocky Smolin Beach Access Software http://www.e-z-mrp.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 Apr 15 19:22:55 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Thu, 15 Apr 2004 17:22:55 -0700 Subject: [AccessD] jpg Screen shot In-Reply-To: <01de01c42345$12358730$6601a8c0@HAL9002> Message-ID: Hi Rocky: If you have a graphic program you can always adjust/check the dpi. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - Beach Access Software Sent: Thursday, April 15, 2004 4:55 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] jpg Screen shot Stuart: I just used it to capture and send the jpg but I couldn't see any way to set the dpi. Help wasn't. Do you recall how it's done? TIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com ----- Original Message ----- From: "Stuart McLachlan" To: "Access Developers discussion and problem solving" Sent: Thursday, April 15, 2004 3:59 PM Subject: Re: [AccessD] jpg Screen shot > On 15 Apr 2004 at 15:50, Rocky Smolin - Beach Access Software wrote: > > > That's it. They need 300dpi. Or close, I suppose, as I can get it. > > > > Rocky > > > > It's very easy to set to any value you want with Irfanview. > > > > > > -- > Lexacorp Ltd > http://www.lexacorp.com.pg > Information Technology Consultancy, Software Development,System Support. > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Apr 15 19:22:52 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Thu, 15 Apr 2004 17:22:52 -0700 Subject: [AccessD] Deleted response: Reference sub-subform from subform? In-Reply-To: <410-22004441523553543@christopherhawkins.com> Message-ID: Hi Christopher: Here it is: http://www.databaseadvisors.com/newletters/newsletter032004/0310ReferenceGui de/SyntaxForSubs.htm (watch for wrap) HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Christopher Hawkins Sent: Thursday, April 15, 2004 4:06 PM To: accessd at databaseadvisors.com Subject: [AccessD] Deleted response: Reference sub-subform from subform? I'm so sorry, but I accidentall deleted the responses I got on my issue with how to reference a sub-sub form from within a sub form. Can anyone who responded please re-send? Thanks. -Christopher- -- _______________________________________________ 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 Apr 15 21:54:20 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 15 Apr 2004 19:54:20 -0700 Subject: [AccessD] jpg Screen shot References: <407FA063.21112.34A470@localhost> <01de01c42345$12358730$6601a8c0@HAL9002> <007d01c4234a$0dae5f20$dd2f0a44@bcsrkeext6137> Message-ID: <023301c4235e$1dc738f0$6601a8c0@HAL9002> Dave: Thanks. Got it. Made it 300 dpi and sent it off. I'll find out if it's acceptable tomorrow. It's for a magazine called Tool and Moldmaking - www.tool-moldmaking.com. Rocky Smolin Beach Access Software http://www.e-z-mrp.com ----- Original Message ----- From: "Dave Sharpe" To: "Access Developers discussion and problem solving" Sent: Thursday, April 15, 2004 5:30 PM Subject: Re: [AccessD] jpg Screen shot > Rocky > > I have it, but haven't used it to > do this. You might try the following > > While You have the image on screen > Image ->Resize\Resample has a setting > for DPI, try setting before saving. > > Dave > > > ----- Original Message ----- > From: "Rocky Smolin - Beach Access Software" > To: "Access Developers discussion and problem solving" > > Sent: Thursday, April 15, 2004 7:55 PM > Subject: Re: [AccessD] jpg Screen shot > > > Stuart: > > I just used it to capture and send the jpg but I couldn't see any way to set > the dpi. Help wasn't. Do you recall how it's done? > > TIA > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > > > ----- Original Message ----- > From: "Stuart McLachlan" > To: "Access Developers discussion and problem solving" > > Sent: Thursday, April 15, 2004 3:59 PM > Subject: Re: [AccessD] jpg Screen shot > > > > On 15 Apr 2004 at 15:50, Rocky Smolin - Beach Access Software wrote: > > > > > That's it. They need 300dpi. Or close, I suppose, as I can get it. > > > > > > Rocky > > > > > > > It's very easy to set to any value you want with Irfanview. > > > > > > > > > > > > -- > > Lexacorp Ltd > > http://www.lexacorp.com.pg > > Information Technology Consultancy, Software Development,System Support. > > > > > > > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Apr 15 21:54:48 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 15 Apr 2004 19:54:48 -0700 Subject: [AccessD] jpg Screen shot References: <407f36e6.1c3.110e9.1392661946@global.net.pg> Message-ID: <023b01c4235e$2eac2c70$6601a8c0@HAL9002> Done. And done. Thank you. Rocky ----- Original Message ----- From: "Stuart McLachlan" To: "Access Developers discussion and problem solving" Sent: Thursday, April 15, 2004 6:29 PM Subject: Re: [AccessD] jpg Screen shot > > > > Stuart: > > > > I just used it to capture and send the jpg but I couldn't > > see any way to set the dpi. Help wasn't. Do you recall > > how it's done? > > > > Go to "Image - Resize/Resample" and change the setting in > "Set new size - DPI" > > or > > Got to "Image - Information" and set it in that screen. > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From wdhindman at bellsouth.net Thu Apr 15 22:41:07 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Thu, 15 Apr 2004 23:41:07 -0400 Subject: [AccessD] A2K/03/XP: Make a form "dissolve" into view? References: <184670-2200445160265558@christopherhawkins.com> Message-ID: <001501c42364$a6c979a0$6101a8c0@dejpolsys> Chris ...I use a some animated forms to make users pay attention but I've never faded one in or out. ...however, I do have in my code library some code that was posted here about three years ago that supposedly came from MS ...I've never got around to trying it but I'll repost it below and maybe it will give you what you need: __________________________________________________________ This type simple adjusts the colour slowly while reducing the form's width and height down to 0 before unloading the form. This is all done through a for-next loop. (form should be set to auto-center.) The preferred method is to adjust the current forms transparency from solid to invisible before unloading the same. Here is a copy of the code from MS technical help. 'In a module... Option Explicit Private Declare Function GetWindowLong Lib "user32" Alias _ "GetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long) As Long Private Declare Function SetWindowLong Lib "user32" Alias _ "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, _ ByVal dwNewLong As Long) As Long Private Declare Function SetLayeredWindowAttributes Lib "user32" _ (ByVal hwnd As Long, ByVal crey As Byte, ByVal bAlpha As Byte, _ ByVal dwFlags As Long) As Long private Const GWL_EXSTYLE = (-20) Private Const WS_EX_LAYERED = &H80000 Private Const WS_EX_TRANSPARENT = &H20& Private Const LWA_ALPHA = &H2& public sub Transparentcy(bTrans as byte, frmWhatever as form) Dim lOldStyle As Long with frmWhatever lOldStyle = GetWindowLong(.hwnd, GWL_EXSTYLE) SetWindowLong .hwnd, GWL_EXSTYLE, lOldStyle Or WS_EX_LAYERED SetLayeredWindowAttributes .hwnd, 0, bTrans, LWA_ALPHA end with end sub 'In your form... something like this. (haven't tested.) Private Sub Form_UnLoad() dim i as byte for i = 255 to 1 step -5 Transparentcy i, me next End Sub The above code work great but you have to have the latest copy of the User32.dll. Greater than 4.0 _________________________________________________________ ...hth ...and if you do make it work, I'd certainly like to see a sample mdb posted. William Hindman "Always code as if the person who is maintaining or testing your code is a violent psychopath who knows where you live." William Silverstein ----- Original Message ----- From: "Christopher Hawkins" To: Sent: Thursday, April 15, 2004 8:26 PM Subject: [AccessD] A2K/03/XP: Make a form "dissolve" into view? > OK, here's a weird one. > > I'm doing fit and polish work on one of my projects. I thought of > something that might be fun to code, seeing as I'm ahead of schedule. > > > It would be a nice bit of eye candy to have the splash screen > dissolve or fade into view instead of just popping open as Access/VB > forms tend to do. In essence, the form would open with 100% > transparency and incrementally decrease transparency until it was a > solid form. The whole fade (actually, it's the opposite of fade, > what do you call that?) should only take a second or two. > > Has anyone ever done anything like this in Access? I've seen VB apps > that do this, but never an app I was able to get the source to, so I > don't even know where to start. > > -Christopher- > > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From martyconnelly at shaw.ca Thu Apr 15 22:44:35 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 15 Apr 2004 20:44:35 -0700 Subject: [AccessD] Using TransferDatabase to link table from password protectd db References: Message-ID: <407F56A3.7050805@shaw.ca> There is no direct way to do this. I have heard of someone doing it this way via ODBC DoCmd.TransferDatabase acLink, "ODBC Database", "ODBC;DSN=" & odbcname1 & ";UID=" & user & ";PWD=" & pass, acTable, "MyTable", "MyTable" Or you can try it this way Public Function ImportDb(strPath As String) As Boolean Dim db As Database 'Database to import Dim td As TableDef 'Tabledefs in db Dim strTDef As String 'Name of table to import 'Open database which contains objects to import. Set db = DBEngine.Workspaces(0).OpenDatabase(strPath, False, False, "MS Access;PWD=") 'Import tables from specified Access database. For Each td In db.TableDefs strTDef = td.Name If Left(strTDef, 4) <> "MSys" Then DoCmd.TransferDatabase acImport, "Microsoft Access", strPath, acTable, strTDef, strTDef, False End If Next End Function jeffrey.demulling at usbank.com wrote: >I have the following code in a database. Works fine if there is no >password on the database. However I need to add a password to the database >the is being linked to. How can I modify the code so that it accepts a >password and does not prompt the user for one? > > >Sub linkdatatable(mytable As String) > > 'Link in tables for query > If IsLinked(mytable) = False Then > DoCmd.TransferDatabase acLink, "Microsoft Access", GetDataFile, >acTable, mytable, mytable, False > End If >End Sub > > >TIA > > > > > -- Marty Connelly Victoria, B.C. Canada From martyconnelly at shaw.ca Thu Apr 15 23:18:43 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 15 Apr 2004 21:18:43 -0700 Subject: [AccessD] Dr Watson Errors on Broadband connection References: <8B98F8EA48F8BA47A2F24E0D0AF40CF407AD81CA@xlivmbx12.aig.com> Message-ID: <407F5EA3.9020702@shaw.ca> Heenan, Lambert wrote: >X-Posted to Access-L and Access-D > >I have an Access97 database, split FE/BE. The BE resides on a network drive, >and the FE is on the user's local C drive and it is an MDE file that >references a library MDE that is also on the network. All references use the >full UNC path to the files, not mapped drives. > >I have a user who has no trouble when he's in the office docked and >connected to the LAN. The database also works fine when he's at a remote >location that has a dedicated T1 line into our LAN. > >However, when he tries to access the database, using the exact same >computer, but connected to the LAN via his cable modem and our VPN s/w he >finds that Access crashes, giving a Dr. Watson error before any sign of the >application appears on screen. > >It's one of those "Exception access violation (0xc0000005), Address >0c651503f7" type Dr. Watsons that one typically sees if an MDE application >tries to reference an MDE library that has been modified and recompiled. If >you don't recompile the client MDE you get this type of Dr. Watson. > >The only trouble is the library has not been recompiled recently. > >Any ideas any one???? > >Lambert > > -- Marty Connelly Victoria, B.C. Canada From andy at minstersystems.co.uk Fri Apr 16 05:13:44 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Fri, 16 Apr 2004 10:13:44 +0000 Subject: [AccessD] VxD errors (Cross-posted to dba and dba-Tech) Message-ID: <20040416091342.661F924C821@smtp.nildram.co.uk> Can anyone recommend a good tool for solving a VxD error on W98, preferably free? It's happening on a couple of laptops as they close down - goes to Windows splash, waits a couple of seconds then blue screen with a VxD error. Any suggestions welcome. There are a number of debugging tools which come up on the net when searching on this subject, but I'd like a recommendation. I've cross-posted to dba and dba-tech to pick up as many suggestions as possible, but it'd be good if you could reply either to dba-Tech or direct to me, as I'm conscious it's not an Access issue. Thanks. -- Andy Lacey http://www.minstersystems.co.uk ________________________________________________ Message sent using UebiMiau 2.7.2 From gustav at cactus.dk Fri Apr 16 05:01:38 2004 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 16 Apr 2004 12:01:38 +0200 Subject: [AccessD] jpg Screen shot In-Reply-To: <000a01c4233f$f2bc6040$6101a8c0@dejpolsys> References: <017f01c42328$86d422d0$6601a8c0@HAL9002> <000a01c4233f$f2bc6040$6101a8c0@dejpolsys> Message-ID: <5510887966.20040416120138@cactus.dk> Hi Rocky For the records - as you have sent your picture - William and I can agree on this. Jpeg is not a first format except for "party photos", and it is awful for screenshots where crisp straight lines and right angles are distinct elements. Bitmap is fine but - if you can do with 256 colours - GIF is ideal for screenshots with large areas of plain colours as this format is compressed without loss of image quality. Downgrading the picture should be left for him/her preparing the image for the magazine. If a jpeg is mandatory, note that most image programs can convert to jpg with zero loss at the cost of a much larger file size. /gustav > ...don't use any program that initially captures your screen as a jpeg ...I > won't go into the details here but when you save an image as a jpeg you are > using a lossy algorithm that throws away portions of the graphic ...its the > nature of the beast ... From gustav at cactus.dk Fri Apr 16 04:41:37 2004 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 16 Apr 2004 11:41:37 +0200 Subject: [AccessD] Sorting and restricting ComboBox on ListBox contents In-Reply-To: <9C382E065F54AE48BC3AA7925DCBB01C138357@karta-exc-int.Karta.com> References: <9C382E065F54AE48BC3AA7925DCBB01C138357@karta-exc-int.Karta.com> Message-ID: <1339687169.20040416114137@cactus.dk> Hi Jim > I have a list box with over 130 items all rows are distinct but a few columns are duplicates. The ListBox is sorted on two text fields which puts the ID number out of sequence. The ComboBox sorts > and "Groups By" duplicate columns. What I want to do is use the ComboBox to jump to the first instance of one of the duplicate columns. > e.g. > ID CourseName City > 135 CCP EC > 90 DIS EC > 87 DIS MP > 18 DOC CD > 17 DOC SR > 55 DSC M AL > 57 DSC M EC > 43 DSC M MP > 28 DSC M SF > 3 DSC M SR > What I want is: > 135 CCP EC > 90 DIS EC > 18 DOC CD > 55 DSC M AL > 3 DSC M SR > What I get is: > 135 CCP EC > 87 DIS MP > 17 DOC SR > 3 DSC M SR > What needs to be done to what the desired results? As Drew notes, you'll have to pick the sorted values for ID and City for each CourseName. Two subqueries can be used for this: SELECT (SELECT TOP 1 ID FROM tblCourses AS aliC WHERE aliC.CourseName = tblCourses.CourseName ORDER BY City, ID DESC;) AS TopID, CourseName, (SELECT TOP 1 City FROM tblCourses AS aliC WHERE aliC.CourseName = tblCourses.CourseName ORDER BY City, ID DESC;) AS TopCity FROM tblCourses GROUP BY CourseName; Have fun! /gustav From andy at minstersystems.co.uk Fri Apr 16 06:34:06 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Fri, 16 Apr 2004 11:34:06 +0000 Subject: [AccessD] VxD errors (Cross-posted to dba and dba-Tech) Message-ID: <20040416103404.0C3B7251ADE@smtp.nildram.co.uk> Sorry. Duff info. It's a W2000 machine. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: dba-tech at databaseadvisors.com , @smtp.nildram.co.uk Subject: [AccessD] VxD errors (Cross-posted to dba and dba-Tech) Date: 16/04/04 09:20 > > Can anyone recommend a good tool for solving a VxD error on W98, preferably > free? It's happening on a couple of laptops as they close down - goes to > Windows splash, waits a couple of seconds then blue screen with a VxD error. > Any suggestions welcome. There are a number of debugging tools which come up > on the net when searching on this subject, but I'd like a recommendation. > > I've cross-posted to dba and dba-tech to pick up as many suggestions as > possible, but it'd be good if you could reply either to dba-Tech or direct > to me, as I'm conscious it's not an Access issue. > > Thanks. > > -- > 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 > > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From andy at minstersystems.co.uk Fri Apr 16 07:36:12 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Fri, 16 Apr 2004 12:36:12 +0000 Subject: [AccessD] VxD errors (Cross-posted to dba and dba-Tech) Message-ID: <20040416113610.40CF124E530@smtp.nildram.co.uk> B******s. Am being given runaround here. It IS a W98 machine after all. Sorreeeee. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: dba-tech at databaseadvisors.com , @smtp.nildram.co.uk Subject: [AccessD] VxD errors (Cross-posted to dba and dba-Tech) Date: 16/04/04 09:20 > > Can anyone recommend a good tool for solving a VxD error on W98, preferably > free? It's happening on a couple of laptops as they close down - goes to > Windows splash, waits a couple of seconds then blue screen with a VxD error. > Any suggestions welcome. There are a number of debugging tools which come up > on the net when searching on this subject, but I'd like a recommendation. > > I've cross-posted to dba and dba-tech to pick up as many suggestions as > possible, but it'd be good if you could reply either to dba-Tech or direct > to me, as I'm conscious it's not an Access issue. > > Thanks. > > -- > 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 > > > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From JHewson at karta.com Fri Apr 16 07:12:16 2004 From: JHewson at karta.com (Jim Hewson) Date: Fri, 16 Apr 2004 07:12:16 -0500 Subject: [AccessD] Sorting and restricting ComboBox on ListBox contents Message-ID: <9C382E065F54AE48BC3AA7925DCBB01C138359@karta-exc-int.Karta.com> Thanks, Drew and Gustav for responding. I tried Max, but sometimes the ID I need is in the middle of the IDs. I didn't think about using Top, I'll try that. thanks again. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock Sent: Friday, April 16, 2004 4:42 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Sorting and restricting ComboBox on ListBox contents Hi Jim > I have a list box with over 130 items all rows are distinct but a few columns are duplicates. The ListBox is sorted on two text fields which puts the ID number out of sequence. The ComboBox sorts > and "Groups By" duplicate columns. What I want to do is use the ComboBox to jump to the first instance of one of the duplicate columns. > e.g. > ID CourseName City > 135 CCP EC > 90 DIS EC > 87 DIS MP > 18 DOC CD > 17 DOC SR > 55 DSC M AL > 57 DSC M EC > 43 DSC M MP > 28 DSC M SF > 3 DSC M SR > What I want is: > 135 CCP EC > 90 DIS EC > 18 DOC CD > 55 DSC M AL > 3 DSC M SR > What I get is: > 135 CCP EC > 87 DIS MP > 17 DOC SR > 3 DSC M SR > What needs to be done to what the desired results? As Drew notes, you'll have to pick the sorted values for ID and City for each CourseName. Two subqueries can be used for this: SELECT (SELECT TOP 1 ID FROM tblCourses AS aliC WHERE aliC.CourseName = tblCourses.CourseName ORDER BY City, ID DESC;) AS TopID, CourseName, (SELECT TOP 1 City FROM tblCourses AS aliC WHERE aliC.CourseName = tblCourses.CourseName ORDER BY City, ID DESC;) AS TopCity FROM tblCourses GROUP BY CourseName; Have fun! /gustav -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Fri Apr 16 10:23:07 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Fri, 16 Apr 2004 08:23:07 -0700 Subject: [AccessD] jpg Screen shot References: <017f01c42328$86d422d0$6601a8c0@HAL9002> <000a01c4233f$f2bc6040$6101a8c0@dejpolsys> Message-ID: <00da01c423c6$b84ac0a0$6601a8c0@HAL9002> You should make this into an article. Thanks to everyone who helped. I eventually used Irfanview which looks like a very complete program. Just got a note from the publisher - the jpg is fine. Of course, in the magazine it's going to be probably no bigger than 2" x 2" Regards, Rocky Smolin Beach Access Software http://www.e-z-mrp.com ----- Original Message ----- From: "William Hindman" To: "Access Developers discussion and problem solving" Sent: Thursday, April 15, 2004 4:18 PM Subject: Re: [AccessD] jpg Screen shot > ...don't use any program that initially captures your screen as a jpeg ...I > won't go into the details here but when you save an image as a jpeg you are > using a lossy algorithm that throws away portions of the graphic ...its the > nature of the beast ...in order to give them the high quality jpeg they > need, start with a decent graphics program that lets you capture the image > in a high quality, uncompressed format to begin with ...Photoshop and > paintshoppro are the mainstream programs ...I personally use paintshoppro > (www.jasc.com) ...set your screen resolution to the highest resolution your > graphics card can support and make sure your image capture area is clean and > clear at that resolution ...capture the image and save it into un > uncompressed format, preferably the native format of your graphics program > ...in paintshoppro that would give you an image with a .pspimage file tag > ...using that image you can do all sorts of image enhancements to make your > saved image look better ...then resize it to 300dpi ...if you started at a > much lower screen resolution you might wind up with too small an image at > this point ...once the image is sized/cropped/enhanced just as you'd like to > see it, use your graphics program's feature that optimizes it and saves it > as a jpeg ...use zero compression (even though the jpeg will still have some > inherent image quality loss) and make sure that you use the comparison > feature to ensure minimal visible loss of image quality in the resulting > file. > > ...now you have a decent sized jpeg at the desired dpi that is the best that > you can present ...hth :) > > William Hindman > "Always code as if the person who is maintaining or testing your code is > a violent psychopath who knows where you live." William Silverstein > > > ----- Original Message ----- > From: "Rocky Smolin - Beach Access Software" > To: > Sent: Thursday, April 15, 2004 4:30 PM > Subject: [AccessD] jpg Screen shot > > > Dear List: > > A magazine wants a screen shot from my software and they would like it to be > 300dpi. > > What's the best way to get that off the screen and into a jpg? > > MTIA, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Fri Apr 16 11:42:02 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Fri, 16 Apr 2004 11:42:02 -0500 Subject: [AccessD] jpg Screen shot Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE517@TAPPEEXCH01> By far, the absolute best format for screenshots is PNG. Near-infinite color range (handles 32-bit palettes with ease), lossless compression, and tiny file size. Unfortunately, it is open-source based so it hasn't made it to the mainstream like other more popular formats (GIF, JPG). I wrote a global error handler that automatically grabs a full screen shot of the users' workstation upon app failure and stores it as a PNG on the network. Files range between 8KB and 25KB! -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Friday, April 16, 2004 10:23 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] jpg Screen shot You should make this into an article. Thanks to everyone who helped. I eventually used Irfanview which looks like a very complete program. Just got a note from the publisher - the jpg is fine. Of course, in the magazine it's going to be probably no bigger than 2" x 2" Regards, Rocky Smolin Beach Access Software http://www.e-z-mrp.com ----- Original Message ----- From: "William Hindman" To: "Access Developers discussion and problem solving" Sent: Thursday, April 15, 2004 4:18 PM Subject: Re: [AccessD] jpg Screen shot > ...don't use any program that initially captures your screen as a jpeg ...I > won't go into the details here but when you save an image as a jpeg you are > using a lossy algorithm that throws away portions of the graphic ...its the > nature of the beast ...in order to give them the high quality jpeg they > need, start with a decent graphics program that lets you capture the image > in a high quality, uncompressed format to begin with ...Photoshop and > paintshoppro are the mainstream programs ...I personally use paintshoppro > (www.jasc.com) ...set your screen resolution to the highest resolution your > graphics card can support and make sure your image capture area is clean and > clear at that resolution ...capture the image and save it into un > uncompressed format, preferably the native format of your graphics program > ...in paintshoppro that would give you an image with a .pspimage file tag > ...using that image you can do all sorts of image enhancements to make your > saved image look better ...then resize it to 300dpi ...if you started at a > much lower screen resolution you might wind up with too small an image at > this point ...once the image is sized/cropped/enhanced just as you'd like to > see it, use your graphics program's feature that optimizes it and saves it > as a jpeg ...use zero compression (even though the jpeg will still have some > inherent image quality loss) and make sure that you use the comparison > feature to ensure minimal visible loss of image quality in the resulting > file. > > ...now you have a decent sized jpeg at the desired dpi that is the best that > you can present ...hth :) > > William Hindman > "Always code as if the person who is maintaining or testing your code is > a violent psychopath who knows where you live." William Silverstein > > > ----- Original Message ----- > From: "Rocky Smolin - Beach Access Software" > To: > Sent: Thursday, April 15, 2004 4:30 PM > Subject: [AccessD] jpg Screen shot > > > Dear List: > > A magazine wants a screen shot from my software and they would like it to be > 300dpi. > > What's the best way to get that off the screen and into a jpg? > > MTIA, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.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 carbonnb at sympatico.ca Fri Apr 16 11:47:48 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Fri, 16 Apr 2004 12:47:48 -0400 Subject: Error Handler was (RE: [AccessD] jpg Screen shot) Message-ID: <20040416164744.WAWY29662.tomts8-srv.bellnexxia.net@mxmta.bellnexxia.net> > From: Brett Barabash > I wrote a global error handler that automatically grabs a full screen shot > of the users' workstation upon app failure and stores it as a PNG on the > network. Files range between 8KB and 25KB! Would yuou mind sharing?? Please??? Don't make me beg. It's not pretty :) -- Bryan Carbonnell - carbonnb at sympatico.ca Unfortunately common sense isn't so common! From Subscriptions at servicexp.com Fri Apr 16 11:51:42 2004 From: Subscriptions at servicexp.com (Robert Gracie) Date: Fri, 16 Apr 2004 12:51:42 -0400 Subject: [AccessD] jpg Screen shot In-Reply-To: <426071E0B0A6D311B3C0006008B0AB23AFE517@TAPPEEXCH01> Message-ID: Me too, Me too. Pleaaaaase.... :-) Robert Gracie www.servicexp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Brett Barabash Sent: Friday, April 16, 2004 12:42 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] jpg Screen shot By far, the absolute best format for screenshots is PNG. Near-infinite color range (handles 32-bit palettes with ease), lossless compression, and tiny file size. Unfortunately, it is open-source based so it hasn't made it to the mainstream like other more popular formats (GIF, JPG). I wrote a global error handler that automatically grabs a full screen shot of the users' workstation upon app failure and stores it as a PNG on the network. Files range between 8KB and 25KB! -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Friday, April 16, 2004 10:23 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] jpg Screen shot You should make this into an article. Thanks to everyone who helped. I eventually used Irfanview which looks like a very complete program. Just got a note from the publisher - the jpg is fine. Of course, in the magazine it's going to be probably no bigger than 2" x 2" Regards, Rocky Smolin Beach Access Software http://www.e-z-mrp.com ----- Original Message ----- From: "William Hindman" To: "Access Developers discussion and problem solving" Sent: Thursday, April 15, 2004 4:18 PM Subject: Re: [AccessD] jpg Screen shot > ...don't use any program that initially captures your screen as a jpeg ...I > won't go into the details here but when you save an image as a jpeg you are > using a lossy algorithm that throws away portions of the graphic ...its the > nature of the beast ...in order to give them the high quality jpeg they > need, start with a decent graphics program that lets you capture the image > in a high quality, uncompressed format to begin with ...Photoshop and > paintshoppro are the mainstream programs ...I personally use paintshoppro > (www.jasc.com) ...set your screen resolution to the highest resolution your > graphics card can support and make sure your image capture area is clean and > clear at that resolution ...capture the image and save it into un > uncompressed format, preferably the native format of your graphics program > ...in paintshoppro that would give you an image with a .pspimage file tag > ...using that image you can do all sorts of image enhancements to make your > saved image look better ...then resize it to 300dpi ...if you started at a > much lower screen resolution you might wind up with too small an image at > this point ...once the image is sized/cropped/enhanced just as you'd like to > see it, use your graphics program's feature that optimizes it and saves it > as a jpeg ...use zero compression (even though the jpeg will still have some > inherent image quality loss) and make sure that you use the comparison > feature to ensure minimal visible loss of image quality in the resulting > file. > > ...now you have a decent sized jpeg at the desired dpi that is the best that > you can present ...hth :) > > William Hindman > "Always code as if the person who is maintaining or testing your code is > a violent psychopath who knows where you live." William Silverstein > > > ----- Original Message ----- > From: "Rocky Smolin - Beach Access Software" > To: > Sent: Thursday, April 15, 2004 4:30 PM > Subject: [AccessD] jpg Screen shot > > > Dear List: > > A magazine wants a screen shot from my software and they would like it to be > 300dpi. > > What's the best way to get that off the screen and into a jpg? > > MTIA, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.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 BBarabash at TappeConstruction.com Fri Apr 16 11:55:28 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Fri, 16 Apr 2004 11:55:28 -0500 Subject: Error Handler was (RE: [AccessD] jpg Screen shot) Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE518@TAPPEEXCH01> The screenshot portion is fairly simple. I use the Windows BitBlt API to copy the screen contents to a memory heap. The PNG portion is a little trickier. I purchased the ImgSource dll from Smaller Animals software (www.smalleranimals.com), which outputs to PNG (as well as a large host of other formats). As far as the global error handling goes, I created a global Sub called ErrorHandler that is stored in a mda file referenced by all of my projects. I use an add-in similar to John's to add the On Error lines to all of my routines. I'll see what I can dig up and share... -----Original Message----- From: Bryan Carbonnell [mailto:carbonnb at sympatico.ca] Sent: Friday, April 16, 2004 11:48 AM To: accessd at databaseadvisors.com Subject: Error Handler was (RE: [AccessD] jpg Screen shot) > From: Brett Barabash > I wrote a global error handler that automatically grabs a full screen shot > of the users' workstation upon app failure and stores it as a PNG on the > network. Files range between 8KB and 25KB! Would yuou mind sharing?? Please??? Don't make me beg. It's not pretty :) -- Bryan Carbonnell - carbonnb at sympatico.ca Unfortunately common sense isn't so common! -------------------------------------------------------------------------------------------------------------------- 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 wdhindman at bellsouth.net Fri Apr 16 12:30:52 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Fri, 16 Apr 2004 13:30:52 -0400 Subject: Error Handler was (RE: [AccessD] jpg Screen shot) References: <20040416164744.WAWY29662.tomts8-srv.bellnexxia.net@mxmta.bellnexxia.net> Message-ID: <00b801c423d8$90ef0c70$6101a8c0@dejpolsys> ...I'll beg if that's what it takes ...never even thought of doing something like that ...what a truly great idea! William Hindman "Always code as if the person who is maintaining or testing your code is a violent psychopath who knows where you live." William Silverstein ----- Original Message ----- From: "Bryan Carbonnell" To: Sent: Friday, April 16, 2004 12:47 PM Subject: Error Handler was (RE: [AccessD] jpg Screen shot) > > From: Brett Barabash > > > I wrote a global error handler that automatically grabs a full screen shot > > of the users' workstation upon app failure and stores it as a PNG on the > > network. Files range between 8KB and 25KB! > > Would yuou mind sharing?? Please??? > > Don't make me beg. It's not pretty :) > > -- > Bryan Carbonnell - carbonnb at sympatico.ca > Unfortunately common sense isn't so common! > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From clh at christopherhawkins.com Fri Apr 16 13:00:46 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Fri, 16 Apr 2004 12:00:46 -0600 Subject: [AccessD] Still having a subform problem... Message-ID: <251230-22004451618046164@christopherhawkins.com> ..although I looked at this page: http://www.databaseadvisors.com/newletters/newsletter032004/0310Refere nceGuide/SyntaxForSubs.htm The syntax just isn't working. So, to restate the problem: The Overview: frmMain, which has a subform control named sFrm. sFrm's SourceObject = "frmSearch" frmSearch, which has a button named cmdSearch and a subform control named sFrmResults. sFrmResults' SourceObject = "frmResults". frmResults, which has a bunch of fields like FirstName, LastName, etc. Typical customer database stuff. frmResults displays as a datasheet. The Problem: In the code behind cmdSearch, there is a line that tries to re-order the columns in the datasheet contained in sFrmResults. That code looks like this: [sFrmResults].Form(sSearchField).ColumnOrder = 1 That line of code tries to execute but instead yields this error: Method 'Form' of object '_Subform' failed. Now, this is also totally vanilla, but for some reason it just won't work. I tried pulling frmSearch out of frmMain so that the search form was it's own form instead of being a subform, and this line worked just fine then. Unfortunately, my client will not accep that change as a solution; frmSearch must remain a subform. But that line just does not work when frmSearch is a subform. -C- From Bryan_Carbonnell at cbc.ca Fri Apr 16 13:25:05 2004 From: Bryan_Carbonnell at cbc.ca (Bryan Carbonnell) Date: Fri, 16 Apr 2004 14:25:05 -0400 Subject: [AccessD] Still having a subform problem... Message-ID: Since the command button and the sub form are on the same subform, try Me.Form(sSearchField).ColumnOrder = 1 Bryan Carbonnell bryan_carbonnell at cbc.ca >>> clh at christopherhawkins.com 16-Apr-04 2:00:46 PM >>> ..although I looked at this page: http://www.databaseadvisors.com/newletters/newsletter032004/0310Refere nceGuide/SyntaxForSubs.htm The syntax just isn't working. So, to restate the problem: The Overview: frmMain, which has a subform control named sFrm. sFrm's SourceObject = "frmSearch" frmSearch, which has a button named cmdSearch and a subform control named sFrmResults. sFrmResults' SourceObject = "frmResults". frmResults, which has a bunch of fields like FirstName, LastName, etc. Typical customer database stuff. frmResults displays as a datasheet. The Problem: In the code behind cmdSearch, there is a line that tries to re-order the columns in the datasheet contained in sFrmResults. That code looks like this: [sFrmResults].Form(sSearchField).ColumnOrder = 1 That line of code tries to execute but instead yields this error: Method 'Form' of object '_Subform' failed. Now, this is also totally vanilla, but for some reason it just won't work. I tried pulling frmSearch out of frmMain so that the search form was it's own form instead of being a subform, and this line worked just fine then. Unfortunately, my client will not accep that change as a solution; frmSearch must remain a subform. But that line just does not work when frmSearch is a subform. From bchacc at san.rr.com Fri Apr 16 13:27:35 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Fri, 16 Apr 2004 11:27:35 -0700 Subject: [AccessD] jpg Screen shot References: <426071E0B0A6D311B3C0006008B0AB23AFE517@TAPPEEXCH01> Message-ID: <017801c423e0$7d616d80$6601a8c0@HAL9002> Brett: Would it be a problem if you wanted to send a file to someone? Is PNG format supported by Windows or any of the popular viewers? Rocky ----- Original Message ----- From: "Brett Barabash" To: "'Access Developers discussion and problem solving'" Sent: Friday, April 16, 2004 9:42 AM Subject: RE: [AccessD] jpg Screen shot > By far, the absolute best format for screenshots is PNG. Near-infinite > color range (handles 32-bit palettes with ease), lossless compression, and > tiny file size. > > Unfortunately, it is open-source based so it hasn't made it to the > mainstream like other more popular formats (GIF, JPG). > > I wrote a global error handler that automatically grabs a full screen shot > of the users' workstation upon app failure and stores it as a PNG on the > network. Files range between 8KB and 25KB! > > > -----Original Message----- > From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] > Sent: Friday, April 16, 2004 10:23 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] jpg Screen shot > > You should make this into an article. > > Thanks to everyone who helped. I eventually used Irfanview which looks like > a very complete program. Just got a note from the publisher - the jpg is > fine. Of course, in the magazine it's going to be probably no bigger than > 2" x 2" > > Regards, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > > > ----- Original Message ----- > From: "William Hindman" > To: "Access Developers discussion and problem solving" > > Sent: Thursday, April 15, 2004 4:18 PM > Subject: Re: [AccessD] jpg Screen shot > > > > ...don't use any program that initially captures your screen as a jpeg > ...I > > won't go into the details here but when you save an image as a jpeg you > are > > using a lossy algorithm that throws away portions of the graphic ...its > the > > nature of the beast ...in order to give them the high quality jpeg they > > need, start with a decent graphics program that lets you capture the image > > in a high quality, uncompressed format to begin with ...Photoshop and > > paintshoppro are the mainstream programs ...I personally use paintshoppro > > (www.jasc.com) ...set your screen resolution to the highest resolution > your > > graphics card can support and make sure your image capture area is clean > and > > clear at that resolution ...capture the image and save it into un > > uncompressed format, preferably the native format of your graphics program > > ...in paintshoppro that would give you an image with a .pspimage file tag > > ...using that image you can do all sorts of image enhancements to make > your > > saved image look better ...then resize it to 300dpi ...if you started at a > > much lower screen resolution you might wind up with too small an image at > > this point ...once the image is sized/cropped/enhanced just as you'd like > to > > see it, use your graphics program's feature that optimizes it and saves it > > as a jpeg ...use zero compression (even though the jpeg will still have > some > > inherent image quality loss) and make sure that you use the comparison > > feature to ensure minimal visible loss of image quality in the resulting > > file. > > > > ...now you have a decent sized jpeg at the desired dpi that is the best > that > > you can present ...hth :) > > > > William Hindman > > "Always code as if the person who is maintaining or testing your code is > > a violent psychopath who knows where you live." William Silverstein > > > > > > ----- Original Message ----- > > From: "Rocky Smolin - Beach Access Software" > > To: > > Sent: Thursday, April 15, 2004 4:30 PM > > Subject: [AccessD] jpg Screen shot > > > > > > Dear List: > > > > A magazine wants a screen shot from my software and they would like it to > be > > 300dpi. > > > > What's the best way to get that off the screen and into a jpg? > > > > MTIA, > > > > Rocky Smolin > > Beach Access Software > > http://www.e-z-mrp.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 gustav at cactus.dk Fri Apr 16 13:30:15 2004 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 16 Apr 2004 20:30:15 +0200 Subject: [AccessD] Still having a subform problem... In-Reply-To: <251230-22004451618046164@christopherhawkins.com> References: <251230-22004451618046164@christopherhawkins.com> Message-ID: <2741404406.20040416203015@cactus.dk> Hi Christopher > frmMain, which has a subform control named sFrm. sFrm's SourceObject > = "frmSearch" > frmSearch, which has a button named cmdSearch and a subform control > named sFrmResults. sFrmResults' SourceObject = "frmResults". > frmResults, which has a bunch of fields like FirstName, LastName, > etc. Typical customer database stuff. frmResults displays as a > datasheet. > The Problem: > In the code behind cmdSearch, there is a line that tries to re-order > the columns in the datasheet contained in sFrmResults. That code > looks like this: > [sFrmResults].Form(sSearchField).ColumnOrder = 1 How about Me!sFrmResults.Form!sSearchField.ColumnOrder = 1 /gustav From BBarabash at TappeConstruction.com Fri Apr 16 13:34:07 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Fri, 16 Apr 2004 13:34:07 -0500 Subject: [AccessD] jpg Screen shot Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE519@TAPPEEXCH01> Most Windows programs support PNG (Adobe Photoshop, Microsoft Photo Editor, Internet Explorer, Irfanview, etc). It just hasn't made it to the industry standard realm the same way as other formats have. (Magazines asking for JPG files instead of PNGs for screenshots, for example). I think you'd be hard pressed to find a current graphics file viewer that doesn't support it. -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Friday, April 16, 2004 1:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] jpg Screen shot Brett: Would it be a problem if you wanted to send a file to someone? Is PNG format supported by Windows or any of the popular viewers? Rocky ----- Original Message ----- From: "Brett Barabash" To: "'Access Developers discussion and problem solving'" Sent: Friday, April 16, 2004 9:42 AM Subject: RE: [AccessD] jpg Screen shot > By far, the absolute best format for screenshots is PNG. Near-infinite > color range (handles 32-bit palettes with ease), lossless compression, and > tiny file size. > > Unfortunately, it is open-source based so it hasn't made it to the > mainstream like other more popular formats (GIF, JPG). > > I wrote a global error handler that automatically grabs a full screen shot > of the users' workstation upon app failure and stores it as a PNG on the > network. Files range between 8KB and 25KB! > > > -----Original Message----- > From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] > Sent: Friday, April 16, 2004 10:23 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] jpg Screen shot > > You should make this into an article. > > Thanks to everyone who helped. I eventually used Irfanview which looks like > a very complete program. Just got a note from the publisher - the jpg is > fine. Of course, in the magazine it's going to be probably no bigger than > 2" x 2" > > Regards, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > > > ----- Original Message ----- > From: "William Hindman" > To: "Access Developers discussion and problem solving" > > Sent: Thursday, April 15, 2004 4:18 PM > Subject: Re: [AccessD] jpg Screen shot > > > > ...don't use any program that initially captures your screen as a jpeg > ...I > > won't go into the details here but when you save an image as a jpeg you > are > > using a lossy algorithm that throws away portions of the graphic ...its > the > > nature of the beast ...in order to give them the high quality jpeg they > > need, start with a decent graphics program that lets you capture the image > > in a high quality, uncompressed format to begin with ...Photoshop and > > paintshoppro are the mainstream programs ...I personally use paintshoppro > > (www.jasc.com) ...set your screen resolution to the highest resolution > your > > graphics card can support and make sure your image capture area is clean > and > > clear at that resolution ...capture the image and save it into un > > uncompressed format, preferably the native format of your graphics program > > ...in paintshoppro that would give you an image with a .pspimage file tag > > ...using that image you can do all sorts of image enhancements to make > your > > saved image look better ...then resize it to 300dpi ...if you started at a > > much lower screen resolution you might wind up with too small an image at > > this point ...once the image is sized/cropped/enhanced just as you'd like > to > > see it, use your graphics program's feature that optimizes it and saves it > > as a jpeg ...use zero compression (even though the jpeg will still have > some > > inherent image quality loss) and make sure that you use the comparison > > feature to ensure minimal visible loss of image quality in the resulting > > file. > > > > ...now you have a decent sized jpeg at the desired dpi that is the best > that > > you can present ...hth :) > > > > William Hindman > > "Always code as if the person who is maintaining or testing your code is > > a violent psychopath who knows where you live." William Silverstein > > > > > > ----- Original Message ----- > > From: "Rocky Smolin - Beach Access Software" > > To: > > Sent: Thursday, April 15, 2004 4:30 PM > > Subject: [AccessD] jpg Screen shot > > > > > > Dear List: > > > > A magazine wants a screen shot from my software and they would like it to > be > > 300dpi. > > > > What's the best way to get that off the screen and into a jpg? > > > > MTIA, > > > > Rocky Smolin > > Beach Access Software > > http://www.e-z-mrp.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 > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.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 Bryan_Carbonnell at cbc.ca Fri Apr 16 13:39:16 2004 From: Bryan_Carbonnell at cbc.ca (Bryan Carbonnell) Date: Fri, 16 Apr 2004 14:39:16 -0400 Subject: [AccessD] jpg Screen shot Message-ID: I'm not Brett, but that's never stopped me before :-) IE 5+ will allow you to open PNG. Most major image editing and viewing software also support PNGs. As does the Microsoft Photo Editor that is shipped with Win2K. So it's fairly widely supported in the modern OSes and applications. Bryan Carbonnell bryan_carbonnell at cbc.ca >>> bchacc at san.rr.com 16-Apr-04 2:27:35 PM >>> Brett: Would it be a problem if you wanted to send a file to someone? Is PNG format supported by Windows or any of the popular viewers? Rocky From john at winhaven.net Fri Apr 16 14:22:52 2004 From: john at winhaven.net (John Bartow) Date: Fri, 16 Apr 2004 14:22:52 -0500 Subject: [AccessD] jpg Screen shot In-Reply-To: <426071E0B0A6D311B3C0006008B0AB23AFE519@TAPPEEXCH01> Message-ID: Probably the biggest drawback to .png is that there was already a widely established web of .gif and .jpg images. I believe that is the major cause of the non-acceptance of it. Plus file size still rules for WebPages and .png rarely (if ever) makes for a smaller file than jpg or gif. Adobe has great little utility for optimizes images for the web that lets you compare formats and parameters. I've never had .png come as best of the lot. And although it isn't the lossy compression algorithm that jpg is it also has to compete with other more established "large file" formats such as tif, bmp, etc. The GIS industry has gone through mage formats by the dozens because of their heavy reliance on aerial photography. My first exposure and unhappiness with jpg - every time a .jpg file is edited and saved its "lossy algorithm" loses more. Also .png doesn't do everything it was set out to accomplish in the beginning - which was basically to replace the .gif with an open source public domain format. (IIRC .gif is proprietary but was not protected well enough by its owner for too long so the courts wouldn't accept their lawsuit claims.) One more reason is that Microsoft was rather late in adapting their products to use it. I used to try using .png just because it was open source and had problems with PowerPoint, Word, etc. I know that limitation is somewhat history but it was an issue that stymied it. I wish people would start using it rather than .jpg! John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Brett Barabash Sent: Friday, April 16, 2004 1:34 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] jpg Screen shot Most Windows programs support PNG (Adobe Photoshop, Microsoft Photo Editor, Internet Explorer, Irfanview, etc). It just hasn't made it to the industry standard realm the same way as other formats have. (Magazines asking for JPG files instead of PNGs for screenshots, for example). I think you'd be hard pressed to find a current graphics file viewer that doesn't support it. -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Friday, April 16, 2004 1:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] jpg Screen shot Brett: Would it be a problem if you wanted to send a file to someone? Is PNG format supported by Windows or any of the popular viewers? Rocky ----- Original Message ----- From: "Brett Barabash" To: "'Access Developers discussion and problem solving'" Sent: Friday, April 16, 2004 9:42 AM Subject: RE: [AccessD] jpg Screen shot > By far, the absolute best format for screenshots is PNG. Near-infinite > color range (handles 32-bit palettes with ease), lossless compression, and > tiny file size. > > Unfortunately, it is open-source based so it hasn't made it to the > mainstream like other more popular formats (GIF, JPG). > > I wrote a global error handler that automatically grabs a full screen shot > of the users' workstation upon app failure and stores it as a PNG on the > network. Files range between 8KB and 25KB! > > > -----Original Message----- > From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] > Sent: Friday, April 16, 2004 10:23 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] jpg Screen shot > > You should make this into an article. > > Thanks to everyone who helped. I eventually used Irfanview which looks like > a very complete program. Just got a note from the publisher - the jpg is > fine. Of course, in the magazine it's going to be probably no bigger than > 2" x 2" > > Regards, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > > > ----- Original Message ----- > From: "William Hindman" > To: "Access Developers discussion and problem solving" > > Sent: Thursday, April 15, 2004 4:18 PM > Subject: Re: [AccessD] jpg Screen shot > > > > ...don't use any program that initially captures your screen as a jpeg > ...I > > won't go into the details here but when you save an image as a jpeg you > are > > using a lossy algorithm that throws away portions of the graphic ...its > the > > nature of the beast ...in order to give them the high quality jpeg they > > need, start with a decent graphics program that lets you capture the image > > in a high quality, uncompressed format to begin with ...Photoshop and > > paintshoppro are the mainstream programs ...I personally use paintshoppro > > (www.jasc.com) ...set your screen resolution to the highest resolution > your > > graphics card can support and make sure your image capture area is clean > and > > clear at that resolution ...capture the image and save it into un > > uncompressed format, preferably the native format of your graphics program > > ...in paintshoppro that would give you an image with a .pspimage file tag > > ...using that image you can do all sorts of image enhancements to make > your > > saved image look better ...then resize it to 300dpi ...if you started at a > > much lower screen resolution you might wind up with too small an image at > > this point ...once the image is sized/cropped/enhanced just as you'd like > to > > see it, use your graphics program's feature that optimizes it and saves it > > as a jpeg ...use zero compression (even though the jpeg will still have > some > > inherent image quality loss) and make sure that you use the comparison > > feature to ensure minimal visible loss of image quality in the resulting > > file. > > > > ...now you have a decent sized jpeg at the desired dpi that is the best > that > > you can present ...hth :) > > > > William Hindman > > "Always code as if the person who is maintaining or testing your code is > > a violent psychopath who knows where you live." William Silverstein > > > > > > ----- Original Message ----- > > From: "Rocky Smolin - Beach Access Software" > > To: > > Sent: Thursday, April 15, 2004 4:30 PM > > Subject: [AccessD] jpg Screen shot > > > > > > Dear List: > > > > A magazine wants a screen shot from my software and they would like it to > be > > 300dpi. > > > > What's the best way to get that off the screen and into a jpg? > > > > MTIA, > > > > Rocky Smolin > > Beach Access Software > > http://www.e-z-mrp.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 > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.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 greggs at msn.com Fri Apr 16 15:41:28 2004 From: greggs at msn.com (Gregg) Date: Fri, 16 Apr 2004 15:41:28 -0500 Subject: [AccessD] Dr Watson Errors on Broadband connection In-Reply-To: <8B98F8EA48F8BA47A2F24E0D0AF40CF407AD81CA@xlivmbx12.aig.com> Message-ID: I have an app with the same problem... with the same no solution. We're running Citrix on NT4 and SQl be. I am using a mapped drive to link to access and SQL tables. My Doctor shows up 1 out of 5 times when relinking but does seem to be worst on some connections than others. I'm wondering if it is NT4... what are you running? Gregg Steinbrenner -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Heenan, Lambert Sent: Thursday, April 15, 2004 4:12 PM To: ACCESS-L Email (E-mail) Cc: Access-D Email (E-mail) Subject: [AccessD] Dr Watson Errors on Broadband connection X-Posted to Access-L and Access-D I have an Access97 database, split FE/BE. The BE resides on a network drive, and the FE is on the user's local C drive and it is an MDE file that references a library MDE that is also on the network. All references use the full UNC path to the files, not mapped drives. I have a user who has no trouble when he's in the office docked and connected to the LAN. The database also works fine when he's at a remote location that has a dedicated T1 line into our LAN. However, when he tries to access the database, using the exact same computer, but connected to the LAN via his cable modem and our VPN s/w he finds that Access crashes, giving a Dr. Watson error before any sign of the application appears on screen. It's one of those "Exception access violation (0xc0000005), Address 0c651503f7" type Dr. Watsons that one typically sees if an MDE application tries to reference an MDE library that has been modified and recompiled. If you don't recompile the client MDE you get this type of Dr. Watson. The only trouble is the library has not been recompiled recently. Any ideas any one???? Lambert -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Fri Apr 16 16:04:05 2004 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Fri, 16 Apr 2004 17:04:05 -0400 Subject: [AccessD] Dr Watson Errors on Broadband connection Message-ID: <8B98F8EA48F8BA47A2F24E0D0AF40CF407AD81D1@xlivmbx12.aig.com> This is an NT4 box too, but not using Citrix. Like I said it's all just ticketyboo until he tries to access the Db via his broadband connection at home???? > -----Original Message----- > From: Gregg [SMTP:greggs at msn.com] > Sent: Friday, April 16, 2004 4:41 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Dr Watson Errors on Broadband connection > > I have an app with the same problem... with the same no solution. We're > running Citrix on NT4 and SQl be. I am using a mapped drive to link to > access and SQL tables. My Doctor shows up 1 out of 5 times when relinking > but does seem to be worst on some connections than others. I'm wondering > if > it is NT4... what are you running? > > Gregg Steinbrenner > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Heenan, > Lambert > Sent: Thursday, April 15, 2004 4:12 PM > To: ACCESS-L Email (E-mail) > Cc: Access-D Email (E-mail) > Subject: [AccessD] Dr Watson Errors on Broadband connection > > > X-Posted to Access-L and Access-D > > I have an Access97 database, split FE/BE. The BE resides on a network > drive, > and the FE is on the user's local C drive and it is an MDE file that > references a library MDE that is also on the network. All references use > the > full UNC path to the files, not mapped drives. > > I have a user who has no trouble when he's in the office docked and > connected to the LAN. The database also works fine when he's at a remote > location that has a dedicated T1 line into our LAN. > > However, when he tries to access the database, using the exact same > computer, but connected to the LAN via his cable modem and our VPN s/w he > finds that Access crashes, giving a Dr. Watson error before any sign of > the > application appears on screen. > > It's one of those "Exception access violation (0xc0000005), Address > 0c651503f7" type Dr. Watsons that one typically sees if an MDE application > tries to reference an MDE library that has been modified and recompiled. > If > you don't recompile the client MDE you get this type of Dr. Watson. > > The only trouble is the library has not been recompiled recently. > > Any ideas any one???? > > Lambert > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From clh at christopherhawkins.com Fri Apr 16 13:55:05 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Fri, 16 Apr 2004 12:55:05 -0600 Subject: [AccessD] Still having a subform problem... Message-ID: <182500-22004451618555222@christopherhawkins.com> OK, I tried that line and it still errored out. But it gave me an idea - I adjusted it slightly, to this: Me.sFrmResults(sSearchField).ColumnOrder = 1 and it worked. So thanks for the inspiration! Now I'm having the same error on this line: Me.sFrm.Form.RecordSource = "SELECT * FROM tblCustomer" I tried re-writing it to be: Me.sFrm.RecordSource = "SELECT * FROM tblCustomer" But it still error s out. Any ideas on that one? -Christopher- ---- Original Message ---- From: Bryan_Carbonnell at cbc.ca To: accessd at databaseadvisors.com, Subject: Re: [AccessD] Still having a subform problem... Date: Fri, 16 Apr 2004 14:25:05 -0400 >Since the command button and the sub form are on the same subform, >try > >Me.Form(sSearchField).ColumnOrder = 1 > >Bryan Carbonnell >bryan_carbonnell at cbc.ca > >>>> clh at christopherhawkins.com 16-Apr-04 2:00:46 PM >>> >..although I looked at this page: > >http://www.databaseadvisors.com/newletters/newsletter032004/0310Refer >e > >nceGuide/SyntaxForSubs.htm > >The syntax just isn't working. So, to restate the problem: > >The Overview: > >frmMain, which has a subform control named sFrm. sFrm's SourceObject >= "frmSearch" > >frmSearch, which has a button named cmdSearch and a subform control >named sFrmResults. sFrmResults' SourceObject = "frmResults". > >frmResults, which has a bunch of fields like FirstName, LastName, >etc. Typical customer database stuff. frmResults displays as a >datasheet. > >The Problem: > >In the code behind cmdSearch, there is a line that tries to re-order >the columns in the datasheet contained in sFrmResults. That code >looks like this: > >[sFrmResults].Form(sSearchField).ColumnOrder = 1 > >That line of code tries to execute but instead yields this error: > >Method 'Form' of object '_Subform' failed. > >Now, this is also totally vanilla, but for some reason it just won't >work. I tried pulling frmSearch out of frmMain so that the search >form was it's own form instead of being a subform, and this line >worked just fine then. Unfortunately, my client will not accep that >change as a solution; frmSearch must remain a subform. > >But that line just does not work when frmSearch is a subform. > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > From martyconnelly at shaw.ca Fri Apr 16 17:18:05 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 16 Apr 2004 15:18:05 -0700 Subject: [AccessD] jpg Screen shot References: Message-ID: <40805B9D.5000203@shaw.ca> Tiff is the standard for records management archivists. It has been around 10 years longer than PNG which was a patentless replacement for Gif (Unisys). It is also lossless. Adobe has copyright on specifications for Tiff. Carries a bit more metadata than png. It is a lot clearer displaying straight lines. John Bartow wrote: >Probably the biggest drawback to .png is that there was already a widely >established web of .gif and .jpg images. I believe that is the major cause >of the non-acceptance of it. Plus file size still rules for WebPages and >.png rarely (if ever) makes for a smaller file than jpg or gif. Adobe has >great little utility for optimizes images for the web that lets you compare >formats and parameters. I've never had .png come as best of the lot. > >And although it isn't the lossy compression algorithm that jpg is it also >has to compete with other more established "large file" formats such as tif, >bmp, etc. The GIS industry has gone through mage formats by the dozens >because of their heavy reliance on aerial photography. My first exposure and >unhappiness with jpg - every time a .jpg file is edited and saved its "lossy >algorithm" loses more. > >Also .png doesn't do everything it was set out to accomplish in the >beginning - which was basically to replace the .gif with an open source >public domain format. (IIRC .gif is proprietary but was not protected well >enough by its owner for too long so the courts wouldn't accept their lawsuit >claims.) > >One more reason is that Microsoft was rather late in adapting their products >to use it. I used to try using .png just because it was open source and had >problems with PowerPoint, Word, etc. I know that limitation is somewhat >history but it was an issue that stymied it. > >I wish people would start using it rather than .jpg! > >John > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Brett Barabash >Sent: Friday, April 16, 2004 1:34 PM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] jpg Screen shot > > >Most Windows programs support PNG (Adobe Photoshop, Microsoft Photo Editor, >Internet Explorer, Irfanview, etc). It just hasn't made it to the industry >standard realm the same way as other formats have. (Magazines asking for >JPG files instead of PNGs for screenshots, for example). > >I think you'd be hard pressed to find a current graphics file viewer that >doesn't support it. > > >-----Original Message----- >From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] >Sent: Friday, April 16, 2004 1:28 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] jpg Screen shot > >Brett: > >Would it be a problem if you wanted to send a file to someone? Is PNG >format supported by Windows or any of the popular viewers? > >Rocky > >----- Original Message ----- >From: "Brett Barabash" >To: "'Access Developers discussion and problem solving'" > >Sent: Friday, April 16, 2004 9:42 AM >Subject: RE: [AccessD] jpg Screen shot > > > > >>By far, the absolute best format for screenshots is PNG. Near-infinite >>color range (handles 32-bit palettes with ease), lossless compression, and >>tiny file size. >> >>Unfortunately, it is open-source based so it hasn't made it to the >>mainstream like other more popular formats (GIF, JPG). >> >>I wrote a global error handler that automatically grabs a full screen shot >>of the users' workstation upon app failure and stores it as a PNG on the >>network. Files range between 8KB and 25KB! >> >> >>-----Original Message----- >>From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] >>Sent: Friday, April 16, 2004 10:23 AM >>To: Access Developers discussion and problem solving >>Subject: Re: [AccessD] jpg Screen shot >> >>You should make this into an article. >> >>Thanks to everyone who helped. I eventually used Irfanview which looks >> >> >like > > >>a very complete program. Just got a note from the publisher - the jpg is >>fine. Of course, in the magazine it's going to be probably no bigger than >>2" x 2" >> >>Regards, >> >>Rocky Smolin >>Beach Access Software >>http://www.e-z-mrp.com >> >> >>----- Original Message ----- >>From: "William Hindman" >>To: "Access Developers discussion and problem solving" >> >>Sent: Thursday, April 15, 2004 4:18 PM >>Subject: Re: [AccessD] jpg Screen shot >> >> >> >> >>>...don't use any program that initially captures your screen as a jpeg >>> >>> >>...I >> >> >>>won't go into the details here but when you save an image as a jpeg you >>> >>> >>are >> >> >>>using a lossy algorithm that throws away portions of the graphic ...its >>> >>> >>the >> >> >>>nature of the beast ...in order to give them the high quality jpeg they >>>need, start with a decent graphics program that lets you capture the >>> >>> >image > > >>>in a high quality, uncompressed format to begin with ...Photoshop and >>>paintshoppro are the mainstream programs ...I personally use >>> >>> >paintshoppro > > >>>(www.jasc.com) ...set your screen resolution to the highest resolution >>> >>> >>your >> >> >>>graphics card can support and make sure your image capture area is clean >>> >>> >>and >> >> >>>clear at that resolution ...capture the image and save it into un >>>uncompressed format, preferably the native format of your graphics >>> >>> >program > > >>>...in paintshoppro that would give you an image with a .pspimage file >>> >>> >tag > > >>>...using that image you can do all sorts of image enhancements to make >>> >>> >>your >> >> >>>saved image look better ...then resize it to 300dpi ...if you started at >>> >>> >a > > >>>much lower screen resolution you might wind up with too small an image >>> >>> >at > > >>>this point ...once the image is sized/cropped/enhanced just as you'd >>> >>> >like > > >>to >> >> >>>see it, use your graphics program's feature that optimizes it and saves >>> >>> >it > > >>>as a jpeg ...use zero compression (even though the jpeg will still have >>> >>> >>some >> >> >>>inherent image quality loss) and make sure that you use the comparison >>>feature to ensure minimal visible loss of image quality in the resulting >>>file. >>> >>>...now you have a decent sized jpeg at the desired dpi that is the best >>> >>> >>that >> >> >>>you can present ...hth :) >>> >>>William Hindman >>>"Always code as if the person who is maintaining or testing your code is >>>a violent psychopath who knows where you live." William Silverstein >>> >>> >>>----- Original Message ----- >>>From: "Rocky Smolin - Beach Access Software" >>>To: >>>Sent: Thursday, April 15, 2004 4:30 PM >>>Subject: [AccessD] jpg Screen shot >>> >>> >>>Dear List: >>> >>>A magazine wants a screen shot from my software and they would like it >>> >>> >to > > >>be >> >> >>>300dpi. >>> >>>What's the best way to get that off the screen and into a jpg? >>> >>>MTIA, >>> >>>Rocky Smolin >>>Beach Access Software >>>http://www.e-z-mrp.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 >> >> >> > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.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 > > > > > -- Marty Connelly Victoria, B.C. Canada From wdhindman at bellsouth.net Fri Apr 16 18:44:14 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Fri, 16 Apr 2004 19:44:14 -0400 Subject: [AccessD] jpg Screen shot References: <40805B9D.5000203@shaw.ca> Message-ID: <003b01c4240c$b995db70$6101a8c0@dejpolsys> ...problem with TIFF is that it requires large files and remains a raster format ...both of which are potential problems on the net ...when the vector based SVG format gets fully implemented in more browsers we'll finally have something that produces both great graphics and small files ...I'm using some now for IE6 clients and the results are great. William Hindman "Always code as if the person who is maintaining or testing your code is a violent psychopath who knows where you live." William Silverstein ----- Original Message ----- From: "MartyConnelly" To: "Access Developers discussion and problem solving" Sent: Friday, April 16, 2004 6:18 PM Subject: Re: [AccessD] jpg Screen shot > Tiff is the standard for records management archivists. It has been > around 10 years longer than PNG which was a patentless replacement for > Gif (Unisys). It is also lossless. Adobe has copyright on specifications > for Tiff. Carries a bit more metadata than png. It is a lot clearer > displaying straight lines. > > > John Bartow wrote: > > >Probably the biggest drawback to .png is that there was already a widely > >established web of .gif and .jpg images. I believe that is the major cause > >of the non-acceptance of it. Plus file size still rules for WebPages and > >.png rarely (if ever) makes for a smaller file than jpg or gif. Adobe has > >great little utility for optimizes images for the web that lets you compare > >formats and parameters. I've never had .png come as best of the lot. > > > >And although it isn't the lossy compression algorithm that jpg is it also > >has to compete with other more established "large file" formats such as tif, > >bmp, etc. The GIS industry has gone through mage formats by the dozens > >because of their heavy reliance on aerial photography. My first exposure and > >unhappiness with jpg - every time a .jpg file is edited and saved its "lossy > >algorithm" loses more. > > > >Also .png doesn't do everything it was set out to accomplish in the > >beginning - which was basically to replace the .gif with an open source > >public domain format. (IIRC .gif is proprietary but was not protected well > >enough by its owner for too long so the courts wouldn't accept their lawsuit > >claims.) > > > >One more reason is that Microsoft was rather late in adapting their products > >to use it. I used to try using .png just because it was open source and had > >problems with PowerPoint, Word, etc. I know that limitation is somewhat > >history but it was an issue that stymied it. > > > >I wish people would start using it rather than .jpg! > > > >John > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Brett Barabash > >Sent: Friday, April 16, 2004 1:34 PM > >To: 'Access Developers discussion and problem solving' > >Subject: RE: [AccessD] jpg Screen shot > > > > > >Most Windows programs support PNG (Adobe Photoshop, Microsoft Photo Editor, > >Internet Explorer, Irfanview, etc). It just hasn't made it to the industry > >standard realm the same way as other formats have. (Magazines asking for > >JPG files instead of PNGs for screenshots, for example). > > > >I think you'd be hard pressed to find a current graphics file viewer that > >doesn't support it. > > > > > >-----Original Message----- > >From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] > >Sent: Friday, April 16, 2004 1:28 PM > >To: Access Developers discussion and problem solving > >Subject: Re: [AccessD] jpg Screen shot > > > >Brett: > > > >Would it be a problem if you wanted to send a file to someone? Is PNG > >format supported by Windows or any of the popular viewers? > > > >Rocky > > > >----- Original Message ----- > >From: "Brett Barabash" > >To: "'Access Developers discussion and problem solving'" > > > >Sent: Friday, April 16, 2004 9:42 AM > >Subject: RE: [AccessD] jpg Screen shot > > > > > > > > > >>By far, the absolute best format for screenshots is PNG. Near-infinite > >>color range (handles 32-bit palettes with ease), lossless compression, and > >>tiny file size. > >> > >>Unfortunately, it is open-source based so it hasn't made it to the > >>mainstream like other more popular formats (GIF, JPG). > >> > >>I wrote a global error handler that automatically grabs a full screen shot > >>of the users' workstation upon app failure and stores it as a PNG on the > >>network. Files range between 8KB and 25KB! > >> > >> > >>-----Original Message----- > >>From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] > >>Sent: Friday, April 16, 2004 10:23 AM > >>To: Access Developers discussion and problem solving > >>Subject: Re: [AccessD] jpg Screen shot > >> > >>You should make this into an article. > >> > >>Thanks to everyone who helped. I eventually used Irfanview which looks > >> > >> > >like > > > > > >>a very complete program. Just got a note from the publisher - the jpg is > >>fine. Of course, in the magazine it's going to be probably no bigger than > >>2" x 2" > >> > >>Regards, > >> > >>Rocky Smolin > >>Beach Access Software > >>http://www.e-z-mrp.com > >> > >> > >>----- Original Message ----- > >>From: "William Hindman" > >>To: "Access Developers discussion and problem solving" > >> > >>Sent: Thursday, April 15, 2004 4:18 PM > >>Subject: Re: [AccessD] jpg Screen shot > >> > >> > >> > >> > >>>...don't use any program that initially captures your screen as a jpeg > >>> > >>> > >>...I > >> > >> > >>>won't go into the details here but when you save an image as a jpeg you > >>> > >>> > >>are > >> > >> > >>>using a lossy algorithm that throws away portions of the graphic ...its > >>> > >>> > >>the > >> > >> > >>>nature of the beast ...in order to give them the high quality jpeg they > >>>need, start with a decent graphics program that lets you capture the > >>> > >>> > >image > > > > > >>>in a high quality, uncompressed format to begin with ...Photoshop and > >>>paintshoppro are the mainstream programs ...I personally use > >>> > >>> > >paintshoppro > > > > > >>>(www.jasc.com) ...set your screen resolution to the highest resolution > >>> > >>> > >>your > >> > >> > >>>graphics card can support and make sure your image capture area is clean > >>> > >>> > >>and > >> > >> > >>>clear at that resolution ...capture the image and save it into un > >>>uncompressed format, preferably the native format of your graphics > >>> > >>> > >program > > > > > >>>...in paintshoppro that would give you an image with a .pspimage file > >>> > >>> > >tag > > > > > >>>...using that image you can do all sorts of image enhancements to make > >>> > >>> > >>your > >> > >> > >>>saved image look better ...then resize it to 300dpi ...if you started at > >>> > >>> > >a > > > > > >>>much lower screen resolution you might wind up with too small an image > >>> > >>> > >at > > > > > >>>this point ...once the image is sized/cropped/enhanced just as you'd > >>> > >>> > >like > > > > > >>to > >> > >> > >>>see it, use your graphics program's feature that optimizes it and saves > >>> > >>> > >it > > > > > >>>as a jpeg ...use zero compression (even though the jpeg will still have > >>> > >>> > >>some > >> > >> > >>>inherent image quality loss) and make sure that you use the comparison > >>>feature to ensure minimal visible loss of image quality in the resulting > >>>file. > >>> > >>>...now you have a decent sized jpeg at the desired dpi that is the best > >>> > >>> > >>that > >> > >> > >>>you can present ...hth :) > >>> > >>>William Hindman > >>>"Always code as if the person who is maintaining or testing your code is > >>>a violent psychopath who knows where you live." William Silverstein > >>> > >>> > >>>----- Original Message ----- > >>>From: "Rocky Smolin - Beach Access Software" > >>>To: > >>>Sent: Thursday, April 15, 2004 4:30 PM > >>>Subject: [AccessD] jpg Screen shot > >>> > >>> > >>>Dear List: > >>> > >>>A magazine wants a screen shot from my software and they would like it > >>> > >>> > >to > > > > > >>be > >> > >> > >>>300dpi. > >>> > >>>What's the best way to get that off the screen and into a jpg? > >>> > >>>MTIA, > >>> > >>>Rocky Smolin > >>>Beach Access Software > >>>http://www.e-z-mrp.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 > >> > >> > >> > > > >-- > >_______________________________________________ > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.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 > > > > > > > > > > > > -- > 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 Fri Apr 16 20:25:12 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Fri, 16 Apr 2004 18:25:12 -0700 Subject: [AccessD] Help with sysvar demo Message-ID: <001201c4241a$d8232cb0$6501a8c0@delllaptop> I opened a copy of the sysvar 2k mdb and built the additional tables. When I try to open frmSysVar I get the error " Compile Error: User defined type: Not defined. Dim mdb as DAO.Database I checked and I do have the dao reference marked. It is XP in 2000 format Any thoughts apreciated JOE HECHT LOS ANGELES CA From jwcolby at colbyconsulting.com Fri Apr 16 21:44:53 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Fri, 16 Apr 2004 22:44:53 -0400 Subject: [AccessD] Help with sysvar demo In-Reply-To: <001201c4241a$d8232cb0$6501a8c0@delllaptop> Message-ID: Is that from my site or DatabaseAdvisors? Or somewhere else? John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Joe Hecht Sent: Friday, April 16, 2004 9:25 PM To: AccessD Subject: [AccessD] Help with sysvar demo I opened a copy of the sysvar 2k mdb and built the additional tables. When I try to open frmSysVar I get the error " Compile Error: User defined type: Not defined. Dim mdb as DAO.Database I checked and I do have the dao reference marked. It is XP in 2000 format Any thoughts apreciated JOE HECHT LOS ANGELES CA -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhla at earthlink.net Fri Apr 16 22:24:16 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Fri, 16 Apr 2004 20:24:16 -0700 Subject: [AccessD] Help with sysvar demo In-Reply-To: Message-ID: <002801c4242b$79892040$6501a8c0@delllaptop> John, It is your sysvar demo. Did you get the e mail I sent you privately? JOE HECHT LOS ANGELES CA -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Friday, April 16, 2004 7:45 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Help with sysvar demo Is that from my site or DatabaseAdvisors? Or somewhere else? John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Joe Hecht Sent: Friday, April 16, 2004 9:25 PM To: AccessD Subject: [AccessD] Help with sysvar demo I opened a copy of the sysvar 2k mdb and built the additional tables. When I try to open frmSysVar I get the error " Compile Error: User defined type: Not defined. Dim mdb as DAO.Database I checked and I do have the dao reference marked. It is XP in 2000 format Any thoughts apreciated JOE HECHT LOS ANGELES CA -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at bellsouth.net Fri Apr 16 23:13:17 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Sat, 17 Apr 2004 00:13:17 -0400 Subject: [AccessD] Help with sysvar demo References: <001201c4241a$d8232cb0$6501a8c0@delllaptop> Message-ID: <00d101c42432$50002cd0$6101a8c0@dejpolsys> ...is the DAO reference listed before the ADO reference as it should be? William Hindman "Always code as if the person who is maintaining or testing your code is a violent psychopath who knows where you live." William Silverstein ----- Original Message ----- From: "Joe Hecht" To: "AccessD" Sent: Friday, April 16, 2004 9:25 PM Subject: [AccessD] Help with sysvar demo > I opened a copy of the sysvar 2k mdb and built the additional tables. > When I try to open frmSysVar I get the error " Compile Error: User > defined type: Not defined. > > Dim mdb as DAO.Database > > I checked and I do have the dao reference marked. > > It is XP in 2000 format > > Any thoughts apreciated > > > > JOE HECHT > LOS ANGELES CA > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From martyconnelly at shaw.ca Sat Apr 17 03:08:08 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sat, 17 Apr 2004 01:08:08 -0700 Subject: [AccessD] Automatic Upgrade to Jet SP-8 via Microsoft Windows Update facilty References: <001201c4241a$d8232cb0$6501a8c0@delllaptop> <00d101c42432$50002cd0$6101a8c0@dejpolsys> Message-ID: <4080E5E8.3080500@shaw.ca> I am not sure but after checking the version numbers of MSJet40.dll, DAO360.dll and several others. It appears that Microsoft has upgraded everyone to an advanced security fix version of JET SP-8 after receiving this months Windows Update automatic security upgrades. It would have been nice to have received a notification .;) Not sure what this will do to Jet Sandbox mode. You can check quickly for the install through the control panel add/remove programs and look at bottom for MS HotFix 837001. This doesn't apply to the OS's Windows Me and below. Here are the relevant Url's. Microsoft Security Bulletin MS04-014 Vulnerability in the Microsoft Jet Database Engine Could Allow Code Execution (837001) http://www.microsoft.com/technet/security/bulletin/ms04-014.mspx http://support.microsoft.com/?kbid=837001 Old Jet Service Pack 8 File Manifest http://support.microsoft.com/?kbid=829558 The only reason I noticed was I was looking at an article on BBC Scotland news site describing a 19 year old from Aberdeen, Matt Thompson who brought the security fault to Microsoft's attention. They happened to mention the fault was in JET, which piqued my interest to look further. http://news.bbc.co.uk/1/hi/scotland/3630649.stm -- Marty Connelly Victoria, B.C. Canada From gustav at cactus.dk Sat Apr 17 03:43:02 2004 From: gustav at cactus.dk (Gustav Brock) Date: Sat, 17 Apr 2004 10:43:02 +0200 Subject: [AccessD] Automatic Upgrade to Jet SP-8 via Microsoft Windows Update facilty In-Reply-To: <4080E5E8.3080500@shaw.ca> References: <001201c4241a$d8232cb0$6501a8c0@delllaptop> <00d101c42432$50002cd0$6101a8c0@dejpolsys> <4080E5E8.3080500@shaw.ca> Message-ID: <213977429.20040417104302@cactus.dk> Hi Marty That's why I always download the patches, then install them one by one - it allows you to read the notice from MS on the patch. However, this 837001 patch seems to uninstallable if it causes you trouble. /gustav > I am not sure but after checking the version numbers of MSJet40.dll, > DAO360.dll and several others. It appears that Microsoft has upgraded > everyone to an advanced security fix version of JET SP-8 after > receiving this months Windows Update automatic security upgrades. > It would have been nice to have received a notification .;) Not sure > what this will do to Jet Sandbox mode. > You can check quickly for the install through the control panel > add/remove programs and look at bottom for MS HotFix 837001. > This doesn't apply to the OS's Windows Me and below. > Here are the relevant Url's. > Microsoft Security Bulletin MS04-014 > Vulnerability in the Microsoft Jet Database Engine Could Allow Code > Execution (837001) > http://www.microsoft.com/technet/security/bulletin/ms04-014.mspx > http://support.microsoft.com/?kbid=837001 > Old Jet Service Pack 8 File Manifest > http://support.microsoft.com/?kbid=829558 > The only reason I noticed was I was looking at an article on BBC > Scotland news site describing a 19 year old from Aberdeen, Matt Thompson > who brought the security fault to Microsoft's attention. They happened > to mention the fault was in JET, which piqued my interest to look further. > http://news.bbc.co.uk/1/hi/scotland/3630649.stm > -- > Marty Connelly > Victoria, B.C. > Canada From serbach at new.rr.com Sat Apr 17 09:01:45 2004 From: serbach at new.rr.com (Steven W. Erbach) Date: Sat, 17 Apr 2004 09:01:45 -0500 Subject: [AccessD] jpg Screen shot Message-ID: <20040417090145.183052912.serbach@new.rr.com> William, >> ...when the vector based SVG format gets fully implemented in more browsers we'll finally have something that produces both great graphics and small files ...I'm using some now for IE6 clients and the results are great. << This is the first I've heard of SVG. What does the acronym stand for and where can I find some on-line examples? Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "Let every nation know, whether it wishes us well or ill, that we shall pay any price, bear any burden, meet any hardship, support any friend, oppose any foe, in order to assure the survival and the success of liberty." - John F. Kennedy, 1961 From DaveSharpe2 at cox.net Sat Apr 17 10:01:28 2004 From: DaveSharpe2 at cox.net (Dave Sharpe) Date: Sat, 17 Apr 2004 11:01:28 -0400 Subject: [AccessD] jpg Screen shot References: <20040417090145.183052912.serbach@new.rr.com> Message-ID: <005801c4248c$dcb24af0$dd2f0a44@bcsrkeext6137> Steve You can look here for some info http://www.w3.org/Graphics/SVG/ Dave ----- Original Message ----- From: "Steven W. Erbach" To: "Access Developers discussion and problem solving" Sent: Saturday, April 17, 2004 10:01 AM Subject: Re: [AccessD] jpg Screen shot William, >> ...when the vector based SVG format gets fully implemented in more browsers we'll finally have something that produces both great graphics and small files ...I'm using some now for IE6 clients and the results are great. << This is the first I've heard of SVG. What does the acronym stand for and where can I find some on-line examples? Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "Let every nation know, whether it wishes us well or ill, that we shall pay any price, bear any burden, meet any hardship, support any friend, oppose any foe, in order to assure the survival and the success of liberty." - John F. Kennedy, 1961 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Sat Apr 17 11:07:57 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sat, 17 Apr 2004 09:07:57 -0700 Subject: [AccessD] jpg Screen shot References: <20040417090145.183052912.serbach@new.rr.com> <005801c4248c$dcb24af0$dd2f0a44@bcsrkeext6137> Message-ID: <4081565D.7060103@shaw.ca> Here is a spot with a few links to SVG (Scalable Vector Graphics) articles http://searchwebservices.techtarget.com/tip/0,289483,sid26_gci918717,00.html Grab an SVG viewer from Adobe. There are others. http://www.adobe.com/support/downloads/main.html Then save the xml file below as test.svg Right click on filename and open with IE. It is a graphical display of relative size of tablespaces in an Oracle DB. You maybe able to find way more advanced displays ( Map of the Internet) at Tim Bray's company in Vancouver. It may have moved elsewhere. http://www.antarti.ca CWMLITE DRSYS EJALA EXAMPLE INDX ODM SYSTEM TOOLS UNDOTBS1 USERS XDB Dave Sharpe wrote: >Steve > >You can look here for some info > >http://www.w3.org/Graphics/SVG/ > >Dave > >----- Original Message ----- >From: "Steven W. Erbach" >To: "Access Developers discussion and problem solving" > >Sent: Saturday, April 17, 2004 10:01 AM >Subject: Re: [AccessD] jpg Screen shot > > >William, > > > >>>...when the vector based SVG format gets fully implemented in more >>> >>> >browsers we'll finally have something that produces both great graphics and >small files ...I'm using some now for IE6 clients and the results are great. ><< > >This is the first I've heard of SVG. What does the acronym stand for and >where can I find some on-line examples? > >Regards, > >Steve Erbach >Scientific Marketing >Neenah, WI >920-969-0504 > >"Let every nation know, whether it wishes us well or ill, that we shall pay >any price, bear any burden, meet any hardship, support any friend, oppose >any foe, in order to assure the survival and the success of liberty." - John >F. Kennedy, 1961 > > > -- Marty Connelly Victoria, B.C. Canada From jwcolby at colbyconsulting.com Sat Apr 17 11:36:12 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sat, 17 Apr 2004 12:36:12 -0400 Subject: [AccessD] Help with sysvar demo In-Reply-To: <002801c4242b$79892040$6501a8c0@delllaptop> Message-ID: No. Did you send it to jWcolby at colbyconsulting.com. Notice the W in there. the jcolby@ address has been turned off. I looked at the demo on my site, and tried to find the dim statement and couldn't. I do dimension databases, but I always use db, not Mdb. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Joe Hecht Sent: Friday, April 16, 2004 11:24 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Help with sysvar demo John, It is your sysvar demo. Did you get the e mail I sent you privately? JOE HECHT LOS ANGELES CA -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Friday, April 16, 2004 7:45 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Help with sysvar demo Is that from my site or DatabaseAdvisors? Or somewhere else? John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Joe Hecht Sent: Friday, April 16, 2004 9:25 PM To: AccessD Subject: [AccessD] Help with sysvar demo I opened a copy of the sysvar 2k mdb and built the additional tables. When I try to open frmSysVar I get the error " Compile Error: User defined type: Not defined. Dim mdb as DAO.Database I checked and I do have the dao reference marked. It is XP in 2000 format Any thoughts apreciated JOE HECHT LOS ANGELES CA -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sat Apr 17 11:32:13 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sat, 17 Apr 2004 09:32:13 -0700 Subject: [AccessD] Automatic Upgrade to Jet SP-8 via Microsoft Windows Update facilty References: <001201c4241a$d8232cb0$6501a8c0@delllaptop> <00d101c42432$50002cd0$6101a8c0@dejpolsys> <4080E5E8.3080500@shaw.ca> <213977429.20040417104302@cactus.dk> Message-ID: <40815C0D.8030203@shaw.ca> I had Jet SP-7 installed and was planning to upgrade to SP-8 sometime soon. It made the decision for me. I was wondering if people were also upgraded from Jet SP-4 or 5 etc. It could be they did this to stop people from running things like following that makes all files in the current folder read only. SELECT Shell("Cmd /c attrib +R *.*") As c1 From Customers With a little bit of fiddling with SQL Injection methods you could stuff this into a field in a web asp page and have it run on a website using Access. But I don't think this patch was the only problem it was fixing. How to configure Jet 4.0 to prevent unsafe functions from running in Access 2003 http://support.microsoft.com/default.aspx?scid=kb;en-us;294698&Product=acc Gustav Brock wrote: >Hi Marty > >That's why I always download the patches, then install them one by one >- it allows you to read the notice from MS on the patch. > >However, this 837001 patch seems to uninstallable if it causes you >trouble. > >/gustav > > > > >> I am not sure but after checking the version numbers of MSJet40.dll, >>DAO360.dll and several others. It appears that Microsoft has upgraded >>everyone to an advanced security fix version of JET SP-8 after >>receiving this months Windows Update automatic security upgrades. >> It would have been nice to have received a notification .;) Not sure >>what this will do to Jet Sandbox mode. >>You can check quickly for the install through the control panel >>add/remove programs and look at bottom for MS HotFix 837001. >>This doesn't apply to the OS's Windows Me and below. >>Here are the relevant Url's. >>Microsoft Security Bulletin MS04-014 >>Vulnerability in the Microsoft Jet Database Engine Could Allow Code >>Execution (837001) >>http://www.microsoft.com/technet/security/bulletin/ms04-014.mspx >>http://support.microsoft.com/?kbid=837001 >> >> > > > >>Old Jet Service Pack 8 File Manifest >>http://support.microsoft.com/?kbid=829558 >> >> > > > >> The only reason I noticed was I was looking at an article on BBC >>Scotland news site describing a 19 year old from Aberdeen, Matt Thompson >>who brought the security fault to Microsoft's attention. They happened >>to mention the fault was in JET, which piqued my interest to look further. >>http://news.bbc.co.uk/1/hi/scotland/3630649.stm >> >> > > > > >>-- >>Marty Connelly >>Victoria, B.C. >>Canada >> >> > > > -- Marty Connelly Victoria, B.C. Canada From Subscriptions at servicexp.com Sat Apr 17 12:03:54 2004 From: Subscriptions at servicexp.com (Robert Gracie) Date: Sat, 17 Apr 2004 13:03:54 -0400 Subject: [AccessD] Help with sysvar demo In-Reply-To: <002801c4242b$79892040$6501a8c0@delllaptop> Message-ID: I think the problem is in the line below (Corrected) in the MergeSysVars method. The .Value must be added. mcolSysVars.Add Item:=!SV_VarValue.Value, Key:=!SV_VarName.Value Robert Gracie www.servicexp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Joe Hecht Sent: Friday, April 16, 2004 11:24 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Help with sysvar demo John, It is your sysvar demo. Did you get the e mail I sent you privately? JOE HECHT LOS ANGELES CA -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Friday, April 16, 2004 7:45 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Help with sysvar demo Is that from my site or DatabaseAdvisors? Or somewhere else? John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Joe Hecht Sent: Friday, April 16, 2004 9:25 PM To: AccessD Subject: [AccessD] Help with sysvar demo I opened a copy of the sysvar 2k mdb and built the additional tables. When I try to open frmSysVar I get the error " Compile Error: User defined type: Not defined. Dim mdb as DAO.Database I checked and I do have the dao reference marked. It is XP in 2000 format Any thoughts apreciated JOE HECHT LOS ANGELES CA -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sat Apr 17 12:21:46 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sat, 17 Apr 2004 13:21:46 -0400 Subject: [AccessD] Help with sysvar demo In-Reply-To: Message-ID: I downloaded the 2k version from my site last night and just ran it. No errors. Methinks something else is happening. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Robert Gracie Sent: Saturday, April 17, 2004 1:04 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Help with sysvar demo I think the problem is in the line below (Corrected) in the MergeSysVars method. The .Value must be added. mcolSysVars.Add Item:=!SV_VarValue.Value, Key:=!SV_VarName.Value Robert Gracie www.servicexp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Joe Hecht Sent: Friday, April 16, 2004 11:24 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Help with sysvar demo John, It is your sysvar demo. Did you get the e mail I sent you privately? JOE HECHT LOS ANGELES CA From gustav at cactus.dk Sat Apr 17 12:37:39 2004 From: gustav at cactus.dk (Gustav Brock) Date: Sat, 17 Apr 2004 19:37:39 +0200 Subject: [AccessD] Automatic Upgrade to Jet SP-8 via Microsoft Windows Update facilty In-Reply-To: <40815C0D.8030203@shaw.ca> References: <001201c4241a$d8232cb0$6501a8c0@delllaptop> <00d101c42432$50002cd0$6101a8c0@dejpolsys> <4080E5E8.3080500@shaw.ca> <213977429.20040417104302@cactus.dk> <40815C0D.8030203@shaw.ca> Message-ID: <13236054113.20040417193739@cactus.dk> Hi Marty > I had Jet SP-7 installed and was planning to upgrade to SP-8 sometime > soon. It made the decision for me. > I was wondering if people were also upgraded from Jet SP-4 or 5 etc. Ahh, I see. I don't know - I already had SP-8 installed. /gustav From jmhla at earthlink.net Sat Apr 17 12:50:09 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Sat, 17 Apr 2004 10:50:09 -0700 Subject: [AccessD] Help with sysvar demo In-Reply-To: Message-ID: <000001c424a4$7046c860$6501a8c0@delllaptop> John, I am running in 2000 mode in XP. Does it need some tlc because of xp JOE HECHT LOS ANGELES CA -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Saturday, April 17, 2004 10:22 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Help with sysvar demo I downloaded the 2k version from my site last night and just ran it. No errors. Methinks something else is happening. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Robert Gracie Sent: Saturday, April 17, 2004 1:04 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Help with sysvar demo I think the problem is in the line below (Corrected) in the MergeSysVars method. The .Value must be added. mcolSysVars.Add Item:=!SV_VarValue.Value, Key:=!SV_VarName.Value Robert Gracie www.servicexp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Joe Hecht Sent: Friday, April 16, 2004 11:24 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Help with sysvar demo John, It is your sysvar demo. Did you get the e mail I sent you privately? JOE HECHT LOS ANGELES CA -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Susan.Klos at fldoe.org Sat Apr 17 14:15:35 2004 From: Susan.Klos at fldoe.org (Klos, Susan) Date: Sat, 17 Apr 2004 15:15:35 -0400 Subject: [AccessD] Changing the table in a query so I can loop through the query Message-ID: <01B619CB8F6C8C478EDAC39191AEC51E0410BE@DOESEFPEML02.EUS.FLDOE.INT> I have an append query that can work for 71 tables. I want to create a for next loop function that will substitute the table names (they are numbers) each time it loops. Can someone help me? I do not quite have the query def thing down and I think I need to use it here. Each table has the same fields. Susan Klos Senior Database Analyst Evaluation and Reporting Florida Department of Education From ssharkins at bellsouth.net Sat Apr 17 15:57:21 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Sat, 17 Apr 2004 16:57:21 -0400 Subject: [AccessD] Changing the table in a query so I can loop through thequery In-Reply-To: <01B619CB8F6C8C478EDAC39191AEC51E0410BE@DOESEFPEML02.EUS.FLDOE.INT> Message-ID: <20040417205721.PKCA1773.imf19aec.mail.bellsouth.net@SUSANONE> You don't need a querydef, you can stick a SQL UPDATE in a For Mext loop. Susan H. I have an append query that can work for 71 tables. I want to create a for next loop function that will substitute the table names (they are numbers) each time it loops. Can someone help me? I do not quite have the query def thing down and I think I need to use it here. Each table has the same fields. Susan Klos Senior Database Analyst Evaluation and Reporting Florida Department of Education -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Sat Apr 17 15:59:29 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Sat, 17 Apr 2004 16:59:29 -0400 Subject: [AccessD] Changing the table in a query so I can loop through thequery In-Reply-To: <01B619CB8F6C8C478EDAC39191AEC51E0410BE@DOESEFPEML02.EUS.FLDOE.INT> Message-ID: <20040417205929.PLEB1773.imf19aec.mail.bellsouth.net@SUSANONE> I'm sorry, not an UPDATE, but a SQL INSERT INTO Susan H. I have an append query that can work for 71 tables. I want to create a for next loop function that will substitute the table names (they are numbers) each time it loops. Can someone help me? I do not quite have the query def thing down and I think I need to use it here. Each table has the same fields. From Developer at UltraDNT.com Sat Apr 17 16:02:18 2004 From: Developer at UltraDNT.com (Developer) Date: Sat, 17 Apr 2004 17:02:18 -0400 Subject: [AccessD] Changing the table in a query so I can loop through thequery In-Reply-To: <01B619CB8F6C8C478EDAC39191AEC51E0410BE@DOESEFPEML02.EUS.FLDOE.INT> Message-ID: <000001c424bf$47eb6860$6401a8c0@COA3> Susan: Rather than use the query def, paste the sql in the query into your code, and then do something like: For i = 1 to 71 currentdb.execute "insert into " & i & " whatever the rest of the sql is ... Next i Hth Steve -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Klos, Susan Sent: Saturday, April 17, 2004 3:16 PM To: 'AccessD at databaseadvisors.com' Subject: [AccessD] Changing the table in a query so I can loop through thequery I have an append query that can work for 71 tables. I want to create a for next loop function that will substitute the table names (they are numbers) each time it loops. Can someone help me? I do not quite have the query def thing down and I think I need to use it here. Each table has the same fields. Susan Klos Senior Database Analyst Evaluation and Reporting Florida Department of Education -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From sgoodhall at comcast.net Sat Apr 17 16:48:39 2004 From: sgoodhall at comcast.net (Steve Goodhall) Date: Sat, 17 Apr 2004 17:48:39 -0400 Subject: [AccessD] jpg Screen shot In-Reply-To: <4081565D.7060103@shaw.ca> Message-ID: Sorry I haven't been on the list much lately and did not see this when it came up. The Microsoft HTML Help Workshop (http://www.microsoft.com/downloads/details.aspx?FamilyID=00535334-c8a6-452f -9aa0-d597d16580cc&DisplayLang=en) has a screen and window capture utility, image editor, etc. It works quite well, and it's free. Regards, Steve Goodhall -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MartyConnelly Sent: Saturday, April 17, 2004 12:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] jpg Screen shot Here is a spot with a few links to SVG (Scalable Vector Graphics) articles http://searchwebservices.techtarget.com/tip/0,289483,sid26_gci918717,00.html Grab an SVG viewer from Adobe. There are others. http://www.adobe.com/support/downloads/main.html Then save the xml file below as test.svg Right click on filename and open with IE. It is a graphical display of relative size of tablespaces in an Oracle DB. You maybe able to find way more advanced displays ( Map of the Internet) at Tim Bray's company in Vancouver. It may have moved elsewhere. http://www.antarti.ca CWMLITE DRSYS EJALA EXAMPLE INDX ODM SYSTEM TOOLS UNDOTBS1 USERS XDB Dave Sharpe wrote: >Steve > >You can look here for some info > >http://www.w3.org/Graphics/SVG/ > >Dave > >----- Original Message ----- >From: "Steven W. Erbach" >To: "Access Developers discussion and problem solving" > >Sent: Saturday, April 17, 2004 10:01 AM >Subject: Re: [AccessD] jpg Screen shot > > >William, > > > >>>...when the vector based SVG format gets fully implemented in more >>> >>> >browsers we'll finally have something that produces both great graphics and >small files ...I'm using some now for IE6 clients and the results are great. ><< > >This is the first I've heard of SVG. What does the acronym stand for and >where can I find some on-line examples? > >Regards, > >Steve Erbach >Scientific Marketing >Neenah, WI >920-969-0504 > >"Let every nation know, whether it wishes us well or ill, that we shall pay >any price, bear any burden, meet any hardship, support any friend, oppose >any foe, in order to assure the survival and the success of liberty." - John >F. Kennedy, 1961 > > > -- 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 Sat Apr 17 17:20:21 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sat, 17 Apr 2004 15:20:21 -0700 Subject: [AccessD] Changing the table in a query so I can loop through the query References: <01B619CB8F6C8C478EDAC39191AEC51E0410BE@DOESEFPEML02.EUS.FLDOE.INT> Message-ID: <4081ADA5.1000205@shaw.ca> If you are just appending fields modified slightly from Access97 help 'Append and Delete Methods Example 'This example uses either the Append method or the Delete method to modify the Fields collection of a TableDef. The AppendDeleteField procedure is required for this procedure to run. Sub AppendX() Dim dbs As Database Dim tdf As TableDef Dim fldLoop As Field Dim strTdef As String Set dbs = CurrentDb 'Import tables from specified Access database or currentDB For Each tdf In dbs.TableDefs 'loop through tables for names strTdef = tdf.Name Debug.Print strTdef If Left(strTdef, 4) <> "MSys" Then ' skip system tables ' Add three new fields. 'you may want to add other options like no zero length etc AppendDeleteField tdf, "APPEND", "E-mail", dbText, 50 AppendDeleteField tdf, "APPEND", "Http", dbText, 80 AppendDeleteField tdf, "APPEND", "Quota", dbInteger, 5 Debug.Print "Fields after Append to Table " & tdf.Name Debug.Print , "Type", "Size", "Name" ' Enumerate the Fields collection to show the new fields. For Each fldLoop In tdf.Fields Debug.Print , fldLoop.Type, fldLoop.Size, fldLoop.Name Next fldLoop ' Delete the newly added fields. ' AppendDeleteField tdf, "DELETE", "E-mail" ' AppendDeleteField tdf, "DELETE", "Http" ' AppendDeleteField tdf, "DELETE", "Quota" ' Debug.Print "Fields after Delete" ' Debug.Print , "Type", "Size", "Name" ' Enumerate the Fields collection to show that the new ' fields have been deleted. For Each fldLoop In tdf.Fields Debug.Print , fldLoop.Type, fldLoop.Size, fldLoop.Name Next fldLoop End If Next tdf dbs.Close End Sub Sub AppendDeleteField(tdfTemp As TableDef, _ strCommand As String, strName As String, _ Optional varType, Optional varSize) With tdfTemp ' Check first to see if the TableDef object is ' updatable. If it isn't, control is passed back to ' the calling procedure. If .Updatable = False Then MsgBox "TableDef not Updatable! " & _ "Unable to complete task." Exit Sub End If ' Depending on the passed data, append or delete a ' field to the Fields collection of the specified ' TableDef object. If strCommand = "APPEND" Then .Fields.Append .CreateField(strName, _ varType, varSize) Else If strCommand = "DELETE" Then .Fields.Delete _ strName End If End With End Sub Klos, Susan wrote: >I have an append query that can work for 71 tables. I want to create a for >next loop function that will substitute the table names (they are numbers) >each time it loops. Can someone help me? I do not quite have the query def >thing down and I think I need to use it here. Each table has the same >fields. > > > >Susan Klos > >Senior Database Analyst > >Evaluation and Reporting > >Florida Department of Education > > > > > -- Marty Connelly Victoria, B.C. Canada From ssharkins at bellsouth.net Sat Apr 17 17:46:53 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Sat, 17 Apr 2004 18:46:53 -0400 Subject: [AccessD] custom sorts/groups in a report Message-ID: <20040417224653.KZKB1818.imf25aec.mail.bellsouth.net@SUSANONE> I'm grouping and sorting a report on a date field. The grouping is by the week -- but I want it to handle a changing first day of the week variable. I can't get my head around it at all. Passing the first day of the week around is no problem -- I just can't seem to get Access to group by it. I've looked at CreateGroupLevel, but I don't see how that can help. I tried adding a DatePart expression to the Detail section and using the OpenArgs property to pass the first day of the week, and while the expression works, I can't group by it -- it's a calculated control. I don't want the users manipulating the underlying query either. They choose the first day of the week from a simple form and the rest needs to happen behind the scenes. Any suggestions? Susan H. From ssharkins at bellsouth.net Sat Apr 17 18:21:04 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Sat, 17 Apr 2004 19:21:04 -0400 Subject: FW: [AccessD] custom sorts/groups in a report Message-ID: <20040417232105.BHUI1832.imf22aec.mail.bellsouth.net@SUSANONE> Nevermind. :( Susan H. I'm grouping and sorting a report on a date field. The grouping is by the week -- but I want it to handle a changing first day of the week variable. I can't get my head around it at all. Passing the first day of the week around is no problem -- I just can't seem to get Access to group by it. I've looked at CreateGroupLevel, but I don't see how that can help. I tried adding a DatePart expression to the Detail section and using the OpenArgs property to pass the first day of the week, and while the expression works, I can't group by it -- it's a calculated control. I don't want the users manipulating the underlying query either. They choose the first day of the week from a simple form and the rest needs to happen behind the scenes. Any suggestions? From stuart at lexacorp.com.pg Sat Apr 17 18:22:33 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 18 Apr 2004 09:22:33 +1000 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <20040417224653.KZKB1818.imf25aec.mail.bellsouth.net@SUSANONE> Message-ID: <408248D9.22694.F740E@localhost> On 17 Apr 2004 at 18:46, Susan Harkins wrote: > I'm grouping and sorting a report on a date field. The grouping is by the > week -- but I want it to handle a changing first day of the week variable. I > can't get my head around it at all. > > Passing the first day of the week around is no problem -- I just can't seem > to get Access to group by it. I've looked at CreateGroupLevel, but I don't > see how that can help. > > I tried adding a DatePart expression to the Detail section and using the > OpenArgs property to pass the first day of the week, and while the > expression works, I can't group by it -- it's a calculated control. I don't > want the users manipulating the underlying query either. They choose the > first day of the week from a simple form and the rest needs to happen behind > the scenes. > You can group by a calculation. Just put =Datepart("ww",mydate,myfirstday) in a grouping level. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From ssharkins at bellsouth.net Sat Apr 17 19:15:58 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Sat, 17 Apr 2004 20:15:58 -0400 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <408248D9.22694.F740E@localhost> Message-ID: <20040418001559.IUSX1714.imf16aec.mail.bellsouth.net@SUSANONE> I've got it grouping correctly now -- the problem was passing the first day of the week variable to the report. I decided to use a function to pass it to the query instead of the report. When you say "grouping level" what do you mean? I tried a calculation with GroupLevel and couldn't get it to work, but just might not have had the syntax right in the statement. I need something flexible enough to allow me to pass a new firstdayoftheweek value. Come to think of it, I didn't try GroupOn -- and maybe that was what I needed. I will have to go back and try that one again. Now, I just need to figure out how to get the first day of that week to print in the group's header -- and it needs to be dynamic enough to handle any day of the week as the first day of the week. If the date's Thursday, July 25, 1996 which falls in the 31st week of the year where Wed is the first day of the week... how do I return Wednesday, July 25, 1996? That's my problem. :) the expression has to adapt to any firstdayoftheweek value, not just Wed. Susan H. On 17 Apr 2004 at 18:46, Susan Harkins wrote: > I'm grouping and sorting a report on a date field. The grouping is by > the week -- but I want it to handle a changing first day of the week > variable. I can't get my head around it at all. > > Passing the first day of the week around is no problem -- I just can't > seem to get Access to group by it. I've looked at CreateGroupLevel, > but I don't see how that can help. > > I tried adding a DatePart expression to the Detail section and using > the OpenArgs property to pass the first day of the week, and while the > expression works, I can't group by it -- it's a calculated control. I > don't want the users manipulating the underlying query either. They > choose the first day of the week from a simple form and the rest needs > to happen behind the scenes. > You can group by a calculation. Just put =Datepart("ww",mydate,myfirstday) in a grouping level. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Sat Apr 17 19:39:07 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Sat, 17 Apr 2004 20:39:07 -0400 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <20040418001559.IUSX1714.imf16aec.mail.bellsouth.net@SUSANONE> Message-ID: <20040418003907.JBDR1714.imf16aec.mail.bellsouth.net@SUSANONE> If the date's Thursday, July 25, 1996 which falls in the 31st week of the year where Wed is the first day of the week... how do I return Wednesday, July 25, 1996? That's my problem. :) the expression has to adapt to any firstdayoftheweek value, not just Wed. ==============Got this too now -- all's well. ;) Susan H. From demulling at centurytel.net Sat Apr 17 21:58:44 2004 From: demulling at centurytel.net (Demulling Family) Date: Sat, 17 Apr 2004 21:58:44 -0500 Subject: [AccessD] Using TransferDatabase to link table from password protectd db In-Reply-To: <407F56A3.7050805@shaw.ca> References: <407F56A3.7050805@shaw.ca> Message-ID: <4081EEE4.2070104@centurytel.net> Marty, Just tried the code you sent and it worked perfectly. THANKS!!!!!!!!!!!!!!!!!!!!!!!!!!! From jmhla at earthlink.net Sun Apr 18 01:44:20 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Sat, 17 Apr 2004 23:44:20 -0700 Subject: [AccessD] About Manuals for your databases X posted Message-ID: <000001c42510$98fbcdc0$6501a8c0@delllaptop> How many of you right them? Do you right users and developers manuals that explain your hows and whys? In my forms, I do things like make non-visible fields red and bold just so they are easier to see if they are buried under other controls. Just wondering JOE HECHT LOS ANGELES CA From jmhla at earthlink.net Sun Apr 18 01:44:21 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Sat, 17 Apr 2004 23:44:21 -0700 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <20040417232105.BHUI1832.imf22aec.mail.bellsouth.net@SUSANONE> Message-ID: <000501c42510$9c99dc10$6501a8c0@delllaptop> Glad to see I am not the only frustrated programmer on A Saturday Afternoon. JOE HECHT LOS ANGELES CA -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Saturday, April 17, 2004 4:21 PM To: 'Access Developers discussion and problem solving' Subject: FW: [AccessD] custom sorts/groups in a report Nevermind. :( Susan H. I'm grouping and sorting a report on a date field. The grouping is by the week -- but I want it to handle a changing first day of the week variable. I can't get my head around it at all. Passing the first day of the week around is no problem -- I just can't seem to get Access to group by it. I've looked at CreateGroupLevel, but I don't see how that can help. I tried adding a DatePart expression to the Detail section and using the OpenArgs property to pass the first day of the week, and while the expression works, I can't group by it -- it's a calculated control. I don't want the users manipulating the underlying query either. They choose the first day of the week from a simple form and the rest needs to happen behind the scenes. Any suggestions? -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Sun Apr 18 02:27:58 2004 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 18 Apr 2004 09:27:58 +0200 Subject: [AccessD] About Manuals for your databases X posted In-Reply-To: <000001c42510$98fbcdc0$6501a8c0@delllaptop> References: <000001c42510$98fbcdc0$6501a8c0@delllaptop> Message-ID: <593513812.20040418092758@cactus.dk> Hi Joe > How many of you right them? I write old fashioned help files only. They load extremely fast and are quite easy to print out if a hardcopy is requested. > Do you right users and developers manuals that explain your hows and > whys? For users only as part of a project description. For developers (including myself!) only as in-line comments. > In my forms, I do things like make non-visible fields red and bold just > so they are easier to see if they are buried under other controls. I use these background colours with black text: Yellow for invisible controls (mostly textboxes) Cyan for invisible controls for either future visible use or which previously have been visible (now invisible due to modifications of the form layout) and with a possible future use, though such controls must be tricky somehow, otherwise I just delete them. Green for invisible textboxes containing a function which needs to (and will) run when the form recalculates. These are rare. Magenta for invisible labels with comments or as pointers to controls hidden in design view by some larger controls. /gustav From wdhindman at bellsouth.net Sun Apr 18 07:23:54 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Sun, 18 Apr 2004 08:23:54 -0400 Subject: [AccessD] About Manuals for your databases X posted References: <000001c42510$98fbcdc0$6501a8c0@delllaptop> <593513812.20040418092758@cactus.dk> Message-ID: <000401c42540$03fccb90$6101a8c0@dejpolsys> gustav ...interesting ...I've always used naming conventions to manage distinctions like this but can certainly see some value in using color ...I'm rebuilding a major client app over the next few weeks and I think it would be a good time to try this in my templates ...tks :) William Hindman "Always code as if the person who is maintaining or testing your code is a violent psychopath who knows where you live." William Silverstein ----- Original Message ----- From: "Gustav Brock" To: "Access Developers discussion and problem solving" Sent: Sunday, April 18, 2004 3:27 AM Subject: Re: [AccessD] About Manuals for your databases X posted > Hi Joe > > > How many of you right them? > > I write old fashioned help files only. They load extremely fast and > are quite easy to print out if a hardcopy is requested. > > > Do you right users and developers manuals that explain your hows and > > whys? > > For users only as part of a project description. > For developers (including myself!) only as in-line comments. > > > In my forms, I do things like make non-visible fields red and bold just > > so they are easier to see if they are buried under other controls. > > I use these background colours with black text: > > Yellow for invisible controls (mostly textboxes) > > Cyan for invisible controls for either future visible use or which > previously have been visible (now invisible due to modifications of > the form layout) and with a possible future use, though such > controls must be tricky somehow, otherwise I just delete them. > > Green for invisible textboxes containing a function which needs to > (and will) run when the form recalculates. These are rare. > > Magenta for invisible labels with comments or as pointers to > controls hidden in design view by some larger controls. > > /gustav > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From ssharkins at bellsouth.net Sun Apr 18 09:23:47 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Sun, 18 Apr 2004 10:23:47 -0400 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <000501c42510$9c99dc10$6501a8c0@delllaptop> Message-ID: <20040418142347.GYRL1728.imf24aec.mail.bellsouth.net@SUSANONE> I'm still not happy with the solution -- there's got to be an easier way. :) Susan H. Glad to see I am not the only frustrated programmer on A Saturday Afternoon. From ssharkins at bellsouth.net Sun Apr 18 10:44:37 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Sun, 18 Apr 2004 11:44:37 -0400 Subject: [AccessD] Calendar Controls -- just for discussion Message-ID: <20040418154437.GAQR1779.imf21aec.mail.bellsouth.net@SUSANONE> I'm writing about the ODE Calendar Control and I'm curious how many of you use Calendar controls in your apps. I've had people complain about them -- they'd actually enter the dates themselves because they find the break in their data entry routines annoying -- from a data integrity point of view I can see the value of the controls -- but how do you convince people to use them? Susan H. From andy at minstersystems.co.uk Sun Apr 18 10:52:14 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Sun, 18 Apr 2004 16:52:14 +0100 Subject: [AccessD] Calendar Controls -- just for discussion In-Reply-To: <20040418154437.GAQR1779.imf21aec.mail.bellsouth.net@SUSANONE> Message-ID: <000001c4255d$1edb6ee0$b274d0d5@minster33c3r25> I don't use them for normal date entry, but I provide one on the app's short-cut menu for when the customer feels the need. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Susan Harkins > Sent: 18 April 2004 16:45 > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Calendar Controls -- just for discussion > > > I'm writing about the ODE Calendar Control and I'm curious > how many of you use Calendar controls in your apps. > > I've had people complain about them -- they'd actually enter > the dates themselves because they find the break in their > data entry routines annoying > -- from a data integrity point of view I can see the value of > the controls > -- but how do you convince people to use them? > > Susan H. > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > From bhjohnson at pacbell.net Sun Apr 18 10:52:27 2004 From: bhjohnson at pacbell.net (Bruce H. Johnson) Date: Sun, 18 Apr 2004 08:52:27 -0700 Subject: [AccessD] Calendar Controls -- just for discussion In-Reply-To: <20040418154437.GAQR1779.imf21aec.mail.bellsouth.net@SUSANONE> References: <20040418154437.GAQR1779.imf21aec.mail.bellsouth.net@SUSANONE> Message-ID: <4082A43B.8070406@pacbell.net> Suggest you have both the control and the straight data entry available. I've found that straight date entry is fine if the user knows the date, but the control is very handy to enter the "first Tuesday in February" - type dates; otherwise they'll have to dig up a calendar. Susan Harkins wrote: >I'm writing about the ODE Calendar Control and I'm curious how many of you >use Calendar controls in your apps. > >I've had people complain about them -- they'd actually enter the dates >themselves because they find the break in their data entry routines annoying >-- from a data integrity point of view I can see the value of the controls >-- but how do you convince people to use them? > >Susan H. > > From ssharkins at bellsouth.net Sun Apr 18 11:07:27 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Sun, 18 Apr 2004 12:07:27 -0400 Subject: [AccessD] Calendar Controls -- just for discussion In-Reply-To: <4082A43B.8070406@pacbell.net> Message-ID: <20040418160727.DWEY1773.imf19aec.mail.bellsouth.net@SUSANONE> Well that's a good suggestion -- I hadn't really thought of that. :) Susan H. Suggest you have both the control and the straight data entry available. I've found that straight date entry is fine if the user knows the date, but the control is very handy to enter the "first Tuesday in February" - type dates; otherwise they'll have to dig up a calendar. From accessd at shaw.ca Sun Apr 18 11:35:50 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Sun, 18 Apr 2004 09:35:50 -0700 Subject: [AccessD] Calendar Controls -- just for discussion In-Reply-To: <20040418154437.GAQR1779.imf21aec.mail.bellsouth.net@SUSANONE> Message-ID: Hi Susan: I tend to add a button accessing a popup calendar, beside each date entry field. The user is then given the choice, direct entry or selecting from a mini calendar. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Susan Harkins Sent: Sunday, April 18, 2004 8:45 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Calendar Controls -- just for discussion I'm writing about the ODE Calendar Control and I'm curious how many of you use Calendar controls in your apps. I've had people complain about them -- they'd actually enter the dates themselves because they find the break in their data entry routines annoying -- from a data integrity point of view I can see the value of the controls -- but how do you convince people to use them? Susan H. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at bellsouth.net Sun Apr 18 11:42:00 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Sun, 18 Apr 2004 12:42:00 -0400 Subject: [AccessD] Calendar Controls -- just for discussion References: <20040418154437.GAQR1779.imf21aec.mail.bellsouth.net@SUSANONE> Message-ID: <000c01c42564$12270180$6101a8c0@dejpolsys> ...first ...I don't use the ODE Calendar Control because of a long history of versioning problems ...even when you wrap it in a class you're app is still vulnerable ...besides it being slow ...I use a modified version of Drew's old mini-calendar which is all VBA, dead reliable, and very fast. ...second (this has been discussed here recently but under another thread topic) ...I much prefer data integrity over speed but its not necessary to sacrifice one for the other ...I always force user date entry from a pop-up calendar ...the calendar pops-up at the bottom right of the text box with the current date defaulted ...if the current date is what is required ...a dblclick gets the date entered and tabs to the next control ...if not, the cal responds to either mouse (slow) or keyboard (fast) for date selection. ...purists will try and tell you that such an approach slows keyboarders down and they won't accept it ...I disagree ...once the keyboarders get used to the keyboard strokes that control the cal it is in most cases just as fast as them entering it directly ...BUT ...big one ...the forced calendar usage eliminates most date errors from users who enter/read dates differently ...and the difference between error/dirty data correction time and getting it right the first time weighs heavily in favor of using a cal control over straight user date entry. William Hindman "Always code as if the person who is maintaining or testing your code is a violent psychopath who knows where you live." William Silverstein ----- Original Message ----- From: "Susan Harkins" To: "'Access Developers discussion and problem solving'" Sent: Sunday, April 18, 2004 11:44 AM Subject: [AccessD] Calendar Controls -- just for discussion > I'm writing about the ODE Calendar Control and I'm curious how many of you > use Calendar controls in your apps. > > I've had people complain about them -- they'd actually enter the dates > themselves because they find the break in their data entry routines annoying > -- from a data integrity point of view I can see the value of the controls > -- but how do you convince people to use them? > > Susan H. > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From ssharkins at bellsouth.net Sun Apr 18 11:48:29 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Sun, 18 Apr 2004 12:48:29 -0400 Subject: [AccessD] Calendar Controls -- just for discussion In-Reply-To: <000c01c42564$12270180$6101a8c0@dejpolsys> Message-ID: <20040418164829.INUT1728.imf24aec.mail.bellsouth.net@SUSANONE> ...first ...I don't use the ODE Calendar Control because of a long history of versioning problems ===========I'm limited -- I write about what they want. :) So, when you complain of versioning problems, what do you mean? Susan H. From gustav at cactus.dk Sun Apr 18 11:59:33 2004 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 18 Apr 2004 18:59:33 +0200 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <20040418142347.GYRL1728.imf24aec.mail.bellsouth.net@SUSANONE> References: <20040418142347.GYRL1728.imf24aec.mail.bellsouth.net@SUSANONE> Message-ID: <1661080363.20040418185933@cactus.dk> Hi Susan > I'm still not happy with the solution -- there's got to be an easier way. :) Maybe. What solution did you settle on? /gustav From wdhindman at bellsouth.net Sun Apr 18 12:11:53 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Sun, 18 Apr 2004 13:11:53 -0400 Subject: [AccessD] Calendar Controls -- just for discussion References: <20040418164829.INUT1728.imf24aec.mail.bellsouth.net@SUSANONE> Message-ID: <002301c42568$3ec91ad0$6101a8c0@dejpolsys> ...I've not used the native cal for years ...but there was a period of time with A95/97 that MS changed the way the calendar worked between a number of versions and didn't maintain reverse compatibility ...depending upon which version of the control your users had installed your app might or might not work, a very common problem back then with all ActiveX controls (I don't use any 3rd party ActiveX controls for the same reason) ...so I switched to a vba based one and never looked back ...and no, I can't tell you the problems have or have not been resolved ...I'm happy with my calendar ...its been tweaked to work exactly the way I want it to :) William Hindman "Always code as if the person who is maintaining or testing your code is a violent psychopath who knows where you live." William Silverstein ----- Original Message ----- From: "Susan Harkins" To: "'Access Developers discussion and problem solving'" Sent: Sunday, April 18, 2004 12:48 PM Subject: RE: [AccessD] Calendar Controls -- just for discussion > ...first ...I don't use the ODE Calendar Control because of a long history > of versioning problems > > ===========I'm limited -- I write about what they want. :) So, when you > complain of versioning problems, what do you mean? > > Susan H. > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From ssharkins at bellsouth.net Sun Apr 18 12:41:30 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Sun, 18 Apr 2004 13:41:30 -0400 Subject: [AccessD] ODE HElp problem Message-ID: <20040418174130.YNQF1810.imf18aec.mail.bellsouth.net@SUSANONE> I just installed Office XP Developer and the Help files don't work -- the interface is there and the toc is there -- but it isn't connecting and every subject returns a page not found error. I don't even know where to begin to start. Anyone else had this happen? Susan H. From ssharkins at bellsouth.net Sun Apr 18 12:52:24 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Sun, 18 Apr 2004 13:52:24 -0400 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <1661080363.20040418185933@cactus.dk> Message-ID: <20040418175224.YQKA1810.imf18aec.mail.bellsouth.net@SUSANONE> Well, it's clunky -- 1.) User selects the first day of the week from a list of Sunday through Saturday. 2.) User clicks a command button that opens the report and sends the above selected value via the OpenArgs argument. 3.) The report is based on a query that calls a function that uses the value selected in #1 to return a weekday value for each date. 4.) The report's grouping is first set to year. The second level groups on the weekday value returned by #3. And, a third sorting level simply sorts the date values so it all comes out in the wash. 5.) The group header contains a value that uses the openargs value in a DatePart expression to return the first day of the week for each group. You can use the report without the form and it will default to a firstdayoftheweek value of 1 -- to avoid errors and to make it easier to use the report without going through the form -- that way you could set the default to anything and the user could just open the report. Seems like it ought to be easier than that though -- just too much going on. #3's the one I don't really like. Seems like I ought to be able to get that weekday number in the report, and although I can -- I can't sort by it. Someone mentioned yesterday that you could group on a calculation, but I've not figured that one out yet. I tried setting it using the GroupLevel and GroupOn properties, but never got it to work -- not saying it won't, just I wasn't successful. I didn't spend much time on it though. My understanding of the GroupOn property is that it needs to refer to a specific integer value that represents the built-in levels (Month, Year, Quarter, and so on). I never could get it to accept a DatePart expression. Susan H. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Sunday, April 18, 2004 1:00 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] custom sorts/groups in a report Hi Susan > I'm still not happy with the solution -- there's got to be an easier > way. :) Maybe. What solution did you settle on? /gustav -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Sun Apr 18 13:43:07 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Sun, 18 Apr 2004 11:43:07 -0700 Subject: [AccessD] A summary of the great Open Source discussion In-Reply-To: <000001c4255d$1edb6ee0$b274d0d5@minster33c3r25> Message-ID: Hi All: A couple of weeks ago, there was an Open Source debate encapsulated much of the points of view that have been argued for years. I was so impressed, with the conciseness and objectiveness of the discussion that I decided to put the results in a single page and post the summary to the DBA web site. You can get access to the page through a link off the main page www.databaseadvisors.com. (If your browser saves pages you may have to press reset/reload to view the current layout.) Thank you all for your contributions, Susan Harkin, who started the whole thing, Stuart McLachlan, Bryan Carbonnell, Francisco H Tapia, Bruce Bruen, Bob Hall, Drew Wutka, Marty Connelly and Arthur Fuller. If there is anyone I overlooked or comments I missed, send me a note and you will be appropriately accommodated. Again, thanks to all. Jim From bchacc at san.rr.com Sun Apr 18 14:48:33 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Sun, 18 Apr 2004 12:48:33 -0700 Subject: [AccessD] Calendar Controls -- just for discussion References: <20040418164829.INUT1728.imf24aec.mail.bellsouth.net@SUSANONE> <002301c42568$3ec91ad0$6101a8c0@dejpolsys> Message-ID: <00df01c4257e$2230ff80$6601a8c0@HAL9002> I use the ADH calendar and trigger it on the double-click of any date text box. So they can still hand enter the date if they want. Users seem to like the convention once they get used to it. Rocky Smolin Beach Access Software http://www.e-z-mrp.com > > ----- Original Message ----- > From: "Susan Harkins" > To: "'Access Developers discussion and problem solving'" > > Sent: Sunday, April 18, 2004 12:48 PM > Subject: RE: [AccessD] Calendar Controls -- just for discussion > > > > ...first ...I don't use the ODE Calendar Control because of a long history > > of versioning problems > > > > ===========I'm limited -- I write about what they want. :) So, when you > > complain of versioning problems, what do you mean? > > > > 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 bchacc at san.rr.com Sun Apr 18 14:53:29 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Sun, 18 Apr 2004 12:53:29 -0700 Subject: [AccessD] About Manuals for your databases X posted References: <000001c42510$98fbcdc0$6501a8c0@delllaptop> Message-ID: <00f701c4257e$d2a17480$6601a8c0@HAL9002> Joe: I wrote a manual for the manufacturing system last year. Just about committed suicide but got it done. For a product I think you need one. But for a one-shot app I never write them. I tried to be consistent about the headings so that I could do an automatic table of contents and that worked out pretty well. And a different style for the figures and tables so I could auto-produce a list of figures as well. Haven't done an index, however. I'd be glad to send you a copy off-line if it would be useful to you. HTH Rocky Smolin Beach Access Software http://www.e-z-mrp.com ----- Original Message ----- From: "Joe Hecht" To: "'ACCESS-L'" ; "AccessD" Sent: Saturday, April 17, 2004 11:44 PM Subject: [AccessD] About Manuals for your databases X posted > How many of you right them? > > Do you right users and developers manuals that explain your hows and > whys? > > In my forms, I do things like make non-visible fields red and bold just > so they are easier to see if they are buried under other controls. > > Just wondering > > JOE HECHT > LOS ANGELES CA > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From carbonnb at sympatico.ca Sun Apr 18 14:57:53 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Sun, 18 Apr 2004 15:57:53 -0400 Subject: [AccessD] Calendar Controls -- just for discussion In-Reply-To: <00df01c4257e$2230ff80$6601a8c0@HAL9002> Message-ID: <4082A581.7252.F87E02@localhost> On 18 Apr 2004 at 12:48, Rocky Smolin - Beach Access S wrote: > I use the ADH calendar and trigger it on the double-click of any date > text box. So they can still hand enter the date if they want. Users > seem to like the convention once they get used to it. I use the ADH one too. I actually place a button right beside the textbox so that the calendar can be opened without taking your hands off the keyboard. -- Bryan Carbonnell - carbonnb at sympatico.ca Don't take life too seriously. You won't get out alive. From bchacc at san.rr.com Sun Apr 18 16:11:22 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Sun, 18 Apr 2004 14:11:22 -0700 Subject: [AccessD] Calendar Controls -- just for discussion References: <4082A581.7252.F87E02@localhost> Message-ID: <015b01c42589$b3bde390$6601a8c0@HAL9002> Bryan: So is that button the next control in the tab sequence after the text box which would contain a date so the user can then TAB to it and press Enter? Rocky ----- Original Message ----- From: "Bryan Carbonnell" To: "Access Developers discussion and problem solving" Sent: Sunday, April 18, 2004 12:57 PM Subject: Re: [AccessD] Calendar Controls -- just for discussion > On 18 Apr 2004 at 12:48, Rocky Smolin - Beach Access S wrote: > > > I use the ADH calendar and trigger it on the double-click of any date > > text box. So they can still hand enter the date if they want. Users > > seem to like the convention once they get used to it. > > I use the ADH one too. I actually place a button right beside the > textbox so that the calendar can be opened without taking your hands > off the keyboard. > > -- > Bryan Carbonnell - carbonnb at sympatico.ca > Don't take life too seriously. You won't get out alive. > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From carbonnb at sympatico.ca Sun Apr 18 16:27:00 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Sun, 18 Apr 2004 17:27:00 -0400 Subject: [AccessD] Calendar Controls -- just for discussion In-Reply-To: <015b01c42589$b3bde390$6601a8c0@HAL9002> Message-ID: <4082BA64.21526.14A13BF@localhost> On 18 Apr 2004 at 14:11, Rocky Smolin - Beach Access S wrote: > So is that button the next control in the tab sequence after the text > box which would contain a date so the user can then TAB to it and > press Enter? I'm not sure if enter works, I always use the space bar to activate the button, but yes that's the concept. The button is the next item in the tab order. The user would press space/enter and the calendar form opens, or they can just tab through the button if they type the date manually. -- Bryan Carbonnell - carbonnb at sympatico.ca Normal people worry me. From andy at minstersystems.co.uk Sun Apr 18 17:00:43 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Sun, 18 Apr 2004 23:00:43 +0100 Subject: [AccessD] Calendar Controls -- just for discussion In-Reply-To: <000c01c42564$12270180$6101a8c0@dejpolsys> Message-ID: <000601c42590$98900470$b274d0d5@minster33c3r25> > I use a modified version of Drew's old mini-calendar which is all VBA, dead reliable, and very fast. Ditto (and thanks to Drew) -- 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: 18 April 2004 17:42 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Calendar Controls -- just for discussion > > > ...first ...I don't use the ODE Calendar Control because of a > long history of versioning problems ...even when you wrap it > in a class you're app is still vulnerable ...besides it being > slow ...I use a modified version of Drew's old mini-calendar > which is all VBA, dead reliable, and very fast. > > ...second (this has been discussed here recently but under > another thread > topic) ...I much prefer data integrity over speed but its not > necessary to sacrifice one for the other ...I always force > user date entry from a pop-up calendar ...the calendar > pops-up at the bottom right of the text box with the current > date defaulted ...if the current date is what is required > ...a dblclick gets the date entered and tabs to the next > control ...if not, the cal responds to either mouse (slow) or > keyboard (fast) for date selection. > > ...purists will try and tell you that such an approach slows > keyboarders down and they won't accept it ...I disagree > ...once the keyboarders get used to the keyboard strokes that > control the cal it is in most cases just as fast as them > entering it directly ...BUT ...big one ...the forced calendar > usage eliminates most date errors from users who enter/read > dates differently ...and the difference between error/dirty > data correction time and getting it right the first time > weighs heavily in favor of using a cal control over straight > user date entry. > > William Hindman > "Always code as if the person who is maintaining or testing > your code is a violent psychopath who knows where you live." > William Silverstein > > > ----- Original Message ----- > From: "Susan Harkins" > To: "'Access Developers discussion and problem solving'" > > Sent: Sunday, April 18, 2004 11:44 AM > Subject: [AccessD] Calendar Controls -- just for discussion > > > > I'm writing about the ODE Calendar Control and I'm curious > how many of > > you use Calendar controls in your apps. > > > > I've had people complain about them -- they'd actually > enter the dates > > themselves because they find the break in their data entry routines > annoying > > -- from a data integrity point of view I can see the value of the > > controls > > -- but how do you convince people to use them? > > > > 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 pedro at plex.nl Sun Apr 18 17:17:55 2004 From: pedro at plex.nl (Pedro Janssen) Date: Mon, 19 Apr 2004 00:17:55 +0200 Subject: [AccessD] error in code Message-ID: <000801c42593$219ec510$f4c581d5@pedro> Hello Group, why isn't this part of a code not working for i = 1 To 9 If "chb" & i & "c31") = True Then .Item("Code" & i).Value = "** geen code" End If Next i the error is: Error 13, Description: Type Mismatch TIA Pedro Janssen From ssharkins at bellsouth.net Sun Apr 18 17:41:41 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Sun, 18 Apr 2004 18:41:41 -0400 Subject: [AccessD] error in code In-Reply-To: <000801c42593$219ec510$f4c581d5@pedro> Message-ID: <20040418224141.TSEN1714.imf16aec.mail.bellsouth.net@SUSANONE> for i = 1 To 9 If "chb" & i & "c31") = True Then Your condition is never going to equal true -- but rather a cancatenated string. Although, I think the code's missing soemthing -- you've got a ) that doesn't make sense in its position, but I suspect that's just a typo and probably isn't your actual error is it? Susan H. From carbonnb at sympatico.ca Sun Apr 18 17:46:46 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Sun, 18 Apr 2004 18:46:46 -0400 Subject: [AccessD] error in code In-Reply-To: <000801c42593$219ec510$f4c581d5@pedro> Message-ID: <4082CD16.31909.1931CA1@localhost> On 19 Apr 2004 at 0:17, Pedro Janssen wrote: > why isn't this part of a code not working > > for i = 1 To 9 > If "chb" & i & "c31") = True Then > .Item("Code" & i).Value = "** geen code" > End If > Next i Pedro, I am assuming that chb* are checkboxes. If so, try: If me.controls("chb" & i & "c31") = True Then You also have a closing ) on the ofiginal If Then line. -- Bryan Carbonnell - carbonnb at sympatico.ca I am a nobody, and nobody is perfect; therefore, I am perfect. From stuart at lexacorp.com.pg Sun Apr 18 18:52:42 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 19 Apr 2004 09:52:42 +1000 Subject: [AccessD] error in code In-Reply-To: <000801c42593$219ec510$f4c581d5@pedro> Message-ID: <4083A16A.23848.32CE49@localhost> On 19 Apr 2004 at 0:17, Pedro Janssen wrote: > Hello Group, > > why isn't this part of a code not working > > for i = 1 To 9 > If "chb" & i & "c31") = True Then > .Item("Code" & i).Value = "** geen code" > End If > Next i > > the error is: Error 13, Description: Type Mismatch > Apart from the problems mentioned by others (the missing "(", the missing "me.controls" or "." before "chb1"), this will result in spaces in your control names ie "chb 1c31" to "chb 9c31" and "Code 1" to "Code 9" UNless you do have spaces in the control names, you need to use Format(i) or similar to get rid of the leading space. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From MPorter at acsalaska.com Sun Apr 18 18:42:33 2004 From: MPorter at acsalaska.com (Porter, Mark) Date: Sun, 18 Apr 2004 15:42:33 -0800 Subject: [AccessD] About Manuals for your databases X posted Message-ID: I charge the same hourly rate for documentation as I do for coding. Then I strongly suggest that they produce their own. I've never been asked to produce documentation (user docs) yet. Mark -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Saturday, April 17, 2004 10:44 PM To: 'ACCESS-L'; AccessD Subject: [AccessD] About Manuals for your databases X posted How many of you right them? Do you right users and developers manuals that explain your hows and whys? In my forms, I do things like make non-visible fields red and bold just so they are easier to see if they are buried under other controls. Just wondering JOE HECHT LOS ANGELES CA -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************************** 18/4/2004 This transmittal may contain confidential information intended solely for the addressee. If you are not the intended recipient, you are hereby notified that you have received this transmittal in error; any review, dissemination, distribution or copying of this transmittal is strictly prohibited. If you have received this communication in error, please notify us immediately by reply or by telephone (collect at 907-564-1000) and ask to speak with the message sender. In addition, please immediately delete this message and all attachments. Thank you. ACS From accessd667 at yahoo.com Mon Apr 19 03:44:05 2004 From: accessd667 at yahoo.com (S D) Date: Mon, 19 Apr 2004 01:44:05 -0700 (PDT) Subject: [AccessD] Error 3265. Item not found in this collection?!!? Message-ID: <20040419084405.36072.qmail@web61105.mail.yahoo.com> Hi group, a user reported an error. The error message displayed the following info: Source: DAO.Fields Number: 3265 Description: Item not found in this collection Call Stack: Switchdatabase.Message_Check_GAS.Check1015 Switchdatabase.Form_frm_GAS_GENERATE.cmdGenerate_Click The line that causes the error is (see code below for details): rv = MsgBox("Duplicate value!! Delete original record?" & vbCr _ , vbYesNo, "Answer question") WHY does this occur? The user is using Win NT. The error does NOT occur on Win2000. We never had this problem before, not on NT and not on Win2000. Please advise! TIA Sander This is the code that caused the problem: Public Function Check_1015(msgtype As String) As String Dim Status As String Dim rs, rsb As Recordset Dim db As Database Dim teller, i As Long Dim rv As String On Error GoTo Check_1015_Error Status = "Ok" If msgtype = "I" Then ... ... Set rsb = db.OpenRecordset("Select * from V4_GAS_Bronbestand_Verhuizingen where connect_EAN = '" & rs!Connect_EAN & "'", dbReadOnly) If rsb.EOF = False Then rv = MsgBox("Duplicate value!! Delete original record?" & vbCr _ , vbYesNo, "Answer question") .... --------------------------------- Do you Yahoo!? Yahoo! Photos: High-quality 4x6 digital prints for 25? From gustav at cactus.dk Mon Apr 19 04:11:01 2004 From: gustav at cactus.dk (Gustav Brock) Date: Mon, 19 Apr 2004 11:11:01 +0200 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <20040418175224.YQKA1810.imf18aec.mail.bellsouth.net@SUSANONE> References: <20040418175224.YQKA1810.imf18aec.mail.bellsouth.net@SUSANONE> Message-ID: <1918237935.20040419111101@cactus.dk> Hi Susan Your method looks longwinded but not weird. If it works fast and well I would leave it, though I'm sure another method could be found where you adjust the grouping in the report directly. /gustav > Well, it's clunky -- > 1.) User selects the first day of the week from a list of Sunday through > Saturday. > 2.) User clicks a command button that opens the report and sends the above > selected value via the OpenArgs argument. > 3.) The report is based on a query that calls a function that uses the value > selected in #1 to return a weekday value for each date. > 4.) The report's grouping is first set to year. The second level groups on > the weekday value returned by #3. And, a third sorting level simply sorts > the date values so it all comes out in the wash. > 5.) The group header contains a value that uses the openargs value in a > DatePart expression to return the first day of the week for each group. > You can use the report without the form and it will default to a > firstdayoftheweek value of 1 -- to avoid errors and to make it easier to use > the report without going through the form -- that way you could set the > default to anything and the user could just open the report. > Seems like it ought to be easier than that though -- just too much going on. > #3's the one I don't really like. Seems like I ought to be able to get that > weekday number in the report, and although I can -- I can't sort by it. > Someone mentioned yesterday that you could group on a calculation, but I've > not figured that one out yet. I tried setting it using the GroupLevel and > GroupOn properties, but never got it to work -- not saying it won't, just I > wasn't successful. I didn't spend much time on it though. My understanding > of the GroupOn property is that it needs to refer to a specific integer > value that represents the built-in levels (Month, Year, Quarter, and so on). > I never could get it to accept a DatePart expression. > Susan H. > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Sunday, April 18, 2004 1:00 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] custom sorts/groups in a report > Hi Susan >> I'm still not happy with the solution -- there's got to be an easier >> way. :) > Maybe. What solution did you settle on? > /gustav From accessd667 at yahoo.com Mon Apr 19 04:34:38 2004 From: accessd667 at yahoo.com (S D) Date: Mon, 19 Apr 2004 02:34:38 -0700 (PDT) Subject: [AccessD] Error 3265. Item not found in this collection?!!? In-Reply-To: <20040419084405.36072.qmail@web61105.mail.yahoo.com> Message-ID: <20040419093438.7994.qmail@web61102.mail.yahoo.com> Hi group, I found the freaking error. This app is sooooo buggy! There was a reference (not displayed in the code below) to a field called Net_op_EAN...the CORRECT field name is NetOp_Ean. Question: "Has this functionality EVER worked before?" (this is a standard question for this app :-( User response: "Yes, we use this functionality on a daily basis!" Yeah right: Tables are empty, log is empty and output directory is empty. Grrrr. Anyway its job that pays the bills. Sander S D wrote: Hi group, a user reported an error. The error message displayed the following info: Source: DAO.Fields Number: 3265 Description: Item not found in this collection Call Stack: Switchdatabase.Message_Check_GAS.Check1015 Switchdatabase.Form_frm_GAS_GENERATE.cmdGenerate_Click The line that causes the error is (see code below for details): rv = MsgBox("Duplicate value!! Delete original record?" & vbCr _ , vbYesNo, "Answer question") WHY does this occur? The user is using Win NT. The error does NOT occur on Win2000. We never had this problem before, not on NT and not on Win2000. Please advise! TIA Sander This is the code that caused the problem: Public Function Check_1015(msgtype As String) As String Dim Status As String Dim rs, rsb As Recordset Dim db As Database Dim teller, i As Long Dim rv As String On Error GoTo Check_1015_Error Status = "Ok" If msgtype = "I" Then ... ... Set rsb = db.OpenRecordset("Select * from V4_GAS_Bronbestand_Verhuizingen where connect_EAN = '" & rs!Connect_EAN & "'", dbReadOnly) If rsb.EOF = False Then rv = MsgBox("Duplicate value!! Delete original record?" & vbCr _ , vbYesNo, "Answer question") .... --------------------------------- Do you Yahoo!? Yahoo! Photos: High-quality 4x6 digital prints for 25? -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Yahoo! Photos: High-quality 4x6 digital prints for 25? From d.dick at uws.edu.au Sun Apr 18 23:53:33 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Mon, 19 Apr 2004 14:53:33 +1000 Subject: [AccessD] Calendar Controls -- just for discussion References: <20040418154437.GAQR1779.imf21aec.mail.bellsouth.net@SUSANONE> Message-ID: <00c001c42608$f7e59a70$0b669a89@DDICK> I give 'em both. Both straight data entry and a calendar They can do data entry straight into the control or double click to get a VBA only calendar. (Won't touch the OCX ones anymore) I also have a small popup that provides some of the basic date ranges IE 1st or 2nd or 3rd etc quarter of current or last year All Year, all last year. This month, last month, Last week this week, Next week, next month, today etc. All available with checkboxes. Click a check and the dates are determined and results put into txtStartDate and txtEndDate controls Works a treat HTH Darren ----- Original Message ----- From: "Susan Harkins" To: "'Access Developers discussion and problem solving'" Sent: Monday, April 19, 2004 1:44 AM Subject: [AccessD] Calendar Controls -- just for discussion > I'm writing about the ODE Calendar Control and I'm curious how many of you > use Calendar controls in your apps. > > I've had people complain about them -- they'd actually enter the dates > themselves because they find the break in their data entry routines annoying > -- from a data integrity point of view I can see the value of the controls > -- but how do you convince people to use them? > > Susan H. > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From rl_stewart at highstream.net Mon Apr 19 08:20:00 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Mon, 19 Apr 2004 08:20:00 -0500 Subject: [AccessD] Re: Changing the table in a query so I can loop through thequery In-Reply-To: <200404181700.i3IH0MB27564@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040419081850.02b22e48@pop3.highstream.net> Susan, If you have 71 identical tables, you have a design problem. Why do you need 71 tables with the same information? Robert At 12:00 PM 4/18/2004 -0500, you wrote: >Date: Sat, 17 Apr 2004 16:59:29 -0400 >From: "Susan Harkins" >Subject: RE: [AccessD] Changing the table in a query so I can loop > through thequery >To: "'Access Developers discussion and problem solving'" > >Message-ID: > <20040417205929.PLEB1773.imf19aec.mail.bellsouth.net at SUSANONE> >Content-Type: text/plain; charset="US-ASCII" > >I'm sorry, not an UPDATE, but a SQL INSERT INTO > >Susan H. > >I have an append query that can work for 71 tables. I want to create a for >next loop function that will substitute the table names (they are numbers) >each time it loops. Can someone help me? I do not quite have the query def >thing down and I think I need to use it here. Each table has the same >fields. From dwaters at usinternet.com Mon Apr 19 08:31:36 2004 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 19 Apr 2004 08:31:36 -0500 Subject: [AccessD] About Manuals for your databases X posted In-Reply-To: <8653173.1082270888748.JavaMail.root@sniper4.usinternet.com> Message-ID: <001601c42612$a3831480$de1811d8@danwaters> I write a manual for every process module. Managers want them available, and I want to be able to refer to the manual instead of being told that they can't figure it out. I write a Word document that contains all the detail a user would need. The module contains a Manual hyperlink button so it can be pulled up at any time. The manuals are typically 10 - 25 pages long. I also use the manual as a QC tool for myself. As I write it, I double check the system to be sure it does just what the manual says. Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Sunday, April 18, 2004 1:44 AM To: 'ACCESS-L'; AccessD Subject: [AccessD] About Manuals for your databases X posted How many of you right them? Do you right users and developers manuals that explain your hows and whys? In my forms, I do things like make non-visible fields red and bold just so they are easier to see if they are buried under other controls. Just wondering JOE HECHT LOS ANGELES CA -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Mon Apr 19 08:45:57 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Mon, 19 Apr 2004 09:45:57 -0400 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <1918237935.20040419111101@cactus.dk> Message-ID: <20040419134556.DMSZ1832.imf22aec.mail.bellsouth.net@SUSANONE> That's what I'd rather do, simply because it leaves fewer holes. Susan H. Hi Susan Your method looks longwinded but not weird. If it works fast and well I would leave it, though I'm sure another method could be found where you adjust the grouping in the report directly. /gustav > Well, it's clunky -- > 1.) User selects the first day of the week from a list of Sunday > through Saturday. > 2.) User clicks a command button that opens the report and sends the > above selected value via the OpenArgs argument. > 3.) The report is based on a query that calls a function that uses the > value selected in #1 to return a weekday value for each date. > 4.) The report's grouping is first set to year. The second level > groups on the weekday value returned by #3. And, a third sorting level > simply sorts the date values so it all comes out in the wash. > 5.) The group header contains a value that uses the openargs value in > a DatePart expression to return the first day of the week for each group. > You can use the report without the form and it will default to a > firstdayoftheweek value of 1 -- to avoid errors and to make it easier > to use the report without going through the form -- that way you could > set the default to anything and the user could just open the report. > Seems like it ought to be easier than that though -- just too much going on. > #3's the one I don't really like. Seems like I ought to be able to get > that weekday number in the report, and although I can -- I can't sort by it. > Someone mentioned yesterday that you could group on a calculation, but > I've not figured that one out yet. I tried setting it using the > GroupLevel and GroupOn properties, but never got it to work -- not > saying it won't, just I wasn't successful. I didn't spend much time on > it though. My understanding of the GroupOn property is that it needs > to refer to a specific integer value that represents the built-in levels (Month, Year, Quarter, and so on). > I never could get it to accept a DatePart expression. > Susan H. > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav > Brock > Sent: Sunday, April 18, 2004 1:00 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] custom sorts/groups in a report > Hi Susan >> I'm still not happy with the solution -- there's got to be an easier >> way. :) > Maybe. What solution did you settle on? > /gustav -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Mon Apr 19 09:04:56 2004 From: gustav at cactus.dk (Gustav Brock) Date: Mon, 19 Apr 2004 16:04:56 +0200 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <20040419134556.DMSZ1832.imf22aec.mail.bellsouth.net@SUSANONE> References: <20040419134556.DMSZ1832.imf22aec.mail.bellsouth.net@SUSANONE> Message-ID: <12825873634.20040419160456@cactus.dk> Hi Susan Then, in the report, can't you sort and group by =Weekday(YourDate, [YourSelectedFirstWeekday]) /gustav > That's what I'd rather do, simply because it leaves fewer holes. > Susan H. > Hi Susan > Your method looks longwinded but not weird. If it works fast and well I > would leave it, though I'm sure another method could be found where you > adjust the grouping in the report directly. From DWUTKA at marlow.com Mon Apr 19 09:42:19 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 19 Apr 2004 09:42:19 -0500 Subject: [AccessD] Sorting and restricting ComboBox on ListBox content s Message-ID: <2F8793082E00D4119A1700B0D0216BF802227ADF@main2.marlow.com> Did you try 'First'? Again, it is going to be dependant on how Access actually 'sees' the data. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Hewson Sent: Friday, April 16, 2004 7:12 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Sorting and restricting ComboBox on ListBox contents Thanks, Drew and Gustav for responding. I tried Max, but sometimes the ID I need is in the middle of the IDs. I didn't think about using Top, I'll try that. thanks again. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock Sent: Friday, April 16, 2004 4:42 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Sorting and restricting ComboBox on ListBox contents Hi Jim > I have a list box with over 130 items all rows are distinct but a few columns are duplicates. The ListBox is sorted on two text fields which puts the ID number out of sequence. The ComboBox sorts > and "Groups By" duplicate columns. What I want to do is use the ComboBox to jump to the first instance of one of the duplicate columns. > e.g. > ID CourseName City > 135 CCP EC > 90 DIS EC > 87 DIS MP > 18 DOC CD > 17 DOC SR > 55 DSC M AL > 57 DSC M EC > 43 DSC M MP > 28 DSC M SF > 3 DSC M SR > What I want is: > 135 CCP EC > 90 DIS EC > 18 DOC CD > 55 DSC M AL > 3 DSC M SR > What I get is: > 135 CCP EC > 87 DIS MP > 17 DOC SR > 3 DSC M SR > What needs to be done to what the desired results? As Drew notes, you'll have to pick the sorted values for ID and City for each CourseName. Two subqueries can be used for this: SELECT (SELECT TOP 1 ID FROM tblCourses AS aliC WHERE aliC.CourseName = tblCourses.CourseName ORDER BY City, ID DESC;) AS TopID, CourseName, (SELECT TOP 1 City FROM tblCourses AS aliC WHERE aliC.CourseName = tblCourses.CourseName ORDER BY City, ID DESC;) AS TopCity FROM tblCourses GROUP BY CourseName; Have fun! /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 DWUTKA at marlow.com Mon Apr 19 09:47:47 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 19 Apr 2004 09:47:47 -0500 Subject: [AccessD] Calendar Controls -- just for discussion Message-ID: <2F8793082E00D4119A1700B0D0216BF802227AE0@main2.marlow.com> You're quite welcome. As soon as life settles down, I'll finish up the new version. Which is keyboard friendly too! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey Sent: Sunday, April 18, 2004 5:01 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Calendar Controls -- just for discussion > I use a modified version of Drew's old mini-calendar which is all VBA, dead reliable, and very fast. Ditto (and thanks to Drew) -- 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: 18 April 2004 17:42 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Calendar Controls -- just for discussion > > > ...first ...I don't use the ODE Calendar Control because of a > long history of versioning problems ...even when you wrap it > in a class you're app is still vulnerable ...besides it being > slow ...I use a modified version of Drew's old mini-calendar > which is all VBA, dead reliable, and very fast. > > ...second (this has been discussed here recently but under > another thread > topic) ...I much prefer data integrity over speed but its not > necessary to sacrifice one for the other ...I always force > user date entry from a pop-up calendar ...the calendar > pops-up at the bottom right of the text box with the current > date defaulted ...if the current date is what is required > ...a dblclick gets the date entered and tabs to the next > control ...if not, the cal responds to either mouse (slow) or > keyboard (fast) for date selection. > > ...purists will try and tell you that such an approach slows > keyboarders down and they won't accept it ...I disagree > ...once the keyboarders get used to the keyboard strokes that > control the cal it is in most cases just as fast as them > entering it directly ...BUT ...big one ...the forced calendar > usage eliminates most date errors from users who enter/read > dates differently ...and the difference between error/dirty > data correction time and getting it right the first time > weighs heavily in favor of using a cal control over straight > user date entry. > > William Hindman > "Always code as if the person who is maintaining or testing > your code is a violent psychopath who knows where you live." > William Silverstein > > > ----- Original Message ----- > From: "Susan Harkins" > To: "'Access Developers discussion and problem solving'" > > Sent: Sunday, April 18, 2004 11:44 AM > Subject: [AccessD] Calendar Controls -- just for discussion > > > > I'm writing about the ODE Calendar Control and I'm curious > how many of > > you use Calendar controls in your apps. > > > > I've had people complain about them -- they'd actually > enter the dates > > themselves because they find the break in their data entry routines > annoying > > -- from a data integrity point of view I can see the value of the > > controls > > -- but how do you convince people to use them? > > > > 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 > > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Apr 19 10:50:40 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 19 Apr 2004 08:50:40 -0700 Subject: [AccessD] About Manuals for your databases X posted Message-ID: I do NOT write developer manuals, although I do create user help files. Any developer notes are in the comments in code, but those are for me, not for other developers ... Unless I step in front of a bus. Charlotte Foust -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Saturday, April 17, 2004 10:44 PM To: 'ACCESS-L'; AccessD Subject: [AccessD] About Manuals for your databases X posted How many of you right them? Do you right users and developers manuals that explain your hows and whys? In my forms, I do things like make non-visible fields red and bold just so they are easier to see if they are buried under other controls. Just wondering JOE HECHT LOS ANGELES CA -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Patricia.O'Connor at dfa.state.ny.us Mon Apr 19 11:28:21 2004 From: Patricia.O'Connor at dfa.state.ny.us (O'Connor, Patricia ) Date: Mon, 19 Apr 2004 12:28:21 -0400 Subject: [AccessD] jpg Screen shot Message-ID: Rocky, We use printkey 2000 (full). It allows us to print the entire screen, the active window, crop, cut, then copy/paste stuff into word documents, powerpoint, emails, etc. Patti > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Rocky Smolin - Beach Access Software > Sent: Thursday, April 15, 2004 04:31 PM > To: AccessD at databaseadvisors.com > Subject: [AccessD] jpg Screen shot > > Dear List: > > A magazine wants a screen shot from my software and they > would like it to be 300dpi. > > What's the best way to get that off the screen and into a jpg? > > MTIA, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From ssharkins at bellsouth.net Mon Apr 19 12:17:12 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Mon, 19 Apr 2004 13:17:12 -0400 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <12825873634.20040419160456@cactus.dk> Message-ID: <20040419171712.BQCJ1779.imf21aec.mail.bellsouth.net@SUSANONE> Gustav, I've not been able to sort by a calculated control -- wait... I think I've been doing it wrong -- duh... I'm SUCH a user... ;) If I'm right, I'll let ya know. :) Susan H. Hi Susan Then, in the report, can't you sort and group by =Weekday(YourDate, [YourSelectedFirstWeekday]) /gustav > That's what I'd rather do, simply because it leaves fewer holes. > Susan H. > Hi Susan > Your method looks longwinded but not weird. If it works fast and well > I would leave it, though I'm sure another method could be found where > you adjust the grouping in the report directly. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From KIsmert at TexasSystems.com Mon Apr 19 12:19:09 2004 From: KIsmert at TexasSystems.com (Ken Ismert) Date: Mon, 19 Apr 2004 12:19:09 -0500 Subject: [AccessD] Re: Changing the table in a query so I can loopthrough thequery In-Reply-To: <5.1.0.14.2.20040419081850.02b22e48@pop3.highstream.net> Message-ID: <005401c42632$6d9702d0$2a3ca8c0@TEXASSYSTEMS.COM> Well, I've been shepherding a db with almost 140 identical tables. Maybe twice the design problem? I inherited it three years ago, and it soon became clear that the cost to redo it 'properly' was too high. Perhaps in another three years the opportunity will present itself. -Ken -----Original Message----- From: Robert L. Stewart [mailto:rl_stewart at highstream.net] Sent: Monday, April 19, 2004 8:20 AM To: accessd at databaseadvisors.com Subject: [AccessD] Re: Changing the table in a query so I can loopthrough thequery Susan, If you have 71 identical tables, you have a design problem. Why do you need 71 tables with the same information? Robert From ssharkins at bellsouth.net Mon Apr 19 12:28:13 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Mon, 19 Apr 2004 13:28:13 -0400 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <20040419171712.BQCJ1779.imf21aec.mail.bellsouth.net@SUSANONE> Message-ID: <20040419172813.BWTB1779.imf21aec.mail.bellsouth.net@SUSANONE> Well, checked again -- unless I'm just missing something, I don't know how to group/sort by a calculated control within the report itself. Susan H. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Monday, April 19, 2004 1:17 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] custom sorts/groups in a report Gustav, I've not been able to sort by a calculated control -- wait... I think I've been doing it wrong -- duh... I'm SUCH a user... ;) If I'm right, I'll let ya know. :) Susan H. Hi Susan Then, in the report, can't you sort and group by =Weekday(YourDate, [YourSelectedFirstWeekday]) /gustav > That's what I'd rather do, simply because it leaves fewer holes. > Susan H. > Hi Susan > Your method looks longwinded but not weird. If it works fast and well > I would leave it, though I'm sure another method could be found where > you adjust the grouping in the report directly. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at bellsouth.net Mon Apr 19 12:46:47 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Mon, 19 Apr 2004 13:46:47 -0400 Subject: [AccessD] custom sorts/groups in a report References: <20040419171712.BQCJ1779.imf21aec.mail.bellsouth.net@SUSANONE> Message-ID: <007001c42636$497dd7d0$6101a8c0@dejpolsys> "I'm SUCH a user" Susan ...LOL!!! ...great line!!! William Hindman "Always code as if the person who is maintaining or testing your code is a violent psychopath who knows where you live." William Silverstein ----- Original Message ----- From: "Susan Harkins" To: "'Access Developers discussion and problem solving'" Sent: Monday, April 19, 2004 1:17 PM Subject: RE: [AccessD] custom sorts/groups in a report > Gustav, I've not been able to sort by a calculated control -- wait... I > think I've been doing it wrong -- duh... I'm SUCH a user... ;) > > If I'm right, I'll let ya know. :) > > Susan H. > > Hi Susan > > Then, in the report, can't you sort and group by > > =Weekday(YourDate, [YourSelectedFirstWeekday]) > > /gustav > > > > That's what I'd rather do, simply because it leaves fewer holes. > > > Susan H. > > > Hi Susan > > > Your method looks longwinded but not weird. If it works fast and well > > I would leave it, though I'm sure another method could be found where > > you adjust the grouping in the report directly. > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Apr 19 13:26:58 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 19 Apr 2004 11:26:58 -0700 Subject: [AccessD] custom sorts/groups in a report Message-ID: Susan, You sort/group on a calculated expression by entering that expression in the grouping and sorting dialog Charlotte Foust -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Monday, April 19, 2004 9:28 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] custom sorts/groups in a report Well, checked again -- unless I'm just missing something, I don't know how to group/sort by a calculated control within the report itself. Susan H. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Monday, April 19, 2004 1:17 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] custom sorts/groups in a report Gustav, I've not been able to sort by a calculated control -- wait... I think I've been doing it wrong -- duh... I'm SUCH a user... ;) If I'm right, I'll let ya know. :) Susan H. Hi Susan Then, in the report, can't you sort and group by =Weekday(YourDate, [YourSelectedFirstWeekday]) /gustav > That's what I'd rather do, simply because it leaves fewer holes. > Susan H. > Hi Susan > Your method looks longwinded but not weird. If it works fast and well > I would leave it, though I'm sure another method could be found where > you adjust the grouping in the report directly. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Mon Apr 19 14:20:38 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Mon, 19 Apr 2004 15:20:38 -0400 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: Message-ID: <20040419192038.LOVX1778.imf18aec.mail.bellsouth.net@SUSANONE> But I've tried and it won't take it. The OpenArgs argument passes the value I use in all of the date functions. If I refer to is as a variable =DatePart("ww",field,int) I get a parameter prompt asking for int. I even tried setting a text control to the openargs value and referring to that =Date("ww", field, txt) Either way, the sorting and grouping dialog doesn't like it and shows a parameter prompt asking for txt. Everything I've read says the sorting/grouping needs to refer to a field. I was trying to avoid having to pass the firstdayoftheweek to the query itself, but I guess that's an option. I guess I could pass the value to the underlying query and run the week number calculation in the query, instead of in the report. Susan H. Susan, You sort/group on a calculated expression by entering that expression in the grouping and sorting dialog Charlotte Foust -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Monday, April 19, 2004 9:28 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] custom sorts/groups in a report Well, checked again -- unless I'm just missing something, I don't know how to group/sort by a calculated control within the report itself. Susan H. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Monday, April 19, 2004 1:17 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] custom sorts/groups in a report Gustav, I've not been able to sort by a calculated control -- wait... I think I've been doing it wrong -- duh... I'm SUCH a user... ;) If I'm right, I'll let ya know. :) Susan H. Hi Susan Then, in the report, can't you sort and group by =Weekday(YourDate, [YourSelectedFirstWeekday]) /gustav > That's what I'd rather do, simply because it leaves fewer holes. > Susan H. > Hi Susan > Your method looks longwinded but not weird. If it works fast and well > I would leave it, though I'm sure another method could be found where > you adjust the grouping in the report directly. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Apr 19 14:43:53 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 19 Apr 2004 12:43:53 -0700 Subject: [AccessD] custom sorts/groups in a report Message-ID: You can only group and sort on a field or an expression involving a field, and no, you can't use variables. Had you mentioned the variable before? Why not just create a "week" field in the query and group and sort on that calculated field. Then you could use your variable to create a filter for the particular week in question. Charlotte Foust -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Monday, April 19, 2004 11:21 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] custom sorts/groups in a report But I've tried and it won't take it. The OpenArgs argument passes the value I use in all of the date functions. If I refer to is as a variable =DatePart("ww",field,int) I get a parameter prompt asking for int. I even tried setting a text control to the openargs value and referring to that =Date("ww", field, txt) Either way, the sorting and grouping dialog doesn't like it and shows a parameter prompt asking for txt. Everything I've read says the sorting/grouping needs to refer to a field. I was trying to avoid having to pass the firstdayoftheweek to the query itself, but I guess that's an option. I guess I could pass the value to the underlying query and run the week number calculation in the query, instead of in the report. Susan H. Susan, You sort/group on a calculated expression by entering that expression in the grouping and sorting dialog Charlotte Foust -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Monday, April 19, 2004 9:28 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] custom sorts/groups in a report Well, checked again -- unless I'm just missing something, I don't know how to group/sort by a calculated control within the report itself. Susan H. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Monday, April 19, 2004 1:17 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] custom sorts/groups in a report Gustav, I've not been able to sort by a calculated control -- wait... I think I've been doing it wrong -- duh... I'm SUCH a user... ;) If I'm right, I'll let ya know. :) Susan H. Hi Susan Then, in the report, can't you sort and group by =Weekday(YourDate, [YourSelectedFirstWeekday]) /gustav > That's what I'd rather do, simply because it leaves fewer holes. > Susan H. > Hi Susan > Your method looks longwinded but not weird. If it works fast and well > I would leave it, though I'm sure another method could be found where > you adjust the grouping in the report directly. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Mon Apr 19 14:52:29 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Mon, 19 Apr 2004 15:52:29 -0400 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: Message-ID: <20040419195228.FRTV1779.imf21aec.mail.bellsouth.net@SUSANONE> You can only group and sort on a field or an expression involving a field, and no, you can't use variables. Had you mentioned the variable before? Why not just create a "week" field in the query and group and sort on that calculated field. Then you could use your variable to create a filter for the particular week in question. ============I'm passing the firstdayoftheweek value from a form to the report -- the report's based on a query. So that's the quandry. That's what I mentioned in my last message -- the only way I can see around it is to pass the value to the query and run the expressions in the query first. I'm not sure I know how to do that really -- I have never passed anything to a query before -- just called functions from a query. And in this case, that's what I'm trying to avoid -- calling the function from the query. Susan H. From Susan.Klos at fldoe.org Mon Apr 19 14:39:49 2004 From: Susan.Klos at fldoe.org (Klos, Susan) Date: Mon, 19 Apr 2004 15:39:49 -0400 Subject: [AccessD] RE: AccessD Digest, Vol 14, Issue 31 Message-ID: <01B619CB8F6C8C478EDAC39191AEC51E0410CB@DOESEFPEML02.EUS.FLDOE.INT> Robert, I need 71 identical tables because I am getting the same structure Excel file from 71 districts. The structure is the same but the data is different. I want to be able to loop through the tables and append their records to one table. Susan Klos Senior Database Analyst Evaluation and Reporting Florida Department of Education -----Original Message----- From: accessd-request at databaseadvisors.com [mailto:accessd-request at databaseadvisors.com] Sent: Monday, April 19, 2004 1:00 PM To: accessd at databaseadvisors.com Subject: AccessD Digest, Vol 14, Issue 31 Send AccessD mailing list submissions to accessd at databaseadvisors.com To subscribe or unsubscribe via the World Wide Web, visit http://databaseadvisors.com/mailman/listinfo/accessd or, via email, send a message with subject or body 'help' to accessd-request at databaseadvisors.com You can reach the person managing the list at accessd-owner at databaseadvisors.com When replying, please edit your Subject line so it is more specific than "Re: Contents of AccessD digest..." Today's Topics: 1. Re: custom sorts/groups in a report (Gustav Brock) 2. Re: Calendar Controls -- just for discussion (William Hindman) 3. ODE HElp problem (Susan Harkins) 4. RE: custom sorts/groups in a report (Susan Harkins) 5. A summary of the great Open Source discussion (Jim Lawrence (AccessD)) 6. Re: Calendar Controls -- just for discussion (Rocky Smolin - Beach Access Software) 7. Re: About Manuals for your databases X posted (Rocky Smolin - Beach Access Software) 8. Re: Calendar Controls -- just for discussion (Bryan Carbonnell) 9. Re: Calendar Controls -- just for discussion (Rocky Smolin - Beach Access Software) 10. Re: Calendar Controls -- just for discussion (Bryan Carbonnell) 11. RE: Calendar Controls -- just for discussion (Andy Lacey) 12. error in code (Pedro Janssen) 13. RE: error in code (Susan Harkins) 14. Re: error in code (Bryan Carbonnell) 15. Re: error in code (Stuart McLachlan) 16. RE: About Manuals for your databases X posted (Porter, Mark) 17. Error 3265. Item not found in this collection?!!? (S D) 18. Re: custom sorts/groups in a report (Gustav Brock) 19. Re: Error 3265. Item not found in this collection?!!? (S D) 20. Re: Calendar Controls -- just for discussion (Darren DICK) 21. Re: Changing the table in a query so I can loop through thequery (Robert L. Stewart) 22. RE: About Manuals for your databases X posted (Dan Waters) 23. RE: custom sorts/groups in a report (Susan Harkins) 24. Re: custom sorts/groups in a report (Gustav Brock) 25. RE: Sorting and restricting ComboBox on ListBox content s (DWUTKA at marlow.com) 26. RE: Calendar Controls -- just for discussion (DWUTKA at marlow.com) 27. RE: About Manuals for your databases X posted (Charlotte Foust) 28. RE: jpg Screen shot (O'Connor, Patricia ) ---------------------------------------------------------------------- Message: 1 Date: Sun, 18 Apr 2004 18:59:33 +0200 From: Gustav Brock Subject: Re: [AccessD] custom sorts/groups in a report To: Access Developers discussion and problem solving Message-ID: <1661080363.20040418185933 at cactus.dk> Content-Type: text/plain; charset=us-ascii Hi Susan > I'm still not happy with the solution -- there's got to be an easier way. :) Maybe. What solution did you settle on? /gustav ------------------------------ Message: 2 Date: Sun, 18 Apr 2004 13:11:53 -0400 From: "William Hindman" Subject: Re: [AccessD] Calendar Controls -- just for discussion To: "Access Developers discussion and problem solving" Message-ID: <002301c42568$3ec91ad0$6101a8c0 at dejpolsys> Content-Type: text/plain; charset="iso-8859-1" ...I've not used the native cal for years ...but there was a period of time with A95/97 that MS changed the way the calendar worked between a number of versions and didn't maintain reverse compatibility ...depending upon which version of the control your users had installed your app might or might not work, a very common problem back then with all ActiveX controls (I don't use any 3rd party ActiveX controls for the same reason) ...so I switched to a vba based one and never looked back ...and no, I can't tell you the problems have or have not been resolved ...I'm happy with my calendar ...its been tweaked to work exactly the way I want it to :) William Hindman "Always code as if the person who is maintaining or testing your code is a violent psychopath who knows where you live." William Silverstein ----- Original Message ----- From: "Susan Harkins" To: "'Access Developers discussion and problem solving'" Sent: Sunday, April 18, 2004 12:48 PM Subject: RE: [AccessD] Calendar Controls -- just for discussion > ...first ...I don't use the ODE Calendar Control because of a long history > of versioning problems > > ===========I'm limited -- I write about what they want. :) So, when you > complain of versioning problems, what do you mean? > > Susan H. > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ------------------------------ Message: 3 Date: Sun, 18 Apr 2004 13:41:30 -0400 From: "Susan Harkins" Subject: [AccessD] ODE HElp problem To: "'Access Developers discussion and problem solving'" Message-ID: <20040418174130.YNQF1810.imf18aec.mail.bellsouth.net at SUSANONE> Content-Type: text/plain; charset="us-ascii" I just installed Office XP Developer and the Help files don't work -- the interface is there and the toc is there -- but it isn't connecting and every subject returns a page not found error. I don't even know where to begin to start. Anyone else had this happen? Susan H. ------------------------------ Message: 4 Date: Sun, 18 Apr 2004 13:52:24 -0400 From: "Susan Harkins" Subject: RE: [AccessD] custom sorts/groups in a report To: "'Access Developers discussion and problem solving'" Message-ID: <20040418175224.YQKA1810.imf18aec.mail.bellsouth.net at SUSANONE> Content-Type: text/plain; charset="us-ascii" Well, it's clunky -- 1.) User selects the first day of the week from a list of Sunday through Saturday. 2.) User clicks a command button that opens the report and sends the above selected value via the OpenArgs argument. 3.) The report is based on a query that calls a function that uses the value selected in #1 to return a weekday value for each date. 4.) The report's grouping is first set to year. The second level groups on the weekday value returned by #3. And, a third sorting level simply sorts the date values so it all comes out in the wash. 5.) The group header contains a value that uses the openargs value in a DatePart expression to return the first day of the week for each group. You can use the report without the form and it will default to a firstdayoftheweek value of 1 -- to avoid errors and to make it easier to use the report without going through the form -- that way you could set the default to anything and the user could just open the report. Seems like it ought to be easier than that though -- just too much going on. #3's the one I don't really like. Seems like I ought to be able to get that weekday number in the report, and although I can -- I can't sort by it. Someone mentioned yesterday that you could group on a calculation, but I've not figured that one out yet. I tried setting it using the GroupLevel and GroupOn properties, but never got it to work -- not saying it won't, just I wasn't successful. I didn't spend much time on it though. My understanding of the GroupOn property is that it needs to refer to a specific integer value that represents the built-in levels (Month, Year, Quarter, and so on). I never could get it to accept a DatePart expression. Susan H. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Sunday, April 18, 2004 1:00 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] custom sorts/groups in a report Hi Susan > I'm still not happy with the solution -- there's got to be an easier > way. :) Maybe. What solution did you settle on? /gustav -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ------------------------------ Message: 5 Date: Sun, 18 Apr 2004 11:43:07 -0700 From: "Jim Lawrence (AccessD)" Subject: [AccessD] A summary of the great Open Source discussion To: Access Developers discussion and problem solving Message-ID: Content-Type: text/plain; charset=iso-8859-1 Hi All: A couple of weeks ago, there was an Open Source debate encapsulated much of the points of view that have been argued for years. I was so impressed, with the conciseness and objectiveness of the discussion that I decided to put the results in a single page and post the summary to the DBA web site. You can get access to the page through a link off the main page www.databaseadvisors.com. (If your browser saves pages you may have to press reset/reload to view the current layout.) Thank you all for your contributions, Susan Harkin, who started the whole thing, Stuart McLachlan, Bryan Carbonnell, Francisco H Tapia, Bruce Bruen, Bob Hall, Drew Wutka, Marty Connelly and Arthur Fuller. If there is anyone I overlooked or comments I missed, send me a note and you will be appropriately accommodated. Again, thanks to all. Jim ------------------------------ Message: 6 Date: Sun, 18 Apr 2004 12:48:33 -0700 From: "Rocky Smolin - Beach Access Software" Subject: Re: [AccessD] Calendar Controls -- just for discussion To: "Access Developers discussion and problem solving" Message-ID: <00df01c4257e$2230ff80$6601a8c0 at HAL9002> Content-Type: text/plain; charset="iso-8859-1" I use the ADH calendar and trigger it on the double-click of any date text box. So they can still hand enter the date if they want. Users seem to like the convention once they get used to it. Rocky Smolin Beach Access Software http://www.e-z-mrp.com > > ----- Original Message ----- > From: "Susan Harkins" > To: "'Access Developers discussion and problem solving'" > > Sent: Sunday, April 18, 2004 12:48 PM > Subject: RE: [AccessD] Calendar Controls -- just for discussion > > > > ...first ...I don't use the ODE Calendar Control because of a long history > > of versioning problems > > > > ===========I'm limited -- I write about what they want. :) So, when you > > complain of versioning problems, what do you mean? > > > > 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 > ------------------------------ Message: 7 Date: Sun, 18 Apr 2004 12:53:29 -0700 From: "Rocky Smolin - Beach Access Software" Subject: Re: [AccessD] About Manuals for your databases X posted To: "Access Developers discussion and problem solving" Message-ID: <00f701c4257e$d2a17480$6601a8c0 at HAL9002> Content-Type: text/plain; charset="iso-8859-1" Joe: I wrote a manual for the manufacturing system last year. Just about committed suicide but got it done. For a product I think you need one. But for a one-shot app I never write them. I tried to be consistent about the headings so that I could do an automatic table of contents and that worked out pretty well. And a different style for the figures and tables so I could auto-produce a list of figures as well. Haven't done an index, however. I'd be glad to send you a copy off-line if it would be useful to you. HTH Rocky Smolin Beach Access Software http://www.e-z-mrp.com ----- Original Message ----- From: "Joe Hecht" To: "'ACCESS-L'" ; "AccessD" Sent: Saturday, April 17, 2004 11:44 PM Subject: [AccessD] About Manuals for your databases X posted > How many of you right them? > > Do you right users and developers manuals that explain your hows and > whys? > > In my forms, I do things like make non-visible fields red and bold just > so they are easier to see if they are buried under other controls. > > Just wondering > > JOE HECHT > LOS ANGELES CA > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ------------------------------ Message: 8 Date: Sun, 18 Apr 2004 15:57:53 -0400 From: "Bryan Carbonnell" Subject: Re: [AccessD] Calendar Controls -- just for discussion To: Access Developers discussion and problem solving Message-ID: <4082A581.7252.F87E02 at localhost> Content-Type: text/plain; charset=US-ASCII On 18 Apr 2004 at 12:48, Rocky Smolin - Beach Access S wrote: > I use the ADH calendar and trigger it on the double-click of any date > text box. So they can still hand enter the date if they want. Users > seem to like the convention once they get used to it. I use the ADH one too. I actually place a button right beside the textbox so that the calendar can be opened without taking your hands off the keyboard. -- Bryan Carbonnell - carbonnb at sympatico.ca Don't take life too seriously. You won't get out alive. ------------------------------ Message: 9 Date: Sun, 18 Apr 2004 14:11:22 -0700 From: "Rocky Smolin - Beach Access Software" Subject: Re: [AccessD] Calendar Controls -- just for discussion To: "Access Developers discussion and problem solving" Message-ID: <015b01c42589$b3bde390$6601a8c0 at HAL9002> Content-Type: text/plain; charset="iso-8859-1" Bryan: So is that button the next control in the tab sequence after the text box which would contain a date so the user can then TAB to it and press Enter? Rocky ----- Original Message ----- From: "Bryan Carbonnell" To: "Access Developers discussion and problem solving" Sent: Sunday, April 18, 2004 12:57 PM Subject: Re: [AccessD] Calendar Controls -- just for discussion > On 18 Apr 2004 at 12:48, Rocky Smolin - Beach Access S wrote: > > > I use the ADH calendar and trigger it on the double-click of any date > > text box. So they can still hand enter the date if they want. Users > > seem to like the convention once they get used to it. > > I use the ADH one too. I actually place a button right beside the > textbox so that the calendar can be opened without taking your hands > off the keyboard. > > -- > Bryan Carbonnell - carbonnb at sympatico.ca > Don't take life too seriously. You won't get out alive. > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ------------------------------ Message: 10 Date: Sun, 18 Apr 2004 17:27:00 -0400 From: "Bryan Carbonnell" Subject: Re: [AccessD] Calendar Controls -- just for discussion To: Access Developers discussion and problem solving Message-ID: <4082BA64.21526.14A13BF at localhost> Content-Type: text/plain; charset=US-ASCII On 18 Apr 2004 at 14:11, Rocky Smolin - Beach Access S wrote: > So is that button the next control in the tab sequence after the text > box which would contain a date so the user can then TAB to it and > press Enter? I'm not sure if enter works, I always use the space bar to activate the button, but yes that's the concept. The button is the next item in the tab order. The user would press space/enter and the calendar form opens, or they can just tab through the button if they type the date manually. -- Bryan Carbonnell - carbonnb at sympatico.ca Normal people worry me. ------------------------------ Message: 11 Date: Sun, 18 Apr 2004 23:00:43 +0100 From: "Andy Lacey" Subject: RE: [AccessD] Calendar Controls -- just for discussion To: "'Access Developers discussion and problem solving'" Message-ID: <000601c42590$98900470$b274d0d5 at minster33c3r25> Content-Type: text/plain; charset="US-ASCII" > I use a modified version of Drew's old mini-calendar which is all VBA, dead reliable, and very fast. Ditto (and thanks to Drew) -- 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: 18 April 2004 17:42 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Calendar Controls -- just for discussion > > > ...first ...I don't use the ODE Calendar Control because of a > long history of versioning problems ...even when you wrap it > in a class you're app is still vulnerable ...besides it being > slow ...I use a modified version of Drew's old mini-calendar > which is all VBA, dead reliable, and very fast. > > ...second (this has been discussed here recently but under > another thread > topic) ...I much prefer data integrity over speed but its not > necessary to sacrifice one for the other ...I always force > user date entry from a pop-up calendar ...the calendar > pops-up at the bottom right of the text box with the current > date defaulted ...if the current date is what is required > ...a dblclick gets the date entered and tabs to the next > control ...if not, the cal responds to either mouse (slow) or > keyboard (fast) for date selection. > > ...purists will try and tell you that such an approach slows > keyboarders down and they won't accept it ...I disagree > ...once the keyboarders get used to the keyboard strokes that > control the cal it is in most cases just as fast as them > entering it directly ...BUT ...big one ...the forced calendar > usage eliminates most date errors from users who enter/read > dates differently ...and the difference between error/dirty > data correction time and getting it right the first time > weighs heavily in favor of using a cal control over straight > user date entry. > > William Hindman > "Always code as if the person who is maintaining or testing > your code is a violent psychopath who knows where you live." > William Silverstein > > > ----- Original Message ----- > From: "Susan Harkins" > To: "'Access Developers discussion and problem solving'" > > Sent: Sunday, April 18, 2004 11:44 AM > Subject: [AccessD] Calendar Controls -- just for discussion > > > > I'm writing about the ODE Calendar Control and I'm curious > how many of > > you use Calendar controls in your apps. > > > > I've had people complain about them -- they'd actually > enter the dates > > themselves because they find the break in their data entry routines > annoying > > -- from a data integrity point of view I can see the value of the > > controls > > -- but how do you convince people to use them? > > > > 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 > > ------------------------------ Message: 12 Date: Mon, 19 Apr 2004 00:17:55 +0200 From: "Pedro Janssen" Subject: [AccessD] error in code To: Message-ID: <000801c42593$219ec510$f4c581d5 at pedro> Content-Type: text/plain; charset="iso-8859-1" Hello Group, why isn't this part of a code not working for i = 1 To 9 If "chb" & i & "c31") = True Then .Item("Code" & i).Value = "** geen code" End If Next i the error is: Error 13, Description: Type Mismatch TIA Pedro Janssen ------------------------------ Message: 13 Date: Sun, 18 Apr 2004 18:41:41 -0400 From: "Susan Harkins" Subject: RE: [AccessD] error in code To: "'Access Developers discussion and problem solving'" Message-ID: <20040418224141.TSEN1714.imf16aec.mail.bellsouth.net at SUSANONE> Content-Type: text/plain; charset="US-ASCII" for i = 1 To 9 If "chb" & i & "c31") = True Then Your condition is never going to equal true -- but rather a cancatenated string. Although, I think the code's missing soemthing -- you've got a ) that doesn't make sense in its position, but I suspect that's just a typo and probably isn't your actual error is it? Susan H. ------------------------------ Message: 14 Date: Sun, 18 Apr 2004 18:46:46 -0400 From: "Bryan Carbonnell" Subject: Re: [AccessD] error in code To: Access Developers discussion and problem solving Message-ID: <4082CD16.31909.1931CA1 at localhost> Content-Type: text/plain; charset=US-ASCII On 19 Apr 2004 at 0:17, Pedro Janssen wrote: > why isn't this part of a code not working > > for i = 1 To 9 > If "chb" & i & "c31") = True Then > .Item("Code" & i).Value = "** geen code" > End If > Next i Pedro, I am assuming that chb* are checkboxes. If so, try: If me.controls("chb" & i & "c31") = True Then You also have a closing ) on the ofiginal If Then line. -- Bryan Carbonnell - carbonnb at sympatico.ca I am a nobody, and nobody is perfect; therefore, I am perfect. ------------------------------ Message: 15 Date: Mon, 19 Apr 2004 09:52:42 +1000 From: "Stuart McLachlan" Subject: Re: [AccessD] error in code To: Access Developers discussion and problem solving Message-ID: <4083A16A.23848.32CE49 at localhost> Content-Type: text/plain; charset=US-ASCII On 19 Apr 2004 at 0:17, Pedro Janssen wrote: > Hello Group, > > why isn't this part of a code not working > > for i = 1 To 9 > If "chb" & i & "c31") = True Then > .Item("Code" & i).Value = "** geen code" > End If > Next i > > the error is: Error 13, Description: Type Mismatch > Apart from the problems mentioned by others (the missing "(", the missing "me.controls" or "." before "chb1"), this will result in spaces in your control names ie "chb 1c31" to "chb 9c31" and "Code 1" to "Code 9" UNless you do have spaces in the control names, you need to use Format(i) or similar to get rid of the leading space. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. ------------------------------ Message: 16 Date: Sun, 18 Apr 2004 15:42:33 -0800 From: "Porter, Mark" Subject: RE: [AccessD] About Manuals for your databases X posted To: "Access Developers discussion and problem solving" Message-ID: Content-Type: text/plain; charset="iso-8859-1" I charge the same hourly rate for documentation as I do for coding. Then I strongly suggest that they produce their own. I've never been asked to produce documentation (user docs) yet. Mark -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Saturday, April 17, 2004 10:44 PM To: 'ACCESS-L'; AccessD Subject: [AccessD] About Manuals for your databases X posted How many of you right them? Do you right users and developers manuals that explain your hows and whys? In my forms, I do things like make non-visible fields red and bold just so they are easier to see if they are buried under other controls. Just wondering JOE HECHT LOS ANGELES CA -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com **************************************************************************** ******* 18/4/2004 This transmittal may contain confidential information intended solely for the addressee. If you are not the intended recipient, you are hereby notified that you have received this transmittal in error; any review, dissemination, distribution or copying of this transmittal is strictly prohibited. If you have received this communication in error, please notify us immediately by reply or by telephone (collect at 907-564-1000) and ask to speak with the message sender. In addition, please immediately delete this message and all attachments. Thank you. ACS ------------------------------ Message: 17 Date: Mon, 19 Apr 2004 01:44:05 -0700 (PDT) From: S D Subject: [AccessD] Error 3265. Item not found in this collection?!!? To: accessd Message-ID: <20040419084405.36072.qmail at web61105.mail.yahoo.com> Content-Type: text/plain; charset=us-ascii Hi group, a user reported an error. The error message displayed the following info: Source: DAO.Fields Number: 3265 Description: Item not found in this collection Call Stack: Switchdatabase.Message_Check_GAS.Check1015 Switchdatabase.Form_frm_GAS_GENERATE.cmdGenerate_Click The line that causes the error is (see code below for details): rv = MsgBox("Duplicate value!! Delete original record?" & vbCr _ , vbYesNo, "Answer question") WHY does this occur? The user is using Win NT. The error does NOT occur on Win2000. We never had this problem before, not on NT and not on Win2000. Please advise! TIA Sander This is the code that caused the problem: Public Function Check_1015(msgtype As String) As String Dim Status As String Dim rs, rsb As Recordset Dim db As Database Dim teller, i As Long Dim rv As String On Error GoTo Check_1015_Error Status = "Ok" If msgtype = "I" Then ... ... Set rsb = db.OpenRecordset("Select * from V4_GAS_Bronbestand_Verhuizingen where connect_EAN = '" & rs!Connect_EAN & "'", dbReadOnly) If rsb.EOF = False Then rv = MsgBox("Duplicate value!! Delete original record?" & vbCr _ , vbYesNo, "Answer question") .... --------------------------------- Do you Yahoo!? Yahoo! Photos: High-quality 4x6 digital prints for 25? ------------------------------ Message: 18 Date: Mon, 19 Apr 2004 11:11:01 +0200 From: Gustav Brock Subject: Re: [AccessD] custom sorts/groups in a report To: Access Developers discussion and problem solving Message-ID: <1918237935.20040419111101 at cactus.dk> Content-Type: text/plain; charset=us-ascii Hi Susan Your method looks longwinded but not weird. If it works fast and well I would leave it, though I'm sure another method could be found where you adjust the grouping in the report directly. /gustav > Well, it's clunky -- > 1.) User selects the first day of the week from a list of Sunday through > Saturday. > 2.) User clicks a command button that opens the report and sends the above > selected value via the OpenArgs argument. > 3.) The report is based on a query that calls a function that uses the value > selected in #1 to return a weekday value for each date. > 4.) The report's grouping is first set to year. The second level groups on > the weekday value returned by #3. And, a third sorting level simply sorts > the date values so it all comes out in the wash. > 5.) The group header contains a value that uses the openargs value in a > DatePart expression to return the first day of the week for each group. > You can use the report without the form and it will default to a > firstdayoftheweek value of 1 -- to avoid errors and to make it easier to use > the report without going through the form -- that way you could set the > default to anything and the user could just open the report. > Seems like it ought to be easier than that though -- just too much going on. > #3's the one I don't really like. Seems like I ought to be able to get that > weekday number in the report, and although I can -- I can't sort by it. > Someone mentioned yesterday that you could group on a calculation, but I've > not figured that one out yet. I tried setting it using the GroupLevel and > GroupOn properties, but never got it to work -- not saying it won't, just I > wasn't successful. I didn't spend much time on it though. My understanding > of the GroupOn property is that it needs to refer to a specific integer > value that represents the built-in levels (Month, Year, Quarter, and so on). > I never could get it to accept a DatePart expression. > Susan H. > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Sunday, April 18, 2004 1:00 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] custom sorts/groups in a report > Hi Susan >> I'm still not happy with the solution -- there's got to be an easier >> way. :) > Maybe. What solution did you settle on? > /gustav ------------------------------ Message: 19 Date: Mon, 19 Apr 2004 02:34:38 -0700 (PDT) From: S D Subject: Re: [AccessD] Error 3265. Item not found in this collection?!!? To: Access Developers discussion and problem solving Message-ID: <20040419093438.7994.qmail at web61102.mail.yahoo.com> Content-Type: text/plain; charset=us-ascii Hi group, I found the freaking error. This app is sooooo buggy! There was a reference (not displayed in the code below) to a field called Net_op_EAN...the CORRECT field name is NetOp_Ean. Question: "Has this functionality EVER worked before?" (this is a standard question for this app :-( User response: "Yes, we use this functionality on a daily basis!" Yeah right: Tables are empty, log is empty and output directory is empty. Grrrr. Anyway its job that pays the bills. Sander S D wrote: Hi group, a user reported an error. The error message displayed the following info: Source: DAO.Fields Number: 3265 Description: Item not found in this collection Call Stack: Switchdatabase.Message_Check_GAS.Check1015 Switchdatabase.Form_frm_GAS_GENERATE.cmdGenerate_Click The line that causes the error is (see code below for details): rv = MsgBox("Duplicate value!! Delete original record?" & vbCr _ , vbYesNo, "Answer question") WHY does this occur? The user is using Win NT. The error does NOT occur on Win2000. We never had this problem before, not on NT and not on Win2000. Please advise! TIA Sander This is the code that caused the problem: Public Function Check_1015(msgtype As String) As String Dim Status As String Dim rs, rsb As Recordset Dim db As Database Dim teller, i As Long Dim rv As String On Error GoTo Check_1015_Error Status = "Ok" If msgtype = "I" Then ... ... Set rsb = db.OpenRecordset("Select * from V4_GAS_Bronbestand_Verhuizingen where connect_EAN = '" & rs!Connect_EAN & "'", dbReadOnly) If rsb.EOF = False Then rv = MsgBox("Duplicate value!! Delete original record?" & vbCr _ , vbYesNo, "Answer question") .... --------------------------------- Do you Yahoo!? Yahoo! Photos: High-quality 4x6 digital prints for 25? -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Yahoo! Photos: High-quality 4x6 digital prints for 25? ------------------------------ Message: 20 Date: Mon, 19 Apr 2004 14:53:33 +1000 From: "Darren DICK" Subject: Re: [AccessD] Calendar Controls -- just for discussion To: "Access Developers discussion and problem solving" Message-ID: <00c001c42608$f7e59a70$0b669a89 at DDICK> Content-Type: text/plain; charset="iso-8859-1" I give 'em both. Both straight data entry and a calendar They can do data entry straight into the control or double click to get a VBA only calendar. (Won't touch the OCX ones anymore) I also have a small popup that provides some of the basic date ranges IE 1st or 2nd or 3rd etc quarter of current or last year All Year, all last year. This month, last month, Last week this week, Next week, next month, today etc. All available with checkboxes. Click a check and the dates are determined and results put into txtStartDate and txtEndDate controls Works a treat HTH Darren ----- Original Message ----- From: "Susan Harkins" To: "'Access Developers discussion and problem solving'" Sent: Monday, April 19, 2004 1:44 AM Subject: [AccessD] Calendar Controls -- just for discussion > I'm writing about the ODE Calendar Control and I'm curious how many of you > use Calendar controls in your apps. > > I've had people complain about them -- they'd actually enter the dates > themselves because they find the break in their data entry routines annoying > -- from a data integrity point of view I can see the value of the controls > -- but how do you convince people to use them? > > Susan H. > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ------------------------------ Message: 21 Date: Mon, 19 Apr 2004 08:20:00 -0500 From: "Robert L. Stewart" Subject: [AccessD] Re: Changing the table in a query so I can loop through thequery To: accessd at databaseadvisors.com Message-ID: <5.1.0.14.2.20040419081850.02b22e48 at pop3.highstream.net> Content-Type: text/plain; charset="us-ascii"; format=flowed Susan, If you have 71 identical tables, you have a design problem. Why do you need 71 tables with the same information? Robert At 12:00 PM 4/18/2004 -0500, you wrote: >Date: Sat, 17 Apr 2004 16:59:29 -0400 >From: "Susan Harkins" >Subject: RE: [AccessD] Changing the table in a query so I can loop > through thequery >To: "'Access Developers discussion and problem solving'" > >Message-ID: > <20040417205929.PLEB1773.imf19aec.mail.bellsouth.net at SUSANONE> >Content-Type: text/plain; charset="US-ASCII" > >I'm sorry, not an UPDATE, but a SQL INSERT INTO > >Susan H. > >I have an append query that can work for 71 tables. I want to create a for >next loop function that will substitute the table names (they are numbers) >each time it loops. Can someone help me? I do not quite have the query def >thing down and I think I need to use it here. Each table has the same >fields. ------------------------------ Message: 22 Date: Mon, 19 Apr 2004 08:31:36 -0500 From: "Dan Waters" Subject: RE: [AccessD] About Manuals for your databases X posted To: "'Access Developers discussion and problem solving'" Message-ID: <001601c42612$a3831480$de1811d8 at danwaters> Content-Type: text/plain; charset="us-ascii" I write a manual for every process module. Managers want them available, and I want to be able to refer to the manual instead of being told that they can't figure it out. I write a Word document that contains all the detail a user would need. The module contains a Manual hyperlink button so it can be pulled up at any time. The manuals are typically 10 - 25 pages long. I also use the manual as a QC tool for myself. As I write it, I double check the system to be sure it does just what the manual says. Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Sunday, April 18, 2004 1:44 AM To: 'ACCESS-L'; AccessD Subject: [AccessD] About Manuals for your databases X posted How many of you right them? Do you right users and developers manuals that explain your hows and whys? In my forms, I do things like make non-visible fields red and bold just so they are easier to see if they are buried under other controls. Just wondering JOE HECHT LOS ANGELES CA -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ------------------------------ Message: 23 Date: Mon, 19 Apr 2004 09:45:57 -0400 From: "Susan Harkins" Subject: RE: [AccessD] custom sorts/groups in a report To: "'Access Developers discussion and problem solving'" Message-ID: <20040419134556.DMSZ1832.imf22aec.mail.bellsouth.net at SUSANONE> Content-Type: text/plain; charset="US-ASCII" That's what I'd rather do, simply because it leaves fewer holes. Susan H. Hi Susan Your method looks longwinded but not weird. If it works fast and well I would leave it, though I'm sure another method could be found where you adjust the grouping in the report directly. /gustav > Well, it's clunky -- > 1.) User selects the first day of the week from a list of Sunday > through Saturday. > 2.) User clicks a command button that opens the report and sends the > above selected value via the OpenArgs argument. > 3.) The report is based on a query that calls a function that uses the > value selected in #1 to return a weekday value for each date. > 4.) The report's grouping is first set to year. The second level > groups on the weekday value returned by #3. And, a third sorting level > simply sorts the date values so it all comes out in the wash. > 5.) The group header contains a value that uses the openargs value in > a DatePart expression to return the first day of the week for each group. > You can use the report without the form and it will default to a > firstdayoftheweek value of 1 -- to avoid errors and to make it easier > to use the report without going through the form -- that way you could > set the default to anything and the user could just open the report. > Seems like it ought to be easier than that though -- just too much going on. > #3's the one I don't really like. Seems like I ought to be able to get > that weekday number in the report, and although I can -- I can't sort by it. > Someone mentioned yesterday that you could group on a calculation, but > I've not figured that one out yet. I tried setting it using the > GroupLevel and GroupOn properties, but never got it to work -- not > saying it won't, just I wasn't successful. I didn't spend much time on > it though. My understanding of the GroupOn property is that it needs > to refer to a specific integer value that represents the built-in levels (Month, Year, Quarter, and so on). > I never could get it to accept a DatePart expression. > Susan H. > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav > Brock > Sent: Sunday, April 18, 2004 1:00 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] custom sorts/groups in a report > Hi Susan >> I'm still not happy with the solution -- there's got to be an easier >> way. :) > Maybe. What solution did you settle on? > /gustav -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ------------------------------ Message: 24 Date: Mon, 19 Apr 2004 16:04:56 +0200 From: Gustav Brock Subject: Re: [AccessD] custom sorts/groups in a report To: Access Developers discussion and problem solving Message-ID: <12825873634.20040419160456 at cactus.dk> Content-Type: text/plain; charset=us-ascii Hi Susan Then, in the report, can't you sort and group by =Weekday(YourDate, [YourSelectedFirstWeekday]) /gustav > That's what I'd rather do, simply because it leaves fewer holes. > Susan H. > Hi Susan > Your method looks longwinded but not weird. If it works fast and well I > would leave it, though I'm sure another method could be found where you > adjust the grouping in the report directly. ------------------------------ Message: 25 Date: Mon, 19 Apr 2004 09:42:19 -0500 From: DWUTKA at marlow.com Subject: RE: [AccessD] Sorting and restricting ComboBox on ListBox content s To: accessd at databaseadvisors.com Message-ID: <2F8793082E00D4119A1700B0D0216BF802227ADF at main2.marlow.com> Content-Type: text/plain; charset="iso-8859-1" Did you try 'First'? Again, it is going to be dependant on how Access actually 'sees' the data. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Hewson Sent: Friday, April 16, 2004 7:12 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Sorting and restricting ComboBox on ListBox contents Thanks, Drew and Gustav for responding. I tried Max, but sometimes the ID I need is in the middle of the IDs. I didn't think about using Top, I'll try that. thanks again. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock Sent: Friday, April 16, 2004 4:42 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Sorting and restricting ComboBox on ListBox contents Hi Jim > I have a list box with over 130 items all rows are distinct but a few columns are duplicates. The ListBox is sorted on two text fields which puts the ID number out of sequence. The ComboBox sorts > and "Groups By" duplicate columns. What I want to do is use the ComboBox to jump to the first instance of one of the duplicate columns. > e.g. > ID CourseName City > 135 CCP EC > 90 DIS EC > 87 DIS MP > 18 DOC CD > 17 DOC SR > 55 DSC M AL > 57 DSC M EC > 43 DSC M MP > 28 DSC M SF > 3 DSC M SR > What I want is: > 135 CCP EC > 90 DIS EC > 18 DOC CD > 55 DSC M AL > 3 DSC M SR > What I get is: > 135 CCP EC > 87 DIS MP > 17 DOC SR > 3 DSC M SR > What needs to be done to what the desired results? As Drew notes, you'll have to pick the sorted values for ID and City for each CourseName. Two subqueries can be used for this: SELECT (SELECT TOP 1 ID FROM tblCourses AS aliC WHERE aliC.CourseName = tblCourses.CourseName ORDER BY City, ID DESC;) AS TopID, CourseName, (SELECT TOP 1 City FROM tblCourses AS aliC WHERE aliC.CourseName = tblCourses.CourseName ORDER BY City, ID DESC;) AS TopCity FROM tblCourses GROUP BY CourseName; Have fun! /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 ------------------------------ Message: 26 Date: Mon, 19 Apr 2004 09:47:47 -0500 From: DWUTKA at marlow.com Subject: RE: [AccessD] Calendar Controls -- just for discussion To: accessd at databaseadvisors.com Message-ID: <2F8793082E00D4119A1700B0D0216BF802227AE0 at main2.marlow.com> Content-Type: text/plain; charset="iso-8859-1" You're quite welcome. As soon as life settles down, I'll finish up the new version. Which is keyboard friendly too! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey Sent: Sunday, April 18, 2004 5:01 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Calendar Controls -- just for discussion > I use a modified version of Drew's old mini-calendar which is all VBA, dead reliable, and very fast. Ditto (and thanks to Drew) -- 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: 18 April 2004 17:42 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Calendar Controls -- just for discussion > > > ...first ...I don't use the ODE Calendar Control because of a > long history of versioning problems ...even when you wrap it > in a class you're app is still vulnerable ...besides it being > slow ...I use a modified version of Drew's old mini-calendar > which is all VBA, dead reliable, and very fast. > > ...second (this has been discussed here recently but under > another thread > topic) ...I much prefer data integrity over speed but its not > necessary to sacrifice one for the other ...I always force > user date entry from a pop-up calendar ...the calendar > pops-up at the bottom right of the text box with the current > date defaulted ...if the current date is what is required > ...a dblclick gets the date entered and tabs to the next > control ...if not, the cal responds to either mouse (slow) or > keyboard (fast) for date selection. > > ...purists will try and tell you that such an approach slows > keyboarders down and they won't accept it ...I disagree > ...once the keyboarders get used to the keyboard strokes that > control the cal it is in most cases just as fast as them > entering it directly ...BUT ...big one ...the forced calendar > usage eliminates most date errors from users who enter/read > dates differently ...and the difference between error/dirty > data correction time and getting it right the first time > weighs heavily in favor of using a cal control over straight > user date entry. > > William Hindman > "Always code as if the person who is maintaining or testing > your code is a violent psychopath who knows where you live." > William Silverstein > > > ----- Original Message ----- > From: "Susan Harkins" > To: "'Access Developers discussion and problem solving'" > > Sent: Sunday, April 18, 2004 11:44 AM > Subject: [AccessD] Calendar Controls -- just for discussion > > > > I'm writing about the ODE Calendar Control and I'm curious > how many of > > you use Calendar controls in your apps. > > > > I've had people complain about them -- they'd actually > enter the dates > > themselves because they find the break in their data entry routines > annoying > > -- from a data integrity point of view I can see the value of the > > controls > > -- but how do you convince people to use them? > > > > 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 > > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ------------------------------ Message: 27 Date: Mon, 19 Apr 2004 08:50:40 -0700 From: "Charlotte Foust" Subject: RE: [AccessD] About Manuals for your databases X posted To: "Access Developers discussion and problem solving" Message-ID: Content-Type: text/plain; charset="us-ascii" I do NOT write developer manuals, although I do create user help files. Any developer notes are in the comments in code, but those are for me, not for other developers ... Unless I step in front of a bus. Charlotte Foust -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Saturday, April 17, 2004 10:44 PM To: 'ACCESS-L'; AccessD Subject: [AccessD] About Manuals for your databases X posted How many of you right them? Do you right users and developers manuals that explain your hows and whys? In my forms, I do things like make non-visible fields red and bold just so they are easier to see if they are buried under other controls. Just wondering JOE HECHT LOS ANGELES CA -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ------------------------------ Message: 28 Date: Mon, 19 Apr 2004 12:28:21 -0400 From: "O'Connor, Patricia " Subject: RE: [AccessD] jpg Screen shot To: "Access Developers discussion and problem solving" Message-ID: Content-Type: text/plain; charset="US-ASCII" Rocky, We use printkey 2000 (full). It allows us to print the entire screen, the active window, crop, cut, then copy/paste stuff into word documents, powerpoint, emails, etc. Patti > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Rocky Smolin - Beach Access Software > Sent: Thursday, April 15, 2004 04:31 PM > To: AccessD at databaseadvisors.com > Subject: [AccessD] jpg Screen shot > > Dear List: > > A magazine wants a screen shot from my software and they > would like it to be 300dpi. > > What's the best way to get that off the screen and into a jpg? > > MTIA, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > ------------------------------ _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd End of AccessD Digest, Vol 14, Issue 31 *************************************** From Mark.Mitsules at ngc.com Mon Apr 19 15:10:22 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Mon, 19 Apr 2004 16:10:22 -0400 Subject: [AccessD] Report Page Header Message-ID: First, a really stupid question...why is it that Access reports do not have a "Detail Header" section? It seems simple and to the point for a lot of what I do when grouping is not needed. Second, when printing a report, what is the syntax to check if there are no detail records on the page and suppress the Page Header if there are none? Mark From Patricia.O'Connor at dfa.state.ny.us Mon Apr 19 15:30:34 2004 From: Patricia.O'Connor at dfa.state.ny.us (O'Connor, Patricia ) Date: Mon, 19 Apr 2004 16:30:34 -0400 Subject: [AccessD] RE: AccessD Digest, Vol 14, Issue 31 Message-ID: Susan Are you using VB or are you using the import wizard. Do you have the code for getting a table? I do something similar but with text files. What are the name of the files? Patti > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Klos, Susan > Sent: Monday, April 19, 2004 03:40 PM > To: 'accessd at databaseadvisors.com' > Subject: [AccessD] RE: AccessD Digest, Vol 14, Issue 31 > > Robert, I need 71 identical tables because I am getting the > same structure > Excel file from 71 districts. The structure is the same but > the data is > different. I want to be able to loop through the tables and > append their > records to one table. > > Susan Klos > Senior Database Analyst > Evaluation and Reporting > Florida Department of Education > > From cfoust at infostatsystems.com Mon Apr 19 15:29:56 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 19 Apr 2004 13:29:56 -0700 Subject: [AccessD] custom sorts/groups in a report Message-ID: Sorry, Susan, but I just tuned in. I'm not clear on what you're doing so I'm not being much help. I do dynamic reports for a week period and pass the start date to my report then let the report determine what day that is and populate an appropriate series of label captions to match. I base it on a crosstab query, rebuilt for each report run, that uses dates as column headings and uses parameters to filter the dates. I set the SQL for that crosstab query each time I use a form to call the report (no hand tweaking), and I generate an IN list of dates in the specified range to create the column headings. I then use code in the Report_Open event to determine which field to bind to which control in the detail of the report. Is that kind of what you're attempting to do? Charlotte Foust -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Monday, April 19, 2004 11:52 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] custom sorts/groups in a report You can only group and sort on a field or an expression involving a field, and no, you can't use variables. Had you mentioned the variable before? Why not just create a "week" field in the query and group and sort on that calculated field. Then you could use your variable to create a filter for the particular week in question. ============I'm passing the firstdayoftheweek value from a form to the report -- the report's based on a query. So that's the quandry. That's what I mentioned in my last message -- the only way I can see around it is to pass the value to the query and run the expressions in the query first. I'm not sure I know how to do that really -- I have never passed anything to a query before -- just called functions from a query. And in this case, that's what I'm trying to avoid -- calling the function from the query. Susan H. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Mon Apr 19 15:41:16 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Mon, 19 Apr 2004 16:41:16 -0400 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: Message-ID: <20040419204116.NEMD1818.imf25aec.mail.bellsouth.net@SUSANONE> Egads... :) All I want is to group/sort a report based on the week -- but the first day of the week needs to be dynamic. The user chooses the first day of the week and the report sorts/groups accordingly. For instance, if the user chooses Wednesday, each group begins with a Wed and ends with a Tuesday. Right now, the process begins with the simple "pick a day" form, which runs the report -- that's based on a query that calls a function to return the "ww" component for each date in the query, so the report can then group on that value -- in the report that Jack built. Seems like a long way around to go to me. It does work and it isn't horribly slow or anything. It just seems inefficient to me that I can't get all that done in the report or the query without the aid of calling that function. That's where the openargs comes in -- I've tried passing the firstdayoftheweek value to the report and calculating the "ww" components in the report, but I can't get the report to then sort on those "ww" values because of the sorting limitations. I just don't believe that the solution I've come up with is the most efficient, even if it does work. Susan H. Sorry, Susan, but I just tuned in. I'm not clear on what you're doing so I'm not being much help. I do dynamic reports for a week period and pass the start date to my report then let the report determine what day that is and populate an appropriate series of label captions to match. I base it on a crosstab query, rebuilt for each report run, that uses dates as column headings and uses parameters to filter the dates. I set the SQL for that crosstab query each time I use a form to call the report (no hand tweaking), and I generate an IN list of dates in the specified range to create the column headings. I then use code in the Report_Open event to determine which field to bind to which control in the detail of the report. Is that kind of what you're attempting to do? Charlotte Foust -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Monday, April 19, 2004 11:52 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] custom sorts/groups in a report You can only group and sort on a field or an expression involving a field, and no, you can't use variables. Had you mentioned the variable before? Why not just create a "week" field in the query and group and sort on that calculated field. Then you could use your variable to create a filter for the particular week in question. ============I'm passing the firstdayoftheweek value from a form to the report -- the report's based on a query. So that's the quandry. That's what I mentioned in my last message -- the only way I can see around it is to pass the value to the query and run the expressions in the query first. I'm not sure I know how to do that really -- I have never passed anything to a query before -- just called functions from a query. And in this case, that's what I'm trying to avoid -- calling the function from the query. 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 rl_stewart at highstream.net Mon Apr 19 15:52:39 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Mon, 19 Apr 2004 15:52:39 -0500 Subject: [AccessD] Re: Changing the table in a query so I can loopthrough thequery In-Reply-To: <200404192042.i3JKg7B23548@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040419155057.02af21f8@pop3.highstream.net> Ken, You have been in my SIG long enough to know that is a resounding YES, it is a bad design. But, do you actually populate all 140 tables with the same data like she is doing? Robert At 03:42 PM 4/19/2004 -0500, you wrote: >Date: Mon, 19 Apr 2004 12:19:09 -0500 >From: "Ken Ismert" >Subject: RE: [AccessD] Re: Changing the table in a query so I can > loopthrough thequery >To: "'Access Developers discussion and problem solving'" > >Message-ID: <005401c42632$6d9702d0$2a3ca8c0 at TEXASSYSTEMS.COM> >Content-Type: text/plain; charset="us-ascii" > > >Well, I've been shepherding a db with almost 140 identical tables. Maybe >twice the design problem? I inherited it three years ago, and it soon became >clear that the cost to redo it 'properly' was too high. Perhaps in another >three years the opportunity will present itself. > >-Ken From rl_stewart at highstream.net Mon Apr 19 15:56:43 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Mon, 19 Apr 2004 15:56:43 -0500 Subject: [AccessD] Re: Changing the table in a query so I can loopthrough thequery In-Reply-To: <200404192042.i3JKg7B23548@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040419155452.048d1d10@pop3.highstream.net> Susan, From what I read below, you can distinguish which excel file is from which district. Why not just append them to the single table and use the distinguishing factor to pass in the value of the "district" as part of the INSERT SQL statement? Robert At 03:42 PM 4/19/2004 -0500, you wrote: >Date: Mon, 19 Apr 2004 15:39:49 -0400 >From: "Klos, Susan" >Subject: [AccessD] RE: AccessD Digest, Vol 14, Issue 31 >To: "'accessd at databaseadvisors.com'" >Message-ID: > <01B619CB8F6C8C478EDAC39191AEC51E0410CB at DOESEFPEML02.EUS.FLDOE.INT> >Content-Type: text/plain; charset="iso-8859-1" > >Robert, I need 71 identical tables because I am getting the same structure >Excel file from 71 districts. The structure is the same but the data is >different. I want to be able to loop through the tables and append their >records to one table. > >Susan Klos >Senior Database Analyst >Evaluation and Reporting >Florida Department of Education From rl_stewart at highstream.net Mon Apr 19 16:01:02 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Mon, 19 Apr 2004 16:01:02 -0500 Subject: [AccessD] Re: Report Page Header In-Reply-To: <200404192042.i3JKg7B23548@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040419155819.049243e0@pop3.highstream.net> In a band report writer, which Access is, the detail header is in the grouping header just above it. You have to make it visible. There is a event in the report for No data. You would put code in that event to handle what ever you wanted to do there. Robert At 03:42 PM 4/19/2004 -0500, you wrote: >Date: Mon, 19 Apr 2004 16:10:22 -0400 >From: "Mitsules, Mark S. (Newport News)" >Subject: [AccessD] Report Page Header >To: "'[AccessD]'" >Message-ID: >Content-Type: text/plain > >First, a really stupid question...why is it that Access reports do not have >a "Detail Header" section? It seems simple and to the point for a lot of >what I do when grouping is not needed. > > >Second, when printing a report, what is the syntax to check if there are no >detail records on the page and suppress the Page Header if there are none? > > From MPorter at acsalaska.com Mon Apr 19 15:47:10 2004 From: MPorter at acsalaska.com (Porter, Mark) Date: Mon, 19 Apr 2004 12:47:10 -0800 Subject: [AccessD] RE: AccessD Digest, Vol 14, Issue 31 Message-ID: Susan, I have not seen your prior conversation, and have no knowledge of other details on this outside of this post, but if this solution was presented to me I would be very inclined to rethink it. Although you have multiple input files, you only have a single file structure to deal with. I would recommend pulling all files into a single table initially, with an extra field in the table indicating the source or district. This leaves you with one import routine (file name and path as a paramater) and one data structure to deal with. Ask yourself, what happens when they restructure or add districts in the future? Or when you have to alter the data structure for any reason? Your structure quickly becomes a monster requiring exponentially more support. If you have to perform complex data cleansing on the base data before it is appended to the single master table, you can utilize a single staging table for your file load, and a cleansing routine for your append. Mark > -----Original Message----- > From: Klos, Susan [mailto:Susan.Klos at fldoe.org] > Sent: Monday, April 19, 2004 11:40 AM > To: 'accessd at databaseadvisors.com' > Subject: [AccessD] RE: AccessD Digest, Vol 14, Issue 31 > > > Robert, I need 71 identical tables because I am getting the > same structure > Excel file from 71 districts. The structure is the same but > the data is > different. I want to be able to loop through the tables and > append their > records to one table. > > Susan Klos > Senior Database Analyst > Evaluation and Reporting > Florida Department of Education > > *********************************************************************************** 19/4/2004 This transmittal may contain confidential information intended solely for the addressee. If you are not the intended recipient, you are hereby notified that you have received this transmittal in error; any review, dissemination, distribution or copying of this transmittal is strictly prohibited. If you have received this communication in error, please notify us immediately by reply or by telephone (collect at 907-564-1000) and ask to speak with the message sender. In addition, please immediately delete this message and all attachments. Thank you. ACS From bchacc at san.rr.com Mon Apr 19 16:10:41 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Mon, 19 Apr 2004 14:10:41 -0700 Subject: [AccessD] Report Page Header References: Message-ID: <01f901c42652$c5c0fef0$6601a8c0@HAL9002> Mark: Do you mean no data for the whole report? If so you can use the No Data event and issue a DoCmd.CancelEvent command. That will cancel the whole report. Mostly I then have to trap the error 2105 in the calling form. But what condition would give you on some detail records on some pages and not others? Rocky ----- Original Message ----- From: "Mitsules, Mark S. (Newport News)" To: "'[AccessD]'" Sent: Monday, April 19, 2004 1:10 PM Subject: [AccessD] Report Page Header > First, a really stupid question...why is it that Access reports do not have > a "Detail Header" section? It seems simple and to the point for a lot of > what I do when grouping is not needed. > > > Second, when printing a report, what is the syntax to check if there are no > detail records on the page and suppress the Page Header if there are none? > > > > Mark > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Patricia.O'Connor at dfa.state.ny.us Mon Apr 19 16:24:03 2004 From: Patricia.O'Connor at dfa.state.ny.us (O'Connor, Patricia ) Date: Mon, 19 Apr 2004 17:24:03 -0400 Subject: [AccessD] RE: AccessD Digest, Vol 14, Issue 31 Message-ID: SUSAN OOPS - read your post wrong - I have input files from the counties that go into ONE table. I use the county id code to identify where it came from as I insert the the records into the table. You really should only have 1 table if all the data is the same at the end point. I can understand having several input files since ours come in at different times. Patti ----------------------------------------------------------------- Susan Are you using VB or are you using the import wizard. Do you have the code for getting a table? I do something similar but with text files. What are the name of the files? Patti > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Klos, Susan > Sent: Monday, April 19, 2004 03:40 PM > To: 'accessd at databaseadvisors.com' > Subject: [AccessD] RE: AccessD Digest, Vol 14, Issue 31 > > Robert, I need 71 identical tables because I am getting the > same structure > Excel file from 71 districts. The structure is the same but > the data is > different. I want to be able to loop through the tables and > append their > records to one table. > > Susan Klos > Senior Database Analyst > Evaluation and Reporting > Florida Department of Education > > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pedro at plex.nl Mon Apr 19 16:59:19 2004 From: pedro at plex.nl (Pedro Janssen) Date: Mon, 19 Apr 2004 23:59:19 +0200 Subject: [AccessD] error in code References: <4082CD16.31909.1931CA1@localhost> Message-ID: <000501c42659$b1a8c8b0$f7c581d5@pedro> Hello, thanks for those who responded. Me.Controls and getting rid of the spaces did the trick. Pedro Janssen ----- Original Message ----- From: "Bryan Carbonnell" To: "Access Developers discussion and problemsolving" Sent: Monday, April 19, 2004 12:46 AM Subject: Re: [AccessD] error in code > On 19 Apr 2004 at 0:17, Pedro Janssen wrote: > > > why isn't this part of a code not working > > > > for i = 1 To 9 > > If "chb" & i & "c31") = True Then > > .Item("Code" & i).Value = "** geen code" > > End If > > Next i > > Pedro, > > I am assuming that chb* are checkboxes. If so, try: > > If me.controls("chb" & i & "c31") = True Then > > You also have a closing ) on the ofiginal If Then line. > > -- > Bryan Carbonnell - carbonnb at sympatico.ca > I am a nobody, and nobody is perfect; therefore, I am perfect. > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From jwcolby at colbyconsulting.com Mon Apr 19 22:12:18 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Mon, 19 Apr 2004 23:12:18 -0400 Subject: [AccessD] RE: AccessD Digest, Vol 14, Issue 31 In-Reply-To: <01B619CB8F6C8C478EDAC39191AEC51E0410CB@DOESEFPEML02.EUS.FLDOE.INT> Message-ID: Susan, The way that I deal with this is that I COPY the file to a common name, perhaps CountyData.XLS. Then I link that file to the FE. Build my queries to suck the data out. Run them. Then there is just a copy of whatever the next file name is to CountyData.XLS and run the queries over again. You need a means of interpreting some part of the original file name so that you can set the "county field". Do that 71 times and you are done. One table name, one set of queries, one function for pulling the county name into an aliased query field, one routine that copies the file to a common name / location. Is this a manual process? Is there a naming convention in the excel files? If not just throw all of the excel files in a directory, copy each one out to an archive directory, adding the yyyymmdd string to the name, either at the beginning or the end (helps sort the files in date order). Also do the copy to a common location / name. Now write an iterator that finds every file in the directory and copies it to archive / common name - location, deleting the file in the original directory. When no files remain, you are done. In order to do this you must have some identifying string in the file name however, perhaps the county name as the first N characters. That allows the code to build the "missing" field that is the county in the destination table. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Klos, Susan Sent: Monday, April 19, 2004 3:40 PM To: 'accessd at databaseadvisors.com' Subject: [AccessD] RE: AccessD Digest, Vol 14, Issue 31 Robert, I need 71 identical tables because I am getting the same structure Excel file from 71 districts. The structure is the same but the data is different. I want to be able to loop through the tables and append their records to one table. Susan Klos Senior Database Analyst Evaluation and Reporting Florida Department of Education From jmhla at earthlink.net Tue Apr 20 00:09:41 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Mon, 19 Apr 2004 22:09:41 -0700 Subject: [AccessD] cbo after adding data question Message-ID: <000501c42695$b3109ed0$6501a8c0@delllaptop> I have a combo box that pulls up matching records on a form. The data source is a SQL statement not a query. After the record is entered where and how should I write the requry statement to add the record to the combo box? JOE HECHT LOS ANGELES CA From pharryecoenen at btinternet.com Tue Apr 20 02:51:45 2004 From: pharryecoenen at btinternet.com (Harry Coenen) Date: Tue, 20 Apr 2004 08:51:45 +0100 Subject: [AccessD] RE: AccessD Digest, Vol 14, Issue 31 In-Reply-To: Message-ID: Dear Susan My 2 eurocents, after Jonh Colby's two dollars: Assuming the following procedure: For each period: a. dump all files in a standard period directory b. get access to read the directory until there are no files left (probably it is usefull to read all the filenames in a table and use this thable for further processing) For each file in directory c. attach each table to the database d. run the append Next file Next period Following the code for the append '+*define vars dim strInsertTable as string dim strFromTable as string dim strSQL, strSQLinsert, strSQLselect, strSQLfrom, strSQLcriteria as string '-*define vars '+*Initialise vars strFromTable = "tblFromData" strInsertTable = "tblInsertedData" strSQL ="" strSQLinsert = "" strSQLselect = "" strSQLfrom = "" strSQLcriteria = "" '-*Initialise vars 'create query string strSQLinsert = strSQLinsert & " INSERT INTO [" & strInsertTable & "] ( SourceTableName, CustID, CustName ) " strSQLselect = strSQLselect & " SELECT " strSQLselect = strSQLselect & "'" & strFromTable & "' AS FromTable, " strSQLselect = strSQLselect & "[" & strFromTable & "].CustID, " strSQLselect = strSQLselect & "[" & strFromTable & "].CustName " strSQLfrom = strSQLfrom & " FROM " & strFromTable strSQL = strSQLinsert & strSQLselect & strSQLfrom & strSQLcriteria & ";" 'attach string strSQL to a querydef and run it ' Note: I usually use a hidden tmpQuery for this and set its SQL property to ' CurrentDb.QueryDefs("tmpQuery").SQL = strSQL ' CurrentDb.QueryDefs("tmpQuery").Execute ' Or shorter: DoCmd.SetWarnings False 'suppress warnings about action queries DoCmd.RunSQL strSQL DoCmd.SetWarnings True 'switch warning on again Notes: - the barckets [] are included to allow names with spaces and other special characters - the apostrophe between quotes "'" followed by the tablename and closed again with "' should return the tablename between quotes. - As noted by another listmember, you probably have to do some checking on data quality. Personally I would push that to the delivering agents, e.g. by spending some time developing consistency checking in the Excel templates they use for delivery. Regards Harry Coenen >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >John W. Colby >Sent: Tuesday, April 20, 2004 4:12 AM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] RE: AccessD Digest, Vol 14, Issue 31 > > >Susan, > >The way that I deal with this is that I COPY the file to a common name, >perhaps CountyData.XLS. Then I link that file to the FE. >Build my queries >to suck the data out. Run them. Then there is just a copy of >whatever the >next file name is to CountyData.XLS and run the queries over >again. You >need a means of interpreting some part of the original file >name so that you >can set the "county field". Do that 71 times and you are >done. One table >name, one set of queries, one function for pulling the county >name into an >aliased query field, one routine that copies the file to a >common name / >location. > >Is this a manual process? Is there a naming convention in the >excel files? > >If not just throw all of the excel files in a directory, copy >each one out >to an archive directory, adding the yyyymmdd string to the >name, either at >the beginning or the end (helps sort the files in date order). > Also do the >copy to a common location / name. Now write an iterator that >finds every >file in the directory and copies it to archive / common name - >location, >deleting the file in the original directory. When no files >remain, you are >done. In order to do this you must have some identifying >string in the file >name however, perhaps the county name as the first N characters. That >allows the code to build the "missing" field that is the county in the >destination table. > > >John W. Colby >www.ColbyConsulting.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Klos, Susan >Sent: Monday, April 19, 2004 3:40 PM >To: 'accessd at databaseadvisors.com' >Subject: [AccessD] RE: AccessD Digest, Vol 14, Issue 31 > > >Robert, I need 71 identical tables because I am getting the >same structure >Excel file from 71 districts. The structure is the same but >the data is >different. I want to be able to loop through the tables and >append their >records to one table. > >Susan Klos >Senior Database Analyst >Evaluation and Reporting >Florida Department of Education > > > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > From gustav at cactus.dk Tue Apr 20 03:52:09 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 20 Apr 2004 10:52:09 +0200 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: References: Message-ID: <517039742.20040420105209@cactus.dk> Hi Susan Perhaps you On_Open of the report could set the value of a textbox to the value of your chosen FirstDayOfWeek retrieved from your form; then use the value of this textbox as a parameter in the function you use for grouping/sorting in your report. /gustav > Sorry, Susan, but I just tuned in. > I'm not clear on what you're doing so I'm not being much help. I do > dynamic reports for a week period and pass the start date to my report > then let the report determine what day that is and populate an > appropriate series of label captions to match. I base it on a crosstab > query, rebuilt for each report run, that uses dates as column headings > and uses parameters to filter the dates. I set the SQL for that > crosstab query each time I use a form to call the report (no hand > tweaking), and I generate an IN list of dates in the specified range to > create the column headings. I then use code in the Report_Open event to > determine which field to bind to which control in the detail of the > report. Is that kind of what you're attempting to do? > Charlotte Foust > -----Original Message----- > From: Susan Harkins [mailto:ssharkins at bellsouth.net] > Sent: Monday, April 19, 2004 11:52 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] custom sorts/groups in a report > You can only group and sort on a field or an expression involving a > field, and no, you can't use variables. Had you mentioned the variable > before? Why not just create a "week" field in the query and group and > sort on that calculated field. Then you could use your variable to > create a filter for the particular week in question. > ============I'm passing the firstdayoftheweek value from a form to the > report -- the report's based on a query. So that's the quandry. That's > what I mentioned in my last message -- the only way I can see around it > is to pass the value to the query and run the expressions in the query > first. I'm not sure I know how to do that really -- I have never passed > anything to a query before -- just called functions from a query. And in > this case, that's what I'm trying to avoid -- calling the function from > the query. > Susan H. From andy at minstersystems.co.uk Tue Apr 20 05:19:05 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Tue, 20 Apr 2004 10:19:05 +0000 Subject: [AccessD] cbo after adding data question Message-ID: <20040420091903.C4D9D2537F4@smtp.nildram.co.uk> Hi Joe If you have one or two places on the form which can add/alter records and therefore require the cbo to be requeried then just add: me!cboWhatever.Requery at the end of those routines. Alternatively, and as long as it doesn't cause too much of an overhead, you can place: me.ActiveControl.Requery in the OnGotFocus of the combo itself. You may do more requeries than are strictly necessary this way, but it pretty much ensures that the combo sees everything it should. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: AccessD Subject: [AccessD] cbo after adding data question Date: 20/04/04 06:53 > > I have a combo box that pulls up matching records on a form. The data source > is a SQL statement not a query. > > > > After the record is entered where and how should I write the requry > statement to add the record to the combo box? > > > > JOE HECHT > > LOS ANGELES CA > > > > -- > _______________________________________________ > 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 Mark.Mitsules at ngc.com Tue Apr 20 06:41:58 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Tue, 20 Apr 2004 07:41:58 -0400 Subject: [AccessD] Report Page Header Message-ID: The condition where detail records may not exist on the last page of a report occurs because I have included a sub report in the report footer which may or may not fit in the available space left over after the details have completed printing. Mark ...yikes, seems like a run-on sentence, but also appears to be grammatically correct? :) -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Monday, April 19, 2004 5:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Report Page Header Mark: Do you mean no data for the whole report? If so you can use the No Data event and issue a DoCmd.CancelEvent command. That will cancel the whole report. Mostly I then have to trap the error 2105 in the calling form. But what condition would give you on some detail records on some pages and not others? Rocky ----- Original Message ----- From: "Mitsules, Mark S. (Newport News)" To: "'[AccessD]'" Sent: Monday, April 19, 2004 1:10 PM Subject: [AccessD] Report Page Header > First, a really stupid question...why is it that Access reports do not have > a "Detail Header" section? It seems simple and to the point for a lot of > what I do when grouping is not needed. > > > Second, when printing a report, what is the syntax to check if there are no > detail records on the page and suppress the Page Header if there are none? > > > > 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 paul.hartland at fsmail.net Tue Apr 20 06:48:01 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 20 Apr 2004 13:48:01 +0200 (CEST) Subject: [AccessD] Using WinZip With Access Message-ID: <4879913.1082461681903.JavaMail.www@wwinf3004> To all, I?m sure one of you out there must have done/attempted this before, I have an export button on my switchboard which exports two text files (ShiftData and DowntimeData) using the TransferText method. I also have a copy of WinZip 8.0 (or close) installed. What I would like to do is once the text files have been exported I would like to zip them, has anyone any examples etc that I may look at to achieve this. Also would I also need to download the command line interface for WinZip as well ? Thanks in advance for any help on this. Paul Hartland Database Designer/Developer. Join the UK's number one for the internet www.freeserve.com/time From ssharkins at bellsouth.net Tue Apr 20 06:56:31 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 20 Apr 2004 07:56:31 -0400 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <517039742.20040420105209@cactus.dk> Message-ID: <20040420115630.XNDF1778.imf18aec.mail.bellsouth.net@SUSANONE> Already tried it -- didn't work. Access will not group on a calculated control. Susan H. Hi Susan Perhaps you On_Open of the report could set the value of a textbox to the value of your chosen FirstDayOfWeek retrieved from your form; then use the value of this textbox as a parameter in the function you use for grouping/sorting in your report. From bheid at appdevgrp.com Tue Apr 20 07:00:38 2004 From: bheid at appdevgrp.com (Bobby Heid) Date: Tue, 20 Apr 2004 08:00:38 -0400 Subject: [AccessD] Using WinZip With Access In-Reply-To: <916187228923D311A6FE00A0CC3FAA3082E3B6@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA305BB44B@ADGSERVER> Hi Paul, First of all, you need to get version 9.0 of WinZip. It is a free upgrade. There was a security issue with all versions below 9.0. I have not programmatically done what you are talking about, but I have used the command line version of WinZip to zip various stuff up. I use batch files to run them. Here are two examples: "C:\Program Files\WinZip\wzzip" -a -spasswordhere psts.zip *.pst "C:\Program Files\WinZip\wzzip" -a willis.zip willis.pst The first example shows how to Add all *.PST files to an archive (or create it new if it does not exist) while password protecting the zip file. The second example is just adding willis.pst to willis.zip. If I was you, I would create a batch file with the zip commands and whatever else you need. Then I would use the shell command from Access to call the batch file. I do not have any examples handy of the shell command, but if you Google it, I'm sure that you'll find something. If you have downloaded the command-line version of WinZip, there should be two files that explain the zip and unzip functions. Let me know if you have any other questions. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: Tuesday, April 20, 2004 7:48 AM To: accessd Subject: [AccessD] Using WinZip With Access To all, I'm sure one of you out there must have done/attempted this before, I have an export button on my switchboard which exports two text files (ShiftData and DowntimeData) using the TransferText method. I also have a copy of WinZip 8.0 (or close) installed. What I would like to do is once the text files have been exported I would like to zip them, has anyone any examples etc that I may look at to achieve this. Also would I also need to download the command line interface for WinZip as well ? Thanks in advance for any help on this. Paul Hartland Database Designer/Developer. Join the UK's number one for the internet www.freeserve.com/time -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Tue Apr 20 07:03:17 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 20 Apr 2004 14:03:17 +0200 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <20040420115630.XNDF1778.imf18aec.mail.bellsouth.net@SUSANONE> References: <20040420115630.XNDF1778.imf18aec.mail.bellsouth.net@SUSANONE> Message-ID: <7618507963.20040420140317@cactus.dk> Hi Susan It will not be calculated but unbound ... you set the value from code. /gustav > Already tried it -- didn't work. Access will not group on a calculated > control. > Susan H. > Hi Susan > Perhaps you On_Open of the report could set the value of a textbox to the > value of your chosen FirstDayOfWeek retrieved from your form; then use the > value of this textbox as a parameter in the function you use for > grouping/sorting in your report. From Mark.Mitsules at ngc.com Tue Apr 20 07:04:39 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Tue, 20 Apr 2004 08:04:39 -0400 Subject: [AccessD] Re: Report Page Header Message-ID: I realize I can add a group header, but can I do so without actually sorting or grouping? For this report I have the field headers in the page header. I want to be able to suppress that page header when there are no detail records to be printed for that page. This is not the same as on no data. For instance, let's assume a full page of details contains 80 records. The first page, because of the report header can only accommodate 60 records. The last page, because of the size of the report footer, can also accommodate 60 records. If my report only contains 60 records, the report length will still be 2 pages but no details will be on the second page. Currently, because I am utilizing the page header to hold the field headers, the page header will print on the second page. In the above case, how do I suppress the page header if no detail records are on the page? Mark -----Original Message----- From: Robert L. Stewart [mailto:rl_stewart at highstream.net] Sent: Monday, April 19, 2004 5:01 PM To: accessd at databaseadvisors.com Subject: [AccessD] Re: Report Page Header In a band report writer, which Access is, the detail header is in the grouping header just above it. You have to make it visible. There is a event in the report for No data. You would put code in that event to handle what ever you wanted to do there. Robert At 03:42 PM 4/19/2004 -0500, you wrote: >Date: Mon, 19 Apr 2004 16:10:22 -0400 >From: "Mitsules, Mark S. (Newport News)" >Subject: [AccessD] Report Page Header >To: "'[AccessD]'" >Message-ID: >Content-Type: text/plain > >First, a really stupid question...why is it that Access reports do not have >a "Detail Header" section? It seems simple and to the point for a lot of >what I do when grouping is not needed. > > >Second, when printing a report, what is the syntax to check if there are no >detail records on the page and suppress the Page Header if there are none? > > -- _______________________________________________ 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 Apr 20 07:09:02 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 20 Apr 2004 22:09:02 +1000 Subject: [AccessD] Using WinZip With Access In-Reply-To: <4879913.1082461681903.JavaMail.www@wwinf3004> Message-ID: <40859F7E.14268.2CA3E11@localhost> On 20 Apr 2004 at 13:48, paul.hartland at fsmail.net wrote: > To all, I?m sure one of you out there must have done/attempted this > before, I have an export button on my switchboard which exports two > text files (ShiftData and DowntimeData) using the TransferText method. > I also have a copy of WinZip 8.0 (or close) installed. What I would > like to do is once the text files have been exported I would like to > zip them, has anyone any examples etc that I may look at to achieve > this. Also would I also need to download the command line interface > for WinZip as well ? Simplest way is to upgrade to the latest Winzip (ver 9.0) and also grab the "WinZip Command Line Support Add-On". (You current Winzip rego will still be valid with Ver 9.0) Then all you need to do is something like: RetVal = Shell("'C:\Program Files\Winzip\Wzzip.exe' MyFiles.zip File1.txt File2.txt",0) -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From ssharkins at bellsouth.net Tue Apr 20 07:18:03 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 20 Apr 2004 08:18:03 -0400 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <7618507963.20040420140317@cactus.dk> Message-ID: <20040420121802.XUVJ1778.imf18aec.mail.bellsouth.net@SUSANONE> Gustav, I think I must be missing something in this discussion. I hate to bring us to this level, but how would I do that? I can not get the sorting/grouping dialog to accept an unbound control. I guess I'm being truly dull... Originally, I used code to set the value, but I still couldn't group by the results. Susan H. Hi Susan It will not be calculated but unbound ... you set the value from code. /gustav From stuart at lexacorp.com.pg Tue Apr 20 07:35:09 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 20 Apr 2004 22:35:09 +1000 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <20040420115630.XNDF1778.imf18aec.mail.bellsouth.net@SUSANONE> References: <517039742.20040420105209@cactus.dk> Message-ID: <4085A59D.24333.2E22823@localhost> On 20 Apr 2004 at 7:56, Susan Harkins wrote: > Already tried it -- didn't work. Access will not group on a calculated > control. > Yes it will. Try this. 1. Create a static function in a module: Static Function FirstDayOfWeek(Optional DOW As Long = -1) As Long Dim lngDOWStore As Long If DOW > -1 Then lngDOWStore = DOW End If FirstDayOfWeek = lngDOWStore End Function 2. In the Sorting Grouping Window of your report,set the first "Field/Expression" to "=DatePart("ww",[MyDate],FirstDayOfWeek())" and set Group Header = "Yes". Set the second Field/Expression to "MyDate" 3. In the Group header, put a text box with a control source of =" Week No: " & DatePart("ww",[MyDate],FirstDayOfWeek()) 4. In the detail section put a textbox with a control source of [MyDate] 5. Put a button and a Combobox (cboWeekday) on the form you call the report from. Set the combo: Column Count = 2 Column Widths = 0,1 (assuming you are using inches) Row Source Type = Value List Row Source = 1;Sunday;2;Monday;3;Tuesday;4;Wednesday;5;Thursday;6;Friday;7;Saturday 5. In your button on_click event in the form put: Dim lngRetVal as long lngRetVal = FirstDayOfWeek(cboWeekday) Docmd.OpenReport "MyReport",acPreview -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From pharryecoenen at btinternet.com Tue Apr 20 08:42:12 2004 From: pharryecoenen at btinternet.com (Harry Coenen) Date: Tue, 20 Apr 2004 14:42:12 +0100 Subject: [AccessD] Handling strings in VBA SQL scripts? Message-ID: Hi All I am searching for a function that determines the need for barcketing and need for apostrophing/stringing of variable names. For example a tablename stored in variable strTableName with value "table1" would not need bracketing, while value "table 1" definitly needs bracketing, e.g. as part of an SQL string "FROM [" & strTableName & "]". To make it a bit more difficult the value could also be "John's Table". This would cause problems when we need to string the variable in an SQL string, e.g. "SELECT '" & strTableName & "' AS TableName, " would result in "SELECT 'Peter's table' AS FromTable," which obviously is not correct, it should be "SELECT 'Peter''s table' AS FromTable,". It would also cause problems when we decide to code using something like rst(strTableName). Up until now I either avoided the problem by forcing users to use unproblematic names, or developed one of solutions dependent on the data (hoping that they would not change their naming conventions. Thanks to Skrol29 (http://www.skrol29.com/) and Juan M. Af?n deRibera (http://www.mvp-access.com/juanmafan/) I am aware of WizHook.IsValidIdent and WizHook.BracketString for testing valid variable names. But Wizhook is an undocumented feature. I am also aware of tools which "string" a string for you, e.g. CodeCrafter or the MS VBA String Editor that can do this with a static string during design time. But I was wondering if someone has found the time to find a more generic solution. The following gives my proto-analysis: Function OutputString (strInputString as String, Optional intFlag as Integer = 0, Optional strStringChar As String = '"') AS string ' ============================ ' Arguments: ' strInputString : the string to be converted ' intFlag : the type of conversion ' 0 = standard string conversion converting apostrophes ' 1 = just bracketing for filename ' and others that could be useful ' strStringChar : the character to be used as start and close of the string ' standard " '============================ ' PRELIMINARY ANALYSIS ' If intFlag = 1 Then ' check if bracketing is needed ' check for a the appearance of a list of characters in the string (which characters?) ' if one appears, at least bracket ' Else ' if apostrophe appears double it ' Endif End Function Further note: Probably the function should return a Boolean indicating success or failure of the action while the result is transfered to the caller by other means. How? Many thanks in advance Harry Coenen From paul.hartland at fsmail.net Tue Apr 20 08:48:39 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 20 Apr 2004 15:48:39 +0200 (CEST) Subject: [AccessD] Using WinZip With Access Again. Message-ID: <8320091.1082468919101.JavaMail.www@wwinf3003> To all, Thanks for all your help with my last WinZip question, however now I need to know where I am going wrong. I have the following code in my application: Dim strShiftData As String Dim strDownTime As String Dim wzFinal As String Dim wzFiles strShiftData = "C:\Shifts_" & Replace(DATE, "/", "") & "_" & Replace(Time(), ":", "") & ".txt" strDownTime = "C:\Down_" & Replace(DATE, "/", "") & "_" & Replace(Time(), ":", "") & ".txt" DoCmd.TransferText acExportDelim, , "qryNewExportShiftDataToText", strShiftData, True DoCmd.TransferText acExportDelim, , "qryNewExportDownTimeToText", strDownTime, True wzFinal = "C:\Branston" & Replace(DATE, "/", "") & Replace(Time(), ":", "") wzFiles = Shell("C:\Program Files\Winzip\Wzzip.exe " & wzFinal & " " & strShiftData & " " & strDownTime, 0) MsgBox ?Finshed Export?,,?**** User Message ? Export Complete ****? However I can?t seem to see any zip file on my C: drive, and I get no error message. Can someone please see where I am going wrong here. I have WinZip 9.0 and the Command Line Interface installed. Thanks in advance for all your help. Paul Hartland Database Designer/Developer. Join the UK's number one for the internet www.freeserve.com/time From Developer at UltraDNT.com Tue Apr 20 09:06:45 2004 From: Developer at UltraDNT.com (Developer) Date: Tue, 20 Apr 2004 10:06:45 -0400 Subject: [AccessD] Handling strings in VBA SQL scripts? In-Reply-To: Message-ID: <000901c426e0$ba0dc190$6401a8c0@COA3> There's no-harm/no-foul to have extra brackets as a saftey measure. Combined with the Replace function (A2k+) ... I would just do: "SELECT '" & replace(strTableName, "'","''") & "' as tablename " & _ "FROM [" & strTableName & "]" hth Steve -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Harry Coenen Sent: Tuesday, April 20, 2004 9:42 AM To: accessd at databaseadvisors.com Subject: [AccessD] Handling strings in VBA SQL scripts? Hi All I am searching for a function that determines the need for barcketing and need for apostrophing/stringing of variable names. For example a tablename stored in variable strTableName with value "table1" would not need bracketing, while value "table 1" definitly needs bracketing, e.g. as part of an SQL string "FROM [" & strTableName & "]". To make it a bit more difficult the value could also be "John's Table". This would cause problems when we need to string the variable in an SQL string, e.g. "SELECT '" & strTableName & "' AS TableName, " would result in "SELECT 'Peter's table' AS FromTable," which obviously is not correct, it should be "SELECT 'Peter''s table' AS FromTable,". It would also cause problems when we decide to code using something like rst(strTableName). Up until now I either avoided the problem by forcing users to use unproblematic names, or developed one of solutions dependent on the data (hoping that they would not change their naming conventions. Thanks to Skrol29 (http://www.skrol29.com/) and Juan M. Af?n deRibera (http://www.mvp-access.com/juanmafan/) I am aware of WizHook.IsValidIdent and WizHook.BracketString for testing valid variable names. But Wizhook is an undocumented feature. I am also aware of tools which "string" a string for you, e.g. CodeCrafter or the MS VBA String Editor that can do this with a static string during design time. But I was wondering if someone has found the time to find a more generic solution. The following gives my proto-analysis: Function OutputString (strInputString as String, Optional intFlag as Integer = 0, Optional strStringChar As String = '"') AS string ' ============================ ' Arguments: ' strInputString : the string to be converted ' intFlag : the type of conversion ' 0 = standard string conversion converting apostrophes ' 1 = just bracketing for filename ' and others that could be useful ' strStringChar : the character to be used as start and close of the string ' standard " '============================ ' PRELIMINARY ANALYSIS ' If intFlag = 1 Then ' check if bracketing is needed ' check for a the appearance of a list of characters in the string (which characters?) ' if one appears, at least bracket ' Else ' if apostrophe appears double it ' Endif End Function Further note: Probably the function should return a Boolean indicating success or failure of the action while the result is transfered to the caller by other means. How? Many thanks in advance Harry Coenen -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Tue Apr 20 09:12:58 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 20 Apr 2004 16:12:58 +0200 Subject: [AccessD] Handling strings in VBA SQL scripts? In-Reply-To: References: Message-ID: <8226288030.20040420161258@cactus.dk> Hi Harry > I am searching for a function that determines the need for barcketing and > need for apostrophing/stringing of variable names. For example a tablename > stored in variable strTableName with value "table1" would not need > bracketing, while value "table 1" definitly needs bracketing, e.g. as part > of an SQL string "FROM [" & strTableName & "]". Brackets don't harm, so just apply them if you feel they could be needed. > To make it a bit more difficult the value could also be "John's Table". This > would cause problems when we need to string the variable in an SQL string, > e.g. "SELECT '" & strTableName & "' AS TableName, " would result in "SELECT > 'Peter's table' AS FromTable," which obviously is not correct, it should be > "SELECT 'Peter''s table' AS FromTable,". It would also cause problems when > we decide to code using something like rst(strTableName). J?rgen Welz have posted a proven clean-up function for this purpose: A problem with the """" or chr$(34) and such solutions is that if you have a string with apostrophes in it, like "John O'Conner" or "8' 4" Block Wall", the sql/find/dAgg will choke. My users are accustomed to mixing both quotes and apostrophes in their input fields (although we are metric here, we still get a fair bit of feet and inches stuff and our new Seattle office is definitely going to be using imperial units of measure). The 97 ADH has a general solution for fixing mixed quotes and apostrophes.... but it doesn't work. I use: Function fnFixQuotes(Srch As String) As String Dim strout As String Dim Qt As String Dim IntI As Integer Qt = """" For IntI = 1 To Len(Srch) If InStr(Chr$(34), Mid$(Srch, IntI, 1)) Then strout = strout & Chr$(34) & "& Chr$(34) &" & Chr$(34) Else strout = strout & Mid$(Srch, IntI, 1) End If Next fnFixQuotes = Qt & strout & Qt End Function An example of how it's called with wildcards to find a string anywhere in a field: Private Sub txtNameCrit_AfterUpdate() Dim strCrit As String If Not IsNull(Me.txtNameCrit) Then strCrit = Me.txtNameCrit strCrit = fnFixQuotes("*" & strCrit & "*") Else strCrit = "" End If Call GetCompanies(strCrit) End Sub Private Sub GetCompanies(strIn) Dim strSql As String With Me If len(strCrit) Then strSql = "SELECT CompanyID, CompanyName FROM tblCompany WHERE CompanyID > 0 AND " & _ "Deleted = False AND CompanyName Like " & strIn & " ORDER BY CompanyName WITH OWNERACCESS OPTION" .lstAvailable.RowSource = strSql .lstAvailable.SetFocus Else 'sql without criteria End if End With End Sub If you use a function like this to generate your delimiters, it is completely unnecessary to use special delimiters in your sql/find/dAgg code. I've never written a fix to the pipe character (which chokes any sql) but that can be mostly fixed by replacing it a token). You can write a more generic procedure yet that will choose your date or string delimiters and apply them where necessary. I always thought that if you declared a variable as a string, Access should implicitly add the delimiters. It would have been easy enough for them to build in an internal delimiter function to look after this ubiquitous issue. Ciao J?rgen Welz Edmonton, Alberta /gustav From gustav at cactus.dk Tue Apr 20 09:15:51 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 20 Apr 2004 16:15:51 +0200 Subject: [AccessD] Access utils and add-ins (was: Handling strings in VBA SQL scripts?) In-Reply-To: References: Message-ID: <12126461489.20040420161551@cactus.dk> Hi Harry Nice collection of utils, add-ins, and code at those links! /gustav > Thanks to Skrol29 > (http://www.skrol29.com/) > and Juan M. Af?n deRibera > (http://www.mvp-access.com/juanmafan/) .. From Bryan_Carbonnell at cbc.ca Tue Apr 20 09:17:01 2004 From: Bryan_Carbonnell at cbc.ca (Bryan Carbonnell) Date: Tue, 20 Apr 2004 10:17:01 -0400 Subject: [AccessD] Form Opening Time Message-ID: Can anyone explain, or give a possible idea why Turning Jet's SHOWPLAN on in the registry, will make a form open in 1/3 of the time it took prior to turning it on? It now takes about 7 seconds to open, but before it was 22-24 secords. Any ideas? I had turned on SHOWPLAN to try and see if any of the queries were causing the slowdown in opening. Thanks, Bryan Carbonnell bryan_carbonnell at cbc.ca From gustav at cactus.dk Tue Apr 20 09:27:25 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 20 Apr 2004 16:27:25 +0200 Subject: [AccessD] Using WinZip With Access Again. In-Reply-To: <8320091.1082468919101.JavaMail.www@wwinf3003> References: <8320091.1082468919101.JavaMail.www@wwinf3003> Message-ID: <19827155687.20040420162725@cactus.dk> Hi paul First, use Format() for creating strings from dates! Second, you probably need quotes around your file names as some of them contains spaces. Use Debug.Print: strQuote = Chr(34) strCommand = strQuote & "C:\Program Files\Winzip\Wzzip.exe" & strQuote & " " & strQuote & wzFinal & strQuote & " " & strQuote & strShiftData & strQuote & " " & strQuote & strDownTime & strQuote Debug.Print strCommand wzFiles = Shell(strCommand, 0) Remove line breaks above! /gustav > Thanks for all your help with my last WinZip question, however now I need to know where I am going wrong. I have the following code in my application: > Dim strShiftData As String > Dim strDownTime As String > Dim wzFinal As String > Dim wzFiles > strShiftData = "C:\Shifts_" & Replace(DATE, "/", "") & "_" & Replace(Time(), ":", "") & ".txt" > strDownTime = "C:\Down_" & Replace(DATE, "/", "") & "_" & Replace(Time(), ":", "") & ".txt" > DoCmd.TransferText acExportDelim, , "qryNewExportShiftDataToText", strShiftData, True > DoCmd.TransferText acExportDelim, , "qryNewExportDownTimeToText", strDownTime, True > wzFinal = "C:\Branston" & Replace(DATE, "/", "") & Replace(Time(), ":", "") > wzFiles = Shell("C:\Program Files\Winzip\Wzzip.exe " & wzFinal & " " & strShiftData & " " & strDownTime, 0) > MsgBox ?Finshed Export?,,?**** User Message ? Export Complete ****? > However I can?t seem to see any zip file on my C: drive, and I get no error message. Can someone please see where I am going wrong here. I have WinZip 9.0 and the Command Line Interface installed. From ssharkins at bellsouth.net Tue Apr 20 09:36:20 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 20 Apr 2004 10:36:20 -0400 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <4085A59D.24333.2E22823@localhost> Message-ID: <20040420143620.WZYO1779.imf21aec.mail.bellsouth.net@SUSANONE> Try this. 1. Create a static function in a module: Static Function FirstDayOfWeek(Optional DOW As Long = -1) As Long Dim lngDOWStore As Long If DOW > -1 Then lngDOWStore = DOW End If FirstDayOfWeek = lngDOWStore End Function ============I already have a function and it works. You're just moving the function call from the query to the report, but if there's a good development reason for doing so I'm open to it. Susan H. From bchacc at san.rr.com Tue Apr 20 09:42:28 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 20 Apr 2004 07:42:28 -0700 Subject: [AccessD] custom sorts/groups in a report References: <20040420115630.XNDF1778.imf18aec.mail.bellsouth.net@SUSANONE> Message-ID: <00bc01c426e5$b46b8c90$6601a8c0@HAL9002> Susan: When I run into this problem I have to add the calculation to the query that's the recordsource for the report. Then I can group and sort on it. Rocky ----- Original Message ----- From: "Susan Harkins" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, April 20, 2004 4:56 AM Subject: RE: [AccessD] custom sorts/groups in a report > Already tried it -- didn't work. Access will not group on a calculated > control. > > Susan H. > > Hi Susan > > Perhaps you On_Open of the report could set the value of a textbox to the > value of your chosen FirstDayOfWeek retrieved from your form; then use the > value of this textbox as a parameter in the function you use for > grouping/sorting in your report. > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From paul.hartland at fsmail.net Tue Apr 20 09:50:25 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 20 Apr 2004 16:50:25 +0200 (CEST) Subject: [AccessD] Using WinZip With Access Again. Message-ID: <22375148.1082472625109.JavaMail.www@wwinf3003> Thanks for the fast response Gustav, still getting same problem though. Text files exporting but no WinZip file to be seen, and no error message... Message date : Apr 20 2004, 03:37 PM >From : "Gustav Brock" To : "Access Developers discussion and problem solving" Copy to : Subject : Re: [AccessD] Using WinZip With Access Again. Hi paul First, use Format() for creating strings from dates! Second, you probably need quotes around your file names as some of them contains spaces. Use Debug.Print: strQuote = Chr(34) strCommand = strQuote & "C:\Program Files\Winzip\Wzzip.exe" & strQuote & " " & strQuote & wzFinal & strQuote & " " & strQuote & strShiftData & strQuote & " " & strQuote & strDownTime & strQuote Debug.Print strCommand wzFiles = Shell(strCommand, 0) Remove line breaks above! /gustav > Thanks for all your help with my last WinZip question, however now I need to know where I am going wrong. I have the following code in my application: > Dim strShiftData As String > Dim strDownTime As String > Dim wzFinal As String > Dim wzFiles > strShiftData = "C:\Shifts_" & Replace(DATE, "/", "") & "_" & Replace(Time(), ":", "") & ".txt" > strDownTime = "C:\Down_" & Replace(DATE, "/", "") & "_" & Replace(Time(), ":", "") & ".txt" > DoCmd.TransferText acExportDelim, , "qryNewExportShiftDataToText", strShiftData, True > DoCmd.TransferText acExportDelim, , "qryNewExportDownTimeToText", strDownTime, True > wzFinal = "C:\Branston" & Replace(DATE, "/", "") & Replace(Time(), ":", "") > wzFiles = Shell("C:\Program Files\Winzip\Wzzip.exe " & wzFinal & " " & strShiftData & " " & strDownTime, 0) > MsgBox ?Finshed Export?,,?**** User Message ? Export Complete ****? > However I can?t seem to see any zip file on my C: drive, and I get no error message. Can someone please see where I am going wrong here. I have WinZip 9.0 and the Command Line Interface installed. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Join the UK's number one for the internet www.freeserve.com/time From gustav at cactus.dk Tue Apr 20 09:53:14 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 20 Apr 2004 16:53:14 +0200 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <00bc01c426e5$b46b8c90$6601a8c0@HAL9002> References: <20040420115630.XNDF1778.imf18aec.mail.bellsouth.net@SUSANONE> <00bc01c426e5$b46b8c90$6601a8c0@HAL9002> Message-ID: <14628704544.20040420165314@cactus.dk> Hi Rocky > When I run into this problem I have to add the calculation to the query > that's the recordsource for the report. Then I can group and sort on it. Hmmm ... you should sort in the report, not in the query (except for the sorting caused by grouping, of course). /gustav From bheid at appdevgrp.com Tue Apr 20 10:03:40 2004 From: bheid at appdevgrp.com (Bobby Heid) Date: Tue, 20 Apr 2004 11:03:40 -0400 Subject: [AccessD] Using WinZip With Access Again. In-Reply-To: <916187228923D311A6FE00A0CC3FAA3082E443@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA305BB450@ADGSERVER> Using Gustav's code, make sure that you get something out like this in your string: 'C:\Program Files\Winzip\Wzzip.exe' 'C:\Branston0419041100.zip' 'Shiftsxxx' It also looks like your code id not putting a ".zip" on the end of wzfinal. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: Tuesday, April 20, 2004 10:50 AM To: Access Developers discussion and problem solving Subject: Re: Re: [AccessD] Using WinZip With Access Again. Thanks for the fast response Gustav, still getting same problem though. Text files exporting but no WinZip file to be seen, and no error message... Message date : Apr 20 2004, 03:37 PM >From : "Gustav Brock" To : "Access Developers discussion and problem solving" Copy to : Subject : Re: [AccessD] Using WinZip With Access Again. Hi paul First, use Format() for creating strings from dates! Second, you probably need quotes around your file names as some of them contains spaces. Use Debug.Print: strQuote = Chr(34) strCommand = strQuote & "C:\Program Files\Winzip\Wzzip.exe" & strQuote & " " & strQuote & wzFinal & strQuote & " " & strQuote & strShiftData & strQuote & " " & strQuote & strDownTime & strQuote Debug.Print strCommand wzFiles = Shell(strCommand, 0) Remove line breaks above! /gustav > Thanks for all your help with my last WinZip question, however now I > need to know where I am going wrong. I have the following code in my > application: > Dim strShiftData As String > Dim strDownTime As String > Dim wzFinal As String > Dim wzFiles > strShiftData = "C:\Shifts_" & Replace(DATE, "/", "") & "_" & > Replace(Time(), ":", "") & ".txt" strDownTime = "C:\Down_" & > Replace(DATE, "/", "") & "_" & Replace(Time(), ":", "") & ".txt" > DoCmd.TransferText acExportDelim, , "qryNewExportShiftDataToText", > strShiftData, True DoCmd.TransferText acExportDelim, , > "qryNewExportDownTimeToText", strDownTime, True > wzFinal = "C:\Branston" & Replace(DATE, "/", "") & Replace(Time(), > ":", "") > wzFiles = Shell("C:\Program Files\Winzip\Wzzip.exe " & wzFinal & " " & > strShiftData & " " & strDownTime, 0) > MsgBox "Finshed Export",,"**** User Message - Export Complete ****" > However I can't seem to see any zip file on my C: drive, and I get no > error message. Can someone please see where I am going wrong here. I > have WinZip 9.0 and the Command Line Interface installed. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Join the UK's number one for the internet www.freeserve.com/time -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Tue Apr 20 10:19:21 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 20 Apr 2004 08:19:21 -0700 Subject: [AccessD] custom sorts/groups in a report References: <20040420115630.XNDF1778.imf18aec.mail.bellsouth.net@SUSANONE> <00bc01c426e5$b46b8c90$6601a8c0@HAL9002> <14628704544.20040420165314@cactus.dk> Message-ID: <012201c426ea$db54b160$6601a8c0@HAL9002> Right. Except when I need to sort or group on an unbound control. That's when I have to add it to the query and bind the control to that field in the query. Rocky ----- Original Message ----- From: "Gustav Brock" To: "Access Developers discussion and problem solving" Sent: Tuesday, April 20, 2004 7:53 AM Subject: Re: [AccessD] custom sorts/groups in a report > Hi Rocky > > > When I run into this problem I have to add the calculation to the query > > that's the recordsource for the report. Then I can group and sort on it. > > Hmmm ... you should sort in the report, not in the query (except for > the sorting caused by grouping, of course). > > /gustav > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From paul.hartland at fsmail.net Tue Apr 20 10:39:37 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 20 Apr 2004 17:39:37 +0200 (CEST) Subject: [AccessD] Using WinZip With Access Message-ID: <1861111.1082475577664.JavaMail.www@wwinf3003> To all, Thanks for everybody?s help on this I now know what the problem is. We are using an Evaluation copy of Winzip, if I set the focus of the Shell command below to vbMaximizedFocus: strCommand = "C:\Program Files\Winzip\Wzzip.exe " & wzFinal & " " & strShiftData & " " & strDownTime & vbCrLf wzFiles = Shell(strCommand, vbMaximizedFocus) A message appears in the window with press any key to continue, and if I press any key it works perfect. Is there anyway I can include the keypress into the Shell Command. If I can get this to work automatically then I should be able to convince the powers that be to invest in the fully registered version. Thanks again for everyone?s help on this Paul Hartland Database Designer/Developer Join the UK's number one for the internet www.freeserve.com/time From Mark.Mitsules at ngc.com Tue Apr 20 10:52:27 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Tue, 20 Apr 2004 11:52:27 -0400 Subject: [AccessD] Re: Report Page Header Message-ID: Is there no way to test for detail records printed on a report page, and, then based on that, hide the page header? Mark -----Original Message----- From: Mitsules, Mark Sent: Tuesday, April 20, 2004 8:05 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Re: Report Page Header I realize I can add a group header, but can I do so without actually sorting or grouping? For this report I have the field headers in the page header. I want to be able to suppress that page header when there are no detail records to be printed for that page. This is not the same as on no data. For instance, let's assume a full page of details contains 80 records. The first page, because of the report header can only accommodate 60 records. The last page, because of the size of the report footer, can also accommodate 60 records. If my report only contains 60 records, the report length will still be 2 pages but no details will be on the second page. Currently, because I am utilizing the page header to hold the field headers, the page header will print on the second page. In the above case, how do I suppress the page header if no detail records are on the page? Mark -----Original Message----- From: Robert L. Stewart [mailto:rl_stewart at highstream.net] Sent: Monday, April 19, 2004 5:01 PM To: accessd at databaseadvisors.com Subject: [AccessD] Re: Report Page Header In a band report writer, which Access is, the detail header is in the grouping header just above it. You have to make it visible. There is a event in the report for No data. You would put code in that event to handle what ever you wanted to do there. Robert At 03:42 PM 4/19/2004 -0500, you wrote: >Date: Mon, 19 Apr 2004 16:10:22 -0400 >From: "Mitsules, Mark S. (Newport News)" >Subject: [AccessD] Report Page Header >To: "'[AccessD]'" >Message-ID: >Content-Type: text/plain > >First, a really stupid question...why is it that Access reports do not have >a "Detail Header" section? It seems simple and to the point for a lot of >what I do when grouping is not needed. > > >Second, when printing a report, what is the syntax to check if there are no >detail records on the page and suppress the Page Header if there are none? > > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Tue Apr 20 10:53:47 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 20 Apr 2004 17:53:47 +0200 Subject: [AccessD] Using WinZip With Access In-Reply-To: <1861111.1082475577664.JavaMail.www@wwinf3003> References: <1861111.1082475577664.JavaMail.www@wwinf3003> Message-ID: <1932337508.20040420175347@cactus.dk> Hi paul > Thanks for everybody?s help on this I now know what the problem is. We are using an Evaluation copy of Winzip, if I set the focus of the Shell command below to vbMaximizedFocus: > strCommand = "C:\Program Files\Winzip\Wzzip.exe " & wzFinal & " " & strShiftData & " " & strDownTime & vbCrLf > wzFiles = Shell(strCommand, vbMaximizedFocus) > A message appears in the window with press any key to continue, and if I press any key it works perfect. Is there anyway I can include the keypress into the Shell Command. If I can get this to > work automatically then I should be able to convince the powers that be to invest in the fully registered version. > Thanks again for everyone?s help on this Fine! If you don't need WinZip for anything else than this, do as we do, use a freeware command line zip'er like ZIP.EXE (115 K size only): --- C:\WINNT\TEMP>zip -L Copyright (C) 1990-1997 Mark Adler, Richard B. Wales, Jean-loup Gailly, Onno van der Linden and Kai Uwe Rommel. Type 'zip -L' for the software License. Permission is granted to any individual or institution to use, copy, or redistribute this executable so long as it is not modified and that it is not sold for profit. LIKE ANYTHING ELSE THAT'S FREE, ZIP AND ITS ASSOCIATED UTILITIES ARE PROVIDED AS IS AND COME WITH NO WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED. IN NO EVENT WILL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY DAMAGES RESULTING FROM THE USE OF THIS SOFTWARE. --- Command line for ZIP.EXE is the same as you have already. /gustav From KIsmert at TexasSystems.com Tue Apr 20 11:23:11 2004 From: KIsmert at TexasSystems.com (Ken Ismert) Date: Tue, 20 Apr 2004 11:23:11 -0500 Subject: [AccessD] Re: Changing the table in a query so I canloopthrough thequery In-Reply-To: <5.1.0.14.2.20040419155057.02af21f8@pop3.highstream.net> Message-ID: <001a01c426f3$c6ac5e30$2a3ca8c0@TEXASSYSTEMS.COM> Yes. They are the parts tables for our Bill of Materials system. They are organized by type: tbl023 is Gaskets, tbl076 is Transformers, etc. The tables are structurally identical, with room for 8 attributes. Needless to say, one size does not fit all: tbl006, Elbows, requires 3 attributes, while tbl003, Heaters, requires over 30! The solution to the latter problem is, of course, more bad design: either create an auxiliary table to hold the extra attributes, or dump them into a big note field. Welcome to my inherited mess! -Ken -----Original Message----- From: Robert L. Stewart [mailto:rl_stewart at highstream.net] Sent: Monday, April 19, 2004 3:53 PM To: accessd at databaseadvisors.com Subject: [AccessD] Re: Changing the table in a query so I canloopthrough thequery Ken, You have been in my SIG long enough to know that is a resounding YES, it is a bad design. But, do you actually populate all 140 tables with the same data like she is doing? Robert From gustav at cactus.dk Tue Apr 20 11:27:30 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 20 Apr 2004 18:27:30 +0200 Subject: [AccessD] Re: Report Page Header In-Reply-To: References: Message-ID: <15834360357.20040420182730@cactus.dk> Hi Mark > Is there no way to test for detail records printed on a report page, and, > then based on that, hide the page header? This is not a page header but a group header. Create a dummy group with your labels: Set Field/Expression to =True Set Group Header to Yes. In the report, adjust the group's layout properties: Set Keep Together to False Set Repeat Section to True /gustav > I realize I can add a group header, but can I do so without actually sorting > or grouping? For this report I have the field headers in the page header. > I want to be able to suppress that page header when there are no detail > records to be printed for that page. This is not the same as on no data. > For instance, let's assume a full page of details contains 80 records. The > first page, because of the report header can only accommodate 60 records. > The last page, because of the size of the report footer, can also > accommodate 60 records. If my report only contains 60 records, the report > length will still be 2 pages but no details will be on the second page. > Currently, because I am utilizing the page header to hold the field headers, > the page header will print on the second page. In the above case, how do I > suppress the page header if no detail records are on the page? From pjones at btl.net Tue Apr 20 11:25:14 2004 From: pjones at btl.net (Paul M. Jones) Date: Tue, 20 Apr 2004 10:25:14 -0600 Subject: [AccessD] cbo after adding data question In-Reply-To: <000501c42695$b3109ed0$6501a8c0@delllaptop> References: <000501c42695$b3109ed0$6501a8c0@delllaptop> Message-ID: <6.0.0.22.2.20040420102249.02b72490@btlmail.btl.net> for situations like this I usually place the SQL statement in code rather than the control properties at design time. I then populate the row source on 'enter' of the combo box. Of course there are some overhead associated with this but I always get fresh data. I can also populate the combo box based on values in other fields using this approach. Paul M. Jones At 11:09 PM 04/19/2004, you wrote: >I have a combo box that pulls up matching records on a form. The data source >is a SQL statement not a query. > > > >After the record is entered where and how should I write the requry >statement to add the record to the combo box? > > > >JOE HECHT > >LOS ANGELES CA > > > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Tue Apr 20 11:36:20 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Tue, 20 Apr 2004 11:36:20 -0500 Subject: [AccessD] Using WinZip With Access Message-ID: <2F8793082E00D4119A1700B0D0216BF802227AEE@main2.marlow.com> Winzip is only like $25. I had the same issue, and decided that spending the few bucks to get a registered copy of Winzip was a better 'deal' then wasting time trying to code around the unregistered limitation. Turns out there is a LOT more available in the registered version of Winzip too. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of paul.hartland at fsmail.net Sent: Tuesday, April 20, 2004 10:40 AM To: accessd Subject: [AccessD] Using WinZip With Access To all, Thanks for everybody's help on this I now know what the problem is. We are using an Evaluation copy of Winzip, if I set the focus of the Shell command below to vbMaximizedFocus: strCommand = "C:\Program Files\Winzip\Wzzip.exe " & wzFinal & " " & strShiftData & " " & strDownTime & vbCrLf wzFiles = Shell(strCommand, vbMaximizedFocus) A message appears in the window with press any key to continue, and if I press any key it works perfect. Is there anyway I can include the keypress into the Shell Command. If I can get this to work automatically then I should be able to convince the powers that be to invest in the fully registered version. Thanks again for everyone's help on this Paul Hartland Database Designer/Developer Join the UK's number one for the internet www.freeserve.com/time -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Mark.Mitsules at ngc.com Tue Apr 20 11:41:45 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Tue, 20 Apr 2004 12:41:45 -0400 Subject: [AccessD] Re: Report Page Header Message-ID: Interesting...works like a charm, but this approach doesn't seem intuitive to me. Is this common practice? Thanks, Mark -----Original Message----- From: Gustav Brock [mailto:gustav at cactus.dk] Sent: Tuesday, April 20, 2004 12:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Re: Report Page Header Hi Mark > Is there no way to test for detail records printed on a report page, and, > then based on that, hide the page header? This is not a page header but a group header. Create a dummy group with your labels: Set Field/Expression to =True Set Group Header to Yes. In the report, adjust the group's layout properties: Set Keep Together to False Set Repeat Section to True /gustav > I realize I can add a group header, but can I do so without actually sorting > or grouping? For this report I have the field headers in the page header. > I want to be able to suppress that page header when there are no detail > records to be printed for that page. This is not the same as on no data. > For instance, let's assume a full page of details contains 80 records. The > first page, because of the report header can only accommodate 60 records. > The last page, because of the size of the report footer, can also > accommodate 60 records. If my report only contains 60 records, the report > length will still be 2 pages but no details will be on the second page. > Currently, because I am utilizing the page header to hold the field headers, > the page header will print on the second page. In the above case, how do I > suppress the page header if no detail records are on the page? -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Tue Apr 20 12:00:39 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 20 Apr 2004 19:00:39 +0200 Subject: [AccessD] Re: Report Page Header In-Reply-To: References: Message-ID: <17936349908.20040420190039@cactus.dk> Hi Mark > Interesting...works like a charm, but this approach doesn't seem intuitive > to me. Is this common practice? I have never used it. But I've used grouping by the detail to be able to show/hide some lines dependant on the current detail. /gustav >> Is there no way to test for detail records printed on a report page, and, >> then based on that, hide the page header? > This is not a page header but a group header. > Create a dummy group with your labels: > Set Field/Expression to =True > Set Group Header to Yes. > In the report, adjust the group's layout properties: > Set Keep Together to False > Set Repeat Section to True > /gustav >> I realize I can add a group header, but can I do so without actually sorting >> or grouping? For this report I have the field headers in the page header. >> I want to be able to suppress that page header when there are no detail >> records to be printed for that page. This is not the same as on no data. >> For instance, let's assume a full page of details contains 80 records. The >> first page, because of the report header can only accommodate 60 records. >> The last page, because of the size of the report footer, can also >> accommodate 60 records. If my report only contains 60 records, the report >> length will still be 2 pages but no details will be on the second page. >> Currently, because I am utilizing the page header to hold the field headers, >> the page header will print on the second page. In the above case, how do> I >> suppress the page header if no detail records are on the page? From BBarabash at TappeConstruction.com Tue Apr 20 12:02:00 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Tue, 20 Apr 2004 12:02:00 -0500 Subject: [AccessD] Re: Report Page Header Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE51D@TAPPEEXCH01> Don't know if it's common practice, but I commonly use dummy headers in my reports. For example, I have a quote that consists of 6 different sections, which can be selectively hidden by the user from a print dialog. I name my report sections with a string literal as the control source: ="Table of Contents" ="Pricing Plan" ="Terms of Payment" ... Remember that a group control source can consist of a field name, function, string, etc. Anything that will evaluate at runtime. My string literals will never change throughout the course of printing the report, thus the section only prints once. -----Original Message----- From: Mitsules, Mark S. (Newport News) [mailto:Mark.Mitsules at ngc.com] Sent: Tuesday, April 20, 2004 11:42 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Re: Report Page Header Interesting...works like a charm, but this approach doesn't seem intuitive to me. Is this common practice? Thanks, Mark -----Original Message----- From: Gustav Brock [mailto:gustav at cactus.dk] Sent: Tuesday, April 20, 2004 12:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Re: Report Page Header Hi Mark > Is there no way to test for detail records printed on a report page, and, > then based on that, hide the page header? This is not a page header but a group header. Create a dummy group with your labels: Set Field/Expression to =True Set Group Header to Yes. In the report, adjust the group's layout properties: Set Keep Together to False Set Repeat Section to True /gustav > I realize I can add a group header, but can I do so without actually sorting > or grouping? For this report I have the field headers in the page header. > I want to be able to suppress that page header when there are no detail > records to be printed for that page. This is not the same as on no data. > For instance, let's assume a full page of details contains 80 records. The > first page, because of the report header can only accommodate 60 records. > The last page, because of the size of the report footer, can also > accommodate 60 records. If my report only contains 60 records, the report > length will still be 2 pages but no details will be on the second page. > Currently, because I am utilizing the page header to hold the field headers, > the page header will print on the second page. In the above case, how do I > suppress the page header if no detail records are on the page? -------------------------------------------------------------------------------------------------------------------- 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 bheid at appdevgrp.com Tue Apr 20 12:10:10 2004 From: bheid at appdevgrp.com (Bobby Heid) Date: Tue, 20 Apr 2004 13:10:10 -0400 Subject: [AccessD] Using WinZip With Access In-Reply-To: <916187228923D311A6FE00A0CC3FAA3082E48C@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA305BB452@ADGSERVER> I second that! I use WinZip every day. I figured that as much as I use it, the $20 something registration was dirt cheap. You also get free upgrades (for life, I think). Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: Tuesday, April 20, 2004 12:36 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Using WinZip With Access Winzip is only like $25. I had the same issue, and decided that spending the few bucks to get a registered copy of Winzip was a better 'deal' then wasting time trying to code around the unregistered limitation. Turns out there is a LOT more available in the registered version of Winzip too. Drew From BBarabash at TappeConstruction.com Tue Apr 20 12:16:10 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Tue, 20 Apr 2004 12:16:10 -0500 Subject: [AccessD] Using WinZip With Access Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE51E@TAPPEEXCH01> A little trickier, but if you want to embed zip functionality in your program without requiring the user to purchase any additional software, check this out: http://www.vbaccelerator.com/home/VB/Code/Libraries/Compression/Zipping_File s/article.asp And regardless of what you choose to do, register WinZip ;-) -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Tuesday, April 20, 2004 11:36 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Using WinZip With Access Winzip is only like $25. I had the same issue, and decided that spending the few bucks to get a registered copy of Winzip was a better 'deal' then wasting time trying to code around the unregistered limitation. Turns out there is a LOT more available in the registered version of Winzip too. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of paul.hartland at fsmail.net Sent: Tuesday, April 20, 2004 10:40 AM To: accessd Subject: [AccessD] Using WinZip With Access To all, Thanks for everybody's help on this I now know what the problem is. We are using an Evaluation copy of Winzip, if I set the focus of the Shell command below to vbMaximizedFocus: strCommand = "C:\Program Files\Winzip\Wzzip.exe " & wzFinal & " " & strShiftData & " " & strDownTime & vbCrLf wzFiles = Shell(strCommand, vbMaximizedFocus) A message appears in the window with press any key to continue, and if I press any key it works perfect. Is there anyway I can include the keypress into the Shell Command. If I can get this to work automatically then I should be able to convince the powers that be to invest in the fully registered version. Thanks again for everyone's help on this Paul Hartland Database Designer/Developer Join the UK's number one for the internet www.freeserve.com/time -- -------------------------------------------------------------------------------------------------------------------- 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 DWUTKA at marlow.com Tue Apr 20 12:21:00 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Tue, 20 Apr 2004 12:21:00 -0500 Subject: [AccessD] Using WinZip With Access Message-ID: <2F8793082E00D4119A1700B0D0216BF802227AF1@main2.marlow.com> Software licensins should be more like Winzip. How useful is that tool? And do they charge an arm and a leg for it? LOL. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Bobby Heid Sent: Tuesday, April 20, 2004 12:10 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Using WinZip With Access I second that! I use WinZip every day. I figured that as much as I use it, the $20 something registration was dirt cheap. You also get free upgrades (for life, I think). Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: Tuesday, April 20, 2004 12:36 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Using WinZip With Access Winzip is only like $25. I had the same issue, and decided that spending the few bucks to get a registered copy of Winzip was a better 'deal' then wasting time trying to code around the unregistered limitation. Turns out there is a LOT more available in the registered version of Winzip too. Drew -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Mark.Mitsules at ngc.com Tue Apr 20 12:23:46 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Tue, 20 Apr 2004 13:23:46 -0400 Subject: [AccessD] Re: Report Page Header Message-ID: >>a group control source can consist of a field name, function, string, etc. Anything that will evaluate at runtime.<< This was the part that I was not aware of...thanks. Mark -----Original Message----- From: Brett Barabash [mailto:BBarabash at tappeconstruction.com] Sent: Tuesday, April 20, 2004 1:02 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Re: Report Page Header Don't know if it's common practice, but I commonly use dummy headers in my reports. For example, I have a quote that consists of 6 different sections, which can be selectively hidden by the user from a print dialog. I name my report sections with a string literal as the control source: ="Table of Contents" ="Pricing Plan" ="Terms of Payment" ... Remember that a group control source can consist of a field name, function, string, etc. Anything that will evaluate at runtime. My string literals will never change throughout the course of printing the report, thus the section only prints once. -----Original Message----- From: Mitsules, Mark S. (Newport News) [mailto:Mark.Mitsules at ngc.com] Sent: Tuesday, April 20, 2004 11:42 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Re: Report Page Header Interesting...works like a charm, but this approach doesn't seem intuitive to me. Is this common practice? Thanks, Mark -----Original Message----- From: Gustav Brock [mailto:gustav at cactus.dk] Sent: Tuesday, April 20, 2004 12:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Re: Report Page Header Hi Mark > Is there no way to test for detail records printed on a report page, and, > then based on that, hide the page header? This is not a page header but a group header. Create a dummy group with your labels: Set Field/Expression to =True Set Group Header to Yes. In the report, adjust the group's layout properties: Set Keep Together to False Set Repeat Section to True /gustav > I realize I can add a group header, but can I do so without actually sorting > or grouping? For this report I have the field headers in the page header. > I want to be able to suppress that page header when there are no detail > records to be printed for that page. This is not the same as on no data. > For instance, let's assume a full page of details contains 80 records. The > first page, because of the report header can only accommodate 60 records. > The last page, because of the size of the report footer, can also > accommodate 60 records. If my report only contains 60 records, the report > length will still be 2 pages but no details will be on the second page. > Currently, because I am utilizing the page header to hold the field headers, > the page header will print on the second page. In the above case, how do I > suppress the page header if no detail records are on the page? ---------------------------------------------------------------------------- ---------------------------------------- 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 ssharkins at bellsouth.net Tue Apr 20 12:49:14 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 20 Apr 2004 13:49:14 -0400 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <012201c426ea$db54b160$6601a8c0@HAL9002> Message-ID: <20040420174912.DNB1728.imf24aec.mail.bellsouth.net@SUSANONE> That's what I'd like to do -- and may do yet by passing the firstdayofweek value from the form to the query instead of the report. Truth is, I don't know how -- I can't remember ever passing a value to a query before and a parameter query is out. Susan H. Right. Except when I need to sort or group on an unbound control. That's when I have to add it to the query and bind the control to that field in the query. From gustav at cactus.dk Tue Apr 20 13:00:33 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 20 Apr 2004 20:00:33 +0200 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <20040420121802.XUVJ1778.imf18aec.mail.bellsouth.net@SUSANONE> References: <20040420121802.XUVJ1778.imf18aec.mail.bellsouth.net@SUSANONE> Message-ID: <339943245.20040420200033@cactus.dk> Hi Susan I played a bit with this and it seems either not to work or using one value only (= not registering a new weekday setting of the form). Thus, I would either stick with the solution you have (feed the weekday setting to the query) or go with the suggestion from Stuart (which I didn't check out). /gustav > Gustav, I think I must be missing something in this discussion. I hate to > bring us to this level, but how would I do that? I can not get the > sorting/grouping dialog to accept an unbound control. I guess I'm being > truly dull... > Originally, I used code to set the value, but I still couldn't group by the > results. > Susan H. > Hi Susan > It will not be calculated but unbound ... you set the value from code. > /gustav From ssharkins at bellsouth.net Tue Apr 20 13:10:40 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 20 Apr 2004 14:10:40 -0400 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <20040420174912.DNB1728.imf24aec.mail.bellsouth.net@SUSANONE> Message-ID: <20040420181039.QNZ1728.imf24aec.mail.bellsouth.net@SUSANONE> Let me rephrase that -- if I have to have a module, I don't think I really care what gets passed where -- my hope was to eliminate the module and do all the calculating in the query or the report and I thought I might be able to bypass the module using the openargs argument. Replacing the module I have for one that passes the value to a query really doesn't resolve the issue I had. Susan H. That's what I'd like to do -- and may do yet by passing the firstdayofweek value from the form to the query instead of the report. Truth is, I don't know how -- I can't remember ever passing a value to a query before and a parameter query is out. From orthorabod at yahoo.com Tue Apr 20 13:29:15 2004 From: orthorabod at yahoo.com (Dick Abo) Date: Tue, 20 Apr 2004 11:29:15 -0700 (PDT) Subject: [AccessD] Accidentally Modified SYSTEM.MDA without Backup Message-ID: <20040420182915.72088.qmail@web20724.mail.yahoo.com> Hi All, While examining a file (chapter 14) from the CD in the Access97 ADH, I opened the change password form and although I did not enter or change passwords, I am no longer able to use any of my Access 2K files. (The old and new Passwords were blank in the dialog box.) I now get prompted with the Logon Dialog box that asks for the Administrator password, for every Access application that I attempt to use. Short of re-installing the SYSTEM.MDW from the installation CD, is there another quick way to rectify this problem? (I did not make a backup of the SYSTEM.MDW file but plan to do so from now on and my installation CD is currently unavailable.) I was previously not using the Security Workgroups feature of Access, but now it appears that I may have to?. Many thanks in advance. --------------------------------- Do you Yahoo!? Yahoo! Photos: High-quality 4x6 digital prints for 25? From jwcolby at colbyconsulting.com Tue Apr 20 13:36:26 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 20 Apr 2004 14:36:26 -0400 Subject: [AccessD] Using WinZip With Access In-Reply-To: <1861111.1082475577664.JavaMail.www@wwinf3003> Message-ID: I have a zip demo in my framework lecture series which uses a freeware zip class. These use two DLLs to handle the zip / unzip, two classes and two modules for the zipping / unzipping. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of paul.hartland at fsmail.net Sent: Tuesday, April 20, 2004 11:40 AM To: accessd Subject: [AccessD] Using WinZip With Access To all, Thanks for everybody?s help on this I now know what the problem is. We are using an Evaluation copy of Winzip, if I set the focus of the Shell command below to vbMaximizedFocus: strCommand = "C:\Program Files\Winzip\Wzzip.exe " & wzFinal & " " & strShiftData & " " & strDownTime & vbCrLf wzFiles = Shell(strCommand, vbMaximizedFocus) A message appears in the window with press any key to continue, and if I press any key it works perfect. Is there anyway I can include the keypress into the Shell Command. If I can get this to work automatically then I should be able to convince the powers that be to invest in the fully registered version. Thanks again for everyone?s help on this Paul Hartland Database Designer/Developer Join the UK's number one for the internet www.freeserve.com/time -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Tue Apr 20 13:58:32 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 20 Apr 2004 20:58:32 +0200 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <20040420181039.QNZ1728.imf24aec.mail.bellsouth.net@SUSANONE> References: <20040420181039.QNZ1728.imf24aec.mail.bellsouth.net@SUSANONE> Message-ID: <5043422468.20040420205832@cactus.dk> Hi Susan In the query you can pick the value from the form as an expression: Select ..., [Forms].[frmSomeForm].[txtTextbox] As FirstDayOfWeek From ... Is is recommendable also to specify this as a parameter to avoid type mismatch errors, indeed if the textbox is unbound: Parameters [Forms].[frmSomeForm].[txtTextbox] Byte; I don't know what your module does, but basically the date of the first day of the week of datDate can be found from this formula: DateWeekFirst = DateAdd("d", vbSunday - WeekDay(datDate, FirstDayOfWeek), datDate) You would need to replace vbSunday with the actual value (1 for A97). End Function /gustav > Let me rephrase that -- if I have to have a module, I don't think I really > care what gets passed where -- my hope was to eliminate the module and do > all the calculating in the query or the report and I thought I might be able > to bypass the module using the openargs argument. Replacing the module I > have for one that passes the value to a query really doesn't resolve the > issue I had. > Susan H. > That's what I'd like to do -- and may do yet by passing the firstdayofweek > value from the form to the query instead of the report. Truth is, I don't > know how -- I can't remember ever passing a value to a query before and a > parameter query is out. From gustav at cactus.dk Tue Apr 20 14:04:25 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 20 Apr 2004 21:04:25 +0200 Subject: [AccessD] Form Opening Time In-Reply-To: References: Message-ID: <6243775065.20040420210425@cactus.dk> Hi Bryan Which version, please? /gustav > Can anyone explain, or give a possible idea why Turning Jet's SHOWPLAN > on in the registry, will make a form open in 1/3 of the time it took > prior to turning it on? > It now takes about 7 seconds to open, but before it was 22-24 secords. > Any ideas? I had turned on SHOWPLAN to try and see if any of the > queries were causing the slowdown in opening. > Thanks, > Bryan Carbonnell > bryan_carbonnell at cbc.ca From Bryan_Carbonnell at cbc.ca Tue Apr 20 14:18:04 2004 From: Bryan_Carbonnell at cbc.ca (Bryan Carbonnell) Date: Tue, 20 Apr 2004 15:18:04 -0400 Subject: [AccessD] Form Opening Time Message-ID: Access 2000 on Win 2K SP4 with Jet 4, SP8 Bryan Carbonnell bryan_carbonnell at cbc.ca >>> gustav at cactus.dk 20-Apr-04 3:04:25 PM >>> Hi Bryan Which version, please? /gustav > Can anyone explain, or give a possible idea why Turning Jet's SHOWPLAN > on in the registry, will make a form open in 1/3 of the time it took > prior to turning it on? > It now takes about 7 seconds to open, but before it was 22-24 secords. > Any ideas? I had turned on SHOWPLAN to try and see if any of the > queries were causing the slowdown in opening. > Thanks, From Bryan_Carbonnell at cbc.ca Tue Apr 20 14:31:43 2004 From: Bryan_Carbonnell at cbc.ca (Bryan Carbonnell) Date: Tue, 20 Apr 2004 15:31:43 -0400 Subject: [AccessD] Form Opening Time Message-ID: OOPS. A2K SP3 Bryan >>> Bryan_Carbonnell at cbc.ca 20-Apr-04 3:18:04 PM >>> Access 2000 on Win 2K SP4 with Jet 4, SP8 Bryan Carbonnell bryan_carbonnell at cbc.ca >>> gustav at cactus.dk 20-Apr-04 3:04:25 PM >>> Hi Bryan Which version, please? /gustav > Can anyone explain, or give a possible idea why Turning Jet's SHOWPLAN > on in the registry, will make a form open in 1/3 of the time it took > prior to turning it on? > It now takes about 7 seconds to open, but before it was 22-24 secords. > Any ideas? I had turned on SHOWPLAN to try and see if any of the > queries were causing the slowdown in opening. From ssharkins at bellsouth.net Tue Apr 20 15:22:34 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 20 Apr 2004 16:22:34 -0400 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <5043422468.20040420205832@cactus.dk> Message-ID: <20040420202233.JTRR1705.imf20aec.mail.bellsouth.net@SUSANONE> -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, April 20, 2004 2:59 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] custom sorts/groups in a report Hi Susan In the query you can pick the value from the form as an expression: Select ..., [Forms].[frmSomeForm].[txtTextbox] As FirstDayOfWeek From ... Is is recommendable also to specify this as a parameter to avoid type mismatch errors, indeed if the textbox is unbound: Parameters [Forms].[frmSomeForm].[txtTextbox] Byte; I don't know what your module does, but basically the date of the first day of the week of datDate can be found from this formula: DateWeekFirst = DateAdd("d", vbSunday - WeekDay(datDate, FirstDayOfWeek), datDate) You would need to replace vbSunday with the actual value (1 for A97). End Function /gustav > Let me rephrase that -- if I have to have a module, I don't think I > really care what gets passed where -- my hope was to eliminate the > module and do all the calculating in the query or the report and I > thought I might be able to bypass the module using the openargs > argument. Replacing the module I have for one that passes the value to > a query really doesn't resolve the issue I had. > Susan H. > That's what I'd like to do -- and may do yet by passing the > firstdayofweek value from the form to the query instead of the report. > Truth is, I don't know how -- I can't remember ever passing a value to > a query before and a parameter query is out. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Mark.Mitsules at ngc.com Tue Apr 20 15:23:11 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Tue, 20 Apr 2004 16:23:11 -0400 Subject: [AccessD] Create Junction Table From Existing Data Message-ID: Group, Is there a method to create a junction table from a non-normalized table? I inherited a table that I now need to normalize into two primary tables and a joining junction table. The primary tables were easy enough to create, but how can I create the junction table? I want to take a records such as: Fld1 Fld2 Fld3 Fld4 Fld5 <=Fields Dat1 Fld2 Fld4 Fld5 <=Record Dat2 Fld3 Fld4 <=Record And turn it into: Fld1 FldID <=Fields Dat1 Fld2 <=Record Dat1 Fld4 <=Record Dat1 Fld5 <=Record Dat2 Fld3 <=Record Dat2 Fld4 <=Record Mark From jmhla at earthlink.net Tue Apr 20 15:25:09 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Tue, 20 Apr 2004 13:25:09 -0700 Subject: [AccessD] Is there a printed flag? Message-ID: <003601c42715$97192320$6501a8c0@delllaptop> Is there a some type of printed flag for a record to show it has been printed or do I need roll my own code? JOE HECHT LOS ANGELES CA From wdhindman at bellsouth.net Tue Apr 20 15:41:56 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Tue, 20 Apr 2004 16:41:56 -0400 Subject: [AccessD] Create Junction Table From Existing Data References: Message-ID: <003001c42717$ebdff2b0$6101a8c0@dejpolsys> ...I know of no simple way to do this ...my approach has always been to add an ANPK to the original table and then to use that as the control to populate the derivative tables through a series of queries ...but the circumstances change so much from mdb to mdb that I've never been able to write code that ever worked for more than one situation. William Hindman "Always code as if the person who is maintaining or testing your code is a violent psychopath who knows where you live." William Silverstein ----- Original Message ----- From: "Mitsules, Mark S. (Newport News)" To: "'[AccessD]'" Sent: Tuesday, April 20, 2004 4:23 PM Subject: [AccessD] Create Junction Table From Existing Data > Group, > > Is there a method to create a junction table from a non-normalized table? I > inherited a table that I now need to normalize into two primary tables and a > joining junction table. The primary tables were easy enough to create, but > how can I create the junction table? > > I want to take a records such as: > Fld1 Fld2 Fld3 Fld4 Fld5 <=Fields > Dat1 Fld2 Fld4 Fld5 <=Record > Dat2 Fld3 Fld4 <=Record > > And turn it into: > Fld1 FldID <=Fields > Dat1 Fld2 <=Record > Dat1 Fld4 <=Record > Dat1 Fld5 <=Record > Dat2 Fld3 <=Record > Dat2 Fld4 <=Record > > > Mark > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From ssharkins at bellsouth.net Tue Apr 20 15:48:39 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 20 Apr 2004 16:48:39 -0400 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <5043422468.20040420205832@cactus.dk> Message-ID: <20040420204838.HADS1779.imf21aec.mail.bellsouth.net@SUSANONE> If the expression's in the query and you open the report without specifying the value in the form, how would you prevent an error in the form? I suppose I could just handle it and remind the user to open the form and choose the first day of the week. Right now, I've set the report to default to a value and since the expression's in the report, it works whether you start from the form or just open the report. You can't specify the grouping value when you open the report that way, but at least there's no error -- which is a nice alternative especially if the first day of the week seldom changes. That way the user's not forced to go through the form every time. I realize I sound really picky -- but these are the sort of nitpicky problems I get from readers. These solutions have to be as universal as possible or I get email. :) "It won't work if...." even when I've told them clearly in the article that it won't work if... but somehow it's still the article's shortcoming. It's always best if I can head them off. Which reminds me -- can someone explain the vbUseSystem constant? There's almost nothing about it on msdn. It's a system default, but there's not much about it. Well, the serious search-challenged was unable to find anything on it besides a vague reference -- no real explanation of the consequences. Susan H. Hi Susan In the query you can pick the value from the form as an expression: Select ..., [Forms].[frmSomeForm].[txtTextbox] As FirstDayOfWeek From ... Is is recommendable also to specify this as a parameter to avoid type mismatch errors, indeed if the textbox is unbound: Parameters [Forms].[frmSomeForm].[txtTextbox] Byte; I don't know what your module does, but basically the date of the first day of the week of datDate can be found from this formula: DateWeekFirst = DateAdd("d", vbSunday - WeekDay(datDate, FirstDayOfWeek), datDate) You would need to replace vbSunday with the actual value (1 for A97). End Function /gustav > Let me rephrase that -- if I have to have a module, I don't think I > really care what gets passed where -- my hope was to eliminate the > module and do all the calculating in the query or the report and I > thought I might be able to bypass the module using the openargs > argument. Replacing the module I have for one that passes the value to > a query really doesn't resolve the issue I had. > Susan H. > That's what I'd like to do -- and may do yet by passing the > firstdayofweek value from the form to the query instead of the report. > Truth is, I don't know how -- I can't remember ever passing a value to > a query before and a parameter query is out. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pharryecoenen at btinternet.com Tue Apr 20 15:32:04 2004 From: pharryecoenen at btinternet.com (Harry Coenen) Date: Tue, 20 Apr 2004 21:32:04 +0100 Subject: [AccessD] Displaying networked data? Message-ID: Hi All I have a data set, representing policy targets, which is currently ordered hierarchically, the core tblTargets relating each target to its ParentTarget. In reality these targets are also related in other ways, e.g.: - sequentially, some targets preceding others - jointly, some targets should be evaluated in relation with others elsewhere in the hierarchy - externally, each target relating to one or more external targets (compliance requirements set by a myriad of regulators) - influentially, a target may or may not influence other targets - normatively, delivery on each targets can be measured in one or more ways Do you know of OCX controls capable of visually representing and navigating such a network of targets. Currently, I display the hierarchy (in a treeview) and list childtargets, and other relation types in subforms on tabs of the target form. I have one proto-solution, consisting of hierachies in different dimensions, to be displayed bu one treeview selecting the dimensions and a second displaying the associated hierarchy. Regards Harry From Mark.Mitsules at ngc.com Tue Apr 20 16:08:28 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Tue, 20 Apr 2004 17:08:28 -0400 Subject: [AccessD] Create Junction Table From Existing Data Message-ID: I did just that to create the primary tables. But, since I've never had to do this on such a grand scale, I need assistance in generating the junction table. Here is pseudo data for clarification. I've placed dashes to maintain alignment. ID--CODE--SA--SAR--SRD 1---EA1---SA--SAR--SRD 2---EEY1--SA 3---EEY2--SA--SAR--SRD ...from the data above, I need: PK--CODE--TYPE 1---EA1---SA 2---EA1---SAR 3---EA1---SRD 4---EEY1--SA 5---EEY2--SA 6---EEY2--SAR 7---EEY2--SRD Any suggestions? Mark -----Original Message----- From: William Hindman [mailto:wdhindman at bellsouth.net] Sent: Tuesday, April 20, 2004 4:42 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Create Junction Table From Existing Data ...I know of no simple way to do this ...my approach has always been to add an ANPK to the original table and then to use that as the control to populate the derivative tables through a series of queries ...but the circumstances change so much from mdb to mdb that I've never been able to write code that ever worked for more than one situation. William Hindman "Always code as if the person who is maintaining or testing your code is a violent psychopath who knows where you live." William Silverstein ----- Original Message ----- From: "Mitsules, Mark S. (Newport News)" To: "'[AccessD]'" Sent: Tuesday, April 20, 2004 4:23 PM Subject: [AccessD] Create Junction Table From Existing Data > Group, > > Is there a method to create a junction table from a non-normalized table? I > inherited a table that I now need to normalize into two primary tables and a > joining junction table. The primary tables were easy enough to create, but > how can I create the junction table? > > I want to take a records such as: > Fld1 Fld2 Fld3 Fld4 Fld5 <=Fields > Dat1 Fld2 Fld4 Fld5 <=Record > Dat2 Fld3 Fld4 <=Record > > And turn it into: > Fld1 FldID <=Fields > Dat1 Fld2 <=Record > Dat1 Fld4 <=Record > Dat1 Fld5 <=Record > Dat2 Fld3 <=Record > Dat2 Fld4 <=Record > > > 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 pharryecoenen at btinternet.com Tue Apr 20 15:48:45 2004 From: pharryecoenen at btinternet.com (Harry Coenen) Date: Tue, 20 Apr 2004 21:48:45 +0100 Subject: [AccessD] Framework discussion - continuation? YES PLEASE!!! Message-ID: John (and all) A few suggestions: Additional service classes: - error logging/tracing to table or file, I can post a messy attempt to achieve this with a class which pushes and pops all trace calls to a stack and writes this to a table/file when an error occurs (together with some other relevant data) - behaviours of combinations of controls, e.g. -- eample of class implementation of combination of treeview/listview with splicer for explorer like navigation (I can create the behaviour, but I cannot implement it in a class yet) -- class implementation of combinations of controls, e.g. combo/labels/button, see below for further info My half cent: Triggered by a recent discussion about lookup-tables, hard-coded lookup lists, tag, etc. Recently I had to redevelop a performance monitoring system for a public sector body. At the start they did not know what they wanted, and at the end they still didn't. So requirements analysis was a bit difficult to say the least. Just everything inside and outside the scope of the project related to just about everything else. Usually I would have send them home to do their homework first, but since the project had some very interesting elements I decided to give it a go. Permananetly changing requirements make you necessarily creative in avoiding hardcoding. What did I do to resolve issues 1. All lookup fields were filled from lookup tables with the following structure LookupFieldID (an autonumber) LookupFieldShortDescription (for the display on forms and reports) LookupFieldLongDescription (mainly for value dependent tooltips) LookupFieldIsActive (boolean set True when field should be displayed in lookups) LookupFieldSortOrder (a customisable sort order of the lookups) LookupFieldMemo (my documentation + recording of audit trail) LookupFieldMaxLengthInCharacters (of short description) LookupFieldMaxLengthInTwips (calculated based on the standard font and size, and used to determine columnwidth in reports) LookupFieldParent LookupFieldActiveDateFrom LookupFieldActiveDateTo and a few others.. Filling combos with source: SELECT LookupFieldID, LookupFieldShortDescription FROM tlkLookupField WHERE LookupFieldIsActive = True ORDER BY LookupFieldSortOrder; linking on 2 columns, making the witdh of the first as small as possible, in effect only displaying the second 2. The lookup table is linked to the table (just in case the user wants to view the description of the meaningless code in a certain column of a record) and a combobox on the form. Given the number of lookups only few were actually linked in the relationships table 3. On the form I had to display the ShortName and the Tooltip I achieved this by relating an (additional) label displaying the ShortName and a commandbutton with the value dependant tooltip, the latter transparent and overlayed on the former, to the combobox this gave a combination of 4 controls cbxLookupfield (the Lookupcombobox dropping down the short description, but actually entering the ID) lbxLookupfield (the normal label related to the combo) lkxLookupField (with the Shortname) cmxLookupField (with the tooltip from the LongDescription) So the user still had the look and feel of working with meaningfull descriptions. 4. The main user/administrator could add (but not delete) records to Lookup tables and change the descriptions, IsActive and SortOrder. All changes were logged and datestamped to the LookupMemo, thus preserving an audit trail. This was all managed from one form with a combobox selecting the different lookuptables. The table feeding this combobox had again exactly the same structure as above and could be edited in the same form. Advantages - Language independent (by design), both in terms of the internal organisational language and changing terminology as well as internationally (just add LookupFieldLanguage and you can start filling the table with descriptions) - Perfect Audit trail - Smart looking forms with additional behaviours easily added (derived from tlkLookupField) to the combo-combination - Smart looking report snapshots (dynamically formatted using data from the above). I only needed a few, thanks to some COOL code for dynamically positioning controls at runtime from Shamil Salakhetdinov and Stephen Lebans' code for calculating the width of a data element. - Highly standardised naming conventions allowed most of the coding to be reduced to a few loops. Disadvantages: -some overhead in a few events --Form_Current event had to refresh all tooltips and lookups --After changing the combobox selection I had to refresh the tips and lookup for that combo Luckily most of this could be achieved by looping through the controls, the "x" in the third position of the names above (3) allowed for this. Next steps? - Researching the possibility of further streamlining the lookup tables towards a full fledged data dictionary, e.g. by pulling them into a few master tables. - Creating a class for the above combo/label/button behaviour (as soon as I understand what John, Shamil and a few others are actually doing). Harry From cfoust at infostatsystems.com Tue Apr 20 16:34:12 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 20 Apr 2004 14:34:12 -0700 Subject: [AccessD] Is there a printed flag? Message-ID: It's strictly roll your own. Records don't get printed, reports get printed. Charlotte Foust -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Tuesday, April 20, 2004 12:25 PM To: AccessD Subject: [AccessD] Is there a printed flag? Is there a some type of printed flag for a record to show it has been printed or do I need roll my own code? JOE HECHT LOS ANGELES CA -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pharryecoenen at btinternet.com Tue Apr 20 16:16:42 2004 From: pharryecoenen at btinternet.com (Harry Coenen) Date: Tue, 20 Apr 2004 22:16:42 +0100 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <20040420204838.HADS1779.imf21aec.mail.bellsouth.net@SUSANONE> Message-ID: Hi Susan VbUseSystem My object browser shows: Const vbUseSystem = 0 Member of VBA.VbFirstWeekOfYear Use the day of the week specified in your system settings for the first day of the week. Const vbUseSystemDayOfWeek = 0 Member of VBA.VbDayOfWeek Use NLS API setting the descriptions are from the helpfile address: VbLR6.chm::/html/vamscDateConstants.htm titled: Date Constants (XP version) I suppose in both cases the value will be derived from the systems settings in the machines registry Report Error I usually hide all reports and run them from forms, especially because the subsets of data the user wants depend on selections made in the forms. Then I pass the selections to the report and trap the errors. e.g. no data. Picky? Users don't read manuals, only their lawyers will do so when you really make a mess. So guiding users through the appropriate process with menus, tooltips, messages, etc. isn't picky, just good service. Regards Harry -- >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >Susan Harkins >Sent: Tuesday, April 20, 2004 9:49 PM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] custom sorts/groups in a report > > >If the expression's in the query and you open the report >without specifying >the value in the form, how would you prevent an error in the >form? I suppose >I could just handle it and remind the user to open the form >and choose the >first day of the week. > >Right now, I've set the report to default to a value and since the >expression's in the report, it works whether you start from >the form or just >open the report. You can't specify the grouping value when you open the >report that way, but at least there's no error -- which is a nice >alternative especially if the first day of the week seldom >changes. That way >the user's not forced to go through the form every time. > >I realize I sound really picky -- but these are the sort of nitpicky >problems I get from readers. These solutions have to be as universal as >possible or I get email. :) "It won't work if...." even when >I've told them >clearly in the article that it won't work if... but somehow >it's still the >article's shortcoming. It's always best if I can head them off. > >Which reminds me -- can someone explain the vbUseSystem >constant? There's >almost nothing about it on msdn. It's a system default, but >there's not much >about it. Well, the serious search-challenged was unable to >find anything on >it besides a vague reference -- no real explanation of the >consequences. > >Susan H. > >Hi Susan > >In the query you can pick the value from the form as an expression: > > Select > ..., > [Forms].[frmSomeForm].[txtTextbox] As FirstDayOfWeek > From > ... > >Is is recommendable also to specify this as a parameter to avoid type >mismatch errors, indeed if the textbox is unbound: > > Parameters [Forms].[frmSomeForm].[txtTextbox] Byte; > >I don't know what your module does, but basically the date of >the first day >of the week of datDate can be found from this formula: > > DateWeekFirst = > DateAdd("d", vbSunday - WeekDay(datDate, FirstDayOfWeek), datDate) > >You would need to replace vbSunday with the actual value (1 for A97). > >End Function > >/gustav > > >> Let me rephrase that -- if I have to have a module, I don't think I >> really care what gets passed where -- my hope was to eliminate the >> module and do all the calculating in the query or the report and I >> thought I might be able to bypass the module using the openargs >> argument. Replacing the module I have for one that passes >the value to >> a query really doesn't resolve the issue I had. > >> Susan H. > >> That's what I'd like to do -- and may do yet by passing the >> firstdayofweek value from the form to the query instead of >the report. >> Truth is, I don't know how -- I can't remember ever passing >a value to >> a query before and a parameter query is out. > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >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 Tue Apr 20 16:48:45 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 20 Apr 2004 17:48:45 -0400 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: Message-ID: <20040420214843.NWZL1832.imf22aec.mail.bellsouth.net@SUSANONE> Use NLS API setting I suppose in both cases the value will be derived from the systems settings in the machines registry =============I wanted more infomration on NLS API -- but didn't turn up anything. Susan H. From ssharkins at bellsouth.net Tue Apr 20 16:54:26 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 20 Apr 2004 17:54:26 -0400 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: Message-ID: <20040420215425.NZPD1832.imf22aec.mail.bellsouth.net@SUSANONE> Report Error I usually hide all reports and run them from forms, especially because the subsets of data the user wants depend on selections made in the forms. Then I pass the selections to the report and trap the errors. e.g. no data. ==========I was thinking that I might be able to trap the error and in the errorhandler, set the default value. Picky? Users don't read manuals, only their lawyers will do so when you really make a mess. So guiding users through the appropriate process with menus, tooltips, messages, etc. isn't picky, just good service. ==========Thanks for understanding. Most of the mail I get is really nice. They just want to know more, so they can take the technique a little further. But, in my own self-serving way, I'd rather ward off as many of the "you're an idiot" emails as possible. I don't get very many, which I don't really think is a reflection of my intelligence, but rather the manners of most of the readers. ;) Susan H. From wdhindman at bellsouth.net Tue Apr 20 17:03:11 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Tue, 20 Apr 2004 18:03:11 -0400 Subject: [AccessD] Create Junction Table From Existing Data References: Message-ID: <001c01c42723$45a311f0$6101a8c0@dejpolsys> ...you've lost me Mark ...I thought you were trying to join data from two tables ...your latest post looks as if you're trying to pivot the data instead ...can you clarify it a bit? William Hindman "Always code as if the person who is maintaining or testing your code is a violent psychopath who knows where you live." William Silverstein ----- Original Message ----- From: "Mitsules, Mark S. (Newport News)" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, April 20, 2004 5:08 PM Subject: RE: [AccessD] Create Junction Table From Existing Data > I did just that to create the primary tables. But, since I've never had to > do this on such a grand scale, I need assistance in generating the junction > table. Here is pseudo data for clarification. I've placed dashes to > maintain alignment. > > ID--CODE--SA--SAR--SRD > 1---EA1---SA--SAR--SRD > 2---EEY1--SA > 3---EEY2--SA--SAR--SRD > > ...from the data above, I need: > PK--CODE--TYPE > 1---EA1---SA > 2---EA1---SAR > 3---EA1---SRD > 4---EEY1--SA > 5---EEY2--SA > 6---EEY2--SAR > 7---EEY2--SRD > > Any suggestions? > > Mark > > > > -----Original Message----- > From: William Hindman [mailto:wdhindman at bellsouth.net] > Sent: Tuesday, April 20, 2004 4:42 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Create Junction Table From Existing Data > > > ...I know of no simple way to do this ...my approach has always been to add > an ANPK to the original table and then to use that as the control to > populate the derivative tables through a series of queries ...but the > circumstances change so much from mdb to mdb that I've never been able to > write code that ever worked for more than one situation. > > William Hindman > "Always code as if the person who is maintaining or testing your code is > a violent psychopath who knows where you live." William Silverstein > > > ----- Original Message ----- > From: "Mitsules, Mark S. (Newport News)" > To: "'[AccessD]'" > Sent: Tuesday, April 20, 2004 4:23 PM > Subject: [AccessD] Create Junction Table From Existing Data > > > > Group, > > > > Is there a method to create a junction table from a non-normalized table? > I > > inherited a table that I now need to normalize into two primary tables and > a > > joining junction table. The primary tables were easy enough to create, > but > > how can I create the junction table? > > > > I want to take a records such as: > > Fld1 Fld2 Fld3 Fld4 Fld5 <=Fields > > Dat1 Fld2 Fld4 Fld5 <=Record > > Dat2 Fld3 Fld4 <=Record > > > > And turn it into: > > Fld1 FldID <=Fields > > Dat1 Fld2 <=Record > > Dat1 Fld4 <=Record > > Dat1 Fld5 <=Record > > Dat2 Fld3 <=Record > > Dat2 Fld4 <=Record > > > > > > 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 Tue Apr 20 17:45:05 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Tue, 20 Apr 2004 18:45:05 -0400 Subject: [AccessD] Create Junction Table From Existing Data Message-ID: Sure...the data started out as an Excel flat file (no normalization). They then put it into an Access Db (same format). I now have the task of cleaning it up. The data consists of checklist items, and the checklists to which they pertain. In my example, (ID--CODE--SA--SAR--SRD) "code" refers to the checklist item description, and the last 3 fields are examples of checklist types (which should have their own table). I have already created the normalized tables tblChecklistItems and tblChecklistTypes. What I need assistance with, is how to create the junction table of this many to many relationship. Since this is the first time I've had to normalize an existing database, a little "hand-holding" would be appreciated;) Mark -----Original Message----- From: William Hindman [mailto:wdhindman at bellsouth.net] Sent: Tuesday, April 20, 2004 6:03 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Create Junction Table From Existing Data ...you've lost me Mark ...I thought you were trying to join data from two tables ...your latest post looks as if you're trying to pivot the data instead ...can you clarify it a bit? William Hindman "Always code as if the person who is maintaining or testing your code is a violent psychopath who knows where you live." William Silverstein ----- Original Message ----- From: "Mitsules, Mark S. (Newport News)" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, April 20, 2004 5:08 PM Subject: RE: [AccessD] Create Junction Table From Existing Data > I did just that to create the primary tables. But, since I've never had to > do this on such a grand scale, I need assistance in generating the junction > table. Here is pseudo data for clarification. I've placed dashes to > maintain alignment. > > ID--CODE--SA--SAR--SRD > 1---EA1---SA--SAR--SRD > 2---EEY1--SA > 3---EEY2--SA--SAR--SRD > > ...from the data above, I need: > PK--CODE--TYPE > 1---EA1---SA > 2---EA1---SAR > 3---EA1---SRD > 4---EEY1--SA > 5---EEY2--SA > 6---EEY2--SAR > 7---EEY2--SRD > > Any suggestions? > > Mark > > > > -----Original Message----- > From: William Hindman [mailto:wdhindman at bellsouth.net] > Sent: Tuesday, April 20, 2004 4:42 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Create Junction Table From Existing Data > > > ...I know of no simple way to do this ...my approach has always been to add > an ANPK to the original table and then to use that as the control to > populate the derivative tables through a series of queries ...but the > circumstances change so much from mdb to mdb that I've never been able to > write code that ever worked for more than one situation. > > William Hindman > "Always code as if the person who is maintaining or testing your code is > a violent psychopath who knows where you live." William Silverstein > > > ----- Original Message ----- > From: "Mitsules, Mark S. (Newport News)" > To: "'[AccessD]'" > Sent: Tuesday, April 20, 2004 4:23 PM > Subject: [AccessD] Create Junction Table From Existing Data > > > > Group, > > > > Is there a method to create a junction table from a non-normalized table? > I > > inherited a table that I now need to normalize into two primary tables and > a > > joining junction table. The primary tables were easy enough to create, > but > > how can I create the junction table? > > > > I want to take a records such as: > > Fld1 Fld2 Fld3 Fld4 Fld5 <=Fields > > Dat1 Fld2 Fld4 Fld5 <=Record > > Dat2 Fld3 Fld4 <=Record > > > > And turn it into: > > Fld1 FldID <=Fields > > Dat1 Fld2 <=Record > > Dat1 Fld4 <=Record > > Dat1 Fld5 <=Record > > Dat2 Fld3 <=Record > > Dat2 Fld4 <=Record > > > > > > 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 jwelz at hotmail.com Tue Apr 20 18:03:38 2004 From: jwelz at hotmail.com (Jürgen Welz) Date: Tue, 20 Apr 2004 17:03:38 -0600 Subject: [AccessD] Displaying networked data? Message-ID: Does the client have MS Project? It sounds like automation code driving Project could give you a Gantt chart view that may prove viable. It could also generate Critical Path views of the data which may be of use as well. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: "Harry Coenen" > >Hi All > >I have a data set, representing policy targets, which is currently ordered >hierarchically, the core tblTargets relating each target to its >ParentTarget. In reality these targets are also related in other ways, >e.g.: >- sequentially, some targets preceding others >- jointly, some targets should be evaluated in relation with others >elsewhere in the hierarchy >- externally, each target relating to one or more external targets >(compliance requirements set by a myriad of regulators) >- influentially, a target may or may not influence other targets >- normatively, delivery on each targets can be measured in one or more ways > >Do you know of OCX controls capable of visually representing and navigating >such a network of targets. > >Currently, I display the hierarchy (in a treeview) and list childtargets, >and other relation types in subforms on tabs of the target form. I have one >proto-solution, consisting of hierachies in different dimensions, to be >displayed bu one treeview selecting the dimensions and a second displaying >the associated hierarchy. > >Regards > >Harry _________________________________________________________________ Free yourself from those irritating pop-up ads with MSn Premium. Get 2months FREE* http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines From stuart at lexacorp.com.pg Tue Apr 20 18:08:04 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 21 Apr 2004 09:08:04 +1000 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <20040420204838.HADS1779.imf21aec.mail.bellsouth.net@SUSANONE> References: <5043422468.20040420205832@cactus.dk> Message-ID: <408639F4.13148.52594A8@localhost> On 20 Apr 2004 at 16:48, Susan Harkins wrote: > If the expression's in the query and you open the report without specifying > the value in the form, how would you prevent an error in the form? I suppose > I could just handle it and remind the user to open the form and choose the > first day of the week. Use the Static function I posted earlier. It will initially return a value of 0 (vbUseSystem) ...... > > Which reminds me -- can someone explain the vbUseSystem constant? There's > almost nothing about it on msdn. It's a system default, but there's not much > about it. Well, the serious search-challenged was unable to find anything on > it besides a vague reference -- no real explanation of the consequences. > It tells Access to use the NLS API setting. (National Language Supprt) i.e. Use the FDOW returned by the GetLocaleInfoA() API call for a parameter of "LOCALE_IFIRSTDAYOFWEEK" -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From stuart at lexacorp.com.pg Tue Apr 20 18:22:50 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 21 Apr 2004 09:22:50 +1000 Subject: [AccessD] Create Junction Table From Existing Data In-Reply-To: Message-ID: <40863D6A.3847.53317A4@localhost> On 20 Apr 2004 at 17:08, Mitsules, Mark S. (Newport Ne wrote: > I did just that to create the primary tables. But, since I've never had to > do this on such a grand scale, I need assistance in generating the junction > table. Here is pseudo data for clarification. I've placed dashes to > maintain alignment. > > ID--CODE--SA--SAR--SRD > 1---EA1---SA--SAR--SRD > 2---EEY1--SA > 3---EEY2--SA--SAR--SRD > > ...from the data above, I need: > PK--CODE--TYPE > 1---EA1---SA > 2---EA1---SAR > 3---EA1---SRD > 4---EEY1--SA > 5---EEY2--SA > 6---EEY2--SAR > 7---EEY2--SRD > > Any suggestions? > I'd do it in code. Open the old data set and step through it. For each record, step through the fields and create a new record in the new table where required. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From DaveSharpe2 at cox.net Tue Apr 20 18:28:27 2004 From: DaveSharpe2 at cox.net (Dave Sharpe) Date: Tue, 20 Apr 2004 19:28:27 -0400 Subject: [AccessD] Create Junction Table From Existing Data References: Message-ID: <003001c4272f$2f231130$dd2f0a44@bcsrkeext6137> Mark I've sent You an MDB that I hope helps ( I could do what I thought much easier that I could verbalize My thoughts ). Dave ----- Original Message ----- From: "Mitsules, Mark S. (Newport News)" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, April 20, 2004 6:45 PM Subject: RE: [AccessD] Create Junction Table From Existing Data Sure...the data started out as an Excel flat file (no normalization). They then put it into an Access Db (same format). I now have the task of cleaning it up. The data consists of checklist items, and the checklists to which they pertain. In my example, (ID--CODE--SA--SAR--SRD) "code" refers to the checklist item description, and the last 3 fields are examples of checklist types (which should have their own table). I have already created the normalized tables tblChecklistItems and tblChecklistTypes. What I need assistance with, is how to create the junction table of this many to many relationship. Since this is the first time I've had to normalize an existing database, a little "hand-holding" would be appreciated;) Mark -----Original Message----- From: William Hindman [mailto:wdhindman at bellsouth.net] Sent: Tuesday, April 20, 2004 6:03 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Create Junction Table From Existing Data ...you've lost me Mark ...I thought you were trying to join data from two tables ...your latest post looks as if you're trying to pivot the data instead ...can you clarify it a bit? William Hindman "Always code as if the person who is maintaining or testing your code is a violent psychopath who knows where you live." William Silverstein ----- Original Message ----- From: "Mitsules, Mark S. (Newport News)" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, April 20, 2004 5:08 PM Subject: RE: [AccessD] Create Junction Table From Existing Data > I did just that to create the primary tables. But, since I've never had to > do this on such a grand scale, I need assistance in generating the junction > table. Here is pseudo data for clarification. I've placed dashes to > maintain alignment. > > ID--CODE--SA--SAR--SRD > 1---EA1---SA--SAR--SRD > 2---EEY1--SA > 3---EEY2--SA--SAR--SRD > > ...from the data above, I need: > PK--CODE--TYPE > 1---EA1---SA > 2---EA1---SAR > 3---EA1---SRD > 4---EEY1--SA > 5---EEY2--SA > 6---EEY2--SAR > 7---EEY2--SRD > > Any suggestions? > > Mark > > > > -----Original Message----- > From: William Hindman [mailto:wdhindman at bellsouth.net] > Sent: Tuesday, April 20, 2004 4:42 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Create Junction Table From Existing Data > > > ...I know of no simple way to do this ...my approach has always been to add > an ANPK to the original table and then to use that as the control to > populate the derivative tables through a series of queries ...but the > circumstances change so much from mdb to mdb that I've never been able to > write code that ever worked for more than one situation. > > William Hindman > "Always code as if the person who is maintaining or testing your code is > a violent psychopath who knows where you live." William Silverstein > > > ----- Original Message ----- > From: "Mitsules, Mark S. (Newport News)" > To: "'[AccessD]'" > Sent: Tuesday, April 20, 2004 4:23 PM > Subject: [AccessD] Create Junction Table From Existing Data > > > > Group, > > > > Is there a method to create a junction table from a non-normalized table? > I > > inherited a table that I now need to normalize into two primary tables and > a > > joining junction table. The primary tables were easy enough to create, > but > > how can I create the junction table? > > > > I want to take a records such as: > > Fld1 Fld2 Fld3 Fld4 Fld5 <=Fields > > Dat1 Fld2 Fld4 Fld5 <=Record > > Dat2 Fld3 Fld4 <=Record > > > > And turn it into: > > Fld1 FldID <=Fields > > Dat1 Fld2 <=Record > > Dat1 Fld4 <=Record > > Dat1 Fld5 <=Record > > Dat2 Fld3 <=Record > > Dat2 Fld4 <=Record > > > > > > 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 pharryecoenen at btinternet.com Tue Apr 20 15:34:10 2004 From: pharryecoenen at btinternet.com (Harry Coenen) Date: Tue, 20 Apr 2004 21:34:10 +0100 Subject: [AccessD] Access utils and add-ins In-Reply-To: <12126461489.20040420161551@cactus.dk> Message-ID: Hi gustav (and all) You can add : Carlos J. Quintero's MZTools http://www.mztools.com/ Bryan Carbonnell's ListAllVBAVariables http://www3.sympatico.ca/carbonnb/bryan/index.html and (slightly more commercial, but please note that I have no personal commericial interest in any of these) for $15, CodeCrafter http://www.codecrafter.com/ delivering about the same functionality as the free MZTools Rick Fisher's Find and Replace http://www.rickworld.com/ in combination with Helen Feddema's LNC Rename add-in http://www.helenfeddema.com/ And for the ones who want to climb Wittgenstein's ladder: Shamil Salakhetdinov's topics and DEEP concept http://smsconsulting.spb.ru/ (some topics are also avialble thourgh http://www.4tops.com/) or John W. Colby's musings on developing Frameworks http://www.colbyconsulting.com/ Harry -- >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >Sent: Tuesday, April 20, 2004 3:16 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Access utils and add-ins (was: Handling >strings in VBASQL scripts?) > > >Hi Harry > >Nice collection of utils, add-ins, and code at those links! > >/gustav > >> Thanks to Skrol29 >> (http://www.skrol29.com/) >> and Juan M. Af?n deRibera >> (http://www.mvp-access.com/juanmafan/) .. > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > From ssharkins at bellsouth.net Tue Apr 20 19:08:12 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 20 Apr 2004 20:08:12 -0400 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <408639F4.13148.52594A8@localhost> Message-ID: <20040421000810.JDLF1728.imf24aec.mail.bellsouth.net@SUSANONE> It tells Access to use the NLS API setting. (National Language Supprt) i.e. Use the FDOW returned by the GetLocaleInfoA() API call for a parameter of "LOCALE_IFIRSTDAYOFWEEK" =====OK, that last bit helps. Thanks! Susan H. From accessd at shaw.ca Tue Apr 20 19:30:07 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Tue, 20 Apr 2004 17:30:07 -0700 Subject: [AccessD] Using WinZip With Access In-Reply-To: <1861111.1082475577664.JavaMail.www@wwinf3003> Message-ID: Hi Paul: There is a way but it has been a long while since I have used it. 1. Create a file, say named return.txt and in notepad place one value, say '1'. 2. Save file in an appropriate location, (and this is where it might become complicated), run a program like, old DOS's debug, or a sector or hex editor against the newly created file. In the editing mode change the value '1' or now displayed as hex 31 to hex 13 (carriage return). 3. Save the file again and exit the hex editor. Now you can use the following line of text when shelling to the command prompt: strCommand = "C:\Program Files\Winzip\Wzzip.exe " & wzFinal & " " & strShiftData & " " & strDownTime & " < return.txt" & vbCrLf wzFiles = Shell(strCommand, vbMaximizedFocus) At the command prompt, the line should look something like: C:\Program Files\Winzip\Wzzip.exe xxxx xxxx xxxx < return.txt HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of paul.hartland at fsmail.net Sent: Tuesday, April 20, 2004 8:40 AM To: accessd Subject: [AccessD] Using WinZip With Access To all, Thanks for everybody?s help on this I now know what the problem is. We are using an Evaluation copy of Winzip, if I set the focus of the Shell command below to vbMaximizedFocus: strCommand = "C:\Program Files\Winzip\Wzzip.exe " & wzFinal & " " & strShiftData & " " & strDownTime & vbCrLf wzFiles = Shell(strCommand, vbMaximizedFocus) A message appears in the window with press any key to continue, and if I press any key it works perfect. Is there anyway I can include the keypress into the Shell Command. If I can get this to work automatically then I should be able to convince the powers that be to invest in the fully registered version. Thanks again for everyone?s help on this Paul Hartland Database Designer/Developer Join the UK's number one for the internet www.freeserve.com/time -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Apr 20 19:38:23 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 20 Apr 2004 20:38:23 -0400 Subject: [AccessD] Create Junction Table From Existing Data In-Reply-To: <003001c42717$ebdff2b0$6101a8c0@dejpolsys> Message-ID: ditto. add the pk to the original. then in the new tables add the pk of the original table as a fk in the new table. this "points back" to what record it came from. POC John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of William Hindman Sent: Tuesday, April 20, 2004 4:42 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Create Junction Table From Existing Data ...I know of no simple way to do this ...my approach has always been to add an ANPK to the original table and then to use that as the control to populate the derivative tables through a series of queries ...but the circumstances change so much from mdb to mdb that I've never been able to write code that ever worked for more than one situation. William Hindman "Always code as if the person who is maintaining or testing your code is a violent psychopath who knows where you live." William Silverstein ----- Original Message ----- From: "Mitsules, Mark S. (Newport News)" To: "'[AccessD]'" Sent: Tuesday, April 20, 2004 4:23 PM Subject: [AccessD] Create Junction Table From Existing Data > Group, > > Is there a method to create a junction table from a non-normalized table? I > inherited a table that I now need to normalize into two primary tables and a > joining junction table. The primary tables were easy enough to create, but > how can I create the junction table? > > I want to take a records such as: > Fld1 Fld2 Fld3 Fld4 Fld5 <=Fields > Dat1 Fld2 Fld4 Fld5 <=Record > Dat2 Fld3 Fld4 <=Record > > And turn it into: > Fld1 FldID <=Fields > Dat1 Fld2 <=Record > Dat1 Fld4 <=Record > Dat1 Fld5 <=Record > Dat2 Fld3 <=Record > Dat2 Fld4 <=Record > > > 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 carbonnb at sympatico.ca Tue Apr 20 19:43:05 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Tue, 20 Apr 2004 20:43:05 -0400 Subject: [AccessD] Access utils and add-ins In-Reply-To: References: <12126461489.20040420161551@cactus.dk> Message-ID: <40858B59.21981.E312BC@localhost> On 20 Apr 2004 at 21:34, Harry Coenen wrote: > You can add : > Carlos J. Quintero's MZTools > http://www.mztools.com/ > Bryan Carbonnell's ListAllVBAVariables > http://www3.sympatico.ca/carbonnb/bryan/index.html > Rick Fisher's Find and Replace > http://www.rickworld.com/ > And for the ones who want to climb Wittgenstein's ladder: > Shamil Salakhetdinov's topics and DEEP concept > http://smsconsulting.spb.ru/ > (some topics are also avialble thourgh http://www.4tops.com/) > or John W. Colby's musings on developing Frameworks > http://www.colbyconsulting.com/ You put *ME* in the same league as MZTools, Rick Fisher's F&R, Shamil and JC??? You've got to be kidding!! -- Bryan Carbonnell - carbonnb at sympatico.ca We've all heard that a million monkeys banging on a million typewriters will eventually reproduce the entire works of Shakespeare. Now, thanks to the Internet, we know this is not true.^ [Robert Wilensky (1997)] From clh at christopherhawkins.com Tue Apr 20 20:00:09 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Tue, 20 Apr 2004 19:00:09 -0600 Subject: [AccessD] Query fails when using NOT IN ??? Message-ID: <255310-22004432110959@christopherhawkins.com> All, This is weird. I have a query that is supposed to return all records from a Time Entry table where the Entry ID is not in the Line Item table. So basically, it's "SELECT [field list here] FROM TimeEntry WHERE EntryID NOT IN (SELECT EntryID FROM LineItem)". Pretty simple, right? I can verify that there are a ton of records in TimeEntry that have no corresponding record in LineItem. But when I run the query above, it returns no records. Any idea? -C- From stuart at lexacorp.com.pg Tue Apr 20 20:19:14 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 21 Apr 2004 11:19:14 +1000 Subject: [AccessD] Query fails when using NOT IN ??? In-Reply-To: <255310-22004432110959@christopherhawkins.com> Message-ID: <408658B2.6832.59DA9FE@localhost> On 20 Apr 2004 at 19:00, Christopher Hawkins wrote: > All, > > This is weird. I have a query that is supposed to return all records > from a Time Entry table where the Entry ID is not in the Line Item > table. > > So basically, it's "SELECT [field list here] FROM TimeEntry WHERE > EntryID NOT IN (SELECT EntryID FROM LineItem)". > > Pretty simple, right? I can verify that there are a ton of records > in TimeEntry that have no corresponding record in LineItem. But when > I run the query above, it returns no records. > Is EntryID the same datatype in both tables? As another thought, make sure that you haven't "quoted" the subquery in your actual code.. Maybe pasting the actual code would help. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From pharryecoenen at btinternet.com Tue Apr 20 16:35:59 2004 From: pharryecoenen at btinternet.com (Harry Coenen) Date: Tue, 20 Apr 2004 22:35:59 +0100 Subject: [AccessD] Create Junction Table From Existing Data In-Reply-To: Message-ID: Hi Mark How about something like: SELECT CODE, SA FROM T1 WHERE SA NOT IS NULL UNION SELECT CODE, SAR FROM T1 WHERE SAR NOT IS NULL UNION SELECT CODE, SRD FROM T1 WHERE SRD NOT IS NULL; Then you only need to get your PK right If you really wnat the numbering as indicated you could pass the above query to a table with a PK as autonumber There must be a way to do this in the query, I have seen it somewhere, but where? Regards Harry >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >Mitsules, Mark S. (Newport News) >Sent: Tuesday, April 20, 2004 10:08 PM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Create Junction Table From Existing Data > > >I did just that to create the primary tables. But, since I've >never had to >do this on such a grand scale, I need assistance in generating >the junction >table. Here is pseudo data for clarification. I've placed dashes to >maintain alignment. > >ID--CODE--SA--SAR--SRD >1---EA1---SA--SAR--SRD >2---EEY1--SA >3---EEY2--SA--SAR--SRD > >...from the data above, I need: >PK--CODE--TYPE >1---EA1---SA >2---EA1---SAR >3---EA1---SRD >4---EEY1--SA >5---EEY2--SA >6---EEY2--SAR >7---EEY2--SRD > >Any suggestions? > >Mark > > > >-----Original Message----- >From: William Hindman [mailto:wdhindman at bellsouth.net] >Sent: Tuesday, April 20, 2004 4:42 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Create Junction Table From Existing Data > > >...I know of no simple way to do this ...my approach has >always been to add >an ANPK to the original table and then to use that as the control to >populate the derivative tables through a series of queries ...but the >circumstances change so much from mdb to mdb that I've never >been able to >write code that ever worked for more than one situation. > >William Hindman >"Always code as if the person who is maintaining or testing >your code is >a violent psychopath who knows where you live." William Silverstein > > >----- Original Message ----- >From: "Mitsules, Mark S. (Newport News)" >To: "'[AccessD]'" >Sent: Tuesday, April 20, 2004 4:23 PM >Subject: [AccessD] Create Junction Table From Existing Data > > >> Group, >> >> Is there a method to create a junction table from a >non-normalized table? >I >> inherited a table that I now need to normalize into two >primary tables and >a >> joining junction table. The primary tables were easy enough >to create, >but >> how can I create the junction table? >> >> I want to take a records such as: >> Fld1 Fld2 Fld3 Fld4 Fld5 <=Fields >> Dat1 Fld2 Fld4 Fld5 <=Record >> Dat2 Fld3 Fld4 <=Record >> >> And turn it into: >> Fld1 FldID <=Fields >> Dat1 Fld2 <=Record >> Dat1 Fld4 <=Record >> Dat1 Fld5 <=Record >> Dat2 Fld3 <=Record >> Dat2 Fld4 <=Record >> >> >> 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 andrew.haslett at ilc.gov.au Tue Apr 20 20:27:12 2004 From: andrew.haslett at ilc.gov.au (Haslett, Andrew) Date: Wed, 21 Apr 2004 10:57:12 +0930 Subject: [AccessD] Query fails when using NOT IN ??? Message-ID: I was about to say that the AccessSQL dialect may not be able to handle derived tables, but I tested it and it worked fine for me. Are they EntryID fields in both tables different data types perhaps? A workaround would be to use a Left join and filter where the EntryID is Null: Select [field list] >From TimeEntry Left Join EntryID ON TimeEntry.EntryID = LineItem.EntryID WHERE LineItem.EntryID IS Null Cheers, Andrew -----Original Message----- From: Christopher Hawkins [mailto:clh at christopherhawkins.com] Sent: Wednesday, 21 April 2004 10:30 AM To: accessd at databaseadvisors.com Subject: [AccessD] Query fails when using NOT IN ??? All, This is weird. I have a query that is supposed to return all records from a Time Entry table where the Entry ID is not in the Line Item table. So basically, it's "SELECT [field list here] FROM TimeEntry WHERE EntryID NOT IN (SELECT EntryID FROM LineItem)". Pretty simple, right? I can verify that there are a ton of records in TimeEntry that have no corresponding record in LineItem. But when I run the query above, it returns no records. Any idea? -C- -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com IMPORTANT - PLEASE READ ******************** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. From DaveSharpe2 at cox.net Tue Apr 20 20:26:15 2004 From: DaveSharpe2 at cox.net (Dave Sharpe) Date: Tue, 20 Apr 2004 21:26:15 -0400 Subject: [AccessD] Query fails when using NOT IN ??? References: <255310-22004432110959@christopherhawkins.com> Message-ID: <003101c4273f$a38dab10$dd2f0a44@bcsrkeext6137> Christopher I build graphically ( and this worked ), viewing the code Access put in some "(" and ")" that might be required. SELECT output.code FROM [output] WHERE (((output.code) Not In (SELECT output_2.code FROM output_2 ))); Dave ----- Original Message ----- From: "Christopher Hawkins" To: Sent: Tuesday, April 20, 2004 9:00 PM Subject: [AccessD] Query fails when using NOT IN ??? All, This is weird. I have a query that is supposed to return all records from a Time Entry table where the Entry ID is not in the Line Item table. So basically, it's "SELECT [field list here] FROM TimeEntry WHERE EntryID NOT IN (SELECT EntryID FROM LineItem)". Pretty simple, right? I can verify that there are a ton of records in TimeEntry that have no corresponding record in LineItem. But when I run the query above, it returns no records. Any idea? -C- -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From clh at christopherhawkins.com Tue Apr 20 20:45:23 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Tue, 20 Apr 2004 19:45:23 -0600 Subject: [AccessD] Query fails when using NOT IN ??? Message-ID: <410-2200443211452378@christopherhawkins.com> Yeah, I did something like that as a temp solution, just to my client can keep working. This is damned weird. I can do the same thing on any other two tables and it works fine. Is there a limitation on how many records can be returned in a subquery? -Christopher- ---- Original Message ---- From: andrew.haslett at ilc.gov.au To: accessd at databaseadvisors.com, Subject: RE: [AccessD] Query fails when using NOT IN ??? Date: Wed, 21 Apr 2004 10:57:12 +0930 >I was about to say that the AccessSQL dialect may not be able to >handle >derived tables, but I tested it and it worked fine for me. > >Are they EntryID fields in both tables different data types perhaps? > >A workaround would be to use a Left join and filter where the >EntryID is >Null: > >Select > [field list] >>From > TimeEntry >Left Join > EntryID >ON > TimeEntry.EntryID = LineItem.EntryID >WHERE > LineItem.EntryID IS Null > >Cheers, >Andrew > >-----Original Message----- >From: Christopher Hawkins [mailto:clh at christopherhawkins.com] >Sent: Wednesday, 21 April 2004 10:30 AM >To: accessd at databaseadvisors.com >Subject: [AccessD] Query fails when using NOT IN ??? > >All, > >This is weird. I have a query that is supposed to return all records >from a Time Entry table where the Entry ID is not in the Line Item >table. > >So basically, it's "SELECT [field list here] FROM TimeEntry WHERE >EntryID NOT IN (SELECT EntryID FROM LineItem)". > >Pretty simple, right? I can verify that there are a ton of records >in TimeEntry that have no corresponding record in LineItem. But when >I run the query above, it returns no records. > >Any idea? > >-C- > > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >IMPORTANT - PLEASE READ ******************** >This email and any files transmitted with it are confidential and >may >contain information protected by law from disclosure. >If you have received this message in error, please notify the sender >immediately and delete this email from your system. >No warranty is given that this email or files, if attached to this >email, are free from computer viruses or other defects. They >are provided on the basis the user assumes all responsibility for >loss, damage or consequence resulting directly or indirectly from >their use, whether caused by the negligence of the sender or not. >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > From clh at christopherhawkins.com Tue Apr 20 20:48:01 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Tue, 20 Apr 2004 19:48:01 -0600 Subject: [AccessD] Query fails when using NOT IN ??? Message-ID: <184670-2200443211481720@christopherhawkins.com> Yes, same datatype. No, no quotes. Here's the SQL statement. Understand that StartDate and EndDate are dates that were passed in to the function that contains this SQL. I've pulled it apart into it's component pieces; it's definitely the IN statement that is failing. Here's the SQL: sInsert = "INSERT INTO TG_InvoiceLine (BlockID, UserId, InvoiceID, ItemID, [Date], " & _ "Description, QB_ActivitiesID, Billable, QBCustomerJob, Qty, LineTotal, LineCost, Rate) " & _ "SELECT TG_qryTimeBlockReview.BlockID, TG_qryTimeBlockReview.UserId, TG_qryTimeBlockReview.InvoiceId, " & _ "TG_qryTimeBlockReview.ItemID, TG_qryTimeBlockReview.[Date], TG_qryTimeBlockReview.BlockDescription, " & _ "TG_qryTimeBlockReview.QB_ActivitiesID, TG_qryTimeBlockReview.Billable, " & _ "TG_qryTimeBlockReview.QB_NameID, TG_qryTimeBlockReview.Duration AS Qty, " & _ "TG_qryTimeBlockReview.LineTotal, TG_qryTimeBlockReview.LineCost, TG_qryTimeBlockReview.TG_Rate " & _ "FROM TG_qryTimeBlockReview WHERE TG_qryTimeBlockReview.BlockID NOT IN (SELECT BlockID FROM TG_InvoiceLine) AND (((TG_qryTimeBlockReview.[Date]) Between #" & StartDate & "# And #" & EndDate & "#));" -C- ---- Original Message ---- From: stuart at lexacorp.com.pg To: accessd at databaseadvisors.com, Subject: Re: [AccessD] Query fails when using NOT IN ??? Date: Wed, 21 Apr 2004 11:19:14 +1000 >On 20 Apr 2004 at 19:00, Christopher Hawkins wrote: > >> All, >> >> This is weird. I have a query that is supposed to return all >records >> from a Time Entry table where the Entry ID is not in the Line Item >> table. >> >> So basically, it's "SELECT [field list here] FROM TimeEntry WHERE >> EntryID NOT IN (SELECT EntryID FROM LineItem)". >> >> Pretty simple, right? I can verify that there are a ton of records >> in TimeEntry that have no corresponding record in LineItem. But >when >> I run the query above, it returns no records. >> > >Is EntryID the same datatype in both tables? > >As another thought, make sure that you haven't "quoted" the subquery >in your actual code.. > >Maybe pasting the actual code would help. > > > > > > > >-- >Lexacorp Ltd >http://www.lexacorp.com.pg >Information Technology Consultancy, Software Development,System >Support. > > > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > From clh at christopherhawkins.com Tue Apr 20 20:48:07 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Tue, 20 Apr 2004 19:48:07 -0600 Subject: [AccessD] Query fails when using NOT IN ??? Message-ID: <63340-2200443211487408@christopherhawkins.com> Yes, same datatype. No, no quotes. Here's the SQL statement. Understand that StartDate and EndDate are dates that were passed in to the function that contains this SQL. I've pulled it apart into it's component pieces; it's definitely the IN statement that is failing. Here's the SQL: sInsert = "INSERT INTO TG_InvoiceLine (BlockID, UserId, InvoiceID, ItemID, [Date], " & _ "Description, QB_ActivitiesID, Billable, QBCustomerJob, Qty, LineTotal, LineCost, Rate) " & _ "SELECT TG_qryTimeBlockReview.BlockID, TG_qryTimeBlockReview.UserId, TG_qryTimeBlockReview.InvoiceId, " & _ "TG_qryTimeBlockReview.ItemID, TG_qryTimeBlockReview.[Date], TG_qryTimeBlockReview.BlockDescription, " & _ "TG_qryTimeBlockReview.QB_ActivitiesID, TG_qryTimeBlockReview.Billable, " & _ "TG_qryTimeBlockReview.QB_NameID, TG_qryTimeBlockReview.Duration AS Qty, " & _ "TG_qryTimeBlockReview.LineTotal, TG_qryTimeBlockReview.LineCost, TG_qryTimeBlockReview.TG_Rate " & _ "FROM TG_qryTimeBlockReview WHERE TG_qryTimeBlockReview.BlockID NOT IN (SELECT BlockID FROM TG_InvoiceLine) AND (((TG_qryTimeBlockReview.[Date]) Between #" & StartDate & "# And #" & EndDate & "#));" -C- ---- Original Message ---- From: stuart at lexacorp.com.pg To: accessd at databaseadvisors.com, Subject: Re: [AccessD] Query fails when using NOT IN ??? Date: Wed, 21 Apr 2004 11:19:14 +1000 >On 20 Apr 2004 at 19:00, Christopher Hawkins wrote: > >> All, >> >> This is weird. I have a query that is supposed to return all >records >> from a Time Entry table where the Entry ID is not in the Line Item >> table. >> >> So basically, it's "SELECT [field list here] FROM TimeEntry WHERE >> EntryID NOT IN (SELECT EntryID FROM LineItem)". >> >> Pretty simple, right? I can verify that there are a ton of records >> in TimeEntry that have no corresponding record in LineItem. But >when >> I run the query above, it returns no records. >> > >Is EntryID the same datatype in both tables? > >As another thought, make sure that you haven't "quoted" the subquery >in your actual code.. > >Maybe pasting the actual code would help. > > > > > > > >-- >Lexacorp Ltd >http://www.lexacorp.com.pg >Information Technology Consultancy, Software Development,System >Support. > > > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > From andrew.haslett at ilc.gov.au Tue Apr 20 21:00:53 2004 From: andrew.haslett at ilc.gov.au (Haslett, Andrew) Date: Wed, 21 Apr 2004 11:30:53 +0930 Subject: [AccessD] Query fails when using NOT IN ??? Message-ID: And it still doesn't work if you drop off the date related 'AND' clause in the where function? -----Original Message----- From: Christopher Hawkins [mailto:clh at christopherhawkins.com] Sent: Wednesday, 21 April 2004 11:18 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Query fails when using NOT IN ??? Yes, same datatype. No, no quotes. Here's the SQL statement. Understand that StartDate and EndDate are dates that were passed in to the function that contains this SQL. I've pulled it apart into it's component pieces; it's definitely the IN statement that is failing. Here's the SQL: sInsert = "INSERT INTO TG_InvoiceLine (BlockID, UserId, InvoiceID, ItemID, [Date], " & _ "Description, QB_ActivitiesID, Billable, QBCustomerJob, Qty, LineTotal, LineCost, Rate) " & _ "SELECT TG_qryTimeBlockReview.BlockID, TG_qryTimeBlockReview.UserId, TG_qryTimeBlockReview.InvoiceId, " & _ "TG_qryTimeBlockReview.ItemID, TG_qryTimeBlockReview.[Date], TG_qryTimeBlockReview.BlockDescription, " & _ "TG_qryTimeBlockReview.QB_ActivitiesID, TG_qryTimeBlockReview.Billable, " & _ "TG_qryTimeBlockReview.QB_NameID, TG_qryTimeBlockReview.Duration AS Qty, " & _ "TG_qryTimeBlockReview.LineTotal, TG_qryTimeBlockReview.LineCost, TG_qryTimeBlockReview.TG_Rate " & _ "FROM TG_qryTimeBlockReview WHERE TG_qryTimeBlockReview.BlockID NOT IN (SELECT BlockID FROM TG_InvoiceLine) AND (((TG_qryTimeBlockReview.[Date]) Between #" & StartDate & "# And #" & EndDate & "#));" -C- ---- Original Message ---- From: stuart at lexacorp.com.pg To: accessd at databaseadvisors.com, Subject: Re: [AccessD] Query fails when using NOT IN ??? Date: Wed, 21 Apr 2004 11:19:14 +1000 >On 20 Apr 2004 at 19:00, Christopher Hawkins wrote: > >> All, >> >> This is weird. I have a query that is supposed to return all >records >> from a Time Entry table where the Entry ID is not in the Line Item >> table. >> >> So basically, it's "SELECT [field list here] FROM TimeEntry WHERE >> EntryID NOT IN (SELECT EntryID FROM LineItem)". >> >> Pretty simple, right? I can verify that there are a ton of records >> in TimeEntry that have no corresponding record in LineItem. But >when >> I run the query above, it returns no records. >> > >Is EntryID the same datatype in both tables? > >As another thought, make sure that you haven't "quoted" the subquery >in your actual code.. > >Maybe pasting the actual code would help. > > > > > > > >-- >Lexacorp Ltd >http://www.lexacorp.com.pg >Information Technology Consultancy, Software Development,System >Support. > > > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com IMPORTANT - PLEASE READ ******************** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. From stuart at lexacorp.com.pg Tue Apr 20 21:07:36 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 21 Apr 2004 12:07:36 +1000 Subject: [AccessD] Query fails when using NOT IN ??? In-Reply-To: <63340-2200443211487408@christopherhawkins.com> Message-ID: <40866408.26705.5C9F22C@localhost> On 20 Apr 2004 at 19:48, Christopher Hawkins wrote: > Yes, same datatype. No, no quotes. > > Here's the SQL statement. Understand that StartDate and EndDate are > dates that were passed in to the function that contains this SQL. > I've pulled it apart into it's component pieces; it's definitely the > IN statement that is failing. > 1. Does it resolve to: " (NOT IN.... ) AND...." or "NOT (IN.... AND....)" Try changing it to "(NOT IN (SELECT BlockID FROM TG_InvoiceLine)) AND" 2. Are you 105% certain that it's not "(((TG_qryTimeBlockReview.[Date]) Between #" & StartDate & "# And #" & EndDate & "#))" that's failing. Parsing dates properly can be a real hassle. Your version is likely to fail if the default date fromat is "dd/mm/yy" Try something like ....."Between " & Format$(StartDate,"#mm/dd/yy#") " & " AND " _ & Format$(EndDate,"#mm/dd/yy#") & ..... > Here's the SQL: > > sInsert = "INSERT INTO TG_InvoiceLine (BlockID, UserId, > InvoiceID, ItemID, [Date], " & _ > "Description, QB_ActivitiesID, Billable, QBCustomerJob, > Qty, LineTotal, LineCost, Rate) " & _ > "SELECT TG_qryTimeBlockReview.BlockID, > TG_qryTimeBlockReview.UserId, TG_qryTimeBlockReview.InvoiceId, " & _ > "TG_qryTimeBlockReview.ItemID, > TG_qryTimeBlockReview.[Date], TG_qryTimeBlockReview.BlockDescription, > " & _ > "TG_qryTimeBlockReview.QB_ActivitiesID, > TG_qryTimeBlockReview.Billable, " & _ > "TG_qryTimeBlockReview.QB_NameID, > TG_qryTimeBlockReview.Duration AS Qty, " & _ > "TG_qryTimeBlockReview.LineTotal, > TG_qryTimeBlockReview.LineCost, TG_qryTimeBlockReview.TG_Rate " & _ > "FROM TG_qryTimeBlockReview WHERE > TG_qryTimeBlockReview.BlockID NOT IN (SELECT BlockID FROM > TG_InvoiceLine) AND (((TG_qryTimeBlockReview.[Date]) Between #" & > StartDate & "# And #" & EndDate & "#));" > -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From clh at christopherhawkins.com Tue Apr 20 21:12:11 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Tue, 20 Apr 2004 20:12:11 -0600 Subject: [AccessD] Query fails when using NOT IN ??? Message-ID: <265000-22004432121211411@christopherhawkins.com> Right. As long as that IN statement is there, this thing returns zero records. There should be 262. -C- ---- Original Message ---- From: andrew.haslett at ilc.gov.au To: accessd at databaseadvisors.com, Subject: RE: [AccessD] Query fails when using NOT IN ??? Date: Wed, 21 Apr 2004 11:30:53 +0930 >And it still doesn't work if you drop off the date related 'AND' >clause in >the where function? > >-----Original Message----- >From: Christopher Hawkins [mailto:clh at christopherhawkins.com] >Sent: Wednesday, 21 April 2004 11:18 AM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Query fails when using NOT IN ??? > >Yes, same datatype. No, no quotes. > >Here's the SQL statement. Understand that StartDate and EndDate are >dates that were passed in to the function that contains this SQL. >I've pulled it apart into it's component pieces; it's definitely the >IN statement that is failing. > >Here's the SQL: > > sInsert = "INSERT INTO TG_InvoiceLine (BlockID, UserId, >InvoiceID, ItemID, [Date], " & _ > "Description, QB_ActivitiesID, Billable, QBCustomerJob, >Qty, LineTotal, LineCost, Rate) " & _ > "SELECT TG_qryTimeBlockReview.BlockID, >TG_qryTimeBlockReview.UserId, TG_qryTimeBlockReview.InvoiceId, " & _ > "TG_qryTimeBlockReview.ItemID, >TG_qryTimeBlockReview.[Date], TG_qryTimeBlockReview.BlockDescription, >" & _ > "TG_qryTimeBlockReview.QB_ActivitiesID, >TG_qryTimeBlockReview.Billable, " & _ > "TG_qryTimeBlockReview.QB_NameID, >TG_qryTimeBlockReview.Duration AS Qty, " & _ > "TG_qryTimeBlockReview.LineTotal, >TG_qryTimeBlockReview.LineCost, TG_qryTimeBlockReview.TG_Rate " & _ > "FROM TG_qryTimeBlockReview WHERE >TG_qryTimeBlockReview.BlockID NOT IN (SELECT BlockID FROM >TG_InvoiceLine) AND (((TG_qryTimeBlockReview.[Date]) Between #" & >StartDate & "# And #" & EndDate & "#));" > >-C- > >---- Original Message ---- >From: stuart at lexacorp.com.pg >To: accessd at databaseadvisors.com, >Subject: Re: [AccessD] Query fails when using NOT IN ??? >Date: Wed, 21 Apr 2004 11:19:14 +1000 > >>On 20 Apr 2004 at 19:00, Christopher Hawkins wrote: >> >>> All, >>> >>> This is weird. I have a query that is supposed to return all >>records >>> from a Time Entry table where the Entry ID is not in the Line Item >>> table. >>> >>> So basically, it's "SELECT [field list here] FROM TimeEntry WHERE >>> EntryID NOT IN (SELECT EntryID FROM LineItem)". >>> >>> Pretty simple, right? I can verify that there are a ton of >records >>> in TimeEntry that have no corresponding record in LineItem. But >>when >>> I run the query above, it returns no records. >>> >> >>Is EntryID the same datatype in both tables? >> >>As another thought, make sure that you haven't "quoted" the >subquery >>in your actual code.. >> >>Maybe pasting the actual code would help. >> >> >> >> >> >> >> >>-- >>Lexacorp Ltd >>http://www.lexacorp.com.pg >>Information Technology Consultancy, Software Development,System >>Support. >> >> >> >>-- >>_______________________________________________ >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> > > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >IMPORTANT - PLEASE READ ******************** >This email and any files transmitted with it are confidential and >may >contain information protected by law from disclosure. >If you have received this message in error, please notify the sender >immediately and delete this email from your system. >No warranty is given that this email or files, if attached to this >email, are free from computer viruses or other defects. They >are provided on the basis the user assumes all responsibility for >loss, damage or consequence resulting directly or indirectly from >their use, whether caused by the negligence of the sender or not. >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > From ssharkins at bellsouth.net Tue Apr 20 21:17:25 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 20 Apr 2004 22:17:25 -0400 Subject: [AccessD] Query fails when using NOT IN ??? In-Reply-To: <265000-22004432121211411@christopherhawkins.com> Message-ID: <20040421021754.NPWG1778.imf18aec.mail.bellsouth.net@SUSANONE> Are you sure the data you're checking meets the conditions? I didn't see the original question, but if the syntax is correct, then the data's wrong. I've seen something as simple as a leading space throw off the results and they're hard to find. Right. As long as that IN statement is there, this thing returns zero records. There should be 262. -C- ---- Original Message ---- From: andrew.haslett at ilc.gov.au To: accessd at databaseadvisors.com, Subject: RE: [AccessD] Query fails when using NOT IN ??? Date: Wed, 21 Apr 2004 11:30:53 +0930 >And it still doesn't work if you drop off the date related 'AND' >clause in >the where function? > >-----Original Message----- >From: Christopher Hawkins [mailto:clh at christopherhawkins.com] >Sent: Wednesday, 21 April 2004 11:18 AM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Query fails when using NOT IN ??? > >Yes, same datatype. No, no quotes. > >Here's the SQL statement. Understand that StartDate and EndDate are >dates that were passed in to the function that contains this SQL. >I've pulled it apart into it's component pieces; it's definitely the IN >statement that is failing. > >Here's the SQL: > > sInsert = "INSERT INTO TG_InvoiceLine (BlockID, UserId, >InvoiceID, ItemID, [Date], " & _ > "Description, QB_ActivitiesID, Billable, QBCustomerJob, >Qty, LineTotal, LineCost, Rate) " & _ > "SELECT TG_qryTimeBlockReview.BlockID, >TG_qryTimeBlockReview.UserId, TG_qryTimeBlockReview.InvoiceId, " & _ > "TG_qryTimeBlockReview.ItemID, >TG_qryTimeBlockReview.[Date], TG_qryTimeBlockReview.BlockDescription, >" & _ > "TG_qryTimeBlockReview.QB_ActivitiesID, >TG_qryTimeBlockReview.Billable, " & _ > "TG_qryTimeBlockReview.QB_NameID, >TG_qryTimeBlockReview.Duration AS Qty, " & _ > "TG_qryTimeBlockReview.LineTotal, >TG_qryTimeBlockReview.LineCost, TG_qryTimeBlockReview.TG_Rate " & _ > "FROM TG_qryTimeBlockReview WHERE >TG_qryTimeBlockReview.BlockID NOT IN (SELECT BlockID FROM >TG_InvoiceLine) AND (((TG_qryTimeBlockReview.[Date]) Between #" & >StartDate & "# And #" & EndDate & "#));" > >-C- > >---- Original Message ---- >From: stuart at lexacorp.com.pg >To: accessd at databaseadvisors.com, >Subject: Re: [AccessD] Query fails when using NOT IN ??? >Date: Wed, 21 Apr 2004 11:19:14 +1000 > >>On 20 Apr 2004 at 19:00, Christopher Hawkins wrote: >> >>> All, >>> >>> This is weird. I have a query that is supposed to return all >>records >>> from a Time Entry table where the Entry ID is not in the Line Item >>> table. >>> >>> So basically, it's "SELECT [field list here] FROM TimeEntry WHERE >>> EntryID NOT IN (SELECT EntryID FROM LineItem)". >>> >>> Pretty simple, right? I can verify that there are a ton of >records >>> in TimeEntry that have no corresponding record in LineItem. But >>when >>> I run the query above, it returns no records. >>> >> >>Is EntryID the same datatype in both tables? >> >>As another thought, make sure that you haven't "quoted" the >subquery >>in your actual code.. >> >>Maybe pasting the actual code would help. >> >> >> >> >> >> >> >>-- >>Lexacorp Ltd >>http://www.lexacorp.com.pg >>Information Technology Consultancy, Software Development,System >>Support. >> >> >> >>-- >>_______________________________________________ >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> > > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >IMPORTANT - PLEASE READ ******************** This email and any files >transmitted with it are confidential and may contain information >protected by law from disclosure. >If you have received this message in error, please notify the sender >immediately and delete this email from your system. >No warranty is given that this email or files, if attached to this >email, are free from computer viruses or other defects. They are >provided on the basis the user assumes all responsibility for loss, >damage or consequence resulting directly or indirectly from their use, >whether caused by the negligence of the sender or not. >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From clh at christopherhawkins.com Tue Apr 20 21:27:14 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Tue, 20 Apr 2004 20:27:14 -0600 Subject: [AccessD] Query fails when using NOT IN ??? Message-ID: <191690-22004432122714422@christopherhawkins.com> AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUGH! There were some nulls in the BlockID field of the TG_InvoiceLine table. I set those to 0 and the IN statement started to work again. Heh. What an idiot. Thanks, everybody, and especially Susan for bringing up the dirty data angle. -C- ---- Original Message ---- From: ssharkins at bellsouth.net To: accessd at databaseadvisors.com, Subject: RE: [AccessD] Query fails when using NOT IN ??? Date: Tue, 20 Apr 2004 22:17:25 -0400 >Are you sure the data you're checking meets the conditions? I didn't >see the >original question, but if the syntax is correct, then the data's >wrong. I've >seen something as simple as a leading space throw off the results and >they're hard to find. > > >Right. As long as that IN statement is there, this thing returns >zero >records. There should be 262. > >-C- > >---- Original Message ---- >From: andrew.haslett at ilc.gov.au >To: accessd at databaseadvisors.com, >Subject: RE: [AccessD] Query fails when using NOT IN ??? >Date: Wed, 21 Apr 2004 11:30:53 +0930 > >>And it still doesn't work if you drop off the date related 'AND' >>clause in >>the where function? >> >>-----Original Message----- >>From: Christopher Hawkins [mailto:clh at christopherhawkins.com] >>Sent: Wednesday, 21 April 2004 11:18 AM >>To: accessd at databaseadvisors.com >>Subject: Re: [AccessD] Query fails when using NOT IN ??? >> >>Yes, same datatype. No, no quotes. >> >>Here's the SQL statement. Understand that StartDate and EndDate >are >>dates that were passed in to the function that contains this SQL. >>I've pulled it apart into it's component pieces; it's definitely >the IN >>statement that is failing. >> >>Here's the SQL: >> >> sInsert = "INSERT INTO TG_InvoiceLine (BlockID, UserId, >>InvoiceID, ItemID, [Date], " & _ >> "Description, QB_ActivitiesID, Billable, QBCustomerJob, >>Qty, LineTotal, LineCost, Rate) " & _ >> "SELECT TG_qryTimeBlockReview.BlockID, >>TG_qryTimeBlockReview.UserId, TG_qryTimeBlockReview.InvoiceId, " & _ >> "TG_qryTimeBlockReview.ItemID, >>TG_qryTimeBlockReview.[Date], >TG_qryTimeBlockReview.BlockDescription, >>" & _ >> "TG_qryTimeBlockReview.QB_ActivitiesID, >>TG_qryTimeBlockReview.Billable, " & _ >> "TG_qryTimeBlockReview.QB_NameID, >>TG_qryTimeBlockReview.Duration AS Qty, " & _ >> "TG_qryTimeBlockReview.LineTotal, >>TG_qryTimeBlockReview.LineCost, TG_qryTimeBlockReview.TG_Rate " & _ >> "FROM TG_qryTimeBlockReview WHERE >>TG_qryTimeBlockReview.BlockID NOT IN (SELECT BlockID FROM >>TG_InvoiceLine) AND (((TG_qryTimeBlockReview.[Date]) Between #" & >>StartDate & "# And #" & EndDate & "#));" >> >>-C- >> >>---- Original Message ---- >>From: stuart at lexacorp.com.pg >>To: accessd at databaseadvisors.com, >>Subject: Re: [AccessD] Query fails when using NOT IN ??? >>Date: Wed, 21 Apr 2004 11:19:14 +1000 >> >>>On 20 Apr 2004 at 19:00, Christopher Hawkins wrote: >>> >>>> All, >>>> >>>> This is weird. I have a query that is supposed to return all >>>records >>>> from a Time Entry table where the Entry ID is not in the Line >Item >>>> table. >>>> >>>> So basically, it's "SELECT [field list here] FROM TimeEntry >WHERE >>>> EntryID NOT IN (SELECT EntryID FROM LineItem)". >>>> >>>> Pretty simple, right? I can verify that there are a ton of >>records >>>> in TimeEntry that have no corresponding record in LineItem. But >>>when >>>> I run the query above, it returns no records. >>>> >>> >>>Is EntryID the same datatype in both tables? >>> >>>As another thought, make sure that you haven't "quoted" the >>subquery >>>in your actual code.. >>> >>>Maybe pasting the actual code would help. >>> >>> >>> >>> >>> >>> >>> >>>-- >>>Lexacorp Ltd >>>http://www.lexacorp.com.pg >>>Information Technology Consultancy, Software Development,System >>>Support. >>> >>> >>> >>>-- >>>_______________________________________________ >>>AccessD mailing list >>>AccessD at databaseadvisors.com >>>http://databaseadvisors.com/mailman/listinfo/accessd >>>Website: http://www.databaseadvisors.com >>> >> >> >>-- >>_______________________________________________ >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >>IMPORTANT - PLEASE READ ******************** This email and any >files >>transmitted with it are confidential and may contain information >>protected by law from disclosure. >>If you have received this message in error, please notify the >sender >>immediately and delete this email from your system. >>No warranty is given that this email or files, if attached to this >>email, are free from computer viruses or other defects. They are >>provided on the basis the user assumes all responsibility for loss, >>damage or consequence resulting directly or indirectly from their >use, >>whether caused by the negligence of the sender or not. >>-- >>_______________________________________________ >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> > > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >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 Tue Apr 20 21:35:53 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 20 Apr 2004 22:35:53 -0400 Subject: [AccessD] Query fails when using NOT IN ??? In-Reply-To: <191690-22004432122714422@christopherhawkins.com> Message-ID: <20040421023552.SAUG1774.imf19aec.mail.bellsouth.net@SUSANONE> Susan's my name, dirty data's my game... ;) Glad to help. Susan H. AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUGH! There were some nulls in the BlockID field of the TG_InvoiceLine table. I set those to 0 and the IN statement started to work again. Heh. What an idiot. Thanks, everybody, and especially Susan for bringing up the dirty data angle. From accessd at shaw.ca Tue Apr 20 21:41:17 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Tue, 20 Apr 2004 19:41:17 -0700 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <20040420204838.HADS1779.imf21aec.mail.bellsouth.net@SUSANONE> Message-ID: Hi Susan: ... how would you prevent an error in the form? I suppose I could just handle it and remind the user to open the form and ... Private Sub Report_Open(Cancel As Integer) If SysCmd(acSysCmdGetObjectState, acForm, "TheFormthatIwhat") <> 0 Then If Forms("TheFormthatIwhat").CurrentView = 0 Then MsgBox "Form Project must currently" & vbCr & _ "active to supply information.", vbExclamation, "Error..." Cancel = True End If End If End Function Place code similar to this in the Report's Open event. Jim From pharryecoenen at btinternet.com Tue Apr 20 20:58:20 2004 From: pharryecoenen at btinternet.com (Harry Coenen) Date: Wed, 21 Apr 2004 02:58:20 +0100 Subject: [AccessD] Query fails when using NOT IN ??? In-Reply-To: <63340-2200443211487408@christopherhawkins.com> Message-ID: I guess this is it: WHERE ( '<<=============================bracket added TG_qryTimeBlockReview.BlockID NOT IN ( SELECT BlockID FROM TG_InvoiceLine ) ) '<<=============================bracket added AND ( ( (TG_qryTimeBlockReview.[Date]) Between #" & StartDate & "# And #" & EndDate & "# ) ) ; " > >-C- > >---- Original Message ---- >From: stuart at lexacorp.com.pg >To: accessd at databaseadvisors.com, >Subject: Re: [AccessD] Query fails when using NOT IN ??? >Date: Wed, 21 Apr 2004 11:19:14 +1000 > >>On 20 Apr 2004 at 19:00, Christopher Hawkins wrote: >> >>> All, >>> >>> This is weird. I have a query that is supposed to return all >>records >>> from a Time Entry table where the Entry ID is not in the Line Item >>> table. >>> >>> So basically, it's "SELECT [field list here] FROM TimeEntry WHERE >>> EntryID NOT IN (SELECT EntryID FROM LineItem)". >>> >>> Pretty simple, right? I can verify that there are a ton of records >>> in TimeEntry that have no corresponding record in LineItem. But >>when >>> I run the query above, it returns no records. >>> >> >>Is EntryID the same datatype in both tables? >> >>As another thought, make sure that you haven't "quoted" the subquery >>in your actual code.. >> >>Maybe pasting the actual code would help. >> >> >> >> >> >> >> >>-- >>Lexacorp Ltd >>http://www.lexacorp.com.pg >>Information Technology Consultancy, Software Development,System >>Support. >> >> >> >>-- >>_______________________________________________ >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> > > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > From pharryecoenen at btinternet.com Tue Apr 20 17:51:05 2004 From: pharryecoenen at btinternet.com (Harry Coenen) Date: Tue, 20 Apr 2004 23:51:05 +0100 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <20040420214843.NWZL1832.imf22aec.mail.bellsouth.net@SUSANONE> Message-ID: Hi Susan >From Google: NLS = National Language Support Constant Value Description vbUseSystem 0 Use National Language Support (NLS) API setting. vbSunday 1 Sunday vbMonday 2 Monday vbTuesday 3 Tuesday vbWednesday 4 Wednesday vbThursday 5 Thursday vbFriday 6 Friday vbSaturday 7 Saturday And that's where the search ends But comparing, for example, USA and and UK(English) calendars the NLS would probably be: USA NLS = 1 = Sunday UK NLS = 2 = Monday In case of doubt, I would like to suggest your DON't use the user's system settings, but enforce the correct FirstDayOfWeek and FirstWeekofYear based on company policy Regards Harry >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >Susan Harkins >Sent: Tuesday, April 20, 2004 10:49 PM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] custom sorts/groups in a report > > >Use NLS API setting > >I suppose in both cases the value will be derived from the >systems settings >in the machines registry > >=============I wanted more infomration on NLS API -- but didn't turn up >anything. > >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 Tue Apr 20 23:19:20 2004 From: dmcafee at pacbell.net (David McAfee (Home)) Date: Tue, 20 Apr 2004 21:19:20 -0700 Subject: [AccessD] Query fails when using NOT IN ??? In-Reply-To: <184670-2200443211481720@christopherhawkins.com> Message-ID: This is a known issue with "IN (Select..." You need to create an unmatched query using left join: Select * from tblA LEFT JOIN tblB ON tblA.PK = tblB.FK WHERE tblB.FK = Null -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Christopher Hawkins Sent: Tuesday, April 20, 2004 6:48 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Query fails when using NOT IN ??? Yes, same datatype. No, no quotes. Here's the SQL statement. Understand that StartDate and EndDate are dates that were passed in to the function that contains this SQL. I've pulled it apart into it's component pieces; it's definitely the IN statement that is failing. Here's the SQL: sInsert = "INSERT INTO TG_InvoiceLine (BlockID, UserId, InvoiceID, ItemID, [Date], " & _ "Description, QB_ActivitiesID, Billable, QBCustomerJob, Qty, LineTotal, LineCost, Rate) " & _ "SELECT TG_qryTimeBlockReview.BlockID, TG_qryTimeBlockReview.UserId, TG_qryTimeBlockReview.InvoiceId, " & _ "TG_qryTimeBlockReview.ItemID, TG_qryTimeBlockReview.[Date], TG_qryTimeBlockReview.BlockDescription, " & _ "TG_qryTimeBlockReview.QB_ActivitiesID, TG_qryTimeBlockReview.Billable, " & _ "TG_qryTimeBlockReview.QB_NameID, TG_qryTimeBlockReview.Duration AS Qty, " & _ "TG_qryTimeBlockReview.LineTotal, TG_qryTimeBlockReview.LineCost, TG_qryTimeBlockReview.TG_Rate " & _ "FROM TG_qryTimeBlockReview WHERE TG_qryTimeBlockReview.BlockID NOT IN (SELECT BlockID FROM TG_InvoiceLine) AND (((TG_qryTimeBlockReview.[Date]) Between #" & StartDate & "# And #" & EndDate & "#));" -C- ---- Original Message ---- From: stuart at lexacorp.com.pg To: accessd at databaseadvisors.com, Subject: Re: [AccessD] Query fails when using NOT IN ??? Date: Wed, 21 Apr 2004 11:19:14 +1000 >On 20 Apr 2004 at 19:00, Christopher Hawkins wrote: > >> All, >> >> This is weird. I have a query that is supposed to return all >records >> from a Time Entry table where the Entry ID is not in the Line Item >> table. >> >> So basically, it's "SELECT [field list here] FROM TimeEntry WHERE >> EntryID NOT IN (SELECT EntryID FROM LineItem)". >> >> Pretty simple, right? I can verify that there are a ton of records >> in TimeEntry that have no corresponding record in LineItem. But >when >> I run the query above, it returns no records. >> > >Is EntryID the same datatype in both tables? > >As another thought, make sure that you haven't "quoted" the subquery >in your actual code.. > >Maybe pasting the actual code would help. From pharryecoenen at btinternet.com Tue Apr 20 20:51:19 2004 From: pharryecoenen at btinternet.com (Harry Coenen) Date: Wed, 21 Apr 2004 02:51:19 +0100 Subject: [AccessD] Query fails when using NOT IN ??? In-Reply-To: <255310-22004432110959@christopherhawkins.com> Message-ID: Christopher Should work indeed (does in A2k2) a.1 If in Query designer, look at properties of query a.2 Make sure the both EntryID fields are of the same DataType a.3 check for trailing spaces if this datatype is Text (can happen with impoerts from other sources or connections with other sources. Use Trim() to strip of spaces in the query (see below) b. avoid possible ambiguity by ysing table SELECT [field list here] FROM TimeEntry WHERE Trim(TimeEntry.EntryID) NOT IN (SELECT Trim(LineItem.EntryID) FROM LineItem) c. try the JOIN equivalent, works probably faster because the engine should deliver better optimization SELECT [field list here] FROM TimeEntry LEFT JOIN LineItem ON TimeEntry.EntryID = LineItem.EntryID WHERE (LineItem.EntryID Is Null) ; d. Try SELECT [field list here] FROM TimeEntry WHERE NOT EXISTS (SELECT LineItem.EntryID FROM LineItem WHERE LineItem.EntryID = TimeEntry.EntryID) ; e. Give Up -- >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >Christopher Hawkins >Sent: Wednesday, April 21, 2004 2:00 AM >To: accessd at databaseadvisors.com >Subject: [AccessD] Query fails when using NOT IN ??? > > >All, > >This is weird. I have a query that is supposed to return all records >from a Time Entry table where the Entry ID is not in the Line Item >table. > >So basically, it's "SELECT [field list here] FROM TimeEntry WHERE >EntryID NOT IN (SELECT EntryID FROM LineItem)". > >Pretty simple, right? I can verify that there are a ton of records >in TimeEntry that have no corresponding record in LineItem. But when >I run the query above, it returns no records. > >Any idea? > >-C- > > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > From gustav at cactus.dk Wed Apr 21 03:19:20 2004 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 21 Apr 2004 10:19:20 +0200 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <20040420204838.HADS1779.imf21aec.mail.bellsouth.net@SUSANONE> References: <20040420204838.HADS1779.imf21aec.mail.bellsouth.net@SUSANONE> Message-ID: <655792989.20040421101920@cactus.dk> Hi Susan Well, I didn't try to prove an alternative method would be "easier", and you didn't specify that the report should be able to run without the form open; it sounded liked you opened the report from a button on the form after having selected a First-Day-Of-Week. I agree that for wild "applications" where users can do anything even having access to tables and report/form design you must take into account that this or that form may not be open or may have been closed by the user. There are many ways to handle these chaos scenarios, ranging from simple error traps and message boxes to, for this case, forcing the report to open the form if it is closed or closing the report on open if the form is not open. The missing selection of a First-Day-Of-Week on the form could be handled by setting a default value. For myself, I would probably apply the suggestion of Stuart, but I realize that static functions may fly above the head of the average user. /gustav > If the expression's in the query and you open the report without specifying > the value in the form, how would you prevent an error in the form? I suppose > I could just handle it and remind the user to open the form and choose the > first day of the week. > Right now, I've set the report to default to a value and since the > expression's in the report, it works whether you start from the form or just > open the report. You can't specify the grouping value when you open the > report that way, but at least there's no error -- which is a nice > alternative especially if the first day of the week seldom changes. That way > the user's not forced to go through the form every time. > I realize I sound really picky -- but these are the sort of nitpicky > problems I get from readers. These solutions have to be as universal as > possible or I get email. :) "It won't work if...." even when I've told them > clearly in the article that it won't work if... but somehow it's still the > article's shortcoming. It's always best if I can head them off. > Which reminds me -- can someone explain the vbUseSystem constant? There's > almost nothing about it on msdn. It's a system default, but there's not much > about it. Well, the serious search-challenged was unable to find anything on > it besides a vague reference -- no real explanation of the consequences. > Susan H. > Hi Susan > In the query you can pick the value from the form as an expression: > Select > ..., > [Forms].[frmSomeForm].[txtTextbox] As FirstDayOfWeek > From > ... > Is is recommendable also to specify this as a parameter to avoid type > mismatch errors, indeed if the textbox is unbound: > Parameters [Forms].[frmSomeForm].[txtTextbox] Byte; > I don't know what your module does, but basically the date of the first day > of the week of datDate can be found from this formula: > DateWeekFirst = > DateAdd("d", vbSunday - WeekDay(datDate, FirstDayOfWeek), datDate) > You would need to replace vbSunday with the actual value (1 for A97). > End Function > /gustav >> Let me rephrase that -- if I have to have a module, I don't think I >> really care what gets passed where -- my hope was to eliminate the >> module and do all the calculating in the query or the report and I >> thought I might be able to bypass the module using the openargs >> argument. Replacing the module I have for one that passes the value to >> a query really doesn't resolve the issue I had. >> Susan H. >> That's what I'd like to do -- and may do yet by passing the >> firstdayofweek value from the form to the query instead of the report. >> Truth is, I don't know how -- I can't remember ever passing a value to >> a query before and a parameter query is out. > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From gustav at cactus.dk Wed Apr 21 04:16:27 2004 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 21 Apr 2004 11:16:27 +0200 Subject: [AccessD] Create Junction Table From Existing Data In-Reply-To: References: Message-ID: <1139219717.20040421111627@cactus.dk> Hi Mark I would go with the union query as well. The ID can be added by a function like this: Public Function SequentialID( _ ByVal booReset As Boolean, _ Optional ByVal varDummy, _ Optional ByVal intIncrement As Integer = 1, _ Optional ByVal lngInitialID As Long) As Long ' Increments static variable lngCurrentID with intIncrement. ' Returns the new value of lngCurrentID. ' Parameter varDummy is used to force repeated calls of ' this function when used in a query. ' ' Reset to start counting from zero incrementing by one: ' Call SequentialID(True) ' Reset to start counting from 1000: ' Call SequentialID(True, Null, 1, 1000) ' Reset to start counting from zero incrementing by 2: ' Call SequentialID(True, Null, 2) ' Reset to start counting from -2000 incrementing by -8 ' and returning initial ID: ' lngID = SequentialID(True, Null, -8, -2000) ' ' Retrieve the current ID: ' lngID = SequentialID(False) ' Do a count by one and retrieve the current ID: ' lngID = SequentialID(False, Null, 1) ' Do a count by one in a query and retrieve the current ID: ' lngID = SequentialID(False, [fldAnyField], 1) ' Do a count by minus two and retrieve the current ID: ' lngID = SequentialID(False, varAny, -2) ' ' 2001-12-13. Cactus Data ApS, CPH. Static lngCurrentID As Long Dim intSgn As Integer If booReset = True Then ' Reset ID. lngCurrentID = lngInitialID ElseIf Not intIncrement = 0 Then intSgn = Sgn(intIncrement) If intSgn * lngCurrentID < intSgn * lngInitialID Then ' Reset ID. lngCurrentID = lngInitialID Else ' Increment ID. lngCurrentID = lngCurrentID + intIncrement End If End If SequentialID = lngCurrentID End Function Have fun! /gustav > How about something like: > SELECT CODE, SA > FROM T1 > WHERE SA NOT IS NULL > UNION > SELECT CODE, SAR > FROM T1 > WHERE SAR NOT IS NULL > UNION > SELECT CODE, SRD > FROM T1 > WHERE SRD NOT IS NULL; > Then you only need to get your PK right > If you really wnat the numbering as indicated you could pass the above query > to a table with a PK as autonumber > There must be a way to do this in the query, I have seen it somewhere, but > where? > Regards > Harry >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >>Mitsules, Mark S. (Newport News) >>Sent: Tuesday, April 20, 2004 10:08 PM >>To: 'Access Developers discussion and problem solving' >>Subject: RE: [AccessD] Create Junction Table From Existing Data >> >> >>I did just that to create the primary tables. But, since I've >>never had to >>do this on such a grand scale, I need assistance in generating >>the junction >>table. Here is pseudo data for clarification. I've placed dashes to >>maintain alignment. >> >>ID--CODE--SA--SAR--SRD >>1---EA1---SA--SAR--SRD >>2---EEY1--SA >>3---EEY2--SA--SAR--SRD >> >>...from the data above, I need: >>PK--CODE--TYPE >>1---EA1---SA >>2---EA1---SAR >>3---EA1---SRD >>4---EEY1--SA >>5---EEY2--SA >>6---EEY2--SAR >>7---EEY2--SRD >> >>Any suggestions? >> >>Mark >> >> >> >>> Is there a method to create a junction table from a non-normalized table? >>> I inherited a table that I now need to normalize into two primary tables and >>> a joining junction table. The primary tables were easy enough to create, >>> but how can I create the junction table? >>> >>> I want to take a records such as: >>> Fld1 Fld2 Fld3 Fld4 Fld5 <=Fields >>> Dat1 Fld2 Fld4 Fld5 <=Record >>> Dat2 Fld3 Fld4 <=Record >>> >>> And turn it into: >>> Fld1 FldID <=Fields >>> Dat1 Fld2 <=Record >>> Dat1 Fld4 <=Record >>> Dat1 Fld5 <=Record >>> Dat2 Fld3 <=Record >>> Dat2 Fld4 <=Record From Mark.Mitsules at ngc.com Wed Apr 21 06:48:01 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Wed, 21 Apr 2004 07:48:01 -0400 Subject: [AccessD] Create Junction Table From Existing Data Message-ID: Thank you so much for your combined suggestions. I too thought that this could somehow be completed using some sort of self-join or union type of query, but had no idea as to how to proceed. I will be digesting this today. Mark -----Original Message----- From: Harry Coenen [mailto:pharryecoenen at btinternet.com] Sent: Tuesday, April 20, 2004 5:36 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Create Junction Table From Existing Data Hi Mark How about something like: SELECT CODE, SA FROM T1 WHERE SA NOT IS NULL UNION SELECT CODE, SAR FROM T1 WHERE SAR NOT IS NULL UNION SELECT CODE, SRD FROM T1 WHERE SRD NOT IS NULL; Then you only need to get your PK right If you really wnat the numbering as indicated you could pass the above query to a table with a PK as autonumber There must be a way to do this in the query, I have seen it somewhere, but where? Regards Harry >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >Mitsules, Mark S. (Newport News) >Sent: Tuesday, April 20, 2004 10:08 PM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Create Junction Table From Existing Data > > >I did just that to create the primary tables. But, since I've >never had to >do this on such a grand scale, I need assistance in generating >the junction >table. Here is pseudo data for clarification. I've placed dashes to >maintain alignment. > >ID--CODE--SA--SAR--SRD >1---EA1---SA--SAR--SRD >2---EEY1--SA >3---EEY2--SA--SAR--SRD > >...from the data above, I need: >PK--CODE--TYPE >1---EA1---SA >2---EA1---SAR >3---EA1---SRD >4---EEY1--SA >5---EEY2--SA >6---EEY2--SAR >7---EEY2--SRD > >Any suggestions? > >Mark > > > >-----Original Message----- >From: William Hindman [mailto:wdhindman at bellsouth.net] >Sent: Tuesday, April 20, 2004 4:42 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Create Junction Table From Existing Data > > >...I know of no simple way to do this ...my approach has >always been to add >an ANPK to the original table and then to use that as the control to >populate the derivative tables through a series of queries ...but the >circumstances change so much from mdb to mdb that I've never >been able to >write code that ever worked for more than one situation. > >William Hindman >"Always code as if the person who is maintaining or testing >your code is >a violent psychopath who knows where you live." William Silverstein > > >----- Original Message ----- >From: "Mitsules, Mark S. (Newport News)" >To: "'[AccessD]'" >Sent: Tuesday, April 20, 2004 4:23 PM >Subject: [AccessD] Create Junction Table From Existing Data > > >> Group, >> >> Is there a method to create a junction table from a >non-normalized table? >I >> inherited a table that I now need to normalize into two >primary tables and >a >> joining junction table. The primary tables were easy enough >to create, >but >> how can I create the junction table? >> >> I want to take a records such as: >> Fld1 Fld2 Fld3 Fld4 Fld5 <=Fields >> Dat1 Fld2 Fld4 Fld5 <=Record >> Dat2 Fld3 Fld4 <=Record >> >> And turn it into: >> Fld1 FldID <=Fields >> Dat1 Fld2 <=Record >> Dat1 Fld4 <=Record >> Dat1 Fld5 <=Record >> Dat2 Fld3 <=Record >> Dat2 Fld4 <=Record >> >> >> 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 Mark.Mitsules at ngc.com Wed Apr 21 06:53:08 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Wed, 21 Apr 2004 07:53:08 -0400 Subject: [AccessD] Create Junction Table From Existing Data Message-ID: This is the approach I was leaning towards. I've parsed many a text file in my day and can definitely do this, but, being primarily self-taught in SQL, I thought perhaps I was missing something basic that would be considered common knowledge to most. Mark -----Original Message----- From: Stuart McLachlan [mailto:stuart at lexacorp.com.pg] Sent: Tuesday, April 20, 2004 7:23 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Create Junction Table From Existing Data On 20 Apr 2004 at 17:08, Mitsules, Mark S. (Newport Ne wrote: > I did just that to create the primary tables. But, since I've never had to > do this on such a grand scale, I need assistance in generating the junction > table. Here is pseudo data for clarification. I've placed dashes to > maintain alignment. > > ID--CODE--SA--SAR--SRD > 1---EA1---SA--SAR--SRD > 2---EEY1--SA > 3---EEY2--SA--SAR--SRD > > ...from the data above, I need: > PK--CODE--TYPE > 1---EA1---SA > 2---EA1---SAR > 3---EA1---SRD > 4---EEY1--SA > 5---EEY2--SA > 6---EEY2--SAR > 7---EEY2--SRD > > Any suggestions? > I'd do it in code. Open the old data set and step through it. For each record, step through the fields and create a new record in the new table where required. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. -- _______________________________________________ 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 Apr 21 07:02:45 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 21 Apr 2004 22:02:45 +1000 Subject: [AccessD] Create Junction Table From Existing Data In-Reply-To: Message-ID: <4086EF85.22013.7EAD090@localhost> On 21 Apr 2004 at 7:53, Mitsules, Mark S. (Newport Ne wrote: > This is the approach I was leaning towards. I've parsed many a text file in > my day and can definitely do this, but, being primarily self-taught in SQL, > I thought perhaps I was missing something basic that would be considered > common knowledge to most. > > I'd do it in code. > Open the old data set and step through it. > For each record, step through the fields and create a new record in > the new table where required. > Having seen a couple of other responses and thought about it a bit more, I wouldn't do it this way now. Using three UNIONed queries into an empty table with a predefinded Automnumber field is simpler. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From stuart at lexacorp.com.pg Wed Apr 21 07:02:45 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 21 Apr 2004 22:02:45 +1000 Subject: [AccessD] Create Junction Table From Existing Data In-Reply-To: Message-ID: <4086EF85.22013.7EAD090@localhost> On 21 Apr 2004 at 7:53, Mitsules, Mark S. (Newport Ne wrote: > This is the approach I was leaning towards. I've parsed many a text file in > my day and can definitely do this, but, being primarily self-taught in SQL, > I thought perhaps I was missing something basic that would be considered > common knowledge to most. > > I'd do it in code. > Open the old data set and step through it. > For each record, step through the fields and create a new record in > the new table where required. > Having seen a couple of other responses and thought about it a bit more, I wouldn't do it this way now. Using three UNIONed queries into an empty table with a predefinded Automnumber field is simpler. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From Mark.Mitsules at ngc.com Wed Apr 21 07:48:45 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Wed, 21 Apr 2004 08:48:45 -0400 Subject: [AccessD] Create Junction Table From Existing Data Message-ID: I have admittedly been using pseudo names for the actual data, there will be in fact, several more fields in this query resulting in a rather large union query. In the event that I run into problems, is there anyone who would volunteer to look over my actual query structure? Mark -----Original Message----- From: Stuart McLachlan [mailto:stuart at lexacorp.com.pg] Sent: Wednesday, April 21, 2004 8:03 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Create Junction Table From Existing Data On 21 Apr 2004 at 7:53, Mitsules, Mark S. (Newport Ne wrote: > This is the approach I was leaning towards. I've parsed many a text file in > my day and can definitely do this, but, being primarily self-taught in SQL, > I thought perhaps I was missing something basic that would be considered > common knowledge to most. > > I'd do it in code. > Open the old data set and step through it. > For each record, step through the fields and create a new record in > the new table where required. > Having seen a couple of other responses and thought about it a bit more, I wouldn't do it this way now. Using three UNIONed queries into an empty table with a predefinded Automnumber field is simpler. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. -- _______________________________________________ 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 Apr 21 08:58:37 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Wed, 21 Apr 2004 09:58:37 -0400 Subject: [AccessD] Create Junction Table From Existing Data *SOLVED* Message-ID: Although it seemed, at first, rather complicated, the union query worked great. My only thought was I wish there was a simpler way to turn a union query into a Make-Table query:( But we can't have everything, can we? Mark -----Original Message----- From: Gustav Brock [mailto:gustav at cactus.dk] Sent: Wednesday, April 21, 2004 5:16 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Create Junction Table From Existing Data Hi Mark I would go with the union query as well. The ID can be added by a function like this: Public Function SequentialID( _ ByVal booReset As Boolean, _ Optional ByVal varDummy, _ Optional ByVal intIncrement As Integer = 1, _ Optional ByVal lngInitialID As Long) As Long ' Increments static variable lngCurrentID with intIncrement. ' Returns the new value of lngCurrentID. ' Parameter varDummy is used to force repeated calls of ' this function when used in a query. ' ' Reset to start counting from zero incrementing by one: ' Call SequentialID(True) ' Reset to start counting from 1000: ' Call SequentialID(True, Null, 1, 1000) ' Reset to start counting from zero incrementing by 2: ' Call SequentialID(True, Null, 2) ' Reset to start counting from -2000 incrementing by -8 ' and returning initial ID: ' lngID = SequentialID(True, Null, -8, -2000) ' ' Retrieve the current ID: ' lngID = SequentialID(False) ' Do a count by one and retrieve the current ID: ' lngID = SequentialID(False, Null, 1) ' Do a count by one in a query and retrieve the current ID: ' lngID = SequentialID(False, [fldAnyField], 1) ' Do a count by minus two and retrieve the current ID: ' lngID = SequentialID(False, varAny, -2) ' ' 2001-12-13. Cactus Data ApS, CPH. Static lngCurrentID As Long Dim intSgn As Integer If booReset = True Then ' Reset ID. lngCurrentID = lngInitialID ElseIf Not intIncrement = 0 Then intSgn = Sgn(intIncrement) If intSgn * lngCurrentID < intSgn * lngInitialID Then ' Reset ID. lngCurrentID = lngInitialID Else ' Increment ID. lngCurrentID = lngCurrentID + intIncrement End If End If SequentialID = lngCurrentID End Function Have fun! /gustav > How about something like: > SELECT CODE, SA > FROM T1 > WHERE SA NOT IS NULL > UNION > SELECT CODE, SAR > FROM T1 > WHERE SAR NOT IS NULL > UNION > SELECT CODE, SRD > FROM T1 > WHERE SRD NOT IS NULL; > Then you only need to get your PK right > If you really wnat the numbering as indicated you could pass the above query > to a table with a PK as autonumber > There must be a way to do this in the query, I have seen it somewhere, but > where? > Regards > Harry >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >>Mitsules, Mark S. (Newport News) >>Sent: Tuesday, April 20, 2004 10:08 PM >>To: 'Access Developers discussion and problem solving' >>Subject: RE: [AccessD] Create Junction Table From Existing Data >> >> >>I did just that to create the primary tables. But, since I've >>never had to >>do this on such a grand scale, I need assistance in generating >>the junction >>table. Here is pseudo data for clarification. I've placed dashes to >>maintain alignment. >> >>ID--CODE--SA--SAR--SRD >>1---EA1---SA--SAR--SRD >>2---EEY1--SA >>3---EEY2--SA--SAR--SRD >> >>...from the data above, I need: >>PK--CODE--TYPE >>1---EA1---SA >>2---EA1---SAR >>3---EA1---SRD >>4---EEY1--SA >>5---EEY2--SA >>6---EEY2--SAR >>7---EEY2--SRD >> >>Any suggestions? >> >>Mark >> >> >> >>> Is there a method to create a junction table from a non-normalized table? >>> I inherited a table that I now need to normalize into two primary tables and >>> a joining junction table. The primary tables were easy enough to create, >>> but how can I create the junction table? >>> >>> I want to take a records such as: >>> Fld1 Fld2 Fld3 Fld4 Fld5 <=Fields >>> Dat1 Fld2 Fld4 Fld5 <=Record >>> Dat2 Fld3 Fld4 <=Record >>> >>> And turn it into: >>> Fld1 FldID <=Fields >>> Dat1 Fld2 <=Record >>> Dat1 Fld4 <=Record >>> Dat1 Fld5 <=Record >>> Dat2 Fld3 <=Record >>> Dat2 Fld4 <=Record -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Wed Apr 21 09:24:09 2004 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 21 Apr 2004 16:24:09 +0200 Subject: [AccessD] Create Junction Table From Existing Data *SOLVED* In-Reply-To: References: Message-ID: <9527682034.20040421162409@cactus.dk> Hi Mark > Although it seemed, at first, rather complicated, the union query worked > great. My only thought was I wish there was a simpler way to turn a union > query into a Make-Table query:( But we can't have everything, can we? When I need that, I create the union query as a select query. Then I use that query as source in a new query (append or create) - that way you can keep the union query as simple as possible. /gustav > I would go with the union query as well. From KIsmert at TexasSystems.com Wed Apr 21 10:49:44 2004 From: KIsmert at TexasSystems.com (Ken Ismert) Date: Wed, 21 Apr 2004 10:49:44 -0500 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <20040420174912.DNB1728.imf24aec.mail.bellsouth.net@SUSANONE> Message-ID: <001a01c427b8$449dbb30$2a3ca8c0@TEXASSYSTEMS.COM> Have you tried an expression in your query like: GroupDay: (Weekday([DateField])+IIf(Weekday([DateField])<[FirstDayOfWeek],7,0)) For a FirstDayOfWeek = 4 (Wednesday), it would return the desired grouping order: WeekDay GroupDay 4 4 5 5 6 6 7 7 1 8 2 9 3 10 This way, you can avoid any function or calculated control on your report. You could replace [FirstDayOfWeek] with WeekDay(Date()), or source it from a form. -Ken -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Tuesday, April 20, 2004 12:49 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] custom sorts/groups in a report That's what I'd like to do -- and may do yet by passing the firstdayofweek value from the form to the query instead of the report. Truth is, I don't know how -- I can't remember ever passing a value to a query before and a parameter query is out. Susan H. Right. Except when I need to sort or group on an unbound control. That's when I have to add it to the query and bind the control to that field in the query. From adtp at touchtelindia.net Wed Apr 21 13:26:52 2004 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Wed, 21 Apr 2004 23:56:52 +0530 Subject: [AccessD] custom sorts/groups in a report References: <20040417224653.KZKB1818.imf25aec.mail.bellsouth.net@SUSANONE> Message-ID: <009601c427ce$7b629120$ef1865cb@winxp> Susan, For date field named CDate, in report named R_Sales, the following course of action should meet your needs - (a) In the sorting and grouping dialog box of the report, enter the following expression (pl watch for word wrap) as first item in first column - =Format([CDate],"yyyy") & Format(DatePart("ww",[CDate],Fn_WeekStart()),"00") Set the sort order to Ascending Set the group header property for this item to Yes. (b) Select CDate as the second item in sorting and grouping dialog box and set the sort order to Ascending (c) Put the following code in report's open event so as to initialize the global variable WkStart - Private Sub Report_Open(Cancel As Integer) WkStart = IIf(Len(Me.OpenArgs) > 0, Me.OpenArgs, 1) End Sub (d) In the form, put the following code in click event of the command button for opening the report - Private Sub CmdReport_Click() DoCmd.OpenReport "R_Sales", _ acViewPreview, , , , TxtWkStart End Sub ' Note - TxtWkStart is the text box where the user enters his choice of starting day of the week. Default value can be set as 1 (Sunday). Validation rule >= 1 And <= 7 (e) In the general module, code block given below may be put - Option Compare Database Option Explicit Public WkStart As Integer ' Global Variable. Public Function Fn_WeekStart() Fn_WeekStart = IIf(WkStart > 0, WkStart, 1) End Function With the above measures, dynamic manipulation of start day for weeks constituting group headers should proceed smoothly without unwanted error messages. Note - As an alternative, the global variable WkStart can be initialized directly from the click event of command button. In such a case the procedure in open event of the report (mentioned above) should be commented out. In fact this second alternative is considered preferable. Regards, A.D.Tejpal -------------- ----- Original Message ----- From: Susan Harkins To: 'Access Developers discussion and problem solving' Sent: Sunday, April 18, 2004 04:16 Subject: [AccessD] custom sorts/groups in a report I'm grouping and sorting a report on a date field. The grouping is by the week -- but I want it to handle a changing first day of the week variable. I can't get my head around it at all. Passing the first day of the week around is no problem -- I just can't seem to get Access to group by it. I've looked at CreateGroupLevel, but I don't see how that can help. I tried adding a DatePart expression to the Detail section and using the OpenArgs property to pass the first day of the week, and while the expression works, I can't group by it -- it's a calculated control. I don't want the users manipulating the underlying query either. They choose the first day of the week from a simple form and the rest needs to happen behind the scenes. Any suggestions? Susan H. From DMcAfee at haascnc.com Wed Apr 21 15:13:26 2004 From: DMcAfee at haascnc.com (David McAfee) Date: Wed, 21 Apr 2004 13:13:26 -0700 Subject: [AccessD] Query fails when using NOT IN ??? Message-ID: <657FB70438B7D311AF320090279C18010614418F@EXCHMAIL> Pinnacle's SQL Server Professional, February 2002 (Volume 8, Number 2), "Known Problems with IN/NOT IN()" This may only apply to SQL Server and not Access, but it has bit me in the a$$ before. The use of IN and NOT IN for a value list is still ok to use, but not for subqueries. I too, used it many times in Access, but then again, I also used the MAX statement through the QBE window, assuming that I was using it correctly, only to find out as I started using QA that I had been writing Max Statements incorrectly...but I digress...:S If you get your hands on that issue, also check out "The Rogue Delete": BEGIN TRANSACTION T1 SELECT COUNT (*) FROM TitleAuthor DELETE TitleAuthor WHERE au_id IN ( SELECT au_id FROM Publishers) SELECT COUNT (*) FROM TitleAuthor ROLLBACK T1 This deletes all rows in the TitleAuthor table, even though there is no au_id on the Publishers table :) Christopher Hawkins wrote: >A known issue? No kidding. I've been using the "IN (SELECT..." >statement for years and have never had a problem. > >Do you know of any MSDN or similar documentation of this issue? > >-Christopher- From ssharkins at bellsouth.net Wed Apr 21 16:30:30 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Wed, 21 Apr 2004 17:30:30 -0400 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <655792989.20040421101920@cactus.dk> Message-ID: <20040421213028.MYDD1832.imf22aec.mail.bellsouth.net@SUSANONE> The missing selection of a First-Day-Of-Week on the form could be handled by setting a default value. For myself, I would probably apply the suggestion of Stuart, but I realize that static functions may fly above the head of the average user. ========The static function isn't necessary -- it works fine without it. The open form first problem is resolved by setting a default for the report. That's what I plan to do. Susan H. From cfoust at infostatsystems.com Wed Apr 21 17:16:47 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 21 Apr 2004 15:16:47 -0700 Subject: [AccessD] custom sorts/groups in a report Message-ID: Susan, LOL *Access* flies over the head of the average user! Why should static functions make sense to them? Charlotte Foust -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Wednesday, April 21, 2004 1:31 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] custom sorts/groups in a report The missing selection of a First-Day-Of-Week on the form could be handled by setting a default value. For myself, I would probably apply the suggestion of Stuart, but I realize that static functions may fly above the head of the average user. ========The static function isn't necessary -- it works fine without it. The open form first problem is resolved by setting a default for the report. That's what I plan to do. Susan H. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Wed Apr 21 18:57:29 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Wed, 21 Apr 2004 19:57:29 -0400 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: Message-ID: <20040421235727.EEVD1714.imf16aec.mail.bellsouth.net@SUSANONE> My aim, as always is to make things work with the most normal tools I can -- because mostly, I write to the average user. Now, I can use other stuff as long as I'm very explicit. Why? Because it's a personal challenge I guess. ;) Susan H. Susan, LOL *Access* flies over the head of the average user! Why should static functions make sense to them? Charlotte Foust -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Wednesday, April 21, 2004 1:31 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] custom sorts/groups in a report The missing selection of a First-Day-Of-Week on the form could be handled by setting a default value. For myself, I would probably apply the suggestion of Stuart, but I realize that static functions may fly above the head of the average user. ========The static function isn't necessary -- it works fine without it. The open form first problem is resolved by setting a default for the report. That's what I plan to do. 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 jmhla at earthlink.net Wed Apr 21 21:10:53 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Wed, 21 Apr 2004 19:10:53 -0700 Subject: [AccessD] Hey John Colby Application Checklist Message-ID: <000a01c4280f$0db9d700$6501a8c0@delllaptop> In San Diego at the conference you spoke about some kind of checklist you were working on to set options for the application. Did that go anywhere? Is it publicly available? JOE HECHT LOS ANGELES CA From gustav at cactus.dk Thu Apr 22 01:27:18 2004 From: gustav at cactus.dk (Gustav Brock) Date: Thu, 22 Apr 2004 08:27:18 +0200 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <20040421235727.EEVD1714.imf16aec.mail.bellsouth.net@SUSANONE> References: <20040421235727.EEVD1714.imf16aec.mail.bellsouth.net@SUSANONE> Message-ID: <34826778.20040422082718@cactus.dk> Hi Susan Personal challenge? You are on a mission! /gustav > My aim, as always is to make things work with the most normal tools I can -- > because mostly, I write to the average user. Now, I can use other stuff as > long as I'm very explicit. Why? Because it's a personal challenge I guess. > ;) > Susan H. > Susan, > LOL > *Access* flies over the head of the average user! Why should static > functions make sense to them? > Charlotte Foust > -----Original Message----- > From: Susan Harkins [mailto:ssharkins at bellsouth.net] > Sent: Wednesday, April 21, 2004 1:31 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] custom sorts/groups in a report > The missing selection of a First-Day-Of-Week on the form could be > handled by setting a default value. > For myself, I would probably apply the suggestion of Stuart, but I > realize that static functions may fly above the head of the average > user. > ========The static function isn't necessary -- it works fine without it. > The open form first problem is resolved by setting a default for the > report. That's what I plan to do. > Susan H. From gustav at cactus.dk Thu Apr 22 02:00:18 2004 From: gustav at cactus.dk (Gustav Brock) Date: Thu, 22 Apr 2004 09:00:18 +0200 Subject: [AccessD] Query fails when using NOT IN ??? In-Reply-To: <657FB70438B7D311AF320090279C18010614418F@EXCHMAIL> References: <657FB70438B7D311AF320090279C18010614418F@EXCHMAIL> Message-ID: <322806795.20040422090018@cactus.dk> Hi David > Pinnacle's SQL Server Professional, February 2002 (Volume 8, Number 2), > "Known Problems with IN/NOT IN()" So which are those known problems? Susan described one only. > This may only apply to SQL Server and not Access, but it has bit me in > the a$$ before. The use of IN and NOT IN for a value list is still ok to > use, but not for subqueries. > I too, used it many times in Access, but then again, I also used the MAX > statement through the QBE window, assuming that I was using it > correctly, only to find out as I started using QA that I had been > writing Max Statements incorrectly...but I digress...:S How is MAX used incorrectly? I've never met any problems with MAX (not that I know of). > If you get your hands on that issue, also check out "The Rogue Delete": > BEGIN TRANSACTION T1 > SELECT COUNT (*) FROM TitleAuthor > DELETE TitleAuthor WHERE au_id IN ( SELECT au_id FROM Publishers) > SELECT COUNT (*) FROM TitleAuthor > ROLLBACK T1 > This deletes all rows in the TitleAuthor table, even though there is no > au_id on the Publishers table :) I can't recognize this; it behaves very politely. The syntax doesn't work in Jet SQL, but this does: DELETE FROM TitleAuthor WHERE au_id IN (SELECT au_id FROM Publishers) and it deletes zero records if Publishers is empty. If au_id doesn't exist as a field, Access asks for it as a parameter. So this is exactly as expected. Can you provide another example? Or are you talking about another SQL engine? /gustav > Christopher Hawkins wrote: >>A known issue? No kidding. I've been using the "IN (SELECT..." >>statement for years and have never had a problem. >> >>Do you know of any MSDN or similar documentation of this issue? >> >>-Christopher- From paul.hartland at fsmail.net Thu Apr 22 07:11:27 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 22 Apr 2004 14:11:27 +0200 (CEST) Subject: [AccessD] VB6 DLL Help Required Message-ID: <19983744.1082635887124.JavaMail.www@wwinf3003> To all, Been playing with creating my own DLL?s today using Visual Basic 6 and I eventually created one to send an email using the vbSendMail.dll which works a treat. But now I want to use the withevents part of the vbSendMail.dll which will return the following: Email Sent Ok Email Failed Email Staus Can I put a form inside a dll or do I somehow have to return the appropriate message to the calling application, if so how will I do this, has anyone any ideas on this? Paul Hartland Join the UK's number one for the internet www.freeserve.com/time From jwcolby at colbyconsulting.com Thu Apr 22 07:32:42 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 22 Apr 2004 08:32:42 -0400 Subject: [AccessD] VB6 DLL Help Required In-Reply-To: <19983744.1082635887124.JavaMail.www@wwinf3003> Message-ID: You must use a class to host withevents. Dim WithEvents the variable that references the dll. Then create the event stubs in the class. That's the gist of it. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of paul.hartland at fsmail.net Sent: Thursday, April 22, 2004 8:11 AM To: accessd Subject: [AccessD] VB6 DLL Help Required To all, Been playing with creating my own DLL?s today using Visual Basic 6 and I eventually created one to send an email using the vbSendMail.dll which works a treat. But now I want to use the withevents part of the vbSendMail.dll which will return the following: Email Sent Ok Email Failed Email Staus Can I put a form inside a dll or do I somehow have to return the appropriate message to the calling application, if so how will I do this, has anyone any ideas on this? Paul Hartland Join the UK's number one for the internet www.freeserve.com/time -- _______________________________________________ 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 Apr 22 08:15:14 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Thu, 22 Apr 2004 09:15:14 -0400 Subject: [AccessD] Data Input - Normalized Database Message-ID: We have a simple paper form that is used for data collection. For purposes of simplistic data entry, I would like to create an Access form that mimics the actual paper form. The underlying tables, however, are fully normalized including dependencies. The dependent fields are scattered throughout the existing paper form. Can I create a single bound form (subforms are ok) under these circumstances? If so, how? The examples that I have run across usually use multiple forms and pass the foreign keys. I can do this going unbound, but I'd rather not. Mark From Mark.Mitsules at ngc.com Thu Apr 22 08:29:36 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Thu, 22 Apr 2004 09:29:36 -0400 Subject: [AccessD] Data Input - Normalized Database Message-ID: We have a simple paper form that is used for data collection. For purposes of simplistic data entry, I would like to create an Access form that mimics the actual paper form. The underlying tables, however, are fully normalized including dependencies. The dependent fields are scattered throughout the existing paper form. Can I create a single bound form (subforms are ok) under these circumstances? If so, how? The examples that I have run across usually use multiple forms and pass the foreign keys. I can do this going unbound, but I'd rather not. Mark From bchacc at san.rr.com Thu Apr 22 08:52:21 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 22 Apr 2004 06:52:21 -0700 Subject: [AccessD] Data Input - Normalized Database References: Message-ID: <005901c42871$093dd840$6601a8c0@HAL9002> Mark: Can you base the form on a query which joins all of the tables? Or would it be too many tables. IIRC there's some limit of the number of tables in a query after which it's not updateable. Rocky Smolin Beach Access Software http://www.e-z-mrp.com ----- Original Message ----- From: "Mitsules, Mark S. (Newport News)" To: "'[AccessD]'" Sent: Thursday, April 22, 2004 6:15 AM Subject: [AccessD] Data Input - Normalized Database > We have a simple paper form that is used for data collection. For purposes > of simplistic data entry, I would like to create an Access form that mimics > the actual paper form. The underlying tables, however, are fully normalized > including dependencies. The dependent fields are scattered throughout the > existing paper form. Can I create a single bound form (subforms are ok) > under these circumstances? If so, how? The examples that I have run across > usually use multiple forms and pass the foreign keys. > > I can do this going unbound, but I'd rather not. > > > > Mark > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From HollisVJ at pgdp.usec.com Thu Apr 22 09:02:35 2004 From: HollisVJ at pgdp.usec.com (Hollis,Virginia) Date: Thu, 22 Apr 2004 09:02:35 -0500 Subject: [AccessD] Prevent Duplicates Message-ID: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D632@cntexchange.pgdp.usec.com> I need a way to check if a vendor number is a duplicate entry. On the AfterUpdate of VenNumber I placed the below code, but it produces an error about not finding the Automation Object and gives the entry I made in the VenNumber field. VenNumber is a text field - do I have the quotes or parenthesis wrong? Virginia ************************ If Not IsNull(VenNumber) Then If DCount("VenNumber", "tbl_Vendor", "VenNumber = " & [VenNumber]) > 0 Then MsgBox "You have entered a Vendor Number that already exists" VenNumber.SetFocus VenNumber.Undo End If End If From Mark.Mitsules at ngc.com Thu Apr 22 09:13:37 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Thu, 22 Apr 2004 10:13:37 -0400 Subject: [AccessD] Data Input - Normalized Database Message-ID: 11 tables...maximum of 2 levels of dependencies. But, forgive all these newbie questions, if I use a query, how do I populate the foreign keys? Mark -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Thursday, April 22, 2004 9:52 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data Input - Normalized Database Mark: Can you base the form on a query which joins all of the tables? Or would it be too many tables. IIRC there's some limit of the number of tables in a query after which it's not updateable. Rocky Smolin Beach Access Software http://www.e-z-mrp.com ----- Original Message ----- From: "Mitsules, Mark S. (Newport News)" To: "'[AccessD]'" Sent: Thursday, April 22, 2004 6:15 AM Subject: [AccessD] Data Input - Normalized Database > We have a simple paper form that is used for data collection. For purposes > of simplistic data entry, I would like to create an Access form that mimics > the actual paper form. The underlying tables, however, are fully normalized > including dependencies. The dependent fields are scattered throughout the > existing paper form. Can I create a single bound form (subforms are ok) > under these circumstances? If so, how? The examples that I have run across > usually use multiple forms and pass the foreign keys. > > I can do this going unbound, but I'd rather not. > > > > 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 paul.hartland at fsmail.net Thu Apr 22 09:27:30 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 22 Apr 2004 16:27:30 +0200 (CEST) Subject: [AccessD] Prevent Duplicates Message-ID: <13468022.1082644050810.JavaMail.www@wwinf3002> Virginia, I think as your processing this on the AfterUpdate event you need to change the line to read If DCount("VenNumber", "tbl_Vendor", "VenNumber = " & [VenNumber]) > 1 Paul Message date : Apr 22 2004, 03:07 PM >From : "Hollis,Virginia" To : "'accessD at databaseadvisors.com'" Copy to : Subject : [AccessD] Prevent Duplicates I need a way to check if a vendor number is a duplicate entry. On the AfterUpdate of VenNumber I placed the below code, but it produces an error about not finding the Automation Object and gives the entry I made in the VenNumber field. VenNumber is a text field - do I have the quotes or parenthesis wrong? Virginia ************************ If Not IsNull(VenNumber) Then If DCount("VenNumber", "tbl_Vendor", "VenNumber = " & [VenNumber]) > 0 Then MsgBox "You have entered a Vendor Number that already exists" VenNumber.SetFocus VenNumber.Undo End If End If -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Join the UK's number one for the internet www.freeserve.com/time From ssharkins at bellsouth.net Thu Apr 22 09:38:19 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Thu, 22 Apr 2004 10:38:19 -0400 Subject: [AccessD] Data Input - Normalized Database In-Reply-To: Message-ID: <20040422143818.OLKR1714.imf16aec.mail.bellsouth.net@SUSANONE> You add them to the query, even though you don't need them in the form -- and 11 tables can still be updateable -- depends on the relationships between the tables. Susan H. 11 tables...maximum of 2 levels of dependencies. But, forgive all these newbie questions, if I use a query, how do I populate the foreign keys? From ssharkins at bellsouth.net Thu Apr 22 09:39:08 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Thu, 22 Apr 2004 10:39:08 -0400 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <34826778.20040422082718@cactus.dk> Message-ID: <20040422143907.OLYV1714.imf16aec.mail.bellsouth.net@SUSANONE> Personal challenges can be very distracting. :) Susan H. Hi Susan Personal challenge? You are on a mission! /gustav From Stephen.Pickering at caremark.com Thu Apr 22 09:46:23 2004 From: Stephen.Pickering at caremark.com (Pickering, Stephen) Date: Thu, 22 Apr 2004 09:46:23 -0500 Subject: [AccessD] Prevent Duplicates Message-ID: Virginia, I would set this in the properties of the field, not validate on a form, unless I had some compelling reason for allowing duplicates via some other process. If you still want to validate in the form, I would put your code in the BeforeUpdate event, not the AfterUpdate, and yes, you need the quotes. I would also change my control names from being the same as the field names. "ctlVenNumber" instead of "VenNumber" for the text box, for example. ************************ If Not IsNull(Me.ctlVenNumber) Then If DCount("VenNumber", "tbl_Vendor", "VenNumber = '" & me.ctlVenNumber & "'" & ) > 0 Then MsgBox "You have entered a Vendor Number that already exists" Me.ctlVenNumber.SetFocus Cancel = True End If End If ************************ HTH, Steve -----Virginia Hollis' Original Message----- I need a way to check if a vendor number is a duplicate entry. On the AfterUpdate of VenNumber I placed the below code, but it produces an error about not finding the Automation Object and gives the entry I made in the VenNumber field. VenNumber is a text field - do I have the quotes or parenthesis wrong? Virginia ************************ If Not IsNull(VenNumber) Then If DCount("VenNumber", "tbl_Vendor", "VenNumber = " & [VenNumber]) > 0 Then MsgBox "You have entered a Vendor Number that already exists" VenNumber.SetFocus VenNumber.Undo End If End If -- From Stephen.Pickering at caremark.com Thu Apr 22 09:49:46 2004 From: Stephen.Pickering at caremark.com (Pickering, Stephen) Date: Thu, 22 Apr 2004 09:49:46 -0500 Subject: [AccessD] Prevent Duplicates Message-ID: Oops, just read Paul's post. Missed the number. Paul is right on. ************************ If Not IsNull(Me.ctlVenNumber) Then If DCount("VenNumber", "tbl_Vendor", "VenNumber = '" & me.ctlVenNumber & "'" & ) > 1 Then MsgBox "You have entered a Vendor Number that already exists" Me.ctlVenNumber.SetFocus Cancel = True End If End If ************************ Steve -----Stephen Pickering's Original Message----- Virginia, I would set this in the properties of the field, not validate on a form, unless I had some compelling reason for allowing duplicates via some other process. If you still want to validate in the form, I would put your code in the BeforeUpdate event, not the AfterUpdate, and yes, you need the quotes. I would also change my control names from being the same as the field names. "ctlVenNumber" instead of "VenNumber" for the text box, for example. ************************ If Not IsNull(Me.ctlVenNumber) Then If DCount("VenNumber", "tbl_Vendor", "VenNumber = '" & me.ctlVenNumber & "'" & ) > 0 Then MsgBox "You have entered a Vendor Number that already exists" Me.ctlVenNumber.SetFocus Cancel = True End If End If ************************ HTH, Steve -----Virginia Hollis' Original Message----- I need a way to check if a vendor number is a duplicate entry. On the AfterUpdate of VenNumber I placed the below code, but it produces an error about not finding the Automation Object and gives the entry I made in the VenNumber field. VenNumber is a text field - do I have the quotes or parenthesis wrong? Virginia ************************ If Not IsNull(VenNumber) Then If DCount("VenNumber", "tbl_Vendor", "VenNumber = " & [VenNumber]) > 0 Then MsgBox "You have entered a Vendor Number that already exists" VenNumber.SetFocus VenNumber.Undo End If End If -- From paul.hartland at fsmail.net Thu Apr 22 09:56:27 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 22 Apr 2004 16:56:27 +0200 (CEST) Subject: [AccessD] Prevent Duplicates Message-ID: <31798765.1082645787203.JavaMail.www@wwinf3002> oh well, we got there between us in the end.... Message date : Apr 22 2004, 03:51 PM >From : "Pickering, Stephen" To : "'Access Developers discussion and problem solving'" Copy to : Subject : RE: [AccessD] Prevent Duplicates Oops, just read Paul's post. Missed the number. Paul is right on. ************************ If Not IsNull(Me.ctlVenNumber) Then If DCount("VenNumber", "tbl_Vendor", "VenNumber = '" & me.ctlVenNumber & "'" & ) > 1 Then MsgBox "You have entered a Vendor Number that already exists" Me.ctlVenNumber.SetFocus Cancel = True End If End If ************************ Steve -----Stephen Pickering's Original Message----- Virginia, I would set this in the properties of the field, not validate on a form, unless I had some compelling reason for allowing duplicates via some other process. If you still want to validate in the form, I would put your code in the BeforeUpdate event, not the AfterUpdate, and yes, you need the quotes. I would also change my control names from being the same as the field names. "ctlVenNumber" instead of "VenNumber" for the text box, for example. ************************ If Not IsNull(Me.ctlVenNumber) Then If DCount("VenNumber", "tbl_Vendor", "VenNumber = '" & me.ctlVenNumber & "'" & ) > 0 Then MsgBox "You have entered a Vendor Number that already exists" Me.ctlVenNumber.SetFocus Cancel = True End If End If ************************ HTH, Steve -----Virginia Hollis' Original Message----- I need a way to check if a vendor number is a duplicate entry. On the AfterUpdate of VenNumber I placed the below code, but it produces an error about not finding the Automation Object and gives the entry I made in the VenNumber field. VenNumber is a text field - do I have the quotes or parenthesis wrong? Virginia ************************ If Not IsNull(VenNumber) Then If DCount("VenNumber", "tbl_Vendor", "VenNumber = " & [VenNumber]) > 0 Then MsgBox "You have entered a Vendor Number that already exists" VenNumber.SetFocus VenNumber.Undo End If End If -- -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Join the UK's number one for the internet www.freeserve.com/time From bchacc at san.rr.com Thu Apr 22 10:06:59 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 22 Apr 2004 08:06:59 -0700 Subject: [AccessD] Prevent Duplicates References: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D632@cntexchange.pgdp.usec.com> Message-ID: <007701c4287b$763527a0$6601a8c0@HAL9002> Virginia: Does VenNumber contain a valid numeric value at that point? Rocky Smolin Beach Access Software http://www.e-z-mrp.com ----- Original Message ----- From: "Hollis,Virginia" To: Sent: Thursday, April 22, 2004 7:02 AM Subject: [AccessD] Prevent Duplicates > I need a way to check if a vendor number is a duplicate entry. On the > AfterUpdate of VenNumber I placed the below code, but it produces an error > about not finding the Automation Object and gives the entry I made in the > VenNumber field. VenNumber is a text field - do I have the quotes or > parenthesis wrong? > > Virginia > > ************************ > If Not IsNull(VenNumber) Then > If DCount("VenNumber", "tbl_Vendor", "VenNumber = " & [VenNumber]) > 0 > Then > MsgBox "You have entered a Vendor Number that already exists" > VenNumber.SetFocus > VenNumber.Undo > End If > End If > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From serbach at new.rr.com Thu Apr 22 10:06:18 2004 From: serbach at new.rr.com (Steven W. Erbach) Date: Thu, 22 Apr 2004 10:06:18 -0500 Subject: [AccessD] A2K: Shell 'discoveries' Message-ID: <20040422100618.1373059489.serbach@new.rr.com> Dear Group, In debugging the custom EDI application I'm writing for a client of mine, I "discovered" a thing or two about using the Shell command to run a DOS batch file. The purpose of using the DOS batch file is to start an FTP session and upload a bunch of files to the EDI mailbox. Then, when the batch file is finished, move the files that were uploaded into an archive folder on the server. I had tested the batch file from a command prompt and it works just dandy. The EDI documents show up as having been uploaded successfully. However when I used the Shell command in my application I wouldn't see any document names uploaded. Then I'd get the annoying e-mail the next day from the EDI service provider saying that the expected documents weren't received. I finally figured out the problem: Access doesn't wait for the batch file to finish. The Shell command just launches the external program, whatever it is, and goes on to the next task. In my case it was moving the EDI documents into an archive folder. Well, Access whisked those files out of the FTP folder so fast that by the time the FTP login was complete (user name, password, and account name) the files were no longer available for uploading. The FTP session didn't fail, as such, there just wasn't anything to send. So, I added a MsgBox asking the user to verify that the DOS session had ended before going on to archive the EDI files. Problem solved. Sorry if this is tediously obvious, but I haven't ever run a batch file from Access and I have nobody to bounce this stuff off of (nobody off of whom to bounce this stuff?). Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "Congress is as trustworthy with money as a crack addict who is experimenting with heroin." - Dave Barry "Giving money and power to the government is like giving whiskey and car keys to teenage boys." - P. J. O'Rourke "Be thankful we're not getting all the government we're paying for." - Will Rogers "It could probably be shown by facts and figures that there is no distinctly American criminal class except Congress." - Mark Twain From bchacc at san.rr.com Thu Apr 22 10:09:25 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 22 Apr 2004 08:09:25 -0700 Subject: [AccessD] Data Input - Normalized Database References: Message-ID: <008501c4287b$cd27e9d0$6601a8c0@HAL9002> Mark: I think the FKs need to be inserted through code. At least that's how I always did it. Rocky Smolin Beach Access Software http://www.e-z-mrp.com ----- Original Message ----- From: "Mitsules, Mark S. (Newport News)" To: "'Access Developers discussion and problem solving'" Sent: Thursday, April 22, 2004 7:13 AM Subject: RE: [AccessD] Data Input - Normalized Database > 11 tables...maximum of 2 levels of dependencies. But, forgive all these > newbie questions, if I use a query, how do I populate the foreign keys? > > > > Mark > > > -----Original Message----- > From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] > Sent: Thursday, April 22, 2004 9:52 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Data Input - Normalized Database > > > Mark: > > Can you base the form on a query which joins all of the tables? Or would > it be too many tables. IIRC there's some limit of the number of tables in a > query after which it's not updateable. > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > > > ----- Original Message ----- > From: "Mitsules, Mark S. (Newport News)" > To: "'[AccessD]'" > Sent: Thursday, April 22, 2004 6:15 AM > Subject: [AccessD] Data Input - Normalized Database > > > > We have a simple paper form that is used for data collection. For > purposes > > of simplistic data entry, I would like to create an Access form that > mimics > > the actual paper form. The underlying tables, however, are fully > normalized > > including dependencies. The dependent fields are scattered throughout the > > existing paper form. Can I create a single bound form (subforms are ok) > > under these circumstances? If so, how? The examples that I have run > across > > usually use multiple forms and pass the foreign keys. > > > > I can do this going unbound, but I'd rather not. > > > > > > > > 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 demulling at centurytel.net Thu Apr 22 10:51:51 2004 From: demulling at centurytel.net (Demulling Family) Date: Thu, 22 Apr 2004 10:51:51 -0500 Subject: [AccessD] A2K: Shell 'discoveries' In-Reply-To: <20040422100618.1373059489.serbach@new.rr.com> References: <20040422100618.1373059489.serbach@new.rr.com> Message-ID: <4087EA17.9080006@centurytel.net> Steven W. Erbach wrote: >Dear Group, > >In debugging the custom EDI application I'm writing for a client of mine, I "discovered" a thing or two about using the Shell command to run a DOS batch file. > >The purpose of using the DOS batch file is to start an FTP session and upload a bunch of files to the EDI mailbox. Then, when the batch file is finished, move the files that were uploaded into an archive folder on the server. > >I had tested the batch file from a command prompt and it works just dandy. The EDI documents show up as having been uploaded successfully. However when I used the Shell command in my application I wouldn't see any document names uploaded. Then I'd get the annoying e-mail the next day from the EDI service provider saying that the expected documents weren't received. > >I finally figured out the problem: Access doesn't wait for the batch file to finish. The Shell command just launches the external program, whatever it is, and goes on to the next task. In my case it was moving the EDI documents into an archive folder. Well, Access whisked those files out of the FTP folder so fast that by the time the FTP login was complete (user name, password, and account name) the files were no longer available for uploading. The FTP session didn't fail, as such, there just wasn't anything to send. > >So, I added a MsgBox asking the user to verify that the DOS session had ended before going on to archive the EDI files. Problem solved. > >Sorry if this is tediously obvious, but I haven't ever run a batch file from Access and I have nobody to bounce this stuff off of (nobody off of whom to bounce this stuff?). > >Regards, > >Steve Erbach >Scientific Marketing >Neenah, WI >920-969-0504 > >"Congress is as trustworthy with money as a crack addict who is experimenting with heroin." - Dave Barry > >"Giving money and power to the government is like giving whiskey and car keys to teenage boys." - P. J. O'Rourke > >"Be thankful we're not getting all the government we're paying for." - Will Rogers > >"It could probably be shown by facts and figures that there is no distinctly American criminal class except Congress." - Mark Twain > > > Steve, On Dev's site there is code for a Shell Wait function. You can you this to have access wait until the ftping is done. I would include some code but am at home today helping my wife cook for my daugther's festival of culture and grandparent's night at school. From Stephen.Pickering at caremark.com Thu Apr 22 10:52:19 2004 From: Stephen.Pickering at caremark.com (Pickering, Stephen) Date: Thu, 22 Apr 2004 10:52:19 -0500 Subject: [AccessD] Prevent Duplicates Message-ID: Here's to putting our heads together! :^) Steve -----Paul Hartland's Original Message----- oh well, we got there between us in the end.... From Mark.Mitsules at ngc.com Thu Apr 22 10:56:33 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Thu, 22 Apr 2004 11:56:33 -0400 Subject: [AccessD] Data Input - Normalized Database Message-ID: Susan, OK, I created the query... with all the fields. Next, I tried to do a simple autoform to see if it would work...NO controls showed up on the form:( In design view the controls exist, but in form view they do not. I'm open for suggestions as to why... Mark -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Thursday, April 22, 2004 10:38 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Data Input - Normalized Database You add them to the query, even though you don't need them in the form -- and 11 tables can still be updateable -- depends on the relationships between the tables. Susan H. 11 tables...maximum of 2 levels of dependencies. But, forgive all these newbie questions, if I use a query, how do I populate the foreign keys? -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Stephen.Pickering at caremark.com Thu Apr 22 11:23:05 2004 From: Stephen.Pickering at caremark.com (Pickering, Stephen) Date: Thu, 22 Apr 2004 11:23:05 -0500 Subject: [AccessD] Data Input - Normalized Database Message-ID: PMFJI. Is the query updateable? That's the first thing I'd check. It should be updateable as long as you include the Primary Key of each table in the query. Steve -----Mark S. Mitsules' Original Message----- Susan, OK, I created the query... with all the fields. Next, I tried to do a simple autoform to see if it would work...NO controls showed up on the form:( In design view the controls exist, but in form view they do not. I'm open for suggestions as to why... Mark From ssharkins at bellsouth.net Thu Apr 22 11:21:52 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Thu, 22 Apr 2004 12:21:52 -0400 Subject: [AccessD] Data Input - Normalized Database In-Reply-To: Message-ID: <20040422162151.WAFQ1728.imf24aec.mail.bellsouth.net@SUSANONE> Check out the query's datasheet -- is there a new row? If not, it isn't an updateable setup. Susan H. Susan, OK, I created the query... with all the fields. Next, I tried to do a simple autoform to see if it would work...NO controls showed up on the form:( In design view the controls exist, but in form view they do not. I'm open for suggestions as to why... Mark -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Thursday, April 22, 2004 10:38 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Data Input - Normalized Database You add them to the query, even though you don't need them in the form -- and 11 tables can still be updateable -- depends on the relationships between the tables. Susan H. 11 tables...maximum of 2 levels of dependencies. But, forgive all these newbie questions, if I use a query, how do I populate the foreign keys? -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Apr 22 11:24:07 2004 From: gustav at cactus.dk (Gustav Brock) Date: Thu, 22 Apr 2004 18:24:07 +0200 Subject: [AccessD] A2K: Shell 'discoveries' In-Reply-To: <20040422100618.1373059489.serbach@new.rr.com> References: <20040422100618.1373059489.serbach@new.rr.com> Message-ID: <9336635348.20040422182407@cactus.dk> Hi Steven Several will for sure post you the code variants for "ShellAndWait", "ShellWait" etc. which will solve your immediate problem. However, as this sounds as a serious application, I would strongly recommend you to spend the small money for a licens to 3D-FTP. This is an excellent multi-threaded FTP client which can be fully automated and controlled from within your app. I used it for a client who regularly uploads over 1000 files for a web site and it has never failed. In addition, the user (operator) has a nice status window visually indicating progress of the upload. I have no "ready-to-run" code as this will be very much individual, but if you wish, I can rip off the essential procedures which I'm sure you (as a skilled programmer) will be able to modify as to your needs. /gustav > Dear Group, > In debugging the custom EDI application I'm writing for a client of mine, I "discovered" a thing or two about using the Shell command to run a DOS batch file. > The purpose of using the DOS batch file is to start an FTP session and upload a bunch of files to the EDI mailbox. Then, when the batch file is finished, move the files that were uploaded into an > archive folder on the server. > I had tested the batch file from a command prompt and it works just dandy. The EDI documents show up as having been uploaded successfully. However when I used the Shell command in my application I > wouldn't see any document names uploaded. Then I'd get the annoying e-mail the next day from the EDI service provider saying that the expected documents weren't received. > I finally figured out the problem: Access doesn't wait for the batch file to finish. The Shell command just launches the external program, whatever it is, and goes on to the next task. In my case > it was moving the EDI documents into an archive folder. Well, Access whisked those files out of the FTP folder so fast that by the time the FTP login was complete (user name, password, and account > name) the files were no longer available for uploading. The FTP session didn't fail, as such, there just wasn't anything to send. > So, I added a MsgBox asking the user to verify that the DOS session had ended before going on to archive the EDI files. Problem solved. > Sorry if this is tediously obvious, but I haven't ever run a batch file from Access and I have nobody to bounce this stuff off of (nobody off of whom to bounce this stuff?). From andy at minstersystems.co.uk Thu Apr 22 11:29:55 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 22 Apr 2004 17:29:55 +0100 Subject: [AccessD] A2K: Shell 'discoveries' In-Reply-To: <20040422100618.1373059489.serbach@new.rr.com> Message-ID: <001501c42887$0b9b2730$b274d0d5@minster33c3r25> A suggestion Steven. How about creating a file before you Shell, and making the last line of the batch file delete the file. Then you can Shell followed by a Do While which checks if the file exists and comes out when it doesn't. You'd also need a DoEvents inside the loop so it lets the other processing get a look in. This way you wouldn't need to ask the user if the process had finished. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Steven W. Erbach > Sent: 22 April 2004 16:06 > To: Access Developers discussion and problem solving > Subject: [AccessD] A2K: Shell 'discoveries' > > > Dear Group, > > In debugging the custom EDI application I'm writing for a > client of mine, I "discovered" a thing or two about using the > Shell command to run a DOS batch file. > > The purpose of using the DOS batch file is to start an FTP > session and upload a bunch of files to the EDI mailbox. Then, > when the batch file is finished, move the files that were > uploaded into an archive folder on the server. > > I had tested the batch file from a command prompt and it > works just dandy. The EDI documents show up as having been > uploaded successfully. However when I used the Shell command > in my application I wouldn't see any document names uploaded. > Then I'd get the annoying e-mail the next day from the EDI > service provider saying that the expected documents weren't received. > > I finally figured out the problem: Access doesn't wait for > the batch file to finish. The Shell command just launches the > external program, whatever it is, and goes on to the next > task. In my case it was moving the EDI documents into an > archive folder. Well, Access whisked those files out of the > FTP folder so fast that by the time the FTP login was > complete (user name, password, and account name) the files > were no longer available for uploading. The FTP session > didn't fail, as such, there just wasn't anything to send. > > So, I added a MsgBox asking the user to verify that the DOS > session had ended before going on to archive the EDI files. > Problem solved. > > Sorry if this is tediously obvious, but I haven't ever run a > batch file from Access and I have nobody to bounce this stuff > off of (nobody off of whom to bounce this stuff?). > > Regards, > > Steve Erbach > Scientific Marketing > Neenah, WI > 920-969-0504 > > "Congress is as trustworthy with money as a crack addict who > is experimenting with heroin." - Dave Barry > > "Giving money and power to the government is like giving > whiskey and car keys to teenage boys." - P. J. O'Rourke > > "Be thankful we're not getting all the government we're > paying for." - Will Rogers > > "It could probably be shown by facts and figures that there > is no distinctly American criminal class except Congress." - > Mark Twain > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > From Mark.Mitsules at ngc.com Thu Apr 22 11:38:26 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Thu, 22 Apr 2004 12:38:26 -0400 Subject: [AccessD] Data Input - Normalized Database Message-ID: Nope it's not updateable... Anyone want to look at a screenshot of the relationships to see if they could tell why? I guess what I'm asking is, what is the limiting factor of a recordset being updatable or not? I'm guessing that it has to do with the 2 levels of dependency. Could that be it? Mark -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Thursday, April 22, 2004 12:22 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Data Input - Normalized Database Check out the query's datasheet -- is there a new row? If not, it isn't an updateable setup. Susan H. Susan, OK, I created the query... with all the fields. Next, I tried to do a simple autoform to see if it would work...NO controls showed up on the form:( In design view the controls exist, but in form view they do not. I'm open for suggestions as to why... Mark -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Thursday, April 22, 2004 10:38 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Data Input - Normalized Database You add them to the query, even though you don't need them in the form -- and 11 tables can still be updateable -- depends on the relationships between the tables. Susan H. 11 tables...maximum of 2 levels of dependencies. But, forgive all these newbie questions, if I use a query, how do I populate the foreign keys? -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Apr 22 11:39:08 2004 From: gustav at cactus.dk (Gustav Brock) Date: Thu, 22 Apr 2004 18:39:08 +0200 Subject: [AccessD] A2K: Shell 'discoveries' In-Reply-To: <20040422100618.1373059489.serbach@new.rr.com> References: <20040422100618.1373059489.serbach@new.rr.com> Message-ID: <9437536414.20040422183908@cactus.dk> Hi Steven Here's an example: Public Function ShellExecute( _ ByVal strPathname As String, _ Optional lngAppWinStyle As Long = vbHide) _ As Boolean ' Start other application and wait for it to finish. ' lngAppWinStyle: ' ' vbHide 0 ' vbNormalFocus 1 ' vbMinimizedFocus 2 ' vbMaximizedFocus 3 ' vbNormalNoFocus 4 ' vbMinimizedNoFocus 6 Const cbInheritHandles As Long = 1 Dim proc As PROCESS_INFORMATION Dim Start As STARTUPINFO Dim lngReturn As Long On Error GoTo Err_ShellExecute ' Initialize the STARTUPINFO structure: With Start .cb = Len(Start) .dwFlags = STARTF_USESHOWWINDOW .wShowWindow = lngAppWinStyle End With ' Load the shelled application. lngReturn = CreateProcessA(0, strPathname, 0, 0, cbInheritHandles, NORMAL_PRIORITY_CLASS, 0, 0, Start, proc) ' Wait for the shelled application to finish. lngReturn = WaitForSingleObject(proc.hProcess, INFINITE) With proc lngReturn = WaitForSingleObject(.hProcess, INFINITE) ' Close both Process and Thread to prevent memory leak. lngReturn = CloseHandle(.hProcess) And CloseHandle(.hThread) End With ShellExecute = True Exit_ShellExecute: Exit Function Err_ShellExecute: MsgBox "Shell Error: " & Err.Number & ". " & Err.Description, vbCritical, Err.Source Resume Exit_ShellExecute End Function Watch for line breaks. /gustav From ssharkins at bellsouth.net Thu Apr 22 11:53:51 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Thu, 22 Apr 2004 12:53:51 -0400 Subject: [AccessD] Data Input - Normalized Database In-Reply-To: Message-ID: <20040422165350.YZPR1778.imf18aec.mail.bellsouth.net@SUSANONE> Mark, you email address isn't showin gup in the message header. Send me a private at ssharkins at bellsouth.net and I'll send you a copy of an article I wrote about this. Susan H. Nope it's not updateable... Anyone want to look at a screenshot of the relationships to see if they could tell why? I guess what I'm asking is, what is the limiting factor of a recordset being updatable or not? I'm guessing that it has to do with the 2 levels of dependency. Could that be it? From jimdettman at earthlink.net Thu Apr 22 11:54:23 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Thu, 22 Apr 2004 12:54:23 -0400 Subject: [AccessD] A2K: Shell 'discoveries' In-Reply-To: <20040422100618.1373059489.serbach@new.rr.com> Message-ID: Steve, Besides the ShellWait function already mentioned, I would suggest a little more control over the FTP process. Gustav mentioned a 3rd party control, but Dev's site has a FTP class you can use for free. Might want to go the commercial route though if you want updates and support options. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Steven W. Erbach Sent: Thursday, April 22, 2004 11:06 AM To: Access Developers discussion and problem solving Subject: [AccessD] A2K: Shell 'discoveries' Dear Group, In debugging the custom EDI application I'm writing for a client of mine, I "discovered" a thing or two about using the Shell command to run a DOS batch file. The purpose of using the DOS batch file is to start an FTP session and upload a bunch of files to the EDI mailbox. Then, when the batch file is finished, move the files that were uploaded into an archive folder on the server. I had tested the batch file from a command prompt and it works just dandy. The EDI documents show up as having been uploaded successfully. However when I used the Shell command in my application I wouldn't see any document names uploaded. Then I'd get the annoying e-mail the next day from the EDI service provider saying that the expected documents weren't received. I finally figured out the problem: Access doesn't wait for the batch file to finish. The Shell command just launches the external program, whatever it is, and goes on to the next task. In my case it was moving the EDI documents into an archive folder. Well, Access whisked those files out of the FTP folder so fast that by the time the FTP login was complete (user name, password, and account name) the files were no longer available for uploading. The FTP session didn't fail, as such, there just wasn't anything to send. So, I added a MsgBox asking the user to verify that the DOS session had ended before going on to archive the EDI files. Problem solved. Sorry if this is tediously obvious, but I haven't ever run a batch file from Access and I have nobody to bounce this stuff off of (nobody off of whom to bounce this stuff?). Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "Congress is as trustworthy with money as a crack addict who is experimenting with heroin." - Dave Barry "Giving money and power to the government is like giving whiskey and car keys to teenage boys." - P. J. O'Rourke "Be thankful we're not getting all the government we're paying for." - Will Rogers "It could probably be shown by facts and figures that there is no distinctly American criminal class except Congress." - Mark Twain -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Stephen.Pickering at caremark.com Thu Apr 22 12:22:03 2004 From: Stephen.Pickering at caremark.com (Pickering, Stephen) Date: Thu, 22 Apr 2004 12:22:03 -0500 Subject: [AccessD] Data Input - Normalized Database Message-ID: Mark, Check to make sure that all of the Primary Keys for all of the tables are included in the SELECT clause. Steve -----Mark S. Mitsules' Original Message----- Nope it's not updateable... Anyone want to look at a screenshot of the relationships to see if they could tell why? I guess what I'm asking is, what is the limiting factor of a recordset being updatable or not? I'm guessing that it has to do with the 2 levels of dependency. Could that be it? Mark From Mark.Mitsules at ngc.com Thu Apr 22 12:39:01 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Thu, 22 Apr 2004 13:39:01 -0400 Subject: [AccessD] Data Input - Normalized Database Message-ID: The light came on! I started from scratch, building the query again, table by table. After each addition I checked the "updateable-ness";) The problem was caused by a single table that I SHOULD have added three times, but hadn't. It was a personnel table whose PK was used as a FK 3 times in another table. Access had automatically added the defined relationships. I needed to delete 2 of the 3 and add the table again to the query 2 more times. As soon as I fixed that oversight, the query worked. Now I just need to get a working form from all that. Thanks, Mark -----Original Message----- From: Pickering, Stephen [mailto:Stephen.Pickering at caremark.com] Sent: Thursday, April 22, 2004 1:22 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Data Input - Normalized Database Mark, Check to make sure that all of the Primary Keys for all of the tables are included in the SELECT clause. Steve -----Mark S. Mitsules' Original Message----- Nope it's not updateable... Anyone want to look at a screenshot of the relationships to see if they could tell why? I guess what I'm asking is, what is the limiting factor of a recordset being updatable or not? I'm guessing that it has to do with the 2 levels of dependency. Could that be it? Mark -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pedro at plex.nl Thu Apr 22 14:09:12 2004 From: pedro at plex.nl (Pedro Janssen) Date: Thu, 22 Apr 2004 21:09:12 +0200 Subject: [AccessD] first caracter as Uppercase Message-ID: <006101c4289e$fa188030$f2c581d5@pedro> Hello Group, i have a code (thanks to Brett Barabash and Mark A Matte) that sets all characters in all tables to Lowercase. What i also would like to see is each character at the beginning of a word (each word that is separated by a space) is set to Uppercase in all Tables by just one code. Is this possible. Who can help me with this? TIA Pedro Janssen From DWUTKA at marlow.com Thu Apr 22 14:34:17 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Thu, 22 Apr 2004 14:34:17 -0500 Subject: [AccessD] first caracter as Uppercase Message-ID: <2F8793082E00D4119A1700B0D0216BF802227B06@main2.marlow.com> StrConv("this is a test",vbProperCase) results in: This Is A Test Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Pedro Janssen Sent: Thursday, April 22, 2004 2:09 PM To: AccessD at databaseadvisors.com Subject: [AccessD] first caracter as Uppercase Hello Group, i have a code (thanks to Brett Barabash and Mark A Matte) that sets all characters in all tables to Lowercase. What i also would like to see is each character at the beginning of a word (each word that is separated by a space) is set to Uppercase in all Tables by just one code. Is this possible. Who can help me with this? TIA Pedro Janssen -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Stephen.Pickering at caremark.com Thu Apr 22 14:45:15 2004 From: Stephen.Pickering at caremark.com (Pickering, Stephen) Date: Thu, 22 Apr 2004 14:45:15 -0500 Subject: [AccessD] first caracter as Uppercase Message-ID: Pedro, StrConv("your string here", 3) HTH, Steve -----Pedro Janssen's Original Message----- Hello Group, i have a code (thanks to Brett Barabash and Mark A Matte) that sets all characters in all tables to Lowercase. What i also would like to see is each character at the beginning of a word (each word that is separated by a space) is set to Uppercase in all Tables by just one code. Is this possible. Who can help me with this? TIA Pedro Janssen -- From wdhindman at bellsouth.net Thu Apr 22 14:47:30 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Thu, 22 Apr 2004 15:47:30 -0400 Subject: [AccessD] Prevent Duplicates References: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D632@cntexchange.pgdp.usec.com> Message-ID: <001401c428a2$a5fbeba0$6101a8c0@dejpolsys> Virginia ...if you truly want to prevent duplicates, I'd just create an index on the table field set to no duplicates allowed and code for an error ...much more certain to catch dupes, requires less code, and far less processing. William Hindman "Always code as if the person who is maintaining or testing your code is a violent psychopath who knows where you live." William Silverstein ----- Original Message ----- From: "Hollis,Virginia" To: Sent: Thursday, April 22, 2004 10:02 AM Subject: [AccessD] Prevent Duplicates > I need a way to check if a vendor number is a duplicate entry. On the > AfterUpdate of VenNumber I placed the below code, but it produces an error > about not finding the Automation Object and gives the entry I made in the > VenNumber field. VenNumber is a text field - do I have the quotes or > parenthesis wrong? > > Virginia > > ************************ > If Not IsNull(VenNumber) Then > If DCount("VenNumber", "tbl_Vendor", "VenNumber = " & [VenNumber]) > 0 > Then > MsgBox "You have entered a Vendor Number that already exists" > VenNumber.SetFocus > VenNumber.Undo > End If > End If > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From wdhindman at bellsouth.net Thu Apr 22 15:03:08 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Thu, 22 Apr 2004 16:03:08 -0400 Subject: [AccessD] A2K: Shell 'discoveries' References: <20040422100618.1373059489.serbach@new.rr.com> Message-ID: <002301c428a4$d50b9470$6101a8c0@dejpolsys> ...why not do the ftp from within Access using the APIs ...if you'd like I can send you a sample mdb that's worked round the clock for years now. William Hindman "Always code as if the person who is maintaining or testing your code is a violent psychopath who knows where you live." William Silverstein ----- Original Message ----- From: "Steven W. Erbach" To: "Access Developers discussion and problem solving" Sent: Thursday, April 22, 2004 11:06 AM Subject: [AccessD] A2K: Shell 'discoveries' > Dear Group, > > In debugging the custom EDI application I'm writing for a client of mine, I "discovered" a thing or two about using the Shell command to run a DOS batch file. > > The purpose of using the DOS batch file is to start an FTP session and upload a bunch of files to the EDI mailbox. Then, when the batch file is finished, move the files that were uploaded into an archive folder on the server. > > I had tested the batch file from a command prompt and it works just dandy. The EDI documents show up as having been uploaded successfully. However when I used the Shell command in my application I wouldn't see any document names uploaded. Then I'd get the annoying e-mail the next day from the EDI service provider saying that the expected documents weren't received. > > I finally figured out the problem: Access doesn't wait for the batch file to finish. The Shell command just launches the external program, whatever it is, and goes on to the next task. In my case it was moving the EDI documents into an archive folder. Well, Access whisked those files out of the FTP folder so fast that by the time the FTP login was complete (user name, password, and account name) the files were no longer available for uploading. The FTP session didn't fail, as such, there just wasn't anything to send. > > So, I added a MsgBox asking the user to verify that the DOS session had ended before going on to archive the EDI files. Problem solved. > > Sorry if this is tediously obvious, but I haven't ever run a batch file from Access and I have nobody to bounce this stuff off of (nobody off of whom to bounce this stuff?). > > Regards, > > Steve Erbach > Scientific Marketing > Neenah, WI > 920-969-0504 > > "Congress is as trustworthy with money as a crack addict who is experimenting with heroin." - Dave Barry > > "Giving money and power to the government is like giving whiskey and car keys to teenage boys." - P. J. O'Rourke > > "Be thankful we're not getting all the government we're paying for." - Will Rogers > > "It could probably be shown by facts and figures that there is no distinctly American criminal class except Congress." - Mark Twain > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From my.lists at verizon.net Thu Apr 22 15:15:10 2004 From: my.lists at verizon.net (Francisco H Tapia) Date: Thu, 22 Apr 2004 13:15:10 -0700 Subject: [AccessD] Query fails when using NOT IN ??? In-Reply-To: <322806795.20040422090018@cactus.dk> References: <657FB70438B7D311AF320090279C18010614418F@EXCHMAIL> <322806795.20040422090018@cactus.dk> Message-ID: <408827CE.7060601@verizon.net> Gustav, David quoted an article for Sql Server in which this is 100% reproducable. I think he posted it here because of the initial posts of problems where the IN clause or rather (NOT IN) was not behaving as expected. for that manner I've also seen it do this, one major workaround is to explicitly point the inner quiery to that of the outer query. that way any possible errors will be trapped SUCH as DELETE FROM TitleAuthor WHERE au_id IN (SELECT au_id FROM Publishers WHERE Publishers.au_id=TitleAuthor.au_id) Gustav Brock said the following on 4/22/2004 12:00 AM: >>Pinnacle's SQL Server Professional, February 2002 (Volume 8, Number 2), >>"Known Problems with IN/NOT IN()" >> >> >I can't recognize this; it behaves very politely. >The syntax doesn't work in Jet SQL, but this does: > > DELETE FROM > TitleAuthor > WHERE > au_id IN (SELECT au_id FROM Publishers) > >and it deletes zero records if Publishers is empty. If au_id doesn't >exist as a field, Access asks for it as a parameter. >So this is exactly as expected. > >Can you provide another example? Or are you talking about another SQL >engine? > >/gustav > > > -- -Francisco From mwp.reid at qub.ac.uk Thu Apr 22 15:37:37 2004 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Thu, 22 Apr 2004 21:37:37 +0100 Subject: [AccessD] OT SQL Question References: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D632@cntexchange.pgdp.usec.com> Message-ID: <002501c428a9$a77fa140$1b02a8c0@MARTINREID> Tried the SQL Server list with this - no luck. Given a one to many relationship is it possible to produce this output using an SP without the use of cursors etc?? INPUT TABLE 1 1000 IT 1000 Databases 1000 VMS 1001 Spreadsheets 1001 GenStat 1002 Aquatic systems 1002 Research INPUT TABLE 2 1000 Smith 1001 Brown 1002 Foster OUTPUT REQUIRED 1000 Smith IT, Databases,VMS 1001 Brown Spreadsheets,GenStat 1002 Foster Aquatic Systems,Research Martin From mwhittinghill at symphonyinfo.com Thu Apr 22 16:17:03 2004 From: mwhittinghill at symphonyinfo.com (Mark Whittinghill) Date: Thu, 22 Apr 2004 16:17:03 -0500 Subject: [AccessD] Dual Install 97 and 2000 Message-ID: <000b01c428af$28bab8d0$2201a8c0@PASCAL> Hi all, I have 2000 on my machine, and would like to add 97. Can I just install 97 then fix the hatten.ttf problem, or do I need to uninstall 2000 first, install 97 then reinstall 2000? Mark Whittinghill Symphony Information Services 763-391-7400 mwhittinghill at symphonyinfo.com From pedro at plex.nl Thu Apr 22 14:29:20 2004 From: pedro at plex.nl (Pedro Janssen) Date: Thu, 22 Apr 2004 21:29:20 +0200 Subject: [AccessD] Form Opening Time References: Message-ID: <009101c428b3$b092e350$f2c581d5@pedro> Hello Bryan, can you give me some information about Jet's showplan in the registry. What does it do? I have a form that needs about 35 sec to open, So this could be a great help. Pedro Janssen ----- Original Message ----- From: "Bryan Carbonnell" To: Sent: Tuesday, April 20, 2004 9:31 PM Subject: Re: [AccessD] Form Opening Time > OOPS. > > A2K SP3 > > Bryan > > >>> Bryan_Carbonnell at cbc.ca 20-Apr-04 3:18:04 PM >>> > Access 2000 on Win 2K SP4 with Jet 4, SP8 > > Bryan Carbonnell > bryan_carbonnell at cbc.ca > > >>> gustav at cactus.dk 20-Apr-04 3:04:25 PM >>> > Hi Bryan > > Which version, please? > > /gustav > > > > Can anyone explain, or give a possible idea why Turning Jet's > SHOWPLAN > > on in the registry, will make a form open in 1/3 of the time it took > > prior to turning it on? > > > It now takes about 7 seconds to open, but before it was 22-24 > secords. > > > Any ideas? I had turned on SHOWPLAN to try and see if any of the > > queries were causing the slowdown in opening. > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From pedro at plex.nl Thu Apr 22 16:54:28 2004 From: pedro at plex.nl (Pedro Janssen) Date: Thu, 22 Apr 2004 23:54:28 +0200 Subject: [AccessD] first caracter as Uppercase References: <2F8793082E00D4119A1700B0D0216BF802227B06@main2.marlow.com> Message-ID: <00b601c428b4$8ca40400$f2c581d5@pedro> Hello Drew, how can i use this so that it sets all characters in all tables in a database? Pedro Janssen ----- Original Message ----- From: To: Sent: Thursday, April 22, 2004 9:34 PM Subject: RE: [AccessD] first caracter as Uppercase > StrConv("this is a test",vbProperCase) > > > results in: > > > This Is A Test > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Pedro Janssen > Sent: Thursday, April 22, 2004 2:09 PM > To: AccessD at databaseadvisors.com > Subject: [AccessD] first caracter as Uppercase > > > Hello Group, > > i have a code (thanks to Brett Barabash and Mark A Matte) that sets all > characters in all tables to Lowercase. > > What i also would like to see is each character at the beginning of a word > (each word that is separated by a space) is set to Uppercase in all Tables > by just one code. > Is this possible. Who can help me with this? > > TIA > > 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 carbonnb at sympatico.ca Thu Apr 22 17:07:52 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Thu, 22 Apr 2004 18:07:52 -0400 Subject: [AccessD] Form Opening Time In-Reply-To: <009101c428b3$b092e350$f2c581d5@pedro> Message-ID: <408809F8.16242.17B1F2@localhost> On 22 Apr 2004 at 21:29, Pedro Janssen wrote: > can you give me some information about Jet's showplan in the registry. > What does it do? I have a form that needs about 35 sec to open, So > this could be a great help. Pedro, There are others that can explain it better than I can, folks like Paul Litwin, Ken Getz, and Mike Gunderloy. You can find Chapter 15: Application Optimization of ADH2K2 at http://msdn.microsoft.com/library/default.asp?url=/library/en- us/dnacbk02/html/odc_4009c15.asp Watch for wrap. Basically what it does is dumps to a plain text file how the query is "run" and you can look for places that the whole table is being looked at, or missng indexes.... My problem turned out to not be quite that difficult. I had an A2K FE and an A97 BE. They don't play well together. :( My load time in now down to less than 1/2 a second from 20-25 seconds. It took me 2 days to figure that one out :( -- Bryan Carbonnell - carbonnb at sympatico.ca I don't approve of political jokes. I've seen too many of them get elected. From DWUTKA at marlow.com Thu Apr 22 17:32:46 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Thu, 22 Apr 2004 17:32:46 -0500 Subject: [AccessD] first caracter as Uppercase Message-ID: <2F8793082E00D4119A1700B0D0216BF802227B08@main2.marlow.com> How's this? Function SetAllDataToProperCase() Dim tbldef As TableDef Dim strSQL As String Dim rs As Recordset Dim i As Long Dim FieldCheck As Boolean For Each tbldef In CurrentDb.TableDefs If Left(tbldef.Name, 4) <> "MSys" Then 'Set a boolean to make sure we have fields to actually update FieldCheck = False strSQL = "UPDATE " & tbldef.Name & " SET " Set rs = CurrentDb.OpenRecordset(tbldef.Name, dbOpenTable) For i = 0 To rs.Fields.Count - 1 If rs.Fields(i).Type = 10 Or rs.Fields(i).Type = 12 Then 'we have a valid field FieldCheck = True strSQL = strSQL & "[" & rs.Fields(i).Name & "]=StrConv([" & rs.Fields(i).Name & "],3), " End If Next i If FieldCheck Then strSQL = Left(strSQL, Len(strSQL) - 2) CurrentDb.Execute strSQL End If End If Next MsgBox "Done" End Function That will change ALL text data in your database (text and memo fields) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Pedro Janssen Sent: Thursday, April 22, 2004 4:54 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] first caracter as Uppercase Hello Drew, how can i use this so that it sets all characters in all tables in a database? Pedro Janssen ----- Original Message ----- From: To: Sent: Thursday, April 22, 2004 9:34 PM Subject: RE: [AccessD] first caracter as Uppercase > StrConv("this is a test",vbProperCase) > > > results in: > > > This Is A Test > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Pedro Janssen > Sent: Thursday, April 22, 2004 2:09 PM > To: AccessD at databaseadvisors.com > Subject: [AccessD] first caracter as Uppercase > > > Hello Group, > > i have a code (thanks to Brett Barabash and Mark A Matte) that sets all > characters in all tables to Lowercase. > > What i also would like to see is each character at the beginning of a word > (each word that is separated by a space) is set to Uppercase in all Tables > by just one code. > Is this possible. Who can help me with this? > > TIA > > 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 cfoust at infostatsystems.com Thu Apr 22 17:46:38 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 22 Apr 2004 15:46:38 -0700 Subject: [AccessD] Dual Install 97 and 2000 Message-ID: You can install 97 after. Rename hatten.ttf before you try it, and you may have to reinstall 2000 afterward, retaining 97, to get the file type associations right. Charlotte Foust -----Original Message----- From: Mark Whittinghill [mailto:mwhittinghill at symphonyinfo.com] Sent: Thursday, April 22, 2004 1:17 PM To: accessd at databaseadvisors.com Subject: [AccessD] Dual Install 97 and 2000 Hi all, I have 2000 on my machine, and would like to add 97. Can I just install 97 then fix the hatten.ttf problem, or do I need to uninstall 2000 first, install 97 then reinstall 2000? 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 connie.kamrowski at agric.nsw.gov.au Thu Apr 22 18:22:04 2004 From: connie.kamrowski at agric.nsw.gov.au (connie.kamrowski at agric.nsw.gov.au) Date: Fri, 23 Apr 2004 09:22:04 +1000 Subject: [AccessD] Mail Merge form letters Message-ID: Hi, I have just tried searching the archive for info and have some but could use a few hints. I have just written a DB which keeps track of Exhibited animals in our state. The client needs tio be able to send licences to exhibit to each of his customers as they apply and are accepted or rejected. I have set up a mail merge template in word which gets data from the relevant query. Each copy of the document will be of varying content based on wether conditions are imposed or not. I have never done this before and so need some advise from those who have. How do I set this up to print a copy of the letter for every record in a range of records? if they have 200 new approvals I need to generate a letter for each of the approvals in a range entered. What is the best way to put this into the database and allow a user entered parameter for the range? All help appreciated Connie Kamrowski Analyst/Programmer Information Technology NSW Agriculture Orange This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient or received it in error, please delete the message and notify sender. Views expressed are those of the individual sender and are not necessarily the views of their organisation. From KIsmert at TexasSystems.com Thu Apr 22 18:45:45 2004 From: KIsmert at TexasSystems.com (Ken Ismert) Date: Thu, 22 Apr 2004 18:45:45 -0500 Subject: [AccessD] VB6 DLL Help Required In-Reply-To: <19983744.1082635887124.JavaMail.www@wwinf3003> Message-ID: <003001c428c3$eefe8d50$2a3ca8c0@TEXASSYSTEMS.COM> Paul, Are you using your DLL 'API-style' using Declare statements, or have you registered it as a COM component, and can create objects you have defined in your DLL? If the former, you are limited basically to return codes from your function call. If the latter, you could define your own events in your vbSendMail wrapper object to relay the vbSendMail events to your client. -Ken -----Original Message----- From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] Sent: Thursday, April 22, 2004 7:11 AM To: accessd Subject: [AccessD] VB6 DLL Help Required To all, Been playing with creating my own DLL?s today using Visual Basic 6 and I eventually created one to send an email using the vbSendMail.dll which works a treat. But now I want to use the withevents part of the vbSendMail.dll which will return the following: Email Sent Ok Email Failed Email Staus Can I put a form inside a dll or do I somehow have to return the appropriate message to the calling application, if so how will I do this, has anyone any ideas on this? Paul Hartland Join the UK's number one for the internet www.freeserve.com/time From martyconnelly at shaw.ca Thu Apr 22 18:51:50 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 22 Apr 2004 16:51:50 -0700 Subject: [AccessD] A2K: Shell 'discoveries' References: <20040422100618.1373059489.serbach@new.rr.com> Message-ID: <40885A96.1070909@shaw.ca> Here are a couple of other approaches FTP: Downloading Files via FTP with Progress Display Callback http://vbnet.mvps.org/code/internet/ftpdownloadcallback.htm Creating a Watched Folder with FindChangeNotification http://vbnet.mvps.org/code/fileapi/watchedfolder.htm Steven W. Erbach wrote: >Dear Group, > >In debugging the custom EDI application I'm writing for a client of mine, I "discovered" a thing or two about using the Shell command to run a DOS batch file. > >The purpose of using the DOS batch file is to start an FTP session and upload a bunch of files to the EDI mailbox. Then, when the batch file is finished, move the files that were uploaded into an archive folder on the server. > >I had tested the batch file from a command prompt and it works just dandy. The EDI documents show up as having been uploaded successfully. However when I used the Shell command in my application I wouldn't see any document names uploaded. Then I'd get the annoying e-mail the next day from the EDI service provider saying that the expected documents weren't received. > >I finally figured out the problem: Access doesn't wait for the batch file to finish. The Shell command just launches the external program, whatever it is, and goes on to the next task. In my case it was moving the EDI documents into an archive folder. Well, Access whisked those files out of the FTP folder so fast that by the time the FTP login was complete (user name, password, and account name) the files were no longer available for uploading. The FTP session didn't fail, as such, there just wasn't anything to send. > >So, I added a MsgBox asking the user to verify that the DOS session had ended before going on to archive the EDI files. Problem solved. > >Sorry if this is tediously obvious, but I haven't ever run a batch file from Access and I have nobody to bounce this stuff off of (nobody off of whom to bounce this stuff?). > >Regards, > >Steve Erbach >Scientific Marketing >Neenah, WI >920-969-0504 > >"Congress is as trustworthy with money as a crack addict who is experimenting with heroin." - Dave Barry > >"Giving money and power to the government is like giving whiskey and car keys to teenage boys." - P. J. O'Rourke > >"Be thankful we're not getting all the government we're paying for." - Will Rogers > >"It could probably be shown by facts and figures that there is no distinctly American criminal class except Congress." - Mark Twain > > > -- Marty Connelly Victoria, B.C. Canada From martyconnelly at shaw.ca Thu Apr 22 18:59:28 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 22 Apr 2004 16:59:28 -0700 Subject: [AccessD] Dual Install 97 and 2000 References: <000b01c428af$28bab8d0$2201a8c0@PASCAL> Message-ID: <40885C60.3080505@shaw.ca> It is always oldest first so you will have to uninstall 2000. It creates less possibility of errors. After each install go to officeupdates.microsoft.com to add patches. This site only checks office 2000 and up so you will have to find and download the Access 97 SP's from here seperately. Mark Whittinghill wrote: >Hi all, > > I have 2000 on my machine, and would like to add 97. Can I just install >97 then fix the hatten.ttf problem, or do I need to uninstall 2000 first, >install 97 then reinstall 2000? > >Mark Whittinghill >Symphony Information Services >763-391-7400 >mwhittinghill at symphonyinfo.com > > > > -- Marty Connelly Victoria, B.C. Canada From martyconnelly at shaw.ca Thu Apr 22 19:04:46 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 22 Apr 2004 17:04:46 -0700 Subject: [AccessD] Dual Install 97 and 2000 References: <000b01c428af$28bab8d0$2201a8c0@PASCAL> <40885C60.3080505@shaw.ca> Message-ID: <40885D9E.3020909@shaw.ca> That should be http://office.microsoft.com/officeupdate/ MartyConnelly wrote: > It is always oldest first so you will have to uninstall 2000. It > creates less possibility of errors. > After each install go to officeupdates.microsoft.com to add patches. > This site only checks office 2000 and up for upgrades > so you will have to find and download the Access 97 SP's from here > seperately. > > > Mark Whittinghill wrote: > >> Hi all, >> >> I have 2000 on my machine, and would like to add 97. Can I just >> install >> 97 then fix the hatten.ttf problem, or do I need to uninstall 2000 >> first, >> install 97 then reinstall 2000? >> >> Mark Whittinghill >> Symphony Information Services >> 763-391-7400 >> mwhittinghill at symphonyinfo.com >> >> >> >> > -- Marty Connelly Victoria, B.C. Canada From accessd at shaw.ca Thu Apr 22 19:38:34 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Thu, 22 Apr 2004 17:38:34 -0700 Subject: [AccessD] A2K: Shell 'discoveries' In-Reply-To: <20040422100618.1373059489.serbach@new.rr.com> Message-ID: Hi Steven: It has been some time ago but, I had a similar issue. The solution was to have Access simply save the files, that were to be uploaded and then add an event to the server's schedular...at 3:00AM every morning the server ran the scheduled process, that first checked to see if a file was in the upload queue...if there were it started an ftp session, transferred and received any files. The only time it did not work was when the remote ftp server was down. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Steven W. Erbach Sent: Thursday, April 22, 2004 8:06 AM To: Access Developers discussion and problem solving Subject: [AccessD] A2K: Shell 'discoveries' Dear Group, In debugging the custom EDI application I'm writing for a client of mine, I "discovered" a thing or two about using the Shell command to run a DOS batch file. The purpose of using the DOS batch file is to start an FTP session and upload a bunch of files to the EDI mailbox. Then, when the batch file is finished, move the files that were uploaded into an archive folder on the server. I had tested the batch file from a command prompt and it works just dandy. The EDI documents show up as having been uploaded successfully. However when I used the Shell command in my application I wouldn't see any document names uploaded. Then I'd get the annoying e-mail the next day from the EDI service provider saying that the expected documents weren't received. I finally figured out the problem: Access doesn't wait for the batch file to finish. The Shell command just launches the external program, whatever it is, and goes on to the next task. In my case it was moving the EDI documents into an archive folder. Well, Access whisked those files out of the FTP folder so fast that by the time the FTP login was complete (user name, password, and account name) the files were no longer available for uploading. The FTP session didn't fail, as such, there just wasn't anything to send. So, I added a MsgBox asking the user to verify that the DOS session had ended before going on to archive the EDI files. Problem solved. Sorry if this is tediously obvious, but I haven't ever run a batch file from Access and I have nobody to bounce this stuff off of (nobody off of whom to bounce this stuff?). Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "Congress is as trustworthy with money as a crack addict who is experimenting with heroin." - Dave Barry "Giving money and power to the government is like giving whiskey and car keys to teenage boys." - P. J. O'Rourke "Be thankful we're not getting all the government we're paying for." - Will Rogers "It could probably be shown by facts and figures that there is no distinctly American criminal class except Congress." - Mark Twain -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From KIsmert at TexasSystems.com Thu Apr 22 20:10:03 2004 From: KIsmert at TexasSystems.com (Ken Ismert) Date: Thu, 22 Apr 2004 20:10:03 -0500 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <009601c427ce$7b629120$ef1865cb@winxp> Message-ID: <003201c428cf$b5c90d10$2a3ca8c0@TEXASSYSTEMS.COM> Susan, You can do this using only a query, without any code, OpenArgs, or calculated controls on the report's part. You simply need a query with four variables: MajorInt - the major date interval MinorInt - the minor date interval CurInt - the current date's minor interval (1 - 7 for weekdays, etc) MaxInt - the number minor intervals in the major interval For the following Major/Minor groups, use these values: Group MajorInt MinorInt MaxInt CurInt ======================================================================= Week/Day "ww" "w" 7 DatePart("w", Date) Month/Day "m" "d" 31 DatePart("d", Date) Year/Day "yyyy" "y" 366 DatePart("y", Date) Year/Week "yyyy" "ww" 54 DatePart("ww", Date) This will group by MajorInt, then MinorInt, ordering the records starting with CurInt for each MajorInt. Sample Query: (For a report, replace the Parameters with Form control references, and replace the OrderBy with grouping by GroupMajor, GroupMinor) PARAMETERS MajorInt Text ( 255 ), MinorInt Text ( 255 ), CurInt Short, MaxInt Short; SELECT DatePart([MajorInt],[DateField]) AS GroupMajor, (DatePart([MinorInt],[DateField])+IIf(DatePart([MinorInt],[DateField])<[CurI nt],[MaxInt],0)) AS GroupMinor, tblDemo.DateID, Format([DateField],"yyyy") AS [Year], Format([DateField],"mmm") AS [Month], DatePart("ww",[DateField]) AS Week, DatePart("d",[DateField]) AS DayMonth, Format([DateField],"ddd") AS [Day] FROM tblDemo ORDER BY DatePart([MajorInt],[DateField]), (DatePart([MinorInt],[DateField])+IIf(DatePart([MinorInt],[DateField])<[CurI nt],[MaxInt],0)); -Ken ----- Original Message ----- From: Susan Harkins To: 'Access Developers discussion and problem solving' Sent: Sunday, April 18, 2004 04:16 Subject: [AccessD] custom sorts/groups in a report I'm grouping and sorting a report on a date field. The grouping is by the week -- but I want it to handle a changing first day of the week variable. I can't get my head around it at all. Passing the first day of the week around is no problem -- I just can't seem to get Access to group by it. I've looked at CreateGroupLevel, but I don't see how that can help. I tried adding a DatePart expression to the Detail section and using the OpenArgs property to pass the first day of the week, and while the expression works, I can't group by it -- it's a calculated control. I don't want the users manipulating the underlying query either. They choose the first day of the week from a simple form and the rest needs to happen behind the scenes. Any suggestions? Susan H. From martyconnelly at shaw.ca Fri Apr 23 00:30:20 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 22 Apr 2004 22:30:20 -0700 Subject: [AccessD] Mail Merge form letters References: Message-ID: <4088A9EC.6040903@shaw.ca> For examples see this site http://www.helenfeddema.com/access.htm Merging to Word from Linked Access Tables accarch44.zip 92. Mail Merge Mysteries accarch92.zip http://www.helenfeddema.com/CodeSamples.htm There are half a dozen samples here Merging to Word Four Ways 6/9/2002 Demonstrates four ways to merge Access data to Word documents ? Word document properties, bookmarks, the TypeText method and DDE mail merge. Both Access 97 and Access 2000 databases are provided; the Access 2000 database also works in Access 2002. code24.zip ---------------- Also note if using Word 2002 in Access 2002 that VBA Mail Merges using OpenDataSource and Connection (Name: Query...) which uses the old DDE technology, is broken. It was used in all previous versions of Access. Also, any DDE queries using the Connection method with (Name: Query...) also If any query parameters are required, or any calculations done, or anything special, done to the standard select query, Within WORD 2002, you CANNOT merge with a QUERY, unless you EXPORT the file from within Access and first, save the file as ?Microsoft Word Merge? file type For info if you use these methods with Word 2002, this may have been fixed with an SP I am not sure. http://www.engr.psu.edu/www/trg/isis/docs/Access2002-Merge-Datawarehouse-Notes-New.htm connie.kamrowski at agric.nsw.gov.au wrote: >Hi, > >I have just tried searching the archive for info and have some but could >use a few hints. > >I have just written a DB which keeps track of Exhibited animals in our >state. The client needs tio be able to send licences to exhibit to each of >his customers as they apply and are accepted or rejected. I have set up a >mail merge template in word which gets data from the relevant query. Each >copy of the document will be of varying content based on wether conditions >are imposed or not. > >I have never done this before and so need some advise from those who have. > >How do I set this up to print a copy of the letter for every record in a >range of records? if they have 200 new approvals I need to generate a >letter for each of the approvals in a range entered. What is the best way >to put this into the database and allow a user entered parameter for the >range? > >All help appreciated > >Connie Kamrowski > >Analyst/Programmer >Information Technology >NSW Agriculture >Orange > > > >This message is intended for the addressee named and may contain >confidential information. If you are not the intended recipient or received >it in error, please delete the message and notify sender. Views expressed >are those of the individual sender and are not necessarily the views of >their organisation. > > > > -- Marty Connelly Victoria, B.C. Canada From bchacc at san.rr.com Fri Apr 23 00:34:37 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 22 Apr 2004 22:34:37 -0700 Subject: [AccessD] Dual Install 97 and 2000 References: Message-ID: <01dd01c428f4$aac895a0$6601a8c0@HAL9002> And keep an eye on the target folder for the install. The default install folder name may be the same for both version. Rocky Smolin Beach Access Software http://www.e-z-mrp.com ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Thursday, April 22, 2004 3:46 PM Subject: RE: [AccessD] Dual Install 97 and 2000 > You can install 97 after. Rename hatten.ttf before you try it, and you > may have to reinstall 2000 afterward, retaining 97, to get the file type > associations right. > > Charlotte Foust > > -----Original Message----- > From: Mark Whittinghill [mailto:mwhittinghill at symphonyinfo.com] > Sent: Thursday, April 22, 2004 1:17 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] Dual Install 97 and 2000 > > > Hi all, > > I have 2000 on my machine, and would like to add 97. Can I just > install 97 then fix the hatten.ttf problem, or do I need to uninstall > 2000 first, install 97 then reinstall 2000? > > 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 > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From lists at theopg.com Fri Apr 23 01:45:33 2004 From: lists at theopg.com (MarkH) Date: Fri, 23 Apr 2004 07:45:33 +0100 Subject: [AccessD] Access XP Runtime and Autocad In-Reply-To: <8614878414.20040413132824@cactus.dk> Message-ID: <000801c428fe$93ee03b0$0f0b6bd5@netboxxp> Hello All... We are using Access XP runtime on Windos XP and today a couple of machines completely failed to load any access database. In both cases Autocad 2002 had been installed this morning. You could get into simple databases, but as soon as you load a form that contains a list or tree control (mscomctl.ocx) access falls over offering to restart and send a message to Microsoft... Nothing usefull really. Anyone out there know what could be causing this problem? Cheers Mark From martyconnelly at shaw.ca Fri Apr 23 02:18:44 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 23 Apr 2004 00:18:44 -0700 Subject: [AccessD] Access XP Runtime and Autocad References: <000801c428fe$93ee03b0$0f0b6bd5@netboxxp> Message-ID: <4088C354.3060707@shaw.ca> I guess AutoCad install overwrote the control or reregistered their own version. Naughty, naughty. Office XP SP2 installs version 6.1.95.45 of mscomctl.ocx See DLL hell er help database. to check your present version number right click file in windows explorer for properties version. http://support.microsoft.com/default.aspx?scid=http%3a%2f%2fsupport.microsoft.com%2fservicedesks%2ffileversion%2fdllinfo.asp&fp=1 Also check your runtime is including that control with the packaging wizard MarkH wrote: >Hello All... > >We are using Access XP runtime on Windos XP and today a couple of >machines completely failed to load any access database. In both cases >Autocad 2002 had been installed this morning. You could get into simple >databases, but as soon as you load a form that contains a list or tree >control (mscomctl.ocx) access falls over offering to restart and send a >message to Microsoft... Nothing usefull really. > >Anyone out there know what could be causing this problem? > >Cheers > >Mark > > > -- Marty Connelly Victoria, B.C. Canada From paul.hartland at fsmail.net Fri Apr 23 03:02:32 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Fri, 23 Apr 2004 10:02:32 +0200 (CEST) Subject: [AccessD] VB6 DLL Help Required Message-ID: <28557687.1082707352738.JavaMail.www@wwinf3003> This is the code I used for my DLL (may not be what your expecting as this is my first ever DLL, and I use a reference to another DLL (vbSendMail) Public WithEvents poSendmail As vbSendMail.clsSendMail Function SendEmail(EmailFrom As String, EmailTo As String, EmailSub As String, EmailBody As String, EmailAtt As String) Set poSendmail = New clsSendMail With poSendmail .SMTPHost = "Primary" .From = EmailFrom .FromDisplayName = EmailFrom .ReplyToAddress = EmailFrom .Recipient = EmailTo .Subject = EmailSub .Message = EmailBody .Attachment = EmailAtt .Send End With Set poSendmail = Nothing End Function Private Sub poSendmail_SendSuccesful() MsgBox "Email has been sent", vbInformation, "**** Email Sent ****" End Sub Private Sub poSendmail_SendFailed(Explanation As String) MsgBox "Email has NOT been sent for the following reason:" & vbCrLf & vbCrLf & _ Explanation, vbInformation, "**** Email Failed ****" End Sub The msgbox's work to say if the email has been sent or not, but there is also a status event which really needs to be on a label, but I don't know how to show this to the user. Paul Message date : Apr 23 2004, 12:47 AM >From : "Ken Ismert" To : "'Access Developers discussion and problem solving'" Copy to : Subject : RE: [AccessD] VB6 DLL Help Required Paul, Are you using your DLL 'API-style' using Declare statements, or have you registered it as a COM component, and can create objects you have defined in your DLL? If the former, you are limited basically to return codes from your function call. If the latter, you could define your own events in your vbSendMail wrapper object to relay the vbSendMail events to your client. -Ken -----Original Message----- From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] Sent: Thursday, April 22, 2004 7:11 AM To: accessd Subject: [AccessD] VB6 DLL Help Required To all, Been playing with creating my own DLL?s today using Visual Basic 6 and I eventually created one to send an email using the vbSendMail.dll which works a treat. But now I want to use the withevents part of the vbSendMail.dll which will return the following: Email Sent Ok Email Failed Email Staus Can I put a form inside a dll or do I somehow have to return the appropriate message to the calling application, if so how will I do this, has anyone any ideas on this? Paul Hartland Join the UK's number one for the internet www.freeserve.com/time -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Join the UK's number one for the internet www.freeserve.com/time From accessd667 at yahoo.com Fri Apr 23 03:33:50 2004 From: accessd667 at yahoo.com (S D) Date: Fri, 23 Apr 2004 01:33:50 -0700 (PDT) Subject: [AccessD] MoveFile in Class -> Permission denied? Message-ID: <20040423083350.99802.qmail@web61108.mail.yahoo.com> hi group, I've got some code (think from internet) that moves a file. Works like a charm. However, I've created a method in a class called .MoveFile and added the 'move-file'-code to it. Now i get the following error: 70, permission denied. So when I call the code in a function it works When I call the code as a method in a class it doesn't work. How come? TIA Sander C O D E I N F O R M '--------------------------------------------------- 'M O V E F I L E '--------------------------------------------------- With cFile .DownloadDir = "D:\Temp Projecten\Access\Switch\Download\" .ImportDir = "D:\Temp Projecten\Access\Switch\44\" txtDownloadDir = .DownloadDir txtImportDir = .ImportDir Call .MoveFile(.DownloadDir, .ImportDir, GetNamePart(strFileName)) End With C O D E I N C L A S S 'Move a file if it exists Function MoveFile(strSourceDir As String, _ strDestinationDir As String, _ strFile As String) As Boolean Dim fso Dim file As String, sfol As String, dfol As String file = strFile ' "test.xls" ' change to match the file name sfol = strSourceDir ' "C:\" ' change to match the source folder path dfol = strDestinationDir ' "E:\" ' change to match the destination folder path Set fso = CreateObject("Scripting.FileSystemObject") If Not fso.FileExists(sfol & file) Then MsgBox sfol & file & " does not exist!", vbExclamation, "Source File Missing" ElseIf Not fso.FileExists(dfol & file) Then fso.MoveFile (sfol & file), dfol <<== ERROR OCCURS HERE?!! Else MsgBox dfol & file & " already exists!", vbExclamation, "Destination File Exists" End If End Function Public Property Get DownloadDir() As String DownloadDir = m_strDownloadDir End Property Public Property Let ImportDir(ByVal vData As String) m_strImportDir = vData End Property Public Property Get ImportDir() As String ImportDir = m_strImportDir End Property --------------------------------- Do you Yahoo!? Yahoo! Photos: High-quality 4x6 digital prints for 25? From accessd667 at yahoo.com Fri Apr 23 03:45:37 2004 From: accessd667 at yahoo.com (S D) Date: Fri, 23 Apr 2004 01:45:37 -0700 (PDT) Subject: [AccessD] OT SQL Question In-Reply-To: <002501c428a9$a77fa140$1b02a8c0@MARTINREID> Message-ID: <20040423084537.43405.qmail@web61105.mail.yahoo.com> Martin, can you please provide a little more info? WHY do you not want to use cursors? Where does the output have to go to? What format does it need to have? What's the layout of the tables? (Send me the create table scripts...) Sander Martin Reid wrote: Tried the SQL Server list with this - no luck. Given a one to many relationship is it possible to produce this output using an SP without the use of cursors etc?? INPUT TABLE 1 1000 IT 1000 Databases 1000 VMS 1001 Spreadsheets 1001 GenStat 1002 Aquatic systems 1002 Research INPUT TABLE 2 1000 Smith 1001 Brown 1002 Foster OUTPUT REQUIRED 1000 Smith IT, Databases,VMS 1001 Brown Spreadsheets,GenStat 1002 Foster Aquatic Systems,Research Martin -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Yahoo! Photos: High-quality 4x6 digital prints for 25? From gustav at cactus.dk Fri Apr 23 03:41:32 2004 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 23 Apr 2004 10:41:32 +0200 Subject: [AccessD] Query fails when using NOT IN ??? In-Reply-To: <408827CE.7060601@verizon.net> References: <657FB70438B7D311AF320090279C18010614418F@EXCHMAIL> <322806795.20040422090018@cactus.dk> <408827CE.7060601@verizon.net> Message-ID: <1387056546.20040423104132@cactus.dk> Hi Francisco > Gustav, > David quoted an article for Sql Server in which this is 100% > reproducable. I think he posted it here because of the initial posts of > problems where the IN clause or rather (NOT IN) was not behaving as > expected. for that manner I've also seen it do this, one major > workaround is to explicitly point the inner quiery to that of the outer > query. that way any possible errors will be trapped > SUCH as > DELETE FROM > TitleAuthor > WHERE > au_id IN (SELECT au_id FROM Publishers WHERE Publishers.au_id=TitleAuthor.au_id) But Christopher didn't refer to SQL Server, that's why I thought it would be more relevant to show that this bug is non-existing in Jet SQL. Further, I guess including the where clause will perform much slower? If you really need to do that, couldn't this do (I have no SQL Server to play with): au_id IN (SELECT au_id FROM Publishers WHERE Publishers.au_id Is Not Null) /gustav >>>Pinnacle's SQL Server Professional, February 2002 (Volume 8, Number 2), >>>"Known Problems with IN/NOT IN()" >>> >>> >>I can't recognize this; it behaves very politely. >>The syntax doesn't work in Jet SQL, but this does: >> >> DELETE FROM >> TitleAuthor >> WHERE >> au_id IN (SELECT au_id FROM Publishers) >> >>and it deletes zero records if Publishers is empty. If au_id doesn't >>exist as a field, Access asks for it as a parameter. >>So this is exactly as expected. >> >>Can you provide another example? Or are you talking about another SQL >>engine? From mwp.reid at queens-belfast.ac.uk Fri Apr 23 05:10:37 2004 From: mwp.reid at queens-belfast.ac.uk (Martin Reid) Date: Fri, 23 Apr 2004 11:10:37 +0100 (GMT Daylight Time) Subject: [AccessD] OT SQL Question In-Reply-To: <20040423084537.43405.qmail@web61105.mail.yahoo.com> Message-ID: Sander See inline Martin > Martin, > > can you please provide a little more info? > WHY do you not want to use cursors? No reason just wanted to try it using SQL but didnt seem possible without cursors. > Where does the output have to go to? Into a table > What format does it need to have? see above > What's the layout of the tables? (Send me the create table scripts...) No problem will email them of line later on. That OK? > > Sander > > Martin Reid wrote: > Tried the SQL Server list with this - no luck. > > > Given a one to many relationship is it possible to produce this output using > an SP without the use of cursors etc?? > > INPUT TABLE 1 > > 1000 > IT > > 1000 > Databases > > 1000 > VMS > > 1001 > Spreadsheets > > 1001 > GenStat > > 1002 > Aquatic systems > > 1002 > Research > > > > > INPUT TABLE 2 > > > > 1000 > Smith > > 1001 > Brown > > 1002 > Foster > > > > > OUTPUT REQUIRED > > 1000 > Smith > IT, Databases,VMS > > 1001 > Brown > Spreadsheets,GenStat > > 1002 > Foster > Aquatic Systems,Research > > > > > Martin > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > --------------------------------- > Do you Yahoo!? > Yahoo! Photos: High-quality 4x6 digital prints for 25? > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com Martin WP Reid Information Services Queens University Belfast Tel: (02890) 273750 ---------------------- From Jdemarco at hudsonhealthplan.org Fri Apr 23 07:45:59 2004 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Fri, 23 Apr 2004 08:45:59 -0400 Subject: [AccessD] VB6 DLL Help Required Message-ID: <22F1CCD5171D17419CB37FEEE09D5F9902E8058E@TTNEXCHSRV1.hshhp.com> Paul, I don't know the name of the status event you mention but you could do it a couple of ways. Yes you could have a form in your dll that appears when status changes (I'm guessing this is the status events use): Private Sub poSendMail_StatusChanged() frmStatus.Show End Sub Or you could add a Status property and an event to your DLL that wraps the vbSendMail status event. This way your app can do whatever it likes with the event Private m_strStatus As String Public Event EmailStatusChanged Public Property Get Status() As String Status = m_strStatus End Property Public Property Let Status(ByVal strStatus As String) m_strStatus = strStatus End Property Private Sub poSendMail_StatusChanged() m_strStatus = SomeValue 'set the Status property in the Changed event RaiseEvent EmailStatusChanged 'this is the event you'll trap in your client app End Sub Now you create an object of your class type in your client app WithEvents: Dim strStatus As String Private WithEvents myObject as MyDll.cMyClass private Sub myObject_EmailStatusChanged() strStatus = myObject.Status 'show the status to the user here End Sub HTH, Jim DeMarco Director Application Development Hudson Health Plan -----Original Message----- From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] Sent: Friday, April 23, 2004 4:03 AM To: Access Developers discussion and problem solving Subject: Re: RE: [AccessD] VB6 DLL Help Required This is the code I used for my DLL (may not be what your expecting as this is my first ever DLL, and I use a reference to another DLL (vbSendMail) Public WithEvents poSendmail As vbSendMail.clsSendMail Function SendEmail(EmailFrom As String, EmailTo As String, EmailSub As String, EmailBody As String, EmailAtt As String) Set poSendmail = New clsSendMail With poSendmail .SMTPHost = "Primary" .From = EmailFrom .FromDisplayName = EmailFrom .ReplyToAddress = EmailFrom .Recipient = EmailTo .Subject = EmailSub .Message = EmailBody .Attachment = EmailAtt .Send End With Set poSendmail = Nothing End Function Private Sub poSendmail_SendSuccesful() MsgBox "Email has been sent", vbInformation, "**** Email Sent ****" End Sub Private Sub poSendmail_SendFailed(Explanation As String) MsgBox "Email has NOT been sent for the following reason:" & vbCrLf & vbCrLf & _ Explanation, vbInformation, "**** Email Failed ****" End Sub The msgbox's work to say if the email has been sent or not, but there is also a status event which really needs to be on a label, but I don't know how to show this to the user. Paul Message date : Apr 23 2004, 12:47 AM >From : "Ken Ismert" To : "'Access Developers discussion and problem solving'" Copy to : Subject : RE: [AccessD] VB6 DLL Help Required Paul, Are you using your DLL 'API-style' using Declare statements, or have you registered it as a COM component, and can create objects you have defined in your DLL? If the former, you are limited basically to return codes from your function call. If the latter, you could define your own events in your vbSendMail wrapper object to relay the vbSendMail events to your client. -Ken -----Original Message----- From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] Sent: Thursday, April 22, 2004 7:11 AM To: accessd Subject: [AccessD] VB6 DLL Help Required To all, Been playing with creating my own DLL's today using Visual Basic 6 and I eventually created one to send an email using the vbSendMail.dll which works a treat. But now I want to use the withevents part of the vbSendMail.dll which will return the following: Email Sent Ok Email Failed Email Staus Can I put a form inside a dll or do I somehow have to return the appropriate message to the calling application, if so how will I do this, has anyone any ideas on this? Paul Hartland Join the UK's number one for the internet www.freeserve.com/time -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Join the UK's number one for the internet www.freeserve.com/time -- _______________________________________________ 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 ssharkins at bellsouth.net Fri Apr 23 08:08:37 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Fri, 23 Apr 2004 09:08:37 -0400 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <003201c428cf$b5c90d10$2a3ca8c0@TEXASSYSTEMS.COM> Message-ID: <20040423130836.OIAG1728.imf24aec.mail.bellsouth.net@SUSANONE> Thank you Ken. ;) My final solution is to refer to the form value in the query. This time around, I hid the report, forcing the user to use the form to open the report, but that isn't the best way to do it. Unfortunately, I didn't know how to ward off the dread parameter prompt when the user opens the report naturally instead of through the form. I've no problem setting a default for the sort, but couldn't stop that stupid prompt because it's coming from the query. :( Susan H. Susan, You can do this using only a query, without any code, OpenArgs, or calculated controls on the report's part. You simply need a query with four variables: MajorInt - the major date interval MinorInt - the minor date interval CurInt - the current date's minor interval (1 - 7 for weekdays, etc) MaxInt - the number minor intervals in the major interval For the following Major/Minor groups, use these values: Group MajorInt MinorInt MaxInt CurInt ======================================================================= Week/Day "ww" "w" 7 DatePart("w", Date) Month/Day "m" "d" 31 DatePart("d", Date) Year/Day "yyyy" "y" 366 DatePart("y", Date) Year/Week "yyyy" "ww" 54 DatePart("ww", Date) This will group by MajorInt, then MinorInt, ordering the records starting with CurInt for each MajorInt. Sample Query: (For a report, replace the Parameters with Form control references, and replace the OrderBy with grouping by GroupMajor, GroupMinor) PARAMETERS MajorInt Text ( 255 ), MinorInt Text ( 255 ), CurInt Short, MaxInt Short; SELECT DatePart([MajorInt],[DateField]) AS GroupMajor, (DatePart([MinorInt],[DateField])+IIf(DatePart([MinorInt],[DateField])<[CurI nt],[MaxInt],0)) AS GroupMinor, tblDemo.DateID, Format([DateField],"yyyy") AS [Year], Format([DateField],"mmm") AS [Month], DatePart("ww",[DateField]) AS Week, DatePart("d",[DateField]) AS DayMonth, Format([DateField],"ddd") AS [Day] FROM tblDemo ORDER BY DatePart([MajorInt],[DateField]), (DatePart([MinorInt],[DateField])+IIf(DatePart([MinorInt],[DateField])<[CurI nt],[MaxInt],0)); -Ken ----- Original Message ----- From: Susan Harkins To: 'Access Developers discussion and problem solving' Sent: Sunday, April 18, 2004 04:16 Subject: [AccessD] custom sorts/groups in a report I'm grouping and sorting a report on a date field. The grouping is by the week -- but I want it to handle a changing first day of the week variable. I can't get my head around it at all. Passing the first day of the week around is no problem -- I just can't seem to get Access to group by it. I've looked at CreateGroupLevel, but I don't see how that can help. I tried adding a DatePart expression to the Detail section and using the OpenArgs property to pass the first day of the week, and while the expression works, I can't group by it -- it's a calculated control. I don't want the users manipulating the underlying query either. They choose the first day of the week from a simple form and the rest needs to happen behind the scenes. Any suggestions? Susan H. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at earthlink.net Fri Apr 23 08:16:16 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Fri, 23 Apr 2004 09:16:16 -0400 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <20040423130836.OIAG1728.imf24aec.mail.bellsouth.net@SUSANONE> Message-ID: Susan, <> In the reports OnOpen event, you can check for the existence of the form and 1. Open it and switch focus to it. 2. Cancel the report with a message box to the user telling them that they need to open the report through the form. 3. Open the form hidden, stuff a default value, and then continue. or 4. Change the query to use a function to get the value for the parameter from a global variable, which could be set from the form or from the report's OnOpen event if the form is not open. Jim (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Susan Harkins Sent: Friday, April 23, 2004 9:09 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] custom sorts/groups in a report Thank you Ken. ;) My final solution is to refer to the form value in the query. This time around, I hid the report, forcing the user to use the form to open the report, but that isn't the best way to do it. Unfortunately, I didn't know how to ward off the dread parameter prompt when the user opens the report naturally instead of through the form. I've no problem setting a default for the sort, but couldn't stop that stupid prompt because it's coming from the query. :( Susan H. Susan, You can do this using only a query, without any code, OpenArgs, or calculated controls on the report's part. You simply need a query with four variables: MajorInt - the major date interval MinorInt - the minor date interval CurInt - the current date's minor interval (1 - 7 for weekdays, etc) MaxInt - the number minor intervals in the major interval For the following Major/Minor groups, use these values: Group MajorInt MinorInt MaxInt CurInt ======================================================================= Week/Day "ww" "w" 7 DatePart("w", Date) Month/Day "m" "d" 31 DatePart("d", Date) Year/Day "yyyy" "y" 366 DatePart("y", Date) Year/Week "yyyy" "ww" 54 DatePart("ww", Date) This will group by MajorInt, then MinorInt, ordering the records starting with CurInt for each MajorInt. Sample Query: (For a report, replace the Parameters with Form control references, and replace the OrderBy with grouping by GroupMajor, GroupMinor) PARAMETERS MajorInt Text ( 255 ), MinorInt Text ( 255 ), CurInt Short, MaxInt Short; SELECT DatePart([MajorInt],[DateField]) AS GroupMajor, (DatePart([MinorInt],[DateField])+IIf(DatePart([MinorInt],[DateField])<[CurI nt],[MaxInt],0)) AS GroupMinor, tblDemo.DateID, Format([DateField],"yyyy") AS [Year], Format([DateField],"mmm") AS [Month], DatePart("ww",[DateField]) AS Week, DatePart("d",[DateField]) AS DayMonth, Format([DateField],"ddd") AS [Day] FROM tblDemo ORDER BY DatePart([MajorInt],[DateField]), (DatePart([MinorInt],[DateField])+IIf(DatePart([MinorInt],[DateField])<[CurI nt],[MaxInt],0)); -Ken ----- Original Message ----- From: Susan Harkins To: 'Access Developers discussion and problem solving' Sent: Sunday, April 18, 2004 04:16 Subject: [AccessD] custom sorts/groups in a report I'm grouping and sorting a report on a date field. The grouping is by the week -- but I want it to handle a changing first day of the week variable. I can't get my head around it at all. Passing the first day of the week around is no problem -- I just can't seem to get Access to group by it. I've looked at CreateGroupLevel, but I don't see how that can help. I tried adding a DatePart expression to the Detail section and using the OpenArgs property to pass the first day of the week, and while the expression works, I can't group by it -- it's a calculated control. I don't want the users manipulating the underlying query either. They choose the first day of the week from a simple form and the rest needs to happen behind the scenes. Any suggestions? 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 gustav at cactus.dk Fri Apr 23 08:28:33 2004 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 23 Apr 2004 15:28:33 +0200 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <20040423130836.OIAG1728.imf24aec.mail.bellsouth.net@SUSANONE> References: <20040423130836.OIAG1728.imf24aec.mail.bellsouth.net@SUSANONE> Message-ID: <17524277599.20040423152833@cactus.dk> Hi Susan > My final solution is to refer to the form value in the query. This time > around, I hid the report, forcing the user to use the form to open the > report, but that isn't the best way to do it. Unfortunately, I didn't know > how to ward off the dread parameter prompt when the user opens the report > naturally instead of through the form. I've no problem setting a default for > the sort, but couldn't stop that stupid prompt because it's coming from the > query. :( If that was your only problem (of this thread, of course), you could replace the parameter lookup with a tiny public function performing the lookup: Function GetReportWeekday() As Byte Const cstrForm As String = "frmYourForm" ' Default first weekday. Const cbytWeekday As Byte = vbSunday Dim bytWeekday As Byte If IsFormOpen(cstrForm) Then bytWeekday = Val(Nz(Forms(cstrForm)!txtYourTextbox.Value, vbNullString)) EndIf If bytWeekday = 0 Then bytWeekday = cbytWeekday Endif GetReportWeekday = bytWeekday End Function /gustav From adtp at touchtelindia.net Fri Apr 23 08:44:29 2004 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Fri, 23 Apr 2004 19:14:29 +0530 Subject: [AccessD] custom sorts/groups in a report References: <20040423130836.OIAG1728.imf24aec.mail.bellsouth.net@SUSANONE> Message-ID: <005f01c42939$445e4540$cd1865cb@winxp> Susan, Did you happen to try out the solution given by me ? It makes use of the existing date field in report's record source and is not dependent upon the form having to remain open. No special alteration needed for the source query and no parameters to contend with. If due to any reason, the value of starting day of the week is not passed to report's OpenArgs, default value of 1 (Sunday) is assumed and there is no error situation. Regards, A.D.Tejpal -------------- ----- Original Message ----- From: Susan Harkins To: 'Access Developers discussion and problem solving' Sent: Friday, April 23, 2004 18:38 Subject: RE: [AccessD] custom sorts/groups in a report Thank you Ken. ;) My final solution is to refer to the form value in the query. This time around, I hid the report, forcing the user to use the form to open the report, but that isn't the best way to do it. Unfortunately, I didn't know how to ward off the dread parameter prompt when the user opens the report naturally instead of through the form. I've no problem setting a default for the sort, but couldn't stop that stupid prompt because it's coming from the query. :( Susan H. Susan, You can do this using only a query, without any code, OpenArgs, or calculated controls on the report's part. You simply need a query with four variables: MajorInt - the major date interval MinorInt - the minor date interval CurInt - the current date's minor interval (1 - 7 for weekdays, etc) MaxInt - the number minor intervals in the major interval For the following Major/Minor groups, use these values: Group MajorInt MinorInt MaxInt CurInt ======================================================================= Week/Day "ww" "w" 7 DatePart("w", Date) Month/Day "m" "d" 31 DatePart("d", Date) Year/Day "yyyy" "y" 366 DatePart("y", Date) Year/Week "yyyy" "ww" 54 DatePart("ww", Date) This will group by MajorInt, then MinorInt, ordering the records starting with CurInt for each MajorInt. Sample Query: (For a report, replace the Parameters with Form control references, and replace the OrderBy with grouping by GroupMajor, GroupMinor) PARAMETERS MajorInt Text ( 255 ), MinorInt Text ( 255 ), CurInt Short, MaxInt Short; SELECT DatePart([MajorInt],[DateField]) AS GroupMajor, (DatePart([MinorInt],[DateField])+IIf(DatePart([MinorInt],[DateField])<[CurI nt],[MaxInt],0)) AS GroupMinor, tblDemo.DateID, Format([DateField],"yyyy") AS [Year], Format([DateField],"mmm") AS [Month], DatePart("ww",[DateField]) AS Week, DatePart("d",[DateField]) AS DayMonth, Format([DateField],"ddd") AS [Day] FROM tblDemo ORDER BY DatePart([MajorInt],[DateField]), (DatePart([MinorInt],[DateField])+IIf(DatePart([MinorInt],[DateField])<[CurI nt],[MaxInt],0)); -Ken ----- Original Message ----- From: Susan Harkins To: 'Access Developers discussion and problem solving' Sent: Sunday, April 18, 2004 04:16 Subject: [AccessD] custom sorts/groups in a report I'm grouping and sorting a report on a date field. The grouping is by the week -- but I want it to handle a changing first day of the week variable. I can't get my head around it at all. Passing the first day of the week around is no problem -- I just can't seem to get Access to group by it. I've looked at CreateGroupLevel, but I don't see how that can help. I tried adding a DatePart expression to the Detail section and using the OpenArgs property to pass the first day of the week, and while the expression works, I can't group by it -- it's a calculated control. I don't want the users manipulating the underlying query either. They choose the first day of the week from a simple form and the rest needs to happen behind the scenes. Any suggestions? Susan H. From rbgajewski at adelphia.net Fri Apr 23 08:48:15 2004 From: rbgajewski at adelphia.net (Bob Gajewski) Date: Fri, 23 Apr 2004 09:48:15 -0400 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: Message-ID: Susan If you choose Option #2 ... (watch for line wraps) In the report's OnOpen event, place: ****************************************** Private Sub Report_Open(Cancel As Integer) Dim strFormName As String strFormName = "yourformname" If Not IsLoaded(strFormName) Then Dim strMsg As String, strResponse As String strMsg = "This report cannot be run directly. You must open the " & strFormName & " form." strResponse = MsgBox(strMsg) Cancel = True End If End Sub ****************************************** And in a module, place: ****************************************** Function IsLoaded(ByVal strFormName As String) As Boolean 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 ****************************************** Regards, Bob Gajewski -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Dettman Sent: Friday, April 23, 2004 09:16 To: Access Developers discussion and problem solving Subject: RE: [AccessD] custom sorts/groups in a report Susan, <> In the reports OnOpen event, you can check for the existence of the form and 1. Open it and switch focus to it. 2. Cancel the report with a message box to the user telling them that they need to open the report through the form. 3. Open the form hidden, stuff a default value, and then continue. or 4. Change the query to use a function to get the value for the parameter from a global variable, which could be set from the form or from the report's OnOpen event if the form is not open. Jim (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Susan Harkins Sent: Friday, April 23, 2004 9:09 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] custom sorts/groups in a report Thank you Ken. ;) My final solution is to refer to the form value in the query. This time around, I hid the report, forcing the user to use the form to open the report, but that isn't the best way to do it. Unfortunately, I didn't know how to ward off the dread parameter prompt when the user opens the report naturally instead of through the form. I've no problem setting a default for the sort, but couldn't stop that stupid prompt because it's coming from the query. :( Susan H. Susan, You can do this using only a query, without any code, OpenArgs, or calculated controls on the report's part. You simply need a query with four variables: MajorInt - the major date interval MinorInt - the minor date interval CurInt - the current date's minor interval (1 - 7 for weekdays, etc) MaxInt - the number minor intervals in the major interval For the following Major/Minor groups, use these values: Group MajorInt MinorInt MaxInt CurInt ======================================================================= Week/Day "ww" "w" 7 DatePart("w", Date) Month/Day "m" "d" 31 DatePart("d", Date) Year/Day "yyyy" "y" 366 DatePart("y", Date) Year/Week "yyyy" "ww" 54 DatePart("ww", Date) This will group by MajorInt, then MinorInt, ordering the records starting with CurInt for each MajorInt. Sample Query: (For a report, replace the Parameters with Form control references, and replace the OrderBy with grouping by GroupMajor, GroupMinor) PARAMETERS MajorInt Text ( 255 ), MinorInt Text ( 255 ), CurInt Short, MaxInt Short; SELECT DatePart([MajorInt],[DateField]) AS GroupMajor, (DatePart([MinorInt],[DateField])+IIf(DatePart([MinorInt],[DateField])<[CurI nt],[MaxInt],0)) AS GroupMinor, tblDemo.DateID, Format([DateField],"yyyy") AS [Year], Format([DateField],"mmm") AS [Month], DatePart("ww",[DateField]) AS Week, DatePart("d",[DateField]) AS DayMonth, Format([DateField],"ddd") AS [Day] FROM tblDemo ORDER BY DatePart([MajorInt],[DateField]), (DatePart([MinorInt],[DateField])+IIf(DatePart([MinorInt],[DateField])<[CurI nt],[MaxInt],0)); -Ken ----- Original Message ----- From: Susan Harkins To: 'Access Developers discussion and problem solving' Sent: Sunday, April 18, 2004 04:16 Subject: [AccessD] custom sorts/groups in a report I'm grouping and sorting a report on a date field. The grouping is by the week -- but I want it to handle a changing first day of the week variable. I can't get my head around it at all. Passing the first day of the week around is no problem -- I just can't seem to get Access to group by it. I've looked at CreateGroupLevel, but I don't see how that can help. I tried adding a DatePart expression to the Detail section and using the OpenArgs property to pass the first day of the week, and while the expression works, I can't group by it -- it's a calculated control. I don't want the users manipulating the underlying query either. They choose the first day of the week from a simple form and the rest needs to happen behind the scenes. Any suggestions? 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 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jdemarco at hudsonhealthplan.org Fri Apr 23 09:17:51 2004 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Fri, 23 Apr 2004 10:17:51 -0400 Subject: [AccessD] Quick A2K3 question Message-ID: <22F1CCD5171D17419CB37FEEE09D5F9902E80595@TTNEXCHSRV1.hshhp.com> Just a quick and easy question. What's new in advanced coding features in Access 2003? We have enums but can we raise events? Can we design and use a class as an Interface? Is there anything else from VB that might have been added? TIA, Jim DeMarco Director Application Development Hudson Health Plan *********************************************************************************** "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 Bryan_Carbonnell at cbc.ca Fri Apr 23 09:38:15 2004 From: Bryan_Carbonnell at cbc.ca (Bryan Carbonnell) Date: Fri, 23 Apr 2004 10:38:15 -0400 Subject: [AccessD] Quick A2K3 question Message-ID: Enums and RaiseEvents aren't new in A2K3. They were added in A2K. As for what's new in A2K3, I can't help. I don't have it. Bryan Carbonnell bryan_carbonnell at cbc.ca >>> Jdemarco at hudsonhealthplan.org 23-Apr-04 10:17:51 AM >>> Just a quick and easy question. What's new in advanced coding features in Access 2003? We have enums but can we raise events? Can we design and use a class as an Interface? Is there anything else from VB that might have been added? TIA, From ssharkins at bellsouth.net Fri Apr 23 09:40:33 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Fri, 23 Apr 2004 10:40:33 -0400 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: Message-ID: <20040423144032.SRAV1774.imf19aec.mail.bellsouth.net@SUSANONE> I considered the first, but skipped it because the article was already so long, but I didn't actually apply it. My reasons for wanting the report to open without error is so the user could avoid the form altogether and depend on defaults within the report itself when the form isn't present, but it wasn't worth the extra space for the current article. I started out with a function, but my goal was to do it with as few pieces as possible. Susan H. Susan, <> In the reports OnOpen event, you can check for the existence of the form and 1. Open it and switch focus to it. 2. Cancel the report with a message box to the user telling them that they need to open the report through the form. 3. Open the form hidden, stuff a default value, and then continue. or 4. Change the query to use a function to get the value for the parameter from a global variable, which could be set from the form or from the report's OnOpen event if the form is not open. Jim (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Susan Harkins Sent: Friday, April 23, 2004 9:09 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] custom sorts/groups in a report Thank you Ken. ;) My final solution is to refer to the form value in the query. This time around, I hid the report, forcing the user to use the form to open the report, but that isn't the best way to do it. Unfortunately, I didn't know how to ward off the dread parameter prompt when the user opens the report naturally instead of through the form. I've no problem setting a default for the sort, but couldn't stop that stupid prompt because it's coming from the query. :( Susan H. Susan, You can do this using only a query, without any code, OpenArgs, or calculated controls on the report's part. You simply need a query with four variables: MajorInt - the major date interval MinorInt - the minor date interval CurInt - the current date's minor interval (1 - 7 for weekdays, etc) MaxInt - the number minor intervals in the major interval For the following Major/Minor groups, use these values: Group MajorInt MinorInt MaxInt CurInt ======================================================================= Week/Day "ww" "w" 7 DatePart("w", Date) Month/Day "m" "d" 31 DatePart("d", Date) Year/Day "yyyy" "y" 366 DatePart("y", Date) Year/Week "yyyy" "ww" 54 DatePart("ww", Date) This will group by MajorInt, then MinorInt, ordering the records starting with CurInt for each MajorInt. Sample Query: (For a report, replace the Parameters with Form control references, and replace the OrderBy with grouping by GroupMajor, GroupMinor) PARAMETERS MajorInt Text ( 255 ), MinorInt Text ( 255 ), CurInt Short, MaxInt Short; SELECT DatePart([MajorInt],[DateField]) AS GroupMajor, (DatePart([MinorInt],[DateField])+IIf(DatePart([MinorInt],[DateField])<[CurI nt],[MaxInt],0)) AS GroupMinor, tblDemo.DateID, Format([DateField],"yyyy") AS [Year], Format([DateField],"mmm") AS [Month], DatePart("ww",[DateField]) AS Week, DatePart("d",[DateField]) AS DayMonth, Format([DateField],"ddd") AS [Day] FROM tblDemo ORDER BY DatePart([MajorInt],[DateField]), (DatePart([MinorInt],[DateField])+IIf(DatePart([MinorInt],[DateField])<[CurI nt],[MaxInt],0)); -Ken ----- Original Message ----- From: Susan Harkins To: 'Access Developers discussion and problem solving' Sent: Sunday, April 18, 2004 04:16 Subject: [AccessD] custom sorts/groups in a report I'm grouping and sorting a report on a date field. The grouping is by the week -- but I want it to handle a changing first day of the week variable. I can't get my head around it at all. Passing the first day of the week around is no problem -- I just can't seem to get Access to group by it. I've looked at CreateGroupLevel, but I don't see how that can help. I tried adding a DatePart expression to the Detail section and using the OpenArgs property to pass the first day of the week, and while the expression works, I can't group by it -- it's a calculated control. I don't want the users manipulating the underlying query either. They choose the first day of the week from a simple form and the rest needs to happen behind the scenes. Any suggestions? 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 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Fri Apr 23 09:41:23 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Fri, 23 Apr 2004 10:41:23 -0400 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <17524277599.20040423152833@cactus.dk> Message-ID: <20040423144121.SRVB1774.imf19aec.mail.bellsouth.net@SUSANONE> Back to the function though -- I wanted to avoid it. I plan to hock a follow-up. ;) Susan H. Hi Susan > My final solution is to refer to the form value in the query. This > time around, I hid the report, forcing the user to use the form to > open the report, but that isn't the best way to do it. Unfortunately, > I didn't know how to ward off the dread parameter prompt when the user > opens the report naturally instead of through the form. I've no > problem setting a default for the sort, but couldn't stop that stupid > prompt because it's coming from the query. :( If that was your only problem (of this thread, of course), you could replace the parameter lookup with a tiny public function performing the lookup: Function GetReportWeekday() As Byte Const cstrForm As String = "frmYourForm" ' Default first weekday. Const cbytWeekday As Byte = vbSunday Dim bytWeekday As Byte If IsFormOpen(cstrForm) Then bytWeekday = Val(Nz(Forms(cstrForm)!txtYourTextbox.Value, vbNullString)) EndIf If bytWeekday = 0 Then bytWeekday = cbytWeekday Endif GetReportWeekday = bytWeekday End Function /gustav -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Fri Apr 23 09:42:05 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Fri, 23 Apr 2004 10:42:05 -0400 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <005f01c42939$445e4540$cd1865cb@winxp> Message-ID: <20040423144203.SSGC1774.imf19aec.mail.bellsouth.net@SUSANONE> I don't really remember -- reviewed several though -- lots of interesting choices, that's for sure. :) Susan H. Susan, Did you happen to try out the solution given by me ? It makes use of the existing date field in report's record source and is not dependent upon the form having to remain open. No special alteration needed for the source query and no parameters to contend with. If due to any reason, the value of starting day of the week is not passed to report's OpenArgs, default value of 1 (Sunday) is assumed and there is no error situation. From lists at theopg.com Fri Apr 23 10:08:19 2004 From: lists at theopg.com (MarkH) Date: Fri, 23 Apr 2004 16:08:19 +0100 Subject: [AccessD] Access XP Runtime and Autocad In-Reply-To: <4088C354.3060707@shaw.ca> Message-ID: <000001c42944$cff34c80$0f0b6bd5@netboxxp> Cheers Marty... Will do Have a good weekend Mark -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: 23 April 2004 08:19 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access XP Runtime and Autocad I guess AutoCad install overwrote the control or reregistered their own version. Naughty, naughty. Office XP SP2 installs version 6.1.95.45 of mscomctl.ocx See DLL hell er help database. to check your present version number right click file in windows explorer for properties version. http://support.microsoft.com/default.aspx?scid=http%3a%2f%2fsupport.micr osoft.com%2fservicedesks%2ffileversion%2fdllinfo.asp&fp=1 Also check your runtime is including that control with the packaging wizard MarkH wrote: >Hello All... > >We are using Access XP runtime on Windos XP and today a couple of >machines completely failed to load any access database. In both cases >Autocad 2002 had been installed this morning. You could get into simple >databases, but as soon as you load a form that contains a list or tree >control (mscomctl.ocx) access falls over offering to restart and send a >message to Microsoft... Nothing usefull really. > >Anyone out there know what could be causing this problem? > >Cheers > >Mark > > > -- 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 cfoust at infostatsystems.com Fri Apr 23 10:30:48 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 23 Apr 2004 08:30:48 -0700 Subject: [AccessD] Quick A2K3 question Message-ID: I don't have it yet. My understanding is that there is almost nothing new in 2003, since it is still based on VBA6 and has no hooks to VB.net. Raising custom events came in with 2002. Charlotte Foust -----Original Message----- From: Jim DeMarco [mailto:Jdemarco at hudsonhealthplan.org] Sent: Friday, April 23, 2004 6:18 AM To: AccessD (E-mail) Subject: [AccessD] Quick A2K3 question Just a quick and easy question. What's new in advanced coding features in Access 2003? We have enums but can we raise events? Can we design and use a class as an Interface? Is there anything else from VB that might have been added? TIA, Jim DeMarco Director Application Development Hudson Health Plan ************************************************************************ *********** "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 From gustav at cactus.dk Fri Apr 23 10:49:13 2004 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 23 Apr 2004 17:49:13 +0200 Subject: [AccessD] Quick A2K3 question In-Reply-To: References: Message-ID: <3232717965.20040423174913@cactus.dk> Hi Charlotte and Jim Here's the blurb: http://www.microsoft.com/office/editions/prodinfo/compare.mspx For Access it pretty much comes down to Smart Tags ... /gustav > I don't have it yet. My understanding is that there is almost nothing > new in 2003, since it is still based on VBA6 and has no hooks to VB.net. > Raising custom events came in with 2002. > Charlotte Foust > -----Original Message----- > From: Jim DeMarco [mailto:Jdemarco at hudsonhealthplan.org] > Sent: Friday, April 23, 2004 6:18 AM > To: AccessD (E-mail) > Subject: [AccessD] Quick A2K3 question > Just a quick and easy question. What's new in advanced coding features > in Access 2003? We have enums but can we raise events? Can we design > and use a class as an Interface? Is there anything else from VB that > might have been added? > TIA, > Jim DeMarco > Director Application Development > Hudson Health Plan From mwhittinghill at symphonyinfo.com Fri Apr 23 11:01:17 2004 From: mwhittinghill at symphonyinfo.com (Mark Whittinghill) Date: Fri, 23 Apr 2004 11:01:17 -0500 Subject: [AccessD] Dual Install 97 and 2000 References: <01dd01c428f4$aac895a0$6601a8c0@HAL9002> Message-ID: <003001c4294c$36d99920$2201a8c0@PASCAL> Thanks for the replies. I've done dual installs before, but always earlier first. I was just hoping to save a little work, but I'll uninstall 2K and reinstall after 97. Mark Whittinghill Symphony Information Services 763-391-7400 mwhittinghill at symphonyinfo.com ----- Original Message ----- From: "Rocky Smolin - Beach Access Software" To: "Access Developers discussion and problem solving" Sent: Friday, April 23, 2004 12:34 AM Subject: Re: [AccessD] Dual Install 97 and 2000 > And keep an eye on the target folder for the install. The default install > folder name may be the same for both version. > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > > > ----- Original Message ----- > From: "Charlotte Foust" > To: "Access Developers discussion and problem solving" > > Sent: Thursday, April 22, 2004 3:46 PM > Subject: RE: [AccessD] Dual Install 97 and 2000 > > > > You can install 97 after. Rename hatten.ttf before you try it, and you > > may have to reinstall 2000 afterward, retaining 97, to get the file type > > associations right. > > > > Charlotte Foust > > > > -----Original Message----- > > From: Mark Whittinghill [mailto:mwhittinghill at symphonyinfo.com] > > Sent: Thursday, April 22, 2004 1:17 PM > > To: accessd at databaseadvisors.com > > Subject: [AccessD] Dual Install 97 and 2000 > > > > > > Hi all, > > > > I have 2000 on my machine, and would like to add 97. Can I just > > install 97 then fix the hatten.ttf problem, or do I need to uninstall > > 2000 first, install 97 then reinstall 2000? > > > > 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 > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From chizotz at mchsi.com Fri Apr 23 11:28:36 2004 From: chizotz at mchsi.com (chizotz at mchsi.com) Date: Fri, 23 Apr 2004 16:28:36 +0000 Subject: [AccessD] OT: Extract Oracle Schema Information Message-ID: <042320041628.9114.4172@mchsi.com> I know this is pretty far afield, but I could sure use some help. Pointers to help would be great, no need for a big off-topic discussion here. Private emails also would be very welcome, either to chizotz at mchsi.com or rrallen at tribmail.com. I have a huge (ca. 400 table, 250 view) Oracle database with no schema information available. Is there a utility somewhere that can pull out the table names, datatypes, and relationships quickly for me? I've tried reverse engineering it with Visio 2003, which is great except that it is so huge that Visio just creates a very messy and densly packed mess that will still take me days or even weeks to sort out. I do _not_ have access to any Oracle tools and can not use SQL*Plus or anything like that. I can connect to this database via ODBC only. Thanks for any suggestions, Ron Allen Circulation Systems Administrator Columbia Daily Tribune 573-815-1604 rrallen at tribmail.com From Jdemarco at hudsonhealthplan.org Fri Apr 23 11:45:46 2004 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Fri, 23 Apr 2004 12:45:46 -0400 Subject: [AccessD] Quick A2K3 question Message-ID: <22F1CCD5171D17419CB37FEEE09D5F99030FE7E8@TTNEXCHSRV1.hshhp.com> Thanks. I probably should have added 2002 to my request (we're moving from A97 to 2003 shortly). Jim D. -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Friday, April 23, 2004 11:31 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Quick A2K3 question I don't have it yet. My understanding is that there is almost nothing new in 2003, since it is still based on VBA6 and has no hooks to VB.net. Raising custom events came in with 2002. Charlotte Foust -----Original Message----- From: Jim DeMarco [mailto:Jdemarco at hudsonhealthplan.org] Sent: Friday, April 23, 2004 6:18 AM To: AccessD (E-mail) Subject: [AccessD] Quick A2K3 question Just a quick and easy question. What's new in advanced coding features in Access 2003? We have enums but can we raise events? Can we design and use a class as an Interface? Is there anything else from VB that might have been added? TIA, Jim DeMarco Director Application Development Hudson Health Plan ************************************************************************ *********** "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 -- _______________________________________________ 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 Patricia.O'Connor at dfa.state.ny.us Fri Apr 23 11:48:39 2004 From: Patricia.O'Connor at dfa.state.ny.us (O'Connor, Patricia ) Date: Fri, 23 Apr 2004 12:48:39 -0400 Subject: [AccessD] OT: Extract Oracle Schema Information Message-ID: Create an Access Passthru query to use the native oracle syntax for viewing Oracle database/table properties. http://tahiti.oracle.com/pls/db92/db92.drilldown?book=a96525&remark=doci ndex&expand_all=1 will give you the 9i documentation search engine - watch wrapping HTH Patti ****************************************************************** *Patricia O'Connor *Associate Computer Programmer Analyst *OTDA - BDMA *(W) mailto:Patricia.O'Connor at dfa.state.ny.us *(w) mailto:aa1160 at dfa.state.ny.us ****************************************************************** > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > chizotz at mchsi.com > Sent: Friday, April 23, 2004 12:29 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] OT: Extract Oracle Schema Information > > I know this is pretty far afield, but I could sure use some > help. Pointers to help would be great, no need for a big > off-topic discussion here. Private emails also would be very > welcome, either to chizotz at mchsi.com or rrallen at tribmail.com. > > I have a huge (ca. 400 table, 250 view) Oracle database with > no schema information available. Is there a utility somewhere > that can pull out the table names, datatypes, and > relationships quickly for me? I've tried reverse engineering > it with Visio 2003, which is great except that it is so huge > that Visio just creates a very messy and densly packed mess > that will still take me days or even weeks to sort out. I do > _not_ have access to any Oracle tools and can not use > SQL*Plus or anything like that. I can connect to this > database via ODBC only. > > Thanks for any suggestions, > > Ron Allen > Circulation Systems Administrator > Columbia Daily Tribune > 573-815-1604 > rrallen at tribmail.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 Apr 23 11:48:07 2004 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 23 Apr 2004 18:48:07 +0200 Subject: [AccessD] OT: Extract Oracle Schema Information In-Reply-To: <042320041628.9114.4172@mchsi.com> References: <042320041628.9114.4172@mchsi.com> Message-ID: <3736252137.20040423184807@cactus.dk> Hi Ron Have a look at: http://www.thekompany.com/products/dataarchitect/ http://www.thekompany.com/products/dbradar/ and Dezign for databases: http://www.datanamic.com/ /gustav > I have a huge (ca. 400 table, 250 view) Oracle database with no schema > information available. Is there a utility somewhere that can pull out the > table names, datatypes, and relationships quickly for me? I've tried reverse > engineering it with Visio 2003, which is great except that it is so huge that > Visio just creates a very messy and densly packed mess that will still take me > days or even weeks to sort out. I do _not_ have access to any Oracle tools and > can not use SQL*Plus or anything like that. I can connect to this database via > ODBC only. > Thanks for any suggestions, > Ron Allen > Circulation Systems Administrator > Columbia Daily Tribune > 573-815-1604 > rrallen at tribmail.com From Patricia.O'Connor at dfa.state.ny.us Fri Apr 23 11:55:12 2004 From: Patricia.O'Connor at dfa.state.ny.us (O'Connor, Patricia ) Date: Fri, 23 Apr 2004 12:55:12 -0400 Subject: [AccessD] Quick A2K3 question Message-ID: Jim, I am in the same boat and have several A97 applications I have to bring up to 2003. I just got A2000 a little bit ago, so am upgrading them to that first. I did find that the first A97 one I tried to bring into 2003 will not even open. Keeps telling me the code is corrupt and I have decompiled and compiled the thing 3 times. My machine has A97 & 2000, So, they gave me a machine with 2000 and 2003 on it. Have NO idea what I may be missing So, let me know when you run into anything and I will gladly do the same if you would like. Patti ****************************************************************** *Patricia O'Connor *Associate Computer Programmer Analyst *OTDA - BDMA *(W) mailto:Patricia.O'Connor at dfa.state.ny.us *(w) mailto:aa1160 at dfa.state.ny.us ****************************************************************** > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco > Sent: Friday, April 23, 2004 12:46 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Quick A2K3 question > > Thanks. I probably should have added 2002 to my request > (we're moving from A97 to 2003 shortly). > > Jim D. > > -----Original Message----- > From: Charlotte Foust [mailto:cfoust at infostatsystems.com] > Sent: Friday, April 23, 2004 11:31 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Quick A2K3 question > > > I don't have it yet. My understanding is that there is > almost nothing new in 2003, since it is still based on VBA6 > and has no hooks to VB.net. > Raising custom events came in with 2002. > > Charlotte Foust > > -----Original Message----- > From: Jim DeMarco [mailto:Jdemarco at hudsonhealthplan.org] > Sent: Friday, April 23, 2004 6:18 AM > To: AccessD (E-mail) > Subject: [AccessD] Quick A2K3 question > > > Just a quick and easy question. What's new in advanced > coding features > in Access 2003? We have enums but can we raise events? Can we design > and use a class as an Interface? Is there anything else from VB that > might have been added? > > TIA, > > Jim DeMarco > Director Application Development > Hudson Health Plan > > > > > ************************************************************** > ********** > *********** > "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 > -- > _______________________________________________ > 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 > > From DWUTKA at marlow.com Fri Apr 23 12:07:33 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Fri, 23 Apr 2004 12:07:33 -0500 Subject: [AccessD] Accidentally Modified SYSTEM.MDA without Backup Message-ID: <2F8793082E00D4119A1700B0D0216BF802227B0A@main2.marlow.com> I'm sorry I didn't catch this before. There is no need to 'reinstall' your system.mdw. Click start-->Run then type wrkgadmn. That will bring up the work group administrator. Click the 'Create' button. Then simply make a new system.mdw. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Dick Abo Sent: Tuesday, April 20, 2004 1:29 PM To: accessd at databaseadvisors.com Cc: orthorabod at yahoo.com Subject: [AccessD] Accidentally Modified SYSTEM.MDA without Backup Hi All, While examining a file (chapter 14) from the CD in the Access97 ADH, I opened the change password form and although I did not enter or change passwords, I am no longer able to use any of my Access 2K files. (The old and new Passwords were blank in the dialog box.) I now get prompted with the Logon Dialog box that asks for the Administrator password, for every Access application that I attempt to use. Short of re-installing the SYSTEM.MDW from the installation CD, is there another quick way to rectify this problem? (I did not make a backup of the SYSTEM.MDW file but plan to do so from now on and my installation CD is currently unavailable.) I was previously not using the Security Workgroups feature of Access, but now it appears that I may have to.... Many thanks in advance. --------------------------------- Do you Yahoo!? Yahoo! Photos: High-quality 4x6 digital prints for 25? -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jdemarco at hudsonhealthplan.org Fri Apr 23 12:35:35 2004 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Fri, 23 Apr 2004 13:35:35 -0400 Subject: [AccessD] Quick A2K3 question Message-ID: <22F1CCD5171D17419CB37FEEE09D5F99030FE7E9@TTNEXCHSRV1.hshhp.com> Patti, Thanks. I'd be glad to keep everyone posted. So far the only issues we've had are with the security warnings ("unsafe expressions not blocked"). Jim D. -----Original Message----- From: O'Connor, Patricia [mailto:Patricia.O'Connor at dfa.state.ny.us] Sent: Friday, April 23, 2004 12:55 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Quick A2K3 question Jim, I am in the same boat and have several A97 applications I have to bring up to 2003. I just got A2000 a little bit ago, so am upgrading them to that first. I did find that the first A97 one I tried to bring into 2003 will not even open. Keeps telling me the code is corrupt and I have decompiled and compiled the thing 3 times. My machine has A97 & 2000, So, they gave me a machine with 2000 and 2003 on it. Have NO idea what I may be missing So, let me know when you run into anything and I will gladly do the same if you would like. Patti ****************************************************************** *Patricia O'Connor *Associate Computer Programmer Analyst *OTDA - BDMA *(W) mailto:Patricia.O'Connor at dfa.state.ny.us *(w) mailto:aa1160 at dfa.state.ny.us ****************************************************************** > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco > Sent: Friday, April 23, 2004 12:46 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Quick A2K3 question > > Thanks. I probably should have added 2002 to my request > (we're moving from A97 to 2003 shortly). > > Jim D. > > -----Original Message----- > From: Charlotte Foust [mailto:cfoust at infostatsystems.com] > Sent: Friday, April 23, 2004 11:31 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Quick A2K3 question > > > I don't have it yet. My understanding is that there is > almost nothing new in 2003, since it is still based on VBA6 > and has no hooks to VB.net. > Raising custom events came in with 2002. > > Charlotte Foust > > -----Original Message----- > From: Jim DeMarco [mailto:Jdemarco at hudsonhealthplan.org] > Sent: Friday, April 23, 2004 6:18 AM > To: AccessD (E-mail) > Subject: [AccessD] Quick A2K3 question > > > Just a quick and easy question. What's new in advanced > coding features > in Access 2003? We have enums but can we raise events? Can we design > and use a class as an Interface? Is there anything else from VB that > might have been added? > > TIA, > > Jim DeMarco > Director Application Development > Hudson Health Plan > > > > > ************************************************************** > ********** > *********** > "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 > -- > _______________________________________________ > 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 > > -- _______________________________________________ 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 martyconnelly at shaw.ca Fri Apr 23 13:06:49 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 23 Apr 2004 11:06:49 -0700 Subject: [AccessD] OT: Extract Oracle Schema Information References: <042320041628.9114.4172@mchsi.com> Message-ID: <40895B39.4030109@shaw.ca> You could try one of these UML modeling tools to reverse engineer Oracle, Does SQL and Access as well They both have 30 day trials and are reasonably priced under $500. I have used EA only for looks at large Access databases to workout ER diagrams Enterprise Architect http://www.sparxsystems.com.au/ea_faq.htm or Case Studio 2 http://www.casestudio.com/enu/ chizotz at mchsi.com wrote: >I know this is pretty far afield, but I could sure use some help. Pointers to >help would be great, no need for a big off-topic discussion here. Private >emails also would be very welcome, either to chizotz at mchsi.com or >rrallen at tribmail.com. > >I have a huge (ca. 400 table, 250 view) Oracle database with no schema >information available. Is there a utility somewhere that can pull out the >table names, datatypes, and relationships quickly for me? I've tried reverse >engineering it with Visio 2003, which is great except that it is so huge that >Visio just creates a very messy and densly packed mess that will still take me >days or even weeks to sort out. I do _not_ have access to any Oracle tools and >can not use SQL*Plus or anything like that. I can connect to this database via >ODBC only. > >Thanks for any suggestions, > >Ron Allen >Circulation Systems Administrator >Columbia Daily Tribune >573-815-1604 >rrallen at tribmail.com > > -- Marty Connelly Victoria, B.C. Canada From KIsmert at TexasSystems.com Fri Apr 23 13:23:17 2004 From: KIsmert at TexasSystems.com (Ken Ismert) Date: Fri, 23 Apr 2004 13:23:17 -0500 Subject: [AccessD] VB6 DLL Help Required In-Reply-To: <28557687.1082707352738.JavaMail.www@wwinf3003> Message-ID: <000001c42960$0d648ff0$2a3ca8c0@TEXASSYSTEMS.COM> > This is the code I used for my DLL OK, that looks good. But, how are you using your DLL on the client side? You can either use a Declare statement to define your SendMail call, or you can register your DLL as a COM component and use it as an object. For the latter to work, you will need to do one of two things: A. Define a callback interface to pass to your SendMail function. This would require a PublicNotCreatable class in your DLL that defines the 'events' you want to send back to the caller. B. Convert your SendMail function to a class with its own events. Your SendMail class would trap the vbSendMail events and re-raise them to your client. The client would create, use and destroy your SendMail object just like any other. Do either of these options appeal to you? -Ken From martyconnelly at shaw.ca Fri Apr 23 13:54:25 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 23 Apr 2004 11:54:25 -0700 Subject: [AccessD] Quick A2K3 question References: <22F1CCD5171D17419CB37FEEE09D5F99030FE7E9@TTNEXCHSRV1.hshhp.com> Message-ID: <40896661.9060509@shaw.ca> Some changes for Access 2003 to note Unsafe Expressions - Macro Security In Access 2003 Author: Garry Robinson Need for Jet SP 8 install especially for known security exploits. http://www.vb123.com/toolshed/03_access/unsafeExpressions.htm Best Practices When Using Microsoft Office Access 2003 in a Multi-user Environment http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odc_ac2003_ta/html/odc_acmultibest.asp Using the XML Features of the Microsoft Office Access 2003 and Microsoft Office Excel 2003 Object Models also covers Export an Access Report to XML using ReportML http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dno2k3ta/html/odc_acxlom.asp Importing and Exporting XSD Data in Microsoft Office Access 2003 http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odc_ac2003_ta/html/odc_acmultibest.asp Code Signing Office XP Visual Basic for Applications Macro Projects http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnoxpta/html/odc_dsvba.asp The Definitive "Hello World" Managed Smart Document Tutorial http://www.msdn.microsoft.com/library/default.asp?url=/library/en-us/dnofftalk/html/office09042003.asp Build with Access 2003 Developer Extensions Packaging Wizard http://msdn.microsoft.com/office/technologyinfo/devtools/accessextensions/default.aspx Office 2003 Security Enhancements http://www.microsoft.com/technet/prodtechnol/office/office2003/deploy/secdesn.mspx watch the little darlings out there don't start using this willy nilly Information Rights Management in Office Professional Edition 2003 http://www.microsoft.com/office/editions/prodinfo/technologies/irm.mspx Jim DeMarco wrote: >Patti, > >Thanks. I'd be glad to keep everyone posted. So far the only issues we've had are with the security warnings ("unsafe expressions not blocked"). > >Jim D. > >-----Original Message----- >From: O'Connor, Patricia [mailto:Patricia.O'Connor at dfa.state.ny.us] >Sent: Friday, April 23, 2004 12:55 PM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] Quick A2K3 question > > >Jim, > >I am in the same boat and have several A97 applications I have to bring >up to 2003. I just got A2000 a little bit ago, so am upgrading them to >that first. > >I did find that the first A97 one I tried to bring into 2003 will not >even open. Keeps telling me the code is corrupt and I have decompiled >and compiled the thing 3 times. My machine has A97 & 2000, So, they gave >me a machine with 2000 and 2003 on it. > >Have NO idea what I may be missing > >So, let me know when you run into anything and I will gladly do the same >if you would like. > >Patti > >****************************************************************** >*Patricia O'Connor >*Associate Computer Programmer Analyst >*OTDA - BDMA >*(W) mailto:Patricia.O'Connor at dfa.state.ny.us >*(w) mailto:aa1160 at dfa.state.ny.us >****************************************************************** > > > > >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco >>Sent: Friday, April 23, 2004 12:46 PM >>To: Access Developers discussion and problem solving >>Subject: RE: [AccessD] Quick A2K3 question >> >>Thanks. I probably should have added 2002 to my request >>(we're moving from A97 to 2003 shortly). >> >>Jim D. >> >>-----Original Message----- >>From: Charlotte Foust [mailto:cfoust at infostatsystems.com] >>Sent: Friday, April 23, 2004 11:31 AM >>To: Access Developers discussion and problem solving >>Subject: RE: [AccessD] Quick A2K3 question >> >> >>I don't have it yet. My understanding is that there is >>almost nothing new in 2003, since it is still based on VBA6 >>and has no hooks to VB.net. >>Raising custom events came in with 2002. >> >>Charlotte Foust >> >>-----Original Message----- >>From: Jim DeMarco [mailto:Jdemarco at hudsonhealthplan.org] >>Sent: Friday, April 23, 2004 6:18 AM >>To: AccessD (E-mail) >>Subject: [AccessD] Quick A2K3 question >> >> >>Just a quick and easy question. What's new in advanced >>coding features >>in Access 2003? We have enums but can we raise events? Can we design >>and use a class as an Interface? Is there anything else from VB that >>might have been added? >> >>TIA, >> >>Jim DeMarco >>Director Application Development >>Hudson Health Plan >> >> >> >> >>************************************************************** >>********** >>*********** >>"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 >>-- >>_______________________________________________ >>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 >> >> >> >> -- Marty Connelly Victoria, B.C. Canada From Developer at UltraDNT.com Fri Apr 23 14:09:55 2004 From: Developer at UltraDNT.com (Developer) Date: Fri, 23 Apr 2004 15:09:55 -0400 Subject: [AccessD] Quick A2K3 question In-Reply-To: <40896661.9060509@shaw.ca> Message-ID: <000a01c42966$93e8b140$6401a8c0@COA3> And on a lighter, but positive note, those of us nearing 40 appreciate that the font size in SQL view of the query designer is now adjustable to a larger size in 2k3. Steve -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Friday, April 23, 2004 2:54 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Quick A2K3 question Some changes for Access 2003 to note Unsafe Expressions - Macro Security In Access 2003 Author: Garry Robinson Need for Jet SP 8 install especially for known security exploits. http://www.vb123.com/toolshed/03_access/unsafeExpressions.htm Best Practices When Using Microsoft Office Access 2003 in a Multi-user Environment http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odc_ac2 003_ta/html/odc_acmultibest.asp Using the XML Features of the Microsoft Office Access 2003 and Microsoft Office Excel 2003 Object Models also covers Export an Access Report to XML using ReportML http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dno2k3t a/html/odc_acxlom.asp Importing and Exporting XSD Data in Microsoft Office Access 2003 http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odc_ac2 003_ta/html/odc_acmultibest.asp Code Signing Office XP Visual Basic for Applications Macro Projects http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnoxpta /html/odc_dsvba.asp The Definitive "Hello World" Managed Smart Document Tutorial http://www.msdn.microsoft.com/library/default.asp?url=/library/en-us/dno fftalk/html/office09042003.asp Build with Access 2003 Developer Extensions Packaging Wizard http://msdn.microsoft.com/office/technologyinfo/devtools/accessextension s/default.aspx Office 2003 Security Enhancements http://www.microsoft.com/technet/prodtechnol/office/office2003/deploy/se cdesn.mspx watch the little darlings out there don't start using this willy nilly Information Rights Management in Office Professional Edition 2003 http://www.microsoft.com/office/editions/prodinfo/technologies/irm.mspx Jim DeMarco wrote: >Patti, > >Thanks. I'd be glad to keep everyone posted. So far the only issues >we've had are with the security warnings ("unsafe expressions not >blocked"). > >Jim D. > >-----Original Message----- >From: O'Connor, Patricia [mailto:Patricia.O'Connor at dfa.state.ny.us] >Sent: Friday, April 23, 2004 12:55 PM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] Quick A2K3 question > > >Jim, > >I am in the same boat and have several A97 applications I have to bring >up to 2003. I just got A2000 a little bit ago, so am upgrading them to >that first. > >I did find that the first A97 one I tried to bring into 2003 will not >even open. Keeps telling me the code is corrupt and I have decompiled >and compiled the thing 3 times. My machine has A97 & 2000, So, they >gave me a machine with 2000 and 2003 on it. > >Have NO idea what I may be missing > >So, let me know when you run into anything and I will gladly do the >same if you would like. > >Patti > >****************************************************************** >*Patricia O'Connor >*Associate Computer Programmer Analyst >*OTDA - BDMA >*(W) mailto:Patricia.O'Connor at dfa.state.ny.us >*(w) mailto:aa1160 at dfa.state.ny.us >****************************************************************** > > > > >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco >>Sent: Friday, April 23, 2004 12:46 PM >>To: Access Developers discussion and problem solving >>Subject: RE: [AccessD] Quick A2K3 question >> >>Thanks. I probably should have added 2002 to my request >>(we're moving from A97 to 2003 shortly). >> >>Jim D. >> >>-----Original Message----- >>From: Charlotte Foust [mailto:cfoust at infostatsystems.com] >>Sent: Friday, April 23, 2004 11:31 AM >>To: Access Developers discussion and problem solving >>Subject: RE: [AccessD] Quick A2K3 question >> >> >>I don't have it yet. My understanding is that there is >>almost nothing new in 2003, since it is still based on VBA6 >>and has no hooks to VB.net. >>Raising custom events came in with 2002. >> >>Charlotte Foust >> >>-----Original Message----- >>From: Jim DeMarco [mailto:Jdemarco at hudsonhealthplan.org] >>Sent: Friday, April 23, 2004 6:18 AM >>To: AccessD (E-mail) >>Subject: [AccessD] Quick A2K3 question >> >> >>Just a quick and easy question. What's new in advanced >>coding features >>in Access 2003? We have enums but can we raise events? Can we design >>and use a class as an Interface? Is there anything else from VB that >>might have been added? >> >>TIA, >> >>Jim DeMarco >>Director Application Development >>Hudson Health Plan >> >> >> >> >>************************************************************** >>********** >>*********** >>"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 >>-- >>_______________________________________________ >>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 >> >> >> >> -- 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 MarkBoyd at McBeeAssociates.com Fri Apr 23 14:55:44 2004 From: MarkBoyd at McBeeAssociates.com (Mark Boyd) Date: Fri, 23 Apr 2004 15:55:44 -0400 Subject: [AccessD] AfterUpdate not working Message-ID: This is very strange. I have code in the After_Update event of a text box. If I type something into the box, then tab out, the code does not fire. If I go back into the textbox and re-type something and tab, then code fires. But, if I put a breakpoint in the code, it hits it everytime. Any ideas? Thanks, Mark Boyd Sr. Systems Analyst McBee Associates, Inc. From Stephen.Pickering at caremark.com Fri Apr 23 15:48:21 2004 From: Stephen.Pickering at caremark.com (Pickering, Stephen) Date: Fri, 23 Apr 2004 15:48:21 -0500 Subject: [AccessD] AfterUpdate not working Message-ID: Are you using On Error Resume Next in your error handler? Just a thought.... Steve -----Mark Boyd's Original Message----- This is very strange. I have code in the After_Update event of a text box. If I type something into the box, then tab out, the code does not fire. If I go back into the textbox and re-type something and tab, then code fires. But, if I put a breakpoint in the code, it hits it everytime. Any ideas? Thanks, Mark Boyd Sr. Systems Analyst McBee Associates, Inc. From MarkBoyd at McBeeAssociates.com Fri Apr 23 15:52:02 2004 From: MarkBoyd at McBeeAssociates.com (Mark Boyd) Date: Fri, 23 Apr 2004 16:52:02 -0400 Subject: [AccessD] AfterUpdate not working Message-ID: No, its doesn't resume next. I think I'm gonna re-create the form. There may be something corrupt within it. Thanks, Mark -----Original Message----- From: Pickering, Stephen [mailto:Stephen.Pickering at caremark.com] Sent: Friday, April 23, 2004 4:48 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] AfterUpdate not working Are you using On Error Resume Next in your error handler? Just a thought.... Steve -----Mark Boyd's Original Message----- This is very strange. I have code in the After_Update event of a text box. If I type something into the box, then tab out, the code does not fire. If I go back into the textbox and re-type something and tab, then code fires. But, if I put a breakpoint in the code, it hits it everytime. Any ideas? Thanks, Mark Boyd Sr. Systems Analyst McBee Associates, Inc. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Sat Apr 24 00:58:47 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Fri, 23 Apr 2004 22:58:47 -0700 Subject: [AccessD] A2K MDE on A2002 Message-ID: <025d01c429c1$35f78f60$6601a8c0@HAL9002> Dear List: I had a client call this morning installing a system at a customer site. He took the mdb which was created in A2000, made an mde in A2000, then put that mde on the customer's machine which was running A2002. It failed on opening the first form with an error that indicated either a compile error or a missing reference. So I had him put the A2000 mdb on the A2002 machine. Compiled fine. No missing references. But the 'Make an MDE' button was grayed out. So I had him convert this A2000 MDB to A2003. Then he could make an MDE and it ran just fine. So is it the case that an A2000 MDE will not run on A2002 (or A2003)? MTIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com From gustav at cactus.dk Sat Apr 24 04:49:30 2004 From: gustav at cactus.dk (Gustav Brock) Date: Sat, 24 Apr 2004 11:49:30 +0200 Subject: [AccessD] Quick A2K3 question In-Reply-To: <000a01c42966$93e8b140$6401a8c0@COA3> References: <000a01c42966$93e8b140$6401a8c0@COA3> Message-ID: <1606658304.20040424114930@cactus.dk> Hi Steve > And on a lighter, but positive note, those of us nearing 40 appreciate > that the font size in SQL view of the query designer is now adjustable > to a larger size in 2k3. Strange, I can easily match that qualification, but I adjusted it down and to normal ... /gustav From mwp.reid at qub.ac.uk Sat Apr 24 06:24:54 2004 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Sat, 24 Apr 2004 12:24:54 +0100 Subject: [AccessD] OT SQL Server References: <000a01c42966$93e8b140$6401a8c0@COA3> <1606658304.20040424114930@cactus.dk> Message-ID: <003301c429ee$c63df140$1b02a8c0@MARTINREID> This is going to make me look stupid again (<: Does a Unique Constraint equate to a non clustered index?? In the table properties for an upsized table the index property shows a unique constraint. When I get out the table using the following I get an indication of a non clustered index. DBCC TRACEON (3604) GO Declare @DBID Int, @TableID Int Select @DBID = db_id(), @TableID = object_id('testtable') DBCC ind(@DBID, @TableID, -1) GO All the documentation says a non clustered index is created. But if the wizard creates a unique constraint as opposed to a non clustered index this I need to know. Or is this the same thing??? Any comments appreciated. Martin From jwcolby at colbyconsulting.com Sat Apr 24 07:19:03 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sat, 24 Apr 2004 08:19:03 -0400 Subject: [AccessD] A2K MDE on A2002 In-Reply-To: <025d01c429c1$35f78f60$6601a8c0@HAL9002> Message-ID: Rocky, I think that this is exactly what is going on. I use a lib as you know. At one client I have a mix of systems running A2K, AXP and A2003. I develop in A2K. The non A2K systems REQUIRE a recompile of the lib AND the MDB that uses the lib before they will run. I get a page fault otherwise. I do know that AXP and above install a new version of VB6. It appears that this new DLL "breaks" the A2K apps. Recompiling with AXP uses that VB6 DLL and "fixes" whatever the problem is. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - Beach Access Software Sent: Saturday, April 24, 2004 1:59 AM To: AccessD at databaseadvisors.com Subject: [AccessD] A2K MDE on A2002 Dear List: I had a client call this morning installing a system at a customer site. He took the mdb which was created in A2000, made an mde in A2000, then put that mde on the customer's machine which was running A2002. It failed on opening the first form with an error that indicated either a compile error or a missing reference. So I had him put the A2000 mdb on the A2002 machine. Compiled fine. No missing references. But the 'Make an MDE' button was grayed out. So I had him convert this A2000 MDB to A2003. Then he could make an MDE and it ran just fine. So is it the case that an A2000 MDE will not run on A2002 (or A2003)? MTIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From HollisVJ at pgdp.usec.com Sat Apr 24 07:41:50 2004 From: HollisVJ at pgdp.usec.com (Hollis,Virginia) Date: Sat, 24 Apr 2004 07:41:50 -0500 Subject: [AccessD] Zip + 4 + foreign phones Message-ID: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D678@cntexchange.pgdp.usec.com> Does anyone have the Zip Codes with the + 4? I have a table with 54,000 zip codes - but the user wants the +4. Also, I know there has been a lot of messages over the years about foreign (other countries besides US) phone numbers. This is the first time I have had to use foreign numbers. How are they formatted? Oh, which makes me think - are foreign zip codes different too? Does anyone have a table with foreign zip codes too? Virginia From gustav at cactus.dk Sat Apr 24 07:51:27 2004 From: gustav at cactus.dk (Gustav Brock) Date: Sat, 24 Apr 2004 14:51:27 +0200 Subject: [AccessD] Zip + 4 + foreign phones In-Reply-To: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D678@cntexchange.pgdp.usec.com> References: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D678@cntexchange.pgdp.usec.com> Message-ID: <8317575291.20040424145127@cactus.dk> Hi Virginia Go to Graham Rhind's site and research the links: http://www.grcdi.nl/ This will easily keep you busy for a week or so! /gustav > Does anyone have the Zip Codes with the + 4? I have a table with 54,000 zip > codes - but the user wants the +4. > Also, I know there has been a lot of messages over the years about foreign > (other countries besides US) phone numbers. This is the first time I have > had to use foreign numbers. How are they formatted? > Oh, which makes me think - are foreign zip codes different too? Does anyone > have a table with foreign zip codes too? > Virginia From wdhindman at bellsouth.net Sat Apr 24 07:54:06 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Sat, 24 Apr 2004 08:54:06 -0400 Subject: [AccessD] Zip + 4 + foreign phones References: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D678@cntexchange.pgdp.usec.com> Message-ID: <001901c429fb$3a5bee90$6101a8c0@dejpolsys> ...foreign numbers and postal codes vary tremendously, often even within the same country ...the only solution I've found is to code for country/region individually. William Hindman "Always code as if the person who is maintaining or testing your code is a violent psychopath who knows where you live." William Silverstein ----- Original Message ----- From: "Hollis,Virginia" To: Sent: Saturday, April 24, 2004 8:41 AM Subject: [AccessD] Zip + 4 + foreign phones > Does anyone have the Zip Codes with the + 4? I have a table with 54,000 zip > codes - but the user wants the +4. > > Also, I know there has been a lot of messages over the years about foreign > (other countries besides US) phone numbers. This is the first time I have > had to use foreign numbers. How are they formatted? > > Oh, which makes me think - are foreign zip codes different too? Does anyone > have a table with foreign zip codes too? > > Virginia > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From billmorrill at comcast.net Sat Apr 24 08:42:36 2004 From: billmorrill at comcast.net (Bill Morrill) Date: Sat, 24 Apr 2004 07:42:36 -0600 Subject: [Accessd] Running a report each Wednesday at 10:00 am Message-ID: <000201c42a02$a90736e0$21170818@Morrill> Anybody point me in a direction here? How does one run an A2K report once a week -say on Wednesday at 10:00AM - without human intervention? Access will be up and running in a particular database, in a particular form when the time trigger is go off. Thank you. Bill From scapistrant at symphonyinfo.com Sat Apr 24 08:49:23 2004 From: scapistrant at symphonyinfo.com (Steve Capistrant) Date: Sat, 24 Apr 2004 08:49:23 -0500 Subject: [AccessD] Calendar Controls -- just for discussion In-Reply-To: <2F8793082E00D4119A1700B0D0216BF802227AE0@main2.marlow.com> Message-ID: Drew, is it still possible to get a copy of your OLD version in the meantime? Steve Capistrant Symphony Information Services scapistrant at symphonyinfo.com www.symphonyinfo.com Phone: 763-391-7400 7308 Aspen Lane North, Suite 132, Brooklyn Park, MN 55428 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DWUTKA at marlow.com Sent: Monday, April 19, 2004 9:48 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Calendar Controls -- just for discussion You're quite welcome. As soon as life settles down, I'll finish up the new version. Which is keyboard friendly too! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey Sent: Sunday, April 18, 2004 5:01 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Calendar Controls -- just for discussion > I use a modified version of Drew's old mini-calendar which is all VBA, dead reliable, and very fast. Ditto (and thanks to Drew) -- Andy Lacey http://www.minstersystems.co.uk From jmoss111 at bellsouth.net Sat Apr 24 09:43:25 2004 From: jmoss111 at bellsouth.net (JMoss) Date: Sat, 24 Apr 2004 09:43:25 -0500 Subject: [AccessD] Zip + 4 + foreign phones In-Reply-To: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D678@cntexchange.pgdp.usec.com> Message-ID: The USPS has the total database and you can subscribe to it. Several companies have such a US/CA product + address correction, FIPS codes and NCOA registry service, I'm not sure of the pricing but it's not cheap. I use to work for a CRM company and we used PostalSoft to aid in client's direct mail advertising. We didn't do anything but North American mailing, so I have no idea about vendors of foreign postal service software. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Hollis,Virginia Sent: Saturday, April 24, 2004 7:42 AM To: 'accessD at databaseadvisors.com' Subject: [AccessD] Zip + 4 + foreign phones Does anyone have the Zip Codes with the + 4? I have a table with 54,000 zip codes - but the user wants the +4. Also, I know there has been a lot of messages over the years about foreign (other countries besides US) phone numbers. This is the first time I have had to use foreign numbers. How are they formatted? Oh, which makes me think - are foreign zip codes different too? Does anyone have a table with foreign zip codes too? Virginia -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sat Apr 24 10:13:04 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sat, 24 Apr 2004 11:13:04 -0400 Subject: [AccessD] Zip + 4 + foreign phones In-Reply-To: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D678@cntexchange.pgdp.usec.com> Message-ID: >This is the first time I have had to use foreign numbers. How are they formatted? Any way they want to! John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Hollis,Virginia Sent: Saturday, April 24, 2004 8:42 AM To: 'accessD at databaseadvisors.com' Subject: [AccessD] Zip + 4 + foreign phones Does anyone have the Zip Codes with the + 4? I have a table with 54,000 zip codes - but the user wants the +4. Also, I know there has been a lot of messages over the years about foreign (other countries besides US) phone numbers. This is the first time I have had to use foreign numbers. How are they formatted? Oh, which makes me think - are foreign zip codes different too? Does anyone have a table with foreign zip codes too? Virginia -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Sat Apr 24 11:07:20 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Sat, 24 Apr 2004 09:07:20 -0700 Subject: [AccessD] A2K MDE on A2002 In-Reply-To: <025d01c429c1$35f78f60$6601a8c0@HAL9002> Message-ID: Hi Rocky: I have found that you have to recompile and reattach the references so you can migrate an application to XP on XP O/S. That is why you have a number of computers in your shop all running different versions of Windows.... Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - Beach Access Software Sent: Friday, April 23, 2004 10:59 PM To: AccessD at databaseadvisors.com Subject: [AccessD] A2K MDE on A2002 Dear List: I had a client call this morning installing a system at a customer site. He took the mdb which was created in A2000, made an mde in A2000, then put that mde on the customer's machine which was running A2002. It failed on opening the first form with an error that indicated either a compile error or a missing reference. So I had him put the A2000 mdb on the A2002 machine. Compiled fine. No missing references. But the 'Make an MDE' button was grayed out. So I had him convert this A2000 MDB to A2003. Then he could make an MDE and it ran just fine. So is it the case that an A2000 MDE will not run on A2002 (or A2003)? MTIA Rocky Smolin Beach Access Software http://www.e-z-mrp.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 Sat Apr 24 11:16:44 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Sat, 24 Apr 2004 17:16:44 +0100 Subject: [AccessD] Zip + 4 + foreign phones In-Reply-To: Message-ID: <003601c42a17$890f1d20$b274d0d5@minster33c3r25> > Any way they want to! ROTFL And regarding: > are foreign zip codes different too Oddly enough Virginia all of us foreign countries haven't decided to adopt US zip code formats any more than we've come into line with US phone numbers. Damned inconsiderate I know but there are nearly 200 of us (countries that is) and it's a tad tricky getting agreement. ;-) In fact 'foreign zip codes' is a bit of an oxymoron because I don't know how many countries even use that term. I believe the generic term is postal code. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > John W. Colby > Sent: 24 April 2004 16:13 > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Zip + 4 + foreign phones > > > >This is the first time I have had to use foreign numbers. > How are they > formatted? > > Any way they want to! > > John W. Colby > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > Hollis,Virginia > Sent: Saturday, April 24, 2004 8:42 AM > To: 'accessD at databaseadvisors.com' > Subject: [AccessD] Zip + 4 + foreign phones > > > Does anyone have the Zip Codes with the + 4? I have a table > with 54,000 zip codes - but the user wants the +4. > > Also, I know there has been a lot of messages over the years > about foreign (other countries besides US) phone numbers. > This is the first time I have had to use foreign numbers. How > are they formatted? > > Oh, which makes me think - are foreign zip codes different > too? Does anyone have a table with foreign zip codes too? > > Virginia > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > > > -- > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > From chizotz at mchsi.com Sat Apr 24 13:26:36 2004 From: chizotz at mchsi.com (Ron Allen) Date: Sat, 24 Apr 2004 13:26:36 -0500 Subject: [AccessD] OT: Extract Oracle Schema Information In-Reply-To: <40895B39.4030109@shaw.ca> References: <042320041628.9114.4172@mchsi.com> <40895B39.4030109@shaw.ca> Message-ID: <72800818.20040424132636@mchsi.com> Thanks Gustav, Patricai, and Marty. I'll look into your suggestions Monday :) Ron From Developer at UltraDNT.com Sat Apr 24 13:53:15 2004 From: Developer at UltraDNT.com (Developer) Date: Sat, 24 Apr 2004 14:53:15 -0400 Subject: [AccessD] Quick A2K3 question In-Reply-To: <1606658304.20040424114930@cactus.dk> Message-ID: <000201c42a2d$6f2a3af0$6401a8c0@COA3> Down? From 8 pts? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Saturday, April 24, 2004 5:50 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Quick A2K3 question Hi Steve > And on a lighter, but positive note, those of us nearing 40 appreciate > that the font size in SQL view of the query designer is now adjustable > to a larger size in 2k3. Strange, I can easily match that qualification, but I adjusted it down and to normal ... /gustav -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Sat Apr 24 14:02:54 2004 From: gustav at cactus.dk (Gustav Brock) Date: Sat, 24 Apr 2004 21:02:54 +0200 Subject: [AccessD] Quick A2K3 question In-Reply-To: <000201c42a2d$6f2a3af0$6401a8c0@COA3> References: <000201c42a2d$6f2a3af0$6401a8c0@COA3> Message-ID: <14439861658.20040424210254@cactus.dk> Hi Steve > Down? From 8 pts? Ahh, no, down relative to the old fixed setting. /gustav > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Saturday, April 24, 2004 5:50 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Quick A2K3 question > Hi Steve >> And on a lighter, but positive note, those of us nearing 40 appreciate >> that the font size in SQL view of the query designer is now adjustable >> to a larger size in 2k3. > Strange, I can easily match that qualification, but I adjusted it down > and to normal ... From Developer at UltraDNT.com Sat Apr 24 14:23:50 2004 From: Developer at UltraDNT.com (Developer) Date: Sat, 24 Apr 2004 15:23:50 -0400 Subject: [AccessD] Quick A2K3 question In-Reply-To: <14439861658.20040424210254@cactus.dk> Message-ID: <000301c42a31$b7ce9630$6401a8c0@COA3> Hmmm.. You must be talking about 97's fixed size which was legible ... Take a look a 2k2's TINY sql view LOL -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Saturday, April 24, 2004 3:03 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Quick A2K3 question Hi Steve > Down? From 8 pts? Ahh, no, down relative to the old fixed setting. /gustav > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav > Brock > Sent: Saturday, April 24, 2004 5:50 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Quick A2K3 question > Hi Steve >> And on a lighter, but positive note, those of us nearing 40 >> appreciate >> that the font size in SQL view of the query designer is now >> adjustable >> to a larger size in 2k3. > Strange, I can easily match that qualification, but I adjusted it down > and to normal ... -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Sat Apr 24 18:35:45 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 25 Apr 2004 09:35:45 +1000 Subject: [Accessd] Running a report each Wednesday at 10:00 am In-Reply-To: <000201c42a02$a90736e0$21170818@Morrill> Message-ID: <408B8671.31045.16737F@localhost> On 24 Apr 2004 at 7:42, Bill Morrill wrote: > Anybody point me in a direction here? How does one run an A2K report > once a week -say on Wednesday at 10:00AM - without human intervention? > Access will be up and running in a particular database, in a > particular form when the time trigger is go off. > The best way is to NOT rely on the Access application being up and running. (One day someone *will* close it down or it will crash). I have several Access apps which run unattended (they generate and email reports in the early hours of the morning). They way I do it is create a function in an mdb file to print the report(s), email it or whatever followed by a Quit command. Then I call that function as the argument of an Autoexec macro. FInally I use a task scheduler which opens the application at the appropriate time. (The built-in MS scheduler or the AT command works fine for this) -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From jmhla at earthlink.net Sat Apr 24 19:54:14 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Sat, 24 Apr 2004 17:54:14 -0700 Subject: [AccessD] cbo after adding data question solved In-Reply-To: <20040420091903.C4D9D2537F4@smtp.nildram.co.uk> Message-ID: <000c01c42a5f$d47e6750$6501a8c0@delllaptop> It is the cbo.requery that I needed. Thanks JOE HECHT LOS ANGELES CA -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Tuesday, April 20, 2004 3:19 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] cbo after adding data question Hi Joe If you have one or two places on the form which can add/alter records and therefore require the cbo to be requeried then just add: me!cboWhatever.Requery at the end of those routines. Alternatively, and as long as it doesn't cause too much of an overhead, you can place: me.ActiveControl.Requery in the OnGotFocus of the combo itself. You may do more requeries than are strictly necessary this way, but it pretty much ensures that the combo sees everything it should. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: AccessD Subject: [AccessD] cbo after adding data question Date: 20/04/04 06:53 > > I have a combo box that pulls up matching records on a form. The data source > is a SQL statement not a query. > > > > After the record is entered where and how should I write the requry > statement to add the record to the combo box? > > > > JOE HECHT > > LOS ANGELES CA > > > > -- > _______________________________________________ > 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 jwcolby at colbyconsulting.com Sat Apr 24 20:20:19 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sat, 24 Apr 2004 21:20:19 -0400 Subject: [Accessd] Running a report each Wednesday at 10:00 am In-Reply-To: <408B8671.31045.16737F@localhost> Message-ID: Does the scheduler require a login? JWC -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stuart McLachlan Sent: Saturday, April 24, 2004 7:36 PM To: Access Developers discussion and problemsolving Subject: Re: [Accessd] Running a report each Wednesday at 10:00 am On 24 Apr 2004 at 7:42, Bill Morrill wrote: > Anybody point me in a direction here? How does one run an A2K report > once a week -say on Wednesday at 10:00AM - without human intervention? > Access will be up and running in a particular database, in a > particular form when the time trigger is go off. > The best way is to NOT rely on the Access application being up and running. (One day someone *will* close it down or it will crash). I have several Access apps which run unattended (they generate and email reports in the early hours of the morning). They way I do it is create a function in an mdb file to print the report(s), email it or whatever followed by a Quit command. Then I call that function as the argument of an Autoexec macro. FInally I use a task scheduler which opens the application at the appropriate time. (The built-in MS scheduler or the AT command works fine for this) -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Sun Apr 25 02:27:16 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sun, 25 Apr 2004 00:27:16 -0700 Subject: [AccessD] Zip + 4 + foreign phones References: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D678@cntexchange.pgdp.usec.com> Message-ID: <408B6854.8080407@shaw.ca> Starting point for International Addressing http://www.upu.int/post_code/en/looking_information.html http://www.upu.int/post_code/en/international_addressing.shtml International Software 10 CD-ROMS http://www.addressdoctor.com/en/FrameFile.asp?2-3+products/developers.htm USPS online webService zip code lookup http://www.usps.com/webtools/htm/Address-Information.htm 'canada("H0H 0H0") 'Santa Claus' zipcode or H0H-0H0 'British Postal code similar but extra digit Function canada(txt) As Boolean 'verify Canada Postal Code also a couple of letters not used, first letter is Province V=BC Dim i As Integer Dim compare As Variant For i = 1 To Len(txt) - 6 compare = Mid(txt, i, 7) MsgBox compare If compare Like "*[a-z]#[a-z] #[a-z]#*" Then canada = True Else canada = False End If Next End Function Foriegn phone numbers generally are 1-3 digit country code then 1-4 digit city code (in US area code) then 4-6 digit number The US Canada country code just happens to be 1 extra prefix digits are added in each country to get an international line or extra city line Hollis,Virginia wrote: >Does anyone have the Zip Codes with the + 4? I have a table with 54,000 zip >codes - but the user wants the +4. > >Also, I know there has been a lot of messages over the years about foreign >(other countries besides US) phone numbers. This is the first time I have >had to use foreign numbers. How are they formatted? > >Oh, which makes me think - are foreign zip codes different too? Does anyone >have a table with foreign zip codes too? > >Virginia > > -- Marty Connelly Victoria, B.C. Canada From gustav at cactus.dk Sun Apr 25 02:44:56 2004 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 25 Apr 2004 09:44:56 +0200 Subject: [AccessD] Quick A2K3 question In-Reply-To: <000301c42a31$b7ce9630$6401a8c0@COA3> References: <000301c42a31$b7ce9630$6401a8c0@COA3> Message-ID: <1076574273.20040425094456@cactus.dk> Hi Steve > Hmmm.. You must be talking about 97's fixed size which was legible ... Yes. > Take a look a 2k2's TINY sql view LOL In fact, that's what I prefer - except for the Courier font. /gustav >> Down? From 8 pts? > Ahh, no, down relative to the old fixed setting. > /gustav >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav >> Brock >> Sent: Saturday, April 24, 2004 5:50 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Quick A2K3 question >> Hi Steve >>> And on a lighter, but positive note, those of us nearing 40 >>> appreciate >>> that the font size in SQL view of the query designer is now >>> adjustable >>> to a larger size in 2k3. >> Strange, I can easily match that qualification, but I adjusted it down >> and to normal ... From pharryecoenen at btinternet.com Sun Apr 25 05:36:17 2004 From: pharryecoenen at btinternet.com (Harry Coenen) Date: Sun, 25 Apr 2004 11:36:17 +0100 Subject: [AccessD] Zip + 4 + foreign phones In-Reply-To: <408B6854.8080407@shaw.ca> Message-ID: Hi Gustav and Martin already pointed you to some fairly decent reference works on the subject Thanks for http://www.grcdi.nl/ Gustav. Postal codes: Learning something from big accounting packages I usually include the address as one big multiline field, used for address labels and two additional fields for the two parts of a postal code which (in most cases) make the code unique for a postal delivery point. You could use this as a lookup (e.g. for invoices) In the UK this would be: postal code, e.g. WC1A 2HQ (for somewhere in London Westminster) house number: 23 However, they still have the snobbish habit of quoting a building name instead of the number in the street, in which case you cannot validate on this. AFAIK this is the case in most of Europe. Validation of postal codes, is usually done by including the full tables of avialable codes (e.g. in student records systems in use at universities), though you can do something at your ow risk (like Martin did for Canada) for the UK this would be: AAnx nAA A = Alpha n = digit x = alpha/digit/nothing Phone numbers: Until looking at the above site I was sure that something like +ccc (r) nnnn NNNNNNN would do the trick where: + : indicates the number you have to dial for getting international access (00 in the UK) ccc : the country code (e.g. 1 for USA/Can or 44 for UK) (r) : the national access code for interlocal calls (you don't dial this when calling international or local, only national interlocal) nnnn: the local area code (e.g. 20 for London or 1392 for Exeter) NNNNNNN: the local phone number (you only dial this part when calling local) So 5 fields, where the first could be derived from the country settings of the machine, and the local area code for the machine should be stored if you want to use it for dialing (though it doesn't hurt dialing the full international number, the network understands it, but I am not sure if the networks billing software thus). The nnnnNNNNNNNN, actually cannot be more than 10 digits (some standardisation effort). The resulting number, e.g. +44(0)1234 123456 is fairly standard (at least in Europe), even my mobile knows what to do with it. Hope this is of any help Cheers Harry From papparuff at comcast.net Sun Apr 25 11:02:53 2004 From: papparuff at comcast.net (John Ruff) Date: Sun, 25 Apr 2004 09:02:53 -0700 Subject: [Accessd] Running a report each Wednesday at 10:00 am In-Reply-To: <000201c42a02$a90736e0$21170818@Morrill> Message-ID: <001601c42ade$c480d3e0$6401a8c0@papparuff> The Windows Task Scheduler is a great tool coupled with Access' startup command-line options ("Startup command-line options" in help) are perfect for what you want to do. The Task Scheduler is used to open the Access program that runs the report each Wed at 10:00 am and the command-line options tells the program to perform the task when the command-line option is invoked. When you start the task scheduler you will want to tell it where the MSAccess program is and what database do you want to start. Typically it will look something like this: (careful about wordwrap) "C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE" "\\Blv2-dmt\LeadGen\BZUSPSMTA01\Import_BZTables_Ver_11_XP.mdb" /cmd Autorun (In my sample line above I use the word Autorun as my command-line keyword but you can use any word you want) Next you will need to do some coding in your Access program to recognize the cmd Autorun command-line option. I typically use a hidden splash screen and in the form's OnLoad Event I would place the code that would print the report and then close the program once the printing is done. Private Sub Form_Load() Dim strDocName As String If Command = "Autorun" Then ' Print the document strDocName = "rpt_Metrics" DoCmd.OpenReport strDocName, acNormal ' Quit the program DoCmd.Quit End If End Sub John V. Ruff - The Eternal Optimist :-) "Commit to the Lord whatever you do, and your plans will succeed." Proverbs 16:3 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Morrill Sent: Saturday, April 24, 2004 6:43 AM To: AccessD at databaseadvisors.com Subject: [Accessd] Running a report each Wednesday at 10:00 am Anybody point me in a direction here? How does one run an A2K report once a week -say on Wednesday at 10:00AM - without human intervention? Access will be up and running in a particular database, in a particular form when the time trigger is go off. Thank you. Bill -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pharryecoenen at btinternet.com Sun Apr 25 12:43:57 2004 From: pharryecoenen at btinternet.com (Harry Coenen) Date: Sun, 25 Apr 2004 18:43:57 +0100 Subject: [AccessD] Zip + 4 + foreign phones In-Reply-To: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D678@cntexchange.pgdp.usec.com> Message-ID: Hi Virginia Just to show how "inconsiderate" we bloody foreigners sometimes are: 1. addressing formats differ e.g. in the UK: house number before street name in the Netherlands or Germany: street name followed by house number 2. postal codes differ national and international, e.g.: In the Netherlands they would use the local format: e.g. 1000 AE Amsterdam Internationally you would be advised to use: NL-1000 AE Amsterdam 3. postal code + place differ, e.g.: In the Netherlands: NL-1000 AE Amsterdam (on the same line) In the UK: (some hamlet), Exeter, Devon, EX? ??? (usually on four different lines, where the hamlet and county (Devon) may be omitted) 4. First name + Last name combinations differ, e.g.: in Northern America and Europe: First Name before Last Name in some Asian and Arabic countries the other way around. The question is if the "Western" concept of first+last name applies universally? 5. middle names differ, e.g.: In the Netherlands: "Van den Bergh" would be sorted on "B" (unless the person is of Anglo-American descent) In the UK the same name would be sorted on "V" 6. First name (calling name) is not necessarily the first of the forenames. This one is becoming more important recently, given more stringent visa checking and security checks at airports. 7. Titles used in mail addressing differ, e.g. a female academic professor mrs X with a PhD: in the UK academic professors prefer to be addressed as: Professor X in some other European countries they are more happy with: Prof. Dr. Mrs. X although they might differ on the dots (Prof. or Prof). In short: Name and Address probably should be treated as atomic attributes, only differentiating the bulk of the data based on the most relevant conventions and treating the rest as "non-standard". standard name/address -> split in the usual (local) attributes non-standard name/address -> no split but using the "addressing name"/full address Why should you care? It all depends, e.g. for judicial purposes you simply have to get it right according to the local judicial principles, otherwise they have lost the case before they even get to court for marketing purposes your client probably doesn't want to put customers of by wrong addressing, or even worse, by web forms that don't allow non-US address formats (e.g. allowing Andorra as a country, while still insisting on a US state as a required field) Thanks for the question, I really like these puzzles which can only be solved by some kind of a pragmatic choice. Cheers Harry From jwcolby at colbyconsulting.com Sun Apr 25 19:20:14 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sun, 25 Apr 2004 20:20:14 -0400 Subject: [AccessD] Zip + 4 + foreign phones In-Reply-To: Message-ID: Doesn't it just make you want to become part of the USA? John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Harry Coenen Sent: Sunday, April 25, 2004 1:44 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Zip + 4 + foreign phones Hi Virginia Just to show how "inconsiderate" we bloody foreigners sometimes are: 1. addressing formats differ e.g. in the UK: house number before street name in the Netherlands or Germany: street name followed by house number 2. postal codes differ national and international, e.g.: In the Netherlands they would use the local format: e.g. 1000 AE Amsterdam Internationally you would be advised to use: NL-1000 AE Amsterdam 3. postal code + place differ, e.g.: In the Netherlands: NL-1000 AE Amsterdam (on the same line) In the UK: (some hamlet), Exeter, Devon, EX? ??? (usually on four different lines, where the hamlet and county (Devon) may be omitted) 4. First name + Last name combinations differ, e.g.: in Northern America and Europe: First Name before Last Name in some Asian and Arabic countries the other way around. The question is if the "Western" concept of first+last name applies universally? 5. middle names differ, e.g.: In the Netherlands: "Van den Bergh" would be sorted on "B" (unless the person is of Anglo-American descent) In the UK the same name would be sorted on "V" 6. First name (calling name) is not necessarily the first of the forenames. This one is becoming more important recently, given more stringent visa checking and security checks at airports. 7. Titles used in mail addressing differ, e.g. a female academic professor mrs X with a PhD: in the UK academic professors prefer to be addressed as: Professor X in some other European countries they are more happy with: Prof. Dr. Mrs. X although they might differ on the dots (Prof. or Prof). In short: Name and Address probably should be treated as atomic attributes, only differentiating the bulk of the data based on the most relevant conventions and treating the rest as "non-standard". standard name/address -> split in the usual (local) attributes non-standard name/address -> no split but using the "addressing name"/full address Why should you care? It all depends, e.g. for judicial purposes you simply have to get it right according to the local judicial principles, otherwise they have lost the case before they even get to court for marketing purposes your client probably doesn't want to put customers of by wrong addressing, or even worse, by web forms that don't allow non-US address formats (e.g. allowing Andorra as a country, while still insisting on a US state as a required field) Thanks for the question, I really like these puzzles which can only be solved by some kind of a pragmatic choice. Cheers Harry -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From lmrazek at lcm-res.com Sun Apr 25 19:22:34 2004 From: lmrazek at lcm-res.com (Lawrence Mrazek) Date: Sun, 25 Apr 2004 19:22:34 -0500 Subject: [AccessD] Access XP, Dbase Import error In-Reply-To: Message-ID: <001801c42b24$92e47800$036fa8c0@DellLaptop> Hi: I'm getting the following error message when trying to import a dbase file. "The search key was not found in any record." This only happens in Access XP; for some reason, Access 97 imports the file without any problems. Has anyone encountered this error and if so, do you have any ideas on a workaround? Thanks in advance. Larry Mrazek LCM Research, Inc. ph. 314-432-5886 fx. 314-432-3304 lmrazek at lcm-res.com http://www.lcm-res.com From jwcolby at colbyconsulting.com Sun Apr 25 19:32:39 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sun, 25 Apr 2004 20:32:39 -0400 Subject: [AccessD] Access XP, Dbase Import error In-Reply-To: <001801c42b24$92e47800$036fa8c0@DellLaptop> Message-ID: Workaround... Import it in A97. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lawrence Mrazek Sent: Sunday, April 25, 2004 8:23 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access XP, Dbase Import error Hi: I'm getting the following error message when trying to import a dbase file. "The search key was not found in any record." This only happens in Access XP; for some reason, Access 97 imports the file without any problems. Has anyone encountered this error and if so, do you have any ideas on a workaround? Thanks in advance. Larry Mrazek LCM Research, Inc. ph. 314-432-5886 fx. 314-432-3304 lmrazek at lcm-res.com http://www.lcm-res.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd667 at yahoo.com Mon Apr 26 00:22:49 2004 From: accessd667 at yahoo.com (S D) Date: Sun, 25 Apr 2004 22:22:49 -0700 (PDT) Subject: [AccessD] OT SQL Question In-Reply-To: Message-ID: <20040426052249.23200.qmail@web61108.mail.yahoo.com> Martin, I've checked it out during the weekend (for a short while...it IS a weekend he). I don't see how you could create this using SQL. PERHAPS, using COMPUTE?! I'm not very familiar with this keyword. To save a lot of time and (very) complex coding...just use a cursur. Add each value to a variable and use this in an insert statement. Regards, Sander PS: Oracle to retrieve SQL-Server data....oi Martin Reid wrote: Sander See inline Martin > Martin, > > can you please provide a little more info? > WHY do you not want to use cursors? No reason just wanted to try it using SQL but didnt seem possible without cursors. > Where does the output have to go to? Into a table > What format does it need to have? see above > What's the layout of the tables? (Send me the create table scripts...) No problem will email them of line later on. That OK? > > Sander > > Martin Reid wrote: > Tried the SQL Server list with this - no luck. > > > Given a one to many relationship is it possible to produce this output using > an SP without the use of cursors etc?? > > INPUT TABLE 1 > > 1000 > IT > > 1000 > Databases > > 1000 > VMS > > 1001 > Spreadsheets > > 1001 > GenStat > > 1002 > Aquatic systems > > 1002 > Research > > > > > INPUT TABLE 2 > > > > 1000 > Smith > > 1001 > Brown > > 1002 > Foster > > > > > OUTPUT REQUIRED > > 1000 > Smith > IT, Databases,VMS > > 1001 > Brown > Spreadsheets,GenStat > > 1002 > Foster > Aquatic Systems,Research > > > > > Martin > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > --------------------------------- > Do you Yahoo!? > Yahoo! Photos: High-quality 4x6 digital prints for 25? > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com Martin WP Reid Information Services Queens University Belfast Tel: (02890) 273750 ---------------------- -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Yahoo! Photos: High-quality 4x6 digital prints for 25? From pharryecoenen at btinternet.com Mon Apr 26 00:07:54 2004 From: pharryecoenen at btinternet.com (Harry Coenen) Date: Mon, 26 Apr 2004 06:07:54 +0100 Subject: [AccessD] Zip + 4 + foreign phones In-Reply-To: Message-ID: > >Doesn't it just make you want to become part of the USA? only if you (USA) accept ISO formats and ...eh ... human rights > > I agree on that one > >John W. Colby Harry From HollisVJ at pgdp.usec.com Mon Apr 26 06:21:39 2004 From: HollisVJ at pgdp.usec.com (Hollis,Virginia) Date: Mon, 26 Apr 2004 06:21:39 -0500 Subject: [AccessD] RE: Zip + 4 + foreign phones Message-ID: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D683@cntexchange.pgdp.usec.com> Thanks for all the suggestions - all I can say is Whew! > -----Original Message----- > From: Hollis,Virginia > Sent: Saturday, April 24, 2004 7:42 AM > To: 'accessD at databaseadvisors.com' > Subject: Zip + 4 + foreign phones > > Does anyone have the Zip Codes with the + 4? I have a table with 54,000 > zip codes - but the user wants the +4. > > Also, I know there has been a lot of messages over the years about foreign > (other countries besides US) phone numbers. This is the first time I have > had to use foreign numbers. How are they formatted? > > Oh, which makes me think - are foreign zip codes different too? Does > anyone have a table with foreign zip codes too? > > Virginia From john at winhaven.net Mon Apr 26 09:01:12 2004 From: john at winhaven.net (John Bartow) Date: Mon, 26 Apr 2004 09:01:12 -0500 Subject: [AccessD] OT jpeg lawsuit (was jpg Screen shot) In-Reply-To: <426071E0B0A6D311B3C0006008B0AB23AFE519@TAPPEEXCH01> Message-ID: Speak of the devil, we just might start seeing an increase in the use of the png format. These is a lawsuit concerning the jpeg patent rights and license fees (ala SCO UNIX code in Linux?): http://internetweek.com/e-business/showArticle.jhtml?articleID=19200171 John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Brett Barabash Sent: Friday, April 16, 2004 1:34 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] jpg Screen shot Most Windows programs support PNG (Adobe Photoshop, Microsoft Photo Editor, Internet Explorer, Irfanview, etc). It just hasn't made it to the industry standard realm the same way as other formats have. (Magazines asking for JPG files instead of PNGs for screenshots, for example). I think you'd be hard pressed to find a current graphics file viewer that doesn't support it. -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Friday, April 16, 2004 1:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] jpg Screen shot Brett: Would it be a problem if you wanted to send a file to someone? Is PNG format supported by Windows or any of the popular viewers? Rocky ----- Original Message ----- From: "Brett Barabash" To: "'Access Developers discussion and problem solving'" Sent: Friday, April 16, 2004 9:42 AM Subject: RE: [AccessD] jpg Screen shot > By far, the absolute best format for screenshots is PNG. Near-infinite > color range (handles 32-bit palettes with ease), lossless compression, and > tiny file size. > > Unfortunately, it is open-source based so it hasn't made it to the > mainstream like other more popular formats (GIF, JPG). > > I wrote a global error handler that automatically grabs a full screen shot > of the users' workstation upon app failure and stores it as a PNG on the > network. Files range between 8KB and 25KB! > > > -----Original Message----- > From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] > Sent: Friday, April 16, 2004 10:23 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] jpg Screen shot > > You should make this into an article. > > Thanks to everyone who helped. I eventually used Irfanview which looks like > a very complete program. Just got a note from the publisher - the jpg is > fine. Of course, in the magazine it's going to be probably no bigger than > 2" x 2" > > Regards, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > > > ----- Original Message ----- > From: "William Hindman" > To: "Access Developers discussion and problem solving" > > Sent: Thursday, April 15, 2004 4:18 PM > Subject: Re: [AccessD] jpg Screen shot > > > > ...don't use any program that initially captures your screen as a jpeg > ...I > > won't go into the details here but when you save an image as a jpeg you > are > > using a lossy algorithm that throws away portions of the graphic ...its > the > > nature of the beast ...in order to give them the high quality jpeg they > > need, start with a decent graphics program that lets you capture the image > > in a high quality, uncompressed format to begin with ...Photoshop and > > paintshoppro are the mainstream programs ...I personally use paintshoppro > > (www.jasc.com) ...set your screen resolution to the highest resolution > your > > graphics card can support and make sure your image capture area is clean > and > > clear at that resolution ...capture the image and save it into un > > uncompressed format, preferably the native format of your graphics program > > ...in paintshoppro that would give you an image with a .pspimage file tag > > ...using that image you can do all sorts of image enhancements to make > your > > saved image look better ...then resize it to 300dpi ...if you started at a > > much lower screen resolution you might wind up with too small an image at > > this point ...once the image is sized/cropped/enhanced just as you'd like > to > > see it, use your graphics program's feature that optimizes it and saves it > > as a jpeg ...use zero compression (even though the jpeg will still have > some > > inherent image quality loss) and make sure that you use the comparison > > feature to ensure minimal visible loss of image quality in the resulting > > file. > > > > ...now you have a decent sized jpeg at the desired dpi that is the best > that > > you can present ...hth :) > > > > William Hindman > > "Always code as if the person who is maintaining or testing your code is > > a violent psychopath who knows where you live." William Silverstein > > > > > > ----- Original Message ----- > > From: "Rocky Smolin - Beach Access Software" > > To: > > Sent: Thursday, April 15, 2004 4:30 PM > > Subject: [AccessD] jpg Screen shot > > > > > > Dear List: > > > > A magazine wants a screen shot from my software and they would like it to > be > > 300dpi. > > > > What's the best way to get that off the screen and into a jpg? > > > > MTIA, > > > > Rocky Smolin > > Beach Access Software > > http://www.e-z-mrp.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 > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.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 bheid at appdevgrp.com Mon Apr 26 09:09:21 2004 From: bheid at appdevgrp.com (Bobby Heid) Date: Mon, 26 Apr 2004 10:09:21 -0400 Subject: [AccessD] OT jpeg lawsuit (was jpg Screen shot) In-Reply-To: <916187228923D311A6FE00A0CC3FAA3082EECD@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA305BB47A@ADGSERVER> But, IIRC, the patent(s) run out near the end of 2004. So I guess we'll see. Either way, the suing company has a bunch of (place favorite expletives here) running it. Funny thing is, I thought the JPEG spec was designed (as is PNG) so as to not infringe on any patents. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Monday, April 26, 2004 10:01 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT jpeg lawsuit (was jpg Screen shot) Speak of the devil, we just might start seeing an increase in the use of the png format. These is a lawsuit concerning the jpeg patent rights and license fees (ala SCO UNIX code in Linux?): http://internetweek.com/e-business/showArticle.jhtml?articleID=19200171 John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Brett Barabash Sent: Friday, April 16, 2004 1:34 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] jpg Screen shot Most Windows programs support PNG (Adobe Photoshop, Microsoft Photo Editor, Internet Explorer, Irfanview, etc). It just hasn't made it to the industry standard realm the same way as other formats have. (Magazines asking for JPG files instead of PNGs for screenshots, for example). I think you'd be hard pressed to find a current graphics file viewer that doesn't support it. -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Friday, April 16, 2004 1:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] jpg Screen shot Brett: Would it be a problem if you wanted to send a file to someone? Is PNG format supported by Windows or any of the popular viewers? Rocky ----- Original Message ----- From: "Brett Barabash" To: "'Access Developers discussion and problem solving'" Sent: Friday, April 16, 2004 9:42 AM Subject: RE: [AccessD] jpg Screen shot > By far, the absolute best format for screenshots is PNG. > Near-infinite color range (handles 32-bit palettes with ease), > lossless compression, and tiny file size. > > Unfortunately, it is open-source based so it hasn't made it to the > mainstream like other more popular formats (GIF, JPG). > > I wrote a global error handler that automatically grabs a full screen > shot of the users' workstation upon app failure and stores it as a PNG > on the network. Files range between 8KB and 25KB! > > > -----Original Message----- > From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] > Sent: Friday, April 16, 2004 10:23 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] jpg Screen shot > > You should make this into an article. > > Thanks to everyone who helped. I eventually used Irfanview which > looks like > a very complete program. Just got a note from the publisher - the jpg > is fine. Of course, in the magazine it's going to be probably no > bigger than 2" x 2" > > Regards, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > > > ----- Original Message ----- > From: "William Hindman" > To: "Access Developers discussion and problem solving" > > Sent: Thursday, April 15, 2004 4:18 PM > Subject: Re: [AccessD] jpg Screen shot > > > > ...don't use any program that initially captures your screen as a > > jpeg > ...I > > won't go into the details here but when you save an image as a jpeg > > you > are > > using a lossy algorithm that throws away portions of the graphic > > ...its > the > > nature of the beast ...in order to give them the high quality jpeg > > they need, start with a decent graphics program that lets you > > capture the image > > in a high quality, uncompressed format to begin with ...Photoshop > > and paintshoppro are the mainstream programs ...I personally use paintshoppro > > (www.jasc.com) ...set your screen resolution to the highest > > resolution > your > > graphics card can support and make sure your image capture area is > > clean > and > > clear at that resolution ...capture the image and save it into un > > uncompressed format, preferably the native format of your graphics program > > ...in paintshoppro that would give you an image with a .pspimage > > file tag > > ...using that image you can do all sorts of image enhancements to > > make > your > > saved image look better ...then resize it to 300dpi ...if you > > started at a > > much lower screen resolution you might wind up with too small an > > image at > > this point ...once the image is sized/cropped/enhanced just as you'd like > to > > see it, use your graphics program's feature that optimizes it and > > saves it > > as a jpeg ...use zero compression (even though the jpeg will still > > have > some > > inherent image quality loss) and make sure that you use the > > comparison feature to ensure minimal visible loss of image quality > > in the resulting file. > > > > ...now you have a decent sized jpeg at the desired dpi that is the > > best > that > > you can present ...hth :) > > > > William Hindman > > "Always code as if the person who is maintaining or testing your > > code is a violent psychopath who knows where you live." William > > Silverstein > > > > > > ----- Original Message ----- > > From: "Rocky Smolin - Beach Access Software" > > To: > > Sent: Thursday, April 15, 2004 4:30 PM > > Subject: [AccessD] jpg Screen shot > > > > > > Dear List: > > > > A magazine wants a screen shot from my software and they would like > > it to > be > > 300dpi. > > > > What's the best way to get that off the screen and into a jpg? > > > > MTIA, > > > > Rocky Smolin > > Beach Access Software > > http://www.e-z-mrp.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 > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.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 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Mon Apr 26 09:20:15 2004 From: john at winhaven.net (John Bartow) Date: Mon, 26 Apr 2004 09:20:15 -0500 Subject: [AccessD] OT jpeg lawsuit (was jpg Screen shot) In-Reply-To: <916187228923D311A6FE00A0CC3FAA305BB47A@ADGSERVER> Message-ID: That is what I thought too. Fuzzy memories or fuzzy law suit? ;o) John Funny thing is, I thought the JPEG spec was designed (as is PNG) so as to not infringe on any patents. Bobby From BBarabash at TappeConstruction.com Mon Apr 26 09:22:39 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Mon, 26 Apr 2004 09:22:39 -0500 Subject: [AccessD] OT jpeg lawsuit (was jpg Screen shot) Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE548@TAPPEEXCH01> I initially became interested in PNG after Unisys launched their LZW patents against software companies offering GIF support. I was under the mistaken impression the jpeg was an open standard. Guess not! IMHO, PNG is a poor substitute for JPEG, as its compression works best on images with large blocks of same colors (a la screenshots). Not very effective for photos. -----Original Message----- From: John Bartow [mailto:john at winhaven.net] Sent: Monday, April 26, 2004 9:01 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT jpeg lawsuit (was jpg Screen shot) Speak of the devil, we just might start seeing an increase in the use of the png format. These is a lawsuit concerning the jpeg patent rights and license fees (ala SCO UNIX code in Linux?): http://internetweek.com/e-business/showArticle.jhtml?articleID=19200171 John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Brett Barabash Sent: Friday, April 16, 2004 1:34 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] jpg Screen shot Most Windows programs support PNG (Adobe Photoshop, Microsoft Photo Editor, Internet Explorer, Irfanview, etc). It just hasn't made it to the industry standard realm the same way as other formats have. (Magazines asking for JPG files instead of PNGs for screenshots, for example). I think you'd be hard pressed to find a current graphics file viewer that doesn't support it. -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Friday, April 16, 2004 1:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] jpg Screen shot Brett: Would it be a problem if you wanted to send a file to someone? Is PNG format supported by Windows or any of the popular viewers? Rocky ----- Original Message ----- From: "Brett Barabash" To: "'Access Developers discussion and problem solving'" Sent: Friday, April 16, 2004 9:42 AM Subject: RE: [AccessD] jpg Screen shot > By far, the absolute best format for screenshots is PNG. Near-infinite > color range (handles 32-bit palettes with ease), lossless compression, and > tiny file size. > > Unfortunately, it is open-source based so it hasn't made it to the > mainstream like other more popular formats (GIF, JPG). > > I wrote a global error handler that automatically grabs a full screen shot > of the users' workstation upon app failure and stores it as a PNG on the > network. Files range between 8KB and 25KB! > > > -----Original Message----- > From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] > Sent: Friday, April 16, 2004 10:23 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] jpg Screen shot > > You should make this into an article. > > Thanks to everyone who helped. I eventually used Irfanview which looks like > a very complete program. Just got a note from the publisher - the jpg is > fine. Of course, in the magazine it's going to be probably no bigger than > 2" x 2" > > Regards, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > > > ----- Original Message ----- > From: "William Hindman" > To: "Access Developers discussion and problem solving" > > Sent: Thursday, April 15, 2004 4:18 PM > Subject: Re: [AccessD] jpg Screen shot > > > > ...don't use any program that initially captures your screen as a jpeg > ...I > > won't go into the details here but when you save an image as a jpeg you > are > > using a lossy algorithm that throws away portions of the graphic ...its > the > > nature of the beast ...in order to give them the high quality jpeg they > > need, start with a decent graphics program that lets you capture the image > > in a high quality, uncompressed format to begin with ...Photoshop and > > paintshoppro are the mainstream programs ...I personally use paintshoppro > > (www.jasc.com) ...set your screen resolution to the highest resolution > your > > graphics card can support and make sure your image capture area is clean > and > > clear at that resolution ...capture the image and save it into un > > uncompressed format, preferably the native format of your graphics program > > ...in paintshoppro that would give you an image with a .pspimage file tag > > ...using that image you can do all sorts of image enhancements to make > your > > saved image look better ...then resize it to 300dpi ...if you started at a > > much lower screen resolution you might wind up with too small an image at > > this point ...once the image is sized/cropped/enhanced just as you'd like > to > > see it, use your graphics program's feature that optimizes it and saves it > > as a jpeg ...use zero compression (even though the jpeg will still have > some > > inherent image quality loss) and make sure that you use the comparison > > feature to ensure minimal visible loss of image quality in the resulting > > file. > > > > ...now you have a decent sized jpeg at the desired dpi that is the best > that > > you can present ...hth :) > > > > William Hindman > > "Always code as if the person who is maintaining or testing your code is > > a violent psychopath who knows where you live." William Silverstein > > > > > > ----- Original Message ----- > > From: "Rocky Smolin - Beach Access Software" > > To: > > Sent: Thursday, April 15, 2004 4:30 PM > > Subject: [AccessD] jpg Screen shot > > > > > > Dear List: > > > > A magazine wants a screen shot from my software and they would like it to > be > > 300dpi. > > > > What's the best way to get that off the screen and into a jpg? > > > > MTIA, > > > > Rocky Smolin > > Beach Access Software > > http://www.e-z-mrp.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 > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.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 wdhindman at bellsouth.net Mon Apr 26 09:54:09 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Mon, 26 Apr 2004 10:54:09 -0400 Subject: [AccessD] OT jpeg lawsuit (was jpg Screen shot) References: <426071E0B0A6D311B3C0006008B0AB23AFE548@TAPPEEXCH01> Message-ID: <003f01c42b9e$546f6470$6101a8c0@dejpolsys> ...if there is any merit to this I'm hopeful that it will push earlier adoption of the SVG format ...SVG is an open-standard vector graphics language based on XML and has been developed by a working group of the W3C ...it produces readily scalable graphics with much smaller file size ...its wide adoption would significantly improve the net in many ways. :) William Hindman "Always code as if the person who is maintaining or testing your code is a violent psychopath who knows where you live." William Silverstein ----- Original Message ----- From: "Brett Barabash" To: "'Access Developers discussion and problem solving'" Sent: Monday, April 26, 2004 10:22 AM Subject: RE: [AccessD] OT jpeg lawsuit (was jpg Screen shot) > I initially became interested in PNG after Unisys launched their LZW patents > against software companies offering GIF support. I was under the mistaken > impression the jpeg was an open standard. Guess not! > > IMHO, PNG is a poor substitute for JPEG, as its compression works best on > images with large blocks of same colors (a la screenshots). Not very > effective for photos. > > > -----Original Message----- > From: John Bartow [mailto:john at winhaven.net] > Sent: Monday, April 26, 2004 9:01 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] OT jpeg lawsuit (was jpg Screen shot) > > Speak of the devil, we just might start seeing an increase in the use of the > png format. These is a lawsuit concerning the jpeg patent rights and license > fees (ala SCO UNIX code in Linux?): > > http://internetweek.com/e-business/showArticle.jhtml?articleID=19200171 > > John > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Brett Barabash > Sent: Friday, April 16, 2004 1:34 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] jpg Screen shot > > > Most Windows programs support PNG (Adobe Photoshop, Microsoft Photo Editor, > Internet Explorer, Irfanview, etc). It just hasn't made it to the industry > standard realm the same way as other formats have. (Magazines asking for > JPG files instead of PNGs for screenshots, for example). > > I think you'd be hard pressed to find a current graphics file viewer that > doesn't support it. > > > -----Original Message----- > From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] > Sent: Friday, April 16, 2004 1:28 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] jpg Screen shot > > Brett: > > Would it be a problem if you wanted to send a file to someone? Is PNG > format supported by Windows or any of the popular viewers? > > Rocky > > ----- Original Message ----- > From: "Brett Barabash" > To: "'Access Developers discussion and problem solving'" > > Sent: Friday, April 16, 2004 9:42 AM > Subject: RE: [AccessD] jpg Screen shot > > > > By far, the absolute best format for screenshots is PNG. Near-infinite > > color range (handles 32-bit palettes with ease), lossless compression, and > > tiny file size. > > > > Unfortunately, it is open-source based so it hasn't made it to the > > mainstream like other more popular formats (GIF, JPG). > > > > I wrote a global error handler that automatically grabs a full screen shot > > of the users' workstation upon app failure and stores it as a PNG on the > > network. Files range between 8KB and 25KB! > > > > > > -----Original Message----- > > From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] > > Sent: Friday, April 16, 2004 10:23 AM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] jpg Screen shot > > > > You should make this into an article. > > > > Thanks to everyone who helped. I eventually used Irfanview which looks > like > > a very complete program. Just got a note from the publisher - the jpg is > > fine. Of course, in the magazine it's going to be probably no bigger than > > 2" x 2" > > > > Regards, > > > > Rocky Smolin > > Beach Access Software > > http://www.e-z-mrp.com > > > > > > ----- Original Message ----- > > From: "William Hindman" > > To: "Access Developers discussion and problem solving" > > > > Sent: Thursday, April 15, 2004 4:18 PM > > Subject: Re: [AccessD] jpg Screen shot > > > > > > > ...don't use any program that initially captures your screen as a jpeg > > ...I > > > won't go into the details here but when you save an image as a jpeg you > > are > > > using a lossy algorithm that throws away portions of the graphic ...its > > the > > > nature of the beast ...in order to give them the high quality jpeg they > > > need, start with a decent graphics program that lets you capture the > image > > > in a high quality, uncompressed format to begin with ...Photoshop and > > > paintshoppro are the mainstream programs ...I personally use > paintshoppro > > > (www.jasc.com) ...set your screen resolution to the highest resolution > > your > > > graphics card can support and make sure your image capture area is clean > > and > > > clear at that resolution ...capture the image and save it into un > > > uncompressed format, preferably the native format of your graphics > program > > > ...in paintshoppro that would give you an image with a .pspimage file > tag > > > ...using that image you can do all sorts of image enhancements to make > > your > > > saved image look better ...then resize it to 300dpi ...if you started at > a > > > much lower screen resolution you might wind up with too small an image > at > > > this point ...once the image is sized/cropped/enhanced just as you'd > like > > to > > > see it, use your graphics program's feature that optimizes it and saves > it > > > as a jpeg ...use zero compression (even though the jpeg will still have > > some > > > inherent image quality loss) and make sure that you use the comparison > > > feature to ensure minimal visible loss of image quality in the resulting > > > file. > > > > > > ...now you have a decent sized jpeg at the desired dpi that is the best > > that > > > you can present ...hth :) > > > > > > William Hindman > > > "Always code as if the person who is maintaining or testing your code is > > > a violent psychopath who knows where you live." William Silverstein > > > > > > > > > ----- Original Message ----- > > > From: "Rocky Smolin - Beach Access Software" > > > To: > > > Sent: Thursday, April 15, 2004 4:30 PM > > > Subject: [AccessD] jpg Screen shot > > > > > > > > > Dear List: > > > > > > A magazine wants a screen shot from my software and they would like it > to > > be > > > 300dpi. > > > > > > What's the best way to get that off the screen and into a jpg? > > > > > > MTIA, > > > > > > Rocky Smolin > > > Beach Access Software > > > http://www.e-z-mrp.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 > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.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 accessd at shaw.ca Mon Apr 26 09:49:29 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Mon, 26 Apr 2004 07:49:29 -0700 Subject: [AccessD] OT jpeg lawsuit (was jpg Screen shot) In-Reply-To: <426071E0B0A6D311B3C0006008B0AB23AFE548@TAPPEEXCH01> Message-ID: PNG is suppose to be a replacement for GIF files not JPEG files. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Brett Barabash Sent: Monday, April 26, 2004 7:23 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT jpeg lawsuit (was jpg Screen shot) I initially became interested in PNG after Unisys launched their LZW patents against software companies offering GIF support. I was under the mistaken impression the jpeg was an open standard. Guess not! IMHO, PNG is a poor substitute for JPEG, as its compression works best on images with large blocks of same colors (a la screenshots). Not very effective for photos. -----Original Message----- From: John Bartow [mailto:john at winhaven.net] Sent: Monday, April 26, 2004 9:01 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT jpeg lawsuit (was jpg Screen shot) Speak of the devil, we just might start seeing an increase in the use of the png format. These is a lawsuit concerning the jpeg patent rights and license fees (ala SCO UNIX code in Linux?): http://internetweek.com/e-business/showArticle.jhtml?articleID=19200171 John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Brett Barabash Sent: Friday, April 16, 2004 1:34 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] jpg Screen shot Most Windows programs support PNG (Adobe Photoshop, Microsoft Photo Editor, Internet Explorer, Irfanview, etc). It just hasn't made it to the industry standard realm the same way as other formats have. (Magazines asking for JPG files instead of PNGs for screenshots, for example). I think you'd be hard pressed to find a current graphics file viewer that doesn't support it. -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Friday, April 16, 2004 1:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] jpg Screen shot Brett: Would it be a problem if you wanted to send a file to someone? Is PNG format supported by Windows or any of the popular viewers? Rocky ----- Original Message ----- From: "Brett Barabash" To: "'Access Developers discussion and problem solving'" Sent: Friday, April 16, 2004 9:42 AM Subject: RE: [AccessD] jpg Screen shot > By far, the absolute best format for screenshots is PNG. Near-infinite > color range (handles 32-bit palettes with ease), lossless compression, and > tiny file size. > > Unfortunately, it is open-source based so it hasn't made it to the > mainstream like other more popular formats (GIF, JPG). > > I wrote a global error handler that automatically grabs a full screen shot > of the users' workstation upon app failure and stores it as a PNG on the > network. Files range between 8KB and 25KB! > > > -----Original Message----- > From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] > Sent: Friday, April 16, 2004 10:23 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] jpg Screen shot > > You should make this into an article. > > Thanks to everyone who helped. I eventually used Irfanview which looks like > a very complete program. Just got a note from the publisher - the jpg is > fine. Of course, in the magazine it's going to be probably no bigger than > 2" x 2" > > Regards, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > > > ----- Original Message ----- > From: "William Hindman" > To: "Access Developers discussion and problem solving" > > Sent: Thursday, April 15, 2004 4:18 PM > Subject: Re: [AccessD] jpg Screen shot > > > > ...don't use any program that initially captures your screen as a jpeg > ...I > > won't go into the details here but when you save an image as a jpeg you > are > > using a lossy algorithm that throws away portions of the graphic ...its > the > > nature of the beast ...in order to give them the high quality jpeg they > > need, start with a decent graphics program that lets you capture the image > > in a high quality, uncompressed format to begin with ...Photoshop and > > paintshoppro are the mainstream programs ...I personally use paintshoppro > > (www.jasc.com) ...set your screen resolution to the highest resolution > your > > graphics card can support and make sure your image capture area is clean > and > > clear at that resolution ...capture the image and save it into un > > uncompressed format, preferably the native format of your graphics program > > ...in paintshoppro that would give you an image with a .pspimage file tag > > ...using that image you can do all sorts of image enhancements to make > your > > saved image look better ...then resize it to 300dpi ...if you started at a > > much lower screen resolution you might wind up with too small an image at > > this point ...once the image is sized/cropped/enhanced just as you'd like > to > > see it, use your graphics program's feature that optimizes it and saves it > > as a jpeg ...use zero compression (even though the jpeg will still have > some > > inherent image quality loss) and make sure that you use the comparison > > feature to ensure minimal visible loss of image quality in the resulting > > file. > > > > ...now you have a decent sized jpeg at the desired dpi that is the best > that > > you can present ...hth :) > > > > William Hindman > > "Always code as if the person who is maintaining or testing your code is > > a violent psychopath who knows where you live." William Silverstein > > > > > > ----- Original Message ----- > > From: "Rocky Smolin - Beach Access Software" > > To: > > Sent: Thursday, April 15, 2004 4:30 PM > > Subject: [AccessD] jpg Screen shot > > > > > > Dear List: > > > > A magazine wants a screen shot from my software and they would like it to > be > > 300dpi. > > > > What's the best way to get that off the screen and into a jpg? > > > > MTIA, > > > > Rocky Smolin > > Beach Access Software > > http://www.e-z-mrp.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 > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.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 greggs at msn.com Mon Apr 26 11:25:18 2004 From: greggs at msn.com (Gregg) Date: Mon, 26 Apr 2004 11:25:18 -0500 Subject: [AccessD] List Box does not show all In-Reply-To: Message-ID: What causes list boxes to no show the whole list? Seems to come and go. It shows up on all users so it must be either the link to the BE or the BE itself. Any ideas? Gregg Steinbrenner From Jim.Hale at FleetPride.com Mon Apr 26 12:09:41 2004 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Mon, 26 Apr 2004 12:09:41 -0500 Subject: [AccessD] Calendar Controls -- just for discussion Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB677201ABB3@corp-es01.fleetpride.com> For anyone who needs to activate a calendar from Excel John Walkenbach has one of the most amazing calendars using a single array formula on p357 of his Excel 2000 formulas book. Since I often use Excel worksheets as simple interfaces to Access databases this native Excel calendar comes in very handy. Jim Hale -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Sunday, April 18, 2004 2:49 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Calendar Controls -- just for discussion I use the ADH calendar and trigger it on the double-click of any date text box. So they can still hand enter the date if they want. Users seem to like the convention once they get used to it. Rocky Smolin Beach Access Software http://www.e-z-mrp.com > > ----- Original Message ----- > From: "Susan Harkins" > To: "'Access Developers discussion and problem solving'" > > Sent: Sunday, April 18, 2004 12:48 PM > Subject: RE: [AccessD] Calendar Controls -- just for discussion > > > > ...first ...I don't use the ODE Calendar Control because of a long history > > of versioning problems > > > > ===========I'm limited -- I write about what they want. :) So, when you > > complain of versioning problems, what do you mean? > > > > 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 > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rl_stewart at highstream.net Mon Apr 26 12:23:20 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Mon, 26 Apr 2004 12:23:20 -0500 Subject: [AccessD] Re: To Combine Child Records In-Reply-To: <200404261700.i3QH0dQ30045@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040426121936.02baee58@pop3.highstream.net> Actually, you can do this with 2 views combined in one and possible using a subquery. You can create a SQL Server function that can give you the following: 1001, "Spreadsheets,GenStat" Once you get that, it is a simple join to get the name added in. Robert P.S. I covered the function that was required to do this in my last Access developer's workshop. We did it in both Access and SQL Server. At 12:00 PM 4/26/2004 -0500, you wrote: >Date: Sun, 25 Apr 2004 22:22:49 -0700 (PDT) >From: S D >Subject: Re: [AccessD] OT SQL Question >To: Access Developers discussion and problem solving > >Message-ID: <20040426052249.23200.qmail at web61108.mail.yahoo.com> >Content-Type: text/plain; charset=us-ascii > >Martin, > >I've checked it out during the weekend (for a short while...it IS a >weekend he). I don't see how you could create this using SQL. PERHAPS, >using COMPUTE?! I'm not very familiar with this keyword. > >To save a lot of time and (very) complex coding...just use a cursur. Add >each value to a variable and use this in an insert statement. > >Regards, > >Sander > >PS: Oracle to retrieve SQL-Server data....oi > >Martin Reid wrote: >Sander > >See inline > >Martin > > > > > Martin, > > > > can you please provide a little more info? > > WHY do you not want to use cursors? > >No reason just wanted to try it using SQL but didnt seem >possible without cursors. > > > Where does the output have to go to? > >Into a table > > > What format does it need to have? > >see above > > > What's the layout of the tables? (Send me the create table scripts...) > >No problem will email them of line later on. That OK? > > > > > Sander > > > > Martin Reid wrote: > > Tried the SQL Server list with this - no luck. > > > > > > Given a one to many relationship is it possible to produce this output > using > > an SP without the use of cursors etc?? > > > > INPUT TABLE 1 > > > > 1000 > > IT > > > > 1000 > > Databases > > > > 1000 > > VMS > > > > 1001 > > Spreadsheets > > > > 1001 > > GenStat > > > > 1002 > > Aquatic systems > > > > 1002 > > Research > > > > > > > > > > INPUT TABLE 2 > > > > > > > > 1000 > > Smith > > > > 1001 > > Brown > > > > 1002 > > Foster > > > > > > > > > > OUTPUT REQUIRED > > > > 1000 > > Smith > > IT, Databases,VMS > > > > 1001 > > Brown > > Spreadsheets,GenStat > > > > 1002 > > Foster > > Aquatic Systems,Research > > > > > > > > > > Martin From rl_stewart at highstream.net Mon Apr 26 12:27:45 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Mon, 26 Apr 2004 12:27:45 -0500 Subject: [AccessD] Re: jpg Screen shot In-Reply-To: <200404261700.i3QH0dQ30045@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040426122441.02acf750@pop3.highstream.net> Tiny file size my foot!!!! I had to convert all my PNG (Fireworks) files to GIF to get speed loading them as graphic buttons for a web site. 94k compared to 6k. PNG was not a viable choice. At 12:00 PM 4/26/2004 -0500, you wrote: >From: "Brett Barabash" >To: "'Access Developers discussion and problem solving'" > >Sent: Friday, April 16, 2004 9:42 AM >Subject: RE: [AccessD] jpg Screen shot > > > > By far, the absolute best format for screenshots is PNG. Near-infinite > > color range (handles 32-bit palettes with ease), lossless compression, and > > tiny file size. > > From Developer at UltraDNT.com Mon Apr 26 13:05:22 2004 From: Developer at UltraDNT.com (Developer) Date: Mon, 26 Apr 2004 14:05:22 -0400 Subject: [AccessD] PrtDevMode in MDE In-Reply-To: Message-ID: <000001c42bb9$14826310$6401a8c0@COA3> I am trying to force some values into prtdevmode in a report at runtime, but the code ive always used for this requires the report to be manipulated in design view, which wont work in an MDE. Specifically, there is a custom paper size on the pc (11 x 8.5) that I want to hard-code to the report Is there any way to do this in an MDE? From BBarabash at TappeConstruction.com Mon Apr 26 13:12:48 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Mon, 26 Apr 2004 13:12:48 -0500 Subject: [AccessD] RE: jpg Screen shot Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE54B@TAPPEEXCH01> Huh?! I was talking about screenshots, not website buttons. As I mentioned earlier, IMHO, 20-40 KB is tiny for a screenshot, considering it displays 100% of the original quality. I have yet to find another file format that can top this. Nevertheless, let's do a little test here. Using Microsoft PhotoDraw 2000 (tried it with MS Photo Editor as well with reasonably similar results): ----- Source: 66x109 pixel 24-bit photo bmp file (a poor choice for PNG compression) Original BMP: 21,854 bytes PNG (24-bit color): 10,128 bytes PNG (8-bit 256 color): 3,052 bytes GIF (8-bit 256 color): 3,118 bytes (both the 8 bit PNG and the 8 bit GIF looked awful i.e. loss of photo detail/color) ----- ----- Source: 61x41 pixel 16 color toolbar button (a perfect choice for PNG compression) Original BMP: 9,438 bytes PNG (24-bit color): 391 bytes PNG (8-bit 256 color): 1,084 bytes GIF (8-bit 256 color): 1,129 bytes (results were identical. In this case, the 24-bit pallette netted a smaller file size, since there were only 4 distinct colors in the photo. The 256 color pallette wasted the additional overhead). ----- Keep the following in mind: - Photos are poor candidates for PNG/zlib compression. PNG works best for files with large blocks of the same color (e.g. screenshots). - All programs are not created equally. Despite LIBPNG being offered to software vendors and the general public with a free no strings attached commercial license, there are several apps that do a half-assed job of handling PNG files *cough IE*. What program are you using to convert to PNG? -----Original Message----- From: Robert L. Stewart [mailto:rl_stewart at highstream.net] Sent: Monday, April 26, 2004 12:28 PM To: accessd at databaseadvisors.com Cc: BBarabash at tappeconstruction.com Subject: Re: jpg Screen shot Tiny file size my foot!!!! I had to convert all my PNG (Fireworks) files to GIF to get speed loading them as graphic buttons for a web site. 94k compared to 6k. PNG was not a viable choice. At 12:00 PM 4/26/2004 -0500, you wrote: >From: "Brett Barabash" >To: "'Access Developers discussion and problem solving'" > >Sent: Friday, April 16, 2004 9:42 AM >Subject: RE: [AccessD] jpg Screen shot > > > > By far, the absolute best format for screenshots is PNG. Near-infinite > > color range (handles 32-bit palettes with ease), lossless compression, and > > tiny file size. > > -------------------------------------------------------------------------------------------------------------------- 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 Bryan_Carbonnell at cbc.ca Mon Apr 26 13:19:04 2004 From: Bryan_Carbonnell at cbc.ca (Bryan Carbonnell) Date: Mon, 26 Apr 2004 14:19:04 -0400 Subject: [AccessD] RE: jpg Screen shot Message-ID: OK Folks. While all this talk of jpgs, pngs and image formats is interesting, it really belongs over on dba-tech http://databaseadvisors.com/mailman/listinfo/dba-tech if you aren't already subscribed to dba-tech. Bryan Carbonnell bryan_carbonnell at cbc.ca Coming to you from work From john at winhaven.net Mon Apr 26 13:22:13 2004 From: john at winhaven.net (John Bartow) Date: Mon, 26 Apr 2004 13:22:13 -0500 Subject: [AccessD] Re: jpg Screen shot In-Reply-To: <5.1.0.14.2.20040426122441.02acf750@pop3.highstream.net> Message-ID: I haven't seen that big of a difference in file size myself. I use Adobe products and the size is usually larger on average, by maybe 15%. It could be that your software isn't doing a good job of conversion or the settings are not quite right. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Robert L. Stewart Sent: Monday, April 26, 2004 12:28 PM To: accessd at databaseadvisors.com Cc: BBarabash at tappeconstruction.com Subject: [AccessD] Re: jpg Screen shot Tiny file size my foot!!!! I had to convert all my PNG (Fireworks) files to GIF to get speed loading them as graphic buttons for a web site. 94k compared to 6k. PNG was not a viable choice. At 12:00 PM 4/26/2004 -0500, you wrote: >From: "Brett Barabash" >To: "'Access Developers discussion and problem solving'" > >Sent: Friday, April 16, 2004 9:42 AM >Subject: RE: [AccessD] jpg Screen shot > > > > By far, the absolute best format for screenshots is PNG. Near-infinite > > color range (handles 32-bit palettes with ease), lossless compression, and > > tiny file size. > > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Mon Apr 26 13:30:55 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 26 Apr 2004 13:30:55 -0500 Subject: [AccessD] Calendar Controls -- just for discussion Message-ID: <2F8793082E00D4119A1700B0D0216BF802227B16@main2.marlow.com> Yep, it's on my website. http://www.wolfwares.com Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Steve Capistrant Sent: Saturday, April 24, 2004 8:49 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calendar Controls -- just for discussion Drew, is it still possible to get a copy of your OLD version in the meantime? Steve Capistrant Symphony Information Services scapistrant at symphonyinfo.com www.symphonyinfo.com Phone: 763-391-7400 7308 Aspen Lane North, Suite 132, Brooklyn Park, MN 55428 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DWUTKA at marlow.com Sent: Monday, April 19, 2004 9:48 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Calendar Controls -- just for discussion You're quite welcome. As soon as life settles down, I'll finish up the new version. Which is keyboard friendly too! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey Sent: Sunday, April 18, 2004 5:01 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Calendar Controls -- just for discussion > I use a modified version of Drew's old mini-calendar which is all VBA, dead reliable, and very fast. Ditto (and thanks to Drew) -- 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 Rich_Lavsa at pghcorning.com Mon Apr 26 14:45:14 2004 From: Rich_Lavsa at pghcorning.com (Lavsa, Rich) Date: Mon, 26 Apr 2004 15:45:14 -0400 Subject: [AccessD] Calendar Controls AND TIME Controls Message-ID: <833956F5C117124A89417638FDB11290EBD156@goexchange.pghcorning.com> I always hear about Calendar Controls and have used a few of them. I was wondering if anyone out there has a Time control. I have a very time sensitive application where the technicians have to enter Date and Time on and Date and Time off. The time is essential to knowing how long the piece ran with or without defects in the product to know whether to fix it or use that mold as a template for others if it was working properly over a long period of time (long could be 16+ hours due to the harsh environment). Anyway, back to my question. I have a Date/Time field for ON and OFF, currently I have a text box that is populated with a pop up calendar or by typing in text, works great. I also have another unbound field that is used purely for Time entry, of which the user must type it in as ##:## AM/PM, then upon exit it concatenates that information with the Date information to make a complete Date/Time field.. Does anyone know of a Time control or a better way to achieve this type of functionality other then the Date and Time Active X control. Thanks in Advance, Rich From markamatte at hotmail.com Mon Apr 26 15:11:35 2004 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 26 Apr 2004 20:11:35 +0000 Subject: [AccessD] Help with locked table? Message-ID: Hello All, I have an A97 db that I cannot compact...message reads that either I or someone else is trying to edit the same data...I have isolated it to 1 table. I can copy the entire db...but I cannot import/copy/export...this one table without getting the same error. I ran the Repair successfully...and still have the issue... Any ideas/suggestions? Thanks, Mark A. Matte _________________________________________________________________ >From must-see cities to the best beaches, plan a getaway with the Spring Travel Guide! http://special.msn.com/local/springtravel.armx From DWUTKA at marlow.com Mon Apr 26 15:23:15 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 26 Apr 2004 15:23:15 -0500 Subject: [AccessD] Calendar Controls AND TIME Controls Message-ID: <2F8793082E00D4119A1700B0D0216BF802227B19@main2.marlow.com> Well if you can wait, the next item I'm adding to the beta version of my MiniCalendar is a time/clock portion. No idea when I'll have it done though...not very timely I guess! LOL Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lavsa, Rich Sent: Monday, April 26, 2004 2:45 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Calendar Controls AND TIME Controls I always hear about Calendar Controls and have used a few of them. I was wondering if anyone out there has a Time control. I have a very time sensitive application where the technicians have to enter Date and Time on and Date and Time off. The time is essential to knowing how long the piece ran with or without defects in the product to know whether to fix it or use that mold as a template for others if it was working properly over a long period of time (long could be 16+ hours due to the harsh environment). Anyway, back to my question. I have a Date/Time field for ON and OFF, currently I have a text box that is populated with a pop up calendar or by typing in text, works great. I also have another unbound field that is used purely for Time entry, of which the user must type it in as ##:## AM/PM, then upon exit it concatenates that information with the Date information to make a complete Date/Time field.. Does anyone know of a Time control or a better way to achieve this type of functionality other then the Date and Time Active X control. Thanks in Advance, Rich -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ranthony at wrsystems.com Mon Apr 26 15:24:56 2004 From: ranthony at wrsystems.com (ranthony at wrsystems.com) Date: Mon, 26 Apr 2004 16:24:56 -0400 Subject: [AccessD] Help with locked table? Message-ID: <5F21A4E8B8DD734992EF9E70AC9D3064128B9E@mail2.wrsystems.com> Mark, your problems may be exacerbated by using the A97 repair utility. Download the Jetcomp.exe utility by M$ and repair/compact with that. Worse case, you may have to use the /decompile switch. Randy -----Original Message----- From: Mark A Matte [mailto:markamatte at hotmail.com] Sent: Monday, April 26, 2004 4:12 PM To: accessd at databaseadvisors.com Subject: [AccessD] Help with locked table? Hello All, I have an A97 db that I cannot compact...message reads that either I or someone else is trying to edit the same data...I have isolated it to 1 table. I can copy the entire db...but I cannot import/copy/export...this one table without getting the same error. I ran the Repair successfully...and still have the issue... Any ideas/suggestions? Thanks, Mark A. Matte _________________________________________________________________ >From must-see cities to the best beaches, plan a getaway with the Spring Travel Guide! http://special.msn.com/local/springtravel.armx -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Stephen.Pickering at caremark.com Mon Apr 26 15:39:48 2004 From: Stephen.Pickering at caremark.com (Pickering, Stephen) Date: Mon, 26 Apr 2004 15:39:48 -0500 Subject: [AccessD] Help with locked table? Message-ID: Mark, Does the table have any OLE or Memo fields? If you look through the data, do you see any fields with "#Error" as the data? Steve -----Mark A Matte's Original Message----- Hello All, I have an A97 db that I cannot compact...message reads that either I or someone else is trying to edit the same data...I have isolated it to 1 table. I can copy the entire db...but I cannot import/copy/export...this one table without getting the same error. I ran the Repair successfully...and still have the issue... Any ideas/suggestions? Thanks, Mark A. Matte From tortise at paradise.net.nz Mon Apr 26 15:37:21 2004 From: tortise at paradise.net.nz (Tortise) Date: Tue, 27 Apr 2004 08:37:21 +1200 Subject: [AccessD] Help with locked table? References: Message-ID: <0d2201c42bce$466e7d40$1e00a8c0@cheqsoft.local> Dear Mark Out of interest does that table contain a memo field? The only one by chance? Kind regards David Hingston MB ChB MBA Director Chequers Software Ltd Wellington, New Zealand. http://www.cheqsoft.com CheqSoft is associated with the Technology Entrepreneur Centre Crafters of iconic system tray software: => Break Reminder - for safe and efficient PC use => TimesOwn - multi time zone clock and calculator => Clipboard Express - drag n drop database saves serious time => MP3Detective - MP3 player manager => Engines2go - faster Internet searching ____________________________________________________________ The information in this email and in any attachment (s) is confidential and may be legally privileged. If you are not the named addressee's) or if you receive this email in error then any distribution, copying or use of this communication or the information in it is strictly prohibited. Please notify the sender immediately by return email and then delete the message from your computer. Thank you for your assistance. ____________________________________________________________ ----- Original Message ----- From: Mark A Matte To: accessd at databaseadvisors.com Sent: Tuesday, April 27, 2004 8:11 AM Subject: [AccessD] Help with locked table? Hello All, I have an A97 db that I cannot compact...message reads that either I or someone else is trying to edit the same data...I have isolated it to 1 table. I can copy the entire db...but I cannot import/copy/export...this one table without getting the same error. I ran the Repair successfully...and still have the issue... Any ideas/suggestions? Thanks, Mark A. Matte _________________________________________________________________ >From must-see cities to the best beaches, plan a getaway with the Spring Travel Guide! http://special.msn.com/local/springtravel.armx -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pedro at plex.nl Mon Apr 26 16:07:19 2004 From: pedro at plex.nl (Pedro Janssen) Date: Mon, 26 Apr 2004 23:07:19 +0200 Subject: [AccessD] first caracter as Uppercase References: <2F8793082E00D4119A1700B0D0216BF802227B08@main2.marlow.com> Message-ID: <000701c42bd3$948451d0$f4c581d5@pedro> Hello Drew, thanks for your help. After changing: Dim rs As Recordset to Dim rs As DAO.Recordset everything worked perfect. Pedro Janssen ----- Original Message ----- From: To: Sent: Friday, April 23, 2004 12:32 AM Subject: RE: [AccessD] first caracter as Uppercase > How's this? > > Function SetAllDataToProperCase() > Dim tbldef As TableDef > Dim strSQL As String > Dim rs As Recordset > Dim i As Long > Dim FieldCheck As Boolean > For Each tbldef In CurrentDb.TableDefs > If Left(tbldef.Name, 4) <> "MSys" Then > 'Set a boolean to make sure we have fields to actually update > FieldCheck = False > strSQL = "UPDATE " & tbldef.Name & " SET " > Set rs = CurrentDb.OpenRecordset(tbldef.Name, dbOpenTable) > For i = 0 To rs.Fields.Count - 1 > If rs.Fields(i).Type = 10 Or rs.Fields(i).Type = 12 Then > 'we have a valid field > FieldCheck = True > strSQL = strSQL & "[" & rs.Fields(i).Name & "]=StrConv([" & > rs.Fields(i).Name & "],3), " > End If > Next i > If FieldCheck Then > strSQL = Left(strSQL, Len(strSQL) - 2) > CurrentDb.Execute strSQL > End If > End If > Next > MsgBox "Done" > End Function > > That will change ALL text data in your database (text and memo fields) > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Pedro Janssen > Sent: Thursday, April 22, 2004 4:54 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] first caracter as Uppercase > > > Hello Drew, > > how can i use this so that it sets all characters in all tables in a > database? > > Pedro Janssen > > > > > ----- Original Message ----- > From: > To: > Sent: Thursday, April 22, 2004 9:34 PM > Subject: RE: [AccessD] first caracter as Uppercase > > > > StrConv("this is a test",vbProperCase) > > > > > > results in: > > > > > > This Is A Test > > > > Drew > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Pedro Janssen > > Sent: Thursday, April 22, 2004 2:09 PM > > To: AccessD at databaseadvisors.com > > Subject: [AccessD] first caracter as Uppercase > > > > > > Hello Group, > > > > i have a code (thanks to Brett Barabash and Mark A Matte) that sets all > > characters in all tables to Lowercase. > > > > What i also would like to see is each character at the beginning of a word > > (each word that is separated by a space) is set to Uppercase in all Tables > > by just one code. > > Is this possible. Who can help me with this? > > > > TIA > > > > 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 DWUTKA at marlow.com Mon Apr 26 16:30:19 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 26 Apr 2004 16:30:19 -0500 Subject: [AccessD] first caracter as Uppercase Message-ID: <2F8793082E00D4119A1700B0D0216BF802227B1B@main2.marlow.com> Sorry, wrote it in 97....and on the fly, so I wasn't as careful as I should have been. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Pedro Janssen Sent: Monday, April 26, 2004 4:07 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] first caracter as Uppercase Hello Drew, thanks for your help. After changing: Dim rs As Recordset to Dim rs As DAO.Recordset everything worked perfect. Pedro Janssen ----- Original Message ----- From: To: Sent: Friday, April 23, 2004 12:32 AM Subject: RE: [AccessD] first caracter as Uppercase > How's this? > > Function SetAllDataToProperCase() > Dim tbldef As TableDef > Dim strSQL As String > Dim rs As Recordset > Dim i As Long > Dim FieldCheck As Boolean > For Each tbldef In CurrentDb.TableDefs > If Left(tbldef.Name, 4) <> "MSys" Then > 'Set a boolean to make sure we have fields to actually update > FieldCheck = False > strSQL = "UPDATE " & tbldef.Name & " SET " > Set rs = CurrentDb.OpenRecordset(tbldef.Name, dbOpenTable) > For i = 0 To rs.Fields.Count - 1 > If rs.Fields(i).Type = 10 Or rs.Fields(i).Type = 12 Then > 'we have a valid field > FieldCheck = True > strSQL = strSQL & "[" & rs.Fields(i).Name & "]=StrConv([" & > rs.Fields(i).Name & "],3), " > End If > Next i > If FieldCheck Then > strSQL = Left(strSQL, Len(strSQL) - 2) > CurrentDb.Execute strSQL > End If > End If > Next > MsgBox "Done" > End Function > > That will change ALL text data in your database (text and memo fields) > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Pedro Janssen > Sent: Thursday, April 22, 2004 4:54 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] first caracter as Uppercase > > > Hello Drew, > > how can i use this so that it sets all characters in all tables in a > database? > > Pedro Janssen > > > > > ----- Original Message ----- > From: > To: > Sent: Thursday, April 22, 2004 9:34 PM > Subject: RE: [AccessD] first caracter as Uppercase > > > > StrConv("this is a test",vbProperCase) > > > > > > results in: > > > > > > This Is A Test > > > > Drew > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Pedro Janssen > > Sent: Thursday, April 22, 2004 2:09 PM > > To: AccessD at databaseadvisors.com > > Subject: [AccessD] first caracter as Uppercase > > > > > > Hello Group, > > > > i have a code (thanks to Brett Barabash and Mark A Matte) that sets all > > characters in all tables to Lowercase. > > > > What i also would like to see is each character at the beginning of a word > > (each word that is separated by a space) is set to Uppercase in all Tables > > by just one code. > > Is this possible. Who can help me with this? > > > > TIA > > > > 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 martyconnelly at shaw.ca Mon Apr 26 16:15:16 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 26 Apr 2004 14:15:16 -0700 Subject: [AccessD] PrtDevMode in MDE References: <000001c42bb9$14826310$6401a8c0@COA3> Message-ID: <408D7BE4.8020002@shaw.ca> You might have a look at On the Fly Printing for Access from Attac Software http://ourworld.compuserve.com/homepages/attac-cg/acgsoft.htm Developer wrote: >I am trying to force some values into prtdevmode in a report at >runtime, but the code ive always used for this requires the report to be >manipulated in design view, which wont work in an MDE. >Specifically, there is a custom paper size on the pc (11 x 8.5) that I >want to hard-code to the report >Is there any way to do this in an MDE? > > > -- Marty Connelly Victoria, B.C. Canada From cfoust at infostatsystems.com Mon Apr 26 17:35:49 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 26 Apr 2004 15:35:49 -0700 Subject: [AccessD] List Box does not show all Message-ID: How many rows are you trying to display? Are you pushing the maximum that a listbox will display? Does it fix itself or does the user have to reconnect to the BE? I've seen odd behavior like that over a network with a flaky card in one machine, but I've also seen it when the machines had different service packs of Jet installed. Charlotte Foust -----Original Message----- From: Gregg [mailto:greggs at msn.com] Sent: Monday, April 26, 2004 8:25 AM To: Access Developers discussion and problem solving Subject: [AccessD] List Box does not show all What causes list boxes to no show the whole list? Seems to come and go. It shows up on all users so it must be either the link to the BE or the BE itself. Any ideas? Gregg Steinbrenner -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Mon Apr 26 19:55:53 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Mon, 26 Apr 2004 17:55:53 -0700 Subject: [AccessD] RE: jpg Screen shot In-Reply-To: <426071E0B0A6D311B3C0006008B0AB23AFE54B@TAPPEEXCH01> Message-ID: I have found that GIF and PNG files are virtually identical in compression size. I used Fireworks to compress files and had little difference in size or quality but...If you have to use screen shots, that have many tonal colours GIF/PNG files are not the correct format. The method that I use rendering large graphics objects smaller is: 1. Acquire all pictures at the largest format possible, in the best standard available, say in TIFF. 2. Never reduce greater than 50% without applying the 'Unsharp Mask'. 3. Reduce more, apply the mask and so on until the graphic is the right size. 4. Translate the object to either GIF or JPEG. I use Fireworks but I understand that ImageReady is equally as good. FW has a great export wizard, for optimizing the graphics for web use and I can see both the JPEG, GIF PNG results, side by side. The end result byte size can be preselected, the displayed images can be zoomed in and carefully checked and different what-if scenarios can be viewed, picking the number of colours, anti-aliasing, optimization, sharping, unused color removal, compression, adaptive colouring etc... I am still learning but the results are getting better all the time. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Brett Barabash Sent: Monday, April 26, 2004 11:13 AM To: accessd at databaseadvisors.com Subject: [AccessD] RE: jpg Screen shot Huh?! I was talking about screenshots, not website buttons. As I mentioned earlier, IMHO, 20-40 KB is tiny for a screenshot, considering it displays 100% of the original quality. I have yet to find another file format that can top this. Nevertheless, let's do a little test here. Using Microsoft PhotoDraw 2000 (tried it with MS Photo Editor as well with reasonably similar results): ----- Source: 66x109 pixel 24-bit photo bmp file (a poor choice for PNG compression) Original BMP: 21,854 bytes PNG (24-bit color): 10,128 bytes PNG (8-bit 256 color): 3,052 bytes GIF (8-bit 256 color): 3,118 bytes (both the 8 bit PNG and the 8 bit GIF looked awful i.e. loss of photo detail/color) ----- ----- Source: 61x41 pixel 16 color toolbar button (a perfect choice for PNG compression) Original BMP: 9,438 bytes PNG (24-bit color): 391 bytes PNG (8-bit 256 color): 1,084 bytes GIF (8-bit 256 color): 1,129 bytes (results were identical. In this case, the 24-bit pallette netted a smaller file size, since there were only 4 distinct colors in the photo. The 256 color pallette wasted the additional overhead). ----- Keep the following in mind: - Photos are poor candidates for PNG/zlib compression. PNG works best for files with large blocks of the same color (e.g. screenshots). - All programs are not created equally. Despite LIBPNG being offered to software vendors and the general public with a free no strings attached commercial license, there are several apps that do a half-assed job of handling PNG files *cough IE*. What program are you using to convert to PNG? -----Original Message----- From: Robert L. Stewart [mailto:rl_stewart at highstream.net] Sent: Monday, April 26, 2004 12:28 PM To: accessd at databaseadvisors.com Cc: BBarabash at tappeconstruction.com Subject: Re: jpg Screen shot Tiny file size my foot!!!! I had to convert all my PNG (Fireworks) files to GIF to get speed loading them as graphic buttons for a web site. 94k compared to 6k. PNG was not a viable choice. At 12:00 PM 4/26/2004 -0500, you wrote: >From: "Brett Barabash" >To: "'Access Developers discussion and problem solving'" > >Sent: Friday, April 16, 2004 9:42 AM >Subject: RE: [AccessD] jpg Screen shot > > > > By far, the absolute best format for screenshots is PNG. Near-infinite > > color range (handles 32-bit palettes with ease), lossless compression, and > > tiny file size. > > ---------------------------------------------------------------------------- ---------------------------------------- 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 Developer at UltraDNT.com Mon Apr 26 21:20:54 2004 From: Developer at UltraDNT.com (Developer) Date: Mon, 26 Apr 2004 22:20:54 -0400 Subject: [AccessD] PrtDevMode in MDE In-Reply-To: <408D7BE4.8020002@shaw.ca> Message-ID: <001b01c42bfe$48196d50$6401a8c0@COA3> Thanks, Marty. Being that this project is in A2k2 I was able to use the Report's Printers collection and properties. This article was a project-saver: http://msdn.microsoft.com/office/understanding/access/codesamples/defaul t.aspx?pull=/library/en-us/dnacc2k2/html/odc_acc10_printers.asp Steve -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Monday, April 26, 2004 5:15 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] PrtDevMode in MDE You might have a look at On the Fly Printing for Access from Attac Software http://ourworld.compuserve.com/homepages/attac-cg/acgsoft.htm Developer wrote: >I am trying to force some values into prtdevmode in a report at >runtime, but the code ive always used for this requires the report to >be manipulated in design view, which wont work in an MDE. Specifically, >there is a custom paper size on the pc (11 x 8.5) that I want to >hard-code to the report Is there any way to do this in an MDE? > > > -- 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 bchacc at san.rr.com Tue Apr 27 00:08:28 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Mon, 26 Apr 2004 22:08:28 -0700 Subject: [AccessD] A2K MDE on A2002 References: Message-ID: <031b01c42c15$ae162a00$6601a8c0@HAL9002> John: Thanks. Will forward to my client so he can be aware of this problem. Regards, Rocky Smolin Beach Access Software http://www.e-z-mrp.com ----- Original Message ----- From: "John W. Colby" To: "Access Developers discussion and problem solving" Sent: Saturday, April 24, 2004 5:19 AM Subject: RE: [AccessD] A2K MDE on A2002 > Rocky, > > I think that this is exactly what is going on. I use a lib as you know. At > one client I have a mix of systems running A2K, AXP and A2003. I develop in > A2K. The non A2K systems REQUIRE a recompile of the lib AND the MDB that > uses the lib before they will run. I get a page fault otherwise. > > I do know that AXP and above install a new version of VB6. It appears that > this new DLL "breaks" the A2K apps. Recompiling with AXP uses that VB6 DLL > and "fixes" whatever the problem is. > > John W. Colby > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - > Beach Access Software > Sent: Saturday, April 24, 2004 1:59 AM > To: AccessD at databaseadvisors.com > Subject: [AccessD] A2K MDE on A2002 > > > Dear List: > > I had a client call this morning installing a system at a customer site. He > took the mdb which was created in A2000, made an mde in A2000, then put that > mde on the customer's machine which was running A2002. It failed on opening > the first form with an error that indicated either a compile error or a > missing reference. > > So I had him put the A2000 mdb on the A2002 machine. Compiled fine. No > missing references. But the 'Make an MDE' button was grayed out. So I had > him convert this A2000 MDB to A2003. Then he could make an MDE and it ran > just fine. > > So is it the case that an A2000 MDE will not run on A2002 (or A2003)? > > MTIA > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Apr 26 23:36:04 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Tue, 27 Apr 2004 14:36:04 +1000 Subject: [AccessD] A2K: Getting incorrect date Message-ID: <01cb01c42c11$2682f7c0$48619a89@DDICK> Hello all Can anyone tell me why dtTimeElapsed is returning a crap date around 1900 or so? dtStartDate returns the expected date as does dtTodaysDate Many thanks Darren Dim dtStartDate As Date Dim dtTodaysDate As Date Dim dtTimeElapsed As Date dtStartDate = DLookup("[EnrolmentDate]", "tblStudentAwardAllocations", "[AwardID] = " _ & Forms!frmStudents!cmbAwards) dtTodaysDate = Date dtTimeElapsed = Format(DateDiff("y", [dtTodaysDate], [dtStartDate]), "m") MsgBox "EnrolDate = " & dtStartDate & vbCrLf _ & "Today = " & dtTodaysDate & vbCrLf _ & "elapsed = " & dtTimeElapsed From paul.hartland at fsmail.net Tue Apr 27 03:28:47 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 27 Apr 2004 10:28:47 +0200 (CEST) Subject: [AccessD] OT - ASP & HTML Logon Message-ID: <16160288.1083054527817.JavaMail.www@wwinf3004> To all, Really sorry for the OT but don?t know any good ASP/HTML lists. I am starting to get into writing HTML & ASP (gulp), I have created a HTML logon page (very very very basic) which when you click the Submit button calls an ASP page called CheckLogin.asp (see HTML code below): Orridge Reporting Logon
Username:

Password:

The problem being that when the submit button is pressed it tries to download the page instead of checking the username against my database. Does anyone know what the problem could be ? Thanks in advance for any help on this. Paul Hartland Database Designer/Developer (and a total novice in WEB development). Join the UK's number one for the internet www.freeserve.com/time From gustav at cactus.dk Tue Apr 27 03:52:22 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 27 Apr 2004 10:52:22 +0200 Subject: [AccessD] A2K: Getting incorrect date In-Reply-To: <01cb01c42c11$2682f7c0$48619a89@DDICK> References: <01cb01c42c11$2682f7c0$48619a89@DDICK> Message-ID: <7910230741.20040427105222@cactus.dk> Hi Darren DateDiff("y", ..) - or rather DateDiff("d", ..) - returns a number of days. That is not a date. If you wish a difference in months, use DateDiff("m", ..). However, that will return one month even if the first date is the last day of one month and the second date is the first day of the next month. If you need the count of full months, I have a function which does that. /gustav > Can anyone tell me why dtTimeElapsed is returning a crap date around 1900 or so? > dtStartDate returns the expected date as does dtTodaysDate > Many thanks > Darren > Dim dtStartDate As Date > Dim dtTodaysDate As Date > Dim dtTimeElapsed As Date > dtStartDate = DLookup("[EnrolmentDate]", "tblStudentAwardAllocations", "[AwardID] = " _ > & Forms!frmStudents!cmbAwards) > dtTodaysDate = Date > dtTimeElapsed = Format(DateDiff("y", [dtTodaysDate], [dtStartDate]), "m") > MsgBox "EnrolDate = " & dtStartDate & vbCrLf _ > & "Today = " & dtTodaysDate & vbCrLf _ > & "elapsed = " & dtTimeElapsed From stuart at lexacorp.com.pg Tue Apr 27 05:29:58 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 27 Apr 2004 20:29:58 +1000 Subject: [AccessD] A2K: Getting incorrect date In-Reply-To: <01cb01c42c11$2682f7c0$48619a89@DDICK> Message-ID: <408EC2C6.4554.2E3D660@localhost> On 27 Apr 2004 at 14:36, Darren DICK wrote: > Hello all > Can anyone tell me why dtTimeElapsed is returning a crap date around 1900 or so? > dtStartDate returns the expected date as does dtTodaysDate > Many thanks > > > Dim dtStartDate As Date > Dim dtTodaysDate As Date > Dim dtTimeElapsed As Date > Because an elapsed period is not a date. It is a number. DateDiff() returns *number* of time periods Dim dtTimeElapsed as a long to get the number of the time periods specified by the first paramter of DateDiff. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From wdhindman at bellsouth.net Tue Apr 27 05:51:39 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Tue, 27 Apr 2004 06:51:39 -0400 Subject: [AccessD] Access Address to Map in Browser References: <408EC2C6.4554.2E3D660@localhost> Message-ID: <000b01c42c45$9ea3d880$6101a8c0@dejpolsys> Group ...in Outlook, I can open a map of a contact's address in a browser directly from Outlook as follows: a) select Contacts on the Outlook Bar or in the folder list. b) select contact whose address I want to locate. c) File/Open/Selected Items. d) Under the Address button, click the arrow, and then click the type of address I want to find on the map (Business/Home/Other). e) Actions/Display Map of Address. ...my browser opens to Find a Map at mappoint.msn.com with a push-pin marking the location of the address. ...has anyone done anything like this via code from Access? ...without using Outlook? William Hindman "Always code as if the person who is maintaining or testing your code is a violent psychopath who knows where you live." William Silverstein From rbgajewski at adelphia.net Tue Apr 27 07:16:41 2004 From: rbgajewski at adelphia.net (Bob Gajewski) Date: Tue, 27 Apr 2004 08:16:41 -0400 Subject: [AccessD] Access Address to Map in Browser In-Reply-To: <000b01c42c45$9ea3d880$6101a8c0@dejpolsys> Message-ID: William I have a jobs database that creates automatic hyperlinked command buttons with specific labels that can go to a map system (I think it's Yahoo, not Mapquest, but the theory is the same) and to the local weather for that address. I will post the code in about an hour or so, after my client meeting this morning. Regards, Bob Gajewski -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of William Hindman Sent: Tuesday, April 27, 2004 06:52 To: Access Developers discussion and problem solving Subject: [AccessD] Access Address to Map in Browser Group ...in Outlook, I can open a map of a contact's address in a browser directly from Outlook as follows: a) select Contacts on the Outlook Bar or in the folder list. b) select contact whose address I want to locate. c) File/Open/Selected Items. d) Under the Address button, click the arrow, and then click the type of address I want to find on the map (Business/Home/Other). e) Actions/Display Map of Address. ...my browser opens to Find a Map at mappoint.msn.com with a push-pin marking the location of the address. ...has anyone done anything like this via code from Access? ...without using Outlook? William Hindman "Always code as if the person who is maintaining or testing your code is a violent psychopath who knows where you live." William Silverstein -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From michael.broesdorf at web.de Tue Apr 27 07:33:01 2004 From: michael.broesdorf at web.de (=?iso-8859-1?Q?Michael_Br=F6sdorf?=) Date: Tue, 27 Apr 2004 14:33:01 +0200 Subject: [AccessD] Strange problem with reports In-Reply-To: Message-ID: Hi all, I am having a strange problem with reports in an Access 2003 application: The app is running on a Citrix Metaframe XP server. The report is opened in print preview. If I change something in the page setup (e.g. paper size or margins), an error message shows up when the report is closed or saves (CTRL-S): 'You can't set the Event Proc Prefix property in print preview or after printing has started. Try setting this property in the OnOpen event.' None of my code tries to change that property. What could that be? Michael From andy at minstersystems.co.uk Tue Apr 27 08:49:53 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Tue, 27 Apr 2004 13:49:53 +0000 Subject: [AccessD] Access Address to Map in Browser Message-ID: <20040427124951.1F9BD25362F@smtp.nildram.co.uk> Yep, but I'm afraid it uses the Map24.Com website which is good for Europe but not the US. I have a country table which holds the Map24 country code (some differ from mine) in CT_MAPCODE. So I pass the routine my country code and the Postal Code and, optionally, a description (eg company name) which appears at the top of the map. It then plugs this info into the Map24 plotting URL and bob's your uncle. FWIW here's the function (watch the wrapping): Function MapIt(strCountry As String, varPcode As Variant, Optional varDesc As String) Dim varMapCode As Variant Dim strLink As String If Not IsNull(varPcode) Then varMapCode = DLookup("CT_MAPCODE", "CTRY", "CT_CODE='" & strCountry & "'") If Not IsNull(varMapCode) Then strLink = "http://link2.map24.com/?lid=0cb4a937&maptype=JAVA&street0=&zip0=" & varPcode & "&city0=&country0=" & varMapCode & "&description0=" & varDesc & "&lang=en" Call RunApp(strLink, 1) End If End If End Function -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: Access Developers discussion and problem solving Subject: [AccessD] Access Address to Map in Browser Date: 27/04/04 10:53 > > Group > > ....in Outlook, I can open a map of a contact's address in a browser > directly from Outlook as follows: > > a) select Contacts on the Outlook Bar or in the folder list. > b) select contact whose address I want to locate. > c) File/Open/Selected Items. > d) Under the Address button, click the arrow, and then click the type of > address I want to find on the map (Business/Home/Other). > e) Actions/Display Map of Address. > > ....my browser opens to Find a Map at mappoint.msn.com with a push-pin > marking the location of the address. > > ....has anyone done anything like this via code from Access? ...without using > Outlook? > > William Hindman > "Always code as if the person who is maintaining or testing your code is > a violent psychopath who knows where you live." William Silverstein > > > -- > _______________________________________________ > 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 Lambert.Heenan at AIG.com Tue Apr 27 08:58:14 2004 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 27 Apr 2004 09:58:14 -0400 Subject: [AccessD] Strange problem with reports Message-ID: <8B98F8EA48F8BA47A2F24E0D0AF40CF407AD8231@xlivmbx12.aig.com> When weird stuff like that starts happening I say, back up the database and then decompile it. If that does not solve the problem then it's probably time to start a new database and import all the objects in you problem database. The report in question may be corrupt and so may not import. It will have to be rebuilt from scratch. FWIW Lambert > -----Original Message----- > From: Michael Br?sdorf [SMTP:michael.broesdorf at web.de] > Sent: Tuesday, April 27, 2004 8:33 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Strange problem with reports > > Hi all, > > I am having a strange problem with reports in an Access 2003 application: > > The app is running on a Citrix Metaframe XP server. The report is opened > in > print preview. If I change something in the page setup (e.g. paper size or > margins), an error message shows up when the report is closed or saves > (CTRL-S): > > 'You can't set the Event Proc Prefix property in print preview or after > printing has started. > Try setting this property in the OnOpen event.' > > None of my code tries to change that property. > > What could that be? > > Michael > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From greggs at msn.com Tue Apr 27 09:25:01 2004 From: greggs at msn.com (Gregg) Date: Tue, 27 Apr 2004 09:25:01 -0500 Subject: [AccessD] List Box does not show all In-Reply-To: Message-ID: The list box is trying to display 36 rows but only shows 23. The query behind the list is showing 36. It's seven columns wide. I thinks all users are using the same version of A97. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Monday, April 26, 2004 5:36 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] List Box does not show all How many rows are you trying to display? Are you pushing the maximum that a listbox will display? Does it fix itself or does the user have to reconnect to the BE? I've seen odd behavior like that over a network with a flaky card in one machine, but I've also seen it when the machines had different service packs of Jet installed. Charlotte Foust -----Original Message----- From: Gregg [mailto:greggs at msn.com] Sent: Monday, April 26, 2004 8:25 AM To: Access Developers discussion and problem solving Subject: [AccessD] List Box does not show all What causes list boxes to no show the whole list? Seems to come and go. It shows up on all users so it must be either the link to the BE or the BE itself. Any ideas? Gregg Steinbrenner -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Tue Apr 27 09:22:44 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 27 Apr 2004 10:22:44 -0400 Subject: [AccessD] List Box does not show all In-Reply-To: Message-ID: <20040427142244.ZPSR1773.imf22aec.mail.bellsouth.net@SUSANONE> Where are the list items coming from? Sounds like you're using a Table/Query list, so this wouldn't be the problem, but a Value list is limited in the number of characters, and with 7 columns, you might have reached it -- if you're using a Value list. Susan H. The list box is trying to display 36 rows but only shows 23. The query behind the list is showing 36. It's seven columns wide. I thinks all users are using the same version of A97. From accessd at shaw.ca Tue Apr 27 09:50:07 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Tue, 27 Apr 2004 07:50:07 -0700 Subject: [AccessD] OT - ASP & HTML Logon In-Reply-To: <16160288.1083054527817.JavaMail.www@wwinf3004> Message-ID: Hi Paul: There is so much to say I do not know where to start. If your questions have not been answered today I will take a closer look this evening. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of paul.hartland at fsmail.net Sent: Tuesday, April 27, 2004 1:29 AM To: accessd Subject: [AccessD] OT - ASP & HTML Logon To all, Really sorry for the OT but don?t know any good ASP/HTML lists. I am starting to get into writing HTML & ASP (gulp), I have created a HTML logon page (very very very basic) which when you click the Submit button calls an ASP page called CheckLogin.asp (see HTML code below): Orridge Reporting Logon
Username:

Password:

The problem being that when the submit button is pressed it tries to download the page instead of checking the username against my database. Does anyone know what the problem could be ? Thanks in advance for any help on this. Paul Hartland Database Designer/Developer (and a total novice in WEB development). Join the UK's number one for the internet www.freeserve.com/time -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Tue Apr 27 10:05:23 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 27 Apr 2004 17:05:23 +0200 (CEST) Subject: [AccessD] OT - ASP & HTML Logon Message-ID: <14186419.1083078323359.JavaMail.www@wwinf3002> Jim, Still waiting thanks Paul Message date : Apr 27 2004, 04:01 PM >From : "Jim Lawrence (AccessD)" To : "Access Developers discussion and problem solving" Copy to : Subject : RE: [AccessD] OT - ASP & HTML Logon Hi Paul: There is so much to say I do not know where to start. If your questions have not been answered today I will take a closer look this evening. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of paul.hartland at fsmail.net Sent: Tuesday, April 27, 2004 1:29 AM To: accessd Subject: [AccessD] OT - ASP & HTML Logon To all, Really sorry for the OT but don?t know any good ASP/HTML lists. I am starting to get into writing HTML & ASP (gulp), I have created a HTML logon page (very very very basic) which when you click the Submit button calls an ASP page called CheckLogin.asp (see HTML code below): Username: Password: The problem being that when the submit button is pressed it tries to download the page instead of checking the username against my database. Does anyone know what the problem could be ? Thanks in advance for any help on this. Paul Hartland Database Designer/Developer (and a total novice in WEB development). Join the UK's number one for the internet www.freeserve.com/time -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Join the UK's number one for the internet www.freeserve.com/time From rbgajewski at adelphia.net Tue Apr 27 10:47:16 2004 From: rbgajewski at adelphia.net (Bob Gajewski) Date: Tue, 27 Apr 2004 11:47:16 -0400 Subject: [AccessD] Access Address to Map in Browser - LENGTHY REPLY In-Reply-To: <000b01c42c45$9ea3d880$6101a8c0@dejpolsys> Message-ID: William: I placed two command buttons (cmdMap and cmdWeather) on my form and controlled their value, caption and enabled state through code. This also uses a US zip code database to automatically populate the Municipality and StateCode fields. ********************************************* Private Sub Form_Current() If IsNull([txtJobMunicipalityName]) Or _ IsNull([txtJobStateCode]) Or _ IsNull([txtJobZipCode]) Or _ [txtJobMunicipalityName] = "" Or _ [txtJobStateCode] = "" Or _ [txtJobZipCode] = "" Then cmdMap.Enabled = False cmdMap.Caption = "Local map not available - address incomplete" cmdWeather.Enabled = False cmdWeather.Caption = "Local weather not available - address incomplete" Else cmdMap.Enabled = True cmdWeather.Enabled = True End If If Not IsNull([txtJobZipCode]) And [txtJobZipCode] <> "" Then cmdMap.HyperlinkAddress = "http://www.mapquest.com/maps/map.adp?country=US&addtohistory=&address=" & [txtJobAddress] & "&city=" & [txtJobMunicipalityName] & "&state=" & [txtJobStateCode] & "&zipcode=" & [txtJobZipCode] & "&homesubmit.x=30&homesubmit.y=14" cmdMap.Caption = "View local map for " & [txtJobMunicipalityName] & ", " & [txtJobStateCode] cmdWeather.HyperlinkAddress = "http://www.weather.com/weather/local/" & [txtJobZipCode] & "?whatprefs=" cmdWeather.Caption = "Check local weather in " & [txtJobMunicipalityName] & ", " & [txtJobStateCode] End If End Sub ********************************************* Private Sub txtJobMunicipalityName_AfterUpdate() If IsNull([txtJobStateCode]) Or [txtJobStateCode] = "" Then Me.txtJobStateCode.SetFocus End If If IsNull([txtJobMunicipalityName]) Or _ IsNull([txtJobStateCode]) Or _ IsNull([txtJobZipCode]) Or _ [txtJobMunicipalityName] = "" Or _ [txtJobStateCode] = "" Or _ [txtJobZipCode] = "" Then cmdMap.Enabled = False cmdMap.Caption = "Local map not available - address incomplete" cmdWeather.Enabled = False cmdWeather.Caption = "Local weather not available - address incomplete" Else cmdMap.Enabled = True cmdWeather.Enabled = True End If End Sub ********************************************* Private Sub txtJobStateCode_AfterUpdate() If IsNull([txtJobMunicipalityName]) Or _ IsNull([txtJobStateCode]) Or _ IsNull([txtJobZipCode]) Or _ [txtJobMunicipalityName] = "" Or _ [txtJobStateCode] = "" Or _ [txtJobZipCode] = "" Then cmdMap.Enabled = False cmdMap.Caption = "Local map not available - address incomplete" cmdWeather.Enabled = False cmdWeather.Caption = "Local weather not available - address incomplete" Else cmdMap.Enabled = True cmdWeather.Enabled = True End If End Sub ********************************************* Private Sub txtJobZipCode_AfterUpdate() Dim varCMN, varCSC varCMN = DLookup("[txtMunicipalityName]", "tblZipCodes", "[tblZipCodes].[txtZipCode] = '" & [txtJobZipCode] & "'") varCSC = DLookup("[txtStateCode]", "tblZipCodes", "[tblZipCodes].[txtZipCode] = '" & [txtJobZipCode] & "'") If Not IsNull(varCMN) Then Me.txtJobMunicipalityName = varCMN Me.txtJobStateCode = varCSC Else MsgBox "The zip code entered is not on file. Input the municipality name and select the state." Me.txtJobMunicipalityName = Null Me.txtJobStateCode = Null Me.txtJobMunicipalityName.SetFocus End If If IsNull([txtJobMunicipalityName]) Or _ IsNull([txtJobStateCode]) Or _ IsNull([txtJobZipCode]) Or _ [txtJobMunicipalityName] = "" Or _ [txtJobStateCode] = "" Or _ [txtJobZipCode] = "" Then cmdMap.Enabled = False cmdMap.Caption = "Local map not available - address incomplete" cmdWeather.Enabled = False cmdWeather.Caption = "Local weather not available - address incomplete" Else cmdMap.Enabled = True cmdWeather.Enabled = True End If If Not IsNull([txtJobZipCode]) And [txtJobZipCode] <> "" Then cmdMap.HyperlinkAddress = "http://www.mapquest.com/maps/map.adp?country=US&addtohistory=&address=" & [txtJobAddress] & "&city=" & [txtJobMunicipalityName] & "&state=" & [txtJobStateCode] & "&zipcode=" & [txtJobZipCode] & "&homesubmit.x=30&homesubmit.y=14" cmdMap.Caption = "View local map for " & [txtJobMunicipalityName] & ", " & [txtJobStateCode] cmdWeather.HyperlinkAddress = "http://www.weather.com/weather/local/" & [txtJobZipCode] & "?whatprefs=" cmdWeather.Caption = "Check local weather in " & [txtJobMunicipalityName] & ", " & [txtJobStateCode] End If End Sub ********************************************* -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of William Hindman Sent: Tuesday, April 27, 2004 06:52 To: Access Developers discussion and problem solving Subject: [AccessD] Access Address to Map in Browser Group ...in Outlook, I can open a map of a contact's address in a browser directly from Outlook as follows: a) select Contacts on the Outlook Bar or in the folder list. b) select contact whose address I want to locate. c) File/Open/Selected Items. d) Under the Address button, click the arrow, and then click the type of address I want to find on the map (Business/Home/Other). e) Actions/Display Map of Address. ...my browser opens to Find a Map at mappoint.msn.com with a push-pin marking the location of the address. ...has anyone done anything like this via code from Access? ...without using Outlook? William Hindman "Always code as if the person who is maintaining or testing your code is a violent psychopath who knows where you live." William Silverstein -- _______________________________________________ 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 Apr 27 11:19:34 2004 From: dw-murphy at cox.net (Doug Murphy) Date: Tue, 27 Apr 2004 09:19:34 -0700 Subject: [AccessD] OT - ASP & HTML Logon In-Reply-To: <16160288.1083054527817.JavaMail.www@wwinf3004> Message-ID: <001301c42c73$6d7c9980$8500a8c0@CX615377a> One good resource is http://www.4guysfromrolla.com/. Doug Douglas Murphy Murphy's Creativity (619) 334-5121 doug at murphyscreativity.com www.murphyscreativity.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: Tuesday, April 27, 2004 1:29 AM To: accessd Subject: [AccessD] OT - ASP & HTML Logon To all, Really sorry for the OT but don't know any good ASP/HTML lists. I am starting to get into writing HTML & ASP (gulp), I have created a HTML logon page (very very very basic) which when you click the Submit button calls an ASP page called CheckLogin.asp (see HTML code below): Orridge Reporting Logon
Username:

Password:

The problem being that when the submit button is pressed it tries to download the page instead of checking the username against my database. Does anyone know what the problem could be ? Thanks in advance for any help on this. Paul Hartland Database Designer/Developer (and a total novice in WEB development). Join the UK's number one for the internet www.freeserve.com/time -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From lister at actuarial-files.com Tue Apr 27 11:21:59 2004 From: lister at actuarial-files.com (Ralf Lister) Date: Tue, 27 Apr 2004 12:21:59 -0400 Subject: [AccessD] OT - ASP & HTML Logon References: <16160288.1083054527817.JavaMail.www@wwinf3004> Message-ID: <006e01c42c73$db2ee000$13976bce@ralf> Dear Paul, sorry I'm a little bit late (as always). All seems that the code you have given, you saved as ASP-Page. Save it as HTML-Page. Then it'll work (I tried it on my PWS). However, it'll not redirect to any other page, it just takes the Username and Password. For going to another page after the login (to test if you are authorized), you have to add: <% response.redirect "The_next_page.asp" %> BTW, ASP-Pages don't run without server! HTH Ralf Saludos de un Bolivia en peligro ----- Original Message ----- From: To: "accessd" Sent: Tuesday, April 27, 2004 4:28 AM Subject: [AccessD] OT - ASP & HTML Logon To all, Really sorry for the OT but don't know any good ASP/HTML lists. I am starting to get into writing HTML & ASP (gulp), I have created a HTML logon page (very very very basic) which when you click the Submit button calls an ASP page called CheckLogin.asp (see HTML code below): Orridge Reporting Logon
Username:

Password:

The problem being that when the submit button is pressed it tries to download the page instead of checking the username against my database. Does anyone know what the problem could be ? Thanks in advance for any help on this. Paul Hartland Database Designer/Developer (and a total novice in WEB development). Join the UK's number one for the internet www.freeserve.com/time -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From greggs at msn.com Tue Apr 27 12:12:55 2004 From: greggs at msn.com (Gregg) Date: Tue, 27 Apr 2004 12:12:55 -0500 Subject: [AccessD] List Box does not show all In-Reply-To: <20040427142244.ZPSR1773.imf22aec.mail.bellsouth.net@SUSANONE> Message-ID: Susan, It's a table... here's the source... SELECT DISTINCTROW [PLastName]+", "+[PFirstName] AS PatientName, PatientTbl.Address, PatientTbl.City, PatientTbl.Zip, PatientTbl.Phone, PatientTbl.AdmittingNurse, DateDiff("h",Format([ReferralDate],"mm/dd/yy") & " " & Format([HourOfReferal],"hh:nn:ss"),Format(Now(),"mm/dd/yy hh:nn:ss")) AS HoursSinceReferral, PatientTbl.PatientID FROM PatientTbl WHERE ((([PLastName]+", "+[PFirstName]) Is Not Null) AND ((PatientTbl.DenialReason) Is Null) AND ((PatientTbl.dateServiceStart) Is Null)); -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Susan Harkins Sent: Tuesday, April 27, 2004 9:23 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] List Box does not show all Where are the list items coming from? Sounds like you're using a Table/Query list, so this wouldn't be the problem, but a Value list is limited in the number of characters, and with 7 columns, you might have reached it -- if you're using a Value list. Susan H. The list box is trying to display 36 rows but only shows 23. The query behind the list is showing 36. It's seven columns wide. I thinks all users are using the same version of A97. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Tue Apr 27 12:41:45 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 27 Apr 2004 10:41:45 -0700 Subject: [AccessD] List Box does not show all Message-ID: So if you paste that SQL into a query, you get a different number of row than what shows in the combo? Charlotte Foust -----Original Message----- From: Gregg [mailto:greggs at msn.com] Sent: Tuesday, April 27, 2004 9:13 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] List Box does not show all Susan, It's a table... here's the source... SELECT DISTINCTROW [PLastName]+", "+[PFirstName] AS PatientName, PatientTbl.Address, PatientTbl.City, PatientTbl.Zip, PatientTbl.Phone, PatientTbl.AdmittingNurse, DateDiff("h",Format([ReferralDate],"mm/dd/yy") & " " & Format([HourOfReferal],"hh:nn:ss"),Format(Now(),"mm/dd/yy hh:nn:ss")) AS HoursSinceReferral, PatientTbl.PatientID FROM PatientTbl WHERE ((([PLastName]+", "+[PFirstName]) Is Not Null) AND ((PatientTbl.DenialReason) Is Null) AND ((PatientTbl.dateServiceStart) Is Null)); -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Susan Harkins Sent: Tuesday, April 27, 2004 9:23 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] List Box does not show all Where are the list items coming from? Sounds like you're using a Table/Query list, so this wouldn't be the problem, but a Value list is limited in the number of characters, and with 7 columns, you might have reached it -- if you're using a Value list. Susan H. The list box is trying to display 36 rows but only shows 23. The query behind the list is showing 36. It's seven columns wide. I thinks all users are using the same version of A97. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From my.lists at verizon.net Tue Apr 27 12:49:25 2004 From: my.lists at verizon.net (Francisco H Tapia) Date: Tue, 27 Apr 2004 10:49:25 -0700 Subject: [AccessD] Query fails when using NOT IN ??? In-Reply-To: <1387056546.20040423104132@cactus.dk> References: <657FB70438B7D311AF320090279C18010614418F@EXCHMAIL> <322806795.20040422090018@cactus.dk> <408827CE.7060601@verizon.net> <1387056546.20040423104132@cactus.dk> Message-ID: <408E9D25.8090609@verizon.net> Gustav Brock said the following on 4/23/2004 1:41 AM: >But Christopher didn't refer to SQL Server, that's why I thought it >would be more relevant to show that this bug is non-existing in Jet SQL. > > The reason this is even mentioned is because the IN bug is not a SQL Server bug at all but an ANSI SQL standard behavior and is even mentioned in a KB article here http://support.microsoft.com/default.aspx?scid=kb;en-us;298674 or (http://tinyurl.com/35zgr) >Further, I guess including the where clause will perform much slower? >If you really need to do that, couldn't this do (I have no SQL Server >to play with): > > au_id IN > (SELECT au_id FROM Publishers WHERE Publishers.au_id Is Not Null) > >/gustav > > > > also accoring to the article fully qualifying the column name clears this problem up, which I tested and confirmed. -- -Francisco From gustav at cactus.dk Tue Apr 27 14:34:10 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 27 Apr 2004 21:34:10 +0200 Subject: [AccessD] Query fails when using NOT IN ??? In-Reply-To: <408E9D25.8090609@verizon.net> References: <657FB70438B7D311AF320090279C18010614418F@EXCHMAIL> <322806795.20040422090018@cactus.dk> <408827CE.7060601@verizon.net> <1387056546.20040423104132@cactus.dk> <408E9D25.8090609@verizon.net> Message-ID: <1448738802.20040427213410@cactus.dk> Hi Francisco OK, thanks for the clarification. /gustav >>But Christopher didn't refer to SQL Server, that's why I thought it >>would be more relevant to show that this bug is non-existing in Jet SQL. >> >> > The reason this is even mentioned is because the IN bug is not a SQL > Server bug at all but an ANSI SQL standard behavior and is even > mentioned in a KB article here > http://support.microsoft.com/default.aspx?scid=kb;en-us;298674 > or (http://tinyurl.com/35zgr) >>Further, I guess including the where clause will perform much slower? >>If you really need to do that, couldn't this do (I have no SQL Server >>to play with): >> >> au_id IN >> (SELECT au_id FROM Publishers WHERE Publishers.au_id Is Not Null) >> >>/gustav >> >> >> >> > also accoring to the article fully qualifying the column name clears > this problem up, which I tested and confirmed. > -- > -Francisco From greggs at msn.com Tue Apr 27 15:04:15 2004 From: greggs at msn.com (Gregg) Date: Tue, 27 Apr 2004 15:04:15 -0500 Subject: [AccessD] List Box does not show all In-Reply-To: Message-ID: Yes... that's true. Here's a recap of the facts. 1. The problem comes and goes. It happened a couple of weeks ago but by the time they went to show it to me it was gone. I didn't believe them of course until it happened again this week and I could see it. I fooled with it and it went away but when I undid my changes it didn't come back... very weird. I've seen this before at another customer using A97 where the list would go from say "A" to "M" and that's all. That was a much longer list but only 2 columns wide. 2. When it happens it happens everywhere -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Tuesday, April 27, 2004 12:42 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] List Box does not show all So if you paste that SQL into a query, you get a different number of row than what shows in the combo? Charlotte Foust -----Original Message----- From: Gregg [mailto:greggs at msn.com] Sent: Tuesday, April 27, 2004 9:13 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] List Box does not show all Susan, It's a table... here's the source... SELECT DISTINCTROW [PLastName]+", "+[PFirstName] AS PatientName, PatientTbl.Address, PatientTbl.City, PatientTbl.Zip, PatientTbl.Phone, PatientTbl.AdmittingNurse, DateDiff("h",Format([ReferralDate],"mm/dd/yy") & " " & Format([HourOfReferal],"hh:nn:ss"),Format(Now(),"mm/dd/yy hh:nn:ss")) AS HoursSinceReferral, PatientTbl.PatientID FROM PatientTbl WHERE ((([PLastName]+", "+[PFirstName]) Is Not Null) AND ((PatientTbl.DenialReason) Is Null) AND ((PatientTbl.dateServiceStart) Is Null)); -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Susan Harkins Sent: Tuesday, April 27, 2004 9:23 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] List Box does not show all Where are the list items coming from? Sounds like you're using a Table/Query list, so this wouldn't be the problem, but a Value list is limited in the number of characters, and with 7 columns, you might have reached it -- if you're using a Value list. Susan H. The list box is trying to display 36 rows but only shows 23. The query behind the list is showing 36. It's seven columns wide. I thinks all users are using the same version of A97. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at bellsouth.net Tue Apr 27 16:09:56 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Tue, 27 Apr 2004 17:09:56 -0400 Subject: [AccessD] Access Address to Map in Browser - LENGTHY REPLY References: Message-ID: <000801c42c9c$12ae2720$6101a8c0@dejpolsys> ...terrific Bob! ...between you and Andy I've got exactly what I need ...AccessD rules! :))))))) William Hindman "Always code as if the person who is maintaining or testing your code is a violent psychopath who knows where you live." William Silverstein ----- Original Message ----- From: "Bob Gajewski" To: "Access Developers discussion and problem solving" Sent: Tuesday, April 27, 2004 11:47 AM Subject: RE: [AccessD] Access Address to Map in Browser - LENGTHY REPLY > William: > > I placed two command buttons (cmdMap and cmdWeather) on my form and > controlled their value, caption and enabled state through code. This also > uses a US zip code database to automatically populate the Municipality and > StateCode fields. > > > ********************************************* > Private Sub Form_Current() > If IsNull([txtJobMunicipalityName]) Or _ > IsNull([txtJobStateCode]) Or _ > IsNull([txtJobZipCode]) Or _ > [txtJobMunicipalityName] = "" Or _ > [txtJobStateCode] = "" Or _ > [txtJobZipCode] = "" Then > cmdMap.Enabled = False > cmdMap.Caption = "Local map not available - address incomplete" > cmdWeather.Enabled = False > cmdWeather.Caption = "Local weather not available - address incomplete" > Else > cmdMap.Enabled = True > cmdWeather.Enabled = True > End If > > If Not IsNull([txtJobZipCode]) And [txtJobZipCode] <> "" Then > cmdMap.HyperlinkAddress = > "http://www.mapquest.com/maps/map.adp?country=US&addtohistory=&address=" & > [txtJobAddress] & "&city=" & [txtJobMunicipalityName] & "&state=" & > [txtJobStateCode] & "&zipcode=" & [txtJobZipCode] & > "&homesubmit.x=30&homesubmit.y=14" > cmdMap.Caption = "View local map for " & [txtJobMunicipalityName] & ", " > & [txtJobStateCode] > cmdWeather.HyperlinkAddress = "http://www.weather.com/weather/local/" & > [txtJobZipCode] & "?whatprefs=" > cmdWeather.Caption = "Check local weather in " & > [txtJobMunicipalityName] & ", " & [txtJobStateCode] > End If > End Sub > ********************************************* > Private Sub txtJobMunicipalityName_AfterUpdate() > If IsNull([txtJobStateCode]) Or [txtJobStateCode] = "" Then > Me.txtJobStateCode.SetFocus > End If > If IsNull([txtJobMunicipalityName]) Or _ > IsNull([txtJobStateCode]) Or _ > IsNull([txtJobZipCode]) Or _ > [txtJobMunicipalityName] = "" Or _ > [txtJobStateCode] = "" Or _ > [txtJobZipCode] = "" Then > cmdMap.Enabled = False > cmdMap.Caption = "Local map not available - address incomplete" > cmdWeather.Enabled = False > cmdWeather.Caption = "Local weather not available - address incomplete" > Else > cmdMap.Enabled = True > cmdWeather.Enabled = True > End If > End Sub > ********************************************* > Private Sub txtJobStateCode_AfterUpdate() > If IsNull([txtJobMunicipalityName]) Or _ > IsNull([txtJobStateCode]) Or _ > IsNull([txtJobZipCode]) Or _ > [txtJobMunicipalityName] = "" Or _ > [txtJobStateCode] = "" Or _ > [txtJobZipCode] = "" Then > cmdMap.Enabled = False > cmdMap.Caption = "Local map not available - address incomplete" > cmdWeather.Enabled = False > cmdWeather.Caption = "Local weather not available - address incomplete" > Else > cmdMap.Enabled = True > cmdWeather.Enabled = True > End If > End Sub > ********************************************* > Private Sub txtJobZipCode_AfterUpdate() > Dim varCMN, varCSC > varCMN = DLookup("[txtMunicipalityName]", "tblZipCodes", > "[tblZipCodes].[txtZipCode] = '" & [txtJobZipCode] & "'") > varCSC = DLookup("[txtStateCode]", "tblZipCodes", > "[tblZipCodes].[txtZipCode] = '" & [txtJobZipCode] & "'") > If Not IsNull(varCMN) Then > Me.txtJobMunicipalityName = varCMN > Me.txtJobStateCode = varCSC > Else > MsgBox "The zip code entered is not on file. Input the municipality name > and select the state." > Me.txtJobMunicipalityName = Null > Me.txtJobStateCode = Null > Me.txtJobMunicipalityName.SetFocus > End If > If IsNull([txtJobMunicipalityName]) Or _ > IsNull([txtJobStateCode]) Or _ > IsNull([txtJobZipCode]) Or _ > [txtJobMunicipalityName] = "" Or _ > [txtJobStateCode] = "" Or _ > [txtJobZipCode] = "" Then > cmdMap.Enabled = False > cmdMap.Caption = "Local map not available - address incomplete" > cmdWeather.Enabled = False > cmdWeather.Caption = "Local weather not available - address incomplete" > Else > cmdMap.Enabled = True > cmdWeather.Enabled = True > End If > If Not IsNull([txtJobZipCode]) And [txtJobZipCode] <> "" Then > cmdMap.HyperlinkAddress = > "http://www.mapquest.com/maps/map.adp?country=US&addtohistory=&address=" & > [txtJobAddress] & "&city=" & [txtJobMunicipalityName] & "&state=" & > [txtJobStateCode] & "&zipcode=" & [txtJobZipCode] & > "&homesubmit.x=30&homesubmit.y=14" > cmdMap.Caption = "View local map for " & [txtJobMunicipalityName] & ", " > & [txtJobStateCode] > cmdWeather.HyperlinkAddress = "http://www.weather.com/weather/local/" & > [txtJobZipCode] & "?whatprefs=" > cmdWeather.Caption = "Check local weather in " & > [txtJobMunicipalityName] & ", " & [txtJobStateCode] > End If > End Sub > ********************************************* > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of William > Hindman > Sent: Tuesday, April 27, 2004 06:52 > To: Access Developers discussion and problem solving > Subject: [AccessD] Access Address to Map in Browser > > > Group > > ...in Outlook, I can open a map of a contact's address in a browser > directly from Outlook as follows: > > a) select Contacts on the Outlook Bar or in the folder list. > b) select contact whose address I want to locate. > c) File/Open/Selected Items. > d) Under the Address button, click the arrow, and then click the type of > address I want to find on the map (Business/Home/Other). > e) Actions/Display Map of Address. > > ...my browser opens to Find a Map at mappoint.msn.com with a push-pin > marking the location of the address. > > ...has anyone done anything like this via code from Access? ...without using > Outlook? > > William Hindman > "Always code as if the person who is maintaining or testing your code is > a violent psychopath who knows where you live." William Silverstein > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rbgajewski at adelphia.net Tue Apr 27 16:15:19 2004 From: rbgajewski at adelphia.net (Bob Gajewski) Date: Tue, 27 Apr 2004 17:15:19 -0400 Subject: [AccessD] Access Address to Map in Browser - LENGTHY REPLY In-Reply-To: <000801c42c9c$12ae2720$6101a8c0@dejpolsys> Message-ID: William Always glad to help! Believe me - you have helped me more times than you know, with your answers to others! Let me know if you also want the US zip code database; I can send it offline (to anyone). Regards, Bob -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of William Hindman Sent: Tuesday, April 27, 2004 17:10 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access Address to Map in Browser - LENGTHY REPLY ...terrific Bob! ...between you and Andy I've got exactly what I need ...AccessD rules! :))))))) William Hindman "Always code as if the person who is maintaining or testing your code is a violent psychopath who knows where you live." William Silverstein From connie.kamrowski at agric.nsw.gov.au Tue Apr 27 18:20:06 2004 From: connie.kamrowski at agric.nsw.gov.au (connie.kamrowski at agric.nsw.gov.au) Date: Wed, 28 Apr 2004 09:20:06 +1000 Subject: [AccessD] Re:Mail Merge form letters Message-ID: Thanks Marty The pages on mail merge were very informative. I guess sometimes you just have to know where to look :) Connie Kamrowski Analyst/Programmer Information Technology NSW Agriculture Orange This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient or received it in error, please delete the message and notify sender. Views expressed are those of the individual sender and are not necessarily the views of their organisation. From jwcolby at colbyconsulting.com Tue Apr 27 19:34:31 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 27 Apr 2004 20:34:31 -0400 Subject: [AccessD] List Box does not show all In-Reply-To: Message-ID: I have seen this too. It had to do with the wrong number of columns in the combo's column property vs the number in the sql statement. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gregg Sent: Tuesday, April 27, 2004 4:04 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] List Box does not show all Yes... that's true. Here's a recap of the facts. 1. The problem comes and goes. It happened a couple of weeks ago but by the time they went to show it to me it was gone. I didn't believe them of course until it happened again this week and I could see it. I fooled with it and it went away but when I undid my changes it didn't come back... very weird. I've seen this before at another customer using A97 where the list would go from say "A" to "M" and that's all. That was a much longer list but only 2 columns wide. 2. When it happens it happens everywhere -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Tuesday, April 27, 2004 12:42 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] List Box does not show all So if you paste that SQL into a query, you get a different number of row than what shows in the combo? Charlotte Foust -----Original Message----- From: Gregg [mailto:greggs at msn.com] Sent: Tuesday, April 27, 2004 9:13 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] List Box does not show all Susan, It's a table... here's the source... SELECT DISTINCTROW [PLastName]+", "+[PFirstName] AS PatientName, PatientTbl.Address, PatientTbl.City, PatientTbl.Zip, PatientTbl.Phone, PatientTbl.AdmittingNurse, DateDiff("h",Format([ReferralDate],"mm/dd/yy") & " " & Format([HourOfReferal],"hh:nn:ss"),Format(Now(),"mm/dd/yy hh:nn:ss")) AS HoursSinceReferral, PatientTbl.PatientID FROM PatientTbl WHERE ((([PLastName]+", "+[PFirstName]) Is Not Null) AND ((PatientTbl.DenialReason) Is Null) AND ((PatientTbl.dateServiceStart) Is Null)); -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Susan Harkins Sent: Tuesday, April 27, 2004 9:23 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] List Box does not show all Where are the list items coming from? Sounds like you're using a Table/Query list, so this wouldn't be the problem, but a Value list is limited in the number of characters, and with 7 columns, you might have reached it -- if you're using a Value list. Susan H. The list box is trying to display 36 rows but only shows 23. The query behind the list is showing 36. It's seven columns wide. I thinks all users are using the same version of A97. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From sgoodhall at comcast.net Tue Apr 27 20:24:05 2004 From: sgoodhall at comcast.net (Steve Goodhall) Date: Tue, 27 Apr 2004 21:24:05 -0400 Subject: [AccessD] UNION Queries In-Reply-To: Message-ID: Has anybody had any weird problems with UNION queries. I have a UNION of 4 SELECTS that returns 257 records when opened in the query tool, but only 18 when processed as a recordset. Running in A2K. Any thoughts? Thanks Steve Goodhall From stuart at lexacorp.com.pg Tue Apr 27 21:29:28 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 28 Apr 2004 12:29:28 +1000 Subject: [AccessD] UNION Queries In-Reply-To: References: Message-ID: <408FA3A8.30339.1042F4C@localhost> On 27 Apr 2004 at 21:24, Steve Goodhall wrote: > Has anybody had any weird problems with UNION queries. I have a UNION of 4 > SELECTS that returns 257 records when opened in the query tool, but only 18 > when processed as a recordset. Running in A2K. Any thoughts? > Are all 257 different? I'd guess that the Query will have the UniqueRecords property set to No. Try using UNION ALL in the recordset. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From terry.mace at baesystems.com Tue Apr 27 21:53:58 2004 From: terry.mace at baesystems.com (MACE, Terry) Date: Wed, 28 Apr 2004 12:23:58 +0930 Subject: [AccessD] User Defined Properties A97 Message-ID: I'm trying to use a custom property to store some changing information, which works fine, but when I try to read it, it only returns the value that was present when the database was opened. Is this the way it works or can I read the changed info. I'm using the following code to read the property 'Reference': DBEngine(0)(0).Containers("Databases").Documents("UserDefined").Properties(" reference") Terry Mace From d.dick at uws.edu.au Wed Apr 28 01:26:39 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Wed, 28 Apr 2004 16:26:39 +1000 Subject: [AccessD] A2K: Getting incorrect date References: <408EC2C6.4554.2E3D660@localhost> Message-ID: <002701c42ce9$c4074770$48619a89@DDICK> Thanks Stuart Exactly what i needed Darren ----- Original Message ----- From: "Stuart McLachlan" To: "Darren DICK" ; "Access Developers discussion and problemsolving" Sent: Tuesday, April 27, 2004 8:29 PM Subject: Re: [AccessD] A2K: Getting incorrect date > On 27 Apr 2004 at 14:36, Darren DICK wrote: > > > Hello all > > Can anyone tell me why dtTimeElapsed is returning a crap date around 1900 or so? > > dtStartDate returns the expected date as does dtTodaysDate > > Many thanks > > > > > > Dim dtStartDate As Date > > Dim dtTodaysDate As Date > > Dim dtTimeElapsed As Date > > > > Because an elapsed period is not a date. It is a number. DateDiff() returns *number* of time periods > Dim dtTimeElapsed as a long to get the number of the time periods specified by the first paramter of DateDiff. > > > > -- > Lexacorp Ltd > http://www.lexacorp.com.pg > Information Technology Consultancy, Software Development,System Support. > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From mwp.reid at queens-belfast.ac.uk Wed Apr 28 05:49:12 2004 From: mwp.reid at queens-belfast.ac.uk (Martin Reid) Date: Wed, 28 Apr 2004 11:49:12 +0100 (GMT Daylight Time) Subject: [AccessD] OT Ignore In-Reply-To: Message-ID: Test 11.40am Martin WP Reid Information Services Queens University Belfast Tel: (02890) 273750 ---------------------- From BarbaraRyan at cox.net Wed Apr 28 07:17:47 2004 From: BarbaraRyan at cox.net (Barbara Ryan) Date: Wed, 28 Apr 2004 08:17:47 -0400 Subject: [AccessD] Capture value when deleting a a record Message-ID: <005001c42d1a$d1902160$0a00a8c0@cx470148a> In an Access 97 application, I have a form that displays records from a table. When a user deletes a record, I want to first capture the value in the key field and store it in a variable. However, when the OnDelete event occurs, the record has already been deleted to a buffer. I've also tried Form_Current but it's not available there either. Aside from capturing all the possible keystrokes (that will delete a reord) in KeyDown, how can I capture a field value on a delete? Thanks, Barb Ryan From stuart at lexacorp.com.pg Wed Apr 28 07:47:25 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 28 Apr 2004 22:47:25 +1000 Subject: [AccessD] Capture value when deleting a a record In-Reply-To: <005001c42d1a$d1902160$0a00a8c0@cx470148a> Message-ID: <4090347D.26259.339EB8C@localhost> On 28 Apr 2004 at 8:17, Barbara Ryan wrote: > In an Access 97 application, I have a form that displays records from > a table. When a user deletes a record, I want to first capture the > value in the key field and store it in a variable. However, when the > OnDelete event occurs, the record has already been deleted to a > buffer. No it isn't. It does not get deleted until after the OnDelete and before the DeleteConfirm. You *can* store the current Key in the OnDelete into a form or global variable. I do it frequently. >I've also tried Form_Current but it's not available there > either. You must be doing something else wrong. It is also available there (I capture it at that point on occasions as well) How about posting your form's code to see what is happening? -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From jwcolby at colbyconsulting.com Wed Apr 28 07:51:59 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 28 Apr 2004 08:51:59 -0400 Subject: [AccessD] Capture value when deleting a a record In-Reply-To: <005001c42d1a$d1902160$0a00a8c0@cx470148a> Message-ID: Capture it in OnCurrent (as you move to the record). That way you already have it when the delete occurs. When you sense the delete, store that already captured value. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Barbara Ryan Sent: Wednesday, April 28, 2004 8:18 AM To: Access List Subject: [AccessD] Capture value when deleting a a record In an Access 97 application, I have a form that displays records from a table. When a user deletes a record, I want to first capture the value in the key field and store it in a variable. However, when the OnDelete event occurs, the record has already been deleted to a buffer. I've also tried Form_Current but it's not available there either. Aside from capturing all the possible keystrokes (that will delete a reord) in KeyDown, how can I capture a field value on a delete? Thanks, Barb Ryan -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BarbaraRyan at cox.net Wed Apr 28 07:59:23 2004 From: BarbaraRyan at cox.net (Barbara Ryan) Date: Wed, 28 Apr 2004 08:59:23 -0400 Subject: [AccessD] Capture value when deleting a a record References: <4090347D.26259.339EB8C@localhost> Message-ID: <007101c42d20$a160de20$0a00a8c0@cx470148a> I will look at my code again and try to see what the heck I'm doing! Thanks ----- Original Message ----- From: "Stuart McLachlan" To: "Access Developers discussion and problemsolving" Sent: Wednesday, April 28, 2004 8:47 AM Subject: Re: [AccessD] Capture value when deleting a a record > On 28 Apr 2004 at 8:17, Barbara Ryan wrote: > > > In an Access 97 application, I have a form that displays records from > > a table. When a user deletes a record, I want to first capture the > > value in the key field and store it in a variable. However, when the > > OnDelete event occurs, the record has already been deleted to a > > buffer. > > No it isn't. It does not get deleted until after the OnDelete and > before the DeleteConfirm. > > You *can* store the current Key in the OnDelete into a form or global > variable. I do it frequently. > > >I've also tried Form_Current but it's not available there > > either. > > You must be doing something else wrong. It is also available there (I > capture it at that point on occasions as well) > > How about posting your form's code to see what is happening? > > > > > -- > Lexacorp Ltd > http://www.lexacorp.com.pg > Information Technology Consultancy, Software Development,System > Support. > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From susanj at sgmeet.com Wed Apr 28 10:13:19 2004 From: susanj at sgmeet.com (Susan Jones) Date: Wed, 28 Apr 2004 10:13:19 -0500 Subject: [AccessD] TIMS In-Reply-To: <007101c42d20$a160de20$0a00a8c0@cx470148a> References: <4090347D.26259.339EB8C@localhost> <007101c42d20$a160de20$0a00a8c0@cx470148a> Message-ID: <6.0.1.1.2.20040428100131.03cbdc88@mail.sgmeet.com> Has anyone heard of or used a product from TIMS for online data management (shopping cart kind of set-up)? I'm searching Google and haven't been able to bring up an actual company. We've been asked to submit a bid for data management and, per their letter, the system currently used is "a fairly new product they purchased from TIMS." Thanks, Susan From EdTesiny at oasas.state.ny.us Wed Apr 28 10:23:13 2004 From: EdTesiny at oasas.state.ny.us (Tesiny, Ed) Date: Wed, 28 Apr 2004 11:23:13 -0400 Subject: [AccessD] TIMS Message-ID: Found this at http://www.software-x.com/software/storage-management.html TIMS Inc Producers of SAPERION, a comprehensive solution for imaging, document management, storage management, COLD, and scripting workflow. SAPERION(r) is an " All in One, Ready to Run" integrated knowledge management and eBusiness software solution for capturing, imaging, COLD, digital signatures, DMS, storage & archiving and workflow. Ed Tesiny EdTesiny at oasas.state.ny.us -----Original Message----- From: Susan Jones [mailto:susanj at sgmeet.com] Sent: Wednesday, April 28, 2004 11:13 AM To: accessd at databaseadvisors.com Subject: [AccessD] TIMS Has anyone heard of or used a product from TIMS for online data management (shopping cart kind of set-up)? I'm searching Google and haven't been able to bring up an actual company. We've been asked to submit a bid for data management and, per their letter, the system currently used is "a fairly new product they purchased from TIMS." Thanks, Susan -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From PBudge at cbsol.com Wed Apr 28 10:46:33 2004 From: PBudge at cbsol.com (PBudge at cbsol.com) Date: Wed, 28 Apr 2004 10:46:33 -0500 Subject: [AccessD] TIMS Message-ID: http://www.timstech.com/tech/ Pamela G. Budge PBudge at cbsol.com Creative Business Solutions Susan Jones To: accessd at databaseadvisors.com Sent by: cc: accessd-bounces at databasea Subject: [AccessD] TIMS dvisors.com 04/28/2004 10:13 AM Please respond to Access Developers discussion and problem solving Has anyone heard of or used a product from TIMS for online data management (shopping cart kind of set-up)? I'm searching Google and haven't been able to bring up an actual company. We've been asked to submit a bid for data management and, per their letter, the system currently used is "a fairly new product they purchased from TIMS." Thanks, Susan -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmoss111 at bellsouth.net Wed Apr 28 10:40:53 2004 From: jmoss111 at bellsouth.net (JMoss) Date: Wed, 28 Apr 2004 10:40:53 -0500 Subject: [AccessD] TIMS In-Reply-To: <6.0.1.1.2.20040428100131.03cbdc88@mail.sgmeet.com> Message-ID: The link below to a company named TIMS doesn't mention a shopping cart but it does mention data management. http://www.timsinc.com/index.html -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Susan Jones Sent: Wednesday, April 28, 2004 10:13 AM To: accessd at databaseadvisors.com Subject: [AccessD] TIMS Has anyone heard of or used a product from TIMS for online data management (shopping cart kind of set-up)? I'm searching Google and haven't been able to bring up an actual company. We've been asked to submit a bid for data management and, per their letter, the system currently used is "a fairly new product they purchased from TIMS." Thanks, Susan -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From doug at starntech.com Wed Apr 28 11:03:41 2004 From: doug at starntech.com (Douglas Barnes) Date: Wed, 28 Apr 2004 12:03:41 -0400 Subject: [AccessD] Subform to Subform Updating Message-ID: I have a main form with 2 subforms (sub1, sub2). I can add records to sub1 as it is related to the main form. I can't seem to add records to sub2, which is related to sub1. Any insight on this would be appreciated. Douglas Barnes Starn Technical Services P. O. 1172 Meadville, PA 16335 814.724.1045 doug at starntech.com www.starntech.com From susanj at sgmeet.com Wed Apr 28 11:20:10 2004 From: susanj at sgmeet.com (Susan Jones) Date: Wed, 28 Apr 2004 11:20:10 -0500 Subject: [AccessD] TIMS In-Reply-To: References: Message-ID: <6.0.1.1.2.20040428111945.03c13ce0@mail.sgmeet.com> Thank you all! At least I have a couple of places to start now! Susan From michael.broesdorf at web.de Wed Apr 28 11:31:14 2004 From: michael.broesdorf at web.de (=?iso-8859-1?Q?Michael_Br=F6sdorf?=) Date: Wed, 28 Apr 2004 18:31:14 +0200 Subject: AW: [AccessD] Subform to Subform Updating In-Reply-To: Message-ID: If sub2 is a subform of the main form (i.e. not a subform of sub1), sub2 does not 'see' anything entered in sub1 since it is linked to the main form. However, if you put an (invisible) textbox on the main form, that contains the primary key of sub1, you can link sub2 to that textbox on the main form. If you now select a record in sub1, it's primary key will show up in the textbox. Sub2 will then in turn related data. HTH, Michael -----Urspr?ngliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von Douglas Barnes Gesendet: Mittwoch, 28. April 2004 18:04 An: AccessD at databaseadvisors.com Betreff: [AccessD] Subform to Subform Updating I have a main form with 2 subforms (sub1, sub2). I can add records to sub1 as it is related to the main form. I can't seem to add records to sub2, which is related to sub1. Any insight on this would be appreciated. Douglas Barnes Starn Technical Services P. O. 1172 Meadville, PA 16335 814.724.1045 doug at starntech.com www.starntech.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From doug at starntech.com Wed Apr 28 13:16:14 2004 From: doug at starntech.com (Douglas Barnes) Date: Wed, 28 Apr 2004 14:16:14 -0400 Subject: [AccessD] Subform to Subform Updating In-Reply-To: Message-ID: I have the hidden control on the main form, sorry 'bout that. sub2 does indeed return the correct data. Problem arises when i try to add another record in sub2. Douglas Barnes Starn Technical Services P. O. 1172 Meadville, PA 16335 814.724.1045 doug at starntech.com www.starntech.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Michael Br?sdorf Sent: April 28, 2004 12:31 PM To: Access Developers discussion and problem solving Subject: AW: [AccessD] Subform to Subform Updating If sub2 is a subform of the main form (i.e. not a subform of sub1), sub2 does not 'see' anything entered in sub1 since it is linked to the main form. However, if you put an (invisible) textbox on the main form, that contains the primary key of sub1, you can link sub2 to that textbox on the main form. If you now select a record in sub1, it's primary key will show up in the textbox. Sub2 will then in turn related data. HTH, Michael -----Urspr?ngliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von Douglas Barnes Gesendet: Mittwoch, 28. April 2004 18:04 An: AccessD at databaseadvisors.com Betreff: [AccessD] Subform to Subform Updating I have a main form with 2 subforms (sub1, sub2). I can add records to sub1 as it is related to the main form. I can't seem to add records to sub2, which is related to sub1. Any insight on this would be appreciated. Douglas Barnes Starn Technical Services P. O. 1172 Meadville, PA 16335 814.724.1045 doug at starntech.com www.starntech.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Wed Apr 28 14:10:08 2004 From: greggs at msn.com (Gregg) Date: Wed, 28 Apr 2004 14:10:08 -0500 Subject: [AccessD] List Box does not show all In-Reply-To: Message-ID: That sounds like something I would do but I didn't on this one. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Tuesday, April 27, 2004 7:35 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] List Box does not show all I have seen this too. It had to do with the wrong number of columns in the combo's column property vs the number in the sql statement. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gregg Sent: Tuesday, April 27, 2004 4:04 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] List Box does not show all Yes... that's true. Here's a recap of the facts. 1. The problem comes and goes. It happened a couple of weeks ago but by the time they went to show it to me it was gone. I didn't believe them of course until it happened again this week and I could see it. I fooled with it and it went away but when I undid my changes it didn't come back... very weird. I've seen this before at another customer using A97 where the list would go from say "A" to "M" and that's all. That was a much longer list but only 2 columns wide. 2. When it happens it happens everywhere -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Tuesday, April 27, 2004 12:42 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] List Box does not show all So if you paste that SQL into a query, you get a different number of row than what shows in the combo? Charlotte Foust -----Original Message----- From: Gregg [mailto:greggs at msn.com] Sent: Tuesday, April 27, 2004 9:13 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] List Box does not show all Susan, It's a table... here's the source... SELECT DISTINCTROW [PLastName]+", "+[PFirstName] AS PatientName, PatientTbl.Address, PatientTbl.City, PatientTbl.Zip, PatientTbl.Phone, PatientTbl.AdmittingNurse, DateDiff("h",Format([ReferralDate],"mm/dd/yy") & " " & Format([HourOfReferal],"hh:nn:ss"),Format(Now(),"mm/dd/yy hh:nn:ss")) AS HoursSinceReferral, PatientTbl.PatientID FROM PatientTbl WHERE ((([PLastName]+", "+[PFirstName]) Is Not Null) AND ((PatientTbl.DenialReason) Is Null) AND ((PatientTbl.dateServiceStart) Is Null)); -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Susan Harkins Sent: Tuesday, April 27, 2004 9:23 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] List Box does not show all Where are the list items coming from? Sounds like you're using a Table/Query list, so this wouldn't be the problem, but a Value list is limited in the number of characters, and with 7 columns, you might have reached it -- if you're using a Value list. Susan H. The list box is trying to display 36 rows but only shows 23. The query behind the list is showing 36. It's seven columns wide. I thinks all users are using the same version of A97. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Rich_Lavsa at pghcorning.com Wed Apr 28 14:00:31 2004 From: Rich_Lavsa at pghcorning.com (Lavsa, Rich) Date: Wed, 28 Apr 2004 15:00:31 -0400 Subject: [AccessD] Calendar Controls AND TIME Controls Message-ID: <833956F5C117124A89417638FDB11290EBD159@goexchange.pghcorning.com> Whenever you get it done let me know or post it to the list. I'll gladly be a BETA tester... Rich -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Monday, April 26, 2004 4:23 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Calendar Controls AND TIME Controls Well if you can wait, the next item I'm adding to the beta version of my MiniCalendar is a time/clock portion. No idea when I'll have it done though...not very timely I guess! LOL Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lavsa, Rich Sent: Monday, April 26, 2004 2:45 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Calendar Controls AND TIME Controls I always hear about Calendar Controls and have used a few of them. I was wondering if anyone out there has a Time control. I have a very time sensitive application where the technicians have to enter Date and Time on and Date and Time off. The time is essential to knowing how long the piece ran with or without defects in the product to know whether to fix it or use that mold as a template for others if it was working properly over a long period of time (long could be 16+ hours due to the harsh environment). Anyway, back to my question. I have a Date/Time field for ON and OFF, currently I have a text box that is populated with a pop up calendar or by typing in text, works great. I also have another unbound field that is used purely for Time entry, of which the user must type it in as ##:## AM/PM, then upon exit it concatenates that information with the Date information to make a complete Date/Time field.. Does anyone know of a Time control or a better way to achieve this type of functionality other then the Date and Time Active X control. Thanks in Advance, Rich -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Apr 28 15:22:32 2004 From: Jeff at OUTBAKTech.com (Jeff Barrows) Date: Wed, 28 Apr 2004 15:22:32 -0500 Subject: [AccessD] Memo Fields and Reports in Access 97 Message-ID: <8DA8776D2F418E46A2A464AC6CE63050032673@outbaksrv1.outbaktech.com> It has been a while since I needed to add a memo field to a report and I cannot seem to remember, is the memo field limited to 255 char. on the report? And if so, could it then limit my memo field to the same 255 chars? TIA Jeff Barrows From EdTesiny at oasas.state.ny.us Wed Apr 28 15:27:05 2004 From: EdTesiny at oasas.state.ny.us (Tesiny, Ed) Date: Wed, 28 Apr 2004 16:27:05 -0400 Subject: [AccessD] Memo Fields and Reports in Access 97 Message-ID: For memo fields the max. number of characters is 64,000. Ed Tesiny EdTesiny at oasas.state.ny.us -----Original Message----- From: Jeff Barrows [mailto:Jeff at OUTBAKTech.com] Sent: Wednesday, April 28, 2004 4:23 PM To: AccessD Subject: [AccessD] Memo Fields and Reports in Access 97 It has been a while since I needed to add a memo field to a report and I cannot seem to remember, is the memo field limited to 255 char. on the report? And if so, could it then limit my memo field to the same 255 chars? TIA Jeff Barrows -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DElam at jenkens.com Wed Apr 28 15:28:23 2004 From: DElam at jenkens.com (Elam, Debbie) Date: Wed, 28 Apr 2004 15:28:23 -0500 Subject: [AccessD] Memo Fields and Reports in Access 97 Message-ID: <7B1961ED924D1A459E378C9B1BB22B4C0106BE64@natexch.jenkens.com> The text field is limited to 255 characters. If you do not need more than this use the text field. The memo field is more prone to corruption. You can limit the number of characters on the report by using the LEFT$ function, if you want to do that. Debbie -----Original Message----- From: Jeff Barrows [mailto:Jeff at outbaktech.com] Sent: Wednesday, April 28, 2004 3:23 PM To: AccessD Subject: [AccessD] Memo Fields and Reports in Access 97 It has been a while since I needed to add a memo field to a report and I cannot seem to remember, is the memo field limited to 255 char. on the report? And if so, could it then limit my memo field to the same 255 chars? TIA Jeff Barrows -- _______________________________________________ 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 CMackin at Quiznos.com Wed Apr 28 15:40:50 2004 From: CMackin at Quiznos.com (Mackin, Christopher) Date: Wed, 28 Apr 2004 14:40:50 -0600 Subject: [AccessD] Memo Fields and Reports in Access 97 Message-ID: <19F28F0B4284C04FB90CAA380451FFD9412722@bross.quiznos.net> It's limited when used with a GROUP BY or DISTINCT SQL statement as the recordsource. All you need to do is, if you require DISTINCT OR GROUP BY, leave the PK to the Memo field in that query, then, at the highlest level of your query link back to the Memo field and grab it there. Chris Mackin -----Original Message----- From: Jeff Barrows [mailto:Jeff at outbaktech.com] Sent: Wednesday, April 28, 2004 2:23 PM To: AccessD Subject: [AccessD] Memo Fields and Reports in Access 97 It has been a while since I needed to add a memo field to a report and I cannot seem to remember, is the memo field limited to 255 char. on the report? And if so, could it then limit my memo field to the same 255 chars? TIA Jeff Barrows -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jeff at OUTBAKTech.com Wed Apr 28 15:43:11 2004 From: Jeff at OUTBAKTech.com (Jeff Barrows) Date: Wed, 28 Apr 2004 15:43:11 -0500 Subject: [AccessD] Memo Fields and Reports in Access 97 Message-ID: <8DA8776D2F418E46A2A464AC6CE63050032674@outbaksrv1.outbaktech.com> OK, I stated my question wrong. I have a report in access 97 that needs to display the contents of a memo field. How can I do this without some (most) of my data being dropped? -----Original Message----- From: Tesiny, Ed [mailto:EdTesiny at oasas.state.ny.us] Sent: Wed 4/28/2004 3:27 PM To: Access Developers discussion and problem solving Cc: Subject: RE: [AccessD] Memo Fields and Reports in Access 97 For memo fields the max. number of characters is 64,000. Ed Tesiny EdTesiny at oasas.state.ny.us -----Original Message----- From: Jeff Barrows [mailto:Jeff at OUTBAKTech.com] Sent: Wednesday, April 28, 2004 4:23 PM To: AccessD Subject: [AccessD] Memo Fields and Reports in Access 97 It has been a while since I needed to add a memo field to a report and I cannot seem to remember, is the memo field limited to 255 char. on the report? And if so, could it then limit my memo field to the same 255 chars? TIA Jeff Barrows -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DElam at jenkens.com Wed Apr 28 15:52:13 2004 From: DElam at jenkens.com (Elam, Debbie) Date: Wed, 28 Apr 2004 15:52:13 -0500 Subject: [AccessD] Memo Fields and Reports in Access 97 Message-ID: <7B1961ED924D1A459E378C9B1BB22B4C0106BE65@natexch.jenkens.com> Set the field to be able to grow. It will expand to fit everything. Debbie -----Original Message----- From: Jeff Barrows [mailto:Jeff at outbaktech.com] Sent: Wednesday, April 28, 2004 3:43 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Memo Fields and Reports in Access 97 OK, I stated my question wrong. I have a report in access 97 that needs to display the contents of a memo field. How can I do this without some (most) of my data being dropped? -----Original Message----- From: Tesiny, Ed [mailto:EdTesiny at oasas.state.ny.us] Sent: Wed 4/28/2004 3:27 PM To: Access Developers discussion and problem solving Cc: Subject: RE: [AccessD] Memo Fields and Reports in Access 97 For memo fields the max. number of characters is 64,000. Ed Tesiny EdTesiny at oasas.state.ny.us -----Original Message----- From: Jeff Barrows [mailto:Jeff at OUTBAKTech.com] Sent: Wednesday, April 28, 2004 4:23 PM To: AccessD Subject: [AccessD] Memo Fields and Reports in Access 97 It has been a while since I needed to add a memo field to a report and I cannot seem to remember, is the memo field limited to 255 char. on the report? And if so, could it then limit my memo field to the same 255 chars? TIA Jeff Barrows -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 JHewson at karta.com Wed Apr 28 17:19:27 2004 From: JHewson at karta.com (Jim Hewson) Date: Wed, 28 Apr 2004 17:19:27 -0500 Subject: [AccessD] Memo Fields and Reports in Access 97 Message-ID: <9C382E065F54AE48BC3AA7925DCBB01C138393@karta-exc-int.Karta.com> The memo fields do work in reports. Two things to keep in mind. 1. "Can Grow" is true. 2. Remember each report section has a 22 inch Max length. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jeff Barrows Sent: Wednesday, April 28, 2004 3:23 PM To: AccessD Subject: [AccessD] Memo Fields and Reports in Access 97 It has been a while since I needed to add a memo field to a report and I cannot seem to remember, is the memo field limited to 255 char. on the report? And if so, could it then limit my memo field to the same 255 chars? TIA Jeff Barrows -- _______________________________________________ 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 Apr 28 18:44:30 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Thu, 29 Apr 2004 09:44:30 +1000 Subject: [AccessD] A2K:Free Clock dB to good home Message-ID: <008101c42d7a$c05c48f0$48619a89@DDICK> Hello all A long time a go I wrote a very buggy, cartoonish and very amateur 'clock' for entering in start and end times for timesheets. It's from one of my very early dB's. But it looks kinda cool. I found it just the other day. So...anyone want a copy? It's 158 kb Zipped If so, all me too's must be addressed to d.dick at uws.edu.au Keep the subject line A2K: Free Clock dB to good home Any me too's to the list will be ignored. Any offenders will be flagged for alien abduction. See y'all Darren From carbonnb at sympatico.ca Wed Apr 28 19:18:28 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Wed, 28 Apr 2004 20:18:28 -0400 Subject: [AccessD] A2K:Free Clock dB to good home In-Reply-To: <008101c42d7a$c05c48f0$48619a89@DDICK> Message-ID: <40901194.18058.1064671@localhost> On 29 Apr 2004 at 9:44, Darren DICK wrote: > Keep the subject line A2K: Free Clock dB to good home > Any me too's to the list will be ignored. Any offenders will be > flagged for alien abduction. OH. Better yet, we can make them deal with the spam that hits the list srever :-) And THEN be flagged for alien abduction :-) -- Bryan Carbonnell - carbonnb at sympatico.ca I am a nobody, and nobody is perfect; therefore, I am perfect. From jwcolby at colbyconsulting.com Wed Apr 28 20:20:45 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 28 Apr 2004 21:20:45 -0400 Subject: [AccessD] A2K:Free Clock dB to good home In-Reply-To: <40901194.18058.1064671@localhost> Message-ID: You are not THE nobody and only THE nobody is perfect, therefore you are NOT perfect! ;-) John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Bryan Carbonnell Sent: Wednesday, April 28, 2004 8:18 PM To: Access Developers discussion and problemsolving Subject: Re: [AccessD] A2K:Free Clock dB to good home On 29 Apr 2004 at 9:44, Darren DICK wrote: > Keep the subject line A2K: Free Clock dB to good home > Any me too's to the list will be ignored. Any offenders will be > flagged for alien abduction. OH. Better yet, we can make them deal with the spam that hits the list srever :-) And THEN be flagged for alien abduction :-) -- Bryan Carbonnell - carbonnb at sympatico.ca I am a nobody, and nobody is perfect; therefore, I am perfect. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Apr 28 20:20:45 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 28 Apr 2004 21:20:45 -0400 Subject: [AccessD] Digital Shakespeare Message-ID: 2b + (NOT 2b) John W. Colby www.ColbyConsulting.com From ssharkins at bellsouth.net Wed Apr 28 20:23:35 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Wed, 28 Apr 2004 21:23:35 -0400 Subject: [AccessD] Digital Shakespeare In-Reply-To: Message-ID: <20040429012334.LRFN1702.imf20aec.mail.bellsouth.net@SUSANONE> But can you build a framework for it??????????? AHAHAHAHAHAHAHAHA Susan H. 2b + (NOT 2b) John W. Colby www.ColbyConsulting.com From jwcolby at colbyconsulting.com Wed Apr 28 20:36:29 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 28 Apr 2004 21:36:29 -0400 Subject: [AccessD] Digital Shakespeare In-Reply-To: <20040429012334.LRFN1702.imf20aec.mail.bellsouth.net@SUSANONE> Message-ID: ROTFL. I'm starting to move pieces to VB.Net, starting with SysVars. This is going to be fun! John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Susan Harkins Sent: Wednesday, April 28, 2004 9:24 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Digital Shakespeare But can you build a framework for it??????????? AHAHAHAHAHAHAHAHA Susan H. 2b + (NOT 2b) 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 bruce_bruen at mlc.com.au Wed Apr 28 20:35:07 2004 From: bruce_bruen at mlc.com.au (bruce_bruen at mlc.com.au) Date: Thu, 29 Apr 2004 11:35:07 +1000 Subject: [AccessD] Digital Shakespeare Message-ID: Surely or(2B,!2B) "Susan Harkins" To: "'Access Developers discussion and problem solving'" Sent by: accessd-bounces at databasea cc: dvisors.com Subject: RE: [AccessD] Digital Shakespeare 29/04/2004 11:23 Please respond to Access Developers discussion and problem solving But can you build a framework for it??????????? AHAHAHAHAHAHAHAHA Susan H. 2b + (NOT 2b) 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 bruce_bruen at mlc.com.au Wed Apr 28 20:40:17 2004 From: bruce_bruen at mlc.com.au (bruce_bruen at mlc.com.au) Date: Thu, 29 Apr 2004 11:40:17 +1000 Subject: [AccessD] Digital Shakespeare Message-ID: Or if you want a clue as to where I've been: private void Surely { theQuestion = or(2B,!2B); } B "Susan Harkins" To: "'Access Developers discussion and problem solving'" Sent by: accessd-bounces at databasea cc: dvisors.com Subject: RE: [AccessD] Digital Shakespeare 29/04/2004 11:23 Please respond to Access Developers discussion and problem solving But can you build a framework for it??????????? AHAHAHAHAHAHAHAHA Susan H. 2b + (NOT 2b) 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 ssharkins at bellsouth.net Wed Apr 28 21:14:50 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Wed, 28 Apr 2004 22:14:50 -0400 Subject: [AccessD] Digital Shakespeare In-Reply-To: Message-ID: <20040429021450.MRLT1702.imf20aec.mail.bellsouth.net@SUSANONE> Shakespeare always gets a little lost in the translation. ;) Susan H. Surely or(2B,!2B) From adtp at touchtelindia.net Wed Apr 28 22:56:52 2004 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Thu, 29 Apr 2004 09:26:52 +0530 Subject: [AccessD] Memo Fields and Reports in Access 97 References: <7B1961ED924D1A459E378C9B1BB22B4C0106BE65@natexch.jenkens.com> Message-ID: <007c01c42d9e$33a5c0c0$fc1865cb@winxp> On the subject of memo fields in reports, another interesting feature is pertinent - If the field content is larger than one page, and 'Keep Together' property of Detail section is set as 'Yes', the Report Formatting process is prone to hang up Indefinitely. Conclusion - For large Memo Fields in a report, set the 'Keep Together' property of Detail section as 'No' A.D.Tejpal -------------- ----- Original Message ----- From: Elam, Debbie To: 'Access Developers discussion and problem solving' Sent: Thursday, April 29, 2004 02:22 Subject: RE: [AccessD] Memo Fields and Reports in Access 97 Set the field to be able to grow. It will expand to fit everything. Debbie -----Original Message----- From: Jeff Barrows [mailto:Jeff at outbaktech.com] Sent: Wednesday, April 28, 2004 3:43 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Memo Fields and Reports in Access 97 OK, I stated my question wrong. I have a report in access 97 that needs to display the contents of a memo field. How can I do this without some (most) of my data being dropped? -----Original Message----- From: Tesiny, Ed [mailto:EdTesiny at oasas.state.ny.us] Sent: Wed 4/28/2004 3:27 PM To: Access Developers discussion and problem solving Cc: Subject: RE: [AccessD] Memo Fields and Reports in Access 97 For memo fields the max. number of characters is 64,000. Ed Tesiny EdTesiny at oasas.state.ny.us -----Original Message----- From: Jeff Barrows [mailto:Jeff at OUTBAKTech.com] Sent: Wednesday, April 28, 2004 4:23 PM To: AccessD Subject: [AccessD] Memo Fields and Reports in Access 97 It has been a while since I needed to add a memo field to a report and I cannot seem to remember, is the memo field limited to 255 char. on the report? And if so, could it then limit my memo field to the same 255 chars? TIA Jeff Barrows From gustav at cactus.dk Thu Apr 29 02:51:55 2004 From: gustav at cactus.dk (Gustav Brock) Date: Thu, 29 Apr 2004 09:51:55 +0200 Subject: [AccessD] Memo Fields and Reports in Access 97 In-Reply-To: <8DA8776D2F418E46A2A464AC6CE63050032673@outbaksrv1.outbaktech.com> References: <8DA8776D2F418E46A2A464AC6CE63050032673@outbaksrv1.outbaktech.com> Message-ID: <945722037.20040429095155@cactus.dk> Hi Jeff > It has been a while since I needed to add a memo field to a report and I cannot seem to remember, is the memo field limited to 255 char. on the report? And if so, could it then limit my memo field > to the same 255 chars? You may encounter an issue where the last line of the memo is chopped when printed. That can be prevented by appending to the memo field two or four line feeds: Chr(13) & Chr(10). /gustav From pedro at plex.nl Thu Apr 29 12:15:08 2004 From: pedro at plex.nl (pedro at plex.nl) Date: Thu, 29 Apr 2004 12:15:08 (MET DST) Subject: [AccessD] replace in blank (is Null) Field Message-ID: <200404291015.i3TAF8T0002593@mailhostC.plex.net> Hello Group, i want to use the replace in fields that contain no data (is Null). The help function gives as solution to use find and then replace manually. Is there another option? Pedro Janssen From paul.hartland at fsmail.net Thu Apr 29 05:43:20 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 29 Apr 2004 12:43:20 +0200 (CEST) Subject: [AccessD] replace in blank (is Null) Field Message-ID: <19427990.1083235400290.JavaMail.www@wwinf3004> Pedro, Can't you use Replace(YourField,"",WhatYouWantToReplaceItWith) in a loop Paul Message date : Apr 29 2004, 11:17 AM >From : pedro at plex.nl To : AccessD at databaseadvisors.com Copy to : Subject : [AccessD] replace in blank (is Null) Field Hello Group, i want to use the replace in fields that contain no data (is Null). The help function gives as solution to use find and then replace manually. Is there another option? Pedro Janssen -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- Whatever you Wanadoo: http://www.wanadoo.co.uk/time/ This email has been checked for most known viruses - find out more at: http://www.wanadoo.co.uk/help/id/7098.htm From Bryan_Carbonnell at cbc.ca Thu Apr 29 06:56:20 2004 From: Bryan_Carbonnell at cbc.ca (Bryan Carbonnell) Date: Thu, 29 Apr 2004 07:56:20 -0400 Subject: [AccessD] replace in blank (is Null) Field Message-ID: Pedro, Use an Update Query UPDATE YourTable SET YourTable.YourField = "The Updated Value" WHERE (((YourTable.YourField) Is Null)); Bryan Carbonnell bryan_carbonnell at cbc.ca >>> pedro at plex.nl 29-Apr-04 12:15:08 PM >>> Hello Group, i want to use the replace in fields that contain no data (is Null). The help function gives as solution to use find and then replace manually. Is there another option? Pedro Janssen From stuart at lexacorp.com.pg Thu Apr 29 07:03:56 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 29 Apr 2004 22:03:56 +1000 Subject: [AccessD] replace in blank (is Null) Field In-Reply-To: <19427990.1083235400290.JavaMail.www@wwinf3004> Message-ID: <40917BCC.8273.339BDF4@localhost> On 29 Apr 2004 at 12:43, paul.hartland at fsmail.net wrote: > Pedro, > Can't you use Replace(YourField,"",WhatYouWantToReplaceItWith) in a loop > Paul > Unfortunately, "" ( a zero length string) is not the same thing as a Null. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From paul.hartland at fsmail.net Thu Apr 29 07:13:47 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 29 Apr 2004 14:13:47 +0200 (CEST) Subject: [AccessD] replace in blank (is Null) Field Message-ID: <30224847.1083240827610.JavaMail.www@wwinf3004> yeah, sorry about that....realised as soon as I pressed the Send Message date : Apr 29 2004, 01:07 PM >From : "Stuart McLachlan" To : "Access Developers discussion and problem solving" Copy to : Subject : Re: [AccessD] replace in blank (is Null) Field On 29 Apr 2004 at 12:43, paul.hartland at fsmail.net wrote: > Pedro, > Can't you use Replace(YourField,"",WhatYouWantToReplaceItWith) in a loop > Paul > Unfortunately, "" ( a zero length string) is not the same thing as a Null. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- Whatever you Wanadoo: http://www.wanadoo.co.uk/time/ This email has been checked for most known viruses - find out more at: http://www.wanadoo.co.uk/help/id/7098.htm From michael.broesdorf at web.de Thu Apr 29 07:38:29 2004 From: michael.broesdorf at web.de (=?iso-8859-1?Q?Michael_Br=F6sdorf?=) Date: Thu, 29 Apr 2004 14:38:29 +0200 Subject: AW: [AccessD] Subform to Subform Updating In-Reply-To: Message-ID: Hm, to make any statement I would need more information about your data structure. If you want you can send me a sample app and I will take a look at it. Michael -----Urspr?ngliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von Douglas Barnes Gesendet: Mittwoch, 28. April 2004 20:16 An: Access Developers discussion and problem solving Betreff: RE: [AccessD] Subform to Subform Updating I have the hidden control on the main form, sorry 'bout that. sub2 does indeed return the correct data. Problem arises when i try to add another record in sub2. Douglas Barnes Starn Technical Services P. O. 1172 Meadville, PA 16335 814.724.1045 doug at starntech.com www.starntech.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Michael Br?sdorf Sent: April 28, 2004 12:31 PM To: Access Developers discussion and problem solving Subject: AW: [AccessD] Subform to Subform Updating If sub2 is a subform of the main form (i.e. not a subform of sub1), sub2 does not 'see' anything entered in sub1 since it is linked to the main form. However, if you put an (invisible) textbox on the main form, that contains the primary key of sub1, you can link sub2 to that textbox on the main form. If you now select a record in sub1, it's primary key will show up in the textbox. Sub2 will then in turn related data. HTH, Michael -----Urspr?ngliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von Douglas Barnes Gesendet: Mittwoch, 28. April 2004 18:04 An: AccessD at databaseadvisors.com Betreff: [AccessD] Subform to Subform Updating I have a main form with 2 subforms (sub1, sub2). I can add records to sub1 as it is related to the main form. I can't seem to add records to sub2, which is related to sub1. Any insight on this would be appreciated. Douglas Barnes Starn Technical Services P. O. 1172 Meadville, PA 16335 814.724.1045 doug at starntech.com www.starntech.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Thu Apr 29 08:44:12 2004 From: Developer at UltraDNT.com (Developer) Date: Thu, 29 Apr 2004 09:44:12 -0400 Subject: [AccessD] OT Digital Shakespeare In-Reply-To: <20040429021450.MRLT1702.imf20aec.mail.bellsouth.net@SUSANONE> Message-ID: <000801c42df0$11a58e40$6401a8c0@COA3> This is more like a Friday thread, but the 2b thing reminded me of this. Theres a lot of t-shirts and other items with these types of sayings in a catalog called "Computer Gear" (no affiliation). My fave t-shirt is: SELECT * FROM users WHERE clue=true 0 Rows Returned There's also an "RTFM" shirt, and one that says "There are 10 kinds of people in this world, those who understand binary, and those who don't". Steve -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, April 28, 2004 10:15 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Digital Shakespeare Shakespeare always gets a little lost in the translation. ;) Susan H. Surely or(2B,!2B) -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From kaupca at chevrontexaco.com Thu Apr 29 08:56:22 2004 From: kaupca at chevrontexaco.com (Kaup, Chester A) Date: Thu, 29 Apr 2004 08:56:22 -0500 Subject: [AccessD] Query results display problem Message-ID: <193572B4E0FC1744BEDFEE63F82CEC9E0F978B@bocnte2k4.boc.chevrontexaco.net> I have a query that returns a 7 day average of some numbers and the 7 day average divided by 1000. The regular 7 day average display fine but the 7 day average divided by 7 displays no decimal places. For example 7 day average is 1027.28571429 but the seven day average divided by seven displays 1. I tried setting properties to fixed and 2 decimal places and got 1.00. Why does it display this way? Thanks. SQL if someone wants to look at it. SELECT Avg([qry Sandhills Oil].SumOfTOTOILPROD) AS AvgOfSumOfTOTOILPROD, Avg(([SumOfTOTOILPROD])/1000) AS OIL FROM [qry Sandhills Gas] INNER JOIN [qry Sandhills Oil] ON [qry Sandhills Gas].ACTVDATE = [qry Sandhills Oil].ACTVDATE WHERE ((([qry Sandhills Gas].ACTVDATE) Between Date()-8 And Date()-2)); Chester Kaup Technical Assistant Texas Gas Team/MidContinent Business Unit CTN 8-687-7415 Outside 432-687-7414 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. From gustav at cactus.dk Thu Apr 29 09:15:29 2004 From: gustav at cactus.dk (Gustav Brock) Date: Thu, 29 Apr 2004 16:15:29 +0200 Subject: [AccessD] Query results display problem In-Reply-To: <193572B4E0FC1744BEDFEE63F82CEC9E0F978B@bocnte2k4.boc.chevrontexaco.net> References: <193572B4E0FC1744BEDFEE63F82CEC9E0F978B@bocnte2k4.boc.chevrontexaco.net> Message-ID: <12828735359.20040429161529@cactus.dk> Hi Chester Have you tried: Avg(CDbl([SumOfTOTOILPROD])/1000) AS OIL /gustav > I have a query that returns a 7 day average of some numbers and the 7 > day average divided by 1000. The regular 7 day average display fine but > the 7 day average divided by 7 displays no decimal places. For example 7 > day average is 1027.28571429 but the seven day average divided by seven > displays 1. I tried setting properties to fixed and 2 decimal places and > got 1.00. Why does it display this way? Thanks. SQL if someone wants to > look at it. > SELECT Avg([qry Sandhills Oil].SumOfTOTOILPROD) AS AvgOfSumOfTOTOILPROD, > Avg(([SumOfTOTOILPROD])/1000) AS OIL > FROM [qry Sandhills Gas] INNER JOIN [qry Sandhills Oil] ON [qry > Sandhills Gas].ACTVDATE = [qry Sandhills Oil].ACTVDATE > WHERE ((([qry Sandhills Gas].ACTVDATE) Between Date()-8 And Date()-2)); From john at winhaven.net Thu Apr 29 09:20:33 2004 From: john at winhaven.net (John Bartow) Date: Thu, 29 Apr 2004 09:20:33 -0500 Subject: [AccessD] User Defined Properties A97 In-Reply-To: Message-ID: Terry, I haven't seen anyone answer this question yet so here goes... First off, I wouldn't recommend using reserved words for a user defined "anything". Here is a cutdown, basic function to recall a property: Public Function ReadMyProp() As Variant ' Comments : Returns the database user defined property: UDPrp ' Returns : Variant On Error GoTo Error_Proc Dim db As DAO.Database Dim prp As DAO.Property Set db = CurrentDb Set prp = db.Properties("UDPrp") ReadMyProp = prp Exit_Proc: Set prp = Nothing Set db = Nothing Exit Function Error_Proc: If Err = 3270 Then 'Error 3270 means that the property was not found. Else 'Add additional Error Handling here End If GoTo Exit_Proc End Function HTH John R. Bartow WinHaven LLC PO Box 130 Winneconne, WI 54986 920-582-7574 john at winhaven.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MACE, Terry Sent: Tuesday, April 27, 2004 9:54 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] User Defined Properties A97 I'm trying to use a custom property to store some changing information, which works fine, but when I try to read it, it only returns the value that was present when the database was opened. Is this the way it works or can I read the changed info. I'm using the following code to read the property 'Reference': DBEngine(0)(0).Containers("Databases").Documents("UserDefined").Properties(" reference") Terry Mace -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From kaupca at chevrontexaco.com Thu Apr 29 09:33:49 2004 From: kaupca at chevrontexaco.com (Kaup, Chester A) Date: Thu, 29 Apr 2004 09:33:49 -0500 Subject: [AccessD] Query results display problem Message-ID: <193572B4E0FC1744BEDFEE63F82CEC9E0273946C@bocnte2k4.boc.chevrontexaco.net> That got it. Thanks. Chester Kaup Technical Assistant Texas Gas Team/MidContinent Business Unit CTN 8-687-7415 Outside 432-687-7414 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: Thursday, April 29, 2004 9:15 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Query results display problem Hi Chester Have you tried: Avg(CDbl([SumOfTOTOILPROD])/1000) AS OIL /gustav > I have a query that returns a 7 day average of some numbers and the 7 > day average divided by 1000. The regular 7 day average display fine > but the 7 day average divided by 7 displays no decimal places. For > example 7 day average is 1027.28571429 but the seven day average > divided by seven displays 1. I tried setting properties to fixed and 2 > decimal places and got 1.00. Why does it display this way? Thanks. SQL > if someone wants to look at it. > SELECT Avg([qry Sandhills Oil].SumOfTOTOILPROD) AS > AvgOfSumOfTOTOILPROD, > Avg(([SumOfTOTOILPROD])/1000) AS OIL > FROM [qry Sandhills Gas] INNER JOIN [qry Sandhills Oil] ON [qry > Sandhills Gas].ACTVDATE = [qry Sandhills Oil].ACTVDATE > WHERE ((([qry Sandhills Gas].ACTVDATE) Between Date()-8 And Date()-2)); -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From serbach at new.rr.com Thu Apr 29 09:52:07 2004 From: serbach at new.rr.com (Steven W. Erbach) Date: Thu, 29 Apr 2004 09:52:07 -0500 Subject: [AccessD] A2K: Using the shell() function Message-ID: <20040429095207.264583357.serbach@new.rr.com> Dear Group, I'm in the thick of writing a custom EDI purchase order processing application in Access 2000. The 850 purchase orders are downloaded from the VAN (Value Added Network) mailbox using Windows FTP commands in a DOS batch file, and the additional documents (855 PO Acknowledgment, 856 Advance Ship Notice, 810 Invoice, and 997 Functional Acknowledgment) are uploaded to the mailbox with another DOS batch file using Windows FTP commands. The process works, but I've had to insert MsgBox statements in the Access code alerting the user that he should wait until the DOS batch file has completed processing the FTP commands and is closed before continuing with the Access stuff. My question is this: do any of you lot have any techniques for 1) determining when a DOS batch file has finished (that is, the title bar of the DOS window says "Finished"); and 2) closing those windows without user intervention? I'm just about ready to tell my client that he should buy WS_FTP Pro so that we can set up a macro or whatever you do in WS_FTP to automagically download and upload and close the WS_FTP program. I'm still not sure about what to do in Access so that it knows that an external application has completed its operations. Is this a DDE thing? I've been experimenting with the FMS Total Visual Sourcebook that I bought some time ago. It has a class library and some sample code for logging into an FTP site and selecting and downloading files. I just know, however, that my client will balk at the additional delay while I figure out an Access-only method for getting and sending EDI documents. The DOS batch thing works but there are the additional clicks involved with closing the DOS window and then clicking the MsgBox OK button to continue processing. Any ideas? Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "One of the differences in the two parties is that the Republicans always have problems filling many of the offices that are political, because most competent people would rather do something other than work for the government..." - Jerry Pournelle From jeffrey.demulling at usbank.com Thu Apr 29 10:00:27 2004 From: jeffrey.demulling at usbank.com (jeffrey.demulling at usbank.com) Date: Thu, 29 Apr 2004 10:00:27 -0500 Subject: [AccessD] A2K: Using the shell() function Message-ID: Here is code that I use: Sub runftp() Dim db As Database Dim Mytitle Dim ReturnValue Dim myFTPDir As String Dim strSQL As String Dim qdf As QueryDef Dim myfilenumber As String Dim myfiledate As String Dim myexportfile As String Dim saveasname As String Dim rst_Databases As Recordset Dim rst_reports As Recordset Dim myReportName As String Dim mySaveName As String Dim myftpfilename As String Dim mylocation As String Dim myfile As String Dim mysection As String Dim mykey As String Dim myname As String Dim sSetting Dim mydatafile As String Dim mymessage As String Dim SearchPath As String Dim FindStr As String Dim NumFiles As Integer Dim NumDirs As Integer Dim FileSize As Long Dim FileNum As Integer Dim mytext As String 'Create the Batch File for FTPing SearchPath = CurrentDBDir FindStr = "ftpbm.bat" FileSize = FindFilesAPI(SearchPath, FindStr, NumFiles, NumDirs) If NumFiles <> 0 Then Kill SearchPath & FindStr End If FileNum = FreeFile Open SearchPath & "ftpbm.bat" For Output As #FileNum 'SearchPath & FindStr For Input As #1 mytext = "@Echo Off" Print #FileNum, mytext mytext = "TITLE FTP BONDMASTER FILES" Print #FileNum, mytext mytext = "Echo OFF" Print #FileNum, mytext mytext = "CLS" Print #FileNum, mytext mytext = "@ECHO FTPing BondMaster Data..." Print #FileNum, mytext mytext = "ftp -s:" & SearchPath & "bmftp.txt" Print #FileNum, mytext ' Close before reopening in another mode. Close #FileNum 'Create FTP Script File SearchPath = CurrentDBDir FindStr = "bmftp.txt" FileSize = FindFilesAPI(SearchPath, FindStr, NumFiles, NumDirs) If NumFiles <> 0 Then Kill SearchPath & FindStr End If FileNum = FreeFile Open SearchPath & "bmftp.txt" For Output As #FileNum 'SearchPath & FindStr For Input As #1 mytext = "open bmprod1.int.usbc.com" Print #FileNum, mytext mytext = "ftc_ftp" Print #FileNum, mytext mytext = "transfer" Print #FileNum, mytext Set db = DBEngine(0)(0) 'If there is a record for the Operators Report create strings for FTP here Set rst_reports = db.OpenRecordset("tblErrors") Set rst_Databases = db.OpenRecordset("tblDataBaseNames") If rst_reports.recordcount <> 0 Then rst_reports.MoveFirst Do Until rst_reports.EOF If InStr(1, rst_reports.Fields("Error"), "TAPEPBPASSWD") <> 0 Then rst_Databases.MoveFirst Do Until rst_Databases.EOF If rst_reports.Fields("DataBase") = rst_Databases.Fields("DataBaseLongName") Then myFTPDir = rst_Databases.Fields ("DataBaseFTPAddressTapeFiles") myReportName = right(rst_reports.Fields("Error"), 30) mySaveName = "BMOperators.txt" mytext = "cd " & myFTPDir Print #FileNum, mytext mytext = "get " & myReportName & " " & Me.txtSavedDataLocation & mySaveName Print #FileNum, mytext End If rst_Databases.MoveNext Loop End If rst_reports.MoveNext Loop End If 'If there is a record for the Loan Bal Info Reports create strings for FTP here Set rst_reports = db.OpenRecordset("tempreport") Set rst_Databases = db.OpenRecordset("tblDataBaseNames") If rst_reports.recordcount <> 0 Then rst_reports.MoveFirst Do Until rst_reports.EOF rst_Databases.MoveFirst Do Until rst_Databases.EOF If rst_reports.Fields("dbName") = rst_Databases.Fields ("DataBaseLongName") Then myFTPDir = rst_Databases.Fields ("DataBaseFTPAddressTapeFiles") myReportName = rst_reports.Fields("txtReport") mySaveName = "LoanBalInfo-" & rst_Databases.Fields ("DataBaseLongName") & ".txt" mytext = "cd " & myFTPDir Print #FileNum, mytext mytext = "get " & myReportName & " " & Me.txtSavedDataLocation & mySaveName Print #FileNum, mytext End If rst_Databases.MoveNext Loop rst_reports.MoveNext Loop End If mytext = "disconnect" Print #FileNum, mytext mytext = "close" Print #FileNum, mytext ' Close before reopening in another mode. Close #FileNum '***** This is the command to use when ftping so do not need message box myftpfilename = CurrentDBDir & "ftpbm.bat" Call ShellWait(myftpfilename, 1) Set rst_Databases = Nothing Set rst_reports = Nothing Set db = Nothing End Sub THIS CODE IS IN ITS OWN MODULE Option Compare Database Option Explicit '***************** Code Start ****************** 'This code was originally written by Terry Kreft. 'It is not to be altered or distributed, 'except as part of an application. 'You are free to use it in any application, 'provided the copyright notice is left unchanged. ' 'Code Courtesy of 'Terry Kreft Private Const STARTF_USESHOWWINDOW& = &H1 Private Const NORMAL_PRIORITY_CLASS = &H20& Private Const INFINITE = -1& Private Type STARTUPINFO cb As Long lpReserved As String lpDesktop As String lpTitle As String dwX As Long dwY As Long dwXSize As Long dwYSize As Long dwXCountChars As Long dwYCountChars As Long dwFillAttribute As Long dwFlags As Long wShowWindow As Integer cbReserved2 As Integer lpReserved2 As Long hStdInput As Long hStdOutput As Long hStdError As Long End Type Private Type PROCESS_INFORMATION hProcess As Long hThread As Long dwProcessID As Long dwThreadID As Long End Type Private Declare Function WaitForSingleObject Lib "kernel32" (ByVal _ hHandle As Long, ByVal dwMilliseconds As Long) As Long Private Declare Function CreateProcessA Lib "kernel32" (ByVal _ lpApplicationName As Long, ByVal lpCommandLine As String, ByVal _ lpProcessAttributes As Long, ByVal lpThreadAttributes As Long, _ ByVal bInheritHandles As Long, ByVal dwCreationFlags As Long, _ ByVal lpEnvironment As Long, ByVal lpCurrentDirectory As Long, _ lpStartupInfo As STARTUPINFO, lpProcessInformation As _ PROCESS_INFORMATION) As Long Private Declare Function CloseHandle Lib "kernel32" (ByVal _ hObject As Long) As Long Public Sub ShellWait(Pathname As String, Optional WindowStyle As Long) Dim proc As PROCESS_INFORMATION Dim start As STARTUPINFO Dim ret As Long ' Initialize the STARTUPINFO structure: With start .cb = Len(start) If Not IsMissing(WindowStyle) Then .dwFlags = STARTF_USESHOWWINDOW .wShowWindow = WindowStyle End If End With ' Start the shelled application: ret& = CreateProcessA(0&, Pathname, 0&, 0&, 1&, _ NORMAL_PRIORITY_CLASS, 0&, 0&, start, proc) ' Wait for the shelled application to finish: ret& = WaitForSingleObject(proc.hProcess, INFINITE) ret& = CloseHandle(proc.hProcess) End Sub '***************** Code End **************** "Steven W. Erbach" To: "Access Developers discussion and problem solving" Sent by: accessd-bounces at databasea cc: dvisors.com Subject: [AccessD] A2K: Using the shell() function 04/29/2004 09:52 AM Please respond to "Access Developers discussion and problem solving" Dear Group, I'm in the thick of writing a custom EDI purchase order processing application in Access 2000. The 850 purchase orders are downloaded from the VAN (Value Added Network) mailbox using Windows FTP commands in a DOS batch file, and the additional documents (855 PO Acknowledgment, 856 Advance Ship Notice, 810 Invoice, and 997 Functional Acknowledgment) are uploaded to the mailbox with another DOS batch file using Windows FTP commands. The process works, but I've had to insert MsgBox statements in the Access code alerting the user that he should wait until the DOS batch file has completed processing the FTP commands and is closed before continuing with the Access stuff. My question is this: do any of you lot have any techniques for 1) determining when a DOS batch file has finished (that is, the title bar of the DOS window says "Finished"); and 2) closing those windows without user intervention? I'm just about ready to tell my client that he should buy WS_FTP Pro so that we can set up a macro or whatever you do in WS_FTP to automagically download and upload and close the WS_FTP program. I'm still not sure about what to do in Access so that it knows that an external application has completed its operations. Is this a DDE thing? I've been experimenting with the FMS Total Visual Sourcebook that I bought some time ago. It has a class library and some sample code for logging into an FTP site and selecting and downloading files. I just know, however, that my client will balk at the additional delay while I figure out an Access-only method for getting and sending EDI documents. The DOS batch thing works but there are the additional clicks involved with closing the DOS window and then clicking the MsgBox OK button to continue processing. Any ideas? Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "One of the differences in the two parties is that the Republicans always have problems filling many of the offices that are political, because most competent people would rather do something other than work for the government..." - Jerry Pournelle -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From greggs at msn.com Thu Apr 29 10:20:15 2004 From: greggs at msn.com (Gregg) Date: Thu, 29 Apr 2004 10:20:15 -0500 Subject: [AccessD] A2K Repair In-Reply-To: <12828735359.20040429161529@cactus.dk> Message-ID: I have a database that won't repair. It is password protected and the first time I tried it, it would ask for the password, say it needs to be repaired, then say the password was invalid. Loading SP3 got me past the invalid password issue. Then the repair would go half way and stop. When I used jetcomp on it, it went half way and closed creating the new database. When I try to open the new database I get the message "Could not create... no modify design permission for table or query msysaccessobjects." I also tried to upgrade it to 2003, got the repair message , then said it couldn't. Everything I have read says it's toast. Is that True? There are no backups for at least a month. Any way to get the data back? Thanks! Gregg Steinbrenner From gustav at cactus.dk Thu Apr 29 10:24:18 2004 From: gustav at cactus.dk (Gustav Brock) Date: Thu, 29 Apr 2004 17:24:18 +0200 Subject: [AccessD] A2K: Using the shell() function In-Reply-To: <20040429095207.264583357.serbach@new.rr.com> References: <20040429095207.264583357.serbach@new.rr.com> Message-ID: <1132863725.20040429172418@cactus.dk> Hi Steven I hate to repeat myself, but having had a similar experience, I would recommend to use the 3D-FTP engine which works extremely reliable: http://www.3dftp.com and the API guide: http://www.3dftp.com/api.htm As it runs multi-threaded uploads are very fast. However, if USD 40 is too much, go and get the free wcl_ftp14 at: http://www.pacific.net/~ken/software/ Note the link to a ready-to-use Access 2000 module some nice guy has contributed. It is not as versatile as 3D-FTP (which I can offer you a code snippet for) but it does feature a visual indication which is what the users request for large batch uploads. /gustav > I'm in the thick of writing a custom EDI purchase order processing application in Access 2000. The 850 purchase orders are downloaded from the VAN (Value Added Network) mailbox using Windows FTP > commands in a DOS batch file, and the additional documents (855 PO Acknowledgment, 856 Advance Ship Notice, 810 Invoice, and 997 Functional Acknowledgment) are uploaded to the mailbox with another > DOS batch file using Windows FTP commands. > The process works, but I've had to insert MsgBox statements in the Access code alerting the user that he should wait until the DOS batch file has completed processing the FTP commands and is closed > before continuing with the Access stuff. > My question is this: do any of you lot have any techniques for 1) determining when a DOS batch file has finished (that is, the title bar of the DOS window says "Finished"); and 2) closing those > windows without user intervention? > I'm just about ready to tell my client that he should buy WS_FTP Pro so that we can set up a macro or whatever you do in WS_FTP to automagically download and upload and close the WS_FTP program. > I'm still not sure about what to do in Access so that it knows that an external application has completed its operations. Is this a DDE thing? > I've been experimenting with the FMS Total Visual Sourcebook that I bought some time ago. It has a class library and some sample code for logging into an FTP site and selecting and downloading > files. I just know, however, that my client will balk at the additional delay while I figure out an Access-only method for getting and sending EDI documents. > The DOS batch thing works but there are the additional clicks involved with closing the DOS window and then clicking the MsgBox OK button to continue processing. Any ideas? From serbach at new.rr.com Thu Apr 29 11:00:01 2004 From: serbach at new.rr.com (Steven W. Erbach) Date: Thu, 29 Apr 2004 11:00:01 -0500 Subject: [AccessD] A2K: Using the shell() function Message-ID: <20040429110001.206625495.serbach@new.rr.com> Gustav, >> I hate to repeat myself << I hope that you're referring to the world at large and not to me specifically, as I don't remember reading any reference to another FTP program. But then again I don't read every AccessD message. I'm not opposed to spending money for a decent program. I purchased WS_FTP Pro. What's different about 3D-FTP? Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 Security and Virus information: http://www.swerbach.com/security From michael.broesdorf at web.de Thu Apr 29 11:37:15 2004 From: michael.broesdorf at web.de (=?iso-8859-1?Q?Michael_Br=F6sdorf?=) Date: Thu, 29 Apr 2004 18:37:15 +0200 Subject: Solved: [AccessD] Strange problem with reports In-Reply-To: <8B98F8EA48F8BA47A2F24E0D0AF40CF407AD8231@xlivmbx12.aig.com> Message-ID: The database was in Access 2000 format and the problem occured if it was run under Access 2003 only. Converting the file to the Access 2002/2003 format solved the problem. Thanks for your suggestions! Michael -----Urspr?ngliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von Heenan, Lambert Gesendet: Dienstag, 27. April 2004 15:58 An: 'Access Developers discussion and problem solving' Betreff: RE: [AccessD] Strange problem with reports When weird stuff like that starts happening I say, back up the database and then decompile it. If that does not solve the problem then it's probably time to start a new database and import all the objects in you problem database. The report in question may be corrupt and so may not import. It will have to be rebuilt from scratch. FWIW Lambert > -----Original Message----- > From: Michael Br?sdorf [SMTP:michael.broesdorf at web.de] > Sent: Tuesday, April 27, 2004 8:33 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Strange problem with reports > > Hi all, > > I am having a strange problem with reports in an Access 2003 application: > > The app is running on a Citrix Metaframe XP server. The report is opened > in > print preview. If I change something in the page setup (e.g. paper size or > margins), an error message shows up when the report is closed or saves > (CTRL-S): > > 'You can't set the Event Proc Prefix property in print preview or after > printing has started. > Try setting this property in the OnOpen event.' > > None of my code tries to change that property. > > What could that be? > > Michael > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Apr 29 11:39:08 2004 From: gustav at cactus.dk (Gustav Brock) Date: Thu, 29 Apr 2004 18:39:08 +0200 Subject: [AccessD] A2K: Using the shell() function In-Reply-To: <20040429110001.206625495.serbach@new.rr.com> References: <20040429110001.206625495.serbach@new.rr.com> Message-ID: <10037353811.20040429183908@cactus.dk> Hi Steven >>> I hate to repeat myself << > I hope that you're referring to the world at large and not to me > specifically, as I don't remember reading any reference to another > FTP program. But then again I don't read every AccessD message. Well, that explains - I did mail a message 2004-04-22 on this when you complained the first time. Anyway ... > I'm not opposed to spending money for a decent program. I purchased > WS_FTP Pro. What's different about 3D-FTP? It features an API which allow you to automate it. There is a very simple example on their site but in practice you have to do a lot of checking (paths, files, etc.) before you have a robust routine. You can download everything for free for evaluation, so you can easily check it out. It has run in version 4 at one of our clients for several years without a single problem where they upload over thousand picture files per run for a web site. As hosting companies' ftp servers are quite capable, 3D-FTP can stress these to their limits which results in very fast upload sessions. If you like, you can get my module which, of course, is heavily customized but I'm convinced you can easily extract what you need and modify it. A note: wcl_ftp is mainly for transfer of one file per session, thus I use it for situations where only, say, a backup cab-file is to be uploaded. /gustav From John.Clark at niagaracounty.com Thu Apr 29 12:00:16 2004 From: John.Clark at niagaracounty.com (John Clark) Date: Thu, 29 Apr 2004 13:00:16 -0400 Subject: [AccessD] OT Digital Shakespeare Message-ID: Yeah, I got both these sayings from another site called "ThinkGeek.com", and they have been hanging in my office for the past couple of years. Actually, they had been written on my whiteboard--for so long that the shadow will remain forever--but I've been thinking of making a nice sign with these sayings. The SQL statement is actually my favorite, and it has become sort of a theme. I can have it hanging in plain sight, and my users don't get it...sort of like when I tell them they are experiencing an "i-D-10-t" problem, which is more effective verbally. >>> Developer at ultradnt.com 4/29/2004 9:44:12 AM >>> This is more like a Friday thread, but the 2b thing reminded me of this. Theres a lot of t-shirts and other items with these types of sayings in a catalog called "Computer Gear" (no affiliation). My fave t-shirt is: SELECT * FROM users WHERE clue=true 0 Rows Returned There's also an "RTFM" shirt, and one that says "There are 10 kinds of people in this world, those who understand binary, and those who don't". Steve -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, April 28, 2004 10:15 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Digital Shakespeare Shakespeare always gets a little lost in the translation. ;) Susan H. Surely or(2B,!2B) -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From donald.a.Mcgillivray at mail.sprint.com Thu Apr 29 12:14:21 2004 From: donald.a.Mcgillivray at mail.sprint.com (Mcgillivray, Donald [ITS]) Date: Thu, 29 Apr 2004 12:14:21 -0500 Subject: [AccessD] A2K: Using the shell() function Message-ID: <6FC1C7A6E7BD5540AB0A8436713C43BF084AD6CF@PKDWB01C.ad.sprint.com> Steve, I don't know if what I'm doing is similar to what you need to accomplish, but I've been working on a project that requires data capture via FTP. I found a nifty program called WebDrive (http://www.webdrive.com) that allows you to map FTP sites as drives. In my db, I'm using a combination of VBA file manipulation functions (Dir, FileCopy, etc.) and Scripting FSO functionality to get and read text files via FTP. You can refer to WebDrives using UNC or specific drive letters, and user names and passwords can be saved with the mappings so that they reconnect automatically upon system startup. Best $40 I've spent in the last month or so . . . Hope this helps. Don McGillivray -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steven W. Erbach Sent: Thursday, April 29, 2004 7:52 AM To: Access Developers discussion and problem solving Subject: [AccessD] A2K: Using the shell() function Dear Group, I'm in the thick of writing a custom EDI purchase order processing application in Access 2000. The 850 purchase orders are downloaded from the VAN (Value Added Network) mailbox using Windows FTP commands in a DOS batch file, and the additional documents (855 PO Acknowledgment, 856 Advance Ship Notice, 810 Invoice, and 997 Functional Acknowledgment) are uploaded to the mailbox with another DOS batch file using Windows FTP commands. The process works, but I've had to insert MsgBox statements in the Access code alerting the user that he should wait until the DOS batch file has completed processing the FTP commands and is closed before continuing with the Access stuff. My question is this: do any of you lot have any techniques for 1) determining when a DOS batch file has finished (that is, the title bar of the DOS window says "Finished"); and 2) closing those windows without user intervention? I'm just about ready to tell my client that he should buy WS_FTP Pro so that we can set up a macro or whatever you do in WS_FTP to automagically download and upload and close the WS_FTP program. I'm still not sure about what to do in Access so that it knows that an external application has completed its operations. Is this a DDE thing? I've been experimenting with the FMS Total Visual Sourcebook that I bought some time ago. It has a class library and some sample code for logging into an FTP site and selecting and downloading files. I just know, however, that my client will balk at the additional delay while I figure out an Access-only method for getting and sending EDI documents. The DOS batch thing works but there are the additional clicks involved with closing the DOS window and then clicking the MsgBox OK button to continue processing. Any ideas? Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "One of the differences in the two parties is that the Republicans always have problems filling many of the offices that are political, because most competent people would rather do something other than work for the government..." - Jerry Pournelle -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From serbach at new.rr.com Thu Apr 29 12:16:42 2004 From: serbach at new.rr.com (Steven W. Erbach) Date: Thu, 29 Apr 2004 12:16:42 -0500 Subject: [AccessD] A2K: Shell 'discoveries' Message-ID: <20040429121642.1497583085.serbach@new.rr.com> Jim, Marty, William, Jim D., Gustav, Andy, and Jeffrey, I'm embarrassed to say that I didn't check back with this thread until today. When I wrote my message I didn't expect any responses since it was pretty much a report, not a question. Thank you for your input on this. Since the application currently requires multiple clicks of the mouse to download EDI documents and upload 997 acknowledgments, I think my customer will appreciate anything that can reduce the chance for "mousal tunnel". Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "Let every nation know, whether it wishes us well or ill, that we shall pay any price, bear any burden, meet any hardship, support any friend, oppose any foe, in order to assure the survival and the success of liberty." - John F. Kennedy, 1961 From serbach at new.rr.com Thu Apr 29 12:17:07 2004 From: serbach at new.rr.com (Steven W. Erbach) Date: Thu, 29 Apr 2004 12:17:07 -0500 Subject: [AccessD] A2K: Using the shell() function Message-ID: <20040429121707.1417978362.serbach@new.rr.com> Gustav, >> Well, that explains - I did mail a message 2004-04-22 on this when you complained the first time. << You know, when I wrote that I didn't really think that anyone would comment since I was just "complaining", as you said. I just went back to look and voila! All sorts of responses. I'm sorry. I wasn't paying attention. Good grief! There was all kinds of good stuff in those replies. >> If you like, you can get my module which, of course, is heavily customized but I'm convinced you can easily extract what you need and modify it. << Of course I would like that. What do I need to do? Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "If you can't say anything nice, run for President." - Argus Hamilton From slee at asu.edu Thu Apr 29 12:20:59 2004 From: slee at asu.edu (S Lee) Date: Thu, 29 Apr 2004 10:20:59 -0700 Subject: [AccessD] A2K: Using the shell() function Message-ID: I would like the module also, please. Thanks slee at asu.edu >> If you like, you can get my module which, of course, is heavily customized but I'm convinced you can easily extract what you need and modify it. << Of course I would like that. What do I need to do? Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "If you can't say anything nice, run for President." - Argus Hamilton -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at bellsouth.net Thu Apr 29 12:23:59 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Thu, 29 Apr 2004 13:23:59 -0400 Subject: [AccessD] A2K: Using the shell() function References: <20040429110001.206625495.serbach@new.rr.com> Message-ID: <003b01c42e0e$c21125a0$6101a8c0@dejpolsys> ...you need to go back and read the archives Steve :( William Hindman "The world's becoming a museum of socialist failures." John Dos Passos ----- Original Message ----- From: "Steven W. Erbach" To: "Access Developers discussion and problem solving" Sent: Thursday, April 29, 2004 12:00 PM Subject: Re: [AccessD] A2K: Using the shell() function > Gustav, > > >> I hate to repeat myself << > > I hope that you're referring to the world at large and not to me specifically, as I don't remember reading any reference to another FTP program. But then again I don't read every AccessD message. > > I'm not opposed to spending money for a decent program. I purchased WS_FTP Pro. What's different about 3D-FTP? > > Regards, > > Steve Erbach > Scientific Marketing > Neenah, WI > 920-969-0504 > > Security and Virus information: > http://www.swerbach.com/security > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From serbach at new.rr.com Thu Apr 29 12:37:44 2004 From: serbach at new.rr.com (Steven W. Erbach) Date: Thu, 29 Apr 2004 12:37:44 -0500 Subject: [AccessD] A2K: Using the shell() function Message-ID: <20040429123744.107487292.serbach@new.rr.com> William, >> ...you need to go back and read the archives Steve :( << You're right, of course. I've been working on this thing for a while and posting that message last Thursday was more a "here's what I found/did, for what it's worth" kind of message. I didn't come back to AccessD until today when I was looking for additional information. Last week you wrote that you had a sample mdb "that's worked round the clock for years now." Any chance I might download it or get you to e-mail it to me? Sincerely, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 http://www.swerbach.com/security From serbach at new.rr.com Thu Apr 29 12:40:33 2004 From: serbach at new.rr.com (Steven W. Erbach) Date: Thu, 29 Apr 2004 12:40:33 -0500 Subject: [AccessD] A2K: Using the shell() function Message-ID: <20040429124033.736785068.serbach@new.rr.com> Don, >> You can refer to WebDrives using UNC or specific drive letters, and user names and passwords can be saved with the mappings so that they reconnect automatically upon system startup. << That made me think of another long-standing problem I've been wrestling with: Access replication. Internet/Indirect replication requires drive letters...maybe this product can help me kill that second bird, too! Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 RUSH LIMBAUGH: After Pearl Harbor, we didn't do the Pearl Harbor committee investigation until after the war was over. KAREN HUGHES: And no one suggested that the president should apologize for the Japanese attack on our country. From lists at theopg.com Thu Apr 29 12:54:20 2004 From: lists at theopg.com (MarkH) Date: Thu, 29 Apr 2004 18:54:20 +0100 Subject: [AccessD] AXP and copying records in table view shuts Access In-Reply-To: <945722037.20040429095155@cactus.dk> Message-ID: <000201c42e12$ffed5750$8f0d6bd5@netboxxp> Hello All I am using Access XP on Windows XP on several different machines. Every now and then, when in a table and copying records (either from the menu or by using CTRL+C) Access just shuts down, sometimes with an unhandled error, sometimes it just vanishes. The problem is not limited to a particular mdb or computer. I'm not sure yet (this may be a coincidence) but it seems to happen on tables with a few yes/no columns... Also, maybe another coincidence) it doesn't seem to happen when I view the records through a query. Anyone come across this or have any idea what the solution is? Cheers Mark From michael.broesdorf at web.de Thu Apr 29 12:51:35 2004 From: michael.broesdorf at web.de (=?us-ascii?Q?Michael_Brosdorf?=) Date: Thu, 29 Apr 2004 19:51:35 +0200 Subject: AW: [AccessD] OT Digital Shakespeare In-Reply-To: Message-ID: I don't get it: what is an 'i-D-10-t' problem?? Michael -----Ursprungliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von John Clark Gesendet: Donnerstag, 29. April 2004 19:00 An: accessd at databaseadvisors.com Betreff: RE: [AccessD] OT Digital Shakespeare Yeah, I got both these sayings from another site called "ThinkGeek.com", and they have been hanging in my office for the past couple of years. Actually, they had been written on my whiteboard--for so long that the shadow will remain forever--but I've been thinking of making a nice sign with these sayings. The SQL statement is actually my favorite, and it has become sort of a theme. I can have it hanging in plain sight, and my users don't get it...sort of like when I tell them they are experiencing an "i-D-10-t" problem, which is more effective verbally. >>> Developer at ultradnt.com 4/29/2004 9:44:12 AM >>> This is more like a Friday thread, but the 2b thing reminded me of this. Theres a lot of t-shirts and other items with these types of sayings in a catalog called "Computer Gear" (no affiliation). My fave t-shirt is: SELECT * FROM users WHERE clue=true 0 Rows Returned There's also an "RTFM" shirt, and one that says "There are 10 kinds of people in this world, those who understand binary, and those who don't". Steve -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, April 28, 2004 10:15 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Digital Shakespeare Shakespeare always gets a little lost in the translation. ;) Susan H. Surely or(2B,!2B) -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Thu Apr 29 12:59:48 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Thu, 29 Apr 2004 12:59:48 -0500 Subject: [AccessD] TransferText working sporadically. Message-ID: <2F8793082E00D4119A1700B0D0216BF802227B38@main2.marlow.com> Our Payroll guy has an Access .mdb which imports data from our Hours program (written in DataPoint), into Abra, our Payroll/HR package. A few weeks ago, that database stopped working, and it is failing on a line of code that is DoCmd.TransferText. It says it is unable to write to the database. It works from my machine (Windows 2000, running Access 97), but not the payroll guy's machine, (NT 4.0 workstation, access 97). Both have the same service packs, etc. Any thoughts? Drew From wdhindman at bellsouth.net Thu Apr 29 13:05:32 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Thu, 29 Apr 2004 14:05:32 -0400 Subject: [AccessD] OT Digital Shakespeare References: Message-ID: <004201c42e14$909194a0$6101a8c0@dejpolsys> ...whooossssssshhhhhhhhh!!!! William Hindman "The world's becoming a museum of socialist failures." John Dos Passos ----- Original Message ----- From: "Michael Brosdorf" To: "Access Developers discussion and problem solving" Sent: Thursday, April 29, 2004 1:51 PM Subject: AW: [AccessD] OT Digital Shakespeare > I don't get it: what is an 'i-D-10-t' problem?? > > Michael > > -----Ursprungliche Nachricht----- > Von: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von John Clark > Gesendet: Donnerstag, 29. April 2004 19:00 > An: accessd at databaseadvisors.com > Betreff: RE: [AccessD] OT Digital Shakespeare > > > Yeah, I got both these sayings from another site called "ThinkGeek.com", > and they have been hanging in my office for the past couple of years. > Actually, they had been written on my whiteboard--for so long that the > shadow will remain forever--but I've been thinking of making a nice sign > with these sayings. The SQL statement is actually my favorite, and it > has become sort of a theme. I can have it hanging in plain sight, and my > users don't get it...sort of like when I tell them they are experiencing > an "i-D-10-t" problem, which is more effective verbally. > > >>> Developer at ultradnt.com 4/29/2004 9:44:12 AM >>> > This is more like a Friday thread, but the 2b thing reminded me of > this. > Theres a lot of t-shirts and other items with these types of sayings > in > a catalog called "Computer Gear" (no affiliation). > My fave t-shirt is: > > SELECT * FROM users WHERE clue=true > 0 Rows Returned > > > There's also an "RTFM" shirt, and one that says "There are 10 kinds of > people in this world, those who understand binary, and those who > don't". > > > Steve > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan > Harkins > Sent: Wednesday, April 28, 2004 10:15 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Digital Shakespeare > > > Shakespeare always gets a little lost in the translation. ;) > > Susan H. > > Surely > > or(2B,!2B) > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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.Clark at niagaracounty.com Thu Apr 29 13:06:48 2004 From: John.Clark at niagaracounty.com (John Clark) Date: Thu, 29 Apr 2004 14:06:48 -0400 Subject: AW: [AccessD] OT Digital Shakespeare Message-ID: I wrote it the way that you say it, but if you put it together...iD10t...or...idiot John W Clark >>> michael.broesdorf at web.de 4/29/2004 1:51:35 PM >>> I don't get it: what is an 'i-D-10-t' problem?? Michael -----Ursprungliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von John Clark Gesendet: Donnerstag, 29. April 2004 19:00 An: accessd at databaseadvisors.com Betreff: RE: [AccessD] OT Digital Shakespeare Yeah, I got both these sayings from another site called "ThinkGeek.com", and they have been hanging in my office for the past couple of years. Actually, they had been written on my whiteboard--for so long that the shadow will remain forever--but I've been thinking of making a nice sign with these sayings. The SQL statement is actually my favorite, and it has become sort of a theme. I can have it hanging in plain sight, and my users don't get it...sort of like when I tell them they are experiencing an "i-D-10-t" problem, which is more effective verbally. >>> Developer at ultradnt.com 4/29/2004 9:44:12 AM >>> This is more like a Friday thread, but the 2b thing reminded me of this. Theres a lot of t-shirts and other items with these types of sayings in a catalog called "Computer Gear" (no affiliation). My fave t-shirt is: SELECT * FROM users WHERE clue=true 0 Rows Returned There's also an "RTFM" shirt, and one that says "There are 10 kinds of people in this world, those who understand binary, and those who don't". Steve -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, April 28, 2004 10:15 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Digital Shakespeare Shakespeare always gets a little lost in the translation. ;) Susan H. Surely or(2B,!2B) -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jeffrey.demulling at usbank.com Thu Apr 29 13:12:22 2004 From: jeffrey.demulling at usbank.com (jeffrey.demulling at usbank.com) Date: Thu, 29 Apr 2004 13:12:22 -0500 Subject: [AccessD] TransferText working sporadically. Message-ID: Do you both have the same rights to the target directory? DWUTKA at marlow.com Sent by: To: AccessD at databaseadvisors.com accessd-bounces at databasea cc: dvisors.com Subject: [AccessD] TransferText working sporadically. 04/29/2004 12:59 PM Please respond to "Access Developers discussion and problem solving" Our Payroll guy has an Access .mdb which imports data from our Hours program (written in DataPoint), into Abra, our Payroll/HR package. A few weeks ago, that database stopped working, and it is failing on a line of code that is DoCmd.TransferText. It says it is unable to write to the database. It works from my machine (Windows 2000, running Access 97), but not the payroll guy's machine, (NT 4.0 workstation, access 97). Both have the same service packs, etc. Any thoughts? Drew -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Thu Apr 29 14:36:55 2004 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Thu, 29 Apr 2004 15:36:55 -0400 Subject: [AccessD] A2K: Using the shell() function Message-ID: <8B98F8EA48F8BA47A2F24E0D0AF40CF407AD8255@xlivmbx12.aig.com> I deal with this probelm simply by having the batch file create an emptry folder. Then it goes on and does whatever else it need to do. Meanwhile the VBA code looks for the folder and keeps looping while it sees the folder. At the end of the batch file I delete the sentinel folder and that then allows the VBA code to proceed. The DOS Box closes automatically at the termination of the batch file. Here's the code I use as an example... Sub CreateFileInventory(ByVal sRootFolder As String) ' This sub creates and runs a batch file which builds a list of all the files in all the subfolders ' of the root folder defined in sRootFolder. This is stored in a text file for further processing Const BATCHFILE = "C:\LSFINV.BAT" Dim strComLine As String Dim strCommand As String Dim fHandle As Long DoCmd.Hourglass True fHandle = FreeFile Open BATCHFILE For Output As #fHandle strComLine = "DIR " & quote(sRootFolder & "*.*") & " /s /b > C:\LSDOC.LST" Print #fHandle, "c:" Print #fHandle, "CD \" Print #fHandle, "MD LSFinv" Print #fHandle, strComLine Print #fHandle, "rd LSFinv" Close #fHandle strCommand = Environ("COMSPEC") & " /c " & BATCHFILE Shell strCommand, vbMinimizedNoFocus sSleep 1000 ' pause long enough to have the flag folder created While FileExists("C:\LSFinv") DoEvents Wend DoCmd.Hourglass False Kill BATCHFILE End Sub ... and here are the three small helper routines that it uses... ''''''''''''''''''''''''''''''''''''''''''' Function Quote(aString) As String Quote = """" & aString & """" End Function ''''''''''''''''''''''''''''''''''''''''''' Private Declare Sub sapiSleep Lib "Kernel32" _ Alias "Sleep" _ (ByVal dwMilliseconds As Long) Sub sSleep(lngMilliSec As Long) If lngMilliSec > 0 Then Call sapiSleep(lngMilliSec) End If End Sub ''''''''''''''''''''''''''''''''''''''''''' Function FileExists(strFile As String) As Boolean ' Comments : Determines if the file exists ' Works for hidden files and folders ' Parameters: strFile - file to check ' Returns : True if the file exists, otherwise false Dim intAttr As Integer On Error Resume Next intAttr = GetAttr(strFile) FileExists = (Err.Number = 0) End Function HTH Lambert > -----Original Message----- > From: Steven W. Erbach [SMTP:serbach at new.rr.com ] > Sent: Thursday, April 29, 2004 10:52 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] A2K: Using the shell() function > > Dear Group, > > I'm in the thick of writing a custom EDI purchase order processing > application in Access 2000. The 850 purchase orders are downloaded from > the VAN (Value Added Network) mailbox using Windows FTP commands in a DOS > batch file, and the additional documents (855 PO Acknowledgment, 856 > Advance Ship Notice, 810 Invoice, and 997 Functional Acknowledgment) are > uploaded to the mailbox with another DOS batch file using Windows FTP > commands. > > The process works, but I've had to insert MsgBox statements in the Access > code alerting the user that he should wait until the DOS batch file has > completed processing the FTP commands and is closed before continuing with > the Access stuff. > > My question is this: do any of you lot have any techniques for 1) > determining when a DOS batch file has finished (that is, the title bar of > the DOS window says "Finished"); and 2) closing those windows without user > intervention? > > I'm just about ready to tell my client that he should buy WS_FTP Pro so > that we can set up a macro or whatever you do in WS_FTP to automagically > download and upload and close the WS_FTP program. I'm still not sure about > what to do in Access so that it knows that an external application has > completed its operations. Is this a DDE thing? > > I've been experimenting with the FMS Total Visual Sourcebook that I bought > some time ago. It has a class library and some sample code for logging > into an FTP site and selecting and downloading files. I just know, > however, that my client will balk at the additional delay while I figure > out an Access-only method for getting and sending EDI documents. > > The DOS batch thing works but there are the additional clicks involved > with closing the DOS window and then clicking the MsgBox OK button to > continue processing. Any ideas? > > Regards, > > Steve Erbach > Scientific Marketing > Neenah, WI > 920-969-0504 > > "One of the differences in the two parties is that the Republicans always > have problems filling many of the offices that are political, because most > competent people would rather do something other than work for the > government..." - Jerry Pournelle > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From mike.tope at dsl.pipex.com Thu Apr 29 16:05:36 2004 From: mike.tope at dsl.pipex.com (Mike Tope) Date: Thu, 29 Apr 2004 22:05:36 +0100 Subject: [AccessD] TransferText working sporadically. References: <2F8793082E00D4119A1700B0D0216BF802227B38@main2.marlow.com> Message-ID: <001201c42e2d$baab21c0$0207a8c0@TopEnergy> Drew Is the message really "Object is read-only" ? File extension has to be .txt. You may have set your machine years ago to get around it. There were ways. Mike Tope ----- Original Message ----- From: To: Sent: 29 April 2004 18:59 Subject: [AccessD] TransferText working sporadically. > Our Payroll guy has an Access .mdb which imports data from our Hours program > (written in DataPoint), into Abra, our Payroll/HR package. A few weeks ago, > that database stopped working, and it is failing on a line of code that is > DoCmd.TransferText. It says it is unable to write to the database. > > It works from my machine (Windows 2000, running Access 97), but not the > payroll guy's machine, (NT 4.0 workstation, access 97). > > Both have the same service packs, etc. > > Any thoughts? > > Drew From Lambert.Heenan at AIG.com Thu Apr 29 16:27:36 2004 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Thu, 29 Apr 2004 17:27:36 -0400 Subject: [AccessD] A2K Repair Message-ID: <8B98F8EA48F8BA47A2F24E0D0AF40CF407AD8264@xlivmbx12.aig.com> Not much hope, but try importing all the objects in the database into a new, empty database. Lambert > -----Original Message----- > From: Gregg [SMTP:greggs at msn.com] > Sent: Thursday, April 29, 2004 11:20 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] A2K Repair > > I have a database that won't repair. It is password protected and the > first > time I tried it, it would ask for the password, say it needs to be > repaired, > then say the password was invalid. Loading SP3 got me past the invalid > password issue. Then the repair would go half way and stop. When I used > jetcomp on it, it went half way and closed creating the new database. > When > I try to open the new database I get the message "Could not create... no > modify design permission for table or query msysaccessobjects." I also > tried to upgrade it to 2003, got the repair message , then said it > couldn't. > > Everything I have read says it's toast. Is that True? There are no > backups > for at least a month. Any way to get the data back? > > Thanks! > > Gregg Steinbrenner > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Thu Apr 29 16:56:01 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Thu, 29 Apr 2004 16:56:01 -0500 Subject: [AccessD] TransferText working sporadically. Message-ID: <2F8793082E00D4119A1700B0D0216BF802227B40@main2.marlow.com> Oh ya, forgot to mention. From my machine it worked as me logged in, from his machine, it gave the same error no matter who was logged in. (And I'm a domain admin). Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of jeffrey.demulling at usbank.com Sent: Thursday, April 29, 2004 1:12 PM To: Access Developers discussion and problem solving Cc: AccessD at databaseadvisors.com; accessd-bounces at databaseadvisors.com Subject: Re: [AccessD] TransferText working sporadically. Do you both have the same rights to the target directory? DWUTKA at marlow.com Sent by: To: AccessD at databaseadvisors.com accessd-bounces at databasea cc: dvisors.com Subject: [AccessD] TransferText working sporadically. 04/29/2004 12:59 PM Please respond to "Access Developers discussion and problem solving" Our Payroll guy has an Access .mdb which imports data from our Hours program (written in DataPoint), into Abra, our Payroll/HR package. A few weeks ago, that database stopped working, and it is failing on a line of code that is DoCmd.TransferText. It says it is unable to write to the database. It works from my machine (Windows 2000, running Access 97), but not the payroll guy's machine, (NT 4.0 workstation, access 97). Both have the same service packs, etc. Any thoughts? Drew -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Thu Apr 29 16:59:46 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Thu, 29 Apr 2004 16:59:46 -0500 Subject: [AccessD] TransferText working sporadically. Message-ID: <2F8793082E00D4119A1700B0D0216BF802227B41@main2.marlow.com> Actually, the extension is .dat. And my machine is a brand new installation (I had to rebuild it about a month ago. That is a VERY good point though. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mike Tope Sent: Thursday, April 29, 2004 4:06 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] TransferText working sporadically. Drew Is the message really "Object is read-only" ? File extension has to be .txt. You may have set your machine years ago to get around it. There were ways. Mike Tope ----- Original Message ----- From: To: Sent: 29 April 2004 18:59 Subject: [AccessD] TransferText working sporadically. > Our Payroll guy has an Access .mdb which imports data from our Hours program > (written in DataPoint), into Abra, our Payroll/HR package. A few weeks ago, > that database stopped working, and it is failing on a line of code that is > DoCmd.TransferText. It says it is unable to write to the database. > > It works from my machine (Windows 2000, running Access 97), but not the > payroll guy's machine, (NT 4.0 workstation, access 97). > > Both have the same service packs, etc. > > Any thoughts? > > Drew -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From demulling at centurytel.net Thu Apr 29 17:26:00 2004 From: demulling at centurytel.net (Demulling Family) Date: Thu, 29 Apr 2004 17:26:00 -0500 Subject: [AccessD] TransferText working sporadically. In-Reply-To: <2F8793082E00D4119A1700B0D0216BF802227B40@main2.marlow.com> References: <2F8793082E00D4119A1700B0D0216BF802227B40@main2.marlow.com> Message-ID: <409180F8.6090504@centurytel.net> DWUTKA at marlow.com wrote: >Oh ya, forgot to mention. From my machine it worked as me logged in, from >his machine, it gave the same error no matter who was logged in. (And I'm a >domain admin). > >Well, it was worth asking, had a problem similar about a month ago and it was the user's rights to the network, not the case here. Have you tried reinstalling Access on the machine? Might work... > > > > > > From stuart at lexacorp.com.pg Thu Apr 29 17:29:22 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 30 Apr 2004 08:29:22 +1000 Subject: AW: [AccessD] OT Digital Shakespeare In-Reply-To: References: Message-ID: <40920E62.25988.351338@localhost> On 29 Apr 2004 at 19:51, Michael Brosdorf wrote: > I don't get it: what is an 'i-D-10-t' problem?? > Similar to a PEBCAK fault. ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... Problem Exists Between Chair and Keyboard :-) -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From jwelz at hotmail.com Thu Apr 29 18:00:25 2004 From: jwelz at hotmail.com (Jürgen Welz) Date: Thu, 29 Apr 2004 17:00:25 -0600 Subject: [AccessD] User Defined Properties A97 Message-ID: Just guessing but I suspect that the problem is that DBEngine(0)(0) is only going to see the collections as at the time the database was opened or the last time CurrentDb was called. If you replace DBEngine(0)(0) with CurrentDb, I suspect you will see the current property value. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MACE, Terry >Sent: Tuesday, April 27, 2004 9:54 PM >To: 'Access Developers discussion and problem solving' >Subject: [AccessD] User Defined Properties A97 > > >I'm trying to use a custom property to store some changing information, >which works fine, but when I try to read it, it only returns the value that >was present when the database was opened. > >Is this the way it works or can I read the changed info. I'm using the >following code to read the property 'Reference': > >DBEngine(0)(0).Containers("Databases").Documents("UserDefined").Properties(" >reference") > >Terry Mace >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN Premium http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines From lists at theopg.com Thu Apr 22 12:23:57 2004 From: lists at theopg.com (MarkH) Date: Thu, 22 Apr 2004 18:23:57 +0100 Subject: [AccessD] Access XP Runtime and Autocad In-Reply-To: <8614878414.20040413132824@cactus.dk> Message-ID: <000201c4288e$a5634530$0f0b6bd5@netboxxp> Hello All... We are using Access XP runtime on Windos XP and today a couple of machines completely failed to load any access database. In both cases Autocad 2002 had been installed this morning. You could get into simple databases, but as soon as you load a form that contains a list or tree control (mscomctl.ocx) access falls over offering to restart and send a message to Microsoft... Nothing usefull really. Anyone out there know what could be causing this problem? Cheers Mark From wdhindman at bellsouth.net Thu Apr 29 20:13:44 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Thu, 29 Apr 2004 21:13:44 -0400 Subject: [AccessD] Access XP Runtime and Autocad References: <000201c4288e$a5634530$0f0b6bd5@netboxxp> Message-ID: <000801c42e50$61dcacd0$6101a8c0@dejpolsys> ...I'd try reapplying SP3 for the AXP runtime first ...if AutoCad replaced it, the SP3 contains the current version ...that's assuming of course that AutoCad didn't make the crc and version id exactly the same as the MS version ...I remember the chaos AOL caused when they did something similar with a number of files in their version 5. ...if the SP3 doesn't fix the problem I'd drop to DOS and delete the mscomctl.ocx and then try SP3 again. ...if that doesn't work, its time for System Restore ...hth :) William Hindman "The world's becoming a museum of socialist failures." John Dos Passos ----- Original Message ----- From: "MarkH" To: "'Access Developers discussion and problem solving'" Sent: Thursday, April 22, 2004 1:23 PM Subject: [AccessD] Access XP Runtime and Autocad > Hello All... > > We are using Access XP runtime on Windos XP and today a couple of > machines completely failed to load any access database. In both cases > Autocad 2002 had been installed this morning. You could get into simple > databases, but as soon as you load a form that contains a list or tree > control (mscomctl.ocx) access falls over offering to restart and send a > message to Microsoft... Nothing usefull really. > > Anyone out there know what could be causing this problem? > > Cheers > > Mark > > -- > _______________________________________________ > 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 Apr 29 22:54:52 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 30 Apr 2004 13:54:52 +1000 Subject: [AccessD] A2K: Rich Text Stuff I suppose Message-ID: <011401c42e66$e43ab0d0$48619a89@DDICK> Hello all Can anyone point me to some good examples of using rich text boxes? Then have the result viewable on a report? What I want is for the user to create a standard welcome letter for any new customers added to the dB EG I Want the user to be able to do a basic kind of merge, something like... Hi <> Welcome to the mailing list for <>. We here at all MsDatabasesR4U are happy to have you aboard. And have say...the word "MsDatabasesR4U" in bold for example I have code for getting data into the tags eg <> and <> But what I want is the ability for my data entry people to create such text in some sort of RTBox bound to a memo field somewhere in a table. Then produce a report bound to the same memo field and have the same formatting eg "MsDatabasesR4U" in bold - on this report with my data filling in the tags. Sorry for the long post Any suggestions or pointers? Many thanks in advance Darren From greggs at msn.com Thu Apr 29 23:45:43 2004 From: greggs at msn.com (Gregg) Date: Thu, 29 Apr 2004 23:45:43 -0500 Subject: [AccessD] A2K Repair In-Reply-To: <8B98F8EA48F8BA47A2F24E0D0AF40CF407AD8264@xlivmbx12.aig.com> Message-ID: Tried that... get the "Not a database message" But Thanks! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Heenan, Lambert Sent: Thursday, April 29, 2004 4:28 PM To: 'Access Developers discussion and problem solving' Cc: 'greggs at msn.com' Subject: RE: [AccessD] A2K Repair Not much hope, but try importing all the objects in the database into a new, empty database. Lambert > -----Original Message----- > From: Gregg [SMTP:greggs at msn.com] > Sent: Thursday, April 29, 2004 11:20 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] A2K Repair > > I have a database that won't repair. It is password protected and the > first > time I tried it, it would ask for the password, say it needs to be > repaired, > then say the password was invalid. Loading SP3 got me past the invalid > password issue. Then the repair would go half way and stop. When I used > jetcomp on it, it went half way and closed creating the new database. > When > I try to open the new database I get the message "Could not create... no > modify design permission for table or query msysaccessobjects." I also > tried to upgrade it to 2003, got the repair message , then said it > couldn't. > > Everything I have read says it's toast. Is that True? There are no > backups > for at least a month. Any way to get the data back? > > Thanks! > > Gregg Steinbrenner > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From michael.broesdorf at web.de Fri Apr 30 01:57:25 2004 From: michael.broesdorf at web.de (=?us-ascii?Q?Michael_Brosdorf?=) Date: Fri, 30 Apr 2004 08:57:25 +0200 Subject: AW: AW: [AccessD] OT Digital Shakespeare In-Reply-To: Message-ID: I guess I should'nt have asked... :-)) Michael -----Ursprungliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von John Clark Gesendet: Donnerstag, 29. April 2004 20:07 An: accessd at databaseadvisors.com Betreff: Re: AW: [AccessD] OT Digital Shakespeare I wrote it the way that you say it, but if you put it together...iD10t...or...idiot John W Clark >>> michael.broesdorf at web.de 4/29/2004 1:51:35 PM >>> I don't get it: what is an 'i-D-10-t' problem?? Michael -----Ursprungliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von John Clark Gesendet: Donnerstag, 29. April 2004 19:00 An: accessd at databaseadvisors.com Betreff: RE: [AccessD] OT Digital Shakespeare Yeah, I got both these sayings from another site called "ThinkGeek.com", and they have been hanging in my office for the past couple of years. Actually, they had been written on my whiteboard--for so long that the shadow will remain forever--but I've been thinking of making a nice sign with these sayings. The SQL statement is actually my favorite, and it has become sort of a theme. I can have it hanging in plain sight, and my users don't get it...sort of like when I tell them they are experiencing an "i-D-10-t" problem, which is more effective verbally. >>> Developer at ultradnt.com 4/29/2004 9:44:12 AM >>> This is more like a Friday thread, but the 2b thing reminded me of this. Theres a lot of t-shirts and other items with these types of sayings in a catalog called "Computer Gear" (no affiliation). My fave t-shirt is: SELECT * FROM users WHERE clue=true 0 Rows Returned There's also an "RTFM" shirt, and one that says "There are 10 kinds of people in this world, those who understand binary, and those who don't". Steve -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, April 28, 2004 10:15 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Digital Shakespeare Shakespeare always gets a little lost in the translation. ;) Susan H. Surely or(2B,!2B) -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Apr 30 03:10:44 2004 From: lists at theopg.com (MarkH) Date: Fri, 30 Apr 2004 09:10:44 +0100 Subject: [AccessD] Access XP Runtime and Autocad In-Reply-To: <000801c42e50$61dcacd0$6101a8c0@dejpolsys> Message-ID: <000001c42e8a$a3396a30$8f0d6bd5@netboxxp> Thanks William Will have a go on Tuesday... Mark -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: 30 April 2004 02:14 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access XP Runtime and Autocad ...I'd try reapplying SP3 for the AXP runtime first ...if AutoCad replaced it, the SP3 contains the current version ...that's assuming of course that AutoCad didn't make the crc and version id exactly the same as the MS version ...I remember the chaos AOL caused when they did something similar with a number of files in their version 5. ...if the SP3 doesn't fix the problem I'd drop to DOS and delete the mscomctl.ocx and then try SP3 again. ...if that doesn't work, its time for System Restore ...hth :) William Hindman "The world's becoming a museum of socialist failures." John Dos Passos ----- Original Message ----- From: "MarkH" To: "'Access Developers discussion and problem solving'" Sent: Thursday, April 22, 2004 1:23 PM Subject: [AccessD] Access XP Runtime and Autocad > Hello All... > > We are using Access XP runtime on Windos XP and today a couple of > machines completely failed to load any access database. In both cases > Autocad 2002 had been installed this morning. You could get into > simple databases, but as soon as you load a form that contains a list > or tree control (mscomctl.ocx) access falls over offering to restart > and send a message to Microsoft... Nothing usefull really. > > Anyone out there know what could be causing this problem? > > Cheers > > 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 viner at eunet.yu Fri Apr 30 04:36:18 2004 From: viner at eunet.yu (Ervin Brindza) Date: Fri, 30 Apr 2004 11:36:18 +0200 Subject: [AccessD] OT: Quick view of ico files Message-ID: <000c01c42e96$d41c19c0$0100a8c0@razvoj> I just downloaded from http://www.mvp-access.com/rubenvigon/recursos.htm over 11Mb of .ico and .avi files. Are there any way to browse them quickly? TIA, Ervin From wdhindman at bellsouth.net Fri Apr 30 05:49:23 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Fri, 30 Apr 2004 06:49:23 -0400 Subject: [AccessD] OT: Quick view of ico files References: <000c01c42e96$d41c19c0$0100a8c0@razvoj> Message-ID: <000801c42ea0$ccdb36a0$6101a8c0@dejpolsys> ...in XP, you can just open them in explorer ...it will display the avis in media player and use the MS Picture viewer to show the icons although, if your explorer is configured properly, each icon will be shown in the pane next to its file. ...don't much care for the avis but there are a number of well done and useful icons in there ...thanks for the link :) ...there is some code available for browsing/viewing the bitmapped files from within Access but I've not used it myself ...if that's what you were looking for I can e you a sample mdb. William Hindman "The world's becoming a museum of socialist failures." John Dos Passos ----- Original Message ----- From: "Ervin Brindza" To: Sent: Friday, April 30, 2004 5:36 AM Subject: [AccessD] OT: Quick view of ico files I just downloaded from http://www.mvp-access.com/rubenvigon/recursos.htm over 11Mb of .ico and .avi files. Are there any way to browse them quickly? TIA, Ervin -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From serbach at new.rr.com Fri Apr 30 06:15:18 2004 From: serbach at new.rr.com (Steven W. Erbach) Date: Fri, 30 Apr 2004 06:15:18 -0500 Subject: [AccessD] A2K Repair Message-ID: <20040430061518.1467466482.serbach@new.rr.com> Gregg, The only other thing to try is to open it with the /decompile switch on the command line. Sorry. Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 Message created with Bloomba Disclaimer: No tree was killed in the transmission of this message. However, several coulombs of electrons were temporarily inconvenienced. From serbach at new.rr.com Fri Apr 30 06:17:22 2004 From: serbach at new.rr.com (Steven W. Erbach) Date: Fri, 30 Apr 2004 06:17:22 -0500 Subject: AW: [AccessD] OT Digital Shakespeare Message-ID: <20040430061722.2016038329.serbach@new.rr.com> Stuart, Or the NLIOC error: Nut Loose In Operator's Chair. Regards, Steve Erbach Scientific Marketing Neenah, WI "You must be an intellectual. No normal person would say a thing like that." - George Orwell From viner at eunet.yu Fri Apr 30 06:35:15 2004 From: viner at eunet.yu (Ervin Brindza) Date: Fri, 30 Apr 2004 13:35:15 +0200 Subject: [AccessD] OT: Quick view of ico files References: <000c01c42e96$d41c19c0$0100a8c0@razvoj> <000801c42ea0$ccdb36a0$6101a8c0@dejpolsys> Message-ID: <003501c42ea7$5aba6e40$0100a8c0@razvoj> > ...there is some code available for browsing/viewing the bitmapped files > from within Access but I've not used it myself ...if that's what you were > looking for I can e you a sample mdb. > Yes, yes! I want to take as quick look as I can, because there are more than 12k files, and in Win98/Windows Explorer it is hard to watch all those little file icons... Send me the sample, please! TIA, Ervin From Susan.Klos at fldoe.org Fri Apr 30 06:38:12 2004 From: Susan.Klos at fldoe.org (Klos, Susan) Date: Fri, 30 Apr 2004 07:38:12 -0400 Subject: [AccessD] How to create a 2 year multimonth report Message-ID: <01B619CB8F6C8C478EDAC39191AEC51EE73612@DOESEFPEML02.EUS.FLDOE.INT> I have to create a summary report which has to include this year's data and last year's data. It is to look something like this: Item Jan 04 Jan 03 Feb 04 Feb 03 Mar 04 Mar 03 Meals 200 198 210 209 185 190 Rooms 30 28 34 34 29 31 I can do the summary for 04 and 03 but I can't figure out how to get the months together like above. Susan Klos Senior Database Analyst Evaluation and Reporting Florida Department of Education 850-245-0708 sc 205-0708 From bchacc at san.rr.com Fri Apr 30 08:45:53 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Fri, 30 Apr 2004 06:45:53 -0700 Subject: [AccessD] Chinese Language Message-ID: <005201c42eb9$750c3be0$6601a8c0@HAL9002> Dear List: I am trying to create a Chinese language version of my product with the help of a contact in Taiwan. As an initial test she translated the captions on the Main Menu. I created a front-end language file table to hold the two forms of Chinese (simple and complex) and can add fields as I add languages. I sent her the table but she sent back an excel file of the table with the translations. When I open the Excel file the Chinese characters display correctly (of course, how would I know?). But when I copy one of these strings from the Excel cell into the language table in Access it shows as squares - undisplayable character, I assume. So Excel displays the Chinese but not my Access. I'm stating down the Access Help route but if anyone knows how to get Access to display foreign characters can you give me a lead? MTIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com From rbgajewski at adelphia.net Fri Apr 30 08:52:53 2004 From: rbgajewski at adelphia.net (Bob Gajewski) Date: Fri, 30 Apr 2004 09:52:53 -0400 Subject: [AccessD] Chinese Language In-Reply-To: <005201c42eb9$750c3be0$6601a8c0@HAL9002> Message-ID: Rocky Odds are real strong that you simply don't have the font installed that she used. Bob Gajewski -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - Beach Access Software Sent: Friday, April 30, 2004 09:46 To: AccessD at databaseadvisors.com Subject: [AccessD] Chinese Language Dear List: I am trying to create a Chinese language version of my product with the help of a contact in Taiwan. As an initial test she translated the captions on the Main Menu. I created a front-end language file table to hold the two forms of Chinese (simple and complex) and can add fields as I add languages. I sent her the table but she sent back an excel file of the table with the translations. When I open the Excel file the Chinese characters display correctly (of course, how would I know?). But when I copy one of these strings from the Excel cell into the language table in Access it shows as squares - undisplayable character, I assume. So Excel displays the Chinese but not my Access. I'm stating down the Access Help route but if anyone knows how to get Access to display foreign characters can you give me a lead? MTIA Rocky Smolin Beach Access Software http://www.e-z-mrp.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 Apr 30 03:50:13 2004 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 30 Apr 2004 10:50:13 +0200 Subject: [AccessD] A2K: Using the shell() function In-Reply-To: <6FC1C7A6E7BD5540AB0A8436713C43BF084AD6CF@PKDWB01C.ad.sprint.com> References: <6FC1C7A6E7BD5540AB0A8436713C43BF084AD6CF@PKDWB01C.ad.sprint.com> Message-ID: <767733890.20040430105013@cactus.dk> Hi Donald Interesting approach! /gustav > Steve, > I don't know if what I'm doing is similar to what you need to > accomplish, but I've been working on a project that requires data > capture via FTP. I found a nifty program called WebDrive > (http://www.webdrive.com) that allows you to map FTP sites as drives. > In my db, I'm using a combination of VBA file manipulation functions > (Dir, FileCopy, etc.) and Scripting FSO functionality to get and read > text files via FTP. You can refer to WebDrives using UNC or specific > drive letters, and user names and passwords can be saved with the > mappings so that they reconnect automatically upon system startup. Best > $40 I've spent in the last month or so . . . > Hope this helps. > Don McGillivray From gustav at cactus.dk Fri Apr 30 03:30:21 2004 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 30 Apr 2004 10:30:21 +0200 Subject: [AccessD] User Defined Properties A97 In-Reply-To: References: Message-ID: <706541426.20040430103021@cactus.dk> Hi Terry I think J?rgen caught this one. However, you should also be able to do a DBEngine(0)(0).Refresh to view any changes. /gustav > Just guessing but I suspect that the problem is that DBEngine(0)(0) is only > going to see the collections as at the time the database was opened or the > last time CurrentDb was called. If you replace DBEngine(0)(0) with > CurrentDb, I suspect you will see the current property value. > Ciao > J?rgen Welz > Edmonton, Alberta > jwelz at hotmail.com >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MACE, Terry >>Sent: Tuesday, April 27, 2004 9:54 PM >>To: 'Access Developers discussion and problem solving' >>Subject: [AccessD] User Defined Properties A97 >> >> >>I'm trying to use a custom property to store some changing information, >>which works fine, but when I try to read it, it only returns the value that >>was present when the database was opened. >> >>Is this the way it works or can I read the changed info. I'm using the >>following code to read the property 'Reference': >> >>DBEngine(0)(0).Containers("Databases").Documents("UserDefined").Properties(" >>reference") >> >>Terry Mace From bchacc at san.rr.com Fri Apr 30 09:11:27 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Fri, 30 Apr 2004 07:11:27 -0700 Subject: [AccessD] Chinese Language References: <005201c42eb9$750c3be0$6601a8c0@HAL9002> Message-ID: <007001c42ebd$0704fac0$6601a8c0@HAL9002> Dear List: OK. I'm making some progress. I changed the font on one of the labels to Unicode MS copied the Chinese characters from the Excel spreadsheet to the Caption in the property sheet for the control, and viola! it displays Chinese! When I look in my Access Language table, however, I still have little boxes. The caption also shows as little boxes in the property sheet of the control. I haven't written the public function yet to take the Chinese from the table and put it into the caption (the function will also, I guess, have to change the font to Arial Unicode MS), but I'm concerned that it may show boxes. Maybe I should stop bothering you all and see how far I can get on this by myself. But I have to tell you it's very exciting. In the old DOS days I did a Chinese language version of this product with this woman in Taiwan and I remember the thrill the first time my Main Menu came up in Chinese. Still, if anybody has any advice for me, it's appreciated. Regards, Rocky Smolin Beach Access Software http://www.e-z-mrp.com ----- Original Message ----- From: "Rocky Smolin - Beach Access Software" To: Sent: Friday, April 30, 2004 6:45 AM Subject: [AccessD] Chinese Language Dear List: I am trying to create a Chinese language version of my product with the help of a contact in Taiwan. As an initial test she translated the captions on the Main Menu. I created a front-end language file table to hold the two forms of Chinese (simple and complex) and can add fields as I add languages. I sent her the table but she sent back an excel file of the table with the translations. When I open the Excel file the Chinese characters display correctly (of course, how would I know?). But when I copy one of these strings from the Excel cell into the language table in Access it shows as squares - undisplayable character, I assume. So Excel displays the Chinese but not my Access. I'm stating down the Access Help route but if anyone knows how to get Access to display foreign characters can you give me a lead? MTIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at bellsouth.net Fri Apr 30 09:17:19 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Fri, 30 Apr 2004 10:17:19 -0400 Subject: [AccessD] Chinese Language References: Message-ID: <004201c42ebd$d9434e60$6101a8c0@dejpolsys> ...besides the font, you might want to check your Jet SPs ...earlier versions of Jet4 had a number of problems with DBCS languages ...I needed to use a Thai set on an mdb and even though the correct font was installed I got a lot of extended characters instead and queries on that data would not work either ...a Jet update cured the problem. William Hindman "The world's becoming a museum of socialist failures." John Dos Passos ----- Original Message ----- From: "Bob Gajewski" To: "Access Developers discussion and problem solving" Sent: Friday, April 30, 2004 9:52 AM Subject: RE: [AccessD] Chinese Language > Rocky > > Odds are real strong that you simply don't have the font installed that she > used. > > Bob Gajewski > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - > Beach Access Software > Sent: Friday, April 30, 2004 09:46 > To: AccessD at databaseadvisors.com > Subject: [AccessD] Chinese Language > > > Dear List: > > I am trying to create a Chinese language version of my product with the help > of a contact in Taiwan. > > As an initial test she translated the captions on the Main Menu. I created > a front-end language file table to hold the two forms of Chinese (simple and > complex) and can add fields as I add languages. > > I sent her the table but she sent back an excel file of the table with the > translations. When I open the Excel file the Chinese characters display > correctly (of course, how would I know?). > > But when I copy one of these strings from the Excel cell into the language > table in Access it shows as squares - undisplayable character, I assume. So > Excel displays the Chinese but not my Access. > > I'm stating down the Access Help route but if anyone knows how to get Access > to display foreign characters can you give me a lead? > > MTIA > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Fri Apr 30 09:37:17 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Fri, 30 Apr 2004 07:37:17 -0700 Subject: [AccessD] Chinese Language References: <004201c42ebd$d9434e60$6101a8c0@dejpolsys> Message-ID: <007c01c42ec0$a3735660$6601a8c0@HAL9002> William: Which SP did you have to get to fix the problem? At the moment I'm just working with captions and labels. But when they start putting in data and I'm operating onthe data, they might run into the problem. Rocky ----- Original Message ----- From: "William Hindman" To: "Access Developers discussion and problem solving" Sent: Friday, April 30, 2004 7:17 AM Subject: Re: [AccessD] Chinese Language > ...besides the font, you might want to check your Jet SPs ...earlier > versions of Jet4 had a number of problems with DBCS languages ...I needed to > use a Thai set on an mdb and even though the correct font was installed I > got a lot of extended characters instead and queries on that data would not > work either ...a Jet update cured the problem. > > William Hindman > "The world's becoming a museum of socialist failures." John Dos Passos > > > ----- Original Message ----- > From: "Bob Gajewski" > To: "Access Developers discussion and problem solving" > > Sent: Friday, April 30, 2004 9:52 AM > Subject: RE: [AccessD] Chinese Language > > > > Rocky > > > > Odds are real strong that you simply don't have the font installed that > she > > used. > > > > Bob Gajewski > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - > > Beach Access Software > > Sent: Friday, April 30, 2004 09:46 > > To: AccessD at databaseadvisors.com > > Subject: [AccessD] Chinese Language > > > > > > Dear List: > > > > I am trying to create a Chinese language version of my product with the > help > > of a contact in Taiwan. > > > > As an initial test she translated the captions on the Main Menu. I > created > > a front-end language file table to hold the two forms of Chinese (simple > and > > complex) and can add fields as I add languages. > > > > I sent her the table but she sent back an excel file of the table with the > > translations. When I open the Excel file the Chinese characters display > > correctly (of course, how would I know?). > > > > But when I copy one of these strings from the Excel cell into the language > > table in Access it shows as squares - undisplayable character, I assume. > So > > Excel displays the Chinese but not my Access. > > > > I'm stating down the Access Help route but if anyone knows how to get > Access > > to display foreign characters can you give me a lead? > > > > MTIA > > > > Rocky Smolin > > Beach Access Software > > http://www.e-z-mrp.com > > > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > 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 Fri Apr 30 09:47:14 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Fri, 30 Apr 2004 07:47:14 -0700 Subject: [AccessD] Chinese Language References: <005201c42eb9$750c3be0$6601a8c0@HAL9002> <007001c42ebd$0704fac0$6601a8c0@HAL9002> Message-ID: <008401c42ec2$07136060$6601a8c0@HAL9002> Dear List: It seems that I can change the caption of a control through code: ctl.Caption = rs(gstrLanguage) ' Where gstrLanguage is the field name in the language table of the language selected by the user but I can't change the font: If InStr(1, gstrLanguage, "Chinese") <> 0 Then ctl.font = "Arial Unicode MS" gives me 'object soesn't support this property or method'. Is there a way to change the font of a control? This code will be running in an mde so opening the form in design mode isn't an option. MTIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com ----- Original Message ----- From: "Rocky Smolin - Beach Access Software" To: "Access Developers discussion and problem solving" Sent: Friday, April 30, 2004 7:11 AM Subject: Re: [AccessD] Chinese Language > Dear List: > > OK. I'm making some progress. I changed the font on one of the labels to > Unicode MS copied the Chinese characters from the Excel spreadsheet to the > Caption in the property sheet for the control, and viola! it displays > Chinese! When I look in my Access Language table, however, I still have > little boxes. The caption also shows as little boxes in the property sheet > of the control. > > I haven't written the public function yet to take the Chinese from the table > and put it into the caption (the function will also, I guess, have to change > the font to Arial Unicode MS), but I'm concerned that it may show boxes. > > Maybe I should stop bothering you all and see how far I can get on this by > myself. > > But I have to tell you it's very exciting. In the old DOS days I did a > Chinese language version of this product with this woman in Taiwan and I > remember the thrill the first time my Main Menu came up in Chinese. > > Still, if anybody has any advice for me, it's appreciated. > > Regards, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > > > > ----- Original Message ----- > From: "Rocky Smolin - Beach Access Software" > To: > Sent: Friday, April 30, 2004 6:45 AM > Subject: [AccessD] Chinese Language > > > Dear List: > > I am trying to create a Chinese language version of my product with the help > of a contact in Taiwan. > > As an initial test she translated the captions on the Main Menu. I created > a front-end language file table to hold the two forms of Chinese (simple and > complex) and can add fields as I add languages. > > I sent her the table but she sent back an excel file of the table with the > translations. When I open the Excel file the Chinese characters display > correctly (of course, how would I know?). > > But when I copy one of these strings from the Excel cell into the language > table in Access it shows as squares - undisplayable character, I assume. So > Excel displays the Chinese but not my Access. > > I'm stating down the Access Help route but if anyone knows how to get Access > to display foreign characters can you give me a lead? > > MTIA > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Apr 30 10:17:37 2004 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 30 Apr 2004 17:17:37 +0200 Subject: [AccessD] Chinese Language In-Reply-To: <008401c42ec2$07136060$6601a8c0@HAL9002> References: <005201c42eb9$750c3be0$6601a8c0@HAL9002> <007001c42ebd$0704fac0$6601a8c0@HAL9002> <008401c42ec2$07136060$6601a8c0@HAL9002> Message-ID: <10330977683.20040430171737@cactus.dk> Hi Rocky Try with .FontName /gustav > It seems that I can change the caption of a control through code: > ctl.Caption = rs(gstrLanguage) > ' Where gstrLanguage is the field name in the language table of the language > selected by the user > but I can't change the font: > If InStr(1, gstrLanguage, "Chinese") <> 0 Then ctl.font = "Arial Unicode MS" > gives me 'object soesn't support this property or method'. From accessd at shaw.ca Fri Apr 30 10:36:18 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Fri, 30 Apr 2004 08:36:18 -0700 Subject: [AccessD] Subform to Subform Updating In-Reply-To: Message-ID: Hi Douglas: Have you checked this page out yet? http://www.databaseadvisors.com/newletters/newsletter032004/0310ReferenceGui de/SyntaxForSubs.htm (Watch for wrap) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Douglas Barnes Sent: Wednesday, April 28, 2004 9:04 AM To: AccessD at databaseadvisors.com Subject: [AccessD] Subform to Subform Updating I have a main form with 2 subforms (sub1, sub2). I can add records to sub1 as it is related to the main form. I can't seem to add records to sub2, which is related to sub1. Any insight on this would be appreciated. Douglas Barnes Starn Technical Services P. O. 1172 Meadville, PA 16335 814.724.1045 doug at starntech.com www.starntech.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 Fri Apr 30 10:41:02 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Fri, 30 Apr 2004 08:41:02 -0700 Subject: [AccessD] Chinese Language References: <005201c42eb9$750c3be0$6601a8c0@HAL9002> <007001c42ebd$0704fac0$6601a8c0@HAL9002> <008401c42ec2$07136060$6601a8c0@HAL9002> <10330977683.20040430171737@cactus.dk> Message-ID: <00fe01c42ec9$8b350b30$6601a8c0@HAL9002> Gustav: Thanks you!!! Forgot about that 'name' thing. It worked perfectly. The E-Z-MRP Main Menu displays in Chinese! Best, Rocky Smolin Beach Access Software http://www.e-z-mrp.com ----- Original Message ----- From: "Gustav Brock" To: "Access Developers discussion and problem solving" Sent: Friday, April 30, 2004 8:17 AM Subject: Re: [AccessD] Chinese Language > Hi Rocky > > Try with .FontName > > /gustav > > > > It seems that I can change the caption of a control through code: > > > ctl.Caption = rs(gstrLanguage) > > > ' Where gstrLanguage is the field name in the language table of the language > > selected by the user > > > but I can't change the font: > > > If InStr(1, gstrLanguage, "Chinese") <> 0 Then ctl.font = "Arial Unicode MS" > > > gives me 'object soesn't support this property or method'. > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From wdhindman at bellsouth.net Fri Apr 30 10:44:54 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Fri, 30 Apr 2004 11:44:54 -0400 Subject: [AccessD] Chinese Language References: <004201c42ebd$d9434e60$6101a8c0@dejpolsys> <007c01c42ec0$a3735660$6601a8c0@HAL9002> Message-ID: <00ec01c42eca$1704d280$6101a8c0@dejpolsys> ...was a while back Rocky ...well before 8 so if you (and your client) have the latest you should be ok ...I'm assuming that you're using A2K or AXP in a W2K or WXP environment. William Hindman "The world's becoming a museum of socialist failures." John Dos Passos ----- Original Message ----- From: "Rocky Smolin - Beach Access Software" To: "Access Developers discussion and problem solving" Sent: Friday, April 30, 2004 10:37 AM Subject: Re: [AccessD] Chinese Language > William: > > Which SP did you have to get to fix the problem? > > At the moment I'm just working with captions and labels. But when they > start putting in data and I'm operating onthe data, they might run into the > problem. > > > Rocky > > ----- Original Message ----- > From: "William Hindman" > To: "Access Developers discussion and problem solving" > > Sent: Friday, April 30, 2004 7:17 AM > Subject: Re: [AccessD] Chinese Language > > > > ...besides the font, you might want to check your Jet SPs ...earlier > > versions of Jet4 had a number of problems with DBCS languages ...I needed > to > > use a Thai set on an mdb and even though the correct font was installed I > > got a lot of extended characters instead and queries on that data would > not > > work either ...a Jet update cured the problem. > > > > William Hindman > > "The world's becoming a museum of socialist failures." John Dos Passos > > > > > > ----- Original Message ----- > > From: "Bob Gajewski" > > To: "Access Developers discussion and problem solving" > > > > Sent: Friday, April 30, 2004 9:52 AM > > Subject: RE: [AccessD] Chinese Language > > > > > > > Rocky > > > > > > Odds are real strong that you simply don't have the font installed that > > she > > > used. > > > > > > Bob Gajewski > > > > > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - > > > Beach Access Software > > > Sent: Friday, April 30, 2004 09:46 > > > To: AccessD at databaseadvisors.com > > > Subject: [AccessD] Chinese Language > > > > > > > > > Dear List: > > > > > > I am trying to create a Chinese language version of my product with the > > help > > > of a contact in Taiwan. > > > > > > As an initial test she translated the captions on the Main Menu. I > > created > > > a front-end language file table to hold the two forms of Chinese (simple > > and > > > complex) and can add fields as I add languages. > > > > > > I sent her the table but she sent back an excel file of the table with > the > > > translations. When I open the Excel file the Chinese characters display > > > correctly (of course, how would I know?). > > > > > > But when I copy one of these strings from the Excel cell into the > language > > > table in Access it shows as squares - undisplayable character, I assume. > > So > > > Excel displays the Chinese but not my Access. > > > > > > I'm stating down the Access Help route but if anyone knows how to get > > Access > > > to display foreign characters can you give me a lead? > > > > > > MTIA > > > > > > Rocky Smolin > > > Beach Access Software > > > http://www.e-z-mrp.com > > > > > > -- > > > _______________________________________________ > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > > > > -- > > > _______________________________________________ > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > > > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > 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 Apr 30 10:53:51 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Fri, 30 Apr 2004 08:53:51 -0700 Subject: [AccessD] New Officers for the DBA In-Reply-To: <20040429110001.206625495.serbach@new.rr.com> Message-ID: Hi All: Congratulations to our new elected board members. Elections were concluded Wednesday, 28 of April 2004. We have a new President, Vice-president and Secretary. Other board members remained in their current positions. A heart felt thanks to our retiring board members. Their contribution and hard work was very much appreciated. Thank you all. The results have been posted at http://www.databaseadvisors.com/ Jim From bchacc at san.rr.com Fri Apr 30 11:02:12 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Fri, 30 Apr 2004 09:02:12 -0700 Subject: [AccessD] Chinese Language References: <004201c42ebd$d9434e60$6101a8c0@dejpolsys> <007c01c42ec0$a3735660$6601a8c0@HAL9002> <00ec01c42eca$1704d280$6101a8c0@dejpolsys> Message-ID: <011801c42ecc$7fe35ef0$6601a8c0@HAL9002> Yeah it's A2K and it's working beautiful right now. But that's just label and command button caption. We'll see once they put in some data. Rocky ----- Original Message ----- From: "William Hindman" To: "Access Developers discussion and problem solving" Sent: Friday, April 30, 2004 8:44 AM Subject: Re: [AccessD] Chinese Language > ...was a while back Rocky ...well before 8 so if you (and your client) have > the latest you should be ok ...I'm assuming that you're using A2K or AXP in > a W2K or WXP environment. > > William Hindman > "The world's becoming a museum of socialist failures." John Dos Passos > > > ----- Original Message ----- > From: "Rocky Smolin - Beach Access Software" > To: "Access Developers discussion and problem solving" > > Sent: Friday, April 30, 2004 10:37 AM > Subject: Re: [AccessD] Chinese Language > > > > William: > > > > Which SP did you have to get to fix the problem? > > > > At the moment I'm just working with captions and labels. But when they > > start putting in data and I'm operating onthe data, they might run into > the > > problem. > > > > > > Rocky > > > > ----- Original Message ----- > > From: "William Hindman" > > To: "Access Developers discussion and problem solving" > > > > Sent: Friday, April 30, 2004 7:17 AM > > Subject: Re: [AccessD] Chinese Language > > > > > > > ...besides the font, you might want to check your Jet SPs ...earlier > > > versions of Jet4 had a number of problems with DBCS languages ...I > needed > > to > > > use a Thai set on an mdb and even though the correct font was installed > I > > > got a lot of extended characters instead and queries on that data would > > not > > > work either ...a Jet update cured the problem. > > > > > > William Hindman > > > "The world's becoming a museum of socialist failures." John Dos Passos > > > > > > > > > ----- Original Message ----- > > > From: "Bob Gajewski" > > > To: "Access Developers discussion and problem solving" > > > > > > Sent: Friday, April 30, 2004 9:52 AM > > > Subject: RE: [AccessD] Chinese Language > > > > > > > > > > Rocky > > > > > > > > Odds are real strong that you simply don't have the font installed > that > > > she > > > > used. > > > > > > > > Bob Gajewski > > > > > > > > > > > > -----Original Message----- > > > > From: accessd-bounces at databaseadvisors.com > > > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky > Smolin - > > > > Beach Access Software > > > > Sent: Friday, April 30, 2004 09:46 > > > > To: AccessD at databaseadvisors.com > > > > Subject: [AccessD] Chinese Language > > > > > > > > > > > > Dear List: > > > > > > > > I am trying to create a Chinese language version of my product with > the > > > help > > > > of a contact in Taiwan. > > > > > > > > As an initial test she translated the captions on the Main Menu. I > > > created > > > > a front-end language file table to hold the two forms of Chinese > (simple > > > and > > > > complex) and can add fields as I add languages. > > > > > > > > I sent her the table but she sent back an excel file of the table with > > the > > > > translations. When I open the Excel file the Chinese characters > display > > > > correctly (of course, how would I know?). > > > > > > > > But when I copy one of these strings from the Excel cell into the > > language > > > > table in Access it shows as squares - undisplayable character, I > assume. > > > So > > > > Excel displays the Chinese but not my Access. > > > > > > > > I'm stating down the Access Help route but if anyone knows how to get > > > Access > > > > to display foreign characters can you give me a lead? > > > > > > > > MTIA > > > > > > > > Rocky Smolin > > > > Beach Access Software > > > > http://www.e-z-mrp.com > > > > > > > > -- > > > > _______________________________________________ > > > > AccessD mailing list > > > > AccessD at databaseadvisors.com > > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > > Website: http://www.databaseadvisors.com > > > > > > > > > > > > -- > > > > _______________________________________________ > > > > AccessD mailing list > > > > AccessD at databaseadvisors.com > > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > > Website: http://www.databaseadvisors.com > > > > > > > > > > > > > -- > > > _______________________________________________ > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > 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 Apr 30 11:24:07 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Fri, 30 Apr 2004 09:24:07 -0700 Subject: [AccessD] TransferText working sporadically. In-Reply-To: <2F8793082E00D4119A1700B0D0216BF802227B38@main2.marlow.com> Message-ID: Hi Drew: I have no specific knowledge of your site but as an outside observer this would be my approach: If it was a user I would ask (suspiciously, I might add) has there been any recent upgrades to the computers in question. (The answer is of course always, NO.) The problem might be with Abra...has it reach the 2 GB limit? (A lot of older databases had that limitation not just Access) If your accessing works fine maybe the Payroll guy is running some procedures that you are not? Is the Payroll guy using a different FE? if so maybe an update is warranted. This is a few of the questions I would check out. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DWUTKA at marlow.com Sent: Thursday, April 29, 2004 11:00 AM To: AccessD at databaseadvisors.com Subject: [AccessD] TransferText working sporadically. Our Payroll guy has an Access .mdb which imports data from our Hours program (written in DataPoint), into Abra, our Payroll/HR package. A few weeks ago, that database stopped working, and it is failing on a line of code that is DoCmd.TransferText. It says it is unable to write to the database. It works from my machine (Windows 2000, running Access 97), but not the payroll guy's machine, (NT 4.0 workstation, access 97). Both have the same service packs, etc. Any thoughts? Drew -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at bellsouth.net Fri Apr 30 11:23:48 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Fri, 30 Apr 2004 12:23:48 -0400 Subject: [AccessD] Chinese Language References: <004201c42ebd$d9434e60$6101a8c0@dejpolsys><007c01c42ec0$a3735660$6601a8c0@HAL9002><00ec01c42eca$1704d280$6101a8c0@dejpolsys> <011801c42ecc$7fe35ef0$6601a8c0@HAL9002> Message-ID: <001401c42ecf$849ce800$6101a8c0@dejpolsys> ...I'd think that data sorts could be a problem ...it is with Thai ...you'll want your translator to test that pretty thoroughly. ...the other thing I ran into was a number of burps when the user had a full Thai version of Access installed rather than my runtime. William Hindman "The world's becoming a museum of socialist failures." John Dos Passos ----- Original Message ----- From: "Rocky Smolin - Beach Access Software" To: "Access Developers discussion and problem solving" Sent: Friday, April 30, 2004 12:02 PM Subject: Re: [AccessD] Chinese Language > Yeah it's A2K and it's working beautiful right now. But that's just label > and command button caption. We'll see once they put in some data. > > Rocky > > ----- Original Message ----- > From: "William Hindman" > To: "Access Developers discussion and problem solving" > > Sent: Friday, April 30, 2004 8:44 AM > Subject: Re: [AccessD] Chinese Language > > > > ...was a while back Rocky ...well before 8 so if you (and your client) > have > > the latest you should be ok ...I'm assuming that you're using A2K or AXP > in > > a W2K or WXP environment. > > > > William Hindman > > "The world's becoming a museum of socialist failures." John Dos Passos > > > > > > ----- Original Message ----- > > From: "Rocky Smolin - Beach Access Software" > > To: "Access Developers discussion and problem solving" > > > > Sent: Friday, April 30, 2004 10:37 AM > > Subject: Re: [AccessD] Chinese Language > > > > > > > William: > > > > > > Which SP did you have to get to fix the problem? > > > > > > At the moment I'm just working with captions and labels. But when they > > > start putting in data and I'm operating onthe data, they might run into > > the > > > problem. > > > > > > > > > Rocky > > > > > > ----- Original Message ----- > > > From: "William Hindman" > > > To: "Access Developers discussion and problem solving" > > > > > > Sent: Friday, April 30, 2004 7:17 AM > > > Subject: Re: [AccessD] Chinese Language > > > > > > > > > > ...besides the font, you might want to check your Jet SPs ...earlier > > > > versions of Jet4 had a number of problems with DBCS languages ...I > > needed > > > to > > > > use a Thai set on an mdb and even though the correct font was > installed > > I > > > > got a lot of extended characters instead and queries on that data > would > > > not > > > > work either ...a Jet update cured the problem. > > > > > > > > William Hindman > > > > "The world's becoming a museum of socialist failures." John Dos Passos > > > > > > > > > > > > ----- Original Message ----- > > > > From: "Bob Gajewski" > > > > To: "Access Developers discussion and problem solving" > > > > > > > > Sent: Friday, April 30, 2004 9:52 AM > > > > Subject: RE: [AccessD] Chinese Language > > > > > > > > > > > > > Rocky > > > > > > > > > > Odds are real strong that you simply don't have the font installed > > that > > > > she > > > > > used. > > > > > > > > > > Bob Gajewski > > > > > > > > > > > > > > > -----Original Message----- > > > > > From: accessd-bounces at databaseadvisors.com > > > > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky > > Smolin - > > > > > Beach Access Software > > > > > Sent: Friday, April 30, 2004 09:46 > > > > > To: AccessD at databaseadvisors.com > > > > > Subject: [AccessD] Chinese Language > > > > > > > > > > > > > > > Dear List: > > > > > > > > > > I am trying to create a Chinese language version of my product with > > the > > > > help > > > > > of a contact in Taiwan. > > > > > > > > > > As an initial test she translated the captions on the Main Menu. I > > > > created > > > > > a front-end language file table to hold the two forms of Chinese > > (simple > > > > and > > > > > complex) and can add fields as I add languages. > > > > > > > > > > I sent her the table but she sent back an excel file of the table > with > > > the > > > > > translations. When I open the Excel file the Chinese characters > > display > > > > > correctly (of course, how would I know?). > > > > > > > > > > But when I copy one of these strings from the Excel cell into the > > > language > > > > > table in Access it shows as squares - undisplayable character, I > > assume. > > > > So > > > > > Excel displays the Chinese but not my Access. > > > > > > > > > > I'm stating down the Access Help route but if anyone knows how to > get > > > > Access > > > > > to display foreign characters can you give me a lead? > > > > > > > > > > MTIA > > > > > > > > > > Rocky Smolin > > > > > Beach Access Software > > > > > http://www.e-z-mrp.com > > > > > > > > > > -- > > > > > _______________________________________________ > > > > > AccessD mailing list > > > > > AccessD at databaseadvisors.com > > > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > > > Website: http://www.databaseadvisors.com > > > > > > > > > > > > > > > -- > > > > > _______________________________________________ > > > > > AccessD mailing list > > > > > AccessD at databaseadvisors.com > > > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > > > Website: http://www.databaseadvisors.com > > > > > > > > > > > > > > > > > -- > > > > _______________________________________________ > > > > AccessD mailing list > > > > AccessD at databaseadvisors.com > > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > > Website: http://www.databaseadvisors.com > > > > > > -- > > > _______________________________________________ > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From DWUTKA at marlow.com Fri Apr 30 11:31:17 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Fri, 30 Apr 2004 11:31:17 -0500 Subject: [AccessD] TransferText working sporadically. Message-ID: <2F8793082E00D4119A1700B0D0216BF802227B4E@main2.marlow.com> Abra was upgraded to a newer version of Foxpro. but I don't see how that would affect the TransferText funtion from importing a text file into Abra. He is going to try it from a Windows 2000 machine, to see if it's a quirk with NT 4.0. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Lawrence (AccessD) Sent: Friday, April 30, 2004 11:24 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] TransferText working sporadically. Hi Drew: I have no specific knowledge of your site but as an outside observer this would be my approach: If it was a user I would ask (suspiciously, I might add) has there been any recent upgrades to the computers in question. (The answer is of course always, NO.) The problem might be with Abra...has it reach the 2 GB limit? (A lot of older databases had that limitation not just Access) If your accessing works fine maybe the Payroll guy is running some procedures that you are not? Is the Payroll guy using a different FE? if so maybe an update is warranted. This is a few of the questions I would check out. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DWUTKA at marlow.com Sent: Thursday, April 29, 2004 11:00 AM To: AccessD at databaseadvisors.com Subject: [AccessD] TransferText working sporadically. Our Payroll guy has an Access .mdb which imports data from our Hours program (written in DataPoint), into Abra, our Payroll/HR package. A few weeks ago, that database stopped working, and it is failing on a line of code that is DoCmd.TransferText. It says it is unable to write to the database. It works from my machine (Windows 2000, running Access 97), but not the payroll guy's machine, (NT 4.0 workstation, access 97). Both have the same service packs, etc. Any thoughts? Drew -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Apr 30 11:41:46 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Fri, 30 Apr 2004 09:41:46 -0700 Subject: [AccessD] Chinese Language In-Reply-To: <005201c42eb9$750c3be0$6601a8c0@HAL9002> Message-ID: Hi Rocky: Check the Excel spread sheet that was sent to you and you will find the name of the font, probably 'msp mincho', imbedded in the sheet. If you save the sheet as a web page the imbedded font will show up in the resulting html code header. The computer using the program will probably have to be setup to uses the character set in question, See: http://support.microsoft.com/default.aspx?scid=kb;en-us;225865 for further details. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - Beach Access Software Sent: Friday, April 30, 2004 6:46 AM To: AccessD at databaseadvisors.com Subject: [AccessD] Chinese Language Dear List: I am trying to create a Chinese language version of my product with the help of a contact in Taiwan. As an initial test she translated the captions on the Main Menu. I created a front-end language file table to hold the two forms of Chinese (simple and complex) and can add fields as I add languages. I sent her the table but she sent back an excel file of the table with the translations. When I open the Excel file the Chinese characters display correctly (of course, how would I know?). But when I copy one of these strings from the Excel cell into the language table in Access it shows as squares - undisplayable character, I assume. So Excel displays the Chinese but not my Access. I'm stating down the Access Help route but if anyone knows how to get Access to display foreign characters can you give me a lead? MTIA Rocky Smolin Beach Access Software http://www.e-z-mrp.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 Apr 30 12:15:47 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 30 Apr 2004 10:15:47 -0700 Subject: [AccessD] TransferText working sporadically. References: <2F8793082E00D4119A1700B0D0216BF802227B4E@main2.marlow.com> Message-ID: <409289C3.5000503@shaw.ca> ACC2000: How to Import a Text File That Has an Extension That Access Does Not Recognize http://support.microsoft.com/default.aspx?scid=kb;en-us;306144&Product=acc Also check the registry key for disabled extensions on both machines as per above DWUTKA at marlow.com wrote: >Abra was upgraded to a newer version of Foxpro. but I don't see how that >would affect the TransferText funtion from importing a text file into Abra. >He is going to try it from a Windows 2000 machine, to see if it's a quirk >with NT 4.0. > >Drew > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Lawrence >(AccessD) >Sent: Friday, April 30, 2004 11:24 AM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] TransferText working sporadically. > > >Hi Drew: > >I have no specific knowledge of your site but as an outside observer this >would be my approach: > >If it was a user I would ask (suspiciously, I might add) has there been any >recent upgrades to the computers in question. (The answer is of course >always, NO.) > >The problem might be with Abra...has it reach the 2 GB limit? (A lot of >older databases had that limitation not just Access) > >If your accessing works fine maybe the Payroll guy is running some >procedures that you are not? > >Is the Payroll guy using a different FE? if so maybe an update is warranted. > >This is a few of the questions I would check out. > >HTH >Jim > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of >DWUTKA at marlow.com >Sent: Thursday, April 29, 2004 11:00 AM >To: AccessD at databaseadvisors.com >Subject: [AccessD] TransferText working sporadically. > > >Our Payroll guy has an Access .mdb which imports data from our Hours program >(written in DataPoint), into Abra, our Payroll/HR package. A few weeks ago, >that database stopped working, and it is failing on a line of code that is >DoCmd.TransferText. It says it is unable to write to the database. > >It works from my machine (Windows 2000, running Access 97), but not the >payroll guy's machine, (NT 4.0 workstation, access 97). > >Both have the same service packs, etc. > >Any thoughts? > >Drew >-- >_______________________________________________ >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 garykjos at hotmail.com Fri Apr 30 12:50:39 2004 From: garykjos at hotmail.com (Gary Kjos) Date: Fri, 30 Apr 2004 12:50:39 -0500 Subject: [AccessD] New Officers for the DBA Message-ID: Yes, congratulations to the new officers, John, Reuben and Susan and thaink you for volunteering your time and energy. And many thanks to Lembit, Donna and Patty for all the work you have put in over the past year. Gary Kjos garykjos at hotmail.com >From: "Jim Lawrence (AccessD)" >Reply-To: Access Developers discussion and problem >solving >To: Access Developers discussion and problem >solving >Subject: [AccessD] New Officers for the DBA >Date: Fri, 30 Apr 2004 08:53:51 -0700 > >Hi All: > >Congratulations to our new elected board members. Elections were concluded >Wednesday, 28 of April 2004. We have a new President, Vice-president and >Secretary. Other board members remained in their current positions. > >A heart felt thanks to our retiring board members. Their contribution and >hard work was very much appreciated. Thank you all. > >The results have been posted at http://www.databaseadvisors.com/ > >Jim > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Stop worrying about overloading your inbox - get MSN Hotmail Extra Storage! http://join.msn.com/?pgmarket=en-us&page=hotmail/es2&ST=1/go/onm00200362ave/direct/01/ From martyconnelly at shaw.ca Fri Apr 30 13:45:08 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 30 Apr 2004 11:45:08 -0700 Subject: [AccessD] Chinese Language References: <004201c42ebd$d9434e60$6101a8c0@dejpolsys> <007c01c42ec0$a3735660$6601a8c0@HAL9002> <00ec01c42eca$1704d280$6101a8c0@dejpolsys> <011801c42ecc$7fe35ef0$6601a8c0@HAL9002> Message-ID: <40929EB4.2020403@shaw.ca> You might want to pick up a used copy of this book on amazon or ebay It is selling for anywhere between about $50 and $200 used (out of print) The book rambles a bit and has been panned because it assumes a lot of OS and VB knowledge. But should help you out with Jet collation problems in other languages, codepages and IME's. It doesn't cover the MS OS above Win 2000. Internationalization With Visual Basic Author: Michael Kaplan Publisher: Macmillan Computer Pub ISBN: 0672319772 Publication Year: 2000 Chapters from book http://www.i18nwithvb.com/chapters/ In (simplified chinese) for your Chinese compatriots ANSI or Unicode? http://www.i18nwithvb.com/chapters/Chapter16_sc.htm Testing International Software http://www.i18nwithvb.com/chapters/Chapter06_sc.htm i18N = Internationalization (or Globalization): mainly a program able to manage in any locale the locale language and settings. M18N = Multinationalization: mainly a program able to manage (display and input) several languages in any locale. L10N = Localization: mainly a program able to display its translated and adapted version to several locales. Rocky Smolin - Beach Access Software wrote: >Yeah it's A2K and it's working beautiful right now. But that's just label >and command button caption. We'll see once they put in some data. > >Rocky > >----- Original Message ----- >From: "William Hindman" >To: "Access Developers discussion and problem solving" > >Sent: Friday, April 30, 2004 8:44 AM >Subject: Re: [AccessD] Chinese Language > > > > >>...was a while back Rocky ...well before 8 so if you (and your client) >> >> >have > > >>the latest you should be ok ...I'm assuming that you're using A2K or AXP >> >> >in > > >>a W2K or WXP environment. >> >>William Hindman >>"The world's becoming a museum of socialist failures." John Dos Passos >> >> >>----- Original Message ----- >>From: "Rocky Smolin - Beach Access Software" >>To: "Access Developers discussion and problem solving" >> >>Sent: Friday, April 30, 2004 10:37 AM >>Subject: Re: [AccessD] Chinese Language >> >> >> >> >>>William: >>> >>>Which SP did you have to get to fix the problem? >>> >>>At the moment I'm just working with captions and labels. But when they >>>start putting in data and I'm operating onthe data, they might run into >>> >>> >>the >> >> >>>problem. >>> >>> >>>Rocky >>> >>>----- Original Message ----- >>>From: "William Hindman" >>>To: "Access Developers discussion and problem solving" >>> >>>Sent: Friday, April 30, 2004 7:17 AM >>>Subject: Re: [AccessD] Chinese Language >>> >>> >>> >>> >>>>...besides the font, you might want to check your Jet SPs ...earlier >>>>versions of Jet4 had a number of problems with DBCS languages ...I >>>> >>>> >>needed >> >> >>>to >>> >>> >>>>use a Thai set on an mdb and even though the correct font was >>>> >>>> >installed > > >>I >> >> >>>>got a lot of extended characters instead and queries on that data >>>> >>>> >would > > >>>not >>> >>> >>>>work either ...a Jet update cured the problem. >>>> >>>>William Hindman >>>>"The world's becoming a museum of socialist failures." John Dos Passos >>>> >>>> >>>>----- Original Message ----- >>>>From: "Bob Gajewski" >>>>To: "Access Developers discussion and problem solving" >>>> >>>>Sent: Friday, April 30, 2004 9:52 AM >>>>Subject: RE: [AccessD] Chinese Language >>>> >>>> >>>> >>>> >>>>>Rocky >>>>> >>>>>Odds are real strong that you simply don't have the font installed >>>>> >>>>> >>that >> >> >>>>she >>>> >>>> >>>>>used. >>>>> >>>>>Bob Gajewski >>>>> >>>>> >>>>>-----Original Message----- >>>>>From: accessd-bounces at databaseadvisors.com >>>>>[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky >>>>> >>>>> >>Smolin - >> >> >>>>>Beach Access Software >>>>>Sent: Friday, April 30, 2004 09:46 >>>>>To: AccessD at databaseadvisors.com >>>>>Subject: [AccessD] Chinese Language >>>>> >>>>> >>>>>Dear List: >>>>> >>>>>I am trying to create a Chinese language version of my product with >>>>> >>>>> >>the >> >> >>>>help >>>> >>>> >>>>>of a contact in Taiwan. >>>>> >>>>>As an initial test she translated the captions on the Main Menu. I >>>>> >>>>> >>>>created >>>> >>>> >>>>>a front-end language file table to hold the two forms of Chinese >>>>> >>>>> >>(simple >> >> >>>>and >>>> >>>> >>>>>complex) and can add fields as I add languages. >>>>> >>>>>I sent her the table but she sent back an excel file of the table >>>>> >>>>> >with > > >>>the >>> >>> >>>>>translations. When I open the Excel file the Chinese characters >>>>> >>>>> >>display >> >> >>>>>correctly (of course, how would I know?). >>>>> >>>>>But when I copy one of these strings from the Excel cell into the >>>>> >>>>> >>>language >>> >>> >>>>>table in Access it shows as squares - undisplayable character, I >>>>> >>>>> >>assume. >> >> >>>>So >>>> >>>> >>>>>Excel displays the Chinese but not my Access. >>>>> >>>>>I'm stating down the Access Help route but if anyone knows how to >>>>> >>>>> >get > > >>>>Access >>>> >>>> >>>>>to display foreign characters can you give me a lead? >>>>> >>>>>MTIA >>>>> >>>>>Rocky Smolin >>>>>Beach Access Software >>>>>http://www.e-z-mrp.com >>>>> >>>>>-- >>>>>_______________________________________________ >>>>>AccessD mailing list >>>>>AccessD at databaseadvisors.com >>>>>http://databaseadvisors.com/mailman/listinfo/accessd >>>>>Website: http://www.databaseadvisors.com >>>>> >>>>> >>>>>-- >>>>>_______________________________________________ >>>>>AccessD mailing list >>>>>AccessD at databaseadvisors.com >>>>>http://databaseadvisors.com/mailman/listinfo/accessd >>>>>Website: http://www.databaseadvisors.com >>>>> >>>>> >>>>> >>>>-- >>>>_______________________________________________ >>>>AccessD mailing list >>>>AccessD at databaseadvisors.com >>>>http://databaseadvisors.com/mailman/listinfo/accessd >>>>Website: http://www.databaseadvisors.com >>>> >>>> >>>-- >>>_______________________________________________ >>>AccessD mailing list >>>AccessD at databaseadvisors.com >>>http://databaseadvisors.com/mailman/listinfo/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 bchacc at san.rr.com Fri Apr 30 13:56:09 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Fri, 30 Apr 2004 11:56:09 -0700 Subject: [AccessD] Chinese Language References: Message-ID: <019901c42ee4$cd1393d0$6601a8c0@HAL9002> Jim: Well I did that but the html source was singularly uninformative. Nevertheless, I've got the Chinese display working and it's lovely. Now if I can get her to do the rest of the translation and take it to mainland China, I'll be a billionaire. :) Rocky ----- Original Message ----- From: "Jim Lawrence (AccessD)" To: "Access Developers discussion and problem solving" Sent: Friday, April 30, 2004 9:41 AM Subject: RE: [AccessD] Chinese Language > Hi Rocky: > > Check the Excel spread sheet that was sent to you and you will find the name > of the font, probably 'msp mincho', imbedded in the sheet. If you save the > sheet as a web page the imbedded font will show up in the resulting html > code header. The computer using the program will probably have to be setup > to uses the character set in question, See: > http://support.microsoft.com/default.aspx?scid=kb;en-us;225865 for further > details. > > HTH > Jim > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - > Beach Access Software > Sent: Friday, April 30, 2004 6:46 AM > To: AccessD at databaseadvisors.com > Subject: [AccessD] Chinese Language > > > Dear List: > > I am trying to create a Chinese language version of my product with the help > of a contact in Taiwan. > > As an initial test she translated the captions on the Main Menu. I created > a front-end language file table to hold the two forms of Chinese (simple and > complex) and can add fields as I add languages. > > I sent her the table but she sent back an excel file of the table with the > translations. When I open the Excel file the Chinese characters display > correctly (of course, how would I know?). > > But when I copy one of these strings from the Excel cell into the language > table in Access it shows as squares - undisplayable character, I assume. So > Excel displays the Chinese but not my Access. > > I'm stating down the Access Help route but if anyone knows how to get Access > to display foreign characters can you give me a lead? > > MTIA > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Fri Apr 30 13:58:37 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Fri, 30 Apr 2004 11:58:37 -0700 Subject: [AccessD] Chinese Language References: <004201c42ebd$d9434e60$6101a8c0@dejpolsys> <007c01c42ec0$a3735660$6601a8c0@HAL9002> <00ec01c42eca$1704d280$6101a8c0@dejpolsys> <011801c42ecc$7fe35ef0$6601a8c0@HAL9002> <40929EB4.2020403@shaw.ca> Message-ID: <01a301c42ee5$24d824f0$6601a8c0@HAL9002> Marty: That looks very useful. Thanks. Rocky Smolin Beach Access Software http://www.e-z-mrp.com ----- Original Message ----- From: "MartyConnelly" To: "Access Developers discussion and problem solving" Sent: Friday, April 30, 2004 11:45 AM Subject: Re: [AccessD] Chinese Language > You might want to pick up a used copy of this book on amazon or ebay > It is selling for anywhere between about $50 and $200 used (out of print) > The book rambles a bit and has been panned because it assumes a lot of > OS and VB knowledge. > But should help you out with Jet collation problems in other languages, > codepages and IME's. > It doesn't cover the MS OS above Win 2000. > > Internationalization With Visual Basic > > Author: Michael Kaplan > Publisher: Macmillan Computer Pub > ISBN: 0672319772 > Publication Year: 2000 > > Chapters from book > http://www.i18nwithvb.com/chapters/ > > In (simplified chinese) for your Chinese compatriots > ANSI or Unicode? > http://www.i18nwithvb.com/chapters/Chapter16_sc.htm > Testing International Software > http://www.i18nwithvb.com/chapters/Chapter06_sc.htm > > i18N = Internationalization (or Globalization): mainly a program able to > manage in any locale the locale language and settings. > > M18N = Multinationalization: mainly a program able to manage (display > and input) several languages in any locale. > > L10N = Localization: mainly a program able to display its translated and > adapted version to several locales. > > > Rocky Smolin - Beach Access Software wrote: > > >Yeah it's A2K and it's working beautiful right now. But that's just label > >and command button caption. We'll see once they put in some data. > > > >Rocky > > > >----- Original Message ----- > >From: "William Hindman" > >To: "Access Developers discussion and problem solving" > > > >Sent: Friday, April 30, 2004 8:44 AM > >Subject: Re: [AccessD] Chinese Language > > > > > > > > > >>...was a while back Rocky ...well before 8 so if you (and your client) > >> > >> > >have > > > > > >>the latest you should be ok ...I'm assuming that you're using A2K or AXP > >> > >> > >in > > > > > >>a W2K or WXP environment. > >> > >>William Hindman > >>"The world's becoming a museum of socialist failures." John Dos Passos > >> > >> > >>----- Original Message ----- > >>From: "Rocky Smolin - Beach Access Software" > >>To: "Access Developers discussion and problem solving" > >> > >>Sent: Friday, April 30, 2004 10:37 AM > >>Subject: Re: [AccessD] Chinese Language > >> > >> > >> > >> > >>>William: > >>> > >>>Which SP did you have to get to fix the problem? > >>> > >>>At the moment I'm just working with captions and labels. But when they > >>>start putting in data and I'm operating onthe data, they might run into > >>> > >>> > >>the > >> > >> > >>>problem. > >>> > >>> > >>>Rocky > >>> > >>>----- Original Message ----- > >>>From: "William Hindman" > >>>To: "Access Developers discussion and problem solving" > >>> > >>>Sent: Friday, April 30, 2004 7:17 AM > >>>Subject: Re: [AccessD] Chinese Language > >>> > >>> > >>> > >>> > >>>>...besides the font, you might want to check your Jet SPs ...earlier > >>>>versions of Jet4 had a number of problems with DBCS languages ...I > >>>> > >>>> > >>needed > >> > >> > >>>to > >>> > >>> > >>>>use a Thai set on an mdb and even though the correct font was > >>>> > >>>> > >installed > > > > > >>I > >> > >> > >>>>got a lot of extended characters instead and queries on that data > >>>> > >>>> > >would > > > > > >>>not > >>> > >>> > >>>>work either ...a Jet update cured the problem. > >>>> > >>>>William Hindman > >>>>"The world's becoming a museum of socialist failures." John Dos Passos > >>>> > >>>> > >>>>----- Original Message ----- > >>>>From: "Bob Gajewski" > >>>>To: "Access Developers discussion and problem solving" > >>>> > >>>>Sent: Friday, April 30, 2004 9:52 AM > >>>>Subject: RE: [AccessD] Chinese Language > >>>> > >>>> > >>>> > >>>> > >>>>>Rocky > >>>>> > >>>>>Odds are real strong that you simply don't have the font installed > >>>>> > >>>>> > >>that > >> > >> > >>>>she > >>>> > >>>> > >>>>>used. > >>>>> > >>>>>Bob Gajewski > >>>>> > >>>>> > >>>>>-----Original Message----- > >>>>>From: accessd-bounces at databaseadvisors.com > >>>>>[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky > >>>>> > >>>>> > >>Smolin - > >> > >> > >>>>>Beach Access Software > >>>>>Sent: Friday, April 30, 2004 09:46 > >>>>>To: AccessD at databaseadvisors.com > >>>>>Subject: [AccessD] Chinese Language > >>>>> > >>>>> > >>>>>Dear List: > >>>>> > >>>>>I am trying to create a Chinese language version of my product with > >>>>> > >>>>> > >>the > >> > >> > >>>>help > >>>> > >>>> > >>>>>of a contact in Taiwan. > >>>>> > >>>>>As an initial test she translated the captions on the Main Menu. I > >>>>> > >>>>> > >>>>created > >>>> > >>>> > >>>>>a front-end language file table to hold the two forms of Chinese > >>>>> > >>>>> > >>(simple > >> > >> > >>>>and > >>>> > >>>> > >>>>>complex) and can add fields as I add languages. > >>>>> > >>>>>I sent her the table but she sent back an excel file of the table > >>>>> > >>>>> > >with > > > > > >>>the > >>> > >>> > >>>>>translations. When I open the Excel file the Chinese characters > >>>>> > >>>>> > >>display > >> > >> > >>>>>correctly (of course, how would I know?). > >>>>> > >>>>>But when I copy one of these strings from the Excel cell into the > >>>>> > >>>>> > >>>language > >>> > >>> > >>>>>table in Access it shows as squares - undisplayable character, I > >>>>> > >>>>> > >>assume. > >> > >> > >>>>So > >>>> > >>>> > >>>>>Excel displays the Chinese but not my Access. > >>>>> > >>>>>I'm stating down the Access Help route but if anyone knows how to > >>>>> > >>>>> > >get > > > > > >>>>Access > >>>> > >>>> > >>>>>to display foreign characters can you give me a lead? > >>>>> > >>>>>MTIA > >>>>> > >>>>>Rocky Smolin > >>>>>Beach Access Software > >>>>>http://www.e-z-mrp.com > >>>>> > >>>>>-- > >>>>>_______________________________________________ > >>>>>AccessD mailing list > >>>>>AccessD at databaseadvisors.com > >>>>>http://databaseadvisors.com/mailman/listinfo/accessd > >>>>>Website: http://www.databaseadvisors.com > >>>>> > >>>>> > >>>>>-- > >>>>>_______________________________________________ > >>>>>AccessD mailing list > >>>>>AccessD at databaseadvisors.com > >>>>>http://databaseadvisors.com/mailman/listinfo/accessd > >>>>>Website: http://www.databaseadvisors.com > >>>>> > >>>>> > >>>>> > >>>>-- > >>>>_______________________________________________ > >>>>AccessD mailing list > >>>>AccessD at databaseadvisors.com > >>>>http://databaseadvisors.com/mailman/listinfo/accessd > >>>>Website: http://www.databaseadvisors.com > >>>> > >>>> > >>>-- > >>>_______________________________________________ > >>>AccessD mailing list > >>>AccessD at databaseadvisors.com > >>>http://databaseadvisors.com/mailman/listinfo/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 > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From lists at theopg.com Fri Apr 30 14:22:32 2004 From: lists at theopg.com (MarkH) Date: Fri, 30 Apr 2004 20:22:32 +0100 Subject: [AccessD] Sub form updates not immediately visible to parent In-Reply-To: <409289C3.5000503@shaw.ca> Message-ID: <007001c42ee8$7c8fdd70$8f0d6bd5@netboxxp> Hi all Using AXP in WinXP I have a very complex form and subform where the parent performs calculations based, partly on, records accessed through the subform. Inclusion of the subform records in the calcs is dependant on a yes/no field being set to yes. On the parent is a button which refreshes the calcs. If I change the subforms yes/no value and then click the refresh button on the parent straight away, the change is not always reflected in the calculations. If I wait 5 or 6 seconds (working on a local backend) then everything is fine. I have spent a lot of time trying to simplify the code (the refresh button being a result) but no matter what there is still a delay resulting in the calcs not always being refreshed properly. I tried requerying and saving in the subform both after the edit and when the refresh button is clicked but I still get the same problem. Any one got any pointers, I'd be real greatful. Thanks and have a good weekend (I'm off at last) Mark From Mark.Mitsules at ngc.com Fri Apr 30 15:48:18 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Fri, 30 Apr 2004 16:48:18 -0400 Subject: [AccessD] Deployment Woes Message-ID: I need the weekend to think this over, but I'm open for suggestions. Our department currently utilizes an existing database which is not split. There are an estimated 100 shortcuts to this database littered throughout the department. Do to a rising concern in "concurrency issues", I need to split this db. With such an ingrained dependency on the existing shortcut, it was suggested that I utilize the existing db as nothing more than a glorified .bat file starter to distribute the new FE and subsequently check revision status. This seems like an awful lot of overhead in order to placate the existing user base, and obviously would increase start-up times. What do you think? Mark From jimdettman at earthlink.net Fri Apr 30 15:51:22 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Fri, 30 Apr 2004 16:51:22 -0400 Subject: [AccessD] Sub form updates not immediately visible to parent In-Reply-To: <007001c42ee8$7c8fdd70$8f0d6bd5@netboxxp> Message-ID: Mark, Add a dbEngine.Idle after refreshing the subform records and just before you do the calculations. This will force JET to finish up it's background tasks before continuing with code execution. Jim (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MarkH Sent: Friday, April 30, 2004 3:23 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Sub form updates not immediately visible to parent Hi all Using AXP in WinXP I have a very complex form and subform where the parent performs calculations based, partly on, records accessed through the subform. Inclusion of the subform records in the calcs is dependant on a yes/no field being set to yes. On the parent is a button which refreshes the calcs. If I change the subforms yes/no value and then click the refresh button on the parent straight away, the change is not always reflected in the calculations. If I wait 5 or 6 seconds (working on a local backend) then everything is fine. I have spent a lot of time trying to simplify the code (the refresh button being a result) but no matter what there is still a delay resulting in the calcs not always being refreshed properly. I tried requerying and saving in the subform both after the edit and when the refresh button is clicked but I still get the same problem. Any one got any pointers, I'd be real greatful. Thanks and have a good weekend (I'm off at last) Mark -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at earthlink.net Fri Apr 30 16:06:45 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Fri, 30 Apr 2004 17:06:45 -0400 Subject: [AccessD] Deployment Woes In-Reply-To: Message-ID: Mark, I've seen it done both ways; A "launcher" app as you outlined and a FE which does it's version checks on it's own. The existing short cuts though are not really a big issue. You can easily have the existing app call a bat file which: 1. Deletes the existing shortcut. 2. Creates the directory structure on the client required for the local FE. 3. Copies down the new FE and supporting files. 4. Creates a new shortcut on the desktop to point to the local FE. 5. Creates a shortcut on the desktop to point to a bat file on the server to use for future updates. I do my distribution sets in the latter mode and do a batch file as outlined above. The FE at startup compares an local table to the same table that's in a the FE on the server. If the two don't match versions (I placed an new FE on the server), the app tells the user to update and quits. The update is nothing more then executing the bat file on the server, which works as outlined as above. Personally I think it's a six one way half a dozen another type of thing. Jim (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark S. (Newport News) Sent: Friday, April 30, 2004 4:48 PM To: '[AccessD]' Subject: [AccessD] Deployment Woes I need the weekend to think this over, but I'm open for suggestions. Our department currently utilizes an existing database which is not split. There are an estimated 100 shortcuts to this database littered throughout the department. Do to a rising concern in "concurrency issues", I need to split this db. With such an ingrained dependency on the existing shortcut, it was suggested that I utilize the existing db as nothing more than a glorified .bat file starter to distribute the new FE and subsequently check revision status. This seems like an awful lot of overhead in order to placate the existing user base, and obviously would increase start-up times. What do you think? Mark -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BBarabash at TappeConstruction.com Fri Apr 30 16:14:05 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Fri, 30 Apr 2004 16:14:05 -0500 Subject: [AccessD] Deployment Woes Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE576@TAPPEEXCH01> Mark, I do that for all of my distributed apps. Adds half a second to the startup time of an application (unless, of course, it has to copy a new version of the FE to their workstation.) Don't know how using a batch file would add to the overhead. Can you elaborate? Oh yeah, here is a sample of my batch file. - In our office, all users have the Access 2000 runtime installed on their machines, and we use server-based start menu profiles. - Installing new apps on their workstation is as simple as dropping a shortcut to the batch file in their start menu directory. - I created an app shortcut called Launcher, that has the command line to start the app. It is located in the same server directory as the batch file, and is executed at the end of the batch file processing. Well, here it is! ---------- @echo off rem ** Change this variable with each new version release set verfile=123.ver rem ** Create directory if necessary if exist c:\myappdir\nul goto app mkdir c:\myappdir :app rem ** Copy the newest application file from server if it is newer version if exist c:\myappdir\%verfile% goto end echo Updating application files. Please Wait... copy h:\myappdir\myfrontend.mdb c:\myappdir /y > nul rem ** Delete the existing version file, and create a new one if exist c:\myappdir\*.ver del c:\myappdir\*.ver type nul > c:\myappdir\%verfile% :end rem ** Run the application using Access Runtime start Launcher ---------- -----Original Message----- From: Mitsules, Mark S. (Newport News) [mailto:Mark.Mitsules at ngc.com] Sent: Friday, April 30, 2004 3:48 PM To: '[AccessD]' Subject: [AccessD] Deployment Woes I need the weekend to think this over, but I'm open for suggestions. Our department currently utilizes an existing database which is not split. There are an estimated 100 shortcuts to this database littered throughout the department. Do to a rising concern in "concurrency issues", I need to split this db. With such an ingrained dependency on the existing shortcut, it was suggested that I utilize the existing db as nothing more than a glorified .bat file starter to distribute the new FE and subsequently check revision status. This seems like an awful lot of overhead in order to placate the existing user base, and obviously would increase start-up times. What do you think? Mark -- -------------------------------------------------------------------------------------------------------------------- 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 stuart at lexacorp.com.pg Fri Apr 30 19:30:57 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 01 May 2004 10:30:57 +1000 Subject: [AccessD] OT: Quick view of ico files In-Reply-To: <000c01c42e96$d41c19c0$0100a8c0@razvoj> Message-ID: <40937C61.12204.1B0E35@localhost> On 30 Apr 2004 at 11:36, Ervin Brindza wrote: > I just downloaded from http://www.mvp-access.com/rubenvigon/recursos.htm over 11Mb of .ico and .avi files. Are there any way to browse them quickly? > TIA, > Ervin Irfanview. http://www.irfanview.com -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From accessd667 at yahoo.com Thu Apr 1 00:38:38 2004 From: accessd667 at yahoo.com (S D) Date: Wed, 31 Mar 2004 22:38:38 -0800 (PST) Subject: [AccessD] Form_KeyPress doesn't fire? Message-ID: <20040401063838.56096.qmail@web61102.mail.yahoo.com> Hi group, i've got some code in the form_keypress event. When does this fire? It doesn't fire while in a control, focus on the form ?!?! What am I missing. Private Sub Form_KeyPress(KeyAscii As Integer) MsgBox "hello world" frmKAM_ProcesKey (KeyAscii) End Sub When a user presses the keys [pagedown] or [pageup] while he is editing a record, the record is automaticly saved. I don't want this to happen. That's the KeyPress is for, isn't it? TIA Sander PS: I also tried putting it in KeyDown. PS2: Guess who added Hello world :-) --------------------------------- Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter today From kathryn at bassett.net Thu Apr 1 00:39:37 2004 From: kathryn at bassett.net (Kathryn Bassett) Date: Wed, 31 Mar 2004 22:39:37 -0800 (PST) Subject: [AccessD] "See ya" in a few days Message-ID: <20040401063938.D6CC7725F@sitemail.everyone.net> An embedded and charset-unspecified text was scrubbed... Name: not available URL: From stuart at lexacorp.com.pg Thu Apr 1 02:51:31 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 01 Apr 2004 18:51:31 +1000 Subject: [AccessD] Form_KeyPress doesn't fire? In-Reply-To: <20040401063838.56096.qmail@web61102.mail.yahoo.com> Message-ID: <406C64B3.27644.97AB35@localhost> On 31 Mar 2004 at 22:38, S D wrote: > Hi group, i've got some code in the form_keypress event. When does this > fire? It doesn't fire while in a control, focus on the form ?!?! What > am I missing. Have you set KeyPreview true? -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From accessd667 at yahoo.com Thu Apr 1 03:09:26 2004 From: accessd667 at yahoo.com (S D) Date: Thu, 1 Apr 2004 01:09:26 -0800 (PST) Subject: [AccessD] Form_KeyPress doesn't fire? SOLVED In-Reply-To: <406C64B3.27644.97AB35@localhost> Message-ID: <20040401090926.55775.qmail@web61103.mail.yahoo.com> Stuart, thnx for the reply. However the problem is solved via a procedure.... I was working on a change and noticed the mentioned problem. However the original programmer instructed the users NOT to use that key. Furthermore I'm not allowed to put any effort in (on/up/at?) it. Thnx again. Regards Sander Stuart McLachlan wrote: On 31 Mar 2004 at 22:38, S D wrote: > Hi group, i've got some code in the form_keypress event. When does this > fire? It doesn't fire while in a control, focus on the form ?!?! What > am I missing. Have you set KeyPreview true? -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter today From accessd667 at yahoo.com Thu Apr 1 03:23:13 2004 From: accessd667 at yahoo.com (S D) Date: Thu, 1 Apr 2004 01:23:13 -0800 (PST) Subject: [AccessD] Add new record + fill fields with last entered data? Message-ID: <20040401092313.14263.qmail@web61102.mail.yahoo.com> Hi group, when a user clicks the 'Add new record' button (s)he wants the data of the current record to be displayed in the new record. So if a user is on record 999 with field username filled with AAA and then clicks on 'Add new record' then a new record (1000) must appear with the field username filled with AAA. I know that this can be done using Bookmark or something but I cannot find it anymore. Tips/hints anyone? TIA Sander --------------------------------- Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter today From paul.hartland at fsmail.net Thu Apr 1 03:34:08 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 1 Apr 2004 11:34:08 +0200 (CEST) Subject: [AccessD] Add new record + fill fields with last entered data? Message-ID: <1032098.1080812048448.JavaMail.www@wwinf3003> Sander, An easy way to do this would be to create a public variable(s) to store the data of the current record then when they click the New Record populate the fields with the data from the public variable(s) Paul Message date : Apr 01 2004, 10:25 AM >From : "S D" To : "accessd" Copy to : Subject : [AccessD] Add new record + fill fields with last entered data? Hi group, when a user clicks the 'Add new record' button (s)he wants the data of the current record to be displayed in the new record. So if a user is on record 999 with field username filled with AAA and then clicks on 'Add new record' then a new record (1000) must appear with the field username filled with AAA. I know that this can be done using Bookmark or something but I cannot find it anymore. Tips/hints anyone? TIA Sander --------------------------------- Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter today -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From gustav at cactus.dk Thu Apr 1 03:37:44 2004 From: gustav at cactus.dk (Gustav Brock) Date: Thu, 1 Apr 2004 11:37:44 +0200 Subject: [AccessD] Add new record + fill fields with last entered data? In-Reply-To: <20040401092313.14263.qmail@web61102.mail.yahoo.com> References: <20040401092313.14263.qmail@web61102.mail.yahoo.com> Message-ID: <2310242047.20040401113744@cactus.dk> Hi Sander Tough day? No coffee? Set the DefaultValue at OnCurrent. As for Stuart's note on the KeyPreview, it's not a user feature, but a property of the form. /gustav > when a user clicks the 'Add new record' button (s)he wants the data of the current record to be displayed in the new record. > So if a user is on record 999 with field username filled with AAA and then clicks on 'Add new record' then a new record (1000) must appear with the field username filled with AAA. From accessd667 at yahoo.com Thu Apr 1 04:23:45 2004 From: accessd667 at yahoo.com (S D) Date: Thu, 1 Apr 2004 02:23:45 -0800 (PST) Subject: [AccessD] Add new record + fill fields with last entered data? SOLVED In-Reply-To: <2310242047.20040401113744@cactus.dk> Message-ID: <20040401102345.83772.qmail@web61110.mail.yahoo.com> Hi Gustav, Coffee? Plenty! Tough day...oi! MS-Development team of 5, 4 people are ill....guess who's not.... ;-) Sander Gustav Brock wrote: Hi Sander Tough day? No coffee? Set the DefaultValue at OnCurrent. As for Stuart's note on the KeyPreview, it's not a user feature, but a property of the form. /gustav > when a user clicks the 'Add new record' button (s)he wants the data of the current record to be displayed in the new record. > So if a user is on record 999 with field username filled with AAA and then clicks on 'Add new record' then a new record (1000) must appear with the field username filled with AAA. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter today From rsmethurst at UK.EY.COM Thu Apr 1 04:32:07 2004 From: rsmethurst at UK.EY.COM (rsmethurst at UK.EY.COM) Date: Thu, 1 Apr 2004 11:32:07 +0100 Subject: [AccessD] Copy Chart Message-ID: HI All, I have a Chart object on a Form. I would like to allow users to copy the object, but not be able to cut it? At the moment I have completely disabled the shortcut menu, but this is flexible. Does anyone have any ideas how to do this? TIS Ryan This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. From rsmethurst at UK.EY.COM Thu Apr 1 05:04:00 2004 From: rsmethurst at UK.EY.COM (rsmethurst at UK.EY.COM) Date: Thu, 1 Apr 2004 12:04:00 +0100 Subject: [AccessD] Copy Chart Message-ID: The Send Button strikes again! Managed to get it sorted..thanks anyway. Ryan This e-mail and any attachment are confidential and contain proprietary information, some or all of which may be legally privileged. It is intended solely for the use of the individual or entity to which it is addressed. If you are not the intended recipient, please notify the author immediately by telephone or by replying to this e-mail, and then delete all copies of the e-mail on your system. If you are not the intended recipient, you must not use, disclose, distribute, copy, print or rely on this e-mail. Whilst we have taken reasonable precautions to ensure that this e-mail and any attachment has been checked for viruses, we cannot guarantee that they are virus free and we cannot accept liability for any damage sustained as a result of software viruses. We would advise that you carry out your own virus checks, especially before opening an attachment. The UK firm Ernst & Young LLP is a limited liability partnership registered in England and Wales with registered number OC300001 and is a member practice of Ernst & Young Global. A list of members? names is available for inspection at 1 More London Place, London, SE1 2AF, the firm?s principal place of business and its registered office. From chris at thecube.net Thu Apr 1 05:26:02 2004 From: chris at thecube.net (chris at thecube.net) Date: Thu, 1 Apr 2004 06:26:02 -0500 Subject: [AccessD] Access to SQL Server Message-ID: <7C4579FC1624452FBF36DAF8E7684B70.MAI@freeparking.com> Martin, I have recently tried to convert a stressed (concurrency wise) access97 back end to SQL server, data conversion went smoothly, apart from rectifying memo field corruption in one table. The forms worked fine and ignored the fact that i had swapped the access linked tables for ODBC links to the SQL server. The problem came when i was opening recordsets and it was asking for bizarre parameters, (dbSeeChanges) For purity i love SQL server database power and stored procedures and the extras like getting the database to back itself up nightly, and would not hesitate to convert access databases to SQL or MSDE (is it still called MSDE?) It's just convincing the client that a 1 gig access backend is 'pushing it' Regards Chris ----- Original Message ----- From: Martin Reid To: "Access Developers discussion and problem solving" Sent: Wed, 31 Mar 2004 21:49:03 +0100 Subject: [AccessD] Access to SQL Server If your employer/customer asked you to move all your Access databases onto a central SQL Server what problems other than code rewrite would you bring up? What would stop you doing this or maybe think twice before starting? I am working on a project which looks at moving all of an organisations databases to SQL Server over a period of time. This is not a real project but we are trying to see how developers would react to the possibility. I am really interested in the view point of the actual people who may have to do this. One of the areas I am looking at is performance and issues surrounding redesign. for example at the university we have many small Access dbs which duplicate student data. It would be fairly easy to remove this duplication by moving them to SQL Server and linking to a core set of data making it very easy for us to mange this type of installation. Comments.opinions etc appreciated Martin -- _______________________________________________ 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 Apr 1 05:30:57 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 01 Apr 2004 21:30:57 +1000 Subject: [AccessD] Add new record + fill fields with last entered data? SOLVED In-Reply-To: <20040401102345.83772.qmail@web61110.mail.yahoo.com> References: <2310242047.20040401113744@cactus.dk> Message-ID: <406C8A11.27876.129A13C@localhost> On 1 Apr 2004 at 2:23, S D wrote: > Hi Gustav, > Coffee? Plenty! > Tough day...oi! > > MS-Development team of 5, 4 people are ill....guess who's not.... ;-) > You're lucky. MS Development team of one. Coughing, sneezing, aching muscles, high temperature and deadlines looming on a couple of projects :-( -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From stuart at lexacorp.com.pg Thu Apr 1 05:35:13 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 01 Apr 2004 21:35:13 +1000 Subject: [AccessD] Add new record + fill fields with last entered data? In-Reply-To: <20040401092313.14263.qmail@web61102.mail.yahoo.com> Message-ID: <406C8B11.7322.12D87B6@localhost> On 1 Apr 2004 at 1:23, S D wrote: > Hi group, > > when a user clicks the 'Add new record' button (s)he wants the data of the current record to be displayed in the new record. > So if a user is on record 999 with field username filled with AAA and then clicks on 'Add new record' then a new record (1000) must appear with the field username filled with AAA. > > I know that this can be done using Bookmark or something but I cannot find it anymore. Tips/hints anyone? > One of several ways: Create a system variable Username() (which you can populate on startup or when the first record is saved) and set the default of the field to "=Username()" In fact if I want to record usernames on data entry, I generally use this technique and hide the username field so that they can't alter it. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From accessd667 at yahoo.com Thu Apr 1 05:58:49 2004 From: accessd667 at yahoo.com (S D) Date: Thu, 1 Apr 2004 03:58:49 -0800 (PST) Subject: [AccessD] Add new record + fill fields with last entered data? SOLVED In-Reply-To: <406C8A11.27876.129A13C@localhost> Message-ID: <20040401115849.7339.qmail@web61101.mail.yahoo.com> We're doing mostly 'maintenace' (don't know the English word for this) for over 100 apps...not counting Excel -'tjoep' :-) Stuart McLachlan wrote:On 1 Apr 2004 at 2:23, S D wrote: > Hi Gustav, > Coffee? Plenty! > Tough day...oi! > > MS-Development team of 5, 4 people are ill....guess who's not.... ;-) > You're lucky. MS Development team of one. Coughing, sneezing, aching muscles, high temperature and deadlines looming on a couple of projects :-( -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter today From jarus at amerinet-gpo.com Thu Apr 1 06:24:53 2004 From: jarus at amerinet-gpo.com (Terri Jarus) Date: Thu, 01 Apr 2004 06:24:53 -0600 Subject: [AccessD] Vertical lines in Reports Message-ID: There's some good code for doing this at the following website: http://www.lebans.com/PrintLines.htm Hope this helps. Terri Jarus Director, Contract Support Services jarus at amerinet-gpo.com 314-542-1902 >>> deanellis at iprimus.com.au 03/31/04 03:42PM >>> Hi All, I have an interesting dilema with regards to my reports. I want to place a verticl line down each side of my report to simulate the data in some large frames. I can set the line height to match the distance between two horizontal lines. But here's the catch. Between the two horizonatl lines are a number of feilds that are set to "Can Grow". When the text is placed in here, and the feild grows too much, there is a gap between the bottom horizontal line and the vertical lines. Any suggestions? Cheers Dean --------------------------------------------------------------------------- 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 tinanfields at torchlake.com Thu Apr 1 06:53:00 2004 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Thu, 01 Apr 2004 07:53:00 -0500 Subject: [AccessD] Add new record + fill fields with last entered data? References: <20040401092313.14263.qmail@web61102.mail.yahoo.com> <2310242047.20040401113744@cactus.dk> Message-ID: <406C10AC.7000509@torchlake.com> Gustav, How does one set the DefautlValue at OnCurrent? I don't know how to do that. Thanks, Tina Gustav Brock wrote: >Hi Sander > >Tough day? No coffee? > >Set the DefaultValue at OnCurrent. > >As for Stuart's note on the KeyPreview, it's not a user feature, but a >property of the form. > >/gustav > > > >>when a user clicks the 'Add new record' button (s)he wants the data of the current record to be displayed in the new record. >>So if a user is on record 999 with field username filled with AAA and then clicks on 'Add new record' then a new record (1000) must appear with the field username filled with AAA. >> >> > > > From thevigil at kabelfoon.nl Thu Apr 1 07:16:23 2004 From: thevigil at kabelfoon.nl (Bert-Jan Brinkhuis) Date: Thu, 1 Apr 2004 15:16:23 +0200 Subject: [AccessD] Vertical lines in Reports References: Message-ID: <005401c417eb$8e429c60$3f412d3e@jester> in the detail_format event you can use me.line to draw a line. For the specific format see help (i do not have access installed on the PC i email on) HTH Bert-Jan ----- Original Message ----- From: "Terri Jarus" To: Sent: Thursday, April 01, 2004 2:24 PM Subject: Re: [AccessD] Vertical lines in Reports There's some good code for doing this at the following website: http://www.lebans.com/PrintLines.htm Hope this helps. Terri Jarus Director, Contract Support Services jarus at amerinet-gpo.com 314-542-1902 >>> deanellis at iprimus.com.au 03/31/04 03:42PM >>> Hi All, I have an interesting dilema with regards to my reports. I want to place a verticl line down each side of my report to simulate the data in some large frames. I can set the line height to match the distance between two horizontal lines. But here's the catch. Between the two horizonatl lines are a number of feilds that are set to "Can Grow". When the text is placed in here, and the feild grows too much, there is a gap between the bottom horizontal line and the vertical lines. Any suggestions? Cheers Dean --------------------------------------------------------------------------- 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 From gustav at cactus.dk Thu Apr 1 07:29:57 2004 From: gustav at cactus.dk (Gustav Brock) Date: Thu, 1 Apr 2004 15:29:57 +0200 Subject: [AccessD] Add new record + fill fields with last entered data? In-Reply-To: <406C10AC.7000509@torchlake.com> References: <20040401092313.14263.qmail@web61102.mail.yahoo.com> <2310242047.20040401113744@cactus.dk> <406C10AC.7000509@torchlake.com> Message-ID: <15824175682.20040401152957@cactus.dk> Hi Tina > How does one set the DefautlValue at OnCurrent? I don't know how to do > that. That's not difficult - something like this: Dim txt As TextBox Set txt = Me!txtYourTextBox txt.DefaultValue = txt.Value Set txt = Nothing However, DefaultValue should be a string which means that if your textbox contains decimals or a date/time value you must be careful and convert to a string in US format: txt.DefaultValue = LTrim(Str(txt.Value)) or txt.DefaultValue = _ Format(txt.Value, "\#mm\/dd\/yyyy hh\:nn\:ss AM/PM\#") /gustav >>Tough day? No coffee? >> >>Set the DefaultValue at OnCurrent. >> >>As for Stuart's note on the KeyPreview, it's not a user feature, but a >>property of the form. >> >>/gustav >>>when a user clicks the 'Add new record' button (s)he wants the data of the current record to be displayed in the new record. >>>So if a user is on record 999 with field username filled with AAA and then clicks on 'Add new record' then a new record (1000) must appear with the field username filled with AAA. From accessd667 at yahoo.com Thu Apr 1 07:53:57 2004 From: accessd667 at yahoo.com (S D) Date: Thu, 1 Apr 2004 05:53:57 -0800 (PST) Subject: [AccessD] Create table script...so close... Message-ID: <20040401135357.58096.qmail@web61103.mail.yahoo.com> Hi group, I need to create tables using the layout specified in a certain table. I found the SUB below on msdn.microsoft.com. Changed it a bit and voila the tables are created! HOWEVER, when i specify TEXT the darn thing creates MEMO fields?!? Qua Pasa? Does anybody know how to change this so that I get proper text fields? BTW: arrFileLayout(y, 6) contains the field type (=TEXT) BTW2: I also used the actual word TEXT. TIA, Sander Sub CreateTableX1(ByRef arrFileLayout()) Dim dbs As ADODB.Connection ' Database Dim y As Integer Dim strCreateTable As String Dim strCreate As String Dim strFields As String Set dbs = CurrentProject.Connection() ' Create a table with two text fields. strCreate = "CREATE TABLE ThisTable " For y = 0 To UBound(arrFileLayout, 1) 'Debug.Print (arrFileLayout(y, 0)) strFields = strFields & arrFileLayout(y, 0) & arrFileLayout(y, 6) & "," Next y 'remove last , strFields = Mid(strFields, 1, Len(strFields) - 1) Debug.Print strFields 'Build sql strCreateTable = strCreate & "(" & strFields & ")" Debug.Print strCreateTable 'execute the blody thing dbs.Execute strCreateTable dbs.Close End Sub --------------------------------- Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter today From paul.hartland at fsmail.net Thu Apr 1 08:14:51 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 1 Apr 2004 16:14:51 +0200 (CEST) Subject: [AccessD] Create table script...so close... Message-ID: <4435274.1080828891183.JavaMail.www@wwinf3003> Just a thought have you tried dbText instead: arrFileLayout(y, 6) contains the field type (=dbText) Paul Message date : Apr 01 2004, 02:57 PM >From : "S D" To : "accessd" Copy to : Subject : [AccessD] Create table script...so close... Hi group, I need to create tables using the layout specified in a certain table. I found the SUB below on msdn.microsoft.com. Changed it a bit and voila the tables are created! HOWEVER, when i specify TEXT the darn thing creates MEMO fields?!? Qua Pasa? Does anybody know how to change this so that I get proper text fields? BTW: arrFileLayout(y, 6) contains the field type (=TEXT) BTW2: I also used the actual word TEXT. TIA, Sander Sub CreateTableX1(ByRef arrFileLayout()) Dim dbs As ADODB.Connection ' Database Dim y As Integer Dim strCreateTable As String Dim strCreate As String Dim strFields As String Set dbs = CurrentProject.Connection() ' Create a table with two text fields. strCreate = "CREATE TABLE ThisTable " For y = 0 To UBound(arrFileLayout, 1) 'Debug.Print (arrFileLayout(y, 0)) strFields = strFields & arrFileLayout(y, 0) & arrFileLayout(y, 6) & "," Next y 'remove last , strFields = Mid(strFields, 1, Len(strFields) - 1) Debug.Print strFields 'Build sql strCreateTable = strCreate & "(" & strFields & ")" Debug.Print strCreateTable 'execute the blody thing dbs.Execute strCreateTable dbs.Close End Sub --------------------------------- Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter today -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime From tinanfields at torchlake.com Thu Apr 1 08:21:24 2004 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Thu, 01 Apr 2004 09:21:24 -0500 Subject: [AccessD] Add new record + fill fields with last entered data? References: <20040401092313.14263.qmail@web61102.mail.yahoo.com> <2310242047.20040401113744@cactus.dk> <406C10AC.7000509@torchlake.com> <15824175682.20040401152957@cactus.dk> Message-ID: <406C2564.1000708@torchlake.com> Hi Gustav, I begin to understand. At the OnCurrent Event for the Form, the Event Procedure will set the DefaultValue of each TextBox to the values determined to already be stored in the record just saved. Is that correct? Does this require explicitly listing each TextBox of the form? Thanks, Tinz Gustav Brock wrote: >Hi Tina > > > >>How does one set the DefautlValue at OnCurrent? I don't know how to do >>that. >> >> > >That's not difficult - something like this: > > Dim txt As TextBox > Set txt = Me!txtYourTextBox > > txt.DefaultValue = txt.Value > > Set txt = Nothing > >However, DefaultValue should be a string which means that if your >textbox contains decimals or a date/time value you must be careful and >convert to a string in US format: > > txt.DefaultValue = LTrim(Str(txt.Value)) > >or > > txt.DefaultValue = _ > Format(txt.Value, "\#mm\/dd\/yyyy hh\:nn\:ss AM/PM\#") > >/gustav > > > > >>>Tough day? No coffee? >>> >>>Set the DefaultValue at OnCurrent. >>> >>>As for Stuart's note on the KeyPreview, it's not a user feature, but a >>>property of the form. >>> >>>/gustav >>> >>> > > > >>>>when a user clicks the 'Add new record' button (s)he wants the data of the current record to be displayed in the new record. >>>>So if a user is on record 999 with field username filled with AAA and then clicks on 'Add new record' then a new record (1000) must appear with the field username filled with AAA. >>>> >>>> > > > From sgeller at cce.umn.edu Thu Apr 1 08:30:45 2004 From: sgeller at cce.umn.edu (Susan Geller) Date: Thu, 1 Apr 2004 08:30:45 -0600 Subject: [AccessD] Default Printer for Access Report Message-ID: Thanks, Doris, that was the problem. I'm wondering if, as a fail safe measure, can I write code that would make sure that when that Printer Dialogue box opens it is always set to go to the default printer? I'd want users to be able to pick a different option if they desired, but just as the default, that the print box would be set to go to the default printer. Where would I put the code? --Susan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Tuesday, March 30, 2004 12:03 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Default Printer for Access Report Open that report in design view and then click on "File" and choose "Page Setup". It is possible it get set accidentally when the report was designed. 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 Geller Sent: Tuesday, March 30, 2004 12:28 PM To: accessd at databaseadvisors.com Subject: [AccessD] Default Printer for Access Report I have a reporting tool built in Access (2002) that is essentially a wizard where users pick a report, set criteria and then see their output. There are nearly 100 reports in the app. When a user choses to print a report, the default printer that comes up in the print dialog box is the default printer set on their machine, EXCEPT for one of the reports. On that one report only, the default printer that comes up in the dialogue box is a different printer. All users get this different printer. I did not write any code or make any settings to indicate printer choice. What could be happening? How can I get this one report to print to the user's default printer? Note: The only way that users can print a report is with a toolbar PRINT button that I brings up the dialogue box. There is no file menu from the reports and there is no button with a printer icon that sends reports straight to the printer. --Susan Susan B. Geller Office of Information Systems College of Continuing Education University of Minnesota 306 Wesbrook Hall 77 Pleasant Street SE Minneapolis, MN 55455 Phone: 612-626-4785 Fax: 612-625-2568 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Apr 1 08:36:29 2004 From: gustav at cactus.dk (Gustav Brock) Date: Thu, 1 Apr 2004 16:36:29 +0200 Subject: [AccessD] Add new record + fill fields with last entered data? In-Reply-To: <406C2564.1000708@torchlake.com> References: <20040401092313.14263.qmail@web61102.mail.yahoo.com> <2310242047.20040401113744@cactus.dk> <406C10AC.7000509@torchlake.com> <15824175682.20040401152957@cactus.dk> <406C2564.1000708@torchlake.com> Message-ID: <18028167422.20040401163629@cactus.dk> Hi Tina > I begin to understand. At the OnCurrent Event for the Form, the Event > Procedure will set the DefaultValue of each TextBox to the values > determined to already be stored in the record just saved. Is that > correct? Yes and no. No saving needs to take place: At the OnCurrent Event for the Form, the Event Procedure will set the DefaultValue of each TextBox (or ComboBox etc.) to the values for the current record of those controls. > Does this require explicitly listing each TextBox of the form? Yes. /gustav >>>How does one set the DefautlValue at OnCurrent? I don't know how to do >>>that. >> >>That's not difficult - something like this: >> >> Dim txt As TextBox >> Set txt = Me!txtYourTextBox >> >> txt.DefaultValue = txt.Value >> >> Set txt = Nothing >> >>However, DefaultValue should be a string which means that if your >>textbox contains decimals or a date/time value you must be careful and >>convert to a string in US format: >> >> txt.DefaultValue = LTrim(Str(txt.Value)) >> >>or >> >> txt.DefaultValue = _ >> Format(txt.Value, "\#mm\/dd\/yyyy hh\:nn\:ss AM/PM\#") >> >>/gustav >> >>>>Tough day? No coffee? >>>> >>>>Set the DefaultValue at OnCurrent. >>>> >>>>As for Stuart's note on the KeyPreview, it's not a user feature, but a >>>>property of the form. >>>> >>>>/gustav >>>> >>>>>when a user clicks the 'Add new record' button (s)he wants the data of the current record to be displayed in the new record. >>>>>So if a user is on record 999 with field username filled with AAA and then clicks on 'Add new record' then a new record (1000) must appear with the field username filled with AAA. From mikedorism at adelphia.net Thu Apr 1 08:56:32 2004 From: mikedorism at adelphia.net (Mike & Doris Manning) Date: Thu, 1 Apr 2004 09:56:32 -0500 Subject: [AccessD] Default Printer for Access Report In-Reply-To: Message-ID: <000001c417f9$85866710$a1194244@hargrove.internal> By default, the Printer Dialogue box does go to the default printer unless the report has one specifically specified. As far as I know, you have no control over the Printer Dialogue box from within Access. 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 Geller Sent: Thursday, April 01, 2004 9:31 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Default Printer for Access Report Thanks, Doris, that was the problem. I'm wondering if, as a fail safe measure, can I write code that would make sure that when that Printer Dialogue box opens it is always set to go to the default printer? I'd want users to be able to pick a different option if they desired, but just as the default, that the print box would be set to go to the default printer. Where would I put the code? --Susan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Tuesday, March 30, 2004 12:03 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Default Printer for Access Report Open that report in design view and then click on "File" and choose "Page Setup". It is possible it get set accidentally when the report was designed. 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 Geller Sent: Tuesday, March 30, 2004 12:28 PM To: accessd at databaseadvisors.com Subject: [AccessD] Default Printer for Access Report I have a reporting tool built in Access (2002) that is essentially a wizard where users pick a report, set criteria and then see their output. There are nearly 100 reports in the app. When a user choses to print a report, the default printer that comes up in the print dialog box is the default printer set on their machine, EXCEPT for one of the reports. On that one report only, the default printer that comes up in the dialogue box is a different printer. All users get this different printer. I did not write any code or make any settings to indicate printer choice. What could be happening? How can I get this one report to print to the user's default printer? Note: The only way that users can print a report is with a toolbar PRINT button that I brings up the dialogue box. There is no file menu from the reports and there is no button with a printer icon that sends reports straight to the printer. --Susan Susan B. Geller Office of Information Systems College of Continuing Education University of Minnesota 306 Wesbrook Hall 77 Pleasant Street SE Minneapolis, MN 55455 Phone: 612-626-4785 Fax: 612-625-2568 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Apr 1 09:06:22 2004 From: gustav at cactus.dk (Gustav Brock) Date: Thu, 1 Apr 2004 17:06:22 +0200 Subject: [AccessD] Add new record + fill fields with last entered data? In-Reply-To: <18028167422.20040401163629@cactus.dk> References: <20040401092313.14263.qmail@web61102.mail.yahoo.com> <2310242047.20040401113744@cactus.dk> <406C10AC.7000509@torchlake.com> <15824175682.20040401152957@cactus.dk> <406C2564.1000708@torchlake.com> <18028167422.20040401163629@cactus.dk> Message-ID: <3229960731.20040401170622@cactus.dk> Hi Tina >> I begin to understand. At the OnCurrent Event for the Form, the Event >> Procedure will set the DefaultValue of each TextBox to the values >> determined to already be stored in the record just saved. Is that >> correct? > Yes and no. No saving needs to take place: > At the OnCurrent Event for the Form, the Event Procedure will set the > DefaultValue of each TextBox (or ComboBox etc.) to the values for the > current record of those controls. Well, of course, if you wish to use the recently saved values as default values (a very common situation) every time a new record has been added; then you would use the AfterUpdate event of the form. /gustav >>>>How does one set the DefautlValue at OnCurrent? I don't know how to do >>>>that. >>> >>>That's not difficult - something like this: >>> >>> Dim txt As TextBox >>> Set txt = Me!txtYourTextBox >>> >>> txt.DefaultValue = txt.Value >>> >>> Set txt = Nothing >>> >>>However, DefaultValue should be a string which means that if your >>>textbox contains decimals or a date/time value you must be careful and >>>convert to a string in US format: >>> >>> txt.DefaultValue = LTrim(Str(txt.Value)) >>> >>>or >>> >>> txt.DefaultValue = _ >>> Format(txt.Value, "\#mm\/dd\/yyyy hh\:nn\:ss AM/PM\#") >>> >>>/gustav >>> >>>>>Tough day? No coffee? >>>>> >>>>>Set the DefaultValue at OnCurrent. >>>>> >>>>>As for Stuart's note on the KeyPreview, it's not a user feature, but a >>>>>property of the form. >>>>> >>>>>/gustav >>>>> >>>>>>when a user clicks the 'Add new record' button (s)he wants the data of the current record to be displayed in the new record. >>>>>>So if a user is on record 999 with field username filled with AAA and then clicks on 'Add new record' then a new record (1000) must appear with the field username filled with AAA. From artful at rogers.com Thu Apr 1 12:17:57 2004 From: artful at rogers.com (Arthur Fuller) Date: Thu, 1 Apr 2004 10:17:57 -0800 Subject: [AccessD] Amazing Stories In-Reply-To: <20040401135357.58096.qmail@web61103.mail.yahoo.com> Message-ID: <03f501c41815$a8b28c70$6501a8c0@rock> Check out http://www.museumofhoaxes.com/aprilfool2.html for the 100 greatest April Fool hoaxes of all time. The BBC one about Swiss spaghetti farmers is priceless, and you can even watch the black-and-white mockumentary the beeb created. Shades of Monty Python. Also check out #33, CBC's Michael Enright's alleged interview with Jimmy Carter in which Enright calls him a washed up peanut farmer. Arthur From Christian.Brock at hoffman.army.mil Thu Apr 1 09:22:22 2004 From: Christian.Brock at hoffman.army.mil (Brock, Christian T, HRC-Alexandria) Date: Thu, 1 Apr 2004 10:22:22 -0500 Subject: [AccessD] Add new record + fill fields with last entered data ? Message-ID: <65EB528406CCD211BE8F00902717D23D0795CA41@perscomex31.hoffman.army.mil> Why go to the trouble? From the statement of intent, What the user really wants is a duplicate current record button, instead of a new record button. The Access XP command button wizard will allow you to create a button that will duplicate the current record. It creates the following lines of code DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70 DoCmd.DoMenuItem acFormBar, acEditMenu, 2, , acMenuVer70 DoCmd.DoMenuItem acFormBar, acEditMenu, 5, , acMenuVer70 'Paste Append Obviously MS did not update the wizard to use readable code. The following will work as well. DoCmd.RunCommand acCmdSelectRecord DoCmd.RunCommand acCmdCopy DoCmd.RunCommand acCmdPasteAppend Christian Brock -----Original Message----- From: Gustav Brock [mailto:gustav at cactus.dk] Sent: Thursday, 01 April 2004 09:36 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Add new record + fill fields with last entered data? Hi Tina > I begin to understand. At the OnCurrent Event for the Form, the Event > Procedure will set the DefaultValue of each TextBox to the values > determined to already be stored in the record just saved. Is that > correct? Yes and no. No saving needs to take place: At the OnCurrent Event for the Form, the Event Procedure will set the DefaultValue of each TextBox (or ComboBox etc.) to the values for the current record of those controls. > Does this require explicitly listing each TextBox of the form? Yes. /gustav >>>How does one set the DefautlValue at OnCurrent? I don't know how to do >>>that. >> >>That's not difficult - something like this: >> >> Dim txt As TextBox >> Set txt = Me!txtYourTextBox >> >> txt.DefaultValue = txt.Value >> >> Set txt = Nothing >> >>However, DefaultValue should be a string which means that if your >>textbox contains decimals or a date/time value you must be careful and >>convert to a string in US format: >> >> txt.DefaultValue = LTrim(Str(txt.Value)) >> >>or >> >> txt.DefaultValue = _ >> Format(txt.Value, "\#mm\/dd\/yyyy hh\:nn\:ss AM/PM\#") >> >>/gustav >> >>>>Tough day? No coffee? >>>> >>>>Set the DefaultValue at OnCurrent. >>>> >>>>As for Stuart's note on the KeyPreview, it's not a user feature, but a >>>>property of the form. >>>> >>>>/gustav >>>> >>>>>when a user clicks the 'Add new record' button (s)he wants the data of the current record to be displayed in the new record. >>>>>So if a user is on record 999 with field username filled with AAA and then clicks on 'Add new record' then a new record (1000) must appear with the field username filled with AAA. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pjones at btl.net Thu Apr 1 09:38:43 2004 From: pjones at btl.net (Paul M. Jones) Date: Thu, 01 Apr 2004 09:38:43 -0600 Subject: [AccessD] Compacting A2K In-Reply-To: References: Message-ID: <6.0.0.22.2.20040401093356.02ead9e8@btlmail.btl.net> I've seen this problem on Windows Terminal server systems when the option to 'compact on exit' is set on the MS Access database. The compact works fine on stand alone systems but fails on the Terminal Server machine. This is particularly the case when other users are accessing the MS Access file during that time. as well. I have also found that even if the compact works, the permissions on the file is changed so that other users cannot access it. I suspect that Citrix has similar issues since Windows TS is supposed to be a subset of Citrix. Paul M. Jones Spire Services Ltd. > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby > >Sent: Tuesday, March 30, 2004 9:15 PM > >To: Access Developers discussion and problem solving > >Subject: RE: [AccessD] Compacting A2K > > > > > >Office Service packs applied? Jet SPs applied? Windows SPs applied? > > > >John W. Colby > >www.ColbyConsulting.com > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gregg > >Sent: Tuesday, March 30, 2004 10:16 PM > >To: Access Developers discussion and problem solving > >Subject: [AccessD] Compacting A2K > > > > > >I'm really stumped on this one. > > > >I have a 2K database that won't compact. It says the temporary database is > >in use. Every once in while it will work... maybe 1 out of 20 tries. This > >app is running under NT4 and Citrix. > > > >I opened a new database and imported just the tables and got the same > >error. > >I have a mixture of SQL and Access linked tables as well as FE tables. I > >start removing tables until it begins working but when I add the last > >tables > >I deleted back in, it still works. It's not consistent. > > > >When it begins to work I start getting another occasional error. At the end > >of the compact process I get an error that says "Cannot find field > >'Description'". I do have tables with a field name of description but when > >I remove them I still get the error. The Help says it is error 3799. I > >can't find anything on it anywhere. > > > >Also, I can move the app to another machine and it will compact fine at > >least until it looks for the SQL links. We rebuilt Citrix and NT OS which > >did not help. > > > >Gregg Steinbrenner > > > > > >-- > >_______________________________________________ > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > > > > > > >-- > >_______________________________________________ > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > > > > > >-- > >_______________________________________________ > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.com > >_________________________________________________________________ >Is your PC infected? Get a FREE online computer virus scan from McAfee? >Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From wdhindman at bellsouth.net Thu Apr 1 09:48:34 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Thu, 1 Apr 2004 10:48:34 -0500 Subject: [AccessD] Add new record + fill fields with last entered data? References: <65EB528406CCD211BE8F00902717D23D0795CA41@perscomex31.hoffman.army.mil> Message-ID: <001501c41800$caaf4fd0$6101a8c0@dejpolsys> ...that "wizard" simply bites ...I'd create a "duplicate" button that saves the pk of the current record to a variable or tag and then a query using the saved pk to append a "new" record that is a duplicate of the saved one except for the pk ...that would get you a dupe of every form field including any subform. William Hindman ipsedixitism: something is true because I myself have said it is true ...the philosophy of Noam Chomsky :) ----- Original Message ----- From: "Brock, Christian T, HRC-Alexandria" To: "'Access Developers discussion and problem solving'" Sent: Thursday, April 01, 2004 10:22 AM Subject: RE: [AccessD] Add new record + fill fields with last entered data? > Why go to the trouble? From the statement of intent, What the user really > wants is a duplicate current record button, instead of a new record button. > The Access XP command button wizard will allow you to create a button that > will duplicate the current record. > > It creates the following lines of code > DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70 > DoCmd.DoMenuItem acFormBar, acEditMenu, 2, , acMenuVer70 > DoCmd.DoMenuItem acFormBar, acEditMenu, 5, , acMenuVer70 'Paste Append > > Obviously MS did not update the wizard to use readable code. The following > will work as well. > DoCmd.RunCommand acCmdSelectRecord > DoCmd.RunCommand acCmdCopy > DoCmd.RunCommand acCmdPasteAppend > > > Christian Brock > > > > > -----Original Message----- > From: Gustav Brock [mailto:gustav at cactus.dk] > Sent: Thursday, 01 April 2004 09:36 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Add new record + fill fields with last entered data? > > > Hi Tina > > > I begin to understand. At the OnCurrent Event for the Form, the Event > > Procedure will set the DefaultValue of each TextBox to the values > > determined to already be stored in the record just saved. Is that > > correct? > > Yes and no. No saving needs to take place: > > At the OnCurrent Event for the Form, the Event Procedure will set the > DefaultValue of each TextBox (or ComboBox etc.) to the values for the > current record of those controls. > > > Does this require explicitly listing each TextBox of the form? > > Yes. > > /gustav > > > >>>How does one set the DefautlValue at OnCurrent? I don't know how to do > >>>that. > >> > >>That's not difficult - something like this: > >> > >> Dim txt As TextBox > >> Set txt = Me!txtYourTextBox > >> > >> txt.DefaultValue = txt.Value > >> > >> Set txt = Nothing > >> > >>However, DefaultValue should be a string which means that if your > >>textbox contains decimals or a date/time value you must be careful and > >>convert to a string in US format: > >> > >> txt.DefaultValue = LTrim(Str(txt.Value)) > >> > >>or > >> > >> txt.DefaultValue = _ > >> Format(txt.Value, "\#mm\/dd\/yyyy hh\:nn\:ss AM/PM\#") > >> > >>/gustav > >> > >>>>Tough day? No coffee? > >>>> > >>>>Set the DefaultValue at OnCurrent. > >>>> > >>>>As for Stuart's note on the KeyPreview, it's not a user feature, but a > >>>>property of the form. > >>>> > >>>>/gustav > >>>> > >>>>>when a user clicks the 'Add new record' button (s)he wants the data of > the current record to be displayed in the new record. > >>>>>So if a user is on record 999 with field username filled with AAA and > then clicks on 'Add new record' then a new record (1000) must appear with > the field username filled with AAA. > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Apr 1 09:48:39 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Thu, 01 Apr 2004 07:48:39 -0800 Subject: [AccessD] "See ya" in a few days In-Reply-To: <20040401063938.D6CC7725F@sitemail.everyone.net> Message-ID: Hi Kathryn: Hope you have not lost anything important, that you can not recover from somewhere. Good luck Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Kathryn Bassett Sent: Wednesday, March 31, 2004 10:40 PM To: Access Developers discussion and problem solving Subject: [AccessD] "See ya" in a few days I'm doing my mail via web today (using husband's computer) and probably most of tomorrow. My hard drive crashed as I was booting up this morning. Not recoverable. I have been looking at new computers but wasn't planning to buy it til tax refund got here in another couple weeks. But.... Got new one tonight, but it will take a day or two to get everything loaded. Kathryn Bassett -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Thu Apr 1 12:54:29 2004 From: artful at rogers.com (Arthur Fuller) Date: Thu, 1 Apr 2004 10:54:29 -0800 Subject: [AccessD] Add new record + fill fields with last entered data?SOLVED In-Reply-To: <20040401115849.7339.qmail@web61101.mail.yahoo.com> Message-ID: <03f701c4181a$c430b800$6501a8c0@rock> Here is a function that I use for this purpose. It's specific to each particular field on a form, because in my experience I seldom wanted ALL the fields to be duplicated; but rather just many of them. Note that I typically define a compiler directive called TALKON. Public Function CarryForward() Const cQuote = """" 'Thats two quotes Dim ctlCurrent As Control Set ctlCurrent = Screen.ActiveControl ctlCurrent.DefaultValue = cQuote & ctlCurrent.Value & cQuote #If TALKON = True Then Debug.Print "Current default value: " & ctlCurrent.DefaultValue Debug.Print "New default value: " & ctlCurrent.DefaultValue #End If Set ctlCurrent = Nothing End Function Arthur -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of S D Sent: Thursday, April 01, 2004 3:59 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Add new record + fill fields with last entered data?SOLVED We're doing mostly 'maintenace' (don't know the English word for this) for over 100 apps...not counting Excel -'tjoep' :-) Stuart McLachlan wrote:On 1 Apr 2004 at 2:23, S D wrote: > Hi Gustav, > Coffee? Plenty! > Tough day...oi! > > MS-Development team of 5, 4 people are ill....guess who's not.... ;-) > You're lucky. MS Development team of one. Coughing, sneezing, aching muscles, high temperature and deadlines looming on a couple of projects :-( From Christian.Brock at hoffman.army.mil Thu Apr 1 10:24:31 2004 From: Christian.Brock at hoffman.army.mil (Brock, Christian T, HRC-Alexandria) Date: Thu, 1 Apr 2004 11:24:31 -0500 Subject: [AccessD] Add new record + fill fields with last entered data ? Message-ID: <65EB528406CCD211BE8F00902717D23D0795CA9D@perscomex31.hoffman.army.mil> The copy record and paste append commands will get every form field and subform. Do not see how what you say to do provides any benefit over using the three DoCmd.RunCommand statements. Christian Brock -----Original Message----- From: William Hindman [mailto:wdhindman at bellsouth.net] Sent: Thursday, 01 April 2004 10:49 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Add new record + fill fields with last entered data? ...that "wizard" simply bites ...I'd create a "duplicate" button that saves the pk of the current record to a variable or tag and then a query using the saved pk to append a "new" record that is a duplicate of the saved one except for the pk ...that would get you a dupe of every form field including any subform. William Hindman ipsedixitism: something is true because I myself have said it is true ...the philosophy of Noam Chomsky :) ----- Original Message ----- From: "Brock, Christian T, HRC-Alexandria" To: "'Access Developers discussion and problem solving'" Sent: Thursday, April 01, 2004 10:22 AM Subject: RE: [AccessD] Add new record + fill fields with last entered data? > Why go to the trouble? From the statement of intent, What the user really > wants is a duplicate current record button, instead of a new record button. > The Access XP command button wizard will allow you to create a button that > will duplicate the current record. > > It creates the following lines of code > DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70 > DoCmd.DoMenuItem acFormBar, acEditMenu, 2, , acMenuVer70 > DoCmd.DoMenuItem acFormBar, acEditMenu, 5, , acMenuVer70 'Paste Append > > Obviously MS did not update the wizard to use readable code. The following > will work as well. > DoCmd.RunCommand acCmdSelectRecord > DoCmd.RunCommand acCmdCopy > DoCmd.RunCommand acCmdPasteAppend > > > Christian Brock > > > > > -----Original Message----- > From: Gustav Brock [mailto:gustav at cactus.dk] > Sent: Thursday, 01 April 2004 09:36 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Add new record + fill fields with last entered data? > > > Hi Tina > > > I begin to understand. At the OnCurrent Event for the Form, the Event > > Procedure will set the DefaultValue of each TextBox to the values > > determined to already be stored in the record just saved. Is that > > correct? > > Yes and no. No saving needs to take place: > > At the OnCurrent Event for the Form, the Event Procedure will set the > DefaultValue of each TextBox (or ComboBox etc.) to the values for the > current record of those controls. > > > Does this require explicitly listing each TextBox of the form? > > Yes. > > /gustav > > > >>>How does one set the DefautlValue at OnCurrent? I don't know how to do > >>>that. > >> > >>That's not difficult - something like this: > >> > >> Dim txt As TextBox > >> Set txt = Me!txtYourTextBox > >> > >> txt.DefaultValue = txt.Value > >> > >> Set txt = Nothing > >> > >>However, DefaultValue should be a string which means that if your > >>textbox contains decimals or a date/time value you must be careful and > >>convert to a string in US format: > >> > >> txt.DefaultValue = LTrim(Str(txt.Value)) > >> > >>or > >> > >> txt.DefaultValue = _ > >> Format(txt.Value, "\#mm\/dd\/yyyy hh\:nn\:ss AM/PM\#") > >> > >>/gustav > >> > >>>>Tough day? No coffee? > >>>> > >>>>Set the DefaultValue at OnCurrent. > >>>> > >>>>As for Stuart's note on the KeyPreview, it's not a user feature, but a > >>>>property of the form. > >>>> > >>>>/gustav > >>>> > >>>>>when a user clicks the 'Add new record' button (s)he wants the data of > the current record to be displayed in the new record. > >>>>>So if a user is on record 999 with field username filled with AAA and > then clicks on 'Add new record' then a new record (1000) must appear with > the field username filled with AAA. > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Apr 1 10:28:54 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 1 Apr 2004 08:28:54 -0800 Subject: [AccessD] Create table script...so close... Message-ID: When you're using ADO, you have to use ADO datatype enums. Try adVarChar. TEXT is the data type for memo fields in SQL Server. Charlotte Foust -----Original Message----- From: S D [mailto:accessd667 at yahoo.com] Sent: Thursday, April 01, 2004 5:54 AM To: accessd Subject: [AccessD] Create table script...so close... Hi group, I need to create tables using the layout specified in a certain table. I found the SUB below on msdn.microsoft.com. Changed it a bit and voila the tables are created! HOWEVER, when i specify TEXT the darn thing creates MEMO fields?!? Qua Pasa? Does anybody know how to change this so that I get proper text fields? BTW: arrFileLayout(y, 6) contains the field type (=TEXT) BTW2: I also used the actual word TEXT. TIA, Sander Sub CreateTableX1(ByRef arrFileLayout()) Dim dbs As ADODB.Connection ' Database Dim y As Integer Dim strCreateTable As String Dim strCreate As String Dim strFields As String Set dbs = CurrentProject.Connection() ' Create a table with two text fields. strCreate = "CREATE TABLE ThisTable " For y = 0 To UBound(arrFileLayout, 1) 'Debug.Print (arrFileLayout(y, 0)) strFields = strFields & arrFileLayout(y, 0) & arrFileLayout(y, 6) & "," Next y 'remove last , strFields = Mid(strFields, 1, Len(strFields) - 1) Debug.Print strFields 'Build sql strCreateTable = strCreate & "(" & strFields & ")" Debug.Print strCreateTable 'execute the blody thing dbs.Execute strCreateTable dbs.Close End Sub --------------------------------- Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter today -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Thu Apr 1 10:32:38 2004 From: gustav at cactus.dk (Gustav Brock) Date: Thu, 1 Apr 2004 18:32:38 +0200 Subject: [AccessD] Add new record + fill fields with last entered data?SOLVED In-Reply-To: <03f701c4181a$c430b800$6501a8c0@rock> References: <03f701c4181a$c430b800$6501a8c0@rock> Message-ID: <12435136453.20040401183238@cactus.dk> Hi Arthur > Here is a function that I use for this purpose. It's specific to each > particular field on a form, because in my experience I seldom wanted ALL > the fields to be duplicated; but rather just many of them. Note that I > typically define a compiler directive called TALKON. > Public Function CarryForward() > Const cQuote = """" 'Thats two quotes > Dim ctlCurrent As Control > Set ctlCurrent = Screen.ActiveControl > ctlCurrent.DefaultValue = cQuote & ctlCurrent.Value & cQuote In my experience this may fail in a non-US localized environment for decimals and date/time values as .Value will be converted to a localized string. A typo here? > #If TALKON = True Then > Debug.Print "Current default value: " & ctlCurrent.DefaultValue > Debug.Print "New default value: " & ctlCurrent.DefaultValue > #End If You are retrieving the same value twice ... > Set ctlCurrent = Nothing > End Function /gustav From serbach at new.rr.com Thu Apr 1 10:46:44 2004 From: serbach at new.rr.com (Steven W. Erbach) Date: Thu, 1 Apr 2004 10:46:44 -0600 Subject: [AccessD] Vertical lines in Reports Message-ID: <20040401104644.1145960650.serbach@new.rr.com> Dean, I've struggled with this off and on over the past year. I finally just colored the background of the Detail section a light gray (230,230,230) and colored all the text boxes white. That gives the effect of a nice subtle grid. Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "I think that the send button actually turns brains on." -- Bryan Carbonnell From jwcolby at colbyconsulting.com Thu Apr 1 10:49:43 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 1 Apr 2004 11:49:43 -0500 Subject: [AccessD] Add new record + fill fields with last entereddata?SOLVED In-Reply-To: <03f701c4181a$c430b800$6501a8c0@rock> Message-ID: And of course, to a man with a hammer... Add this CarryForward() (slightly modified) to the control classes for the controls you want this functionality for, clsTxt if only the text control etc. Then in the dclsFrm form class create a colCarryForward collection to hold pointers to the control classes you want to activate this functionality for. In dclsFrm build a SetCarryForward method with a ParamArray to pass in the controls you want to set this up for. In the form's Open event call dclsFrm.SetCarryForward ctl1, ctl2, ctl3. In SetCarryForward iterate the ParamArray and grab a pointer to the class for each control and place in the colCarryForward collection. In mfrm_BeforeUpdate call a method DoCarryForward() that iterates the colCarryForward collection and calls the control class' CarryForward method. Having done this you now have CarryForward functionality for any form for any project. Just turn it on as you need it by calling the dclsFrm.SetCarryForward method passing in controls to carry forward. Of course you will need a hammer to do this. ;-) John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Arthur Fuller Sent: Thursday, April 01, 2004 1:54 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Add new record + fill fields with last entereddata?SOLVED Here is a function that I use for this purpose. It's specific to each particular field on a form, because in my experience I seldom wanted ALL the fields to be duplicated; but rather just many of them. Note that I typically define a compiler directive called TALKON. Public Function CarryForward() Const cQuote = """" 'Thats two quotes Dim ctlCurrent As Control Set ctlCurrent = Screen.ActiveControl ctlCurrent.DefaultValue = cQuote & ctlCurrent.Value & cQuote #If TALKON = True Then Debug.Print "Current default value: " & ctlCurrent.DefaultValue Debug.Print "New default value: " & ctlCurrent.DefaultValue #End If Set ctlCurrent = Nothing End Function Arthur -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of S D Sent: Thursday, April 01, 2004 3:59 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Add new record + fill fields with last entered data?SOLVED We're doing mostly 'maintenace' (don't know the English word for this) for over 100 apps...not counting Excel -'tjoep' :-) Stuart McLachlan wrote:On 1 Apr 2004 at 2:23, S D wrote: > Hi Gustav, > Coffee? Plenty! > Tough day...oi! > > MS-Development team of 5, 4 people are ill....guess who's not.... ;-) > You're lucky. MS Development team of one. Coughing, sneezing, aching muscles, high temperature and deadlines looming on a couple of projects :-( -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From serbach at new.rr.com Thu Apr 1 10:54:30 2004 From: serbach at new.rr.com (Steven W. Erbach) Date: Thu, 1 Apr 2004 10:54:30 -0600 Subject: [AccessD] Access XP & FMS for 2000 Message-ID: <20040401105430.2139825652.serbach@new.rr.com> Joe, >> If I use the Access 2000 format of Access XP can use the FMS Developer tools without messing anything up? << Sorry, I use the FMS tools but I don't use Access XP. However the FMS web site seems to indicate that the latest tools handle 2000, XP, and 2003. You may be able to upgrade. Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "By supporting people who believe they should run your life, you cannot expect anything to change - ever." - Harry Browne From JHewson at karta.com Thu Apr 1 10:50:27 2004 From: JHewson at karta.com (Jim Hewson) Date: Thu, 1 Apr 2004 10:50:27 -0600 Subject: [AccessD] Vertical lines in Reports Message-ID: <9C382E065F54AE48BC3AA7925DCBB01C13830D@karta-exc-int.Karta.com> I too have struggled with this for a long time. I finally went to MS to see what they had to say. Nothing helped. When this thread started, I looked back on the items I had saved. I found this jewel waiting for me. It became clear what needed to be done, Debbie Elam posted the below code in January of this year. It was so simple... Thanks Debbie. Jim Put this in the detail section on format Dim X As Single Me.ScaleMode = 5 Me.DrawWidth = 3 X = 0 Me.Line (X, 0)-(X, 22) X = 0.9604 Me.Line (X, 0)-(X, 22) X = 1.9083 Me.Line (X, 0)-(X, 22) X = 2.7604 Me.Line (X, 0)-(X, 22) X = 3.6271 Me.Line (X, 0)-(X, 22) X = 4.3354 Me.Line (X, 0)-(X, 22) X = 5.2111 Me.Line (X, 0)-(X, 22) X = 5.95 The value of X is the number of inches from the left you want the line to be. Debbie -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Steven W. Erbach Sent: Thursday, April 01, 2004 10:47 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Vertical lines in Reports Dean, I've struggled with this off and on over the past year. I finally just colored the background of the Detail section a light gray (230,230,230) and colored all the text boxes white. That gives the effect of a nice subtle grid. Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "I think that the send button actually turns brains on." -- Bryan Carbonnell -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Thu Apr 1 10:55:05 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Thu, 1 Apr 2004 11:55:05 -0500 Subject: [AccessD] Vertical lines in Reports In-Reply-To: <9C382E065F54AE48BC3AA7925DCBB01C13830D@karta-exc-int.Karta.com> Message-ID: <20040401165503.QGRT1715.imf16aec.mail.bellsouth.net@SUSANONE> Saved my bottom too -- was going to post it but you beat me to it. :) Susan H. I too have struggled with this for a long time. I finally went to MS to see what they had to say. Nothing helped. When this thread started, I looked back on the items I had saved. I found this jewel waiting for me. It became clear what needed to be done, Debbie Elam posted the below code in January of this year. It was so simple... Thanks Debbie. Jim Put this in the detail section on format Dim X As Single Me.ScaleMode = 5 Me.DrawWidth = 3 X = 0 Me.Line (X, 0)-(X, 22) X = 0.9604 Me.Line (X, 0)-(X, 22) X = 1.9083 Me.Line (X, 0)-(X, 22) X = 2.7604 Me.Line (X, 0)-(X, 22) X = 3.6271 Me.Line (X, 0)-(X, 22) X = 4.3354 Me.Line (X, 0)-(X, 22) X = 5.2111 Me.Line (X, 0)-(X, 22) X = 5.95 The value of X is the number of inches from the left you want the line to be. From DElam at jenkens.com Thu Apr 1 11:01:13 2004 From: DElam at jenkens.com (Elam, Debbie) Date: Thu, 1 Apr 2004 11:01:13 -0600 Subject: [AccessD] Vertical lines in Reports Message-ID: <7B1961ED924D1A459E378C9B1BB22B4C0106BCC8@natexch.jenkens.com> I actually found this jewel buried in a report I inherited when I started at Jenkens. Wish I knew who to attribute this to. Debbie -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Thursday, April 01, 2004 10:55 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Vertical lines in Reports Saved my bottom too -- was going to post it but you beat me to it. :) Susan H. I too have struggled with this for a long time. I finally went to MS to see what they had to say. Nothing helped. When this thread started, I looked back on the items I had saved. I found this jewel waiting for me. It became clear what needed to be done, Debbie Elam posted the below code in January of this year. It was so simple... Thanks Debbie. Jim Put this in the detail section on format Dim X As Single Me.ScaleMode = 5 Me.DrawWidth = 3 X = 0 Me.Line (X, 0)-(X, 22) X = 0.9604 Me.Line (X, 0)-(X, 22) X = 1.9083 Me.Line (X, 0)-(X, 22) X = 2.7604 Me.Line (X, 0)-(X, 22) X = 3.6271 Me.Line (X, 0)-(X, 22) X = 4.3354 Me.Line (X, 0)-(X, 22) X = 5.2111 Me.Line (X, 0)-(X, 22) X = 5.95 The value of X is the number of inches from the left you want the line to be. -- _______________________________________________ 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 dmcafee at pacbell.net Thu Apr 1 11:20:57 2004 From: dmcafee at pacbell.net (David McAfee (Home)) Date: Thu, 1 Apr 2004 09:20:57 -0800 Subject: [AccessD] Vertical lines in Reports In-Reply-To: <7B1961ED924D1A459E378C9B1BB22B4C0106BCC8@natexch.jenkens.com> Message-ID: no, X is the number of twips (inches * 1440) IF you tag the controls with something like COLORED Then place the following code in the report's Detail_Format event Dim ctl As Control Me.ScaleMode = 5 For Each ctl In Me.Controls If ctl.Tag = "Colored" Then ctl.BackColor = Highlight Me.Line ((ctl.Left / 1440), 0)-((ctl.Left / 1440), 10) Me.Line (((ctl.Left + ctl.Width) / 1440), 0)-(((ctl.Left + ctl.Width) / 1440), 10) End If Next ctl You'll get your lines! David -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Elam, Debbie Sent: Thursday, April 01, 2004 9:01 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Vertical lines in Reports I actually found this jewel buried in a report I inherited when I started at Jenkens. Wish I knew who to attribute this to. Debbie -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Thursday, April 01, 2004 10:55 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Vertical lines in Reports Saved my bottom too -- was going to post it but you beat me to it. :) Susan H. I too have struggled with this for a long time. I finally went to MS to see what they had to say. Nothing helped. When this thread started, I looked back on the items I had saved. I found this jewel waiting for me. It became clear what needed to be done, Debbie Elam posted the below code in January of this year. It was so simple... Thanks Debbie. Jim Put this in the detail section on format Dim X As Single Me.ScaleMode = 5 Me.DrawWidth = 3 X = 0 Me.Line (X, 0)-(X, 22) X = 0.9604 Me.Line (X, 0)-(X, 22) X = 1.9083 Me.Line (X, 0)-(X, 22) X = 2.7604 Me.Line (X, 0)-(X, 22) X = 3.6271 Me.Line (X, 0)-(X, 22) X = 4.3354 Me.Line (X, 0)-(X, 22) X = 5.2111 Me.Line (X, 0)-(X, 22) X = 5.95 The value of X is the number of inches from the left you want the line to be. -- _______________________________________________ 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. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dmcafee at pacbell.net Thu Apr 1 11:31:14 2004 From: dmcafee at pacbell.net (David McAfee (Home)) Date: Thu, 1 Apr 2004 09:31:14 -0800 Subject: [AccessD] Vertical lines in Reports In-Reply-To: Message-ID: Sorry tha first line was to be deleted, X is inches. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of David McAfee (Home) Sent: Thursday, April 01, 2004 9:21 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Vertical lines in Reports no, X is the number of twips (inches * 1440) IF you tag the controls with something like COLORED Then place the following code in the report's Detail_Format event Dim ctl As Control Me.ScaleMode = 5 For Each ctl In Me.Controls If ctl.Tag = "Colored" Then ctl.BackColor = Highlight Me.Line ((ctl.Left / 1440), 0)-((ctl.Left / 1440), 10) Me.Line (((ctl.Left + ctl.Width) / 1440), 0)-(((ctl.Left + ctl.Width) / 1440), 10) End If Next ctl You'll get your lines! David -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Elam, Debbie Sent: Thursday, April 01, 2004 9:01 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Vertical lines in Reports I actually found this jewel buried in a report I inherited when I started at Jenkens. Wish I knew who to attribute this to. Debbie -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Thursday, April 01, 2004 10:55 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Vertical lines in Reports Saved my bottom too -- was going to post it but you beat me to it. :) Susan H. I too have struggled with this for a long time. I finally went to MS to see what they had to say. Nothing helped. When this thread started, I looked back on the items I had saved. I found this jewel waiting for me. It became clear what needed to be done, Debbie Elam posted the below code in January of this year. It was so simple... Thanks Debbie. Jim Put this in the detail section on format Dim X As Single Me.ScaleMode = 5 Me.DrawWidth = 3 X = 0 Me.Line (X, 0)-(X, 22) X = 0.9604 Me.Line (X, 0)-(X, 22) X = 1.9083 Me.Line (X, 0)-(X, 22) X = 2.7604 Me.Line (X, 0)-(X, 22) X = 3.6271 Me.Line (X, 0)-(X, 22) X = 4.3354 Me.Line (X, 0)-(X, 22) X = 5.2111 Me.Line (X, 0)-(X, 22) X = 5.95 The value of X is the number of inches from the left you want the line to be. -- _______________________________________________ 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. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ranthony at wrsystems.com Thu Apr 1 11:45:06 2004 From: ranthony at wrsystems.com (ranthony at wrsystems.com) Date: Thu, 1 Apr 2004 12:45:06 -0500 Subject: [AccessD] Vertical lines in Reports Message-ID: <5F21A4E8B8DD734992EF9E70AC9D3064128B46@mail2.wrsystems.com> Thanks for sharing this everyone, I just so happen to be working on a report and the customer wants vertical lines a la an excel spreadsheet. Schww-eet! -----Original Message----- From: Elam, Debbie [mailto:DElam at jenkens.com] Sent: Thursday, April 01, 2004 12:01 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Vertical lines in Reports I actually found this jewel buried in a report I inherited when I started at Jenkens. Wish I knew who to attribute this to. Debbie -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Thursday, April 01, 2004 10:55 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Vertical lines in Reports Saved my bottom too -- was going to post it but you beat me to it. :) Susan H. I too have struggled with this for a long time. I finally went to MS to see what they had to say. Nothing helped. When this thread started, I looked back on the items I had saved. I found this jewel waiting for me. It became clear what needed to be done, Debbie Elam posted the below code in January of this year. It was so simple... Thanks Debbie. Jim Put this in the detail section on format Dim X As Single Me.ScaleMode = 5 Me.DrawWidth = 3 X = 0 Me.Line (X, 0)-(X, 22) X = 0.9604 Me.Line (X, 0)-(X, 22) X = 1.9083 Me.Line (X, 0)-(X, 22) X = 2.7604 Me.Line (X, 0)-(X, 22) X = 3.6271 Me.Line (X, 0)-(X, 22) X = 4.3354 Me.Line (X, 0)-(X, 22) X = 5.2111 Me.Line (X, 0)-(X, 22) X = 5.95 The value of X is the number of inches from the left you want the line to be. -- _______________________________________________ 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. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From doug at murphyscreativity.com Thu Apr 1 14:06:32 2004 From: doug at murphyscreativity.com (Doug Murphy) Date: Thu, 1 Apr 2004 12:06:32 -0800 Subject: [AccessD] Transfer text field name In-Reply-To: <2F8793082E00D4119A1700B0D0216BF80222789D@main2.marlow.com> Message-ID: <003301c41824$d6dfb190$8500a8c0@CX615377a> Folks, I am outputting the results of a query into a comma delimited text file using the transfer text method. Field names are to be put in the first row. Some of the query fields use assigned names, e.g., Street #:[fldStreetNo]. The interesting thing is that the "#" in the field name shows up in the query when the results are viewed but shows up as a "." when I look at the text file. I put the symbols in quotes they are not part of the output. Any one have a suggestion on how to get transfer text to put the "#" where it is supposed to be? Thanks Doug From carbonnb at sympatico.ca Thu Apr 1 14:59:25 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Thu, 01 Apr 2004 15:59:25 -0500 Subject: [AccessD] Another Searchable Archives Message-ID: <406C3C5D.28088.636217@localhost> Well folks, it appears that the stars and planets have been in alignment this week, except for everyone in the house being sick. AccessD now has a second searchable archive!!! The archives hosted by DBA, itself, are now searchable. This is in addition to Drew's archive, which have always been searchable. You can get to it by pointing your ever so familiar web browser to: http://databaseadvisors.com/pipermail/accessd/ Just fill in your favourite search term and click search and all will be found (we hope :) The only limitation is that the search index is updated once per day, so any posts made after 0207 CST will not be searchable until the following day. Actually all of the lists will become searchable like this over time, as posts are made to it. Any list that has had a post to it since March 29th, should be searchable now. So if you want your favourite list to be searchable, just post to it. This includes dba-visio!!! :-) -- Bryan Carbonnell - carbonnb at sympatico.ca When everything is coming your way......you're in the wrong lane. From DWUTKA at marlow.com Thu Apr 1 15:08:27 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Thu, 1 Apr 2004 15:08:27 -0600 Subject: [AccessD] Another Searchable Archives Message-ID: <2F8793082E00D4119A1700B0D0216BF802227A60@main2.marlow.com> Good job! Are we going to move the archives on my site to the official site? Since dba's site is now searchable? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Bryan Carbonnell Sent: Thursday, April 01, 2004 2:59 PM To: access Developers discussion and problem solving Subject: [AccessD] Another Searchable Archives Well folks, it appears that the stars and planets have been in alignment this week, except for everyone in the house being sick. AccessD now has a second searchable archive!!! The archives hosted by DBA, itself, are now searchable. This is in addition to Drew's archive, which have always been searchable. You can get to it by pointing your ever so familiar web browser to: http://databaseadvisors.com/pipermail/accessd/ Just fill in your favourite search term and click search and all will be found (we hope :) The only limitation is that the search index is updated once per day, so any posts made after 0207 CST will not be searchable until the following day. Actually all of the lists will become searchable like this over time, as posts are made to it. Any list that has had a post to it since March 29th, should be searchable now. So if you want your favourite list to be searchable, just post to it. This includes dba-visio!!! :-) -- Bryan Carbonnell - carbonnb at sympatico.ca When everything is coming your way......you're in the wrong lane. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Apr 1 15:42:34 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 1 Apr 2004 16:42:34 -0500 Subject: [AccessD] Transfer text field name In-Reply-To: <003301c41824$d6dfb190$8500a8c0@CX615377a> Message-ID: Personally I would recommend getting rid of the # entirely. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Doug Murphy Sent: Thursday, April 01, 2004 3:07 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Transfer text field name Folks, I am outputting the results of a query into a comma delimited text file using the transfer text method. Field names are to be put in the first row. Some of the query fields use assigned names, e.g., Street #:[fldStreetNo]. The interesting thing is that the "#" in the field name shows up in the query when the results are viewed but shows up as a "." when I look at the text file. I put the symbols in quotes they are not part of the output. Any one have a suggestion on how to get transfer text to put the "#" where it is supposed to be? Thanks Doug -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From doug at murphyscreativity.com Thu Apr 1 16:03:45 2004 From: doug at murphyscreativity.com (Doug Murphy) Date: Thu, 1 Apr 2004 14:03:45 -0800 Subject: [AccessD] Transfer text field name In-Reply-To: Message-ID: <003b01c41835$33f1bb70$8500a8c0@CX615377a> John, If it was in my control it wouldn't be there. Unfortunately this file is imported into another commercial program that uses that field name. All I am doing is converting the data from one format to another for the import. The idea was to use a query and a couple of formating functions to reformat some data from a file downloaded from the web and format it for input into the program. This was supposed to be a quick project; I get burned every time I think that way. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Thursday, April 01, 2004 1:43 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Transfer text field name Personally I would recommend getting rid of the # entirely. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Doug Murphy Sent: Thursday, April 01, 2004 3:07 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Transfer text field name Folks, I am outputting the results of a query into a comma delimited text file using the transfer text method. Field names are to be put in the first row. Some of the query fields use assigned names, e.g., Street #:[fldStreetNo]. The interesting thing is that the "#" in the field name shows up in the query when the results are viewed but shows up as a "." when I look at the text file. I put the symbols in quotes they are not part of the output. Any one have a suggestion on how to get transfer text to put the "#" where it is supposed to be? Thanks Doug -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Thu Apr 1 16:14:29 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 02 Apr 2004 08:14:29 +1000 Subject: [AccessD] Transfer text field name In-Reply-To: <003b01c41835$33f1bb70$8500a8c0@CX615377a> References: Message-ID: <406D20E5.32257.376CF9E@localhost> On 1 Apr 2004 at 14:03, Doug Murphy wrote: > John, > > If it was in my control it wouldn't be there. Unfortunately this file > is imported into another commercial program that uses that field name. > All I am doing is converting the data from one format to another for the > import. The idea was to use a query and a couple of formating functions > to reformat some data from a file downloaded from the web and format it > for input into the program. This was supposed to be a quick project; I > get burned every time I think that way. > I avoid the TransferText becuase of these sorts of problems. It's quite simple to role your own and have complete control over what you are doing. Here's a very basic outline for a job specific export. You can automate a lot of this by passing parameters, looping thourhg fields etc Function ExportText() as Long Dim rs as Recodset Set rs = CurrentDb.OPenrecordset((qryMyQuery") Open "MyExportFile" for Output as #1 Print #1,"Street #,Second Field Name,Field with & in it,Etc" While not eof(1) Print #1, rs(0) & ",'" & rs(1) & "','" & rs(2) & "'," & rs(3) Wend Close #1 End Function -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From dw-murphy at cox.net Thu Apr 1 16:31:57 2004 From: dw-murphy at cox.net (Doug Murphy) Date: Thu, 1 Apr 2004 14:31:57 -0800 Subject: [AccessD] Transfer text field name In-Reply-To: <406D20E5.32257.376CF9E@localhost> Message-ID: <003d01c41839$2444aee0$8500a8c0@CX615377a> Stuart, Thanks for the code. When I originally looked at this that was the approach I was going to take, but then to save time (ha!) I decided to use transfertext. Lesson learned. Thanks again. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Thursday, April 01, 2004 2:14 PM To: Access Developers discussion and problemsolving Subject: RE: [AccessD] Transfer text field name On 1 Apr 2004 at 14:03, Doug Murphy wrote: > John, > > If it was in my control it wouldn't be there. Unfortunately this file > is imported into another commercial program that uses that field name. > All I am doing is converting the data from one format to another for > the import. The idea was to use a query and a couple of formating > functions to reformat some data from a file downloaded from the web > and format it for input into the program. This was supposed to be a > quick project; I get burned every time I think that way. > I avoid the TransferText becuase of these sorts of problems. It's quite simple to role your own and have complete control over what you are doing. Here's a very basic outline for a job specific export. You can automate a lot of this by passing parameters, looping thourhg fields etc Function ExportText() as Long Dim rs as Recodset Set rs = CurrentDb.OPenrecordset((qryMyQuery") Open "MyExportFile" for Output as #1 Print #1,"Street #,Second Field Name,Field with & in it,Etc" While not eof(1) Print #1, rs(0) & ",'" & rs(1) & "','" & rs(2) & "'," & rs(3) Wend Close #1 End Function -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Apr 1 18:06:32 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 1 Apr 2004 19:06:32 -0500 Subject: [AccessD] Transfer text field name In-Reply-To: <003b01c41835$33f1bb70$8500a8c0@CX615377a> Message-ID: >This was supposed to be a quick project; I get burned every time I think that way. ROTFL. Yup! I believe we have some example code hanging around somewhere that shows how to do this just using code. Have you looked on AccessD's file area? John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Doug Murphy Sent: Thursday, April 01, 2004 5:04 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Transfer text field name John, If it was in my control it wouldn't be there. Unfortunately this file is imported into another commercial program that uses that field name. All I am doing is converting the data from one format to another for the import. The idea was to use a query and a couple of formating functions to reformat some data from a file downloaded from the web and format it for input into the program. This was supposed to be a quick project; I get burned every time I think that way. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Thursday, April 01, 2004 1:43 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Transfer text field name Personally I would recommend getting rid of the # entirely. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Doug Murphy Sent: Thursday, April 01, 2004 3:07 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Transfer text field name Folks, I am outputting the results of a query into a comma delimited text file using the transfer text method. Field names are to be put in the first row. Some of the query fields use assigned names, e.g., Street #:[fldStreetNo]. The interesting thing is that the "#" in the field name shows up in the query when the results are viewed but shows up as a "." when I look at the text file. I put the symbols in quotes they are not part of the output. Any one have a suggestion on how to get transfer text to put the "#" where it is supposed to be? Thanks Doug -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Apr 1 18:12:43 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 1 Apr 2004 19:12:43 -0500 Subject: [AccessD] Transfer text field name In-Reply-To: <406D20E5.32257.376CF9E@localhost> Message-ID: In the coming months I will have a similar problem to solve. My client handles claim processing for disability insurance - the middle man / call center role. Their client - the insurance company - is moving to new software and I have to change to outputting just the fields that we already export to them, perhaps 60 or 70 fields, into a single record of hundreds of fields, formatted EXACTLY as they dictate, fixed field width. They can't even handle delimited, it must be fixed width fields. Literally about 3000 bytes per record with all the blank fields just spaces. Mainframes are just silly sometimes. You should see the record format. It's like hundreds of fields just "reserved" for some future need. I shudder to think of what their program looks like. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stuart McLachlan Sent: Thursday, April 01, 2004 5:14 PM To: Access Developers discussion and problemsolving Subject: RE: [AccessD] Transfer text field name On 1 Apr 2004 at 14:03, Doug Murphy wrote: > John, > > If it was in my control it wouldn't be there. Unfortunately this file > is imported into another commercial program that uses that field name. > All I am doing is converting the data from one format to another for the > import. The idea was to use a query and a couple of formating functions > to reformat some data from a file downloaded from the web and format it > for input into the program. This was supposed to be a quick project; I > get burned every time I think that way. > I avoid the TransferText becuase of these sorts of problems. It's quite simple to role your own and have complete control over what you are doing. Here's a very basic outline for a job specific export. You can automate a lot of this by passing parameters, looping thourhg fields etc Function ExportText() as Long Dim rs as Recodset Set rs = CurrentDb.OPenrecordset((qryMyQuery") Open "MyExportFile" for Output as #1 Print #1,"Street #,Second Field Name,Field with & in it,Etc" While not eof(1) Print #1, rs(0) & ",'" & rs(1) & "','" & rs(2) & "'," & rs(3) Wend Close #1 End Function -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From doug at murphyscreativity.com Thu Apr 1 18:26:34 2004 From: doug at murphyscreativity.com (Doug Murphy) Date: Thu, 1 Apr 2004 16:26:34 -0800 Subject: [AccessD] Transfer text field name In-Reply-To: Message-ID: <000201c41849$2a749860$8500a8c0@CX615377a> John, I followed Stuarts lead and wrote a file routine that output all the field names and then associated values into a delimited text file. The # comes through fine now. It was a good suggestion. Should have started this way. I'd still like to know what the problem is with transfertext, but that may just be one of life's mysteries. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Thursday, April 01, 2004 4:07 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Transfer text field name >This was supposed to be a quick project; I get burned every time I >think that way. ROTFL. Yup! I believe we have some example code hanging around somewhere that shows how to do this just using code. Have you looked on AccessD's file area? John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Doug Murphy Sent: Thursday, April 01, 2004 5:04 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Transfer text field name John, If it was in my control it wouldn't be there. Unfortunately this file is imported into another commercial program that uses that field name. All I am doing is converting the data from one format to another for the import. The idea was to use a query and a couple of formating functions to reformat some data from a file downloaded from the web and format it for input into the program. This was supposed to be a quick project; I get burned every time I think that way. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Thursday, April 01, 2004 1:43 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Transfer text field name Personally I would recommend getting rid of the # entirely. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Doug Murphy Sent: Thursday, April 01, 2004 3:07 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Transfer text field name Folks, I am outputting the results of a query into a comma delimited text file using the transfer text method. Field names are to be put in the first row. Some of the query fields use assigned names, e.g., Street #:[fldStreetNo]. The interesting thing is that the "#" in the field name shows up in the query when the results are viewed but shows up as a "." when I look at the text file. I put the symbols in quotes they are not part of the output. Any one have a suggestion on how to get transfer text to put the "#" where it is supposed to be? Thanks Doug -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Thu Apr 1 18:42:34 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 02 Apr 2004 10:42:34 +1000 Subject: [AccessD] Transfer text field name In-Reply-To: References: <406D20E5.32257.376CF9E@localhost> Message-ID: <406D439A.28009.4CF693@localhost> On 1 Apr 2004 at 19:12, John W. Colby wrote: > In the coming months I will have a similar problem to solve. My client > handles claim processing for disability insurance - the middle man / call > center role. Their client - the insurance company - is moving to new > software and I have to change to outputting just the fields that we already > export to them, perhaps 60 or 70 fields, into a single record of hundreds of > fields, formatted EXACTLY as they dictate, fixed field width. They can't > even handle delimited, it must be fixed width fields. Literally about 3000 > bytes per record with all the blank fields just spaces. > A suggestion based on bitter experience for when you get round to this. Don't try to build the output by concatenation of variable length strings, it quickly becomes a nightmare to keep track of where you are. Build the full string first with strOutputString = Space$(3000) Then insert your fields in the correct position with Mid$(strOutputString,lngFldPosn) = strFieldData -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From jwcolby at colbyconsulting.com Thu Apr 1 19:08:27 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 1 Apr 2004 20:08:27 -0500 Subject: [AccessD] Transfer text field name In-Reply-To: <406D439A.28009.4CF693@localhost> Message-ID: Whoa, thanks for that. It never would have occurred to me to do that. I have a file spec with all the fields and their start / stop positions, as well as the format. I kinda figured I'd build a table that has all of that info plus my corresponding field name (it's a rather monstrous query since it pulls from about a dozen normalized tables). Then build a function that opens the recordset and builds each record based on their field spec table. In the end, what a PITA. But your suggestion will definitely make things easier. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stuart McLachlan Sent: Thursday, April 01, 2004 7:43 PM To: Access Developers discussion and problemsolving Subject: RE: [AccessD] Transfer text field name On 1 Apr 2004 at 19:12, John W. Colby wrote: > In the coming months I will have a similar problem to solve. My client > handles claim processing for disability insurance - the middle man / call > center role. Their client - the insurance company - is moving to new > software and I have to change to outputting just the fields that we already > export to them, perhaps 60 or 70 fields, into a single record of hundreds of > fields, formatted EXACTLY as they dictate, fixed field width. They can't > even handle delimited, it must be fixed width fields. Literally about 3000 > bytes per record with all the blank fields just spaces. > A suggestion based on bitter experience for when you get round to this. Don't try to build the output by concatenation of variable length strings, it quickly becomes a nightmare to keep track of where you are. Build the full string first with strOutputString = Space$(3000) Then insert your fields in the correct position with Mid$(strOutputString,lngFldPosn) = strFieldData -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. -- _______________________________________________ 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 Apr 1 21:48:33 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 02 Apr 2004 13:48:33 +1000 Subject: [AccessD] Transfer text field name In-Reply-To: References: <406D439A.28009.4CF693@localhost> Message-ID: <406D6F31.1161.F73C9A@localhost> On 1 Apr 2004 at 20:08, John W. Colby wrote: > Whoa, thanks for that. It never would have occurred to me to do that. > > I have a file spec with all the fields and their start / stop positions, as > well as the format. I kinda figured I'd build a table that has all of that > info plus my corresponding field name (it's a rather monstrous query since > it pulls from about a dozen normalized tables). Then build a function that > opens the recordset and builds each record based on their field spec table. > > In the end, what a PITA. But your suggestion will definitely make things > easier. > You will probably find that some data is left justified and others right justified, possibly with different numbers of decimal places. If you store a RightJustify flag and NoOfDecimalPlaces in your table along with the start position and length you can then build quite a simple function to step through each field in the table, read and format values appropriately and poke them into the correct positions. It ends up being quite trivial to do, regardless of how big/complex the required output row is. The big advantage is that you can handle subsequent changes in the output spec very easily. (It's sort of a "space delimited export framework" ) -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From adtp at touchtelindia.net Thu Apr 1 22:07:57 2004 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Fri, 2 Apr 2004 09:37:57 +0530 Subject: [AccessD] Vertical lines in Reports References: <20040401104644.1145960650.serbach@new.rr.com> Message-ID: <00a901c41869$1c512850$7c1865cb@winxp> Dean, For a practical example, you could also see my sample db named ReportBorders at Rogers Access Library (other developers section) - http://www.rogersaccesslibrary.com The underlying approach could be adapted suitably for your specific needs. Regards, A.D.Tejpal -------------- ----- Original Message ----- From: Steven W. Erbach To: Access Developers discussion and problem solving Sent: Thursday, April 01, 2004 22:16 Subject: Re: [AccessD] Vertical lines in Reports Dean, I've struggled with this off and on over the past year. I finally just colored the background of the Detail section a light gray (230,230,230) and colored all the text boxes white. That gives the effect of a nice subtle grid. Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "I think that the send button actually turns brains on." -- Bryan Carbonnell From jwelz at hotmail.com Thu Apr 1 23:46:34 2004 From: jwelz at hotmail.com (Jürgen Welz) Date: Thu, 01 Apr 2004 22:46:34 -0700 Subject: [AccessD] Transfer text field name Message-ID: You may want to look at lset for fixed width data files: http://www.vbwm.com/art_2001/UDT05/ is an example. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: "John W. Colby" > >Whoa, thanks for that. It never would have occurred to me to do that. > >I have a file spec with all the fields and their start / stop positions, as >well as the format. I kinda figured I'd build a table that has all of that >info plus my corresponding field name (it's a rather monstrous query since >it pulls from about a dozen normalized tables). Then build a function that >opens the recordset and builds each record based on their field spec table. > >In the end, what a PITA. But your suggestion will definitely make things >easier. > >John W. Colby >www.ColbyConsulting.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stuart >McLachlan >Sent: Thursday, April 01, 2004 7:43 PM >To: Access Developers discussion and problemsolving >Subject: RE: [AccessD] Transfer text field name > > >On 1 Apr 2004 at 19:12, John W. Colby wrote: > > > In the coming months I will have a similar problem to solve. My client > > handles claim processing for disability insurance - the middle man / >call > > center role. Their client - the insurance company - is moving to new > > software and I have to change to outputting just the fields that we >already > > export to them, perhaps 60 or 70 fields, into a single record of >hundreds >of > > fields, formatted EXACTLY as they dictate, fixed field width. They >can't > > even handle delimited, it must be fixed width fields. Literally about >3000 > > bytes per record with all the blank fields just spaces. > > > > >A suggestion based on bitter experience for when you get round to this. >Don't try to build the output by concatenation of variable length strings, >it quickly >becomes a nightmare to keep track of where you are. > >Build the full string first with >strOutputString = Space$(3000) > >Then insert your fields in the correct position with >Mid$(strOutputString,lngFldPosn) = strFieldData > > > > >-- >Lexacorp Ltd >http://www.lexacorp.com.pg >Information Technology Consultancy, Software Development,System Support. _________________________________________________________________ MSN Premium includes powerful parental controls and get 2 months FREE* http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines From accessd667 at yahoo.com Thu Apr 1 23:49:25 2004 From: accessd667 at yahoo.com (S D) Date: Thu, 1 Apr 2004 21:49:25 -0800 (PST) Subject: [AccessD] Create table script...so close...SOLVED!! In-Reply-To: <4435274.1080828891183.JavaMail.www@wwinf3003> Message-ID: <20040402054925.28435.qmail@web61102.mail.yahoo.com> Hi Paul, Charlotte, both db_Text and adVarChar where incorrect, thnx anyway. The solution is: rapapapa...string! debug.print arrFileLayout(y, 6) string Go figure. Sander PS: I know can import/export interface files using 4 'main' tables. tblInterface ( stores interface ID and direction (import/ export) tblInterfaceData (Staging table: stores every line of the interface) tblInterfaceLayout (stores the positions/fields/mandetory/PK/FK/etc/etc for every interface added to tblInterface, is also used to check tblInterfaceData for incorrect data) tblInterfaceDistribution (Stores tags and such (if any) to identify wich line of data must be exported to wich table eg tag JUR0-I must be exported to tbl_GAS_1020_MI) :-) I know there are a lot of interfaces this stuff doesn't work for but.... paul.hartland at fsmail.net wrote: Just a thought have you tried dbText instead: arrFileLayout(y, 6) contains the field type (=dbText) Paul Message date : Apr 01 2004, 02:57 PM >From : "S D" To : "accessd" Copy to : Subject : [AccessD] Create table script...so close... Hi group, I need to create tables using the layout specified in a certain table. I found the SUB below on msdn.microsoft.com. Changed it a bit and voila the tables are created! HOWEVER, when i specify TEXT the darn thing creates MEMO fields?!? Qua Pasa? Does anybody know how to change this so that I get proper text fields? BTW: arrFileLayout(y, 6) contains the field type (=TEXT) BTW2: I also used the actual word TEXT. TIA, Sander Sub CreateTableX1(ByRef arrFileLayout()) Dim dbs As ADODB.Connection ' Database Dim y As Integer Dim strCreateTable As String Dim strCreate As String Dim strFields As String Set dbs = CurrentProject.Connection() ' Create a table with two text fields. strCreate = "CREATE TABLE ThisTable " For y = 0 To UBound(arrFileLayout, 1) 'Debug.Print (arrFileLayout(y, 0)) strFields = strFields & arrFileLayout(y, 0) & arrFileLayout(y, 6) & "," Next y 'remove last , strFields = Mid(strFields, 1, Len(strFields) - 1) Debug.Print strFields 'Build sql strCreateTable = strCreate & "(" & strFields & ")" Debug.Print strCreateTable 'execute the blody thing dbs.Execute strCreateTable dbs.Close End Sub --------------------------------- Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter today -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Freeserve AnyTime - HALF PRICE for the first 3 months - Save ?7.50 a month www.freeserve.com/anytime -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter today From accessd667 at yahoo.com Thu Apr 1 23:54:27 2004 From: accessd667 at yahoo.com (S D) Date: Thu, 1 Apr 2004 21:54:27 -0800 (PST) Subject: [AccessD] Add new record + fill fields with last entered data ? In-Reply-To: <65EB528406CCD211BE8F00902717D23D0795CA9D@perscomex31.hoffman.army.mil> Message-ID: <20040402055427.30545.qmail@web61102.mail.yahoo.com> Hihi here we go again. Everybody uses a different approach and they all work! Some are more complex then others and in some cases (way) too heavy, how's that sledgehammer John ;-) but they all help! thnx a lot. Now all i have to do is do a LOT of documenting and then it's of to find myself a weddingsuit! regards, sander "Brock, Christian T, HRC-Alexandria" wrote: The copy record and paste append commands will get every form field and subform. Do not see how what you say to do provides any benefit over using the three DoCmd.RunCommand statements. Christian Brock -----Original Message----- From: William Hindman [mailto:wdhindman at bellsouth.net] Sent: Thursday, 01 April 2004 10:49 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Add new record + fill fields with last entered data? ...that "wizard" simply bites ...I'd create a "duplicate" button that saves the pk of the current record to a variable or tag and then a query using the saved pk to append a "new" record that is a duplicate of the saved one except for the pk ...that would get you a dupe of every form field including any subform. William Hindman ipsedixitism: something is true because I myself have said it is true ...the philosophy of Noam Chomsky :) ----- Original Message ----- From: "Brock, Christian T, HRC-Alexandria" To: "'Access Developers discussion and problem solving'" Sent: Thursday, April 01, 2004 10:22 AM Subject: RE: [AccessD] Add new record + fill fields with last entered data? > Why go to the trouble? From the statement of intent, What the user really > wants is a duplicate current record button, instead of a new record button. > The Access XP command button wizard will allow you to create a button that > will duplicate the current record. > > It creates the following lines of code > DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70 > DoCmd.DoMenuItem acFormBar, acEditMenu, 2, , acMenuVer70 > DoCmd.DoMenuItem acFormBar, acEditMenu, 5, , acMenuVer70 'Paste Append > > Obviously MS did not update the wizard to use readable code. The following > will work as well. > DoCmd.RunCommand acCmdSelectRecord > DoCmd.RunCommand acCmdCopy > DoCmd.RunCommand acCmdPasteAppend > > > Christian Brock > > > > > -----Original Message----- > From: Gustav Brock [mailto:gustav at cactus.dk] > Sent: Thursday, 01 April 2004 09:36 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Add new record + fill fields with last entered data? > > > Hi Tina > > > I begin to understand. At the OnCurrent Event for the Form, the Event > > Procedure will set the DefaultValue of each TextBox to the values > > determined to already be stored in the record just saved. Is that > > correct? > > Yes and no. No saving needs to take place: > > At the OnCurrent Event for the Form, the Event Procedure will set the > DefaultValue of each TextBox (or ComboBox etc.) to the values for the > current record of those controls. > > > Does this require explicitly listing each TextBox of the form? > > Yes. > > /gustav > > > >>>How does one set the DefautlValue at OnCurrent? I don't know how to do > >>>that. > >> > >>That's not difficult - something like this: > >> > >> Dim txt As TextBox > >> Set txt = Me!txtYourTextBox > >> > >> txt.DefaultValue = txt.Value > >> > >> Set txt = Nothing > >> > >>However, DefaultValue should be a string which means that if your > >>textbox contains decimals or a date/time value you must be careful and > >>convert to a string in US format: > >> > >> txt.DefaultValue = LTrim(Str(txt.Value)) > >> > >>or > >> > >> txt.DefaultValue = _ > >> Format(txt.Value, "\#mm\/dd\/yyyy hh\:nn\:ss AM/PM\#") > >> > >>/gustav > >> > >>>>Tough day? No coffee? > >>>> > >>>>Set the DefaultValue at OnCurrent. > >>>> > >>>>As for Stuart's note on the KeyPreview, it's not a user feature, but a > >>>>property of the form. > >>>> > >>>>/gustav > >>>> > >>>>>when a user clicks the 'Add new record' button (s)he wants the data of > the current record to be displayed in the new record. > >>>>>So if a user is on record 999 with field username filled with AAA and > then clicks on 'Add new record' then a new record (1000) must appear with > the field username filled with AAA. > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter today From bchacc at san.rr.com Fri Apr 2 00:01:57 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 1 Apr 2004 22:01:57 -0800 Subject: [AccessD] Add new record + fill fields with last entered data ? References: <20040402055427.30545.qmail@web61102.mail.yahoo.com> Message-ID: <032301c41878$01b7c760$6601a8c0@HAL9002> "...find myself a weddingsuit!" Spectator or victim? Rocky ----- Original Message ----- From: "S D" To: "Access Developers discussion and problem solving" Sent: Thursday, April 01, 2004 9:54 PM Subject: RE: [AccessD] Add new record + fill fields with last entered data ? > Hihi here we go again. Everybody uses a different approach and they all work! > Some are more complex then others and in some cases (way) too heavy, how's that sledgehammer John ;-) but they all help! > > thnx a lot. > > Now all i have to do is do a LOT of documenting and then it's of to find myself a weddingsuit! > > regards, > > sander > > "Brock, Christian T, HRC-Alexandria" wrote: > The copy record and paste append commands will get every form field and > subform. Do not see how what you say to do provides any benefit over using > the three DoCmd.RunCommand statements. > > Christian Brock > > > > -----Original Message----- > From: William Hindman [mailto:wdhindman at bellsouth.net] > Sent: Thursday, 01 April 2004 10:49 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Add new record + fill fields with last entered data? > > > ...that "wizard" simply bites ...I'd create a "duplicate" button that saves > the pk of the current record to a variable or tag and then a query using the > saved pk to append a "new" record that is a duplicate of the saved one > except for the pk ...that would get you a dupe of every form field including > any subform. > > William Hindman > ipsedixitism: something is true because I myself have said it is true ...the > philosophy of Noam Chomsky :) > > ----- Original Message ----- > From: "Brock, Christian T, HRC-Alexandria" > > To: "'Access Developers discussion and problem solving'" > > Sent: Thursday, April 01, 2004 10:22 AM > Subject: RE: [AccessD] Add new record + fill fields with last entered data? > > > > Why go to the trouble? From the statement of intent, What the user really > > wants is a duplicate current record button, instead of a new record > button. > > The Access XP command button wizard will allow you to create a button that > > will duplicate the current record. > > > > It creates the following lines of code > > DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70 > > DoCmd.DoMenuItem acFormBar, acEditMenu, 2, , acMenuVer70 > > DoCmd.DoMenuItem acFormBar, acEditMenu, 5, , acMenuVer70 'Paste Append > > > > Obviously MS did not update the wizard to use readable code. The > following > > will work as well. > > DoCmd.RunCommand acCmdSelectRecord > > DoCmd.RunCommand acCmdCopy > > DoCmd.RunCommand acCmdPasteAppend > > > > > > Christian Brock > > > > > > > > > > -----Original Message----- > > From: Gustav Brock [mailto:gustav at cactus.dk] > > Sent: Thursday, 01 April 2004 09:36 > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Add new record + fill fields with last entered > data? > > > > > > Hi Tina > > > > > I begin to understand. At the OnCurrent Event for the Form, the Event > > > Procedure will set the DefaultValue of each TextBox to the values > > > determined to already be stored in the record just saved. Is that > > > correct? > > > > Yes and no. No saving needs to take place: > > > > At the OnCurrent Event for the Form, the Event Procedure will set the > > DefaultValue of each TextBox (or ComboBox etc.) to the values for the > > current record of those controls. > > > > > Does this require explicitly listing each TextBox of the form? > > > > Yes. > > > > /gustav > > > > > > >>>How does one set the DefautlValue at OnCurrent? I don't know how to do > > >>>that. > > >> > > >>That's not difficult - something like this: > > >> > > >> Dim txt As TextBox > > >> Set txt = Me!txtYourTextBox > > >> > > >> txt.DefaultValue = txt.Value > > >> > > >> Set txt = Nothing > > >> > > >>However, DefaultValue should be a string which means that if your > > >>textbox contains decimals or a date/time value you must be careful and > > >>convert to a string in US format: > > >> > > >> txt.DefaultValue = LTrim(Str(txt.Value)) > > >> > > >>or > > >> > > >> txt.DefaultValue = _ > > >> Format(txt.Value, "\#mm\/dd\/yyyy hh\:nn\:ss AM/PM\#") > > >> > > >>/gustav > > >> > > >>>>Tough day? No coffee? > > >>>> > > >>>>Set the DefaultValue at OnCurrent. > > >>>> > > >>>>As for Stuart's note on the KeyPreview, it's not a user feature, but a > > >>>>property of the form. > > >>>> > > >>>>/gustav > > >>>> > > >>>>>when a user clicks the 'Add new record' button (s)he wants the data > of > > the current record to be displayed in the new record. > > >>>>>So if a user is on record 999 with field username filled with AAA and > > then clicks on 'Add new record' then a new record (1000) must appear with > > the field username filled with AAA. > > > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > --------------------------------- > Do you Yahoo!? > Yahoo! Small Business $15K Web Design Giveaway - Enter today > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From wdhindman at bellsouth.net Fri Apr 2 00:12:22 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Fri, 2 Apr 2004 01:12:22 -0500 Subject: [AccessD] Add new record + fill fields with last entered data? References: <65EB528406CCD211BE8F00902717D23D0795CA9D@perscomex31.hoffman.army.mil> Message-ID: <000501c41879$76782030$6101a8c0@dejpolsys> ...because Christian, I was never able to make the RunCommand version work consistently in A97 and never tried using it in XP since I already had working code ...if you've got an actual sample where the RunCommands work to dupe both the main form record and subs, I'd like to see it :) William Hindman ipsedixitism: something is true because I myself have said it is true ...the philosophy of Noam Chomsky :) ----- Original Message ----- From: "Brock, Christian T, HRC-Alexandria" To: "'Access Developers discussion and problem solving'" Sent: Thursday, April 01, 2004 11:24 AM Subject: RE: [AccessD] Add new record + fill fields with last entered data? > The copy record and paste append commands will get every form field and > subform. Do not see how what you say to do provides any benefit over using > the three DoCmd.RunCommand statements. > > Christian Brock > > > > -----Original Message----- > From: William Hindman [mailto:wdhindman at bellsouth.net] > Sent: Thursday, 01 April 2004 10:49 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Add new record + fill fields with last entered data? > > > ...that "wizard" simply bites ...I'd create a "duplicate" button that saves > the pk of the current record to a variable or tag and then a query using the > saved pk to append a "new" record that is a duplicate of the saved one > except for the pk ...that would get you a dupe of every form field including > any subform. > > William Hindman > ipsedixitism: something is true because I myself have said it is true ...the > philosophy of Noam Chomsky :) > > ----- Original Message ----- > From: "Brock, Christian T, HRC-Alexandria" > > To: "'Access Developers discussion and problem solving'" > > Sent: Thursday, April 01, 2004 10:22 AM > Subject: RE: [AccessD] Add new record + fill fields with last entered data? > > > > Why go to the trouble? From the statement of intent, What the user really > > wants is a duplicate current record button, instead of a new record > button. > > The Access XP command button wizard will allow you to create a button that > > will duplicate the current record. > > > > It creates the following lines of code > > DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70 > > DoCmd.DoMenuItem acFormBar, acEditMenu, 2, , acMenuVer70 > > DoCmd.DoMenuItem acFormBar, acEditMenu, 5, , acMenuVer70 'Paste Append > > > > Obviously MS did not update the wizard to use readable code. The > following > > will work as well. > > DoCmd.RunCommand acCmdSelectRecord > > DoCmd.RunCommand acCmdCopy > > DoCmd.RunCommand acCmdPasteAppend > > > > > > Christian Brock > > > > > > > > > > -----Original Message----- > > From: Gustav Brock [mailto:gustav at cactus.dk] > > Sent: Thursday, 01 April 2004 09:36 > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] Add new record + fill fields with last entered > data? > > > > > > Hi Tina > > > > > I begin to understand. At the OnCurrent Event for the Form, the Event > > > Procedure will set the DefaultValue of each TextBox to the values > > > determined to already be stored in the record just saved. Is that > > > correct? > > > > Yes and no. No saving needs to take place: > > > > At the OnCurrent Event for the Form, the Event Procedure will set the > > DefaultValue of each TextBox (or ComboBox etc.) to the values for the > > current record of those controls. > > > > > Does this require explicitly listing each TextBox of the form? > > > > Yes. > > > > /gustav > > > > > > >>>How does one set the DefautlValue at OnCurrent? I don't know how to do > > >>>that. > > >> > > >>That's not difficult - something like this: > > >> > > >> Dim txt As TextBox > > >> Set txt = Me!txtYourTextBox > > >> > > >> txt.DefaultValue = txt.Value > > >> > > >> Set txt = Nothing > > >> > > >>However, DefaultValue should be a string which means that if your > > >>textbox contains decimals or a date/time value you must be careful and > > >>convert to a string in US format: > > >> > > >> txt.DefaultValue = LTrim(Str(txt.Value)) > > >> > > >>or > > >> > > >> txt.DefaultValue = _ > > >> Format(txt.Value, "\#mm\/dd\/yyyy hh\:nn\:ss AM/PM\#") > > >> > > >>/gustav > > >> > > >>>>Tough day? No coffee? > > >>>> > > >>>>Set the DefaultValue at OnCurrent. > > >>>> > > >>>>As for Stuart's note on the KeyPreview, it's not a user feature, but a > > >>>>property of the form. > > >>>> > > >>>>/gustav > > >>>> > > >>>>>when a user clicks the 'Add new record' button (s)he wants the data > of > > the current record to be displayed in the new record. > > >>>>>So if a user is on record 999 with field username filled with AAA and > > then clicks on 'Add new record' then a new record (1000) must appear with > > the field username filled with AAA. > > > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From accessd667 at yahoo.com Fri Apr 2 01:06:12 2004 From: accessd667 at yahoo.com (S D) Date: Thu, 1 Apr 2004 23:06:12 -0800 (PST) Subject: [AccessD] ORDER BY BUG using Date format AARHG Message-ID: <20040402070612.57615.qmail@web61102.mail.yahoo.com> Hi group, I've got a combobox based on a query: SELECT DISTINCT [TblArbo].[Datum] FROM TblArbo ORDER BY [TblArbo].[Datum] DESC; Resulted in: 01-10-2003 02-09-2003 21-08-2001 The user asked if this could be printed in the following format: dd-mmm-yyyy No problem, says stupid me: SELECT DISTINCT Format([TblArbo].[Datum],"dd-mmm-yyyy") FROM TblArbo ORDER BY Format([TblArbo].[Datum],"dd-mmm-yyyy") DESC; But now the ORDER BY ONLY checks the DD part?!?!?!?! So this results in: 21-08-2001 02-09-2003 01-10-2003 ?!!??! What kind of nonsense is this? Sander --------------------------------- Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter today From thevigil at kabelfoon.nl Fri Apr 2 01:39:06 2004 From: thevigil at kabelfoon.nl (Bert-Jan Brinkhuis) Date: Fri, 2 Apr 2004 09:39:06 +0200 Subject: [AccessD] ORDER BY BUG using Date format AARHG References: <20040402070612.57615.qmail@web61102.mail.yahoo.com> Message-ID: <001101c41885$9650a100$3f412d3e@jester> Hi Sander, i do not know what kind of nonsense that is, but i have a workaround for you. Add the original unformated [datum] field to your query and order on that field. Make sure you do not display that column in the combobox! HTH Bert-Jan ----- Original Message ----- From: "S D" To: "accessd" Sent: Friday, April 02, 2004 9:06 AM Subject: [AccessD] ORDER BY BUG using Date format AARHG > Hi group, > > I've got a combobox based on a query: > SELECT DISTINCT [TblArbo].[Datum] > FROM TblArbo > ORDER BY [TblArbo].[Datum] DESC; > Resulted in: > 01-10-2003 > 02-09-2003 > 21-08-2001 > > The user asked if this could be printed in the following format: dd-mmm-yyyy > No problem, says stupid me: > SELECT DISTINCT Format([TblArbo].[Datum],"dd-mmm-yyyy") > FROM TblArbo > ORDER BY Format([TblArbo].[Datum],"dd-mmm-yyyy") DESC; > > But now the ORDER BY ONLY checks the DD part?!?!?!?! > So this results in: > 21-08-2001 > > 02-09-2003 > 01-10-2003 > ?!!??! What kind of nonsense is this? > > Sander > > > --------------------------------- > Do you Yahoo!? > Yahoo! Small Business $15K Web Design Giveaway - Enter today > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From accessd667 at yahoo.com Fri Apr 2 02:49:12 2004 From: accessd667 at yahoo.com (S D) Date: Fri, 2 Apr 2004 00:49:12 -0800 (PST) Subject: [AccessD] ORDER BY BUG using Date format AARHG In-Reply-To: <001101c41885$9650a100$3f412d3e@jester> Message-ID: <20040402084912.20282.qmail@web61101.mail.yahoo.com> Bedankt :-) Bert Only problem is that the user's decided that they want this format for every date in the app. So I started changing stuff like you mentioned...Worked like a charm except 1 form. Here is the Rowsource dynamic. It is determined via a lot of selections. I'll have to figure this one out... Sander Bert-Jan Brinkhuis wrote: Hi Sander, i do not know what kind of nonsense that is, but i have a workaround for you. Add the original unformated [datum] field to your query and order on that field. Make sure you do not display that column in the combobox! HTH Bert-Jan ----- Original Message ----- From: "S D" To: "accessd" Sent: Friday, April 02, 2004 9:06 AM Subject: [AccessD] ORDER BY BUG using Date format AARHG > Hi group, > > I've got a combobox based on a query: > SELECT DISTINCT [TblArbo].[Datum] > FROM TblArbo > ORDER BY [TblArbo].[Datum] DESC; > Resulted in: > 01-10-2003 > 02-09-2003 > 21-08-2001 > > The user asked if this could be printed in the following format: dd-mmm-yyyy > No problem, says stupid me: > SELECT DISTINCT Format([TblArbo].[Datum],"dd-mmm-yyyy") > FROM TblArbo > ORDER BY Format([TblArbo].[Datum],"dd-mmm-yyyy") DESC; > > But now the ORDER BY ONLY checks the DD part?!?!?!?! > So this results in: > 21-08-2001 > > 02-09-2003 > 01-10-2003 > ?!!??! What kind of nonsense is this? > > Sander > > > --------------------------------- > Do you Yahoo!? > Yahoo! Small Business $15K Web Design Giveaway - Enter 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 --------------------------------- Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter today From gustav at cactus.dk Fri Apr 2 02:46:05 2004 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 2 Apr 2004 10:46:05 +0200 Subject: [AccessD] Transfer text field name In-Reply-To: References: Message-ID: <776625977.20040402104605@cactus.dk> Hi John and J?rgen This is a very nice article, and I too can strongly advocate the use of user defined types; but also have an eye on RSet because - as Stuart notes - you may have fields (numbers) which need to be right justified. Also, as Stuart suggests, the use of Mid() is highly recommended, indeed for long string. /gustav > You may want to look at lset for fixed width data files: > http://www.vbwm.com/art_2001/UDT05/ > is an example. > Ciao > J?rgen Welz > Edmonton, Alberta > jwelz at hotmail.com From gustav at cactus.dk Fri Apr 2 02:57:33 2004 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 2 Apr 2004 10:57:33 +0200 Subject: [AccessD] ORDER BY BUG using Date format AARHG In-Reply-To: <20040402070612.57615.qmail@web61102.mail.yahoo.com> References: <20040402070612.57615.qmail@web61102.mail.yahoo.com> Message-ID: <267314707.20040402105733@cactus.dk> Hi Sander Your "stupid" test is correct as it sorts DESC on a string. Try this which I think is what Bert-Jan has in mind: SELECT DISTINCT Format([TblArbo].[Datum], "dd-mmm-yyyy") FROM TblArbo ORDER BY [TblArbo].[Datum] DESC; /gustav > I've got a combobox based on a query: > SELECT DISTINCT [TblArbo].[Datum] > FROM TblArbo > ORDER BY [TblArbo].[Datum] DESC; > Resulted in: > 01-10-2003 > 02-09-2003 > 21-08-2001 > The user asked if this could be printed in the following format: dd-mmm-yyyy > No problem, says stupid me: > SELECT DISTINCT Format([TblArbo].[Datum],"dd-mmm-yyyy") > FROM TblArbo > ORDER BY Format([TblArbo].[Datum],"dd-mmm-yyyy") DESC; > But now the ORDER BY ONLY checks the DD part?!?!?!?! > So this results in: > 21-08-2001 > 02-09-2003 > 01-10-2003 > ?!!??! What kind of nonsense is this? From thevigil at kabelfoon.nl Fri Apr 2 03:04:41 2004 From: thevigil at kabelfoon.nl (Bert-Jan Brinkhuis) Date: Fri, 2 Apr 2004 11:04:41 +0200 Subject: [AccessD] ORDER BY BUG using Date format AARHG References: <20040402084912.20282.qmail@web61101.mail.yahoo.com> Message-ID: <003601c41891$8965ef20$3f412d3e@jester> Graag gedaan :-) Sander How is the rowsource dynamic? Do you make an sql string dynamically and make that the rowsource? Bert-Jan ----- Original Message ----- From: "S D" To: "Access Developers discussion and problem solving" Sent: Friday, April 02, 2004 10:49 AM Subject: Re: [AccessD] ORDER BY BUG using Date format AARHG > Bedankt :-) Bert > > Only problem is that the user's decided that they want this format for every date in the app. So I started changing stuff like you mentioned...Worked like a charm except 1 form. Here is the Rowsource dynamic. It is determined via a lot of selections. > > I'll have to figure this one out... > > Sander > > Bert-Jan Brinkhuis wrote: > Hi Sander, > > i do not know what kind of nonsense that is, but i have a workaround for > you. > > Add the original unformated [datum] field to your query and order on that > field. > Make sure you do not display that column in the combobox! > > HTH > > Bert-Jan > > ----- Original Message ----- > From: "S D" > To: "accessd" > Sent: Friday, April 02, 2004 9:06 AM > Subject: [AccessD] ORDER BY BUG using Date format AARHG > > > > Hi group, > > > > I've got a combobox based on a query: > > SELECT DISTINCT [TblArbo].[Datum] > > FROM TblArbo > > ORDER BY [TblArbo].[Datum] DESC; > > Resulted in: > > 01-10-2003 > > 02-09-2003 > > 21-08-2001 > > > > The user asked if this could be printed in the following format: > dd-mmm-yyyy > > No problem, says stupid me: > > SELECT DISTINCT Format([TblArbo].[Datum],"dd-mmm-yyyy") > > FROM TblArbo > > ORDER BY Format([TblArbo].[Datum],"dd-mmm-yyyy") DESC; > > > > But now the ORDER BY ONLY checks the DD part?!?!?!?! > > So this results in: > > 21-08-2001 > > > > 02-09-2003 > > 01-10-2003 > > ?!!??! What kind of nonsense is this? > > > > Sander > > > > > > --------------------------------- > > Do you Yahoo!? > > Yahoo! Small Business $15K Web Design Giveaway - Enter 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 > > --------------------------------- > Do you Yahoo!? > Yahoo! Small Business $15K Web Design Giveaway - Enter today > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From gustav at cactus.dk Fri Apr 2 04:22:55 2004 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 2 Apr 2004 12:22:55 +0200 Subject: [AccessD] Portugal Message-ID: <3812436152.20040402122255@cactus.dk> Hi all I'll be visiting Portugal next week. Would any listers be present in the Lisboa area to meet for a glass of port? /gustav From djkr at msn.com Fri Apr 2 04:33:25 2004 From: djkr at msn.com (DJK(John) Robinson) Date: Fri, 2 Apr 2004 11:33:25 +0100 Subject: [AccessD] Portugal In-Reply-To: <3812436152.20040402122255@cactus.dk> Message-ID: <001e01c4189d$edcc5560$3500a8c0@dabsight> Only in spirit(!) Have one for me. It's a lovely city. John > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Gustav Brock > Sent: 02 April 2004 11:23 > To: AccessD at databaseadvisors.com > Subject: [AccessD] Portugal > > > Hi all > > I'll be visiting Portugal next week. > > Would any listers be present in the Lisboa area to meet for a > glass of port? > > /gustav > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From paulo at esb.ucp.pt Fri Apr 2 05:01:44 2004 From: paulo at esb.ucp.pt (Paulo Alexandre Ramos) Date: Fri, 2 Apr 2004 12:01:44 +0100 Subject: [AccessD] Portugal In-Reply-To: <3812436152.20040402122255@cactus.dk> References: <3812436152.20040402122255@cactus.dk> Message-ID: <20C9036E-8495-11D8-BE6F-000A9580E9F4@esb.ucp.pt> Only if you come to Porto :-) I'm here and I will be glad take you to the places of Porto wine is stored. Paulo On Apr 2, 2004, at 11:22 AM, Gustav Brock wrote: > Hi all > > I'll be visiting Portugal next week. > > Would any listers be present in the Lisboa area to meet for a glass of > port? > > /gustav > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From gustav at cactus.dk Fri Apr 2 05:40:38 2004 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 2 Apr 2004 13:40:38 +0200 Subject: [AccessD] Portugal In-Reply-To: <20C9036E-8495-11D8-BE6F-000A9580E9F4@esb.ucp.pt> References: <3812436152.20040402122255@cactus.dk> <20C9036E-8495-11D8-BE6F-000A9580E9F4@esb.ucp.pt> Message-ID: <1017099017.20040402134038@cactus.dk> Hi Paulo > Only if you come to Porto :-) We have not decided yet. Our traveling plan is relaxed and not fixed. I'll contact you off-line! /gustav > I'm here and I will be glad take you to the places of Porto wine is > stored. > Paulo > On Apr 2, 2004, at 11:22 AM, Gustav Brock wrote: >> Hi all >> >> I'll be visiting Portugal next week. >> >> Would any listers be present in the Lisboa area to meet for a glass of >> port? >> >> /gustav From jwcolby at colbyconsulting.com Fri Apr 2 07:28:53 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Fri, 2 Apr 2004 08:28:53 -0500 Subject: [AccessD] Add new record + fill fields with last entered data ? In-Reply-To: <20040402055427.30545.qmail@web61102.mail.yahoo.com> Message-ID: Sander, >Some are more complex then others and in some cases (way) too heavy, how's that sledgehammer John ;-) but they all help! While I can appreciate personal opinion I have to ask how putting reusable code into a framework is (way) too heavy? In the beginning was assembler, and all was right. But there was no structure and it took forever to write code, so higher level languages were designed with functions and dimensioned variables. Of course there were those who scoffed at the overhead, and how slow it ran, but in general it was accepted as a good thing and was taught in schools and used by many programmers. But there were still many problems that remained and concepts such as objects, and classes and inheritance were designed. Of course there were those who scoffed at the overhead, and how slow it ran, but in general it was accepted as a good thing, and was taught in school and used by many programmers. Re-use, encapsulation, and all that stuff is (now) widely accepted practice. Whether or not you personally like these practices is only relevant to you (and the cost to your client of course). Have you ever heard of Steve Gibson of Spin Right fame? He does all his programming in assembler! Hmm... ok. For his purposes that is apparently just right, but it doesn't mean I want to do that. A framework is nothing more or less that reusability / encapsulation taken to the next level. It isn't like I invented the concept - ever heard of .NET? Can you say FRAMEWORK?. When you "attack" using a framework you are simply demonstrating a preference for a way of doing things that may be better for your purposes but definitely is NOT better for my purposes, nor I suspect, for many other people. >how's that sledgehammer John Just fine thanks. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of S D Sent: Friday, April 02, 2004 12:54 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Add new record + fill fields with last entered data ? Hihi here we go again. Everybody uses a different approach and they all work! Some are more complex then others and in some cases (way) too heavy, how's that sledgehammer John ;-) but they all help! thnx a lot. Now all i have to do is do a LOT of documenting and then it's of to find myself a weddingsuit! regards, sander "Brock, Christian T, HRC-Alexandria" wrote: The copy record and paste append commands will get every form field and subform. Do not see how what you say to do provides any benefit over using the three DoCmd.RunCommand statements. Christian Brock -----Original Message----- From: William Hindman [mailto:wdhindman at bellsouth.net] Sent: Thursday, 01 April 2004 10:49 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Add new record + fill fields with last entered data? ...that "wizard" simply bites ...I'd create a "duplicate" button that saves the pk of the current record to a variable or tag and then a query using the saved pk to append a "new" record that is a duplicate of the saved one except for the pk ...that would get you a dupe of every form field including any subform. William Hindman ipsedixitism: something is true because I myself have said it is true ...the philosophy of Noam Chomsky :) ----- Original Message ----- From: "Brock, Christian T, HRC-Alexandria" To: "'Access Developers discussion and problem solving'" Sent: Thursday, April 01, 2004 10:22 AM Subject: RE: [AccessD] Add new record + fill fields with last entered data? > Why go to the trouble? From the statement of intent, What the user really > wants is a duplicate current record button, instead of a new record button. > The Access XP command button wizard will allow you to create a button that > will duplicate the current record. > > It creates the following lines of code > DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70 > DoCmd.DoMenuItem acFormBar, acEditMenu, 2, , acMenuVer70 > DoCmd.DoMenuItem acFormBar, acEditMenu, 5, , acMenuVer70 'Paste Append > > Obviously MS did not update the wizard to use readable code. The following > will work as well. > DoCmd.RunCommand acCmdSelectRecord > DoCmd.RunCommand acCmdCopy > DoCmd.RunCommand acCmdPasteAppend > > > Christian Brock > > > > > -----Original Message----- > From: Gustav Brock [mailto:gustav at cactus.dk] > Sent: Thursday, 01 April 2004 09:36 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Add new record + fill fields with last entered data? > > > Hi Tina > > > I begin to understand. At the OnCurrent Event for the Form, the Event > > Procedure will set the DefaultValue of each TextBox to the values > > determined to already be stored in the record just saved. Is that > > correct? > > Yes and no. No saving needs to take place: > > At the OnCurrent Event for the Form, the Event Procedure will set the > DefaultValue of each TextBox (or ComboBox etc.) to the values for the > current record of those controls. > > > Does this require explicitly listing each TextBox of the form? > > Yes. > > /gustav > > > >>>How does one set the DefautlValue at OnCurrent? I don't know how to do > >>>that. > >> > >>That's not difficult - something like this: > >> > >> Dim txt As TextBox > >> Set txt = Me!txtYourTextBox > >> > >> txt.DefaultValue = txt.Value > >> > >> Set txt = Nothing > >> > >>However, DefaultValue should be a string which means that if your > >>textbox contains decimals or a date/time value you must be careful and > >>convert to a string in US format: > >> > >> txt.DefaultValue = LTrim(Str(txt.Value)) > >> > >>or > >> > >> txt.DefaultValue = _ > >> Format(txt.Value, "\#mm\/dd\/yyyy hh\:nn\:ss AM/PM\#") > >> > >>/gustav > >> > >>>>Tough day? No coffee? > >>>> > >>>>Set the DefaultValue at OnCurrent. > >>>> > >>>>As for Stuart's note on the KeyPreview, it's not a user feature, but a > >>>>property of the form. > >>>> > >>>>/gustav > >>>> > >>>>>when a user clicks the 'Add new record' button (s)he wants the data of > the current record to be displayed in the new record. > >>>>>So if a user is on record 999 with field username filled with AAA and > then clicks on 'Add new record' then a new record (1000) must appear with > the field username filled with AAA. > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter today -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Fri Apr 2 07:47:12 2004 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 2 Apr 2004 15:47:12 +0200 Subject: [AccessD] Portugal In-Reply-To: <001e01c4189d$edcc5560$3500a8c0@dabsight> References: <001e01c4189d$edcc5560$3500a8c0@dabsight> Message-ID: <18324693457.20040402154712@cactus.dk> Hi John OK. I'll have you in mind! /gustav > Only in spirit(!) Have one for me. It's a lovely city. > John >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >> Gustav Brock >> Sent: 02 April 2004 11:23 >> To: AccessD at databaseadvisors.com >> Subject: [AccessD] Portugal >> >> >> Hi all >> >> I'll be visiting Portugal next week. >> >> Would any listers be present in the Lisboa area to meet for a >> glass of port? >> >> /gustav From accessd667 at yahoo.com Fri Apr 2 07:48:09 2004 From: accessd667 at yahoo.com (S D) Date: Fri, 2 Apr 2004 05:48:09 -0800 (PST) Subject: [AccessD] ORDER BY BUG using Date format AARHG In-Reply-To: <267314707.20040402105733@cactus.dk> Message-ID: <20040402134809.45618.qmail@web61108.mail.yahoo.com> Hi gustav, I've solved the problem. Twas a nasty one. but euh try it if you want. create a table with a date field like below and run the query...no go! Thanx anyway. Sander Gustav Brock wrote: Hi Sander Your "stupid" test is correct as it sorts DESC on a string. Try this which I think is what Bert-Jan has in mind: SELECT DISTINCT Format([TblArbo].[Datum], "dd-mmm-yyyy") FROM TblArbo ORDER BY [TblArbo].[Datum] DESC; /gustav > I've got a combobox based on a query: > SELECT DISTINCT [TblArbo].[Datum] > FROM TblArbo > ORDER BY [TblArbo].[Datum] DESC; > Resulted in: > 01-10-2003 > 02-09-2003 > 21-08-2001 > The user asked if this could be printed in the following format: dd-mmm-yyyy > No problem, says stupid me: > SELECT DISTINCT Format([TblArbo].[Datum],"dd-mmm-yyyy") > FROM TblArbo > ORDER BY Format([TblArbo].[Datum],"dd-mmm-yyyy") DESC; > But now the ORDER BY ONLY checks the DD part?!?!?!?! > So this results in: > 21-08-2001 > 02-09-2003 > 01-10-2003 > ?!!??! What kind of nonsense is this? -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter today From accessd667 at yahoo.com Fri Apr 2 07:49:46 2004 From: accessd667 at yahoo.com (S D) Date: Fri, 2 Apr 2004 05:49:46 -0800 (PST) Subject: [AccessD] ORDER BY BUG using Date format AARHG In-Reply-To: <003601c41891$8965ef20$3f412d3e@jester> Message-ID: <20040402134946.77115.qmail@web61110.mail.yahoo.com> Yep, that's it....however, like everything in this app...it doesn't work! Sander Bert-Jan Brinkhuis wrote: Graag gedaan :-) Sander How is the rowsource dynamic? Do you make an sql string dynamically and make that the rowsource? Bert-Jan ----- Original Message ----- From: "S D" To: "Access Developers discussion and problem solving" Sent: Friday, April 02, 2004 10:49 AM Subject: Re: [AccessD] ORDER BY BUG using Date format AARHG > Bedankt :-) Bert > > Only problem is that the user's decided that they want this format for every date in the app. So I started changing stuff like you mentioned...Worked like a charm except 1 form. Here is the Rowsource dynamic. It is determined via a lot of selections. > > I'll have to figure this one out... > > Sander > > Bert-Jan Brinkhuis wrote: > Hi Sander, > > i do not know what kind of nonsense that is, but i have a workaround for > you. > > Add the original unformated [datum] field to your query and order on that > field. > Make sure you do not display that column in the combobox! > > HTH > > Bert-Jan > > ----- Original Message ----- > From: "S D" > To: "accessd" > Sent: Friday, April 02, 2004 9:06 AM > Subject: [AccessD] ORDER BY BUG using Date format AARHG > > > > Hi group, > > > > I've got a combobox based on a query: > > SELECT DISTINCT [TblArbo].[Datum] > > FROM TblArbo > > ORDER BY [TblArbo].[Datum] DESC; > > Resulted in: > > 01-10-2003 > > 02-09-2003 > > 21-08-2001 > > > > The user asked if this could be printed in the following format: > dd-mmm-yyyy > > No problem, says stupid me: > > SELECT DISTINCT Format([TblArbo].[Datum],"dd-mmm-yyyy") > > FROM TblArbo > > ORDER BY Format([TblArbo].[Datum],"dd-mmm-yyyy") DESC; > > > > But now the ORDER BY ONLY checks the DD part?!?!?!?! > > So this results in: > > 21-08-2001 > > > > 02-09-2003 > > 01-10-2003 > > ?!!??! What kind of nonsense is this? > > > > Sander > > > > > > --------------------------------- > > Do you Yahoo!? > > Yahoo! Small Business $15K Web Design Giveaway - Enter 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 > > --------------------------------- > Do you Yahoo!? > Yahoo! Small Business $15K Web Design Giveaway - Enter 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 --------------------------------- Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter today From accessd667 at yahoo.com Fri Apr 2 07:54:48 2004 From: accessd667 at yahoo.com (S D) Date: Fri, 2 Apr 2004 05:54:48 -0800 (PST) Subject: [AccessD] Add new record + fill fields with last entered data ? In-Reply-To: Message-ID: <20040402135448.38639.qmail@web61107.mail.yahoo.com> John (and others) I didn't mean to offend anybody but I think i'm in a different line of work. Where doing maintenance on EXISTING apps. We don't build them ourselves (we also do that but not for this customer) Frameworks are GREAT! I'm playing around with you're examples a lot and I love it. But it's (almost) impossible to implement these in existing apps without rebuilding them from scratch. Extra problem here is that everything is on a very tight budget. Anyways, thnx for the reply. Regards, Sander "John W. Colby" wrote: Sander, >Some are more complex then others and in some cases (way) too heavy, how's that sledgehammer John ;-) but they all help! While I can appreciate personal opinion I have to ask how putting reusable code into a framework is (way) too heavy? In the beginning was assembler, and all was right. But there was no structure and it took forever to write code, so higher level languages were designed with functions and dimensioned variables. Of course there were those who scoffed at the overhead, and how slow it ran, but in general it was accepted as a good thing and was taught in schools and used by many programmers. But there were still many problems that remained and concepts such as objects, and classes and inheritance were designed. Of course there were those who scoffed at the overhead, and how slow it ran, but in general it was accepted as a good thing, and was taught in school and used by many programmers. Re-use, encapsulation, and all that stuff is (now) widely accepted practice. Whether or not you personally like these practices is only relevant to you (and the cost to your client of course). Have you ever heard of Steve Gibson of Spin Right fame? He does all his programming in assembler! Hmm... ok. For his purposes that is apparently just right, but it doesn't mean I want to do that. A framework is nothing more or less that reusability / encapsulation taken to the next level. It isn't like I invented the concept - ever heard of .NET? Can you say FRAMEWORK?. When you "attack" using a framework you are simply demonstrating a preference for a way of doing things that may be better for your purposes but definitely is NOT better for my purposes, nor I suspect, for many other people. >how's that sledgehammer John Just fine thanks. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of S D Sent: Friday, April 02, 2004 12:54 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Add new record + fill fields with last entered data ? Hihi here we go again. Everybody uses a different approach and they all work! Some are more complex then others and in some cases (way) too heavy, how's that sledgehammer John ;-) but they all help! thnx a lot. Now all i have to do is do a LOT of documenting and then it's of to find myself a weddingsuit! regards, sander "Brock, Christian T, HRC-Alexandria" wrote: The copy record and paste append commands will get every form field and subform. Do not see how what you say to do provides any benefit over using the three DoCmd.RunCommand statements. Christian Brock -----Original Message----- From: William Hindman [mailto:wdhindman at bellsouth.net] Sent: Thursday, 01 April 2004 10:49 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Add new record + fill fields with last entered data? ...that "wizard" simply bites ...I'd create a "duplicate" button that saves the pk of the current record to a variable or tag and then a query using the saved pk to append a "new" record that is a duplicate of the saved one except for the pk ...that would get you a dupe of every form field including any subform. William Hindman ipsedixitism: something is true because I myself have said it is true ...the philosophy of Noam Chomsky :) ----- Original Message ----- From: "Brock, Christian T, HRC-Alexandria" To: "'Access Developers discussion and problem solving'" Sent: Thursday, April 01, 2004 10:22 AM Subject: RE: [AccessD] Add new record + fill fields with last entered data? > Why go to the trouble? From the statement of intent, What the user really > wants is a duplicate current record button, instead of a new record button. > The Access XP command button wizard will allow you to create a button that > will duplicate the current record. > > It creates the following lines of code > DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70 > DoCmd.DoMenuItem acFormBar, acEditMenu, 2, , acMenuVer70 > DoCmd.DoMenuItem acFormBar, acEditMenu, 5, , acMenuVer70 'Paste Append > > Obviously MS did not update the wizard to use readable code. The following > will work as well. > DoCmd.RunCommand acCmdSelectRecord > DoCmd.RunCommand acCmdCopy > DoCmd.RunCommand acCmdPasteAppend > > > Christian Brock > > > > > -----Original Message----- > From: Gustav Brock [mailto:gustav at cactus.dk] > Sent: Thursday, 01 April 2004 09:36 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Add new record + fill fields with last entered data? > > > Hi Tina > > > I begin to understand. At the OnCurrent Event for the Form, the Event > > Procedure will set the DefaultValue of each TextBox to the values > > determined to already be stored in the record just saved. Is that > > correct? > > Yes and no. No saving needs to take place: > > At the OnCurrent Event for the Form, the Event Procedure will set the > DefaultValue of each TextBox (or ComboBox etc.) to the values for the > current record of those controls. > > > Does this require explicitly listing each TextBox of the form? > > Yes. > > /gustav > > > >>>How does one set the DefautlValue at OnCurrent? I don't know how to do > >>>that. > >> > >>That's not difficult - something like this: > >> > >> Dim txt As TextBox > >> Set txt = Me!txtYourTextBox > >> > >> txt.DefaultValue = txt.Value > >> > >> Set txt = Nothing > >> > >>However, DefaultValue should be a string which means that if your > >>textbox contains decimals or a date/time value you must be careful and > >>convert to a string in US format: > >> > >> txt.DefaultValue = LTrim(Str(txt.Value)) > >> > >>or > >> > >> txt.DefaultValue = _ > >> Format(txt.Value, "\#mm\/dd\/yyyy hh\:nn\:ss AM/PM\#") > >> > >>/gustav > >> > >>>>Tough day? No coffee? > >>>> > >>>>Set the DefaultValue at OnCurrent. > >>>> > >>>>As for Stuart's note on the KeyPreview, it's not a user feature, but a > >>>>property of the form. > >>>> > >>>>/gustav > >>>> > >>>>>when a user clicks the 'Add new record' button (s)he wants the data of > the current record to be displayed in the new record. > >>>>>So if a user is on record 999 with field username filled with AAA and > then clicks on 'Add new record' then a new record (1000) must appear with > the field username filled with AAA. > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter 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 --------------------------------- Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter today From gustav at cactus.dk Fri Apr 2 07:57:22 2004 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 2 Apr 2004 15:57:22 +0200 Subject: [AccessD] ORDER BY BUG using Date format AARHG In-Reply-To: <20040402134809.45618.qmail@web61108.mail.yahoo.com> References: <20040402134809.45618.qmail@web61108.mail.yahoo.com> Message-ID: <4425303804.20040402155722@cactus.dk> Hi Sander Well - but what is the bug and how did you solve it? /gustav > Hi gustav, > I've solved the problem. Twas a nasty one. > but euh try it if you want. create a table with a date field like below and run the query...no go! > Thanx anyway. > Sander > Gustav Brock wrote: > Hi Sander > Your "stupid" test is correct as it sorts DESC on a string. > Try this which I think is what Bert-Jan has in mind: > SELECT DISTINCT > Format([TblArbo].[Datum], "dd-mmm-yyyy") > FROM > TblArbo > ORDER BY > [TblArbo].[Datum] DESC; > /gustav >> I've got a combobox based on a query: >> SELECT DISTINCT [TblArbo].[Datum] >> FROM TblArbo >> ORDER BY [TblArbo].[Datum] DESC; >> Resulted in: >> 01-10-2003 >> 02-09-2003 >> 21-08-2001 >> The user asked if this could be printed in the following format: dd-mmm-yyyy >> No problem, says stupid me: >> SELECT DISTINCT Format([TblArbo].[Datum],"dd-mmm-yyyy") >> FROM TblArbo >> ORDER BY Format([TblArbo].[Datum],"dd-mmm-yyyy") DESC; >> But now the ORDER BY ONLY checks the DD part?!?!?!?! >> So this results in: >> 21-08-2001 >> 02-09-2003 >> 01-10-2003 >> ?!!??! What kind of nonsense is this? From deanellis at iprimus.com.au Fri Apr 2 08:23:32 2004 From: deanellis at iprimus.com.au (Dean Ellis) Date: Fri, 2 Apr 2004 23:53:32 +0930 (Cen. Australia Standard Time) Subject: [AccessD] Re: Vertical Lines in a Report Message-ID: <406D7764.000003.72847@jedel> Everyone, Thanks for your replies to this post. Dazza, The code you gave me works and I did a similar thing to start with, the problem i'm having is the height of the line isn't changing with the Growth of the Memo boxes that are between the two horizontal lines. and because of this, I get a big gap between the bottom line and the bottom of the vertical line. The othe rtwo sets of code that were posted worked as well, but they only gave me the hieght of the line, but it was always the full height of the detail section of the report. I want to specify the top position to join the ned of a horizontal line and make the bottom end of the vertical line postion relative to the size of the text boxes set at "Can Grow" so that the vertical lines will alway join top and bottom. The replies I got linking me to the websites. that site was interesting enough however, I have absolutel no idea at what to change to set the vetical lines to suit my reports Hope I have explaine this. Cheers Dean From bheid at appdevgrp.com Fri Apr 2 09:36:41 2004 From: bheid at appdevgrp.com (Bobby Heid) Date: Fri, 2 Apr 2004 10:36:41 -0500 Subject: [AccessD] Default Printer for Access Report In-Reply-To: <916187228923D311A6FE00A0CC3FAA30806650@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA305BB3D1@ADGSERVER> I have found that printing a report (that is checked into SourceSafe, that is, not updatable) to the Acrobat PDF printer will change the printer from the default to the PDF printer. Many times, but not all, the printer will stay set to the PDF printer unless I go in and change it to the default printer. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Thursday, April 01, 2004 9:57 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Default Printer for Access Report By default, the Printer Dialogue box does go to the default printer unless the report has one specifically specified. As far as I know, you have no control over the Printer Dialogue box from within Access. 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 Geller Sent: Thursday, April 01, 2004 9:31 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Default Printer for Access Report Thanks, Doris, that was the problem. I'm wondering if, as a fail safe measure, can I write code that would make sure that when that Printer Dialogue box opens it is always set to go to the default printer? I'd want users to be able to pick a different option if they desired, but just as the default, that the print box would be set to go to the default printer. Where would I put the code? --Susan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mike & Doris Manning Sent: Tuesday, March 30, 2004 12:03 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Default Printer for Access Report Open that report in design view and then click on "File" and choose "Page Setup". It is possible it get set accidentally when the report was designed. 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 Geller Sent: Tuesday, March 30, 2004 12:28 PM To: accessd at databaseadvisors.com Subject: [AccessD] Default Printer for Access Report I have a reporting tool built in Access (2002) that is essentially a wizard where users pick a report, set criteria and then see their output. There are nearly 100 reports in the app. When a user choses to print a report, the default printer that comes up in the print dialog box is the default printer set on their machine, EXCEPT for one of the reports. On that one report only, the default printer that comes up in the dialogue box is a different printer. All users get this different printer. I did not write any code or make any settings to indicate printer choice. What could be happening? How can I get this one report to print to the user's default printer? Note: The only way that users can print a report is with a toolbar PRINT button that I brings up the dialogue box. There is no file menu from the reports and there is no button with a printer icon that sends reports straight to the printer. --Susan Susan B. Geller Office of Information Systems College of Continuing Education University of Minnesota 306 Wesbrook Hall 77 Pleasant Street SE Minneapolis, MN 55455 Phone: 612-626-4785 Fax: 612-625-2568 From DWUTKA at marlow.com Fri Apr 2 09:45:53 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Fri, 2 Apr 2004 09:45:53 -0600 Subject: [AccessD] ORDER BY BUG using Date format AARHG Message-ID: <2F8793082E00D4119A1700B0D0216BF802227A6B@main2.marlow.com> Because Format() returns a string, so you are telling it to SORT by a string, not a date. Your ORDER BY line should just have [TblArbo].[Datum]. Keep the Format in the SELECT line, and you should be good to go. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of S D Sent: Friday, April 02, 2004 1:06 AM To: accessd Subject: [AccessD] ORDER BY BUG using Date format AARHG Hi group, I've got a combobox based on a query: SELECT DISTINCT [TblArbo].[Datum] FROM TblArbo ORDER BY [TblArbo].[Datum] DESC; Resulted in: 01-10-2003 02-09-2003 21-08-2001 The user asked if this could be printed in the following format: dd-mmm-yyyy No problem, says stupid me: SELECT DISTINCT Format([TblArbo].[Datum],"dd-mmm-yyyy") FROM TblArbo ORDER BY Format([TblArbo].[Datum],"dd-mmm-yyyy") DESC; But now the ORDER BY ONLY checks the DD part?!?!?!?! So this results in: 21-08-2001 02-09-2003 01-10-2003 ?!!??! What kind of nonsense is this? Sander --------------------------------- Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter today -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Mark.Mitsules at ngc.com Fri Apr 2 11:26:11 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Fri, 2 Apr 2004 12:26:11 -0500 Subject: [AccessD] Input Masks Message-ID: Group, I have several text fields that contain numerical data stored as text. Will a numerical input mask have any effect? Mark From ssharkins at bellsouth.net Fri Apr 2 11:30:05 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Fri, 2 Apr 2004 12:30:05 -0500 Subject: [AccessD] Input Masks In-Reply-To: Message-ID: <20040402173003.UBMZ1746.imf17aec.mail.bellsouth.net@SUSANONE> Not sure what you mean by effect -- an input mask simply directs the user to enter the data in a specific way. It won't change the actual data itself. If you're needing visual clues to help the user through the data entry process, input mask is a good way to go. Susan H. Group, I have several text fields that contain numerical data stored as text. Will a numerical input mask have any effect? From Mark.Mitsules at ngc.com Fri Apr 2 11:46:22 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Fri, 2 Apr 2004 12:46:22 -0500 Subject: [AccessD] Input Masks Message-ID: What I was worried about was that an input mask of 000000000 would not work if used in a text field...but it does...I tested it on a copy of my data. Thanks, Mark -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Friday, April 02, 2004 12:30 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Input Masks Not sure what you mean by effect -- an input mask simply directs the user to enter the data in a specific way. It won't change the actual data itself. If you're needing visual clues to help the user through the data entry process, input mask is a good way to go. Susan H. Group, I have several text fields that contain numerical data stored as text. Will a numerical input mask have any effect? -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Apr 2 15:58:30 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Fri, 2 Apr 2004 16:58:30 -0500 Subject: [AccessD] Add new record + fill fields with last entered data ? In-Reply-To: <20040402135448.38639.qmail@web61107.mail.yahoo.com> Message-ID: As Lilly Tomlin used to say on Laugh-In Oh. Never mind! John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of S D Sent: Friday, April 02, 2004 8:55 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Add new record + fill fields with last entered data ? John (and others) I didn't mean to offend anybody but I think i'm in a different line of work. Where doing maintenance on EXISTING apps. We don't build them ourselves (we also do that but not for this customer) Frameworks are GREAT! I'm playing around with you're examples a lot and I love it. But it's (almost) impossible to implement these in existing apps without rebuilding them from scratch. Extra problem here is that everything is on a very tight budget. Anyways, thnx for the reply. Regards, Sander "John W. Colby" wrote: Sander, >Some are more complex then others and in some cases (way) too heavy, how's that sledgehammer John ;-) but they all help! While I can appreciate personal opinion I have to ask how putting reusable code into a framework is (way) too heavy? In the beginning was assembler, and all was right. But there was no structure and it took forever to write code, so higher level languages were designed with functions and dimensioned variables. Of course there were those who scoffed at the overhead, and how slow it ran, but in general it was accepted as a good thing and was taught in schools and used by many programmers. But there were still many problems that remained and concepts such as objects, and classes and inheritance were designed. Of course there were those who scoffed at the overhead, and how slow it ran, but in general it was accepted as a good thing, and was taught in school and used by many programmers. Re-use, encapsulation, and all that stuff is (now) widely accepted practice. Whether or not you personally like these practices is only relevant to you (and the cost to your client of course). Have you ever heard of Steve Gibson of Spin Right fame? He does all his programming in assembler! Hmm... ok. For his purposes that is apparently just right, but it doesn't mean I want to do that. A framework is nothing more or less that reusability / encapsulation taken to the next level. It isn't like I invented the concept - ever heard of .NET? Can you say FRAMEWORK?. When you "attack" using a framework you are simply demonstrating a preference for a way of doing things that may be better for your purposes but definitely is NOT better for my purposes, nor I suspect, for many other people. >how's that sledgehammer John Just fine thanks. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of S D Sent: Friday, April 02, 2004 12:54 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Add new record + fill fields with last entered data ? Hihi here we go again. Everybody uses a different approach and they all work! Some are more complex then others and in some cases (way) too heavy, how's that sledgehammer John ;-) but they all help! thnx a lot. Now all i have to do is do a LOT of documenting and then it's of to find myself a weddingsuit! regards, sander "Brock, Christian T, HRC-Alexandria" wrote: The copy record and paste append commands will get every form field and subform. Do not see how what you say to do provides any benefit over using the three DoCmd.RunCommand statements. Christian Brock -----Original Message----- From: William Hindman [mailto:wdhindman at bellsouth.net] Sent: Thursday, 01 April 2004 10:49 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Add new record + fill fields with last entered data? ...that "wizard" simply bites ...I'd create a "duplicate" button that saves the pk of the current record to a variable or tag and then a query using the saved pk to append a "new" record that is a duplicate of the saved one except for the pk ...that would get you a dupe of every form field including any subform. William Hindman ipsedixitism: something is true because I myself have said it is true ...the philosophy of Noam Chomsky :) ----- Original Message ----- From: "Brock, Christian T, HRC-Alexandria" To: "'Access Developers discussion and problem solving'" Sent: Thursday, April 01, 2004 10:22 AM Subject: RE: [AccessD] Add new record + fill fields with last entered data? > Why go to the trouble? From the statement of intent, What the user really > wants is a duplicate current record button, instead of a new record button. > The Access XP command button wizard will allow you to create a button that > will duplicate the current record. > > It creates the following lines of code > DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70 > DoCmd.DoMenuItem acFormBar, acEditMenu, 2, , acMenuVer70 > DoCmd.DoMenuItem acFormBar, acEditMenu, 5, , acMenuVer70 'Paste Append > > Obviously MS did not update the wizard to use readable code. The following > will work as well. > DoCmd.RunCommand acCmdSelectRecord > DoCmd.RunCommand acCmdCopy > DoCmd.RunCommand acCmdPasteAppend > > > Christian Brock > > > > > -----Original Message----- > From: Gustav Brock [mailto:gustav at cactus.dk] > Sent: Thursday, 01 April 2004 09:36 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Add new record + fill fields with last entered data? > > > Hi Tina > > > I begin to understand. At the OnCurrent Event for the Form, the Event > > Procedure will set the DefaultValue of each TextBox to the values > > determined to already be stored in the record just saved. Is that > > correct? > > Yes and no. No saving needs to take place: > > At the OnCurrent Event for the Form, the Event Procedure will set the > DefaultValue of each TextBox (or ComboBox etc.) to the values for the > current record of those controls. > > > Does this require explicitly listing each TextBox of the form? > > Yes. > > /gustav > > > >>>How does one set the DefautlValue at OnCurrent? I don't know how to do > >>>that. > >> > >>That's not difficult - something like this: > >> > >> Dim txt As TextBox > >> Set txt = Me!txtYourTextBox > >> > >> txt.DefaultValue = txt.Value > >> > >> Set txt = Nothing > >> > >>However, DefaultValue should be a string which means that if your > >>textbox contains decimals or a date/time value you must be careful and > >>convert to a string in US format: > >> > >> txt.DefaultValue = LTrim(Str(txt.Value)) > >> > >>or > >> > >> txt.DefaultValue = _ > >> Format(txt.Value, "\#mm\/dd\/yyyy hh\:nn\:ss AM/PM\#") > >> > >>/gustav > >> > >>>>Tough day? No coffee? > >>>> > >>>>Set the DefaultValue at OnCurrent. > >>>> > >>>>As for Stuart's note on the KeyPreview, it's not a user feature, but a > >>>>property of the form. > >>>> > >>>>/gustav > >>>> > >>>>>when a user clicks the 'Add new record' button (s)he wants the data of > the current record to be displayed in the new record. > >>>>>So if a user is on record 999 with field username filled with AAA and > then clicks on 'Add new record' then a new record (1000) must appear with > the field username filled with AAA. > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter 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 --------------------------------- Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter today -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Apr 2 16:43:21 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Fri, 2 Apr 2004 17:43:21 -0500 Subject: [AccessD] Add new record + fill fields with last entered data ? In-Reply-To: Message-ID: uhh... or Gilda Radner on Saturday Night Live? ;-) John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Friday, April 02, 2004 4:59 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Add new record + fill fields with last entered data ? As Lilly Tomlin used to say on Laugh-In Oh. Never mind! John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of S D Sent: Friday, April 02, 2004 8:55 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Add new record + fill fields with last entered data ? John (and others) I didn't mean to offend anybody but I think i'm in a different line of work. Where doing maintenance on EXISTING apps. We don't build them ourselves (we also do that but not for this customer) Frameworks are GREAT! I'm playing around with you're examples a lot and I love it. But it's (almost) impossible to implement these in existing apps without rebuilding them from scratch. Extra problem here is that everything is on a very tight budget. Anyways, thnx for the reply. Regards, Sander "John W. Colby" wrote: Sander, >Some are more complex then others and in some cases (way) too heavy, how's that sledgehammer John ;-) but they all help! While I can appreciate personal opinion I have to ask how putting reusable code into a framework is (way) too heavy? In the beginning was assembler, and all was right. But there was no structure and it took forever to write code, so higher level languages were designed with functions and dimensioned variables. Of course there were those who scoffed at the overhead, and how slow it ran, but in general it was accepted as a good thing and was taught in schools and used by many programmers. But there were still many problems that remained and concepts such as objects, and classes and inheritance were designed. Of course there were those who scoffed at the overhead, and how slow it ran, but in general it was accepted as a good thing, and was taught in school and used by many programmers. Re-use, encapsulation, and all that stuff is (now) widely accepted practice. Whether or not you personally like these practices is only relevant to you (and the cost to your client of course). Have you ever heard of Steve Gibson of Spin Right fame? He does all his programming in assembler! Hmm... ok. For his purposes that is apparently just right, but it doesn't mean I want to do that. A framework is nothing more or less that reusability / encapsulation taken to the next level. It isn't like I invented the concept - ever heard of .NET? Can you say FRAMEWORK?. When you "attack" using a framework you are simply demonstrating a preference for a way of doing things that may be better for your purposes but definitely is NOT better for my purposes, nor I suspect, for many other people. >how's that sledgehammer John Just fine thanks. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of S D Sent: Friday, April 02, 2004 12:54 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Add new record + fill fields with last entered data ? Hihi here we go again. Everybody uses a different approach and they all work! Some are more complex then others and in some cases (way) too heavy, how's that sledgehammer John ;-) but they all help! thnx a lot. Now all i have to do is do a LOT of documenting and then it's of to find myself a weddingsuit! regards, sander "Brock, Christian T, HRC-Alexandria" wrote: The copy record and paste append commands will get every form field and subform. Do not see how what you say to do provides any benefit over using the three DoCmd.RunCommand statements. Christian Brock -----Original Message----- From: William Hindman [mailto:wdhindman at bellsouth.net] Sent: Thursday, 01 April 2004 10:49 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Add new record + fill fields with last entered data? ...that "wizard" simply bites ...I'd create a "duplicate" button that saves the pk of the current record to a variable or tag and then a query using the saved pk to append a "new" record that is a duplicate of the saved one except for the pk ...that would get you a dupe of every form field including any subform. William Hindman ipsedixitism: something is true because I myself have said it is true ...the philosophy of Noam Chomsky :) ----- Original Message ----- From: "Brock, Christian T, HRC-Alexandria" To: "'Access Developers discussion and problem solving'" Sent: Thursday, April 01, 2004 10:22 AM Subject: RE: [AccessD] Add new record + fill fields with last entered data? > Why go to the trouble? From the statement of intent, What the user really > wants is a duplicate current record button, instead of a new record button. > The Access XP command button wizard will allow you to create a button that > will duplicate the current record. > > It creates the following lines of code > DoCmd.DoMenuItem acFormBar, acEditMenu, 8, , acMenuVer70 > DoCmd.DoMenuItem acFormBar, acEditMenu, 2, , acMenuVer70 > DoCmd.DoMenuItem acFormBar, acEditMenu, 5, , acMenuVer70 'Paste Append > > Obviously MS did not update the wizard to use readable code. The following > will work as well. > DoCmd.RunCommand acCmdSelectRecord > DoCmd.RunCommand acCmdCopy > DoCmd.RunCommand acCmdPasteAppend > > > Christian Brock > > > > > -----Original Message----- > From: Gustav Brock [mailto:gustav at cactus.dk] > Sent: Thursday, 01 April 2004 09:36 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Add new record + fill fields with last entered data? > > > Hi Tina > > > I begin to understand. At the OnCurrent Event for the Form, the Event > > Procedure will set the DefaultValue of each TextBox to the values > > determined to already be stored in the record just saved. Is that > > correct? > > Yes and no. No saving needs to take place: > > At the OnCurrent Event for the Form, the Event Procedure will set the > DefaultValue of each TextBox (or ComboBox etc.) to the values for the > current record of those controls. > > > Does this require explicitly listing each TextBox of the form? > > Yes. > > /gustav > > > >>>How does one set the DefautlValue at OnCurrent? I don't know how to do > >>>that. > >> > >>That's not difficult - something like this: > >> > >> Dim txt As TextBox > >> Set txt = Me!txtYourTextBox > >> > >> txt.DefaultValue = txt.Value > >> > >> Set txt = Nothing > >> > >>However, DefaultValue should be a string which means that if your > >>textbox contains decimals or a date/time value you must be careful and > >>convert to a string in US format: > >> > >> txt.DefaultValue = LTrim(Str(txt.Value)) > >> > >>or > >> > >> txt.DefaultValue = _ > >> Format(txt.Value, "\#mm\/dd\/yyyy hh\:nn\:ss AM/PM\#") > >> > >>/gustav > >> > >>>>Tough day? No coffee? > >>>> > >>>>Set the DefaultValue at OnCurrent. > >>>> > >>>>As for Stuart's note on the KeyPreview, it's not a user feature, but a > >>>>property of the form. > >>>> > >>>>/gustav > >>>> > >>>>>when a user clicks the 'Add new record' button (s)he wants the data of > the current record to be displayed in the new record. > >>>>>So if a user is on record 999 with field username filled with AAA and > then clicks on 'Add new record' then a new record (1000) must appear with > the field username filled with AAA. > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter 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 --------------------------------- Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter 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 stuart at lexacorp.com.pg Fri Apr 2 16:57:14 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 03 Apr 2004 08:57:14 +1000 Subject: [AccessD] ORDER BY BUG using Date format AARHG In-Reply-To: <2F8793082E00D4119A1700B0D0216BF802227A6B@main2.marlow.com> Message-ID: <406E7C6A.9761.F97A3@localhost> On 2 Apr 2004 at 9:45, DWUTKA at marlow.com wrote: > Because Format() returns a string, To be strictly correct, Format() returns a variant of type String. Format$() returns a string. Most of the string manipulation functions have two varieties , with and without a trailing "$". Leaving the "$" off returns a variant with the additional overhead and potential problems of using that data type. It's a good idea use the specific version wherever possible. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From stuart at lexacorp.com.pg Fri Apr 2 17:03:28 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 03 Apr 2004 09:03:28 +1000 Subject: [AccessD] Re: Vertical Lines in a Report In-Reply-To: <406D7764.000003.72847@jedel> Message-ID: <406E7DE0.9331.15506B@localhost> On 2 Apr 2004 at 23:53, Dean Ellis wrote: > Everyone, > > Thanks for your replies to this post. > > Dazza, The code you gave me works and I did a similar thing to start with, > the problem i'm having is the height of the line isn't changing with the > Growth of the Memo boxes that are between the two horizontal lines. and > because of this, I get a big gap between the bottom line and the bottom of > the vertical line. > > The othe rtwo sets of code that were posted worked as well, but they only > gave me the hieght of the line, but it was always the full height of the > detail section of the report. I want to specify the top position to join the > ned of a horizontal line and make the bottom end of the vertical line > postion relative to the size of the text boxes set at "Can Grow" so that the > vertical lines will alway join top and bottom. > The bottom horizontal line will be moved by the memo box above it growing, so just set the height of the verticle line to the distance between the horizontal lines. lneLeftVertical.Height = lneBottomHorizontal.Top - lneTopHorizontal.Top -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From DWUTKA at marlow.com Fri Apr 2 17:07:42 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Fri, 2 Apr 2004 17:07:42 -0600 Subject: [AccessD] ORDER BY BUG using Date format AARHG Message-ID: <2F8793082E00D4119A1700B0D0216BF802227A6E@main2.marlow.com> Good point. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stuart McLachlan Sent: Friday, April 02, 2004 4:57 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] ORDER BY BUG using Date format AARHG On 2 Apr 2004 at 9:45, DWUTKA at marlow.com wrote: > Because Format() returns a string, To be strictly correct, Format() returns a variant of type String. Format$() returns a string. Most of the string manipulation functions have two varieties , with and without a trailing "$". Leaving the "$" off returns a variant with the additional overhead and potential problems of using that data type. It's a good idea use the specific version wherever possible. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Fri Apr 2 19:40:51 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Fri, 02 Apr 2004 17:40:51 -0800 Subject: [AccessD] Portugal In-Reply-To: <3812436152.20040402122255@cactus.dk> Message-ID: Hi Gustav: Try again in August....? Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock Sent: Friday, April 02, 2004 2:23 AM To: AccessD at databaseadvisors.com Subject: [AccessD] Portugal Hi all I'll be visiting Portugal next week. Would any listers be present in the Lisboa area to meet for a glass of port? /gustav -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From kathryn at bassett.net Sat Apr 3 00:39:59 2004 From: kathryn at bassett.net (Kathryn Bassett) Date: Fri, 2 Apr 2004 22:39:59 -0800 Subject: [AccessD] "See ya" in a few days In-Reply-To: Message-ID: <200404030640.i336e2jk051635@mxsf20.cluster1.charter.net> Nope, I was fully backed up, data-wise. The problem is the amount of time it takes to re-load all the programs I have to load and set the various configurations the way I had them. I've updated to Office 2003, and opened a few of my .mdb's with no problem, so guess that works ok. I'm getting used to the new Outlook, but was looking forward to it. Having a problem with synchronizing BeyondContacts though - it tells me "Synchronization was skipped because the profile you selected to synchronize with in HotSync Custom is different from the one that Outlook is opened to. Please select the profile you wish to synchronize with in Hotsync Custom and either close Outlook, or open it in the profile you have selected." Will probably have to wait til Monday to call them and find out how to fix this. Got my genealogy program running. Bought a cordless keyboard - love that! (Remember, I use my laptop like a desktop - external everything). Since my new laptop (Sony PCG-GRT300Z http://shop1.outpost.com/product/3939768) has an 80gig hd, I bought a new external that size too, so I can do full backups. That's what saved my but when the other one crashed. I use a program called SecondCopy and run that every night when I'm finished for the eve (and play FreeCell while it's backing up). Haven't got Dreamweaver up yet, so behind on my webmastering. That's next. Tomorrow, I'm taking a break. We are going with some other local Hams on a "road trip" to see the poppy fields (http://www.calparksmojave.com/poppy/index.html). -- Kathryn Rhinehart Bassett (Pasadena CA) "Genealogy is my bag" "GH is my soap" kathryn at bassett.net http://bassett.net > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Jim Lawrence (AccessD) > Sent: 01 Apr 2004 7:49 am > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] "See ya" in a few days > > Hi Kathryn: > > Hope you have not lost anything important, that you can not > recover from somewhere. > > Good luck > Jim From gustav at cactus.dk Sat Apr 3 04:40:34 2004 From: gustav at cactus.dk (Gustav Brock) Date: Sat, 3 Apr 2004 12:40:34 +0200 Subject: [AccessD] ORDER BY BUG using Date format AARHG In-Reply-To: <406E7C6A.9761.F97A3@localhost> References: <406E7C6A.9761.F97A3@localhost> Message-ID: <423777461.20040403124034@cactus.dk> Hi Stuart I never understood the difference. Contrary to what you tell, I've learned as well, and the on-line help (A97) tells, both return VarType vbString (8). How could one ever tell a difference between 8 and 8? This could be a subject for Susan: Why always use ..$() when possible, when nearly no one does ... /gustav > To be strictly correct, Format() returns a variant of type String. > Format$() returns a string. > Most of the string manipulation functions have two varieties , with > and without a trailing "$". Leaving the "$" off returns a variant > with the additional overhead and potential problems of using that > data type. It's a good idea use the specific version wherever > possible. From jwcolby at colbyconsulting.com Sat Apr 3 05:38:40 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sat, 3 Apr 2004 06:38:40 -0500 Subject: [AccessD] ORDER BY BUG using Date format AARHG In-Reply-To: <423777461.20040403124034@cactus.dk> Message-ID: Gustav, The differences center around the fact that the result is returned as a variant if you don't use the $. The obvious differences are: 1) Specified datatypes are faster. Variants supposedly carry a penalty since they have to be "interpreted" to figure out what they are. 2) A Variant can be coerced without warning into another datatype. This may be exactly what you want and then it's ok. For example if the string holds a date, and you try to return the $ function into a variable dimensioned as date, it will complain and you will know that is happening. If you return the function without the $ it will just be coerced into a date and you will never know. Again, you may indeed be aware that the string is a date and WANT it coerced, but if your intention is to keep it in string format and inadvertently dim the destination as a date instead of a string, then one function will immediately make you aware of your error. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock Sent: Saturday, April 03, 2004 5:41 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] ORDER BY BUG using Date format AARHG Hi Stuart I never understood the difference. Contrary to what you tell, I've learned as well, and the on-line help (A97) tells, both return VarType vbString (8). How could one ever tell a difference between 8 and 8? This could be a subject for Susan: Why always use ..$() when possible, when nearly no one does ... /gustav > To be strictly correct, Format() returns a variant of type String. > Format$() returns a string. > Most of the string manipulation functions have two varieties , with > and without a trailing "$". Leaving the "$" off returns a variant > with the additional overhead and potential problems of using that > data type. It's a good idea use the specific version wherever > possible. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Sat Apr 3 06:59:21 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 03 Apr 2004 22:59:21 +1000 Subject: [AccessD] ORDER BY BUG using Date format AARHG In-Reply-To: <423777461.20040403124034@cactus.dk> References: <406E7C6A.9761.F97A3@localhost> Message-ID: <406F41C9.8160.31290B7@localhost> On 3 Apr 2004 at 12:40, Gustav Brock wrote: > Hi Stuart > > I never understood the difference. Contrary to what you tell, I've > learned as well, and the on-line help (A97) tells, both return VarType > vbString (8). > How could one ever tell a difference between 8 and 8? > > This could be a subject for Susan: > > Why always use ..$() when possible, when nearly no one does ... > 1. Because it's more efficient. a. it uses less storage for the variable b. it avoids the overhead of interpreting the type every time it is referenced 2. It prevents accidental type conversion when you don't intend it. Variant "coercion" can introduce subtle bugs into your code which are difficult to isolate. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From gustav at cactus.dk Sat Apr 3 07:53:34 2004 From: gustav at cactus.dk (Gustav Brock) Date: Sat, 3 Apr 2004 15:53:34 +0200 Subject: [AccessD] ORDER BY BUG using Date format AARHG In-Reply-To: <423777461.20040403124034@cactus.dk> References: <406E7C6A.9761.F97A3@localhost> <423777461.20040403124034@cactus.dk> Message-ID: <17115358223.20040403155334@cactus.dk> Hi John and Stuart Yes, I know about type declarations and variables - I only use Variant when Null is an acceptable "value". But that was not my question ... Dim strVar As String Now, 1. or 2.: 1. strVar = Str(1234) 2. strVar = Str$(1234) Both Str() and Str$() cannot return anything but a string - the only difference I can find is that Str$() returns a string while Str() should return a variant with the undertype String. But why would I care? Isn't a string a string? Speed could be a concern. But testing with a loop with 2 mio. iterations doesn't show any difference between Str() and Str$(). So do we see ghosts here? Why would I go on typing unneeded $ signs? /gustav > I never understood the difference. Contrary to what you tell, I've > learned as well, and the on-line help (A97) tells, both return VarType > vbString (8). > How could one ever tell a difference between 8 and 8? > This could be a subject for Susan: > Why always use ..$() when possible, when nearly no one does ... > /gustav >> To be strictly correct, Format() returns a variant of type String. >> Format$() returns a string. >> Most of the string manipulation functions have two varieties , with >> and without a trailing "$". Leaving the "$" off returns a variant >> with the additional overhead and potential problems of using that >> data type. It's a good idea use the specific version wherever >> possible. From HollisVJ at pgdp.usec.com Sat Apr 3 11:50:24 2004 From: HollisVJ at pgdp.usec.com (Hollis,Virginia) Date: Sat, 03 Apr 2004 11:50:24 -0600 Subject: [AccessD] AllowEdits on Subform Message-ID: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D504@cntexchange.pgdp.usec.com> How do you prevent/allow Edits on a subform? I have a command button that is used to Edit a record. The form does not allow edits without using the Edit Record button. The problem is that the subform still allows edits without using the Edit Record button. Virginia From andy at minstersystems.co.uk Sat Apr 3 13:53:29 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Sat, 3 Apr 2004 20:53:29 +0100 Subject: [AccessD] AllowEdits on Subform In-Reply-To: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D504@cntexchange.pgdp.usec.com> Message-ID: <007d01c419b5$5614b870$b274d0d5@minster33c3r25> A subform has its own AllowEdits property Virginia. You can control it with the following code: Me!subControl.Form.AllowEdits = True/False -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Hollis,Virginia > Sent: 03 April 2004 18:50 > To: 'accessd at databaseadvisors.com' > Subject: [AccessD] AllowEdits on Subform > > > How do you prevent/allow Edits on a subform? > > I have a command button that is used to Edit a record. The > form does not allow edits without using the Edit Record > button. The problem is that the subform still allows edits > without using the Edit Record button. > > Virginia > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > From ssharkins at bellsouth.net Sun Apr 4 15:02:40 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Sun, 4 Apr 2004 16:02:40 -0400 Subject: [AccessD] OT: good book Message-ID: <20040404200300.ZMYZ1763.imf25aec.mail.bellsouth.net@SUSANONE> http://www.codertodeveloper.com/ ====No personal affiliation -- just a good reference. Susan H. From d.dick at uws.edu.au Sun Apr 4 18:07:33 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Mon, 5 Apr 2004 09:07:33 +1000 Subject: [AccessD] A2K Increase Year by 1 Message-ID: <00c801c41a99$9ce617a0$48619a89@DDICK> Hello all Brain fade here It's Monday morning and everything is just as you would expect a Monday to be I have a dB that holds dates of Occurrences I have a need to increase the 'year' portion only of that date by 1 eg 31/01/2001 now needs to become 31/01/2002 There are hundreds of 'em though so doing it manually isn't an option. I just need a quick query to update 'em all. I actually have done this is the past (on the same dB actually) but can't recall how I did it Many thanks in advance Darren From jwcolby at colbyconsulting.com Sun Apr 4 18:19:24 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sun, 4 Apr 2004 19:19:24 -0400 Subject: [AccessD] A2K Increase Year by 1 In-Reply-To: <00c801c41a99$9ce617a0$48619a89@DDICK> Message-ID: DateAdd JWC -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Darren DICK Sent: Sunday, April 04, 2004 7:08 PM To: AccessD List Subject: [AccessD] A2K Increase Year by 1 Hello all Brain fade here It's Monday morning and everything is just as you would expect a Monday to be I have a dB that holds dates of Occurrences I have a need to increase the 'year' portion only of that date by 1 eg 31/01/2001 now needs to become 31/01/2002 There are hundreds of 'em though so doing it manually isn't an option. I just need a quick query to update 'em all. I actually have done this is the past (on the same dB actually) but can't recall how I did it Many thanks in advance Darren -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From demulling at centurytel.net Sun Apr 4 18:24:41 2004 From: demulling at centurytel.net (Demulling Family) Date: Sun, 04 Apr 2004 18:24:41 -0500 Subject: [AccessD] A2K Increase Year by 1 In-Reply-To: <00c801c41a99$9ce617a0$48619a89@DDICK> References: <00c801c41a99$9ce617a0$48619a89@DDICK> Message-ID: <40709939.5060402@centurytel.net> Darren DICK wrote: >Hello all >Brain fade here >It's Monday morning and everything is just as you would expect a Monday to be >I have a dB that holds dates of Occurrences >I have a need to increase the 'year' portion only of that date by 1 >eg 31/01/2001 now needs to become 31/01/2002 >There are hundreds of 'em though so doing it manually isn't an option. >I just need a quick query to update 'em all. I actually have done this is the past >(on the same dB actually) but can't recall how I did it > >Many thanks in advance > >Darren > > > DateAdd("yyyy",1,<>) From d.dick at uws.edu.au Sun Apr 4 19:05:07 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Mon, 5 Apr 2004 10:05:07 +1000 Subject: [AccessD] A2K Increase Year by 1 References: Message-ID: <019301c41aa1$a7b80b90$48619a89@DDICK> Excellent Thanks John ----- Original Message ----- From: "John W. Colby" To: "Access Developers discussion and problem solving" Sent: Monday, April 05, 2004 9:19 AM Subject: RE: [AccessD] A2K Increase Year by 1 > DateAdd > > JWC > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Darren DICK > Sent: Sunday, April 04, 2004 7:08 PM > To: AccessD List > Subject: [AccessD] A2K Increase Year by 1 > > > Hello all > Brain fade here > It's Monday morning and everything is just as you would expect a Monday to > be > I have a dB that holds dates of Occurrences > I have a need to increase the 'year' portion only of that date by 1 > eg 31/01/2001 now needs to become 31/01/2002 > There are hundreds of 'em though so doing it manually isn't an option. > I just need a quick query to update 'em all. I actually have done this is > the past > (on the same dB actually) but can't recall how I did it > > 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 Sun Apr 4 19:08:18 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Mon, 5 Apr 2004 10:08:18 +1000 Subject: [AccessD] A2K: Stop User from oving to new record Message-ID: <019901c41aa2$199277f0$48619a89@DDICK> Hello all I have a simple subform with 4 fields on it ID (PK), txtDateOfOccurence, cboClientName, cboOffence How can I tell if the user goes to a new record and they have not completed ALL fields in the previous record How do I alert them and then direct them back to the previous record? many thanks Darren From carbonnb at sympatico.ca Sun Apr 4 19:25:35 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Sun, 04 Apr 2004 20:25:35 -0400 Subject: [AccessD] A2K: Stop User from oving to new record In-Reply-To: <019901c41aa2$199277f0$48619a89@DDICK> Message-ID: <40706F3F.16231.9E7B12@localhost> On 5 Apr 2004 at 10:08, Darren DICK wrote: > I have a simple subform with 4 fields on it > ID (PK), txtDateOfOccurence, cboClientName, cboOffence > > How can I tell if the user goes to a new record and they have not > completed ALL fields in the previous record How do I alert them and > then direct them back to the previous record? Use the before update event of the form. Check to make sure they entered a vale and if not set Cancel = true in the event. That should prevent the record from being saved and keep the sub form on the "unfinished" record -- Bryan Carbonnell - carbonnb at sympatico.ca The trouble with doing something right the first time is that nobody appreciates how difficult it is. From d.dick at uws.edu.au Sun Apr 4 19:37:36 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Mon, 5 Apr 2004 10:37:36 +1000 Subject: [AccessD] A2K Increase Year by 1 References: <00c801c41a99$9ce617a0$48619a89@DDICK> <40709939.5060402@centurytel.net> Message-ID: <01b401c41aa6$31734df0$48619a89@DDICK> That was it Thanks Demulling Family ----- Original Message ----- From: "Demulling Family" To: "Access Developers discussion and problem solving" Sent: Monday, April 05, 2004 9:24 AM Subject: Re: [AccessD] A2K Increase Year by 1 > Darren DICK wrote: > > >Hello all > >Brain fade here > >It's Monday morning and everything is just as you would expect a Monday to be > >I have a dB that holds dates of Occurrences > >I have a need to increase the 'year' portion only of that date by 1 > >eg 31/01/2001 now needs to become 31/01/2002 > >There are hundreds of 'em though so doing it manually isn't an option. > >I just need a quick query to update 'em all. I actually have done this is the past > >(on the same dB actually) but can't recall how I did it > > > >Many thanks in advance > > > >Darren > > > > > > > DateAdd("yyyy",1,<>) > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sun Apr 4 20:30:37 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sun, 4 Apr 2004 21:30:37 -0400 Subject: [AccessD] Framework Discussion - Moving to a library Message-ID: Framework ? Moving to a Library For the purposes of this lecture, the framework is approaching a useable state. We now have: ? A framework class that initializes the framework service classes. ? SysVars that can be used to modify program flow and turn on / off behaviors or modify how behaviors work. ? A form class that has a functioning control scanner finding specific control types and loading class instances for these controls. ? Control classes that are loaded by the form?s control scanner. ? A troubleshooting class that logs (or can log) all classes loading and unloading to assist troubleshooting unloading problems. ? Service classes such as Zip which can be loaded as the application requires. >From this point forward, the lectures will concentrate on how to add functionality to the framework, adding in more service classes, more control classes, and adding behaviors to the form and control classes as we run across useful things that we want available to all of our applications. However a framework is not very useful if it has to be inside the Application FE. What we need to do next is create the typical FE/BE system and reference the framework as a library in an MDA / MDB. This presents a few challenges, but it also allows us to easily ?exchange? the library for a new version without damaging the application?s data. The process of moving our demo framework to a FE/BE is reasonably easy. All we do is: ? Create an FE and export the forms / queries / reports to that, leaving all the classes here in the original container. ? Create a BE and export the tables to that. ? Link the FE to the tables in the BE ? Change the name of the framework to an MDA extension ? Reference the framework library from the FE. ? Delete the forms / queries / reports / tables from the framework library. ? Expose dclsFrm The library is Referenced by selecting from the menu while in any module, Tools / References, click Browse and navigate to the directory where the copy of the library is stored, then selecting it. Having done these things we are ready to use the framework as a referenced lib. There is a small downside to working this way, namely the requirement to relink the tables as you get the demos. I have moved the entire directory from my normal development drive to the c: drive, c:\ C2DbFW3G so that if you place it there the table links will always work when you get the latest version. Using a class factory One process required when moving to a library is to make the classes that you need to reference from inside the FE can be found by your code. There are at least two ways to do this. The simplest is to build a wrapper class inside the library that looks something like this: Public function cFrm() as dclsFrm Set cfrm = new dclsFrm End function This is a class factory that gets a new instance of that class and returns a pointer to it. This method works well and like most things has pluses and minuses to it. The plus is that you don?t have to expose the class itself which we shall see in a minute is a little more work. The minus is that there is no intellisense available, and when we are dealing with classes, that is a pretty big minus. Exposing a class directly Another way to do this is to expose the class directly using an undocumented feature in Access. In order to do this we need to export the class module to a text file, edit the text file, delete the original class module in the library, and import the modified class text file back into the library. Export the class To export a class to a text file we need to: ? Go to the database window. ? Click the modules tab ? Click on a class module to select it ? Click File / Export ? A File Find dialog box will open. Navigate to the directory for this project. ? Create a Classes directory if none exists already, then navigate to that directory ? Select save as type: Text files in the bottom combo of the File Find dialog ? Add a .txt to the file name ? Click the Save button. Next we need to edit the text file in Wordpad. ? Using Windows Explorer, navigate to the file we just created. If you followed the instructions above it should be in a class subdirectory under the project directory for this framework. ? Open the file just exported The top of the file should look similar to: VERSION 1.0 CLASS BEGIN MultiUse = -1 'True END Attribute VB_Name = "clsFramework" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = True Attribute VB_Exposed = False Option Compare Database Option Explicit ? We can then remove the VERSION line and the BEGIN/END section plus the two Option lines so that all that remains (of that section) is: Attribute VB_Name = "clsFramework" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = False Attribute VB_PredeclaredId = True Attribute VB_Exposed = False ? Next we need to edit this section, specifically we need to change VB_Creatable to True, and VB_Exposed to True Attribute VB_Name = "clsFramework" Attribute VB_GlobalNameSpace = False Attribute VB_Creatable = True Attribute VB_PredeclaredId = True Attribute VB_Exposed = True ? Save the file and exit Wordpad. At this point the class is edited and ready to import back into the library. ? In the library, delete the class that we are working on. ? Now from the menu Click Insert / Class module, then Insert / File. Use the file find dialog to navigate to the directory where the class txt file is located and select that file. The contents will load into the empty class module we just created. ? On the menu click Debug/Compile just to check that everything is working properly. If not fix the compile errors. There should be no errors but if you failed to edit the header of the class in the text file you could get some stuff up there (like duplicate Option statements). ? Once it compiles, on the menu click File / Save. It will ask if you want to save the class and will offer you a name. Just click yes. You have finished the process of making a class ?visible? from outside of the library. Standard Disclaimer: This is an ?undocumented? procedure which means that Microsoft may at any moment pull some stunt that makes this not work. However this method works from Access97 up through AccessXP and probably A2003 (I haven?t personally tested that last). Using a library Using a library is more complex than having all of your code inside the FE, however the pluses far outweigh the minuses. Some issues in no particular order: ? When you are running code in the library ?from? a FE, you can edit the code in the library but those edits are not permanent. The library is ?read only? and you are just making changes to the code loaded in memory (more or less). ? A result of the above is that in order to make changes permanent you must work in a completely different copy than the one referenced by the project. In other words, even if you were to open the library from another instance of Access, any attempt to make edits will cause Access to inform you that the changes will not be saved. ? In fact, if I remember correctly, this is not true for A97, it could indeed make changes to the lib from another instance of Access and make them stick, but from A2K onwards you cannot do that. Thus you need to always have a ?referenced? library and a ?working? library in different directories. The ?referenced? library is of course referenced by the application and in use when the App is open. The ?working? library is the copy that you modify with changes that you wish to become permanent. ? Libraries can be shared, i.e. multiple users can reference the lib. However it is more often the case that (in a multi-user environment) we will download both the FE and the BE to a local directory on the user?s hard drive. This brings up another issue, if the reference is ?broken?, i.e. the library cannot be found in the location that the reference says it should be, then Access will automatically search a ?path? in an attempt to find the file. I can?t find information about the exact file path at the moment but I know that Access will search the Windows directory, System32 and the current application directory, I believe in that order. This means that you can drop your framework in any of those locations and even if the application has the reference to some other place, the lib will be found and the broken reference will be fixed automatically. If the referenced library is not found, then a ?broken reference? will be visible in the Reference wizard and you will need to fix it manually. ? You also have to initialize the framework before initializing anything else so that the framework is up and running by the time the application and its forms try and use it. In addition the framework has to be unloaded when the application closes. It is possible for objects loaded by the framework to prevent Access closing so we have to have a failsafe method of unloading every time. I do this by loading a form usysfrmFWCleanup in the framework?s Init() function and calls the framework?s Term() function from its Close event. This form resides in the framework library. Since Access cannot close without closing all forms, regardless of how it occurs the application closing will close this form which cleans up the framework. Because closing this form unloads the framework, I also call Application.Quit acQuitSaveNone. Users are not supposed to be closing this form (or even seeing it). If the form is closed for any reason, the application will not function correctly so I just close the Application. Ordinarily this form closes because the application is already closing, but if it is closed accidentally, the application will be closed as well. These are some of the issues that must be considered when using a library. However the alternative of placing all such code directly in the FE causes immense maintenance issues if you have more than one project. A library is used precisely because a fix to a single library and a redistribution of that library will fix a bug or problem for every project that uses that lib. Likewise adding a behavior to a lib will provide that behavior automatically to every project that uses the library. Sysvars Using SysVars in a framework / Library is probably not familiar to most developers so I will take a few moments to discuss how we implement framework overrides. As we have seen in past lectures, the SysVars are used to turn on/off or otherwise modify behaviors that the framework makes available to the developer / application. In order to really be useful however we have to be able to change the default behaviors from inside of the application. The way we do this is to copy the framework SysVar table into the FE. We will leave a copy of those SysVars that we want this specific application to be able to override. Now, by setting the SysVars to whatever state we desire for this Application and merging in the SysVar table in the application, we can perform the Override. I have done this in the demo for this lecture. I have also added two more SysVar systems to the Framework, one for the Application control (code) and the other for the Application Data. These two SysVars are so common that I just include them right in the framework so that all the developer has to do is run the Init method and start using them. The Application?s control SysVar table is usually embedded in the FE so that the SysVars controlling the Application travel with the FE container. The Application?s data SysVar table is generally placed in the BE so that things like Company information etc. do not get corrupted when a new Framework or FE is distributed. The additional code for consist of two additional variables in the framework class? header: Private mclsSVAppCont As clsSysVars Private mclsSVAppData As clsSysVars Then in the framework?s Initialize we SET these variables: Set mclsSVAppCont = New clsSysVars Set mclsSVAppData = New clsSysVars We add a new set of functions to initialize the framework instance, return a pointer to the class instance and return a SysVar from each Instance. One set for the Application Control: ' 'Initialize the SysVars for the Application Control ' Public Function SVAPPContInit(strTblName As String) mclsSVAppCont.Init Nothing, gcnn, strTblName End Function ' 'Get a pointer to the Application Control SV class instance ' Public Function cSVAppCont() As clsSysVars Set cSVAppCont = mclsSVAppCont End Function ' 'Return SysVars from the Application Control SysVar class ' Public Function SVAppCont(strSVName As String) As Variant SVAppCont = mclsSVAppCont.SV(strSVName) End Function And one set for the Application Data: ' 'Initialize the SysVars for the Application Data ' Public Function SVAPPDataInit(strTblName As String) mclsSVAppData.Init Nothing, gcnn, strTblName End Function ' 'Get a pointer to the Application Data SV class instance ' Public Function cSVAppData() As clsSysVars Set cSVAppData = mclsSVAppData End Function ' 'Return SysVars from the Application Data SysVar class ' Public Function SVAppData(strSVName As String) As Variant SVAppData = mclsSVAppData.SV(strSVName) End Function I have exposed the SysVars class so that you can easily instantiate your own SysVars if you need more than the Application Control and Application Data SysVars provided by the framework. In order to demonstrate using these two SysVar sets, I have created a label in the switchboard that displays a version number in the format YYYY.MM.DD. The visible property of this label is set to false. In the FE I created the table usystblAppCont where I set a DisplayVersion SysVar = True. In the application?s init() I called the SVAPPDataInit method of the framework: Function AppInit() If Not blnAppInitialized Then 'initialize the framework fwinit blnAppInitialized = True fw.SVAPPContInit "usystblAppCont" fw.SVAPPDataInit "usystblAppData" End If End Function This has the effect of loading all the SysVars in usystblAppCont (there?s only one at the moment). Then in the switchboard?s Open event I set lblVersion.Visible to the value in the SysVar table. Private Sub Form_Open(Cancel As Integer) ' Minimize the database window and initialize the form. AppInit ' Move to the switchboard page that is marked as the default. Me.Filter = "[ItemNumber] = 0 AND [Argument] = 'Default' " Me.FilterOn = True lblVersion.Visible = fw.SVAppCont("DisplayVersion") txtDeveloper = fw.SVAppData("Developer") & vbCrLf & fw.SVAppData("DevEmail") End Sub Since I have the DisplayVersion set to True in the table, the label will be visible. This demonstrates the usage of SysVars to control Application behaviors. Likewise I added a table to the BE called usystblAppData and linked that into the FE. In that table I added two SysVars, Developer and DevEMail. I then created a txtDeveloper text box on the switchboard that displays this information. Notice that this one pulls its data from fw.SVAppData. Now as the switchboard opens it pulls these developer SysVars out of the BE. Perhaps Developer data wasn?t the best thing to use for Application data but I didn?t particularly want to put my TaxID in there. As you can see the end user of the system can load their data into this table and have it displayed in the switchboard, report footers etc. SysVars can be used for many purposes, but the Framework control, Application control and Application data are so common that I just include these three SysVar tables right in the framework for immediate use. Modifications The modifications required when we move to an FE consist of building an AppInit() and calling it from somewhere. Private blnAppInitialized As Boolean Function AppInit() If Not blnAppInitialized Then 'initialize the framework fwinit blnAppInitialized = True End If End Function Notice that we set a Boolean so that if the function is called multiple times it will only execute once. You can then place any code that you need to initialize in this function as well. To run this code the options are an Autoexec macro or a splash screen or switchboard. To keep things simple I just built a very simple switchboard and then call this function from the Open of that switchboard. Private Sub Form_Open(Cancel As Integer) AppInit End Sub We then open usysFrmFWCleanup from the FWInit() ' 'The init function for the framework ' Public Function FWInit() If mblnFWInitialized = False Then ' mblnFWInitialized = True DoCmd.OpenForm "usysFrmFWCleanup", , , , , acHidden Set mfwcnn = CodeProject.Connection Set mcnn = CurrentProject.Connection Randomize Set mclsInstanceStack = New clsInstanceStack mclsInstanceStack.Init Nothing Set mclsFramework = New clsFramework mclsFramework.Init Nothing End If End Function I built a simple form called usysFrmFWCleanup with code in that form?s Close event which cleans up and forces the app closed if that form is closed. Private Sub Form_Close() FWTerm On Error Resume Next Application.Quit acQuitSaveNone End Sub Opening the switchboard calls APPInit() which calls FWInit() which initializes the framework and loads usysFrmFWCleanup. Closing the app in any manner forces usysFrmFWCleanup to close. usysFrmFWCleanup closing calls FWTerm() cleaning up the framework and forcing Access to close if it wasn?t already.. Summary In order to be useful the framework has to be split off into a library. Doing this causes a handful of issues that you have to be aware of. We may need to expose classes using the method shown above ? I have already exposed dclsFrm so that the forms would work correctly. It also requires setting up init and cleanup code so that the framework is shutdown reliably as the app closes. Additionally we need to add a new pair of SysVar instances for the developer to use for control of the Application and data for the Application. >From this point forward, the lectures will focus on adding functionality to the framework, generally to the form class or control class or both in order to implement some behavior that the developer has found useful, has found or developed code for, and now wishes to make available to all his projects by moving that behavior to the framework. In order to use the library we need to take the steps to break out the FE / BE and library modules into separate containers. I have outlined the process in the top of this document and have actually performed this process and provided a set of three mdb containers ? the FE/BE and Library. I do not intend to leave the demo broken into the three pieces however; I only did so to demonstrate the process and what goes where. For the purposes of writing a demo and allowing me and the readers following this lecture series to easily work with the demos it is much more helpful in a single file. I don?t want to lose any readers because they can?t deal yet with the nitty gritty of actually doing development in three parts, getting references working, getting table links fixed etc. Therefore this document and associated files actually consist of the three MDBs but the next document will have them merged back into a single file. The framework is ready however, and can be split out again at a moment?s notice. John W. Colby www.ColbyConsulting.com From d.dick at uws.edu.au Sun Apr 4 20:28:42 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Mon, 5 Apr 2004 11:28:42 +1000 Subject: [AccessD] A2K: Stop User from oving to new record References: <40706F3F.16231.9E7B12@localhost> Message-ID: <01c501c41aad$5502fca0$48619a89@DDICK> Hi Bryan I did that no joy eg. Private Sub Form_BeforeUpdate(Cancel As Integer) If IsNull(Me.cmbOffence) Or Me.cmbOffence = "" Then MsgBox "Enter an offence" Cancel = True End If End Sub What I need to do is somehow test if the user is on a new fresh record or has left th previous record with unfilled combos. Of course I can do it on the lost and got focus event.Thats fine whilst I am in the record EG record 5 has no offence recorded User goes to record 6 How do i alert the user that record 5 has a missing value then go back to that record? ----- Original Message ----- From: "Bryan Carbonnell" To: "Access Developers discussion and problemsolving" Sent: Monday, April 05, 2004 10:25 AM Subject: Re: [AccessD] A2K: Stop User from oving to new record > On 5 Apr 2004 at 10:08, Darren DICK wrote: > > > I have a simple subform with 4 fields on it > > ID (PK), txtDateOfOccurence, cboClientName, cboOffence > > > > How can I tell if the user goes to a new record and they have not > > completed ALL fields in the previous record How do I alert them and > > then direct them back to the previous record? > > Use the before update event of the form. Check to make sure they > entered a vale and if not set Cancel = true in the event. That should > prevent the record from being saved and keep the sub form on the > "unfinished" record > > -- > Bryan Carbonnell - carbonnb at sympatico.ca > The trouble with doing something right the first time is that nobody > appreciates how difficult it is. > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sun Apr 4 20:31:46 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sun, 4 Apr 2004 21:31:46 -0400 Subject: [AccessD] Framework Discussion - Moving to a library Message-ID: As always, the demo is up on my site and can be downloaded from there with the email in .DOC format. John W. Colby www.ColbyConsulting.com From d.dick at uws.edu.au Sun Apr 4 21:26:50 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Mon, 5 Apr 2004 12:26:50 +1000 Subject: [AccessD] A2K: Stop User from oving to new record Message-ID: <01eb01c41ab5$744b2120$48619a89@DDICK> Hello all In relation to stopping a person moving to another record before the previous one is complete... I put some validation rules on the table. Now it's working fine.....almost Does anyone know the err number Access throws up when table level validation is not met? If anyone does know, how do I trap it at form level and throw up my own message box? Many thanks Darren From accessd667 at yahoo.com Mon Apr 5 02:43:21 2004 From: accessd667 at yahoo.com (S D) Date: Mon, 5 Apr 2004 00:43:21 -0700 (PDT) Subject: [AccessD] ORDER BY BUG using Date format AARHG In-Reply-To: <4425303804.20040402155722@cactus.dk> Message-ID: <20040405074321.14087.qmail@web61106.mail.yahoo.com> The bug was that users used diff regional settings (dutch and US) and with short dates that resulted in problems 6-1-2003 is in Holland 6 january, in US its june first.... I set the format property for all date fields to dd-mmm-yyyy Sander Gustav Brock wrote: Hi Sander Well - but what is the bug and how did you solve it? /gustav > Hi gustav, > I've solved the problem. Twas a nasty one. > but euh try it if you want. create a table with a date field like below and run the query...no go! > Thanx anyway. > Sander > Gustav Brock wrote: > Hi Sander > Your "stupid" test is correct as it sorts DESC on a string. > Try this which I think is what Bert-Jan has in mind: > SELECT DISTINCT > Format([TblArbo].[Datum], "dd-mmm-yyyy") > FROM > TblArbo > ORDER BY > [TblArbo].[Datum] DESC; > /gustav >> I've got a combobox based on a query: >> SELECT DISTINCT [TblArbo].[Datum] >> FROM TblArbo >> ORDER BY [TblArbo].[Datum] DESC; >> Resulted in: >> 01-10-2003 >> 02-09-2003 >> 21-08-2001 >> The user asked if this could be printed in the following format: dd-mmm-yyyy >> No problem, says stupid me: >> SELECT DISTINCT Format([TblArbo].[Datum],"dd-mmm-yyyy") >> FROM TblArbo >> ORDER BY Format([TblArbo].[Datum],"dd-mmm-yyyy") DESC; >> But now the ORDER BY ONLY checks the DD part?!?!?!?! >> So this results in: >> 21-08-2001 >> 02-09-2003 >> 01-10-2003 >> ?!!??! What kind of nonsense is this? -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter today From HollisVJ at pgdp.usec.com Mon Apr 5 06:25:23 2004 From: HollisVJ at pgdp.usec.com (Hollis,Virginia) Date: Mon, 05 Apr 2004 06:25:23 -0500 Subject: [AccessD] AllowEdits on Subform Message-ID: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D505@cntexchange.pgdp.usec.com> Another one - what about Undo? I used Forms!frm_Vendor.frm_ContactsSub.Form.Undo but it does not undo the entry on the subform. Also, where you have Me!subControl - that is not the name of the form is it? Is it each control on the form? This is a tabbed form I placed the subform on one of the tabs. Virginia -----Original Message----- From: Andy Lacey [mailto:andy at minstersystems.co.uk] Sent: Saturday, April 03, 2004 1:53 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] AllowEdits on Subform A subform has its own AllowEdits property Virginia. You can control it with the following code: Me!subControl.Form.AllowEdits = True/False -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Hollis,Virginia > Sent: 03 April 2004 18:50 > To: 'accessd at databaseadvisors.com' > Subject: [AccessD] AllowEdits on Subform > > > How do you prevent/allow Edits on a subform? > > I have a command button that is used to Edit a record. The > form does not allow edits without using the Edit Record > button. The problem is that the subform still allows edits > without using the Edit Record button. > > Virginia > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > 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 Mon Apr 5 10:00:39 2004 From: bheid at appdevgrp.com (Bobby Heid) Date: Mon, 5 Apr 2004 11:00:39 -0400 Subject: [AccessD] Access XP - Can't create MDE. In-Reply-To: <916187228923D311A6FE00A0CC3FAA30806650@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA305BB3D8@ADGSERVER> Hey all, I have an app that has been compiling to an MDE fine for several months now. All of a sudden, it will not create an MDE. The app will compile, but when I go to create an MDE (it is in XP format), it asks where I want the output file to go, then sometimes I'll see the progress bar flash to 100%, then it does one of two things. It will either sit there forever (I have left it for 2 hours before) while still using 80-90% CPU utilization, or it will crash Access XP. Usually it just appears to lock up. Note that a normal compile takes maybe 1 minute. I am pretty sure that I have not installed any new software or anything. My coworker is able to pull form VSS and compile the app with no problems. I am running on Windows 2000 Pro, .5G Ram, 700Mhz P-III. Anyone have any ideas as to what may going wrong? Thanks, Bobby From bheid at appdevgrp.com Mon Apr 5 10:16:15 2004 From: bheid at appdevgrp.com (Bobby Heid) Date: Mon, 5 Apr 2004 11:16:15 -0400 Subject: [AccessD] Access XP - Can't create MDE. In-Reply-To: <916187228923D311A6FE00A0CC3FAA30807079@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA305BB3DA@ADGSERVER> Further info: I just tried again and it crashed this time. Here is the Error signature for the information that would be sent to MS. AppName: msaccess.exe AppVer: 10.0.4302.0 ModName: mso.dll ModVer: 10.0.4219.0 Offset: 00009777 Thanks, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Monday, April 05, 2004 11:01 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access XP - Can't create MDE. Hey all, I have an app that has been compiling to an MDE fine for several months now. All of a sudden, it will not create an MDE. The app will compile, but when I go to create an MDE (it is in XP format), it asks where I want the output file to go, then sometimes I'll see the progress bar flash to 100%, then it does one of two things. It will either sit there forever (I have left it for 2 hours before) while still using 80-90% CPU utilization, or it will crash Access XP. Usually it just appears to lock up. Note that a normal compile takes maybe 1 minute. I am pretty sure that I have not installed any new software or anything. My coworker is able to pull form VSS and compile the app with no problems. I am running on Windows 2000 Pro, .5G Ram, 700Mhz P-III. Anyone have any ideas as to what may going wrong? Thanks, Bobby -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From serbach at new.rr.com Mon Apr 5 10:33:19 2004 From: serbach at new.rr.com (Steven W. Erbach) Date: Mon, 5 Apr 2004 10:33:19 -0500 Subject: [AccessD] A2K: Help with Error accessing file Message-ID: <20040405103319.1451643778.serbach@new.rr.com> Dear Group, I have an Access 2000 FE/BE application loaded on a client's system in another city 90 miles away. I've been working with their network guy over the phone and he's sent me screen shots of error messages along the way. Here's the situation. The "master" MDB FE database is loaded on the server. I have the local people there create an MDE and place it in another folder so that's it's available for the users who download it to their workstations when a new version is ready. While working with my client's network guy, Bob, the MDE file SEEMS to be created all right; but once the compacting is finished and the FE starts up, the first form opens and he gets this message (it's an "i" message): The expression On Load you entered as the event property setting produced the following error: Error accessing file. Network connection may have been lost. * The expression may not result in the name of a macro, the name of a user-defined function, or [Event Procedure]. * There may have been an error evaluating the function, event, or macro. When he clicks OK the startup form (which is supposed to be hidden) is there on the screen and the application has halted. INVESTIGATION: 1) They don't have the Documentor installed so I can't see what the path is to the BE. 2) However, I do have a form (that I cobbed from Steve Nyberg) that shows all the links with their paths. When we attempt to open this form we get the message you see above. Click OK on the message and Nyberg's SeeLinks form opens but with nothing showing up regarding linked tables. 3) I can open the linked tables from the "master" front end. But when I open the table that contains the latest version number (part of the version upgrade system) I see something odd. This Versions table has one row. The table has a Default value of the Now() function in the VersionDate column. On my system when I look at the table I see the first row all right and in the 2nd (empty) row I see (AutoNumber) in the key field and today's date and time in the VersionDate column. On my client's system he sees #Name? in the VersionDate column in an empty row. He cannot add information in a new row because Access doesn't like the default value. So I had Bob remove the default value. I still get the main problem. 4) The users can still run the application from their workstations using the old version of the FE. There hasn't been any problem there. 5) The Startup form of the FE calls Carl Tribble's Auto-Linker to check the link status of the first table before the main switchboard menu appears. This is all working properly on the users' workstations. 6) I tried Compact and Repair on both the BE and the FE. No change in basic error. 7) I checked the references. They're all there. 8) Only thing I haven't done (at least that I know how to do) is a /decompile on the "master" FE on the server. I'm sorry about the length of this message. I somehow doubt that I would find the problem even if I were sitting at the workstation. Bob is very capable, so I'm sure he's relaying to me everything that he sees. At least my clients can still work with the older version of the app. I am just stumped why this error message appears in the "master" front end database. Any thoughts, other than "Well, why the heck do you let the user make an MDE in the first place, ya numbskull?!" Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "Congress is as trustworthy with money as a crack addict who is experimenting with heroin." - Dave Barry "Giving money and power to the government is like giving whiskey and car keys to teenage boys." - P. J. O'Rourke "Be thankful we're not getting all the government we're paying for." - Will Rogers "It could probably be shown by facts and figures that there is no distinctly American criminal class except Congress." - Mark Twain From bchacc at san.rr.com Mon Apr 5 10:59:28 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Mon, 5 Apr 2004 08:59:28 -0700 Subject: [AccessD] Access XP - Can't create MDE. References: <916187228923D311A6FE00A0CC3FAA305BB3DA@ADGSERVER> Message-ID: <007601c41b26$fa334df0$6601a8c0@HAL9002> Bobby: I would try making the mde on a different machine to see if the problem is related to the mdb or to the installation of access on the machine where it's currently failing. I would also try the broad spectrum anti-biotic approach - decompile the mdb. Then compact, compile, and see if it will make the mde. HTH Rocky Smolin Beach Access Software http://www.e-z-mrp.com ----- Original Message ----- From: "Bobby Heid" To: "'Access Developers discussion and problem solving'" Sent: Monday, April 05, 2004 8:16 AM Subject: RE: [AccessD] Access XP - Can't create MDE. > Further info: > > I just tried again and it crashed this time. Here is the Error signature > for the information that would be sent to MS. > > AppName: msaccess.exe AppVer: 10.0.4302.0 ModName: mso.dll > ModVer: 10.0.4219.0 Offset: 00009777 > > Thanks, > Bobby > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid > Sent: Monday, April 05, 2004 11:01 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Access XP - Can't create MDE. > > > Hey all, > > I have an app that has been compiling to an MDE fine for several months now. > All of a sudden, it will not create an MDE. > > The app will compile, but when I go to create an MDE (it is in XP format), > it asks where I want the output file to go, then sometimes I'll see the > progress bar flash to 100%, then it does one of two things. It will either > sit there forever (I have left it for 2 hours before) while still using > 80-90% CPU utilization, or it will crash Access XP. Usually it just appears > to lock up. Note that a normal compile takes maybe 1 minute. > > I am pretty sure that I have not installed any new software or anything. > > My coworker is able to pull form VSS and compile the app with no problems. > > I am running on Windows 2000 Pro, .5G Ram, 700Mhz P-III. > > Anyone have any ideas as to what may going wrong? > > Thanks, > Bobby > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From tuannj1810 at yahoo.com Mon Apr 5 11:13:45 2004 From: tuannj1810 at yahoo.com (tuan nguyen) Date: Mon, 5 Apr 2004 09:13:45 -0700 (PDT) Subject: [AccessD] MULTI ENTRY to database Message-ID: <20040405161345.12567.qmail@web60104.mail.yahoo.com> I am creating a customer database. the idea is that more than 2 people can come in the file and update the record. however, whenever there are more than 2 people on the file, there is a message something like "you dont have exclusive access to the file, yr work might not be saved"...(i set "shared" in tools/ options/advanced/ ) some times, other can not log on if i am on the file. then i have to get out before other can get in. is there anyway to solve this? if i want each person input there initial when the log on the file and want to have the file tells me who update the file last, is it possilbe. can it tell the time it was updated? generally, does access work well with multi entry - many people working on same file, doing updates...? tks for help. tuan nguyen maersk inc, madison, nj --------------------------------- Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter today From HollisVJ at pgdp.usec.com Mon Apr 5 11:32:28 2004 From: HollisVJ at pgdp.usec.com (Hollis,Virginia) Date: Mon, 05 Apr 2004 11:32:28 -0500 Subject: [AccessD] Duplicate Posts Message-ID: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D51E@cntexchange.pgdp.usec.com> I am receiving duplicate posts today... Virginia From andy at minstersystems.co.uk Mon Apr 5 11:51:25 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Mon, 5 Apr 2004 17:51:25 +0100 Subject: [AccessD] AllowEdits on Subform In-Reply-To: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D505@cntexchange.pgdp.usec.com> Message-ID: <000001c41b2e$3b940b20$b274d0d5@minster33c3r25> Hi Virginia subControl refers to the name on the main form that you've given to the subform control (think Access defaults to Childnnn, but you'd want to change that to something meaningful). The tab doesn't affect it. Not so sure you can do Undo in the same way. The problem (I think, but open to correction) is that, having put data onto a subform, if you click away from the subform to the main form (i.e. to your Undo button on the main form) Access carries out a Save of the subform data. And once the save has occurred you can't Undo. Undo is only available BeforeUpdate. What I'd suggest is that you place the Undo button in the header of the subform rather than on the main form. It can then just do a Me.Undo and should work ok as focus won't have moved off the sub. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Hollis,Virginia > Sent: 05 April 2004 12:25 > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] AllowEdits on Subform > > > Another one - what about Undo? I used > Forms!frm_Vendor.frm_ContactsSub.Form.Undo but it does not > undo the entry on the subform. > > Also, where you have Me!subControl - that is not the name of > the form is it? Is it each control on the form? This is a > tabbed form I placed the subform on one of the tabs. > > Virginia > > > -----Original Message----- > From: Andy Lacey [mailto:andy at minstersystems.co.uk] > Sent: Saturday, April 03, 2004 1:53 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] AllowEdits on Subform > > > A subform has its own AllowEdits property Virginia. You can > control it with the following code: > > Me!subControl.Form.AllowEdits = True/False > > -- Andy Lacey > http://www.minstersystems.co.uk > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > > Hollis,Virginia > > Sent: 03 April 2004 18:50 > > To: 'accessd at databaseadvisors.com' > > Subject: [AccessD] AllowEdits on Subform > > > > > > How do you prevent/allow Edits on a subform? > > > > I have a command button that is used to Edit a record. The > > form does not allow edits without using the Edit Record > > button. The problem is that the subform still allows edits > > without using the Edit Record button. > > > > Virginia > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/a> ccessd > > Website: > > http://www.databaseadvisors.com > > > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > -- > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > From andy at minstersystems.co.uk Mon Apr 5 12:15:58 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Mon, 5 Apr 2004 18:15:58 +0100 Subject: [AccessD] A2K: Stop User from oving to new record In-Reply-To: <01eb01c41ab5$744b2120$48619a89@DDICK> Message-ID: <000201c41b31$a9e1c6f0$b274d0d5@minster33c3r25> Hiya Darren, how're ya doing? Use the form's OnError event for this. If you first of all stick in there a: MsgBox DataErr That'll give you the error number. You can then test for that and do whatever your heart desires. See you when we emigrate :-) -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK > Sent: 05 April 2004 03:27 > To: AccessD List > Subject: Re: [AccessD] A2K: Stop User from oving to new record > > > Hello all > In relation to stopping a person moving to another record > before the previous one is complete... I put some validation > rules on the table. Now it's working fine.....almost > > Does anyone know the err number Access throws up when table > level validation is not met? If anyone does know, how do I > trap it at form level and throw up my own message box? > > Many thanks > > Darren > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > From bheid at appdevgrp.com Mon Apr 5 13:06:11 2004 From: bheid at appdevgrp.com (Bobby Heid) Date: Mon, 5 Apr 2004 14:06:11 -0400 Subject: [AccessD] Access XP - Can't create MDE. SOLVED In-Reply-To: <916187228923D311A6FE00A0CC3FAA30807087@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA305BB3DE@ADGSERVER> Hi all, A lister named Ryan e-mailed me off-line with a suggestion that was almost correct. He suggested that I change a module, save, restart, change it back, save, compact & repair, then create the MDE. Unfortunately, that did not do the trick. So I went looking in the MS KB and found KB article 814858 - ACC: Access May Stop Responding When You Try to Create an MDE File or an ADE File http://tinyurl.com/2ryvk http://support.microsoft.com/default.aspx?scid=kb;en-us;814858&Product=acc20 02 Basically, it says that the compiled VBA project of the MDB was corrupt. It then says to use the /DECOMPILE switch to decompile the project. I did this, then compiled, then compacted & repaired. Voila! I can now create an MDE. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Monday, April 05, 2004 11:16 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Access XP - Can't create MDE. Further info: I just tried again and it crashed this time. Here is the Error signature for the information that would be sent to MS. AppName: msaccess.exe AppVer: 10.0.4302.0 ModName: mso.dll ModVer: 10.0.4219.0 Offset: 00009777 Thanks, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid Sent: Monday, April 05, 2004 11:01 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access XP - Can't create MDE. Hey all, I have an app that has been compiling to an MDE fine for several months now. All of a sudden, it will not create an MDE. The app will compile, but when I go to create an MDE (it is in XP format), it asks where I want the output file to go, then sometimes I'll see the progress bar flash to 100%, then it does one of two things. It will either sit there forever (I have left it for 2 hours before) while still using 80-90% CPU utilization, or it will crash Access XP. Usually it just appears to lock up. Note that a normal compile takes maybe 1 minute. I am pretty sure that I have not installed any new software or anything. My coworker is able to pull form VSS and compile the app with no problems. I am running on Windows 2000 Pro, .5G Ram, 700Mhz P-III. Anyone have any ideas as to what may going wrong? Thanks, Bobby -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pjones at btl.net Mon Apr 5 10:55:20 2004 From: pjones at btl.net (Paul M. Jones) Date: Mon, 05 Apr 2004 09:55:20 -0600 Subject: [AccessD] AllowEdits on Subform In-Reply-To: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D504@cntexchange.pgdp. usec.com> References: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D504@cntexchange.pgdp.usec.com> Message-ID: <6.0.0.22.2.20040405095444.02fbc418@btlmail.btl.net> I usually lock the entire subform to ensure that no editing can be done until I allow it. At 11:50 AM 4/3/2004, you wrote: >How do you prevent/allow Edits on a subform? > >I have a command button that is used to Edit a record. The form does not >allow edits without using the Edit Record button. The problem is that the >subform still allows edits without using the Edit Record button. > >Virginia >-- >_______________________________________________ >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 Apr 5 10:19:40 2004 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Mon, 5 Apr 2004 11:19:40 -0400 Subject: [AccessD] A2K: Stop User from oving to new record Message-ID: <8B98F8EA48F8BA47A2F24E0D0AF40CF407AD80D9@xlivmbx12.aig.com> "no joy" - what did not work? It's totally routine to do this kind of thing in the BeforeUpdate event (but what you might have missed is that you also need to do it in the BeforeInsert event too - that way you can validate NEW records as well as existing ones that get edited.) No need to mess with table validation rules and trapping the error. Just do your own validation in the above two events. BTW here's a way to check for nulls and empty string in one step, and it's a tad easier to read (IMHO). Instead of ... If IsNull(Me.cmbOffence) Or Me.cmbOffence = "" Then use... If cmbOffence & "" = "" Then > -----Original Message----- > From: Darren DICK [SMTP:d.dick at uws.edu.au] > Sent: Sunday, April 04, 2004 9:29 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] A2K: Stop User from oving to new record > > Hi Bryan > I did that no joy eg. > > Private Sub Form_BeforeUpdate(Cancel As Integer) > > If IsNull(Me.cmbOffence) Or Me.cmbOffence = "" Then > MsgBox "Enter an offence" > Cancel = True > End If > > End Sub > > What I need to do is somehow test if the user is on a new fresh record or > has left th previous record with unfilled combos. Of > course I can do it on the lost and got focus event.Thats fine whilst I am > in the record > EG record 5 has no offence recorded > User goes to record 6 How do i alert the user that record 5 has a missing > value then go back to that record? > > > ----- Original Message ----- > From: "Bryan Carbonnell" > To: "Access Developers discussion and problemsolving" > > Sent: Monday, April 05, 2004 10:25 AM > Subject: Re: [AccessD] A2K: Stop User from oving to new record > > > > On 5 Apr 2004 at 10:08, Darren DICK wrote: > > > > > I have a simple subform with 4 fields on it > > > ID (PK), txtDateOfOccurence, cboClientName, cboOffence > > > > > > How can I tell if the user goes to a new record and they have not > > > completed ALL fields in the previous record How do I alert them and > > > then direct them back to the previous record? > > > > Use the before update event of the form. Check to make sure they > > entered a vale and if not set Cancel = true in the event. That should > > prevent the record from being saved and keep the sub form on the > > "unfinished" record > > > > -- > > Bryan Carbonnell - carbonnb at sympatico.ca > > The trouble with doing something right the first time is that nobody > > appreciates how difficult it is. > > > > > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > 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 Apr 5 15:08:37 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Mon, 5 Apr 2004 16:08:37 -0400 Subject: [AccessD] A2K: Stop User from oving to new record In-Reply-To: <8B98F8EA48F8BA47A2F24E0D0AF40CF407AD80D9@xlivmbx12.aig.com> Message-ID: Lambert, >If cmbOffence & "" = "" Then This is the kind of thing that you should add an explanation of why it works in your email. Less experienced developers might not understand what is going on. Further the explanation of why it works would add to their understanding of empty strings and nulls. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Heenan, Lambert Sent: Monday, April 05, 2004 11:20 AM To: 'Access Developers discussion and problem solving' Cc: 'd.dick at uws.edu.au' Subject: RE: [AccessD] A2K: Stop User from oving to new record "no joy" - what did not work? It's totally routine to do this kind of thing in the BeforeUpdate event (but what you might have missed is that you also need to do it in the BeforeInsert event too - that way you can validate NEW records as well as existing ones that get edited.) No need to mess with table validation rules and trapping the error. Just do your own validation in the above two events. BTW here's a way to check for nulls and empty string in one step, and it's a tad easier to read (IMHO). Instead of ... If IsNull(Me.cmbOffence) Or Me.cmbOffence = "" Then use... If cmbOffence & "" = "" Then > -----Original Message----- > From: Darren DICK [SMTP:d.dick at uws.edu.au] > Sent: Sunday, April 04, 2004 9:29 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] A2K: Stop User from oving to new record > > Hi Bryan > I did that no joy eg. > > Private Sub Form_BeforeUpdate(Cancel As Integer) > > If IsNull(Me.cmbOffence) Or Me.cmbOffence = "" Then > MsgBox "Enter an offence" > Cancel = True > End If > > End Sub > > What I need to do is somehow test if the user is on a new fresh record or > has left th previous record with unfilled combos. Of > course I can do it on the lost and got focus event.Thats fine whilst I am > in the record > EG record 5 has no offence recorded > User goes to record 6 How do i alert the user that record 5 has a missing > value then go back to that record? > > > ----- Original Message ----- > From: "Bryan Carbonnell" > To: "Access Developers discussion and problemsolving" > > Sent: Monday, April 05, 2004 10:25 AM > Subject: Re: [AccessD] A2K: Stop User from oving to new record > > > > On 5 Apr 2004 at 10:08, Darren DICK wrote: > > > > > I have a simple subform with 4 fields on it > > > ID (PK), txtDateOfOccurence, cboClientName, cboOffence > > > > > > How can I tell if the user goes to a new record and they have not > > > completed ALL fields in the previous record How do I alert them and > > > then direct them back to the previous record? > > > > Use the before update event of the form. Check to make sure they > > entered a vale and if not set Cancel = true in the event. That should > > prevent the record from being saved and keep the sub form on the > > "unfinished" record > > > > -- > > Bryan Carbonnell - carbonnb at sympatico.ca > > The trouble with doing something right the first time is that nobody > > appreciates how difficult it is. > > > > > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From joconnell at indy.rr.com Mon Apr 5 15:12:52 2004 From: joconnell at indy.rr.com (Joseph O'Connell) Date: Mon, 5 Apr 2004 15:12:52 -0500 Subject: [AccessD] MULTI ENTRY to database Message-ID: <00f501c41b4a$6b8318a0$6701a8c0@joe> >From the database window go to Tools|Options. Click on the Advanced tab. Change the "Default open mode" from Exclusive to Shared. Then click the Apply button. Joe O'Connell -----Original Message----- From: tuan nguyen To: accessd at databaseadvisors.com Date: Monday, April 05, 2004 11:52 AM Subject: [AccessD] MULTI ENTRY to database |I am creating a customer database. the idea is that more than 2 |people can come in the file and update the record. however, whenever |there are more than 2 people on the file, there is a message something |like "you dont have exclusive access to the file, yr work might not be |saved"...(i set "shared" in tools/ options/advanced/ ) some times, other can not log on if i am on the file. then i have to get out before other can get in. |is there anyway to solve this? | |if i want each person input there initial when the log on the file |and want to have the file tells me who update the file last, is it |possilbe. can it tell the time it was updated? | |generally, does access work well with multi entry - many people working on same file, doing updates...? | |tks for help. | |tuan nguyen | |maersk inc, |madison, nj | | | | |--------------------------------- |Do you Yahoo!? |Yahoo! Small Business $15K Web Design Giveaway - Enter today |-- |_______________________________________________ |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 Apr 5 15:15:21 2004 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Mon, 5 Apr 2004 16:15:21 -0400 Subject: [AccessD] A2K: Stop User from oving to new record Message-ID: <8B98F8EA48F8BA47A2F24E0D0AF40CF407AD812F@xlivmbx12.aig.com> Ok. The '&' operator is one of the few operator which, when applied to a null does *not* result in a null. When you append a string to null using '&' you wind up with a string. The test... If cmbOffence & "" = "" Then ...therefore is equivalent to saying "if this thing is null or it it's an empty string then do something" In fact, this is functionally equivalent... If cboMyComboBox & "HasNothingSelected" = "HasNothingSelected" Then HTH Lambert > -----Original Message----- > From: John W. Colby [SMTP:jwcolby at colbyconsulting.com] > Sent: Monday, April 05, 2004 4:09 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] A2K: Stop User from oving to new record > > Lambert, > > >If cmbOffence & "" = "" Then > > This is the kind of thing that you should add an explanation of why it > works > in your email. Less experienced developers might not understand what is > going on. Further the explanation of why it works would add to their > understanding of empty strings and nulls. > > John W. Colby > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Heenan, > Lambert > Sent: Monday, April 05, 2004 11:20 AM > To: 'Access Developers discussion and problem solving' > Cc: 'd.dick at uws.edu.au' > Subject: RE: [AccessD] A2K: Stop User from oving to new record > > > "no joy" - what did not work? It's totally routine to do this kind of > thing > in the BeforeUpdate event (but what you might have missed is that you also > need to do it in the BeforeInsert event too - that way you can validate > NEW > records as well as existing ones that get edited.) > > No need to mess with table validation rules and trapping the error. Just > do > your own validation in the above two events. > > BTW here's a way to check for nulls and empty string in one step, and it's > a > tad easier to read (IMHO). > > Instead of ... > > If IsNull(Me.cmbOffence) Or Me.cmbOffence = "" Then > > use... > > If cmbOffence & "" = "" Then > > > > -----Original Message----- > > From: Darren DICK [SMTP:d.dick at uws.edu.au] > > Sent: Sunday, April 04, 2004 9:29 PM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] A2K: Stop User from oving to new record > > > > Hi Bryan > > I did that no joy eg. > > > > Private Sub Form_BeforeUpdate(Cancel As Integer) > > > > If IsNull(Me.cmbOffence) Or Me.cmbOffence = "" Then > > MsgBox "Enter an offence" > > Cancel = True > > End If > > > > End Sub > > > > What I need to do is somehow test if the user is on a new fresh record > or > > has left th previous record with unfilled combos. Of > > course I can do it on the lost and got focus event.Thats fine whilst I > am > > in the record > > EG record 5 has no offence recorded > > User goes to record 6 How do i alert the user that record 5 has a > missing > > value then go back to that record? > > > > > > ----- Original Message ----- > > From: "Bryan Carbonnell" > > To: "Access Developers discussion and problemsolving" > > > > Sent: Monday, April 05, 2004 10:25 AM > > Subject: Re: [AccessD] A2K: Stop User from oving to new record > > > > > > > On 5 Apr 2004 at 10:08, Darren DICK wrote: > > > > > > > I have a simple subform with 4 fields on it > > > > ID (PK), txtDateOfOccurence, cboClientName, cboOffence > > > > > > > > How can I tell if the user goes to a new record and they have not > > > > completed ALL fields in the previous record How do I alert them and > > > > then direct them back to the previous record? > > > > > > Use the before update event of the form. Check to make sure they > > > entered a vale and if not set Cancel = true in the event. That should > > > prevent the record from being saved and keep the sub form on the > > > "unfinished" record > > > > > > -- > > > Bryan Carbonnell - carbonnb at sympatico.ca > > > The trouble with doing something right the first time is that nobody > > > appreciates how difficult it is. > > > > > > > > > -- > > > _______________________________________________ > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Apr 5 15:48:30 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 05 Apr 2004 13:48:30 -0700 Subject: [AccessD] A2K: Help with Error accessing file References: <20040405103319.1451643778.serbach@new.rr.com> Message-ID: <4071C61E.9060802@shaw.ca> Have a look at this, maybe a service pack issue. remember Office 2000 SP3 plays around with Outlook security. ACC2000: Error Message: Error Accessing File. Network Connection May Have Been Lost. http://support.microsoft.com/default.aspx?scid=kb;en-us;304548&Product=acc Steven W. Erbach wrote: >Dear Group, > >I have an Access 2000 FE/BE application loaded on a client's system in another city 90 miles away. I've been working with their network guy over the phone and he's sent me screen shots of error messages along the way. Here's the situation. > >The "master" MDB FE database is loaded on the server. I have the local people there create an MDE and place it in another folder so that's it's available for the users who download it to their workstations when a new version is ready. While working with my client's network guy, Bob, the MDE file SEEMS to be created all right; but once the compacting is finished and the FE starts up, the first form opens and he gets this message (it's an "i" message): > >The expression On Load you entered as the event property setting produced the following error: Error accessing file. Network connection may have been lost. > > * The expression may not result in the name of a macro, the name of a user-defined function, or [Event Procedure]. > * There may have been an error evaluating the function, event, or macro. > >When he clicks OK the startup form (which is supposed to be hidden) is there on the screen and the application has halted. > >INVESTIGATION: > >1) They don't have the Documentor installed so I can't see what the path is to the BE. > >2) However, I do have a form (that I cobbed from Steve Nyberg) that shows all the links with their paths. When we attempt to open this form we get the message you see above. Click OK on the message and Nyberg's SeeLinks form opens but with nothing showing up regarding linked tables. > >3) I can open the linked tables from the "master" front end. But when I open the table that contains the latest version number (part of the version upgrade system) I see something odd. This Versions table has one row. The table has a Default value of the Now() function in the VersionDate column. On my system when I look at the table I see the first row all right and in the 2nd (empty) row I see (AutoNumber) in the key field and today's date and time in the VersionDate column. On my client's system he sees #Name? in the VersionDate column in an empty row. He cannot add information in a new row because Access doesn't like the default value. So I had Bob remove the default value. I still get the main problem. > >4) The users can still run the application from their workstations using the old version of the FE. There hasn't been any problem there. > >5) The Startup form of the FE calls Carl Tribble's Auto-Linker to check the link status of the first table before the main switchboard menu appears. This is all working properly on the users' workstations. > >6) I tried Compact and Repair on both the BE and the FE. No change in basic error. > >7) I checked the references. They're all there. > >8) Only thing I haven't done (at least that I know how to do) is a /decompile on the "master" FE on the server. > >I'm sorry about the length of this message. I somehow doubt that I would find the problem even if I were sitting at the workstation. Bob is very capable, so I'm sure he's relaying to me everything that he sees. > >At least my clients can still work with the older version of the app. I am just stumped why this error message appears in the "master" front end database. Any thoughts, other than "Well, why the heck do you let the user make an MDE in the first place, ya numbskull?!" > >Regards, > >Steve Erbach >Scientific Marketing >Neenah, WI >920-969-0504 > >"Congress is as trustworthy with money as a crack addict who is experimenting with heroin." - Dave Barry > >"Giving money and power to the government is like giving whiskey and car keys to teenage boys." - P. J. O'Rourke > >"Be thankful we're not getting all the government we're paying for." - Will Rogers > >"It could probably be shown by facts and figures that there is no distinctly American criminal class except Congress." - Mark Twain > > > -- Marty Connelly Victoria, B.C. Canada From bchacc at san.rr.com Mon Apr 5 16:42:56 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Mon, 5 Apr 2004 14:42:56 -0700 Subject: [AccessD] A2K: Help with Error accessing file References: <20040405103319.1451643778.serbach@new.rr.com> Message-ID: <00ee01c41b56$f529a0e0$6601a8c0@HAL9002> Steven: This looks familiar. Google the phrase "Network connection may have been lost". Sorry can't do more right now. HTH Rocky Smolin Beach Access Software http://www.e-z-mrp.com ----- Original Message ----- From: "Steven W. Erbach" To: "Access Developers discussion and problem solving" Sent: Monday, April 05, 2004 8:33 AM Subject: [AccessD] A2K: Help with Error accessing file > Dear Group, > > I have an Access 2000 FE/BE application loaded on a client's system in another city 90 miles away. I've been working with their network guy over the phone and he's sent me screen shots of error messages along the way. Here's the situation. > > The "master" MDB FE database is loaded on the server. I have the local people there create an MDE and place it in another folder so that's it's available for the users who download it to their workstations when a new version is ready. While working with my client's network guy, Bob, the MDE file SEEMS to be created all right; but once the compacting is finished and the FE starts up, the first form opens and he gets this message (it's an "i" message): > > The expression On Load you entered as the event property setting produced the following error: Error accessing file. Network connection may have been lost. > > * The expression may not result in the name of a macro, the name of a user-defined function, or [Event Procedure]. > * There may have been an error evaluating the function, event, or macro. > > When he clicks OK the startup form (which is supposed to be hidden) is there on the screen and the application has halted. > > INVESTIGATION: > > 1) They don't have the Documentor installed so I can't see what the path is to the BE. > > 2) However, I do have a form (that I cobbed from Steve Nyberg) that shows all the links with their paths. When we attempt to open this form we get the message you see above. Click OK on the message and Nyberg's SeeLinks form opens but with nothing showing up regarding linked tables. > > 3) I can open the linked tables from the "master" front end. But when I open the table that contains the latest version number (part of the version upgrade system) I see something odd. This Versions table has one row. The table has a Default value of the Now() function in the VersionDate column. On my system when I look at the table I see the first row all right and in the 2nd (empty) row I see (AutoNumber) in the key field and today's date and time in the VersionDate column. On my client's system he sees #Name? in the VersionDate column in an empty row. He cannot add information in a new row because Access doesn't like the default value. So I had Bob remove the default value. I still get the main problem. > > 4) The users can still run the application from their workstations using the old version of the FE. There hasn't been any problem there. > > 5) The Startup form of the FE calls Carl Tribble's Auto-Linker to check the link status of the first table before the main switchboard menu appears. This is all working properly on the users' workstations. > > 6) I tried Compact and Repair on both the BE and the FE. No change in basic error. > > 7) I checked the references. They're all there. > > 8) Only thing I haven't done (at least that I know how to do) is a /decompile on the "master" FE on the server. > > I'm sorry about the length of this message. I somehow doubt that I would find the problem even if I were sitting at the workstation. Bob is very capable, so I'm sure he's relaying to me everything that he sees. > > At least my clients can still work with the older version of the app. I am just stumped why this error message appears in the "master" front end database. Any thoughts, other than "Well, why the heck do you let the user make an MDE in the first place, ya numbskull?!" > > Regards, > > Steve Erbach > Scientific Marketing > Neenah, WI > 920-969-0504 > > "Congress is as trustworthy with money as a crack addict who is experimenting with heroin." - Dave Barry > > "Giving money and power to the government is like giving whiskey and car keys to teenage boys." - P. J. O'Rourke > > "Be thankful we're not getting all the government we're paying for." - Will Rogers > > "It could probably be shown by facts and figures that there is no distinctly American criminal class except Congress." - Mark Twain > > -- > _______________________________________________ > 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 Apr 5 16:51:00 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 06 Apr 2004 07:51:00 +1000 Subject: [AccessD] A2K: Stop User from oving to new record In-Reply-To: <8B98F8EA48F8BA47A2F24E0D0AF40CF407AD80D9@xlivmbx12.aig.com> Message-ID: <40726164.28379.E4E0C@localhost> On 5 Apr 2004 at 11:19, Heenan, Lambert wrote: > > BTW here's a way to check for nulls and empty string in one step, and it's a > tad easier to read (IMHO). > > Instead of ... > > If IsNull(Me.cmbOffence) Or Me.cmbOffence = "" Then > > use... > > If cmbOffence & "" = "" Then > Or: If NZ(cmbOffence,"") = "" Then or even just NZ(cmbOffence) since "" is the default for NZ(string) -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From cfoust at infostatsystems.com Mon Apr 5 16:57:10 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 5 Apr 2004 14:57:10 -0700 Subject: [AccessD] A2K: Help with Error accessing file Message-ID: Take a look at http://support.microsoft.com/default.aspx?scid=kb;en-us;Q304548 This is a typical error when you do not have O2k SR-3 and you have a 2002 or later app installed on the same machine. The VBE6.DLL for 2002 breaks the 2000 Access executable. Charlotte Foust -----Original Message----- From: Steven W. Erbach [mailto:serbach at new.rr.com] Sent: Monday, April 05, 2004 7:33 AM To: Access Developers discussion and problem solving Subject: [AccessD] A2K: Help with Error accessing file Dear Group, I have an Access 2000 FE/BE application loaded on a client's system in another city 90 miles away. I've been working with their network guy over the phone and he's sent me screen shots of error messages along the way. Here's the situation. The "master" MDB FE database is loaded on the server. I have the local people there create an MDE and place it in another folder so that's it's available for the users who download it to their workstations when a new version is ready. While working with my client's network guy, Bob, the MDE file SEEMS to be created all right; but once the compacting is finished and the FE starts up, the first form opens and he gets this message (it's an "i" message): The expression On Load you entered as the event property setting produced the following error: Error accessing file. Network connection may have been lost. * The expression may not result in the name of a macro, the name of a user-defined function, or [Event Procedure]. * There may have been an error evaluating the function, event, or macro. When he clicks OK the startup form (which is supposed to be hidden) is there on the screen and the application has halted. INVESTIGATION: 1) They don't have the Documentor installed so I can't see what the path is to the BE. 2) However, I do have a form (that I cobbed from Steve Nyberg) that shows all the links with their paths. When we attempt to open this form we get the message you see above. Click OK on the message and Nyberg's SeeLinks form opens but with nothing showing up regarding linked tables. 3) I can open the linked tables from the "master" front end. But when I open the table that contains the latest version number (part of the version upgrade system) I see something odd. This Versions table has one row. The table has a Default value of the Now() function in the VersionDate column. On my system when I look at the table I see the first row all right and in the 2nd (empty) row I see (AutoNumber) in the key field and today's date and time in the VersionDate column. On my client's system he sees #Name? in the VersionDate column in an empty row. He cannot add information in a new row because Access doesn't like the default value. So I had Bob remove the default value. I still get the main problem. 4) The users can still run the application from their workstations using the old version of the FE. There hasn't been any problem there. 5) The Startup form of the FE calls Carl Tribble's Auto-Linker to check the link status of the first table before the main switchboard menu appears. This is all working properly on the users' workstations. 6) I tried Compact and Repair on both the BE and the FE. No change in basic error. 7) I checked the references. They're all there. 8) Only thing I haven't done (at least that I know how to do) is a /decompile on the "master" FE on the server. I'm sorry about the length of this message. I somehow doubt that I would find the problem even if I were sitting at the workstation. Bob is very capable, so I'm sure he's relaying to me everything that he sees. At least my clients can still work with the older version of the app. I am just stumped why this error message appears in the "master" front end database. Any thoughts, other than "Well, why the heck do you let the user make an MDE in the first place, ya numbskull?!" Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "Congress is as trustworthy with money as a crack addict who is experimenting with heroin." - Dave Barry "Giving money and power to the government is like giving whiskey and car keys to teenage boys." - P. J. O'Rourke "Be thankful we're not getting all the government we're paying for." - Will Rogers "It could probably be shown by facts and figures that there is no distinctly American criminal class except Congress." - Mark Twain -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From my.lists at verizon.net Mon Apr 5 16:59:45 2004 From: my.lists at verizon.net (Francisco H Tapia) Date: Mon, 05 Apr 2004 14:59:45 -0700 Subject: [AccessD] Duplicate Posts In-Reply-To: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D51E@cntexchange.pgdp.usec.com> References: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D51E@cntexchange.pgdp.usec.com> Message-ID: <4071D6D1.1000206@verizon.net> Hollis,Virginia said the following on 4/5/2004 9:32 AM: >I am receiving duplicate posts today... > >Virginia > > did anyone else reply to this?.. Is this a rule in your outlook possibly causing this?? -- -Francisco From dwaters at usinternet.com Mon Apr 5 17:35:14 2004 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 5 Apr 2004 17:35:14 -0500 Subject: [AccessD] A2K: Help with Error accessing file In-Reply-To: <7685353.1081201441608.JavaMail.root@sniper2.marix.com> Message-ID: <003f01c41b5e$458ed1c0$de1811d8@DanWaters> Steve, I don't have an answer to your specific problem, but since your client is distant this might help: Have your client download a trial version of GoToMyPC. He can set up an account for himself. GoToMyPC has a feature called 'Guest Invite'. He can use this to let you see what's happening on his screen, and you can control his PC from yours so you can do some troubleshooting. I guess this is similar to WebEx or PCAnywhere. If he decides to keep the GoToMyPC account, he only needs to pay $15/mo. I use it to work with my clients so they can see 'drafts' of what I'm doing without making a trip. Best of Luck! Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steven W. Erbach Sent: Monday, April 05, 2004 10:33 AM To: Access Developers discussion and problem solving Subject: [AccessD] A2K: Help with Error accessing file Dear Group, I have an Access 2000 FE/BE application loaded on a client's system in another city 90 miles away. I've been working with their network guy over the phone and he's sent me screen shots of error messages along the way. Here's the situation. The "master" MDB FE database is loaded on the server. I have the local people there create an MDE and place it in another folder so that's it's available for the users who download it to their workstations when a new version is ready. While working with my client's network guy, Bob, the MDE file SEEMS to be created all right; but once the compacting is finished and the FE starts up, the first form opens and he gets this message (it's an "i" message): The expression On Load you entered as the event property setting produced the following error: Error accessing file. Network connection may have been lost. * The expression may not result in the name of a macro, the name of a user-defined function, or [Event Procedure]. * There may have been an error evaluating the function, event, or macro. When he clicks OK the startup form (which is supposed to be hidden) is there on the screen and the application has halted. INVESTIGATION: 1) They don't have the Documentor installed so I can't see what the path is to the BE. 2) However, I do have a form (that I cobbed from Steve Nyberg) that shows all the links with their paths. When we attempt to open this form we get the message you see above. Click OK on the message and Nyberg's SeeLinks form opens but with nothing showing up regarding linked tables. 3) I can open the linked tables from the "master" front end. But when I open the table that contains the latest version number (part of the version upgrade system) I see something odd. This Versions table has one row. The table has a Default value of the Now() function in the VersionDate column. On my system when I look at the table I see the first row all right and in the 2nd (empty) row I see (AutoNumber) in the key field and today's date and time in the VersionDate column. On my client's system he sees #Name? in the VersionDate column in an empty row. He cannot add information in a new row because Access doesn't like the default value. So I had Bob remove the default value. I still get the main problem. 4) The users can still run the application from their workstations using the old version of the FE. There hasn't been any problem there. 5) The Startup form of the FE calls Carl Tribble's Auto-Linker to check the link status of the first table before the main switchboard menu appears. This is all working properly on the users' workstations. 6) I tried Compact and Repair on both the BE and the FE. No change in basic error. 7) I checked the references. They're all there. 8) Only thing I haven't done (at least that I know how to do) is a /decompile on the "master" FE on the server. I'm sorry about the length of this message. I somehow doubt that I would find the problem even if I were sitting at the workstation. Bob is very capable, so I'm sure he's relaying to me everything that he sees. At least my clients can still work with the older version of the app. I am just stumped why this error message appears in the "master" front end database. Any thoughts, other than "Well, why the heck do you let the user make an MDE in the first place, ya numbskull?!" Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "Congress is as trustworthy with money as a crack addict who is experimenting with heroin." - Dave Barry "Giving money and power to the government is like giving whiskey and car keys to teenage boys." - P. J. O'Rourke "Be thankful we're not getting all the government we're paying for." - Will Rogers "It could probably be shown by facts and figures that there is no distinctly American criminal class except Congress." - Mark Twain -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From garykjos at hotmail.com Mon Apr 5 17:43:56 2004 From: garykjos at hotmail.com (Gary Kjos) Date: Mon, 05 Apr 2004 17:43:56 -0500 Subject: [AccessD] MULTI ENTRY to database Message-ID: Hi Tuan, It could be that your users do not have full file creation rights in the folder where the database is. The users need to have the rights to create a file so a LDB locking file can be created. With no licking file it allows ONE user but not a second. Access works fine with multiple users lots and lots of apps around that do that. You will do well to investigate how to best make a database that works well for multiple users simultaneously though. Generally a split database with a front end and a back end will be the best way although there are exceptions and special circumstances when this may not be entirely correct either. A front end database contains everything in the database EXCEPT the data tables, and the back end contains ONLY the data tables. You create LINKS in the front end to point to the tables in teh back end. If you search in help on Multi-user database you should find some info on this issue. In order to log when people sign in to your database and keep track of what they update, you will need need to create some tables to store that info and some code to populate those tables that track that info. Nothing is available in Access by itself to track those changes, you have to do it yourself. You can certainly dd a field like "LAST_UPDATE" and then write a small bit of code in your form to update that field whenever there is a change to the record. Look at the Before Update event on a form and set the "LAST_UPDATE" field to NOW() Gary Kjos garykjos at hotmail.com >From: tuan nguyen >Reply-To: Access Developers discussion and problem >solving >To: accessd at databaseadvisors.com >Subject: [AccessD] MULTI ENTRY to database >Date: Mon, 5 Apr 2004 09:13:45 -0700 (PDT) > >I am creating a customer database. the idea is that more than 2 >people can come in the file and update the record. however, whenever >there are more than 2 people on the file, there is a message something >like "you dont have exclusive access to the file, yr work might not be >saved"...(i set "shared" in tools/ options/advanced/ ) some times, other >can not log on if i am on the file. then i have to get out before other >can get in. >is there anyway to solve this? > >if i want each person input there initial when the log on the file >and want to have the file tells me who update the file last, is it >possilbe. can it tell the time it was updated? > >generally, does access work well with multi entry - many people working on >same file, doing updates...? > >tks for help. > >tuan nguyen > >maersk inc, >madison, nj > > > > >--------------------------------- >Do you Yahoo!? >Yahoo! Small Business $15K Web Design Giveaway - Enter today >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ FREE pop-up blocking with the new MSN Toolbar ? get it now! http://toolbar.msn.com/go/onm00200415ave/direct/01/ From jskolits at CorporateDataDesign.com Mon Apr 5 21:43:57 2004 From: jskolits at CorporateDataDesign.com (John Skolits) Date: Mon, 5 Apr 2004 22:43:57 -0400 Subject: [AccessD] Duplicate Posts In-Reply-To: <4071D6D1.1000206@verizon.net> Message-ID: <000501c41b81$02591460$6701a8c0@OFFICEXP1> I started getting them when I upgraded to Outlook XP. That's because you can no longer disable emails accounts if you have multiple ones listed. They now all have to be active. I hate it when they remove features! John Skolits -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Francisco H Tapia Sent: Monday, April 05, 2004 6:00 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Duplicate Posts Hollis,Virginia said the following on 4/5/2004 9:32 AM: >I am receiving duplicate posts today... > >Virginia > > did anyone else reply to this?.. Is this a rule in your outlook possibly causing this?? -- -Francisco -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhla at earthlink.net Mon Apr 5 22:18:28 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Mon, 5 Apr 2004 20:18:28 -0700 Subject: [AccessD] Code help please Message-ID: <000001c41b85$d87c94a0$6501a8c0@delllaptop> This code is supposed to 1. Confirm this is an existing record 2. If the form is dirty Open a message box I need vb yes. I want to go to the next record. Can not find the right method Thanks Joe Private Sub Form_Dirty(Cancel As Integer) if me.newrecord = false and If Me.Dirty Then Dim lngRetval As Long lngRetval = MsgBox( _ "Data on this form has changed! " & vbCrLf & "" & vbCrLf & "Do you wish to continue?", _ vbYesNoCancel + vbQuestion + vbSystemModal + vbDefaultButton1, _ "Data Has Changed") Select Case lngRetval Case vbYes Add New RECORD Case vbNo Forms!frmmasterAddresses!txtLastName.SetFocus Case vbCancel End Select End If End Sub From d.dick at uws.edu.au Mon Apr 5 23:28:31 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Tue, 6 Apr 2004 14:28:31 +1000 Subject: [AccessD] Code help please References: <000001c41b85$d87c94a0$6501a8c0@delllaptop> Message-ID: <016401c41b8f$9df9bec0$48619a89@DDICK> Hi Joe Try something like this Under the Compare Database and option explicit declarations type gIntFormIsDirty as integer Then add Private Sub Form_Load() gIntFormIsDirty = False end sub then add Private Sub Form_Dirty(Cancel As Integer) gIntFormIsDirty = true End Sub then Private Sub ps_SomeCodeToRun() 'Joe get whatever the PK is and see if there is a value in it if not isnull(Me.MyPK) then 'There is a value so we are on a live record if gIntFormIsDirty = true THEN Msgbox "we are on a pre-existing record and the record is dirty" else Msgbox "we are on a pre-existing record but the record IS NOT dirty" end if else msgbox "We are on a 'new rec' or at least one without a PK" end if end sub then in the afterupdate(or whatever) of the control to test Private sub txtLastName_AfterUpdate() ps_SomeCodeToRun end sub Hope this helps ----- Original Message ----- From: "Joe Hecht" To: "AccessD" Sent: Tuesday, April 06, 2004 1:18 PM Subject: [AccessD] Code help please > This code is supposed to > 1. Confirm this is an existing record > 2. If the form is dirty > > Open a message box > > I need vb yes. I want to go to the next record. > > Can not find the right method > > > Thanks > > Joe > > > > Private Sub Form_Dirty(Cancel As Integer) > > if me.newrecord = false and > If Me.Dirty Then > Dim lngRetval As Long > > lngRetval = MsgBox( _ > "Data on this form has changed! " & vbCrLf & "" & vbCrLf & "Do > you wish to continue?", _ > vbYesNoCancel + vbQuestion + vbSystemModal + vbDefaultButton1, _ > "Data Has Changed") > > Select Case lngRetval > Case vbYes > > Add New RECORD > > Case vbNo > Forms!frmmasterAddresses!txtLastName.SetFocus > > > > Case vbCancel > > > > End Select > > End If > > > > > > End Sub > > > > -- > _______________________________________________ > 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 Apr 5 23:56:00 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Tue, 6 Apr 2004 14:56:00 +1000 Subject: [AccessD] A2K: Transfer Database Message-ID: <018501c41b93$74e90ff0$48619a89@DDICK> hello all can anyone tell me why the acLink version of transfer database below works but the import version fails? Along with the error message "Cannot define Field more than once" I have tried every combination I can think of in relation to the dbf file name location etc. No joy and the help is useless 'This one works fine DoCmd.TransferDatabase acLink, "dBase IV", "C:\", acTable, "C:\SIDS.dbf", "tblStudents", False 'This one fails DoCmd.TransferDatabase acImport, "dBase IV", "C:\", acTable, "C:\SIDS.dbf", "tblStudents", False many thanks Drren From paul.hartland at fsmail.net Tue Apr 6 03:42:01 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 6 Apr 2004 10:42:01 +0200 (CEST) Subject: [AccessD] A2K: Transfer Database Message-ID: <29010324.1081240921849.JavaMail.www@wwinf3001> Darren, try taking a look at the first ten characters of the DBase IV table fields you are trying to import (i.e. you may have something like StudentsID1 and StudentsID2 if you look at the first ten characters you will only have StudentsID) for some reason when trying to Export/Import DBase IV tables it only reads the first ten characters. Make sure the first ten characters in your fields are different and then you should be ok. Paul Message date : Apr 06 2004, 06:01 AM >From : "Darren DICK" To : "AccessD List" Copy to : Subject : [AccessD] A2K: Transfer Database hello all can anyone tell me why the acLink version of transfer database below works but the import version fails? Along with the error message "Cannot define Field more than once" I have tried every combination I can think of in relation to the dbf file name location etc. No joy and the help is useless 'This one works fine DoCmd.TransferDatabase acLink, "dBase IV", "C:\", acTable, "C:\SIDS.dbf", "tblStudents", False 'This one fails DoCmd.TransferDatabase acImport, "dBase IV", "C:\", acTable, "C:\SIDS.dbf", "tblStudents", False many thanks Drren -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Join the UK's number one for the internet www.freeserve.com/time From R.Griffiths at bury.gov.uk Tue Apr 6 03:47:30 2004 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Tue, 6 Apr 2004 09:47:30 +0100 Subject: [AccessD] (no subject) Message-ID: Hi Group I am looking to rewrite a system (to a VB front end Access BE from Acc FE/Be in Acc 97). I still intend to use DAO - I am looking for advice on whether to upgrade the Be to A2002 ( is this AXP? btw) or keep BE in Acc 97 . TIA Richard From R.Griffiths at bury.gov.uk Tue Apr 6 03:49:44 2004 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Tue, 6 Apr 2004 09:49:44 +0100 Subject: [AccessD] A97 or A2002 Message-ID: Hi Group I am looking to rewrite a system (to a VB front end Access BE from Acc FE/Be in Acc 97). I still intend to use DAO - I am looking for advice on whether to upgrade the Be to A2002 ( is this AXP? btw) or keep BE in Acc 97 . TIA Richard From andy at minstersystems.co.uk Tue Apr 6 05:02:50 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Tue, 6 Apr 2004 10:02:50 +0000 Subject: [AccessD] A2K: Transfer Database Message-ID: <20040406090248.69D1225E4A0@smtp.nildram.co.uk> That was my first reaction Paul, then I wondered how that could be when doing an import rather than an export. The fields on the dbf must already be unique and a max of 10 chars, cos that's all the dbf would allow. Unless the dbf is non-standard and was created using something other than the usual packages. In which case you may be right. Certainly worth a look Darren. Alternatively have you tried the other similar import types to dBase IV, like 'dbase III', 'dbase 5.0' and all the Foxpro versions? -- 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] A2K: Transfer Database Date: 06/04/04 08:44 > > Darren, > try taking a look at the first ten characters of the DBase IV table fields you are trying to import (i.e. you may have something like StudentsID1 and StudentsID2 if you look at the first ten characters you will only have StudentsID) for some reason when trying to Export/Import DBase IV tables it only reads the first ten characters. Make sure the first ten characters in your fields are different and then you should be ok. > Paul > > > > > > Message date : Apr 06 2004, 06:01 AM > >From : "Darren DICK" > To : "AccessD List" > Copy to : > Subject : [AccessD] A2K: Transfer Database > hello all > can anyone tell me why the acLink version of transfer database > below works but the import version fails? Along with the error message > "Cannot define Field more than once" > I have tried every combination I can think of in relation to the dbf file name location etc. > No joy and the help is useless > > 'This one works fine > DoCmd.TransferDatabase acLink, "dBase IV", "C:", acTable, "C:SIDS.dbf", "tblStudents", False > 'This one fails > DoCmd.TransferDatabase acImport, "dBase IV", "C:", acTable, "C:SIDS.dbf", "tblStudents", False > > many thanks > > Drren > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > Join the UK's number one for the internet > www.freeserve.com/time > -- > _______________________________________________ > 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 thevigil at kabelfoon.nl Tue Apr 6 04:48:00 2004 From: thevigil at kabelfoon.nl (Bert-Jan Brinkhuis) Date: Tue, 6 Apr 2004 11:48:00 +0200 Subject: [AccessD] Search tool Message-ID: <001101c41bbc$40bdd200$3f412d3e@jester> Hi group, does anyone know of a good search tool / addin or whatever. With which i will be able to search in queryfields, querycriteris, formcontrols recordsources etc. to find querynames, tablenames, tablefields, functions etc. I hope you understand what i am looking for..... BTW i will use this in A2K. Thanks. Bert-Jan From SDSSoftware at optusnet.com.au Tue Apr 6 05:41:49 2004 From: SDSSoftware at optusnet.com.au (Kath Pelletti) Date: Tue, 6 Apr 2004 20:41:49 +1000 Subject: [AccessD] Search tool References: <001101c41bbc$40bdd200$3f412d3e@jester> Message-ID: <000b01c41bc3$c449cc80$6401a8c0@user> I can recommend Speed Ferret: http://www.moshannon.com/speedferret.html Kath ----- Original Message ----- From: Bert-Jan Brinkhuis To: accessd at databaseadvisors.com Sent: Tuesday, April 06, 2004 7:48 PM Subject: [AccessD] Search tool Hi group, does anyone know of a good search tool / addin or whatever. With which i will be able to search in queryfields, querycriteris, formcontrols recordsources etc. to find querynames, tablenames, tablefields, functions etc. I hope you understand what i am looking for..... BTW i will use this in A2K. Thanks. Bert-Jan -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From papparuff at comcast.net Tue Apr 6 05:47:22 2004 From: papparuff at comcast.net (papparuff at comcast.net) Date: Tue, 06 Apr 2004 10:47:22 +0000 Subject: [AccessD] Search tool Message-ID: <040620041047.29003.40728ABA000593790000714B2200734076FF99998A8D9E8F8F9E@comcast.net> Speed Ferret is an excellent tool but I prefer Rick Fisher's Find And Replace. It is about 2/3rds the cost of Speed Ferret and it has served me well for the past 5 years. Check out http://www.rickworld.com -- John V. Ruff ? The Eternal Optimist :-) ?Commit to the Lord whatever you do, and your plans will succeed.? Proverbs 16:3 > Hi group, > > does anyone know of a good search tool / addin or whatever. With which i > will be able to search in queryfields, querycriteris, formcontrols > recordsources etc. to find querynames, tablenames, tablefields, functions > etc. > > I hope you understand what i am looking for..... > > BTW i will use this in A2K. > > Thanks. > > Bert-Jan > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From thevigil at kabelfoon.nl Tue Apr 6 05:51:54 2004 From: thevigil at kabelfoon.nl (Bert-Jan Brinkhuis) Date: Tue, 6 Apr 2004 12:51:54 +0200 Subject: [AccessD] Search tool References: <040620041047.29003.40728ABA000593790000714B2200734076FF99998A8D9E8F8F9E@comcast.net> Message-ID: <002501c41bc5$32511b60$3f412d3e@jester> Thanks John and Kath. I'll try them both and see what is best for me. Bert-Jan ----- Original Message ----- From: To: "Access Developers discussion and problem solving" Sent: Tuesday, April 06, 2004 12:47 PM Subject: Re: [AccessD] Search tool > > Speed Ferret is an excellent tool but I prefer Rick Fisher's Find And Replace. It is about 2/3rds the cost of Speed Ferret and it has served me well for the past 5 years. > > Check out http://www.rickworld.com > > > -- > John V. Ruff - The Eternal Optimist :-) > > > "Commit to the Lord whatever you do, > and your plans will succeed." Proverbs 16:3 > > Hi group, > > > > does anyone know of a good search tool / addin or whatever. With which i > > will be able to search in queryfields, querycriteris, formcontrols > > recordsources etc. to find querynames, tablenames, tablefields, functions > > etc. > > > > I hope you understand what i am looking for..... > > > > BTW i will use this in A2K. > > > > Thanks. > > > > Bert-Jan > > > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From HollisVJ at pgdp.usec.com Tue Apr 6 06:00:24 2004 From: HollisVJ at pgdp.usec.com (Hollis,Virginia) Date: Tue, 06 Apr 2004 06:00:24 -0500 Subject: [AccessD] Duplicate Posts Message-ID: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D527@cntexchange.pgdp.usec.com> No, it just started yesterday. I haven't changed any settings. -----Original Message----- From: Francisco H Tapia [mailto:my.lists at verizon.net] Sent: Monday, April 05, 2004 5:00 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Duplicate Posts Hollis,Virginia said the following on 4/5/2004 9:32 AM: >I am receiving duplicate posts today... > >Virginia > > did anyone else reply to this?.. Is this a rule in your outlook possibly causing this?? -- -Francisco -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From HollisVJ at pgdp.usec.com Tue Apr 6 06:18:42 2004 From: HollisVJ at pgdp.usec.com (Hollis,Virginia) Date: Tue, 06 Apr 2004 06:18:42 -0500 Subject: [AccessD] Find Record from Combo Message-ID: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D528@cntexchange.pgdp.usec.com> I have a combo box that is used to GoTo a record. When I first open the form, I have noticed that the list of choices in the combo box do not show all the records to go to - it stops at record 9 and there are 57. I can't scroll any further down the list either it only shows 9 records. If I go to the last record and come back to record 1, then the combobox list will show all 57 records. I even tried typing in 57 to go to the record, and it says it is not in the list. It is so strange, if I go to record 9 the list shows 9 records, I navigate to record 10, the list shows 10 records, etc. A2K. Virginia Used on the ComboBox. Private Sub PickRequest_AfterUpdate() Dim strNumber As String ' Find the record that matches the control. strNumber = "[tbl_RequestMain].[RequestID] = " & Me![PickRequest] Me.RecordsetClone.FindFirst strNumber Me.Bookmark = Me.RecordsetClone.Bookmark End Sub From HollisVJ at pgdp.usec.com Tue Apr 6 06:24:23 2004 From: HollisVJ at pgdp.usec.com (Hollis,Virginia) Date: Tue, 06 Apr 2004 06:24:23 -0500 Subject: [AccessD] RE: Find Record from Combo Message-ID: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D529@cntexchange.pgdp.usec.com> I noticed I can't recreate a new combobox either in the current database or any database. I keep receiving the error: Syntax Error in Query Expression. I am using the Wizard to create the combo & select option 3 - find a record based on... I do not know if this is a related problem with only showing 9 records or a separate problem. The existing combobox that shows only the 9 records, I used the code from a previous form. Virginia -----Original Message----- From: Hollis,Virginia Sent: Tuesday, April 06, 2004 6:19 AM To: 'Access Developers discussion and problem solving' Subject: Find Record from Combo I have a combo box that is used to GoTo a record. When I first open the form, I have noticed that the list of choices in the combo box do not show all the records to go to - it stops at record 9 and there are 57. I can't scroll any further down the list either it only shows 9 records. If I go to the last record and come back to record 1, then the combobox list will show all 57 records. I even tried typing in 57 to go to the record, and it says it is not in the list. It is so strange, if I go to record 9 the list shows 9 records, I navigate to record 10, the list shows 10 records, etc. A2K. Virginia Used on the ComboBox. Private Sub PickRequest_AfterUpdate() Dim strNumber As String ' Find the record that matches the control. strNumber = "[tbl_RequestMain].[RequestID] = " & Me![PickRequest] Me.RecordsetClone.FindFirst strNumber Me.Bookmark = Me.RecordsetClone.Bookmark End Sub From bheid at appdevgrp.com Tue Apr 6 06:47:36 2004 From: bheid at appdevgrp.com (Bobby Heid) Date: Tue, 6 Apr 2004 07:47:36 -0400 Subject: [AccessD] Access XP - Can't create MDE. In-Reply-To: <916187228923D311A6FE00A0CC3FAA3080713B@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA305BB3E4@ADGSERVER> That was it Rocky. Thanks, Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Monday, April 05, 2004 11:59 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access XP - Can't create MDE. Bobby: I would try making the mde on a different machine to see if the problem is related to the mdb or to the installation of access on the machine where it's currently failing. I would also try the broad spectrum anti-biotic approach - decompile the mdb. Then compact, compile, and see if it will make the mde. HTH Rocky Smolin Beach Access Software http://www.e-z-mrp.com ----- Original Message ----- From: "Bobby Heid" To: "'Access Developers discussion and problem solving'" Sent: Monday, April 05, 2004 8:16 AM Subject: RE: [AccessD] Access XP - Can't create MDE. > Further info: > > I just tried again and it crashed this time. Here is the Error > signature for the information that would be sent to MS. > > AppName: msaccess.exe AppVer: 10.0.4302.0 ModName: mso.dll > ModVer: 10.0.4219.0 Offset: 00009777 > > Thanks, > Bobby > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bobby Heid > Sent: Monday, April 05, 2004 11:01 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Access XP - Can't create MDE. > > > Hey all, > > I have an app that has been compiling to an MDE fine for several > months now. > All of a sudden, it will not create an MDE. > > The app will compile, but when I go to create an MDE (it is in XP > format), it asks where I want the output file to go, then sometimes > I'll see the progress bar flash to 100%, then it does one of two > things. It will either > sit there forever (I have left it for 2 hours before) while still > using 80-90% CPU utilization, or it will crash Access XP. Usually it > just appears > to lock up. Note that a normal compile takes maybe 1 minute. > > I am pretty sure that I have not installed any new software or > anything. > > My coworker is able to pull form VSS and compile the app with no > problems. > > I am running on Windows 2000 Pro, .5G Ram, 700Mhz P-III. > > Anyone have any ideas as to what may going wrong? > > Thanks, > Bobby > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From serbach at new.rr.com Tue Apr 6 07:05:56 2004 From: serbach at new.rr.com (Steven W. Erbach) Date: Tue, 6 Apr 2004 07:05:56 -0500 Subject: [AccessD] A2K: Help with Error accessing file Message-ID: <20040406070556.283970375.serbach@new.rr.com> Marty, Rocky, and Charlotte, Thanks very much. I will certainly track down that KB304548. Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "I think that the send button actually turns brains on." -- Bryan Carbonnell From serbach at new.rr.com Tue Apr 6 07:09:47 2004 From: serbach at new.rr.com (Steven W. Erbach) Date: Tue, 6 Apr 2004 07:09:47 -0500 Subject: [AccessD] A2K: Help with Error accessing file Message-ID: <20040406070947.153567620.serbach@new.rr.com> Dan, >> GoToMyPC << I've been evaluating it myself these past few weeks. I, indeed, have suggested it to the appropriate people, but there may be some resistance. It's a domestic violence shelter and they're very chary of sending any data via the Internet for fear that it will be intercepted and fall into the hands of the abusers. To help them with some of their custom report requests I offered to send them an Access routine to scramble the names, addresses, and phone numbers of every client in their files. They're thinking about it. Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "If you can't say anything nice, run for President." - Argus Hamilton From Bryan_Carbonnell at cbc.ca Tue Apr 6 07:23:42 2004 From: Bryan_Carbonnell at cbc.ca (Bryan Carbonnell) Date: Tue, 06 Apr 2004 08:23:42 -0400 Subject: [AccessD] Duplicate Posts Message-ID: Virginia, Are you still getting duplicates today? If you are, could you please forward both copies of the e-mails as *attachments* so I can check out the internet headers and see if it is DBAs server. Please forward the copies to carbonnb at sympatico.ca or listmaster at databaseadvisors.com Bryan Carbonnell bryan_carbonnell at cbc.ca >>> HollisVJ at pgdp.usec.com 06-Apr-04 7:00:24 AM >>> No, it just started yesterday. I haven't changed any settings. -----Original Message----- From: Francisco H Tapia [mailto:my.lists at verizon.net] Sent: Monday, April 05, 2004 5:00 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Duplicate Posts Hollis,Virginia said the following on 4/5/2004 9:32 AM: >I am receiving duplicate posts today... > >Virginia > From Bryan_Carbonnell at cbc.ca Tue Apr 6 07:45:49 2004 From: Bryan_Carbonnell at cbc.ca (Bryan Carbonnell) Date: Tue, 06 Apr 2004 08:45:49 -0400 Subject: [AccessD] A2K: Help with Error accessing file Message-ID: Steve, To aleviate their security concerns, you can use VNC over a Secure Tunnel, if you don't mind piecing together a solution. It uses OpenSSL, which is the defacto standard for Encryption on *nix these days. It's the same encryption that most Secure web sites use. You will need OpenSSL(http://www.slproweb.com/products/Win32OpenSSL.html for a precompiled Win32 binary) for the encryption, Stunnel (http://www.stunnel.org/download/binaries.html for a precompiled Win32 binary) for the Tunnel and a VNC client, http://www.realvnc.com/ or http://www.tightvnc.com/ or http://ultravnc.sourceforge.net/ I personally use TightVNC Once it's set up, you should be able to create a VNC session over a secure tunnel over the internet. I've never done it personally, but its possible. Bryan Carbonnell bryan_carbonnelL at cbc.ca >>> serbach at new.rr.com 06-Apr-04 8:09:47 AM >>> Dan, >> GoToMyPC << I've been evaluating it myself these past few weeks. I, indeed, have suggested it to the appropriate people, but there may be some resistance. It's a domestic violence shelter and they're very chary of sending any data via the Internet for fear that it will be intercepted and fall into the hands of the abusers. To help them with some of their custom report requests I offered to send them an Access routine to scramble the names, addresses, and phone numbers of every client in their files. They're thinking about it. From serbach at new.rr.com Tue Apr 6 08:06:43 2004 From: serbach at new.rr.com (Steven W. Erbach) Date: Tue, 6 Apr 2004 08:06:43 -0500 Subject: [AccessD] A2K: Help with Error accessing file Message-ID: <20040406080643.1599552369.serbach@new.rr.com> Bryan, >> I've never done it personally, but its possible. << Well, there ya went and ruined it for me! I was all charged up with confidence and then ya had to do THIS to me! Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "Congress is as trustworthy with money as a crack addict who is experimenting with heroin." - Dave Barry "Giving money and power to the government is like giving whiskey and car keys to teenage boys." - P. J. O'Rourke "Be thankful we're not getting all the government we're paying for." - Will Rogers "It could probably be shown by facts and figures that there is no distinctly American criminal class except Congress." - Mark Twain From Bryan_Carbonnell at cbc.ca Tue Apr 6 08:22:08 2004 From: Bryan_Carbonnell at cbc.ca (Bryan Carbonnell) Date: Tue, 06 Apr 2004 09:22:08 -0400 Subject: [AccessD] A2K: Help with Error accessing file Message-ID: Well then how's this to instill confidence again. I've used VNC. I've used OpenSSL. Both easy to use and set up. H*ll I've even compiled OpenSSL (on an Liunux box :) However, here are some links that may help if you want to give it a go. Straight from the horses mouth: http://www.stunnel.org/examples/ or more specifically http://www.stunnel.org/examples/vnc.html or from someone else: http://stunnel.mirt.net/static/VNC_StunnelHOWTO.html or http://faq.gotomyvnc.com/fom-serve/cache/33.html How about an article from Security Focus on how to do it http://www.securityfocus.com/infocus/1677 It looks like it has a step-by-step. or google's 33,100 hits http://www.google.ca/search?q=vnc+stunnel&ie=UTF-8&oe=UTF-8&hl=en&btnG=Google+Search&meta= Bryan Carbonnell bryan_carbonnell at cbc.ca >>> serbach at new.rr.com 06-Apr-04 9:06:43 AM >>> Bryan, >> I've never done it personally, but its possible. << Well, there ya went and ruined it for me! I was all charged up with confidence and then ya had to do THIS to me! Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "Congress is as trustworthy with money as a crack addict who is experimenting with heroin." - Dave Barry "Giving money and power to the government is like giving whiskey and car keys to teenage boys." - P. J. O'Rourke "Be thankful we're not getting all the government we're paying for." - Will Rogers "It could probably be shown by facts and figures that there is no distinctly American criminal class except Congress." - Mark Twain From BBarabash at TappeConstruction.com Tue Apr 6 08:33:16 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Tue, 6 Apr 2004 08:33:16 -0500 Subject: [AccessD] A2K: Help with Error accessing file Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE4C8@TAPPEEXCH01> We tried GoToMyPC here. Had a number of problems, especially when working in a "2-way" teleconference where both parties were driving the machine. The machine would hang while waiting for the other party to move their mouse, click a key, etc. I followed Drew's suggestion a while back, and picked up a copy of Remote Administrator (www.radmin.com). $35 covers the license for 2 machines. No monthly charges. No headaches. Works for us! -----Original Message----- From: Dan Waters [mailto:dwaters at usinternet.com] Sent: Monday, April 05, 2004 5:35 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2K: Help with Error accessing file --------------Please open with care!------------ This message has bypassed some of our spam filtering rules. This message was scanned for viruses and executable code has been stripped. --------------------------------------------------------------- Steve, I don't have an answer to your specific problem, but since your client is distant this might help: Have your client download a trial version of GoToMyPC. He can set up an account for himself. GoToMyPC has a feature called 'Guest Invite'. He can use this to let you see what's happening on his screen, and you can control his PC from yours so you can do some troubleshooting. I guess this is similar to WebEx or PCAnywhere. If he decides to keep the GoToMyPC account, he only needs to pay $15/mo. I use it to work with my clients so they can see 'drafts' of what I'm doing without making a trip. Best of Luck! Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steven W. Erbach Sent: Monday, April 05, 2004 10:33 AM To: Access Developers discussion and problem solving Subject: [AccessD] A2K: Help with Error accessing file Dear Group, I have an Access 2000 FE/BE application loaded on a client's system in another city 90 miles away. I've been working with their network guy over the phone and he's sent me screen shots of error messages along the way. Here's the situation. The "master" MDB FE database is loaded on the server. I have the local people there create an MDE and place it in another folder so that's it's available for the users who download it to their workstations when a new version is ready. While working with my client's network guy, Bob, the MDE file SEEMS to be created all right; but once the compacting is finished and the FE starts up, the first form opens and he gets this message (it's an "i" message): The expression On Load you entered as the event property setting produced the following error: Error accessing file. Network connection may have been lost. * The expression may not result in the name of a macro, the name of a user-defined function, or [Event Procedure]. * There may have been an error evaluating the function, event, or macro. When he clicks OK the startup form (which is supposed to be hidden) is there on the screen and the application has halted. INVESTIGATION: 1) They don't have the Documentor installed so I can't see what the path is to the BE. 2) However, I do have a form (that I cobbed from Steve Nyberg) that shows all the links with their paths. When we attempt to open this form we get the message you see above. Click OK on the message and Nyberg's SeeLinks form opens but with nothing showing up regarding linked tables. 3) I can open the linked tables from the "master" front end. But when I open the table that contains the latest version number (part of the version upgrade system) I see something odd. This Versions table has one row. The table has a Default value of the Now() function in the VersionDate column. On my system when I look at the table I see the first row all right and in the 2nd (empty) row I see (AutoNumber) in the key field and today's date and time in the VersionDate column. On my client's system he sees #Name? in the VersionDate column in an empty row. He cannot add information in a new row because Access doesn't like the default value. So I had Bob remove the default value. I still get the main problem. 4) The users can still run the application from their workstations using the old version of the FE. There hasn't been any problem there. 5) The Startup form of the FE calls Carl Tribble's Auto-Linker to check the link status of the first table before the main switchboard menu appears. This is all working properly on the users' workstations. 6) I tried Compact and Repair on both the BE and the FE. No change in basic error. 7) I checked the references. They're all there. 8) Only thing I haven't done (at least that I know how to do) is a /decompile on the "master" FE on the server. I'm sorry about the length of this message. I somehow doubt that I would find the problem even if I were sitting at the workstation. Bob is very capable, so I'm sure he's relaying to me everything that he sees. At least my clients can still work with the older version of the app. I am just stumped why this error message appears in the "master" front end database. Any thoughts, other than "Well, why the heck do you let the user make an MDE in the first place, ya numbskull?!" Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "Congress is as trustworthy with money as a crack addict who is experimenting with heroin." - Dave Barry "Giving money and power to the government is like giving whiskey and car keys to teenage boys." - P. J. O'Rourke "Be thankful we're not getting all the government we're paying for." - Will Rogers "It could probably be shown by facts and figures that there is no distinctly American criminal class except Congress." - Mark Twain -------------------------------------------------------------------------------------------------------------------- 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 dwaters at usinternet.com Tue Apr 6 09:13:18 2004 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 6 Apr 2004 09:13:18 -0500 Subject: [AccessD] A2K: Help with Error accessing file In-Reply-To: <19244937.1081259191497.JavaMail.root@sniper2.marix.com> Message-ID: <000601c41be1$4f82f2f0$de1811d8@DanWaters> I have to say that I haven't had any problems yet with GoToMyPC. It seems that the host PC has priority over the keyboard and mouse activities. A high-speed internet connection on both ends is required. I will check out Remote Administrator - the price is good! Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Brett Barabash Sent: Tuesday, April 06, 2004 8:33 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2K: Help with Error accessing file We tried GoToMyPC here. Had a number of problems, especially when working in a "2-way" teleconference where both parties were driving the machine. The machine would hang while waiting for the other party to move their mouse, click a key, etc. I followed Drew's suggestion a while back, and picked up a copy of Remote Administrator (www.radmin.com). $35 covers the license for 2 machines. No monthly charges. No headaches. Works for us! -----Original Message----- From: Dan Waters [mailto:dwaters at usinternet.com] Sent: Monday, April 05, 2004 5:35 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2K: Help with Error accessing file --------------Please open with care!------------ This message has bypassed some of our spam filtering rules. This message was scanned for viruses and executable code has been stripped. --------------------------------------------------------------- Steve, I don't have an answer to your specific problem, but since your client is distant this might help: Have your client download a trial version of GoToMyPC. He can set up an account for himself. GoToMyPC has a feature called 'Guest Invite'. He can use this to let you see what's happening on his screen, and you can control his PC from yours so you can do some troubleshooting. I guess this is similar to WebEx or PCAnywhere. If he decides to keep the GoToMyPC account, he only needs to pay $15/mo. I use it to work with my clients so they can see 'drafts' of what I'm doing without making a trip. Best of Luck! Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steven W. Erbach Sent: Monday, April 05, 2004 10:33 AM To: Access Developers discussion and problem solving Subject: [AccessD] A2K: Help with Error accessing file Dear Group, I have an Access 2000 FE/BE application loaded on a client's system in another city 90 miles away. I've been working with their network guy over the phone and he's sent me screen shots of error messages along the way. Here's the situation. The "master" MDB FE database is loaded on the server. I have the local people there create an MDE and place it in another folder so that's it's available for the users who download it to their workstations when a new version is ready. While working with my client's network guy, Bob, the MDE file SEEMS to be created all right; but once the compacting is finished and the FE starts up, the first form opens and he gets this message (it's an "i" message): The expression On Load you entered as the event property setting produced the following error: Error accessing file. Network connection may have been lost. * The expression may not result in the name of a macro, the name of a user-defined function, or [Event Procedure]. * There may have been an error evaluating the function, event, or macro. When he clicks OK the startup form (which is supposed to be hidden) is there on the screen and the application has halted. INVESTIGATION: 1) They don't have the Documentor installed so I can't see what the path is to the BE. 2) However, I do have a form (that I cobbed from Steve Nyberg) that shows all the links with their paths. When we attempt to open this form we get the message you see above. Click OK on the message and Nyberg's SeeLinks form opens but with nothing showing up regarding linked tables. 3) I can open the linked tables from the "master" front end. But when I open the table that contains the latest version number (part of the version upgrade system) I see something odd. This Versions table has one row. The table has a Default value of the Now() function in the VersionDate column. On my system when I look at the table I see the first row all right and in the 2nd (empty) row I see (AutoNumber) in the key field and today's date and time in the VersionDate column. On my client's system he sees #Name? in the VersionDate column in an empty row. He cannot add information in a new row because Access doesn't like the default value. So I had Bob remove the default value. I still get the main problem. 4) The users can still run the application from their workstations using the old version of the FE. There hasn't been any problem there. 5) The Startup form of the FE calls Carl Tribble's Auto-Linker to check the link status of the first table before the main switchboard menu appears. This is all working properly on the users' workstations. 6) I tried Compact and Repair on both the BE and the FE. No change in basic error. 7) I checked the references. They're all there. 8) Only thing I haven't done (at least that I know how to do) is a /decompile on the "master" FE on the server. I'm sorry about the length of this message. I somehow doubt that I would find the problem even if I were sitting at the workstation. Bob is very capable, so I'm sure he's relaying to me everything that he sees. At least my clients can still work with the older version of the app. I am just stumped why this error message appears in the "master" front end database. Any thoughts, other than "Well, why the heck do you let the user make an MDE in the first place, ya numbskull?!" Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "Congress is as trustworthy with money as a crack addict who is experimenting with heroin." - Dave Barry "Giving money and power to the government is like giving whiskey and car keys to teenage boys." - P. J. O'Rourke "Be thankful we're not getting all the government we're paying for." - Will Rogers "It could probably be shown by facts and figures that there is no distinctly American criminal class except Congress." - Mark Twain ---------------------------------------------------------------------------- ---------------------------------------- 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 prodevmg at yahoo.com Tue Apr 6 09:53:14 2004 From: prodevmg at yahoo.com (Lonnie Johnson) Date: Tue, 6 Apr 2004 07:53:14 -0700 (PDT) Subject: [AccessD] MS Access to VB.Net Message-ID: <20040406145314.54399.qmail@web20416.mail.yahoo.com> Does anyone know of a free untility/application that can convert an MS Access application to VB.Net? Thanks. Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter today From ssharkins at bellsouth.net Tue Apr 6 09:58:25 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 6 Apr 2004 10:58:25 -0400 Subject: [AccessD] OT: open source Message-ID: <20040406145847.NMC1781.imf18aec.mail.bellsouth.net@SUSANONE> Someone has asked me "What's in the future for Microsoft and the Open Source movement? " It's such a huge topic I couldn't really answer -- it's going to take me a few days to formulate a response. It is a tad off topic for a strictly Access list -- and I don't want any MS bashing, just because that would be even more off topic -- but anyone want to make a comment on the subject? I'd love to hear them -- my initial response to the guy was "Resistance is futile" but that's only really funny if you're saying it from the MS perspective. ;) Susan H. From cfoust at infostatsystems.com Tue Apr 6 10:10:10 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 6 Apr 2004 08:10:10 -0700 Subject: [AccessD] MS Access to VB.Net Message-ID: Not for free, but there is a product called Evolution http://www.perfectdownloads.com/software-development/basic-vb-vb-dotnet/ download-evolution.htm that is not too expensive and can be tried out for free. Charlotte Foust -----Original Message----- From: Lonnie Johnson [mailto:prodevmg at yahoo.com] Sent: Tuesday, April 06, 2004 6:53 AM To: 'MS-ACCESS-L at lists.missouri.edu'; AccessDevelopers; ms_access; AccessD solving' Subject: [AccessD] MS Access to VB.Net Does anyone know of a free untility/application that can convert an MS Access application to VB.Net? Thanks. Lonnie Johnson ProDev, Professional Development of MS Access Databases Visit me at ==> http://www.prodev.us --------------------------------- Do you Yahoo!? Yahoo! Small Business $15K Web Design Giveaway - Enter today -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mwp.reid at queens-belfast.ac.uk Tue Apr 6 10:04:54 2004 From: mwp.reid at queens-belfast.ac.uk (Martin Reid) Date: Tue, 6 Apr 2004 16:04:54 +0100 (GMT Daylight Time) Subject: [AccessD] OT: open source In-Reply-To: <20040406145847.NMC1781.imf18aec.mail.bellsouth.net@SUSANONE> Message-ID: >From our point of view it would be difficult in terms of money and infrastructure to change over. The amount of work would be massive requiring a substantial investment in both hardware, software and training. Its not impossible just take the will to make the move. Martin Martin WP Reid Information Services Queens University Belfast Tel: (02890) 273750 ---------------------- From cfoust at infostatsystems.com Tue Apr 6 10:22:12 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 6 Apr 2004 08:22:12 -0700 Subject: [AccessD] A97 or A2002 Message-ID: You can use DAO with A2002 (and yes, that is AXP), so that isn't a problem. The 97 file format is smaller because it doesn't use unicode, but I would suggest using the 2000 file format because it does use unicode and it doesn't have the extra bloat problem that exists in 2002. The file size will roughly double between 97 and 2000/2002 because of unicode. Charlotte Foust -----Original Message----- From: Griffiths, Richard [mailto:R.Griffiths at bury.gov.uk] Sent: Tuesday, April 06, 2004 12:50 AM To: AccessD (AccessD at databaseadvisors.com) Subject: [AccessD] A97 or A2002 Hi Group I am looking to rewrite a system (to a VB front end Access BE from Acc FE/Be in Acc 97). I still intend to use DAO - I am looking for advice on whether to upgrade the Be to A2002 ( is this AXP? btw) or keep BE in Acc 97 . TIA Richard -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Tue Apr 6 10:24:03 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 6 Apr 2004 11:24:03 -0400 Subject: [AccessD] OT: open source In-Reply-To: Message-ID: <20040406152426.QPZO1746.imf17aec.mail.bellsouth.net@SUSANONE> But why should they? Susan H. >From our point of view it would be difficult in terms of money and infrastructure to change over. The amount of work would be massive requiring a substantial investment in both hardware, software and training. Its not impossible just take the will to make the move. From Bryan_Carbonnell at cbc.ca Tue Apr 6 10:30:12 2004 From: Bryan_Carbonnell at cbc.ca (Bryan Carbonnell) Date: Tue, 06 Apr 2004 11:30:12 -0400 Subject: [AccessD] OT: open source Message-ID: Susan, I don't have time right now, but I'll post something later this afternoon or tonight. Bryan Carbonnell bryan_carbnnell at cbc.ca >>> ssharkins at bellsouth.net 06-Apr-04 10:58:25 AM >>> Someone has asked me "What's in the future for Microsoft and the Open Source movement? " It's such a huge topic I couldn't really answer -- it's going to take me a few days to formulate a response. It is a tad off topic for a strictly Access list -- and I don't want any MS bashing, just because that would be even more off topic -- but anyone want to make a comment on the subject? I'd love to hear them -- my initial response to the guy was "Resistance is futile" but that's only really funny if you're saying it from the MS perspective. ;) Susan H. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mwp.reid at qub.ac.uk Tue Apr 6 10:43:22 2004 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Tue, 6 Apr 2004 16:43:22 +0100 Subject: [AccessD] OT: open source References: <20040406152426.QPZO1746.imf17aec.mail.bellsouth.net@SUSANONE> Message-ID: <000b01c41bed$e465ea60$9111758f@aine> WHy should we move? Money, costs us a fortune for MS licences Martin ----- Original Message ----- From: "Susan Harkins" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, April 06, 2004 4:24 PM Subject: RE: [AccessD] OT: open source > But why should they? > > Susan H. > > >From our point of view it would be difficult in terms of > money and infrastructure to change over. The amount of work would be massive > requiring a substantial investment in both hardware, software and training. > > Its not impossible just take the will to make the move. > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From ssharkins at bellsouth.net Tue Apr 6 10:51:58 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 6 Apr 2004 11:51:58 -0400 Subject: [AccessD] OT: open source In-Reply-To: <000b01c41bed$e465ea60$9111758f@aine> Message-ID: <20040406155218.WWBW1775.imf19aec.mail.bellsouth.net@SUSANONE> Oh, I'm not confronting license prices as is -- but that's not a motivation for MS to move -- it's a motivation for you to want them to change their policy. ;) I thought you guys were an MS shop already -- you're not? Susan H. WHy should we move? Money, costs us a fortune for MS licences Martin ----- Original Message ----- From: "Susan Harkins" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, April 06, 2004 4:24 PM Subject: RE: [AccessD] OT: open source > But why should they? > > Susan H. > > >From our point of view it would be difficult in terms of > money and infrastructure to change over. The amount of work would be massive > requiring a substantial investment in both hardware, software and training. > > Its not impossible just take the will to make the move. > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwelz at hotmail.com Tue Apr 6 11:42:30 2004 From: jwelz at hotmail.com (Jürgen Welz) Date: Tue, 06 Apr 2004 10:42:30 -0600 Subject: [AccessD] OT: open source Message-ID: I get a news letter 'What's New Now from Ziff Davis' that had links to a number of articles alleging that the TCO of Microsoft product was cheaper than open source alternatives. I very briefly skimmed the article but don't have access to the mail account that receives this news letter except Fridays when I do my weekly support stint at a former employer who maintains this account for me. I suspect that many of the arguments have to do with the ubiquitousness of the Microsoft product in North America, the pervasive use of which results in a significantly reduced learning curve for many businesses. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >Money, costs us a fortune for MS licences > > >Martin > > >----- Original Message ----- >From: "Susan Harkins" >To: "'Access Developers discussion and problem solving'" > >Sent: Tuesday, April 06, 2004 4:24 PM >Subject: RE: [AccessD] OT: open source > > > > But why should they? > > > > Susan H. > > > > >From our point of view it would be difficult in terms of > > money and infrastructure to change over. The amount of work would be >massive > > requiring a substantial investment in both hardware, software and >training. > > > > Its not impossible just take the will to make the move. _________________________________________________________________ MSN Toolbar provides one-click access to Hotmail from any Web page ? FREE download! http://toolbar.msn.com/go/onm00200413ave/direct/01/ From R.Griffiths at bury.gov.uk Tue Apr 6 11:56:05 2004 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Tue, 6 Apr 2004 17:56:05 +0100 Subject: [AccessD] A97 or A2002 Message-ID: Charlotte Thanks for your reply - I assume you can choose when you load A2002 (AXP) to have 2000 format? What are the benefits for Unicode - what other benefits does A2000 have? Thanks -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: 06 April 2004 16:22 To: Access Developers discussion and problem solving Subject: RE: [AccessD] A97 or A2002 You can use DAO with A2002 (and yes, that is AXP), so that isn't a problem. The 97 file format is smaller because it doesn't use unicode, but I would suggest using the 2000 file format because it does use unicode and it doesn't have the extra bloat problem that exists in 2002. The file size will roughly double between 97 and 2000/2002 because of unicode. Charlotte Foust -----Original Message----- From: Griffiths, Richard [mailto:R.Griffiths at bury.gov.uk] Sent: Tuesday, April 06, 2004 12:50 AM To: AccessD (AccessD at databaseadvisors.com) Subject: [AccessD] A97 or A2002 Hi Group I am looking to rewrite a system (to a VB front end Access BE from Acc FE/Be in Acc 97). I still intend to use DAO - I am looking for advice on whether to upgrade the Be to A2002 ( is this AXP? btw) or keep BE in Acc 97 . TIA Richard -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mwp.reid at qub.ac.uk Tue Apr 6 12:20:32 2004 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Tue, 6 Apr 2004 18:20:32 +0100 Subject: [AccessD] OT: open source References: <20040406155218.WWBW1775.imf19aec.mail.bellsouth.net@SUSANONE> Message-ID: <000d01c41bfb$789ccde0$1b02a8c0@MARTINREID> We are. Sorry for confusion. Martin ----- Original Message ----- From: "Susan Harkins" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, April 06, 2004 4:51 PM Subject: RE: [AccessD] OT: open source > Oh, I'm not confronting license prices as is -- but that's not a motivation > for MS to move -- it's a motivation for you to want them to change their > policy. ;) I thought you guys were an MS shop already -- you're not? > > Susan H. > > WHy should we move? > > Money, costs us a fortune for MS licences > > > Martin > > > ----- Original Message ----- > From: "Susan Harkins" > To: "'Access Developers discussion and problem solving'" > > Sent: Tuesday, April 06, 2004 4:24 PM > Subject: RE: [AccessD] OT: open source > > > > But why should they? > > > > Susan H. > > > > >From our point of view it would be difficult in terms of > > money and infrastructure to change over. The amount of work would be > massive > > requiring a substantial investment in both hardware, software and > training. > > > > Its not impossible just take the will to make the move. > > > > > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Apr 6 12:37:11 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 6 Apr 2004 10:37:11 -0700 Subject: [AccessD] A97 or A2002 Message-ID: The format is selected on a database basis, but 2000 is the default format. You can set the default to 2002, but the database opens in whatever format you used to create/convert it. I'll let someone else address the unicode issue. Charlotte Foust -----Original Message----- From: Griffiths, Richard [mailto:R.Griffiths at bury.gov.uk] Sent: Tuesday, April 06, 2004 8:56 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A97 or A2002 Charlotte Thanks for your reply - I assume you can choose when you load A2002 (AXP) to have 2000 format? What are the benefits for Unicode - what other benefits does A2000 have? Thanks -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: 06 April 2004 16:22 To: Access Developers discussion and problem solving Subject: RE: [AccessD] A97 or A2002 You can use DAO with A2002 (and yes, that is AXP), so that isn't a problem. The 97 file format is smaller because it doesn't use unicode, but I would suggest using the 2000 file format because it does use unicode and it doesn't have the extra bloat problem that exists in 2002. The file size will roughly double between 97 and 2000/2002 because of unicode. Charlotte Foust -----Original Message----- From: Griffiths, Richard [mailto:R.Griffiths at bury.gov.uk] Sent: Tuesday, April 06, 2004 12:50 AM To: AccessD (AccessD at databaseadvisors.com) Subject: [AccessD] A97 or A2002 Hi Group I am looking to rewrite a system (to a VB front end Access BE from Acc FE/Be in Acc 97). I still intend to use DAO - I am looking for advice on whether to upgrade the Be to A2002 ( is this AXP? btw) or keep BE in Acc 97 . TIA Richard -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From my.lists at verizon.net Tue Apr 6 13:39:32 2004 From: my.lists at verizon.net (Francisco H Tapia) Date: Tue, 06 Apr 2004 11:39:32 -0700 Subject: [AccessD] Lightweight security (Revisited) Message-ID: <4072F964.8050307@verizon.net> I'm not much into the light weight security, however... after reading several of John's posts, I'm sure others have wanted a feature like this: check out the following article in which they feature an Access LightWeight security, but they call it LASsie. http://advisor.com/doc/13743 -- -Francisco From ssharkins at bellsouth.net Tue Apr 6 12:59:26 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 6 Apr 2004 13:59:26 -0400 Subject: [AccessD] OT: open source In-Reply-To: <000d01c41bfb$789ccde0$1b02a8c0@MARTINREID> Message-ID: <20040406175945.JJMC1709.imf20aec.mail.bellsouth.net@SUSANONE> I can understand the push for open source from the development side -- I just don't see the issues that motivate MS to actually go that route. Susan H. We are. Sorry for confusion. From wdhindman at bellsouth.net Tue Apr 6 14:58:56 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Tue, 6 Apr 2004 15:58:56 -0400 Subject: [AccessD] Search tool References: <040620041047.29003.40728ABA000593790000714B2200734076FF99998A8D9E8F8F9E@comcast.net> Message-ID: <006501c41c11$98145e70$6101a8c0@dejpolsys> ...F&R is comparatively inexpensive but ime, SF works much, much faster and has a lot of options simply not found in F&R ...I switched to F&R for awhile when SF was late getting an AXP version released but switched right back as soon as they released it. Political advertising is the price of our chains ...my name is William Hindman and I approve this message :) ----- Original Message ----- From: To: "Access Developers discussion and problem solving" Sent: Tuesday, April 06, 2004 6:47 AM Subject: Re: [AccessD] Search tool > > Speed Ferret is an excellent tool but I prefer Rick Fisher's Find And Replace. It is about 2/3rds the cost of Speed Ferret and it has served me well for the past 5 years. > > Check out http://www.rickworld.com > > > -- > John V. Ruff - The Eternal Optimist :-) > > > "Commit to the Lord whatever you do, > and your plans will succeed." Proverbs 16:3 > > Hi group, > > > > does anyone know of a good search tool / addin or whatever. With which i > > will be able to search in queryfields, querycriteris, formcontrols > > recordsources etc. to find querynames, tablenames, tablefields, functions > > etc. > > > > I hope you understand what i am looking for..... > > > > BTW i will use this in A2K. > > > > Thanks. > > > > Bert-Jan > > > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rl_stewart at highstream.net Tue Apr 6 16:02:41 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Tue, 06 Apr 2004 16:02:41 -0500 Subject: [AccessD] Re: Help with Error accessing file In-Reply-To: <200404061715.i36HFPB18999@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040406160114.02af0ea0@pop3.highstream.net> Steve, I do not know why no one else caught this. The database is corrupt. That is one of the errors you get when it is. Robert At 12:15 PM 4/6/2004 -0500, you wrote: >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steven W. Erbach >Sent: Monday, April 05, 2004 10:33 AM >To: Access Developers discussion and problem solving >Subject: [AccessD] A2K: Help with Error accessing file > >Dear Group, > >I have an Access 2000 FE/BE application loaded on a client's system in >another city 90 miles away. I've been working with their network guy over >the phone and he's sent me screen shots of error messages along the way. >Here's the situation. > >The "master" MDB FE database is loaded on the server. I have the local >people there create an MDE and place it in another folder so that's it's >available for the users who download it to their workstations when a new >version is ready. While working with my client's network guy, Bob, the MDE >file SEEMS to be created all right; but once the compacting is finished and >the FE starts up, the first form opens and he gets this message (it's an "i" >message): > >The expression On Load you entered as the event property setting produced >the following error: Error accessing file. Network connection may have been >lost. > > * The expression may not result in the name of a macro, the name of a >user-defined function, or [Event Procedure]. > * There may have been an error evaluating the function, event, or macro. > >When he clicks OK the startup form (which is supposed to be hidden) is there >on the screen and the application has halted. > >INVESTIGATION: > >1) They don't have the Documentor installed so I can't see what the path is >to the BE. > >2) However, I do have a form (that I cobbed from Steve Nyberg) that shows >all the links with their paths. When we attempt to open this form we get the >message you see above. Click OK on the message and Nyberg's SeeLinks form >opens but with nothing showing up regarding linked tables. > >3) I can open the linked tables from the "master" front end. But when I open >the table that contains the latest version number (part of the version >upgrade system) I see something odd. This Versions table has one row. The >table has a Default value of the Now() function in the VersionDate column. >On my system when I look at the table I see the first row all right and in >the 2nd (empty) row I see (AutoNumber) in the key field and today's date and >time in the VersionDate column. On my client's system he sees #Name? in the >VersionDate column in an empty row. He cannot add information in a new row >because Access doesn't like the default value. So I had Bob remove the >default value. I still get the main problem. > >4) The users can still run the application from their workstations using the >old version of the FE. There hasn't been any problem there. > >5) The Startup form of the FE calls Carl Tribble's Auto-Linker to check the >link status of the first table before the main switchboard menu appears. >This is all working properly on the users' workstations. > >6) I tried Compact and Repair on both the BE and the FE. No change in basic >error. > >7) I checked the references. They're all there. > >8) Only thing I haven't done (at least that I know how to do) is a >/decompile on the "master" FE on the server. > >I'm sorry about the length of this message. I somehow doubt that I would >find the problem even if I were sitting at the workstation. Bob is very >capable, so I'm sure he's relaying to me everything that he sees. > >At least my clients can still work with the older version of the app. I am >just stumped why this error message appears in the "master" front end >database. Any thoughts, other than "Well, why the heck do you let the user >make an MDE in the first place, ya numbskull?!" > >Regards, > >Steve Erbach >Scientific Marketing >Neenah, WI >920-969-0504 From stuart at lexacorp.com.pg Tue Apr 6 16:49:03 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 07 Apr 2004 07:49:03 +1000 Subject: [AccessD] OT: open source In-Reply-To: <20040406145847.NMC1781.imf18aec.mail.bellsouth.net@SUSANONE> Message-ID: <4073B26F.4145.132DAB@localhost> On 6 Apr 2004 at 10:58, Susan Harkins wrote: > Someone has asked me "What's in the future for Microsoft and the Open Source > movement? " > > It's such a huge topic I couldn't really answer -- it's going to take me a > few days to formulate a response. It is a tad off topic for a strictly > Access list -- and I don't want any MS bashing, just because that would be > even more off topic -- but anyone want to make a comment on the subject? I'd > love to hear them -- my initial response to the guy was "Resistance is > futile" but that's only really funny if you're saying it from the MS > perspective. ;) > I think that Peruvian Congressmen Edgar Villanueva Nu?ez summed up the arguments fairly well: http://www.opensource.org/docs/peru_and_ms.php -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From Bryan_Carbonnell at cbc.ca Tue Apr 6 16:46:58 2004 From: Bryan_Carbonnell at cbc.ca (Bryan Carbonnell) Date: Tue, 06 Apr 2004 17:46:58 -0400 Subject: [AccessD] OT: open source Message-ID: Warning!!! I got very, very verbose. In the grand scheme of things, I don't think that MS has to worry a lot about open source on the desktop for quite a few more years. Once some of the desktop apps start to mature a bit more, I think MS will start being given a run for their money. Things like OpenOffice (office suite), Firefox (web browser), ThunderBird(e-mail client). Once they start to take a hold, then MS will definitely need to watch what they do. Actually they are probably watching now and don't like what they see. The open source apps are *almost* there, but they have their quirks, that either need to get fixed, or users will get used to them. Just like they did, and do, with MS products. As for the actual Desktop operating system, that is further out. 5-7 years would be my guess. Linux needs a few things to become more competitive with Windows. It *needs* to become less "geek-friendly" and more "user friendly". It also *NEEDS* to have a "standard" GUI, or at least a standard layout. That way the end user can find what they are looking for with minimal effort. Fragmentation, between KDE and Gnome and all the lesser known desktops, is really hurting Linux's acceptance on the desktop. Home and corporate. The choice to use your preferred desktop needs to exist, but it's got to start out looking and feeling the same as the next one. That way a user can go from this PC to that PC to the other and have the "same experience" Much the same way Windows users have it right now. yes I know there are differences between 9x, NT4, 2K and XP (both the classic UI and the "Fisher Price" one{that I happen to like :) } ). they are slightly different, but close enough for most people to stumble their way around. Unfortunately the Linux X-Widows desktops don't have that "portability" right now. The choice to use which ever one you want needs to remain, for the hard core Linux users, but for the average user, they don't care. Just let them set their wallpaper to their dog or cat or kids and make sure they can use the tools they need to do their job and they are happy. Yep, I know that is a bit condescending to the users, but I don't think its' that far from the truth Now, in the server room, I think that MS has got more to worry about. Just like the switch from Novell to MS happened (although I disagree that Novell networks are dead), I really think that the switch to Linux there is already happening. As more and more SysAdmins set up "test" boxes to "play" with Linux and end up part of the network infrastructure, Linux will become more and more the choice for new servers. With all the excellent and mature server software for Linux, that is out there, MS better watch themselves otherwise they will lose the server room. Is Linux better than Win Servers? Are either better than Novell? Is Novell better that either one? No to all the questions. They all fill different needs. If I am Novell certified, then of course I'm going to lean towards Novell servers and be able to "make it work". If I am MS certified, then that is where my loyalties will be. If I'm comfortable with Unix or Linux, then Linux will be the server of choice for me. All 3 would work equally well. I'd almost be willing to bet that if I had 3 equally competent SysAdmins, one for each Linux, MS and Novell, the TCO would be similar enough to not be a deciding factor. As more and more SysAdmins become more and more comfortable with Linux you'll see they start taking market share away from MS, and not just the Unix vendors like they are now. As MS makes the hardware specs higher and higher for their servers, increases the license costs and p*sses more and more people with the changes in the license agreements, then Linux servers will replace MS servers one by one. I don't think you will see a lot of people saying "Rip out all the MS servers and replace them with Linux servers", what you will see is people saying "We need another server, so let's use Linux, since it can integrate with our network as it is" Now, I know that isn't really answering your question Susan, but I'm getting to that. :) MS needs to take the Open Source community seriously. Its making inroads into a lot of places that I never thought it would. My house for one. I have long been a strong MS proponent. Well actually, since about 92 or 93, when I first started using Windows. But as Open Source is maturing, it is looking like a better alternative to me. I am using a whole host of Open Source apps in my day to day life. They are comparable to commercial apps. Things like Filezilla (FTP client, but I know you know that already Susan :)and Firefox (web browser). Why should I fork $40 or $50 or $100 for an app that I can get for free? Yes, I know that with the paid apps, I get tech support, but these days tech support for software is crap. The last time I *NEEDED* software support, was about 4 or 5 years ago when I got bad discs. I took it back to the store where I bought it until I had gone through EVERY SINGLE SHRINK-WRAPPED PACKAGE they had. I finally contacted the vendor and got the run around trying to get these defective discs replaced. It took me about 3 months to get it sorted out. For $100 I should get better service than that. I'd much sooner deal with an online community, such as DBA, for the software support than the vendor. I get better and more accurate responses. Will MS need to make their stuff Open Source to survive? I don't think so. Will MS Open Source their software anyway? I really doubt it. Maybe bits and pieces, but the whole thing, No way. Will MS incorporate Open Source into their software? As far as I understand, they already have with the TCP/IP stack. Its based on the BSD stack, IIRC. Keep in mind that there are several different Open Source licenses. There are 2 that I am most familiar with. 1) There is the Gnu Public Licence(GPL) which in a nutshell says that the software, and any software derived for it MUST make available the source code to those that ask. You can charge for the software if you want, but the source code must be given upon request. This is what the Linux Kernel is distributed under. 2) BSD style license. Basically this says that you can do what you wan t with the source code. You can leave it open, you can build a derived work and keep it open. You can create a derivative and close it. You can do what ever you want, except claim you wrote the original. Mac OS X is built on one of the BSD operating systems. It is a closed derivative of BSD. If you want to see a BSD style license look at the license agreement that we (Andy, Lembit, Reuben and I) used for the BEU. So they are allowed to use BSD style open source material in their applications. So, I suspect that they will continue to use it. However, there is the expectation that if you improve open source code, you return the improved code to the community. I can't see MS doing this freely, or at least "in the open". It will hurt their "public image" To sum up, in 10,000 words or less :) MS needs to watch the open source community. It will hurt them if they are not careful. It won't be a quick kill, but slow and gradual. Actually it will probably hurt them even if they are careful. MS probably won't open source their code, but will use what they can from the community and get away with. Is open source a panacea? No way. But then again, neither is MS. It's a choice that is becoming more and more viable especially as the software becomes more mature. Will it hurt MS? In the long run, more likely than not, but MS will survive. They may be different, but they will still be there. How's that for $0.02 worth of opinion. Bryan Carbonnell bryan_carbonnell at cbc.ca >>> ssharkins at bellsouth.net 04/06/04 10:58AM >>> Someone has asked me "What's in the future for Microsoft and the Open Source movement? " It's such a huge topic I couldn't really answer -- it's going to take me a few days to formulate a response. It is a tad off topic for a strictly Access list -- and I don't want any MS bashing, just because that would be even more off topic -- but anyone want to make a comment on the subject? I'd love to hear them -- my initial response to the guy was "Resistance is futile" but that's only really funny if you're saying it from the MS perspective. ;) From ssharkins at bellsouth.net Tue Apr 6 17:18:18 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 6 Apr 2004 18:18:18 -0400 Subject: [AccessD] OT: open source In-Reply-To: Message-ID: <20040406221838.PADI1715.imf16aec.mail.bellsouth.net@SUSANONE> That was very good and very close to my own opinions except I just don't have the expertise to speak to servers. I think MS will adjust and change as necessary -- but can't really predict what that will mean. My question is this -- if they're all giving it up for free -- how are they going to make money and stay in business. Support? Is there really going to be enough support $ to cover it? I wouldn't think so. Anybody using MySQL and paying for the support? I absolutely hate using MySQL, but I wouldn't pay for support. There's got to be part of the puzzle that I'm missing. Susan H. Is open source a panacea? No way. But then again, neither is MS. It's a choice that is becoming more and more viable especially as the software becomes more mature. Will it hurt MS? In the long run, more likely than not, but MS will survive. They may be different, but they will still be there. From Mark.Mitsules at ngc.com Tue Apr 6 17:48:37 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Tue, 6 Apr 2004 18:48:37 -0400 Subject: [AccessD] OT: open source Message-ID: Congressman DR. EDGAR DAVID VILLANUEVA NU?EZ's reply was simply AWESOME! Well worth the read. Mark -----Original Message----- From: Stuart McLachlan [mailto:stuart at lexacorp.com.pg] Sent: Tuesday, April 06, 2004 5:49 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: open source On 6 Apr 2004 at 10:58, Susan Harkins wrote: > Someone has asked me "What's in the future for Microsoft and the Open Source > movement? " > > It's such a huge topic I couldn't really answer -- it's going to take me a > few days to formulate a response. It is a tad off topic for a strictly > Access list -- and I don't want any MS bashing, just because that would be > even more off topic -- but anyone want to make a comment on the subject? I'd > love to hear them -- my initial response to the guy was "Resistance is > futile" but that's only really funny if you're saying it from the MS > perspective. ;) > I think that Peruvian Congressmen Edgar Villanueva Nu?ez summed up the arguments fairly well: http://www.opensource.org/docs/peru_and_ms.php -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From my.lists at verizon.net Tue Apr 6 17:51:53 2004 From: my.lists at verizon.net (Francisco H Tapia) Date: Tue, 06 Apr 2004 15:51:53 -0700 Subject: [AccessD] OT: open source In-Reply-To: References: Message-ID: <40733489.2040700@verizon.net> Bryan Carbonnell said the following on 4/6/2004 2:46 PM: >As for the actual Desktop operating system, that is further out. 5-7 >years would be my guess. Linux needs a few things to become more >competitive with Windows. It *needs* to become less "geek-friendly" and >more "user friendly". It also *NEEDS* to have a "standard" GUI, or at >least a standard layout. > While I agree with you I also have to guess that a Linux convertion may be closer than we all guess. There have been leaps and bounds in which the various distros have improved their desktop products. I also must concur that a standardized GUI would be the killer blow that would/will ultimately drive hords of users away from Microsoft. I base my opinion off such distros like RedHat or even the newest one I've seen (Knopixx). Wich is an OS bootable completely off the CD. It is Linux, and what makes this even more cool is that you could theoretically put out a distro that would make it so that end users "couldn't" break thier installations. Just always boot from the CD. With High end products such as ThunderBird and FireFox and even some of the OpenOffice products, Open Source products are reaching maturity levels that are acceptable to a wider population. Some of the greatest leaps have been "custom installers" for such products. This improves delivery to end users who are wanting to try a simpler to use OPEN SOURCE community. A greater risk than vulnerabilities in MS software is not so much the security holes, but the COST of the software. You have many college students that simply can't afford to go w/ MS Office so they use OpenOffice. While not all do, the trend is steadily climing, and w/ the avalability getting better and the quaility reaching acceptace from the general public, this will help push more OpenSource software into the main stream. -- -Francisco From bruce_bruen at mlc.com.au Tue Apr 6 17:51:13 2004 From: bruce_bruen at mlc.com.au (bruce_bruen at mlc.com.au) Date: Wed, 7 Apr 2004 08:51:13 +1000 Subject: [AccessD] OT: open source Message-ID: Susan, Open source does not mean free of cost. Nor does it always mean free of licence fees. The strength of the open source movement lies in the ability of the licencee to alter the software to their own needs. Apache on Linux servers is the most widely used web server technology in the world. Usage of MySQL in corporate applications in Aus/NZ has increased by 60% in the last year and is expected to grow at a similar but declining rate for the "forseeable future" (Source C-Net survey results) There are versioning problems in open source software - dont let anyone tell you otherwise. The TCO numbers game is b***s**t. There is "statistical evidence" proving both sides are correct. Have you read "The Cathedral and the Bazaar". http://www.catb.org/~esr/writings/cathedral-bazaar/ or http://www.firstmonday.org/ Its the short and to the point "sales" material for open source. Look at the adoption of open source software by the public sector for some indication of the stability and future of the open source movement. B "Susan Harkins" To: "'Access Developers discussion and problem solving'" Sent by: accessd-bounces at databasea cc: dvisors.com Subject: RE: [AccessD] OT: open source 07/04/2004 08:18 Please respond to Access Developers discussion and problem solving That was very good and very close to my own opinions except I just don't have the expertise to speak to servers. I think MS will adjust and change as necessary -- but can't really predict what that will mean. My question is this -- if they're all giving it up for free -- how are they going to make money and stay in business. Support? Is there really going to be enough support $ to cover it? I wouldn't think so. Anybody using MySQL and paying for the support? I absolutely hate using MySQL, but I wouldn't pay for support. There's got to be part of the puzzle that I'm missing. Susan H. Is open source a panacea? No way. But then again, neither is MS. It's a choice that is becoming more and more viable especially as the software becomes more mature. Will it hurt MS? In the long run, more likely than not, but MS will survive. They may be different, but they will still be there. -- _______________________________________________ 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 Tue Apr 6 17:59:07 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Wed, 7 Apr 2004 08:59:07 +1000 Subject: [AccessD] A2K: Transfer Database References: <20040406090248.69D1225E4A0@smtp.nildram.co.uk> Message-ID: <001801c41c2a$c4014c00$48619a89@DDICK> Hi Guys Yep Paul was right The first field had been changed (by me :-(() in testing and that stuffed everything up. Change the columns headers and away she went Thanks for the replies DD ----- Original Message ----- From: "Andy Lacey" To: "Access Developers discussion and problem solving" Sent: Tuesday, April 06, 2004 8:02 PM Subject: Re: [AccessD] A2K: Transfer Database > That was my first reaction Paul, then I wondered how that could be when > doing an import rather than an export. The fields on the dbf must already be > unique and a max of 10 chars, cos that's all the dbf would allow. Unless the > dbf is non-standard and was created using something other than the usual > packages. In which case you may be right. Certainly worth a look Darren. > Alternatively have you tried the other similar import types to dBase IV, > like 'dbase III', 'dbase 5.0' and all the Foxpro versions? > > -- > 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] A2K: Transfer Database > Date: 06/04/04 08:44 > > > > > Darren, > > try taking a look at the first ten characters of the DBase IV table fields > you are trying to import (i.e. you may have something like StudentsID1 and > StudentsID2 if you look at the first ten characters you will only have > StudentsID) for some reason when trying to Export/Import DBase IV tables it > only reads the first ten characters. Make sure the first ten characters in > your fields are different and then you should be ok. > > Paul > > > > > > > > > > > > Message date : Apr 06 2004, 06:01 AM > > >From : "Darren DICK" > > To : "AccessD List" > > Copy to : > > Subject : [AccessD] A2K: Transfer Database > > hello all > > can anyone tell me why the acLink version of transfer database > > below works but the import version fails? Along with the error message > > "Cannot define Field more than once" > > I have tried every combination I can think of in relation to the dbf file > name location etc. > > No joy and the help is useless > > > > 'This one works fine > > DoCmd.TransferDatabase acLink, "dBase IV", "C:", > acTable, "C:SIDS.dbf", "tblStudents", False > > 'This one fails > > DoCmd.TransferDatabase acImport, "dBase IV", "C:", > acTable, "C:SIDS.dbf", "tblStudents", False > > > > many thanks > > > > Drren > > > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > Join the UK's number one for the internet > > www.freeserve.com/time > > -- > > _______________________________________________ > > 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 ssharkins at bellsouth.net Tue Apr 6 18:06:47 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 6 Apr 2004 19:06:47 -0400 Subject: [AccessD] OT: open source In-Reply-To: Message-ID: <20040406230707.HUEZ1775.imf19aec.mail.bellsouth.net@SUSANONE> Open source does not mean free of cost. Nor does it always mean free of licence fees. ====Right, I understand that and I don't mean to confuse the issue, but sharing intellectual property in this way is an odd concept to me. Susan H. From carbonnb at sympatico.ca Tue Apr 6 18:09:15 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Tue, 06 Apr 2004 19:09:15 -0400 Subject: [AccessD] OT: open source In-Reply-To: <20040406221838.PADI1715.imf16aec.mail.bellsouth.net@SUSANONE> References: Message-ID: <4073005B.31158.5C86F3@localhost> On 6 Apr 2004 at 18:18, Susan Harkins wrote: > That was very good and very close to my own opinions except I just > don't have the expertise to speak to servers. I think MS will adjust I don't really have the server experience either. I do, however read as much as I can. > and change as necessary -- but can't really predict what that will > mean. I don't think anyone can. And it probably scares the bejebes out of MS. > My question is this -- if they're all giving it up for free -- how are > they going to make money and stay in business. Support? Is there > really going to be enough support $ to cover it? I wouldn't think so. There are a couple of ways that the money is made. 1) They sell it. Red Hat is a perfect example. The sell boxed sets, well they used to. They sell server versions of Linux. 2) Selling support. Red Hat again. They sell support along with the boxed sets. 3) Donations. Not a get rich quick scheme, I know, but for some enough to get by. Keep in mind that just because the software is open source, doesn't mean you can't charge for the product. You can, but you may have to make the source code available, depending on the license agreement. > Anybody using MySQL and paying for the support? I absolutely hate > using MySQL, but I wouldn't pay for support. There's got to be part of > the puzzle that I'm missing. Why do you hate it? Is it because you are not used to it? Or you don't under stand it? Or there is no GUI for it? There are tons of folks paying for support for MySQL and other open source dbs. Folks like Cox Communications, NASA, Sabre Holdings and Yahoo! probably do. Have a look at http://www.mysql.com/press/release_2004_10.html and http://www.mysql.com/feedback/whitepaper-tco.php (registration required. Free I think) -- Bryan Carbonnell - carbonnb at sympatico.ca Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe producing bigger and better idiots. So far, the Universe is winning. - Mark Mischler. From ssharkins at bellsouth.net Tue Apr 6 18:21:58 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 6 Apr 2004 19:21:58 -0400 Subject: [AccessD] OT: open source In-Reply-To: <4073005B.31158.5C86F3@localhost> Message-ID: <20040406232218.DXHV1763.imf25aec.mail.bellsouth.net@SUSANONE> 1) They sell it. Red Hat is a perfect example. The sell boxed sets, well they used to. They sell server versions of Linux. 2) Selling support. Red Hat again. They sell support along with the boxed sets. 3) Donations. Not a get rich quick scheme, I know, but for some enough to get by. ========Can't imagine this creating huge corporations -- but I'm wrong a lot. ;) > Anybody using MySQL and paying for the support? I absolutely hate > using MySQL, but I wouldn't pay for support. There's got to be part of > the puzzle that I'm missing. Why do you hate it? Is it because you are not used to it? Or you don't under stand it? Or there is no GUI for it? =========All of the above. The documentation is some of the worst around -- it use to be. MS is rather dry, cryptic, and even sometimes wrong, but you can understand it. I could barely read through the MySQL documentation. Mind you it's been a few years so they've probably improved things a lot as they've grown (I would hope). Just personal experience though -- I don't like to work so hard. :) Susan H. From serbach at new.rr.com Tue Apr 6 18:25:48 2004 From: serbach at new.rr.com (Steven W. Erbach) Date: Tue, 6 Apr 2004 18:25:48 -0500 Subject: [AccessD] A2K: Help with Error accessing file Message-ID: <20040406182548.1912343902.serbach@new.rr.com> Brett, >> I followed Drew's suggestion a while back, and picked up a copy of Remote Administrator (www.radmin.com). ?$35 covers the license for 2 machines. ?No monthly charges. ?No headaches. ?Works for us! << I have to admit that I like GoToMyPC for one reason: I can log in from any PC with a browser. I used my 133 MHz 32 MB laptop running Win 95 on Monday at one client's site and I used a Win XP w/s at another client's site today. I had left my host PC in 800 x 600 mode when I left the office. When I fired up GoToMyPC I tried changing the screen resolution while connected...and voila! I switched to 1152 x 864 (my normal resolution). Then I viewed the GoToMyPC window in full screen mode and the only way I could tell I wasn't sitting at my PC was that the color depth is reduced to 8-bit color, so my company logo looked a bit blotchy, and there's the little shade pull thingie hovering at the very top of the screen to remind me where the GoToMyPC menu is. I particularly like tha drawing feature. Pretty snazzy, I calls it. Yeah, $15 a month is a bit much...but logging in from ANYWHERE with ANY PC is pretty durn convenient. Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "If you can't say anything nice, run for President." - Argus Hamilton From rjhjr at cox.net Tue Apr 6 18:31:00 2004 From: rjhjr at cox.net (Bob Hall) Date: Tue, 6 Apr 2004 19:31:00 -0400 Subject: [AccessD] OT: open source In-Reply-To: <20040406145847.NMC1781.imf18aec.mail.bellsouth.net@SUSANONE> References: <20040406145847.NMC1781.imf18aec.mail.bellsouth.net@SUSANONE> Message-ID: <20040406233058.GA38785@kongemord.krig.net> On Tue, Apr 06, 2004 at 10:58:25AM -0400, Susan Harkins wrote: > Someone has asked me "What's in the future for Microsoft and the Open Source > movement? " Susan, It's not a question of whether MS offers open source code. It's a question of how they offer it. Microsoft's Knowledge Base contains gobs and gobs of free, open source code. Lots of independent developers offer free, open source code. Microsoft wouldn't be able to sell as many copies of Access if there weren't so much free, open source VBA code available. Free open source code is part of Microsoft's business model. Open source and proprietary code have always existed side by side, usually without conflict. PHP is an open source scripting language; if you use it on Windows, it was probably compiled on a Microsoft compiler. Unix was originally both proprietary and open source; you couldn't legally posses a copy of the source code without buying a license, but the system was distributed as source code. Sun OS was originally based on BSD. When the name changed to Soleris, it became more System V-like. Either way, it was based on open source code. The TCP/IP stack in every Windows system since Win2K contains mostly FreeBSD code. The TCP/IP stack in NT 4 and earlier was notoriously unreliable. MS ended up replacing it with code that was known to work reliably and was available free. MS won't change its current business model because it makes too much money from the current model. As long as it is primarily a seller of proprietary systems to people who aren't programmers, it has no incentive to offer open source applications. Even if it starts losing market share, it still won't switch unless it goes through an IBM-like transformation and becomes primarily a provider of services. I know of only two cases where completely closed code became open code. Netscape didn't have the resources to do the development of a new version of Netscape Navigator, so it created the Mozilla project and based the new Navigator on Mozilla. Borland split off Interbase, which became Firebird. I'm not really sure why they did it, except that perhaps they thought it would be more valuable as a separate company than it had ever been to Borland. I wouldn't trust any TCO study distributed by MS. They hire "independent" analysts to do the studies, but the studies are so blatently biased that they are worthless. Basically, the issue is long-term savings versus the short term costs of switching. Since long-term savings have to be discounted over time, and the short-term costs are unpredictable, most businesses aren't going to see an advantage to switching any time soon. Adding to Bryan Carbonnell's comments: You can get Linux distros that will run off a CD. That means that you insert the CD, reboot the computer, and you're running Linux. If you like it, it will install on your computer configured exactly as it is on the CD. It's even easier than a Windows install. All the decisions: desktop, window manager, etc., are made for you. Drivers are installed automatically. If you're a Linux geek, you can still make any changes you want, but the non-geeks don't need to know anything to do the installation. I tried it; it worked. Linux will never have a standard GUI, because Linux is really only the kernal. Linus Torvalds doesn't do shell or GUI development. All Linux distros that I know of are Linux kernals with the Gnu shell. Everything else is whatever the distro teams want to include. They're never going to agree on a default window manager. On the other hand, a corporate buyer can specify that all installations use a given window manager and desktop. The immediate threat to MS has been security problems, due to massive numbers of bugs. MS seems to have improved a lot since Gates sent out his famous security e-mail. The three OSs gaining market share right now are Win, Linux, and FreeBSD. These are systems designed to run on cheap Intel chips. The losers are systems designed to run on proprietary chips. Linux and Win are stealing market share from Soleris, not from each other. This may be changing in Europe, where governments are starting to switch to Linux for workstations. The sole reason for switchng seems to be the cost of licenses for thousands of seats. So I would say that Linux is a threat to Windows in the workstation market, not the server market. Bob Hall From rjhjr at cox.net Tue Apr 6 18:36:51 2004 From: rjhjr at cox.net (Bob Hall) Date: Tue, 6 Apr 2004 19:36:51 -0400 Subject: [AccessD] OT: open source In-Reply-To: <20040406232218.DXHV1763.imf25aec.mail.bellsouth.net@SUSANONE> References: <4073005B.31158.5C86F3@localhost> <20040406232218.DXHV1763.imf25aec.mail.bellsouth.net@SUSANONE> Message-ID: <20040406233650.GB38785@kongemord.krig.net> On Tue, Apr 06, 2004 at 07:21:58PM -0400, Susan Harkins wrote: > =========All of the above. The documentation is some of the worst around -- > it use to be. MS is rather dry, cryptic, and even sometimes wrong, but you > can understand it. I could barely read through the MySQL documentation. Mind > you it's been a few years so they've probably improved things a lot as > they've grown (I would hope). Just personal experience though -- I don't > like to work so hard. :) The documentation at the MySQL web site is intended to be the concise up-to-date reference documentation. Aside from the tutorial, it is intended for people who are already experienced with MySQL and need an answer to a specific question. If you need user-friendly documentation, buy "MySQL" by Paul DuBois. I can't recommend it enough. Bob Hall From ssharkins at bellsouth.net Tue Apr 6 18:41:30 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 6 Apr 2004 19:41:30 -0400 Subject: [AccessD] OT: open source In-Reply-To: <20040406233650.GB38785@kongemord.krig.net> Message-ID: <20040406234150.ILUW1775.imf19aec.mail.bellsouth.net@SUSANONE> If you need user-friendly documentation, buy "MySQL" by Paul DuBois. I can't recommend it enough. =======Already have it. :) Susan H. From my.lists at verizon.net Tue Apr 6 18:41:56 2004 From: my.lists at verizon.net (Francisco H Tapia) Date: Tue, 06 Apr 2004 16:41:56 -0700 Subject: [AccessD] OT: open source In-Reply-To: <20040406232218.DXHV1763.imf25aec.mail.bellsouth.net@SUSANONE> References: <20040406232218.DXHV1763.imf25aec.mail.bellsouth.net@SUSANONE> Message-ID: <40734044.4010008@verizon.net> Susan Harkins said the following on 4/6/2004 4:21 PM: >=========All of the above. The documentation is some of the worst around -- >it use to be. MS is rather dry, cryptic, and even sometimes wrong, but you >can understand it. I could barely read through the MySQL documentation. Mind >you it's been a few years so they've probably improved things a lot as >they've grown (I would hope). Just personal experience though -- I don't >like to work so hard. :) > > IF... it's been a few years since you've used/played w/ the documentation how can you declare that " The documentation is some of the worst around". MySql has had a close connectiong w/ Linux and thus their documentation has many examples w/ *nix syntax. And if a documentation is wrong, how is it better? :) I just visited MySql.com and found their available manual. skimming through a chapter it all reads straight forward. However I will say this... they are distributing it in PDF and HTML, and the PDF is no BOL :), however If you just do a search on their site for keywords on things you need say.. "CREATE TABLE" then you get all the proper syntax in a very much BOL type fashion except it's ONLINE not offline, and by skimming their documentation page it looks like you can d/l that as well, tho I don't know if searching is available locally. -- -Francisco From d.dick at uws.edu.au Tue Apr 6 18:50:59 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Wed, 7 Apr 2004 09:50:59 +1000 Subject: [AccessD] A2K: Another Trasnfer Database Q Message-ID: <009501c41c32$030331a0$48619a89@DDICK> Hello all When I try to import or link to a DBF or XLS file in the root directory all is well. When I move the dbf or XLS file to ANY dorectory/folder the import or link fails. Access spits up a long error message with Error Number Saying that the path is invalid. That I should go and check that it exists etc. Of course it exists I just created it for testing as well as using pre-existing directories. The Docmd.Transfer works - why would it fail when I use a folde? Yes I have tried quotes around the path and xls specs Any taker? Many thanks in advance Darren From ssharkins at bellsouth.net Tue Apr 6 18:54:48 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 6 Apr 2004 19:54:48 -0400 Subject: [AccessD] OT: open source In-Reply-To: <40734044.4010008@verizon.net> Message-ID: <20040406235508.ISFT1775.imf19aec.mail.bellsouth.net@SUSANONE> The documentation is some of the worst around". MySql has had a close connectiong w/ Linux and thus their documentation has many examples w/ *nix syntax. And if a documentation is wrong, how is it better? :) ========If you go to a bad dentist, do you go back? Does someone blame you for not going back a few years later, "Geez... Wow, he's better now, you should give him another try?" No way. :) If MySQL lost me just on the lack of a decent interface and sloppy documentation, I'm betting I'm not the only one. Granted, I am lazier than most of you and will dump something faster than most here -- but you guys are unique -- you guys LIKE pain. :) If I'm not working, I'm not making money, so I don't spend a lot of time with stuff that makes working too hard. Lexie came home from Walmart this afternoon with her Pa Pa -- they had a new milkshake maker. It took scissors, grunt power, and a swig of boubon from the freezer just to get the thing out of the package. Then, I had words with the Pa Pa about disappearing once the package came in the door. I feel that way about MySQL. :) That's exactly my problem with MySQL -- well, a while ago. I just visited MySql.com and found their available manual. skimming through a chapter it all reads straight forward. However I will say this... they are distributing it in PDF and HTML, and the PDF is no BOL :), however If you just do a search on their site for keywords on things you need say.. "CREATE TABLE" then you get all the proper syntax in a very much BOL type fashion except it's ONLINE not offline, and by skimming their documentation page it looks like you can d/l that as well, tho I don't know if searching is available locally. ========My main complaint was organization. Even with the search capabilities (OK, everyone already knows I'm search challenged), I found it difficult to find what I was looking for. Invariably it would involve reading much more than I really should've had to read. Now, you can blame me and call me names if you like, but that's not good documentation. But then, I don't like MS either. I can find something on microsoft's site with google faster than I can with a Microsoft search. Go figure. ;) But then, that's why I have a job. Some day I'm going to plug Donna's brain into my computer -- then I'll be able to find everything and you'll all be sorry! ;) Susan H. From cfoust at infostatsystems.com Tue Apr 6 19:25:12 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 6 Apr 2004 17:25:12 -0700 Subject: [AccessD] A2K: Another Trasnfer Database Q Message-ID: Are you deleting the link before you try to relink? I would expect it to fail if you moved the file *anywhere*. That's just the way Access links work. Are you using the entire path and filename in the filename argument? Charlotte Foust -----Original Message----- From: Darren DICK [mailto:d.dick at uws.edu.au] Sent: Tuesday, April 06, 2004 3:51 PM To: AccessD List Subject: [AccessD] A2K: Another Trasnfer Database Q Hello all When I try to import or link to a DBF or XLS file in the root directory all is well. When I move the dbf or XLS file to ANY dorectory/folder the import or link fails. Access spits up a long error message with Error Number Saying that the path is invalid. That I should go and check that it exists etc. Of course it exists I just created it for testing as well as using pre-existing directories. The Docmd.Transfer works - why would it fail when I use a folde? Yes I have tried quotes around the path and xls specs Any taker? Many thanks in advance Darren -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Apr 6 20:19:55 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 6 Apr 2004 21:19:55 -0400 Subject: [AccessD] OT: open source In-Reply-To: <4073B26F.4145.132DAB@localhost> Message-ID: Holy smoke batman. What a read! John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stuart McLachlan Sent: Tuesday, April 06, 2004 5:49 PM To: Access Developers discussion and problemsolving Subject: Re: [AccessD] OT: open source On 6 Apr 2004 at 10:58, Susan Harkins wrote: > Someone has asked me "What's in the future for Microsoft and the Open Source > movement? " > > It's such a huge topic I couldn't really answer -- it's going to take me a > few days to formulate a response. It is a tad off topic for a strictly > Access list -- and I don't want any MS bashing, just because that would be > even more off topic -- but anyone want to make a comment on the subject? I'd > love to hear them -- my initial response to the guy was "Resistance is > futile" but that's only really funny if you're saying it from the MS > perspective. ;) > I think that Peruvian Congressmen Edgar Villanueva Nu?ez summed up the arguments fairly well: http://www.opensource.org/docs/peru_and_ms.php -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From carbonnb at sympatico.ca Tue Apr 6 21:21:11 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Tue, 06 Apr 2004 22:21:11 -0400 Subject: [AccessD] OT: open source In-Reply-To: <20040406230707.HUEZ1775.imf19aec.mail.bellsouth.net@SUSANONE> References: Message-ID: <40732D57.2466.11B1B7@localhost> On 6 Apr 2004 at 19:06, Susan Harkins wrote: > ====Right, I understand that and I don't mean to confuse the issue, > but sharing intellectual property in this way is an odd concept to me. What part is odd? We freely share our intelectual property here everyday. -- Bryan Carbonnell - carbonnb at sympatico.ca An unkind remark is like a killing frost. No matter how much it warms up later, the damage remains. From carbonnb at sympatico.ca Tue Apr 6 21:21:10 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Tue, 06 Apr 2004 22:21:10 -0400 Subject: [AccessD] OT: open source In-Reply-To: <40733489.2040700@verizon.net> References: Message-ID: <40732D56.16589.11B167@localhost> On 6 Apr 2004 at 15:51, Francisco H Tapia wrote: > which the various distros have improved their desktop products. I > also must concur that a standardized GUI would be the killer blow that > would/will ultimately drive hords of users away from Microsoft. I I actually don't think that a standard GUI alone will push people away from MS. It *has* to be packaged with more user friendlyness. I'm no dummy, but there are days that make me go "Why the did I ever think looking at Linux was a good idea" Just because of the way Slackware based distros are different from RedHat based distros which are different from Debian based distros. > base my opinion off such distros like RedHat or even the newest one > I've seen (Knopixx). Wich is an OS bootable completely off the CD. Knoppix is COOL!!!! > With High end products such as ThunderBird and FireFox and even some > of the OpenOffice products, Open Source products are reaching maturity > levels that are acceptable to a wider population. Some of the Maturity of the apps is what will make Open Source software more viable in the long run. If it can compete feature for feature with the MS version, or at least the features needed, why drop the cash on the MS version? > A greater risk than vulnerabilities in MS software is not so much the > security holes, but the COST of the software. You have many college > students that simply can't afford to go w/ MS Office so they use > OpenOffice. While not all do, the trend is steadily climing, and w/ > the avalability getting better and the quaility reaching acceptace > from the general public, this will help push more OpenSource software > into the main stream. I think that cost will play a part, I don't think that it will play a large part overall. Now, I'm talking about corporate acceptance and not home use. For the home user, I think that it will start to play a part in the decision making, more than it would a corporate IT department. And that is one of the imortant distinctions that needs to be made. Home users will look at the out of pocket costs. Corporate users will look at the overall costs and the availability of Enterprise level software. -- Bryan Carbonnell - carbonnb at sympatico.ca If you can't be a good example, then you'll just have to be a horrible warning. From carbonnb at sympatico.ca Tue Apr 6 21:31:21 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Tue, 06 Apr 2004 22:31:21 -0400 Subject: [AccessD] OT: open source In-Reply-To: <20040406232218.DXHV1763.imf25aec.mail.bellsouth.net@SUSANONE> References: <4073005B.31158.5C86F3@localhost> Message-ID: <40732FB9.25964.1B0413@localhost> On 6 Apr 2004 at 19:21, Susan Harkins wrote: > ========Can't imagine this creating huge corporations -- but I'm wrong > a lot. ;) Red Hat is making money. According to their website they have $328 million in the bank. Suse was just bought for $210 million, and they are the #2 Linux distro. Not on the same level as MS, but not bad for companies that are less than 10 years old. > > Why do you hate it? Is it because you are not used to it? Or you don't > > under stand it? Or there is no GUI for it? > =========All of the above. The documentation is some of the worst > around -- it use to be. MS is rather dry, cryptic, and even sometimes > wrong, but you can understand it. I could barely read through the > MySQL documentation. Mind you it's been a few years so they've > probably improved things a lot as they've grown (I would hope). Just > personal experience though -- I don't like to work so hard. :) I actually don't find their docs that bad. I actually use them as a SQL reference. How to structure the specific parts of a SQL statement. As for the GUI, they have recently released a GUI that is better than anything that has come before it for working with MySQL. Plus you can always work with it using Access :) -- Bryan Carbonnell - carbonnb at sympatico.ca I don't approve of political jokes. I've seen too many of them get elected. From carbonnb at sympatico.ca Tue Apr 6 21:36:26 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Tue, 06 Apr 2004 22:36:26 -0400 Subject: [AccessD] OT: open source In-Reply-To: Message-ID: <407330EA.19233.1FAA39@localhost> On 6 Apr 2004 at 17:46, Bryan Carbonnell wrote: > Will MS need to make their stuff Open Source to survive? I don't think > so. Will MS Open Source their software anyway? I really doubt it. > Maybe bits and pieces, but the whole thing, No way. Will MS > incorporate Open Source into their software? As far as I understand, No sooner do I say they probably won't, I find out they went ahead and did http://news.com.com/2100-7344_3-5185549.html?tag=nefd.top -- Bryan Carbonnell - carbonnb at sympatico.ca Ability is what you're capable of doing. Motivation determines what you do. Attitude determines how well you do it. From carbonnb at sympatico.ca Tue Apr 6 21:46:34 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Tue, 06 Apr 2004 22:46:34 -0400 Subject: [AccessD] OT: open source In-Reply-To: <20040406233058.GA38785@kongemord.krig.net> References: <20040406145847.NMC1781.imf18aec.mail.bellsouth.net@SUSANONE> Message-ID: <4073334A.9454.28F0F8@localhost> On 6 Apr 2004 at 19:31, Bob Hall wrote: > Linux will never have a standard GUI, because Linux is really only the > kernal. Linus Torvalds doesn't do shell or GUI development. All Linux True enough. I guess I should have said that the various Linux Distros need to standardise on a desktop. KDE or Gnome. > Everything else is whatever the distro teams want to include. They're > never going to agree on a default window manager. On the other hand, a >From what I understand the windows manager doesn't need to be standardised, ithe the desktop environment. There is the XServer, then there is the windows manager and then finally the desktop environment. > The immediate threat to MS has been security problems, due to massive > numbers of bugs. MS seems to have improved a lot since Gates sent out > his famous security e-mail. The three OSs gaining market share right I actually don't think that security is high on most peoples list. Otherwise why is my Win2K desktop at work only approved to be at SP1? I have said screw it and installed SP4 myself. > seats. So I would say that Linux is a threat to Windows in the > workstation market, not the server market. The problem is that Linux is not making the inroads on the desktop, but in the server room right now. -- Bryan Carbonnell - carbonnb at sympatico.ca I can only please one person per day. Today is not your day. Tomorrow is not looking good either. From ssharkins at bellsouth.net Tue Apr 6 21:52:19 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 6 Apr 2004 22:52:19 -0400 Subject: [AccessD] OT: open source In-Reply-To: <40732D57.2466.11B1B7@localhost> Message-ID: <20040407025239.GWBY1763.imf25aec.mail.bellsouth.net@SUSANONE> Do you make your living from this list? If all of your clients or your boss suddenly said "Keep it up, you're doing great, but btw, you're working for free now, aren't you?" Or, how about, "And show this new guy everything you know so we don't need you anymore." -- would that be OK? Susan H. On 6 Apr 2004 at 19:06, Susan Harkins wrote: > ====Right, I understand that and I don't mean to confuse the issue, > but sharing intellectual property in this way is an odd concept to me. What part is odd? We freely share our intelectual property here everyday. From ssharkins at bellsouth.net Tue Apr 6 21:53:50 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 6 Apr 2004 22:53:50 -0400 Subject: [AccessD] OT: open source In-Reply-To: <40732FB9.25964.1B0413@localhost> Message-ID: <20040407025410.GWLR1763.imf25aec.mail.bellsouth.net@SUSANONE> Red Hat is making money. According to their website they have $328 million in the bank. Suse was just bought for $210 million, and they are the #2 Linux distro. Not on the same level as MS, but not bad for companies that are less than 10 years old. ================No, certainly -- I'd have no trouble taking that check to the bank. :) Susan H. From d.dick at uws.edu.au Tue Apr 6 21:58:45 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Wed, 7 Apr 2004 12:58:45 +1000 Subject: [AccessD] A2K: Another Trasnfer Database Q References: Message-ID: <00d601c41c4c$3e2dd5e0$48619a89@DDICK> Hi Charlotte Yes I am deleting the link before I start using Docmd.DeleteObject blah blah Re the file being moved any where, I can move the file anywhere and 'redo' the link using the new path, so long as the path is in the root directory (C:\) IE I can change the name of the file from SIDS.dbf to S_ids.dbf or whatever, but it must stay in the root directory. If I move it to "any" directory other than the root directory (C:\) it fails eg C:\ABC\SIDS.dbf I dunno ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Wednesday, April 07, 2004 10:25 AM Subject: RE: [AccessD] A2K: Another Trasnfer Database Q > Are you deleting the link before you try to relink? I would expect it > to fail if you moved the file *anywhere*. That's just the way Access > links work. Are you using the entire path and filename in the filename > argument? > > Charlotte Foust > > -----Original Message----- > From: Darren DICK [mailto:d.dick at uws.edu.au] > Sent: Tuesday, April 06, 2004 3:51 PM > To: AccessD List > Subject: [AccessD] A2K: Another Trasnfer Database Q > > > Hello all > When I try to import or link to a DBF or XLS file in the root directory > all is well. When I move the dbf or XLS file to ANY dorectory/folder the > import or link fails. Access spits up a long error message with Error > Number Saying that the path is invalid. That I should go and check that > it exists etc. Of course it exists I just created it for testing as well > as using pre-existing directories. The Docmd.Transfer works - why would > it fail when I use a folde? Yes I have tried quotes around the path and > xls specs > > Any taker? > > 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 carbonnb at sympatico.ca Tue Apr 6 22:03:29 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Tue, 06 Apr 2004 23:03:29 -0400 Subject: [AccessD] OT: open source In-Reply-To: <20040407025239.GWBY1763.imf25aec.mail.bellsouth.net@SUSANONE> References: <40732D57.2466.11B1B7@localhost> Message-ID: <40733741.18413.386F7E@localhost> On 6 Apr 2004 at 22:52, Susan Harkins wrote: > Do you make your living from this list? If all of your clients or your > boss suddenly said "Keep it up, you're doing great, but btw, you're > working for free now, aren't you?" Or, how about, "And show this new > guy everything you know so we don't need you anymore." -- would that > be OK? Yea, but the thing is, open source doesn't HAVE to be free, as in no cost, but free as in source code availability. I think that is part that is the hard part to understand, or at least grasp. Free doesn't necissicarily mean no cost. Here is a page that may help sort things out. http://www.gnu.org/philosophy/selling.html If not, then there are a ton of links here: http://www.gnu.org/philosophy/philosophy.html -- Bryan Carbonnell - carbonnb at sympatico.ca When everything is coming your way......you're in the wrong lane. From ssharkins at bellsouth.net Tue Apr 6 22:13:06 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 6 Apr 2004 23:13:06 -0400 Subject: [AccessD] OT: open source In-Reply-To: <40733741.18413.386F7E@localhost> Message-ID: <20040407031326.HBWR1763.imf25aec.mail.bellsouth.net@SUSANONE> Yea, but the thing is, open source doesn't HAVE to be free, as in no cost, but free as in source code availability. I think that is part that is the hard part to understand, or at least grasp. Free doesn't necissicarily mean no cost. =============Perhaps I do make too much of it -- you could be right. It's hard to apply it to my own work -- it doesn't really relate. I'll repeat myself -- sometimes that helps. :) I pay the hair guy $75 to color my gray hair. I pay it because he's good -- hair looks natural and healthy. He doesn't sell me the coloring and give me instructions so I can do it myself. Now, I realize that doesn't really relate in the same way, but it's the best I can come up with. :) Susan H. From jwcolby at colbyconsulting.com Wed Apr 7 00:03:23 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 7 Apr 2004 01:03:23 -0400 Subject: [AccessD] How do I Message-ID: Having a bit of a problem tonight. Given #5/11/2000 3:20:00 PM# How do I get rid of the date portion and return just the time? I tried subtracting the clng(ThatDate) from the whole... sometimes worked but sometimes gave me bad time (but never any date portion) I tried dateadd("d",-clng(ThatDate),ThatDate)... That always gives me the correct time but 12/29/1899 as the date portion if the time is in the PM. I have a bunch of times that include the date and I need to strip the date off the time. John W. Colby www.ColbyConsulting.com From stuart at lexacorp.com.pg Wed Apr 7 00:06:09 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 07 Apr 2004 15:06:09 +1000 Subject: [AccessD] OT: open source In-Reply-To: <20040407025239.GWBY1763.imf25aec.mail.bellsouth.net@SUSANONE> References: <40732D57.2466.11B1B7@localhost> Message-ID: <407418E1.3626.1A35D4C@localhost> On 6 Apr 2004 at 22:52, Susan Harkins wrote: > If all of your clients or your boss > suddenly said "Keep it up, you're doing great, but btw, you're working for > free now, aren't you?" No. I charge for my time in developing/supporting software. They can find someone cheaper than me, but they won't find anyone better than me at what I do and they know it. So they are quite happy to pay for my services although there is nothing "secret" about what I am doing. > Or, how about, "And show this new guy everything you > know so we don't need you anymore." -- would that be OK? > Yep, not a problem. It took me 20 years to learn. In 20 years time, I'll be more than ready to hand over the reins to him. In the meantime, my clients pay me for that experience. I also make sure that my clients have the source for anything I develop. If anything happens to me, they can get someone else to maintain/continue to develop it. Until that something happens, they keep me maintaining/developing it because of the skills I have. If I went the MS way, what would my clients do if I was hit by a bus tomorrow? -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From michael.mattys at adelphia.net Wed Apr 7 00:13:13 2004 From: michael.mattys at adelphia.net (Michael R Mattys) Date: Wed, 7 Apr 2004 01:13:13 -0400 Subject: [AccessD] How do I References: Message-ID: <009001c41c5f$07e62290$6401a8c0@default> Hi John, If it weren't for those # #'s, I'd say Format("5/11/2000 3:20:00 PM","Long Time") ---- Michael R. Mattys (724) 942-3437 Mattys MapLib for Microsoft MapPoint http://www.mattysconsulting.com ----- Original Message ----- From: "John W. Colby" To: "AccessD" Sent: Wednesday, April 07, 2004 1:03 AM Subject: [AccessD] How do I > Having a bit of a problem tonight. > > Given #5/11/2000 3:20:00 PM# > > How do I get rid of the date portion and return just the time? > > I tried subtracting the clng(ThatDate) from the whole... sometimes worked > but sometimes gave me bad time (but never any date portion) > > I tried dateadd("d",-clng(ThatDate),ThatDate)... That always gives me the > correct time but 12/29/1899 as the date portion if the time is in the PM. > > I have a bunch of times that include the date and I need to strip the date > off the time. > > 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 stuart at lexacorp.com.pg Wed Apr 7 00:21:19 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 07 Apr 2004 15:21:19 +1000 Subject: [AccessD] How do I In-Reply-To: Message-ID: <40741C6F.7060.1B13EF3@localhost> On 7 Apr 2004 at 1:03, John W. Colby wrote: > Having a bit of a problem tonight. > > Given #5/11/2000 3:20:00 PM# > > How do I get rid of the date portion and return just the time? > CLng rounds rather than truncates so myDate - CLng(mydate) will return a negative value if it is after midday. Use Int() instead myDate - Int(myDate) retuns the fractional part (ie the time) -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From jmhla at earthlink.net Wed Apr 7 01:25:46 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Tue, 6 Apr 2004 23:25:46 -0700 Subject: [AccessD] How do I In-Reply-To: Message-ID: <001501c41c69$2cf3de60$6501a8c0@delllaptop> John, Two thoughts. 1. Can you count back from the right until you find the blank and isolate the time? 2. Can you convert the current format to a decimal number 12345.12345 and then convert the decimal to time. JOE HECHT LOS ANGELES CA -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Tuesday, April 06, 2004 10:03 PM To: AccessD Subject: [AccessD] How do I Having a bit of a problem tonight. Given c How do I get rid of the date portion and return just the time? I tried subtracting the clng(ThatDate) from the whole... sometimes worked but sometimes gave me bad time (but never any date portion) I tried dateadd("d",-clng(ThatDate),ThatDate)... That always gives me the correct time but 12/29/1899 as the date portion if the time is in the PM. I have a bunch of times that include the date and I need to strip the date off the time. 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 andy at minstersystems.co.uk Wed Apr 7 02:13:43 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 7 Apr 2004 08:13:43 +0100 Subject: [AccessD] A2K: Another Trasnfer Database Q In-Reply-To: <00d601c41c4c$3e2dd5e0$48619a89@DDICK> Message-ID: <001001c41c6f$dc3e6240$b274d0d5@minster33c3r25> Darren What's the code? Have you tried specifying the folder in the 3rd parameter, then just the dbf name in the 5th? -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK > Sent: 07 April 2004 03:59 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] A2K: Another Trasnfer Database Q > > > Hi Charlotte > Yes I am deleting the link before I start using > Docmd.DeleteObject blah blah > > Re the file being moved any where, I can move the file > anywhere and 'redo' the > link using the new path, so long as the path is in the root > directory (C:\) IE I can change the name of the file from > SIDS.dbf to S_ids.dbf or whatever, but it must > stay in the root directory. If I move it to "any" directory > other than the root directory (C:\) it fails eg > C:\ABC\SIDS.dbf I dunno > > > ----- Original Message ----- > From: "Charlotte Foust" > To: "Access Developers discussion and problem solving" > > Sent: Wednesday, April 07, 2004 10:25 AM > Subject: RE: [AccessD] A2K: Another Trasnfer Database Q > > > > Are you deleting the link before you try to relink? I > would expect it > > to fail if you moved the file *anywhere*. That's just the > way Access > > links work. Are you using the entire path and filename in the > > filename argument? > > > > Charlotte Foust > > > > -----Original Message----- > > From: Darren DICK [mailto:d.dick at uws.edu.au] > > Sent: Tuesday, April 06, 2004 3:51 PM > > To: AccessD List > > Subject: [AccessD] A2K: Another Trasnfer Database Q > > > > > > Hello all > > When I try to import or link to a DBF or XLS file in the root > > directory all is well. When I move the dbf or XLS file to ANY > > dorectory/folder the import or link fails. Access spits up a long > > error message with Error Number Saying that the path is > invalid. That > > I should go and check that it exists etc. Of course it > exists I just > > created it for testing as well as using pre-existing > directories. The > > Docmd.Transfer works - why would it fail when I use a folde? Yes I > > have tried quotes around the path and xls specs > > > > Any taker? > > > > 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 > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > From jwcolby at colbyconsulting.com Wed Apr 7 06:18:28 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 7 Apr 2004 07:18:28 -0400 Subject: [AccessD] How do I In-Reply-To: <40741C6F.7060.1B13EF3@localhost> Message-ID: Interesting. I tried that in a query and got #error for values. I'll look at it again. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stuart McLachlan Sent: Wednesday, April 07, 2004 1:21 AM To: Access Developers discussion and problemsolving Subject: Re: [AccessD] How do I On 7 Apr 2004 at 1:03, John W. Colby wrote: > Having a bit of a problem tonight. > > Given #5/11/2000 3:20:00 PM# > > How do I get rid of the date portion and return just the time? > CLng rounds rather than truncates so myDate - CLng(mydate) will return a negative value if it is after midday. Use Int() instead myDate - Int(myDate) retuns the fractional part (ie the time) -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Wed Apr 7 06:35:43 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Wed, 7 Apr 2004 07:35:43 -0400 Subject: [AccessD] OT: open source In-Reply-To: <407418E1.3626.1A35D4C@localhost> Message-ID: <20040407113603.ZBNV1763.imf21aec.mail.bellsouth.net@SUSANONE> If I went the MS way, what would my clients do if I was hit by a bus tomorrow? ============That's a good point, but to me, it's kind of like expecting a chef to give you his recipe. Of course, if the market eventually forces it, that's OK with me. I'm not against it. Susan H. From Bryan_Carbonnell at cbc.ca Wed Apr 7 06:08:28 2004 From: Bryan_Carbonnell at cbc.ca (Bryan Carbonnell) Date: Wed, 07 Apr 2004 07:08:28 -0400 Subject: [AccessD] OT: open source Message-ID: I'm not sure a service can be related to a product, but lt's try :) The hair dresser charges you $75 to do your hair colouring. He aslo goes to the local Seniors home and colours the hair of the elderly ladies there for free because they can't get around as easily as you can. He is volunteering his time to do it. Why does he do it when he can use that time to make more money? He's a nice guy, it was the home that home that took care of his elderly parents, he want's to look good and using it as an advertising ploy, it's the right thing to do? Any of these, all or these none of these? Who knows, but he does it anyway. Now apply this to software. Why do companies, and people, make their software open source? They have a philosophical belief that it should be available, it will help a certain population/sector, it showcases their other products, it showcases their talents. Any of these, all of these, none of these? Who knows but it happens. Why did Lembit donate code to the BEU? Why did Andy and Reuben start to work on it? Why did I help in the end? I can't speak for the others, but I did it because I believe that it may help DBA become more visible by producing a world class product, which will make this be *THE* place to be, not that it isn't that already :). I also like pushing the limits of my knowledge and talents, and the BEU certainly did that :) Plus it is also a tool that can, and has helped, other developers, and I like helping folks. I guess the point I'm trying to make is that for every dozen different open source applications, there are 2 dozen different reasons why the author(s) decided to make it open source. None are right, none are worng, they just are. I don't think that this really captures the point I was going after, but it's the best I can do to explain it at 6:30 in the morning :) Bryan Carbonnell bryan_carbonnell at cbc.ca >>> ssharkins at bellsouth.net 04/06/04 11:13PM >>> Yea, but the thing is, open source doesn't HAVE to be free, as in no cost, but free as in source code availability. I think that is part that is the hard part to understand, or at least grasp. Free doesn't necissicarily mean no cost. =============Perhaps I do make too much of it -- you could be right. It's hard to apply it to my own work -- it doesn't really relate. I'll repeat myself -- sometimes that helps. :) I pay the hair guy $75 to color my gray hair. I pay it because he's good -- hair looks natural and healthy. He doesn't sell me the coloring and give me instructions so I can do it myself. Now, I realize that doesn't really relate in the same way, but it's the best I can come up with. :) Susan H. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Wed Apr 7 07:36:28 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Wed, 7 Apr 2004 08:36:28 -0400 Subject: [AccessD] OT: open source In-Reply-To: Message-ID: <20040407123648.ROOI1775.imf19aec.mail.bellsouth.net@SUSANONE> I guess the point I'm trying to make is that for every dozen different open source applications, there are 2 dozen different reasons why the author(s) decided to make it open source. None are right, none are worng, they just are. I don't think that this really captures the point I was going after, but it's the best I can do to explain it at 6:30 in the morning :) ==========The fact that you're up and able to type is impressive enough. :) I understand open source within the context you're speaking -- I don't understand it within a major corporation like MS. But what you're talking about is really just a natural evolution of freeware/shareware... You guys offer your stuff because you want to, not because you're forced to. As for the hair anology, you're comparing open source to charity, community good will, or philantropy. Developers have been giving it away for free since ... since always -- that's nothing new. Competitors and even governments forcing open source from other major producers isn't the same thing. I'm talking about the market forces, and government manipulation, at play right now that are forcing MS to take it all off. :) To me, producers and governments complaining about MS not going open code is a red herring -- and it's difficult to even apply the same logic to other industries. Even the recipe analogy doesn't really work -- but most intellectual property is protected to a degree. The question I guess -- after talking this through is does code NEED to be protected. I mean, realistically, what would I do with it even if I had it? :) I guess what concerns me the most about exposing code is theft -- not so much of the actual code but of the ideas in the code, but there again, can that really be protected anyway? I don't know. I've developed a really good chocolate chip cookie recipe using Splenda and a good butter substitute. If a company took that recipe and turned it into a best seller and didn't credit or pay me for it, I'd be pis*ed. Hope that analogy finally makes my position clearer. I will readily admit that I simply do not have the expertise to adequately do it justice, and if it's going to happen, it will. But, as I'm fond of saying, I don't get it. :) However, as long as whatever happens comes about through pure market forces, I'm OK with it -- have to be, that's the way it works. :) Susan H. From d.dick at uws.edu.au Wed Apr 7 08:02:20 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Wed, 7 Apr 2004 23:02:20 +1000 Subject: [AccessD] A2K: Another Transfer Database Q SOLVED Answer included References: <001001c41c6f$dc3e6240$b274d0d5@minster33c3r25> Message-ID: <02e301c41ca0$91018ec0$42669a89@DDICK> Hi Andy et al I figured it out phew... Here is the code if anyone is interested It allows for a single path to be stored then you can and import or link to My.txtControlThatHoldsThePath may have the following as its value EG C:\My Documents\My Folder\Inane Name\XYZ.dbf First Create a new module and paste this into it 'determine the last backslash in a path then return file name from that path 'Code by Seth Galitzer Public Function basParseFileName(strPath As String) As String Dim intI As Integer ' Current starting position Dim intL As Integer ' Last starting position intI = InStr(strPath, "\") ' Initialize the starting position While intI > 0 ' Repeat until no more "\" chars intL = intI ' Save the last starting position intI = InStr(intI + 1, strPath, "\") ' Get the next starting position Wend basParseFileName = Mid(strPath, intL + 1) ' Chop off the filename End Function The in the button you want to perform the import or link with Private Sub SomeButton_Click() Dim intX As Integer intX = Len(basParseFileName(Me.txtControlThatHoldsThePath)) DoCmd.TransferDatabase acImport, "dBase IV", Mid(Me.txtControlThatHoldsThePath, 1, Len(Me.txtControlThatHoldsThePath) - intX - 1), acTable, basParseFileName(Me.txtControlThatHoldsThePath), "tblStudents", False 'The trick is in the "-1" just after the intX parameter in the Transfer Database syntax 'The Transfer database monster wants to see the full folder path in the 3rd parameter minus the actual filename 'and wants to see the file name only in the 5th parameter. So far no problem 'BUT!!! - the trick is Access doesn't wanna see the last backslash either before the file name: Go figure??? 'So assume you have a folder and file name like C:\My Documents\My Folder\Inane Name\XYZ.dbf 'Access is working with C:\My Documents\My Folder\Inane NameXYZ.dbf. 'Note the missing last backslash 'Access obviously compensates for it somewhere internally end sub Hope this helps someone ----- Original Message ----- From: "Andy Lacey" To: "'Access Developers discussion and problem solving'" Sent: Wednesday, April 07, 2004 5:13 PM Subject: RE: [AccessD] A2K: Another Trasnfer Database Q > Darren > What's the code? Have you tried specifying the folder in the 3rd parameter, > then just the dbf name in the 5th? > > -- Andy Lacey > http://www.minstersystems.co.uk > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darren DICK > > Sent: 07 April 2004 03:59 > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] A2K: Another Trasnfer Database Q > > > > > > Hi Charlotte > > Yes I am deleting the link before I start using > > Docmd.DeleteObject blah blah > > > > Re the file being moved any where, I can move the file > > anywhere and 'redo' the > > link using the new path, so long as the path is in the root > > directory (C:\) IE I can change the name of the file from > > SIDS.dbf to S_ids.dbf or whatever, but it must > > stay in the root directory. If I move it to "any" directory > > other than the root directory (C:\) it fails eg > > C:\ABC\SIDS.dbf I dunno > > > > > > ----- Original Message ----- > > From: "Charlotte Foust" > > To: "Access Developers discussion and problem solving" > > > > Sent: Wednesday, April 07, 2004 10:25 AM > > Subject: RE: [AccessD] A2K: Another Trasnfer Database Q > > > > > > > Are you deleting the link before you try to relink? I > > would expect it > > > to fail if you moved the file *anywhere*. That's just the > > way Access > > > links work. Are you using the entire path and filename in the > > > filename argument? > > > > > > Charlotte Foust > > > > > > -----Original Message----- > > > From: Darren DICK [mailto:d.dick at uws.edu.au] > > > Sent: Tuesday, April 06, 2004 3:51 PM > > > To: AccessD List > > > Subject: [AccessD] A2K: Another Trasnfer Database Q > > > > > > > > > Hello all > > > When I try to import or link to a DBF or XLS file in the root > > > directory all is well. When I move the dbf or XLS file to ANY > > > dorectory/folder the import or link fails. Access spits up a long > > > error message with Error Number Saying that the path is > > invalid. That > > > I should go and check that it exists etc. Of course it > > exists I just > > > created it for testing as well as using pre-existing > > directories. The > > > Docmd.Transfer works - why would it fail when I use a folde? Yes I > > > have tried quotes around the path and xls specs > > > > > > Any taker? > > > > > > 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 > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/a> ccessd > > 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 Wed Apr 7 08:05:14 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Wed, 7 Apr 2004 09:05:14 -0400 Subject: [AccessD] How do I In-Reply-To: Message-ID: John, In terms of the field value, you can't. Date/Time fields are doubles with the date/time stored as: Date.Time Any value to the left of the decimal represents a date and that includes 0, which hands you back the base date of 12/29/1899. If you want time alone, you need to store the value in a decimal field or use a scaled integer and use Time functions to translate it to a time as needed. Jim Dettman (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Wednesday, April 07, 2004 1:03 AM To: AccessD Subject: [AccessD] How do I Having a bit of a problem tonight. Given #5/11/2000 3:20:00 PM# How do I get rid of the date portion and return just the time? I tried subtracting the clng(ThatDate) from the whole... sometimes worked but sometimes gave me bad time (but never any date portion) I tried dateadd("d",-clng(ThatDate),ThatDate)... That always gives me the correct time but 12/29/1899 as the date portion if the time is in the PM. I have a bunch of times that include the date and I need to strip the date off the time. 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 jimdettman at earthlink.net Wed Apr 7 08:06:56 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Wed, 7 Apr 2004 09:06:56 -0400 Subject: [AccessD] How do I In-Reply-To: Message-ID: John, One thing you can do is continue to use the date/time field, but just ignore the date (set them all to 0) and use Format$() for displaying the time only. Jim Dettman (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Wednesday, April 07, 2004 1:03 AM To: AccessD Subject: [AccessD] How do I Having a bit of a problem tonight. Given #5/11/2000 3:20:00 PM# How do I get rid of the date portion and return just the time? I tried subtracting the clng(ThatDate) from the whole... sometimes worked but sometimes gave me bad time (but never any date portion) I tried dateadd("d",-clng(ThatDate),ThatDate)... That always gives me the correct time but 12/29/1899 as the date portion if the time is in the PM. I have a bunch of times that include the date and I need to strip the date off the time. 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 pnl1 at psu.edu Wed Apr 7 08:22:07 2004 From: pnl1 at psu.edu (Paul Liadis) Date: Wed, 07 Apr 2004 09:22:07 -0400 Subject: [AccessD] Query Truncating Data In-Reply-To: <20040407025410.GWLR1763.imf25aec.mail.bellsouth.net@SUSANO NE> References: <40732FB9.25964.1B0413@localhost> Message-ID: <5.1.0.14.2.20040407091847.03e259d0@mail.psu.edu> Hello, I am having a problem with a query in which my data is being truncated to 255 characters. My query simply selects from a table (linked from SQL Server), but doesn't return all the data in one of the columns (defined as memo in Access). The data is being truncated even though it exists in the table. Has anyone experienced this? Thanks, =============================================== Paul Liadis Senior Applications Programmer/Analyst University Budget Office Pennsylvania State University From ranthony at wrsystems.com Wed Apr 7 08:33:13 2004 From: ranthony at wrsystems.com (ranthony at wrsystems.com) Date: Wed, 7 Apr 2004 09:33:13 -0400 Subject: [AccessD] Query Truncating Data Message-ID: <5F21A4E8B8DD734992EF9E70AC9D3064128B5A@mail2.wrsystems.com> See M$ KB 170218. A workaround I used in an older program is as follows (this is A97): 'The following lines of code is a workaround provided by MS due to W97 inability to assign the value of a variable containing 'more than 255 characters. This is obviously a non-starter, as the fields indicated are memo fields in Access. 'The formfield is populated with asterisks as a placemark, the document then has to be unprotected, then the contents are 'dumped into the formfield. After that, the asteriks are deleted, and the protection for the document is reinstated. 'The if statement is so this processing effort won't be invoked unless the field is not null and contains more than 255 characters. ' If Not IsNull(Forms!frmstrinput!txtBrief) And Len(Forms!frmstrinput!txtBrief) > 255 Then 'set Description form field to a unique string. WordObj.Documents(1).FormFields("Description").Result = "****" If WordObj.Documents(1).ProtectionType <> wdNoProtection Then WordObj.Documents(1).Unprotect Password:="bob" End If WordObj.Selection.Goto what:=wdGoToBookmark, Name:="Description" WordObj.Selection.Collapse WordObj.Selection.MoveRight wdCharacter, 1 WordObj.Selection.TypeText (Forms!frmstrinput!txtBrief) WordObj.Selection.Goto wdGoToBookmark, , , "description" 'Remove unique characters from Description form field With WordObj.Selection.Find .Execute findtext:="*", replacewith:="", replace:=wdReplaceAll End With WordObj.Documents(1).Protect Password:="bob", noreset:=True, Type:=wdAllowOnlyFormFields Else WordObj.Documents(1).FormFields("Description").Result = IIf(IsNull(Forms!frmstrinput!txtBrief), "", (Forms!frmstrinput!txtBrief)) End If -----Original Message----- From: Paul Liadis [mailto:pnl1 at psu.edu] Sent: Wednesday, April 07, 2004 9:22 AM To: Access Developers discussion and problem solving Subject: [AccessD] Query Truncating Data Hello, I am having a problem with a query in which my data is being truncated to 255 characters. My query simply selects from a table (linked from SQL Server), but doesn't return all the data in one of the columns (defined as memo in Access). The data is being truncated even though it exists in the table. Has anyone experienced this? Thanks, =============================================== Paul Liadis Senior Applications Programmer/Analyst University Budget Office Pennsylvania State University -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Wed Apr 7 08:56:04 2004 From: martyconnelly at shaw.ca (martyconnelly at shaw.ca) Date: Wed, 7 Apr 2004 09:56:04 -0400 Subject: [AccessD] Phone number Message-ID: <200404071356.i37Du0B06129@databaseadvisors.com> Please notice the attached phone number. +++ X-Attachment-Type: document +++ X-Attachment-Status: no virus found +++ Powered by the new F-Secure OnlineAntiVirus +++ Visit us: www.f-secure.com From HollisVJ at pgdp.usec.com Wed Apr 7 09:15:46 2004 From: HollisVJ at pgdp.usec.com (Hollis,Virginia) Date: Wed, 07 Apr 2004 09:15:46 -0500 Subject: [AccessD] Emails Problems Message-ID: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D55C@cntexchange.pgdp.usec.com> Has anyone been receiving strange emails with attachments? I have been getting emails for the past 2 days with txt attachments. I just received one that said it was from AccessD. Virginia From carbonnb at sympatico.ca Wed Apr 7 09:23:19 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Wed, 7 Apr 2004 10:23:19 -0400 Subject: [AccessD] Emails Problems Message-ID: <20040407142319.ULSP19852.tomts15-srv.bellnexxia.net@mxmta.bellnexxia.net> > From: "Hollis,Virginia" > Has anyone been receiving strange emails with attachments? I have been > getting emails for the past 2 days with txt attachments. I just received one > that said it was from AccessD. The one that just came to the list "from" Marty Connelly appears to have started out life as a virus, but the list software stripped out the payload, so no worries there. It looks like it came from someone that uses a Bell South ASDL connection as their ISP. So folks that use Bell South, please run a full virus scan. One of you may be infected with a nasty :( This is one of the new breed of spoofing e-mails that spoof the from line of the e-mail. As for the others, probalby the same knid of deal, but you mail server is taking care of the virii before it hits your desktop. -- Bryan Carbonnell - carbonnb at sympatico.ca Unfortunately common sense isn't so common! From andy at minstersystems.co.uk Wed Apr 7 09:23:33 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 7 Apr 2004 15:23:33 +0100 Subject: [AccessD] Emails Problems In-Reply-To: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D55C@cntexchange.pgdp.usec.com> Message-ID: <002201c41cab$e8d0a630$b274d0d5@minster33c3r25> Yea, me too. Had one supposedly from JC and another "from" Jim Dettman. Don't know what's generating them. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Hollis,Virginia > Sent: 07 April 2004 15:16 > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Emails Problems > > > Has anyone been receiving strange emails with attachments? I > have been getting emails for the past 2 days with txt > attachments. I just received one that said it was from AccessD. > > Virginia > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > From d.dick at uws.edu.au Wed Apr 7 09:26:05 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Thu, 8 Apr 2004 00:26:05 +1000 Subject: [AccessD] A2K: Change Data Type Message-ID: <031d01c41cac$44219260$42669a89@DDICK> Hello all The help wasn't Can anyone point me in the right direction for code ADO or DAO on changing the data type for an existing field in an existing table? Many thanks Darren From ranthony at wrsystems.com Wed Apr 7 09:27:56 2004 From: ranthony at wrsystems.com (ranthony at wrsystems.com) Date: Wed, 7 Apr 2004 10:27:56 -0400 Subject: [AccessD] Emails Problems Message-ID: <5F21A4E8B8DD734992EF9E70AC9D3064128B5B@mail2.wrsystems.com> Concur with Bryan, I've even received emails from my network support address spoofed! -----Original Message----- From: Bryan Carbonnell [mailto:carbonnb at sympatico.ca] Sent: Wednesday, April 07, 2004 10:23 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Emails Problems > From: "Hollis,Virginia" > Has anyone been receiving strange emails with attachments? I have been > getting emails for the past 2 days with txt attachments. I just received one > that said it was from AccessD. The one that just came to the list "from" Marty Connelly appears to have started out life as a virus, but the list software stripped out the payload, so no worries there. It looks like it came from someone that uses a Bell South ASDL connection as their ISP. So folks that use Bell South, please run a full virus scan. One of you may be infected with a nasty :( This is one of the new breed of spoofing e-mails that spoof the from line of the e-mail. As for the others, probalby the same knid of deal, but you mail server is taking care of the virii before it hits your desktop. -- Bryan Carbonnell - carbonnb at sympatico.ca Unfortunately common sense isn't so common! -- _______________________________________________ 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 Apr 7 09:58:06 2004 From: EdTesiny at oasas.state.ny.us (Tesiny, Ed) Date: Wed, 7 Apr 2004 10:58:06 -0400 Subject: [AccessD] Emails Problems Message-ID: It appears mine from Marty has the attachment. Ed Tesiny EdTesiny at oasas.state.ny.us -----Original Message----- From: Bryan Carbonnell [mailto:carbonnb at sympatico.ca] Sent: Wednesday, April 07, 2004 10:23 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Emails Problems > From: "Hollis,Virginia" > Has anyone been receiving strange emails with attachments? I have been > getting emails for the past 2 days with txt attachments. I just received one > that said it was from AccessD. The one that just came to the list "from" Marty Connelly appears to have started out life as a virus, but the list software stripped out the payload, so no worries there. It looks like it came from someone that uses a Bell South ASDL connection as their ISP. So folks that use Bell South, please run a full virus scan. One of you may be infected with a nasty :( This is one of the new breed of spoofing e-mails that spoof the from line of the e-mail. As for the others, probalby the same knid of deal, but you mail server is taking care of the virii before it hits your desktop. -- Bryan Carbonnell - carbonnb at sympatico.ca Unfortunately common sense isn't so common! -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Bryan_Carbonnell at cbc.ca Wed Apr 7 10:05:29 2004 From: Bryan_Carbonnell at cbc.ca (Bryan Carbonnell) Date: Wed, 07 Apr 2004 11:05:29 -0400 Subject: [AccessD] Emails Problems Message-ID: The attachment is just the AccessD list footer and not the virus. Bryan Carbonnell bryan_carbonnell at cbc.ca >>> EdTesiny at oasas.state.ny.us 07-Apr-04 10:58:06 AM >>> It appears mine from Marty has the attachment. Ed Tesiny EdTesiny at oasas.state.ny.us -----Original Message----- From: Bryan Carbonnell [mailto:carbonnb at sympatico.ca] Sent: Wednesday, April 07, 2004 10:23 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Emails Problems > From: "Hollis,Virginia" > Has anyone been receiving strange emails with attachments? I have been > getting emails for the past 2 days with txt attachments. I just received one > that said it was from AccessD. The one that just came to the list "from" Marty Connelly appears to have started out life as a virus, but the list software stripped out the payload, so no worries there. It looks like it came from someone that uses a Bell South ASDL connection as their ISP. So folks that use Bell South, please run a full virus scan. One of you may be infected with a nasty :( This is one of the new breed of spoofing e-mails that spoof the from line of the e-mail. As for the others, probalby the same knid of deal, but you mail server is taking care of the virii before it hits your desktop. From martyconnelly at shaw.ca Wed Apr 7 10:10:47 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 07 Apr 2004 08:10:47 -0700 Subject: [AccessD] A2K: Another Trasnfer Database Q References: <009501c41c32$030331a0$48619a89@DDICK> Message-ID: <407419F7.5020909@shaw.ca> Are you missing a comma or parameter in call Do you have an invalid DOS character in your filename Are you using WinXP with locked down folders. Reversed slashes? should look like. DoCmd.TransferSpreadsheet acImport, 3, "Employees","C:\Lotus\Newemps.wk3", True, "A1:G12" Darren DICK wrote: >Hello all >When I try to import or link to a DBF or XLS file in the root directory all is well. >When I move the dbf or XLS file to ANY dorectory/folder the import or link fails. >Access spits up a long error message with Error Number >Saying that the path is invalid. That I should go and check that it exists etc. >Of course it exists I just created it for testing as well as using pre-existing directories. >The Docmd.Transfer works - why would it fail when I use a folde? >Yes I have tried quotes around the path and xls specs > >Any taker? > >Many thanks in advance > >Darren > > > -- Marty Connelly Victoria, B.C. Canada From my.lists at verizon.net Wed Apr 7 10:35:15 2004 From: my.lists at verizon.net (Francisco H Tapia) Date: Wed, 07 Apr 2004 08:35:15 -0700 Subject: [AccessD] Emails Problems In-Reply-To: References: Message-ID: <40741FB3.703@verizon.net> For those of you w/ AV scanners make sure you've upgraded to the latest and greatest definition files, if you need to run an ONLINE scan I suggest (TrendMicro) HTTP://www.antivirus.com For those of you w/ outdated AV scanners who need to scan right now or are looking to not pay for your home pc's here is an alternative. (AVAST, FREE)HTTP://www.avast.com/i_idt_1016.html Bryan Carbonnell said the following on 4/7/2004 8:05 AM: >The one that just came to the list "from" Marty Connelly appears to >have >started out life as a virus, but the list software stripped out the >payload, so no worries there. > >It looks like it came from someone that uses a Bell South ASDL >connection as their ISP. So folks that use Bell South, please run a >full >virus scan. One of you may be infected with a nasty :( > >This is one of the new breed of spoofing e-mails that spoof the from >line of the e-mail. > >As for the others, probalby the same knid of deal, but you mail server >is taking care of the virii before it hits your desktop. > > > -- -Francisco From rjhjr at cox.net Wed Apr 7 11:12:35 2004 From: rjhjr at cox.net (Bob Hall) Date: Wed, 7 Apr 2004 12:12:35 -0400 Subject: [AccessD] OT: open source In-Reply-To: <4073334A.9454.28F0F8@localhost> References: <20040406145847.NMC1781.imf18aec.mail.bellsouth.net@SUSANONE> <4073334A.9454.28F0F8@localhost> Message-ID: <20040407161234.GE40799@kongemord.krig.net> On Tue, Apr 06, 2004 at 10:46:34PM -0400, Bryan Carbonnell wrote: > On 6 Apr 2004 at 19:31, Bob Hall wrote: > > > Linux will never have a standard GUI, because Linux is really only the > > kernal. Linus Torvalds doesn't do shell or GUI development. All Linux > > True enough. I guess I should have said that the various Linux > Distros need to standardise on a desktop. KDE or Gnome. > > > Everything else is whatever the distro teams want to include. They're > > never going to agree on a default window manager. On the other hand, a > > >From what I understand the windows manager doesn't need to be > standardised, ithe the desktop environment. > > There is the XServer, then there is the windows manager and then > finally the desktop environment. twm, blackbox, and fvwm don't use desktop environments. Some window managers require a specific desktop environment. You can't decide on a desktop until you decide on the window manager. I use blackbox, so the desktop decision doesn't seem important to me. There are a lot of differences between window managers. Window Maker is very different from blackbox. Actually, window managers and desktops seem to run side-by-side, rather than one running under the other. > > The immediate threat to MS has been security problems, due to massive > > numbers of bugs. MS seems to have improved a lot since Gates sent out > > his famous security e-mail. The three OSs gaining market share right > > I actually don't think that security is high on most peoples list. > Otherwise why is my Win2K desktop at work only approved to be at SP1? > I have said screw it and installed SP4 myself. This is true for workstations. Security is a bigger issue with servers than workstations. Breaking root on a server puts more at risk that a trapdoor on a workstation. And the person managing a server box is more likely to understand security than the person using a workstation. The amazing thing is that people with SP1 think they are secure. (I just upgraded someone from SP1.) And if they were on Linux, they would be equally insecure, and just as certain that they were secure. So if they switched to Linux for security reasons, they would be deluding themselves. But a lot of organizations would do it if the market started to perceive Windows as the insecure system, which is what was starting to happen. The people who understood security would have been the first to switch, followed by the people who didn't and who wouldn't have been any more secure. > > seats. So I would say that Linux is a threat to Windows in the > > workstation market, not the server market. > > The problem is that Linux is not making the inroads on the desktop, > but in the server room right now. Linux is gaining in the server room, but not at MS's expense. Both Win and Linux are gaining market share. Sun, IBM, and HP are losing it. Critical apps that once needed proprietary chips and OSs can now be run on commodity hardware and cheap or free OSs. In Europe, Windows has lost to Linux on some huge workstation contracts. That won't happen in the USA anytime soon because the federal government is committed to Windows. But European governments don't have that commitment, and some of them are actively encouraging businesses to switch to Linux. If the governments switch, many businesses and consumers will eventually follow suit. This isn't showing up in market share numbers yet, but it will if the trend continues. Bob Hall From bheid at appdevgrp.com Wed Apr 7 12:02:23 2004 From: bheid at appdevgrp.com (Bobby Heid) Date: Wed, 7 Apr 2004 13:02:23 -0400 Subject: [AccessD] Wierd AccXP memo happenings. In-Reply-To: <916187228923D311A6FE00A0CC3FAA3080733C@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA305BB3F3@ADGSERVER> Hi all, I have a query that pulls data from several tables. Been running well for years. I get a call on Monday that it will not print all the way. So after some researching, I found out that the report was blowing up when it got to a certain page. What was happening is that the data from this one table is all of type double. BUT, for some reason, this one record is returning with the data from a memo field from the same record (not pulled in the query) and is blowing up where I am trying to keep up with some totals. I can delete the data out of the memo and the query runs correctly. I past back the data and it blows up again. So, I save the memo data in notepad, remove it from the record, compact the database, import it into a new database, then add the data back form notepad, and it blows again! Any ideas (short of moving the memo field to its own record) on how to fix this sort of problem? It runs great on 100+ other database (all back-ends). Thanks, Bobby From DWUTKA at marlow.com Wed Apr 7 12:07:57 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 7 Apr 2004 12:07:57 -0500 Subject: [AccessD] OT: open source Message-ID: <2F8793082E00D4119A1700B0D0216BF802227A84@main2.marlow.com> Kind of staying out of this, but wanted to comment about the college students. Microsoft sells their software to students at an incredible discount. A co-worker going to UT, was able to get the entire Visual Studio 6, for $5, a few years ago. Microsoft does this, because they know if the college students use it, they'll be bringing their knowledge (and preferences) into the business world. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Francisco H Tapia Sent: Tuesday, April 06, 2004 5:52 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: open source Bryan Carbonnell said the following on 4/6/2004 2:46 PM: >As for the actual Desktop operating system, that is further out. 5-7 >years would be my guess. Linux needs a few things to become more >competitive with Windows. It *needs* to become less "geek-friendly" and >more "user friendly". It also *NEEDS* to have a "standard" GUI, or at >least a standard layout. > While I agree with you I also have to guess that a Linux convertion may be closer than we all guess. There have been leaps and bounds in which the various distros have improved their desktop products. I also must concur that a standardized GUI would be the killer blow that would/will ultimately drive hords of users away from Microsoft. I base my opinion off such distros like RedHat or even the newest one I've seen (Knopixx). Wich is an OS bootable completely off the CD. It is Linux, and what makes this even more cool is that you could theoretically put out a distro that would make it so that end users "couldn't" break thier installations. Just always boot from the CD. With High end products such as ThunderBird and FireFox and even some of the OpenOffice products, Open Source products are reaching maturity levels that are acceptable to a wider population. Some of the greatest leaps have been "custom installers" for such products. This improves delivery to end users who are wanting to try a simpler to use OPEN SOURCE community. A greater risk than vulnerabilities in MS software is not so much the security holes, but the COST of the software. You have many college students that simply can't afford to go w/ MS Office so they use OpenOffice. While not all do, the trend is steadily climing, and w/ the avalability getting better and the quaility reaching acceptace from the general public, this will help push more OpenSource software into the main stream. -- -Francisco -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Wed Apr 7 12:11:06 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 7 Apr 2004 12:11:06 -0500 Subject: [AccessD] OT: open source Message-ID: <2F8793082E00D4119A1700B0D0216BF802227A85@main2.marlow.com> Why? We share code here. Then there are a million and one sites all based upon techies sharing information. In my opinion, the rest of the world needs to catch up with the internet. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Susan Harkins Sent: Tuesday, April 06, 2004 6:07 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT: open source Open source does not mean free of cost. Nor does it always mean free of licence fees. ====Right, I understand that and I don't mean to confuse the issue, but sharing intellectual property in this way is an odd concept to me. 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 Wed Apr 7 12:14:57 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 7 Apr 2004 12:14:57 -0500 Subject: [AccessD] A2K: Help with Error accessing file Message-ID: <2F8793082E00D4119A1700B0D0216BF802227A86@main2.marlow.com> Not too mention Remote Administrators 'routing' capability. (ie, I have it on my server at home, but then I can hit any machine on my home network by 'routing' through my server). Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Brett Barabash Sent: Tuesday, April 06, 2004 8:33 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2K: Help with Error accessing file We tried GoToMyPC here. Had a number of problems, especially when working in a "2-way" teleconference where both parties were driving the machine. The machine would hang while waiting for the other party to move their mouse, click a key, etc. I followed Drew's suggestion a while back, and picked up a copy of Remote Administrator (www.radmin.com). $35 covers the license for 2 machines. No monthly charges. No headaches. Works for us! -----Original Message----- From: Dan Waters [mailto:dwaters at usinternet.com] Sent: Monday, April 05, 2004 5:35 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2K: Help with Error accessing file --------------Please open with care!------------ This message has bypassed some of our spam filtering rules. This message was scanned for viruses and executable code has been stripped. --------------------------------------------------------------- Steve, I don't have an answer to your specific problem, but since your client is distant this might help: Have your client download a trial version of GoToMyPC. He can set up an account for himself. GoToMyPC has a feature called 'Guest Invite'. He can use this to let you see what's happening on his screen, and you can control his PC from yours so you can do some troubleshooting. I guess this is similar to WebEx or PCAnywhere. If he decides to keep the GoToMyPC account, he only needs to pay $15/mo. I use it to work with my clients so they can see 'drafts' of what I'm doing without making a trip. Best of Luck! Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steven W. Erbach Sent: Monday, April 05, 2004 10:33 AM To: Access Developers discussion and problem solving Subject: [AccessD] A2K: Help with Error accessing file Dear Group, I have an Access 2000 FE/BE application loaded on a client's system in another city 90 miles away. I've been working with their network guy over the phone and he's sent me screen shots of error messages along the way. Here's the situation. The "master" MDB FE database is loaded on the server. I have the local people there create an MDE and place it in another folder so that's it's available for the users who download it to their workstations when a new version is ready. While working with my client's network guy, Bob, the MDE file SEEMS to be created all right; but once the compacting is finished and the FE starts up, the first form opens and he gets this message (it's an "i" message): The expression On Load you entered as the event property setting produced the following error: Error accessing file. Network connection may have been lost. * The expression may not result in the name of a macro, the name of a user-defined function, or [Event Procedure]. * There may have been an error evaluating the function, event, or macro. When he clicks OK the startup form (which is supposed to be hidden) is there on the screen and the application has halted. INVESTIGATION: 1) They don't have the Documentor installed so I can't see what the path is to the BE. 2) However, I do have a form (that I cobbed from Steve Nyberg) that shows all the links with their paths. When we attempt to open this form we get the message you see above. Click OK on the message and Nyberg's SeeLinks form opens but with nothing showing up regarding linked tables. 3) I can open the linked tables from the "master" front end. But when I open the table that contains the latest version number (part of the version upgrade system) I see something odd. This Versions table has one row. The table has a Default value of the Now() function in the VersionDate column. On my system when I look at the table I see the first row all right and in the 2nd (empty) row I see (AutoNumber) in the key field and today's date and time in the VersionDate column. On my client's system he sees #Name? in the VersionDate column in an empty row. He cannot add information in a new row because Access doesn't like the default value. So I had Bob remove the default value. I still get the main problem. 4) The users can still run the application from their workstations using the old version of the FE. There hasn't been any problem there. 5) The Startup form of the FE calls Carl Tribble's Auto-Linker to check the link status of the first table before the main switchboard menu appears. This is all working properly on the users' workstations. 6) I tried Compact and Repair on both the BE and the FE. No change in basic error. 7) I checked the references. They're all there. 8) Only thing I haven't done (at least that I know how to do) is a /decompile on the "master" FE on the server. I'm sorry about the length of this message. I somehow doubt that I would find the problem even if I were sitting at the workstation. Bob is very capable, so I'm sure he's relaying to me everything that he sees. At least my clients can still work with the older version of the app. I am just stumped why this error message appears in the "master" front end database. Any thoughts, other than "Well, why the heck do you let the user make an MDE in the first place, ya numbskull?!" Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "Congress is as trustworthy with money as a crack addict who is experimenting with heroin." - Dave Barry "Giving money and power to the government is like giving whiskey and car keys to teenage boys." - P. J. O'Rourke "Be thankful we're not getting all the government we're paying for." - Will Rogers "It could probably be shown by facts and figures that there is no distinctly American criminal class except Congress." - Mark Twain ---------------------------------------------------------------------------- ---------------------------------------- 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 pnl1 at psu.edu Wed Apr 7 12:15:45 2004 From: pnl1 at psu.edu (Paul Liadis) Date: Wed, 07 Apr 2004 13:15:45 -0400 Subject: [AccessD] Query Truncating Data In-Reply-To: <5F21A4E8B8DD734992EF9E70AC9D3064128B5A@mail2.wrsystems.com > Message-ID: <5.1.0.14.2.20040407131402.03e31c80@mail.psu.edu> Thanks for the information. I finally determined my problem was that my memo field was included in the "Group By" clause. This caused Access to truncate the field. I guess this is a known issue in Access. I am used to SQL Server. Anyhow, I took the field out of the Group By and was OK. Paul Liadis At 09:33 AM 4/7/2004 -0400, you wrote: >See M$ KB 170218. > >A workaround I used in an older program is as follows (this is A97): > >'The following lines of code is a workaround provided by MS due to W97 >inability to assign the value of a variable containing > 'more than 255 characters. This is obviously a non-starter, as the >fields indicated are memo fields in Access. > 'The formfield is populated with asterisks as a placemark, the document >then has to be unprotected, then the contents are > 'dumped into the formfield. After that, the asteriks are deleted, and >the protection for the document is reinstated. > 'The if statement is so this processing effort won't be invoked unless >the field is not null and contains more than 255 characters. > ' > > If Not IsNull(Forms!frmstrinput!txtBrief) And >Len(Forms!frmstrinput!txtBrief) > 255 Then > 'set Description form field to a unique string. > WordObj.Documents(1).FormFields("Description").Result = "****" > If WordObj.Documents(1).ProtectionType <> wdNoProtection Then > WordObj.Documents(1).Unprotect Password:="bob" > End If > WordObj.Selection.Goto what:=wdGoToBookmark, Name:="Description" > WordObj.Selection.Collapse > WordObj.Selection.MoveRight wdCharacter, 1 > WordObj.Selection.TypeText (Forms!frmstrinput!txtBrief) > WordObj.Selection.Goto wdGoToBookmark, , , "description" > 'Remove unique characters from Description form field > With WordObj.Selection.Find > .Execute findtext:="*", replacewith:="", replace:=wdReplaceAll > End With > WordObj.Documents(1).Protect Password:="bob", noreset:=True, >Type:=wdAllowOnlyFormFields > > Else > WordObj.Documents(1).FormFields("Description").Result = >IIf(IsNull(Forms!frmstrinput!txtBrief), "", (Forms!frmstrinput!txtBrief)) > End If > >-----Original Message----- >From: Paul Liadis [mailto:pnl1 at psu.edu] >Sent: Wednesday, April 07, 2004 9:22 AM >To: Access Developers discussion and problem solving >Subject: [AccessD] Query Truncating Data > >Hello, >I am having a problem with a query in which my data is being truncated to >255 characters. My query simply selects from a table (linked from SQL >Server), but doesn't return all the data in one of the columns (defined as >memo in Access). The data is being truncated even though it exists in the >table. Has anyone experienced this? > >Thanks, > >=============================================== >Paul Liadis >Senior Applications Programmer/Analyst >University Budget Office >Pennsylvania State University > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From ranthony at wrsystems.com Wed Apr 7 12:21:47 2004 From: ranthony at wrsystems.com (ranthony at wrsystems.com) Date: Wed, 7 Apr 2004 13:21:47 -0400 Subject: [AccessD] Query Truncating Data Message-ID: <5F21A4E8B8DD734992EF9E70AC9D3064128B5D@mail2.wrsystems.com> Glad you got it fixed. -----Original Message----- From: Paul Liadis [mailto:pnl1 at psu.edu] Sent: Wednesday, April 07, 2004 1:16 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Query Truncating Data Thanks for the information. I finally determined my problem was that my memo field was included in the "Group By" clause. This caused Access to truncate the field. I guess this is a known issue in Access. I am used to SQL Server. Anyhow, I took the field out of the Group By and was OK. Paul Liadis At 09:33 AM 4/7/2004 -0400, you wrote: >See M$ KB 170218. > >A workaround I used in an older program is as follows (this is A97): > >'The following lines of code is a workaround provided by MS due to W97 >inability to assign the value of a variable containing > 'more than 255 characters. This is obviously a non-starter, as the >fields indicated are memo fields in Access. > 'The formfield is populated with asterisks as a placemark, the document >then has to be unprotected, then the contents are > 'dumped into the formfield. After that, the asteriks are deleted, and >the protection for the document is reinstated. > 'The if statement is so this processing effort won't be invoked unless >the field is not null and contains more than 255 characters. > ' > > If Not IsNull(Forms!frmstrinput!txtBrief) And >Len(Forms!frmstrinput!txtBrief) > 255 Then > 'set Description form field to a unique string. > WordObj.Documents(1).FormFields("Description").Result = "****" > If WordObj.Documents(1).ProtectionType <> wdNoProtection Then > WordObj.Documents(1).Unprotect Password:="bob" > End If > WordObj.Selection.Goto what:=wdGoToBookmark, Name:="Description" > WordObj.Selection.Collapse > WordObj.Selection.MoveRight wdCharacter, 1 > WordObj.Selection.TypeText (Forms!frmstrinput!txtBrief) > WordObj.Selection.Goto wdGoToBookmark, , , "description" > 'Remove unique characters from Description form field > With WordObj.Selection.Find > .Execute findtext:="*", replacewith:="", replace:=wdReplaceAll > End With > WordObj.Documents(1).Protect Password:="bob", noreset:=True, >Type:=wdAllowOnlyFormFields > > Else > WordObj.Documents(1).FormFields("Description").Result = >IIf(IsNull(Forms!frmstrinput!txtBrief), "", (Forms!frmstrinput!txtBrief)) > End If > >-----Original Message----- >From: Paul Liadis [mailto:pnl1 at psu.edu] >Sent: Wednesday, April 07, 2004 9:22 AM >To: Access Developers discussion and problem solving >Subject: [AccessD] Query Truncating Data > >Hello, >I am having a problem with a query in which my data is being truncated to >255 characters. My query simply selects from a table (linked from SQL >Server), but doesn't return all the data in one of the columns (defined as >memo in Access). The data is being truncated even though it exists in the >table. Has anyone experienced this? > >Thanks, > >=============================================== >Paul Liadis >Senior Applications Programmer/Analyst >University Budget Office >Pennsylvania State University > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >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 Wed Apr 7 12:36:05 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Wed, 7 Apr 2004 13:36:05 -0400 Subject: [AccessD] Permissions Refresher Message-ID: Group, I have a database that is currently restricted (by folder permissions) to only a few individual persons. I am now in the process of creating a database for general use that needs to link to a table in that restricted database. Out of the following permissions, what is the minimum necessary to allow a user to execute select queries, but not allow any modifications to the data? Permissions: Allow/Deny? Full Control Modify Read & Execute List Folder Contents Read Write TIA, Mark From DWUTKA at marlow.com Wed Apr 7 12:48:55 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 7 Apr 2004 12:48:55 -0500 Subject: [AccessD] How do I Message-ID: <2F8793082E00D4119A1700B0D0216BF802227A87@main2.marlow.com> Here ya go.... Function GetTime(dtDateWithTime As Date) As Date GetTime = TimeSerial(Hour(dtDateWithTime), Minute(dtDateWithTime), Second(dtDateWithTime)) End Function -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Wednesday, April 07, 2004 12:03 AM To: AccessD Subject: [AccessD] How do I Having a bit of a problem tonight. Given #5/11/2000 3:20:00 PM# How do I get rid of the date portion and return just the time? I tried subtracting the clng(ThatDate) from the whole... sometimes worked but sometimes gave me bad time (but never any date portion) I tried dateadd("d",-clng(ThatDate),ThatDate)... That always gives me the correct time but 12/29/1899 as the date portion if the time is in the PM. I have a bunch of times that include the date and I need to strip the date off the time. 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 DWUTKA at marlow.com Wed Apr 7 12:49:46 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 7 Apr 2004 12:49:46 -0500 Subject: [AccessD] OT: open source Message-ID: <2F8793082E00D4119A1700B0D0216BF802227A88@main2.marlow.com> Yes I make my living off this list. Wait until my billing goes out! LOL Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Susan Harkins Sent: Tuesday, April 06, 2004 9:52 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT: open source Do you make your living from this list? If all of your clients or your boss suddenly said "Keep it up, you're doing great, but btw, you're working for free now, aren't you?" Or, how about, "And show this new guy everything you know so we don't need you anymore." -- would that be OK? Susan H. On 6 Apr 2004 at 19:06, Susan Harkins wrote: > ====Right, I understand that and I don't mean to confuse the issue, > but sharing intellectual property in this way is an odd concept to me. What part is odd? We freely share our intelectual property here everyday. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Wed Apr 7 12:38:36 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 07 Apr 2004 10:38:36 -0700 Subject: [AccessD] OT: open source References: <20040406145847.NMC1781.imf18aec.mail.bellsouth.net@SUSANONE> Message-ID: <40743C9C.6090201@shaw.ca> One thought on open source. Without a certain critical mass of users, support for certain types of open source software can be a definite problem. This happens when you go beyond the common spreadsheet and word processing programs. Let use an example. The two major general statistical packages SPSS and SAS do not run on Linux. They are used throughout government and large companies like pharmaceutical industries. Both these packages are taught in universities in courses like the Social Sciences. There is a large user support database, user conventions, mailing lists etc. The users have a familiarity with the packages. Now there is an open source replacement called R. Works on Unix, Linux and Windows. R is possibly as good as SAS. Probably better graphics than SAS-Graph. Cutting edge statistics - Many are developed in R (or in its commercial cousin - S Plus). It takes a while for them to make it into SAS. R doesn't have the data management abilities that SAS has. However support is limited. The R language used is as different from SAS as English is to Swahili. So the ordinary social scientist doing regression analysis is going to have problem switching, whereas a recent Ph.D. in Statistics has probably been exposed to both languages. What I have seen in some large government departments is a reasonable compromise using Base SAS for data management and exploratory data analysis and R for more advanced stats and graphs. Until recently R was restricted by only working with Data Sets in memory and access to external data was limited. In another year, they will be able to get at XML data, SAS transport (XPORT) format data sets and some databases. It can get at Postgres now, higher versions of SQL and even Access. If you switch from SAS to R, you will have to overcome training and support problems Is it worth the $1000 a seat difference? There are not a lot of people familiar with R (not enough critical mass of users or support personnel) . If some of the major pharmaceuticals switch to R, then the number of support personnel will increase. They will then endow some more universities to start teaching it to ensure a supply of trained personnel. If anyone is interested in running Access and R on windows here is a starting point. I suppose you can also do it on Linux with Samba. http://www.r-project.org/ http://www.stats.ox.ac.uk/pub/R/rw-FAQ.html Here is where a lot of open source packages fall down on data mangement. For example MAXDB (old SAPDB) from MySQL has a limited ODBC driver and no OLEDB driver Would be nice to have to link to dotNet. However you will have to wait for some kind spirited soul to write one, It would take a least 3 months of someone's time. I have heard of people offering to do it for $10,000. Maybe someone will do it at MySQL. Guys who can write this type of code are thin on the ground. This also happens with other large scale systems like AutoCAD or GIS systems like ArcINFO. ArcINFO can handle spatial database engines on Linux, but the front end Linux support requires Java Object interfaces, where there is little open source generic front ends available for datamangement. Although there are plenty of frontend viewers available even through html and maybe svg xml. There are no decent free/open source CAD packages. Why? Because it is so damn difficult and time/manpower consuming to program one. Therefore to try and duplicate the functionality of any CAD package and especially the new generation parameteric modellers such as AutoCad Inventor, ProE, SolidWorks, etc. is not practical. I would say it is impossible with a limited 2D programs such as open source MetaPost. And come to think of it. I haven't seen any good open source accounting packages for Linux. -- Marty Connelly Victoria, B.C. Canada From ssharkins at bellsouth.net Wed Apr 7 13:06:53 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Wed, 7 Apr 2004 14:06:53 -0400 Subject: [AccessD] OT: open source In-Reply-To: <2F8793082E00D4119A1700B0D0216BF802227A85@main2.marlow.com> Message-ID: <20040407180713.XGDQ1746.imf17aec.mail.bellsouth.net@SUSANONE> It's still peer to peer Drew, in a mutually beneficial exchange -- that doesn't equate to software manufacturers going open code with everything. Susan H. Why? We share code here. Then there are a million and one sites all based upon techies sharing information. In my opinion, the rest of the world needs to catch up with the internet. From Patricia.O'Connor at DFA.STATE.NY.US Wed Apr 7 13:21:19 2004 From: Patricia.O'Connor at DFA.STATE.NY.US (O'Connor, Patricia ) Date: Wed, 7 Apr 2004 14:21:19 -0400 Subject: [AccessD] How do I Message-ID: John, Try this TIMEVALUE(#12/07/2001 10:43:56 AM#) Patti > -----Original Message----- > From: John W. Colby [mailto:jwcolby at colbyconsulting.com] > Sent: Wednesday, April 07, 2004 01:03 AM > To: AccessD > Subject: [AccessD] How do I > > > Having a bit of a problem tonight. > > Given #5/11/2000 3:20:00 PM# > > How do I get rid of the date portion and return just the time? > > I tried subtracting the clng(ThatDate) from the whole... > sometimes worked > but sometimes gave me bad time (but never any date portion) > > I tried dateadd("d",-clng(ThatDate),ThatDate)... That always > gives me the > correct time but 12/29/1899 as the date portion if the time > is in the PM. > > I have a bunch of times that include the date and I need to > strip the date > off the time. > > 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 DWUTKA at marlow.com Wed Apr 7 13:28:55 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 7 Apr 2004 13:28:55 -0500 Subject: [AccessD] OT: open source Message-ID: <2F8793082E00D4119A1700B0D0216BF802227A8C@main2.marlow.com> Here yes, but on download sites, like PlanetSourceCode.com, no. On sites where code is posted, and retrieved by anyone that wants it, that is open source. The difference is, code like that is generic, or single purpose. You want something specific, or tailored to your needs, then you hire a developer. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Susan Harkins Sent: Wednesday, April 07, 2004 1:07 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT: open source It's still peer to peer Drew, in a mutually beneficial exchange -- that doesn't equate to software manufacturers going open code with everything. Susan H. Why? We share code here. Then there are a million and one sites all based upon techies sharing information. In my opinion, the rest of the world needs to catch up with the internet. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mms at sentex.net Wed Apr 7 13:47:42 2004 From: mms at sentex.net (Les Dunn) Date: Wed, 7 Apr 2004 14:47:42 -0400 Subject: [AccessD] Emails Problems References: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D55C@cntexchange.pgdp.usec.com> Message-ID: <003d01c41cd0$cf2b8e50$e0fc7018@lesdunn> Yes. ----- Original Message ----- From: "Hollis,Virginia" To: "'Access Developers discussion and problem solving'" Sent: Wednesday, April 07, 2004 10:15 AM Subject: [AccessD] Emails Problems > Has anyone been receiving strange emails with attachments? I have been > getting emails for the past 2 days with txt attachments. I just received one > that said it was from AccessD. > > Virginia > -- > _______________________________________________ > 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 Apr 7 14:00:21 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Wed, 7 Apr 2004 15:00:21 -0400 Subject: [AccessD] Permissions Refresher Message-ID: Can anyone point me in the right direction on this? Mark -----Original Message----- From: Mitsules, Mark Sent: Wednesday, April 07, 2004 1:36 PM To: '[AccessD]' Subject: [AccessD] Permissions Refresher Group, I have a database that is currently restricted (by folder permissions) to only a few individual persons. I am now in the process of creating a database for general use that needs to link to a table in that restricted database. Out of the following permissions, what is the minimum necessary to allow a user to execute select queries, but not allow any modifications to the data? Permissions: Allow/Deny? Full Control Modify Read & Execute List Folder Contents Read Write TIA, Mark -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ranthony at wrsystems.com Wed Apr 7 14:40:14 2004 From: ranthony at wrsystems.com (ranthony at wrsystems.com) Date: Wed, 7 Apr 2004 15:40:14 -0400 Subject: [AccessD] Permissions Refresher Message-ID: <5F21A4E8B8DD734992EF9E70AC9D3064128B5E@mail2.wrsystems.com> Mark, Off the top of my head, I'd go with Read & Execute and Read and no other permissions. They will need at least Read permissions to access the folders. -----Original Message----- From: Mitsules, Mark S. (Newport News) [mailto:Mark.Mitsules at ngc.com] Sent: Wednesday, April 07, 2004 3:00 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Permissions Refresher Can anyone point me in the right direction on this? Mark -----Original Message----- From: Mitsules, Mark Sent: Wednesday, April 07, 2004 1:36 PM To: '[AccessD]' Subject: [AccessD] Permissions Refresher Group, I have a database that is currently restricted (by folder permissions) to only a few individual persons. I am now in the process of creating a database for general use that needs to link to a table in that restricted database. Out of the following permissions, what is the minimum necessary to allow a user to execute select queries, but not allow any modifications to the data? Permissions: Allow/Deny? Full Control Modify Read & Execute List Folder Contents Read Write TIA, 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 Mark.Mitsules at ngc.com Wed Apr 7 14:48:32 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Wed, 7 Apr 2004 15:48:32 -0400 Subject: [AccessD] Permissions Refresher Message-ID: Thanks for your reply. Because I'm not familiar with this topic I have to wonder...wouldn't "Read" be redundant if "Read & Execute" was allowed? Or are they two separate things? I'm looking for the absolute minimum. Mark -----Original Message----- From: ranthony at wrsystems.com [mailto:ranthony at wrsystems.com] Sent: Wednesday, April 07, 2004 3:40 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Permissions Refresher Mark, Off the top of my head, I'd go with Read & Execute and Read and no other permissions. They will need at least Read permissions to access the folders. -----Original Message----- From: Mitsules, Mark S. (Newport News) [mailto:Mark.Mitsules at ngc.com] Sent: Wednesday, April 07, 2004 3:00 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Permissions Refresher Can anyone point me in the right direction on this? Mark -----Original Message----- From: Mitsules, Mark Sent: Wednesday, April 07, 2004 1:36 PM To: '[AccessD]' Subject: [AccessD] Permissions Refresher Group, I have a database that is currently restricted (by folder permissions) to only a few individual persons. I am now in the process of creating a database for general use that needs to link to a table in that restricted database. Out of the following permissions, what is the minimum necessary to allow a user to execute select queries, but not allow any modifications to the data? Permissions: Allow/Deny? Full Control Modify Read & Execute List Folder Contents Read Write TIA, 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 jimdettman at earthlink.net Wed Apr 7 14:56:01 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Wed, 7 Apr 2004 15:56:01 -0400 Subject: [AccessD] Permissions Refresher In-Reply-To: Message-ID: Mark, You can't do what you want through OS level security. You need to use Access level security. All users, regardless of what they do once inside the container need full rights where the directory resides and read/modify on the MDB file itself. Jim Dettman (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark S. (Newport News) Sent: Wednesday, April 07, 2004 1:36 PM To: '[AccessD]' Subject: [AccessD] Permissions Refresher Group, I have a database that is currently restricted (by folder permissions) to only a few individual persons. I am now in the process of creating a database for general use that needs to link to a table in that restricted database. Out of the following permissions, what is the minimum necessary to allow a user to execute select queries, but not allow any modifications to the data? Permissions: Allow/Deny? Full Control Modify Read & Execute List Folder Contents Read Write TIA, Mark -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mikedorism at adelphia.net Wed Apr 7 14:41:54 2004 From: mikedorism at adelphia.net (Mike & Doris Manning) Date: Wed, 7 Apr 2004 15:41:54 -0400 Subject: [AccessD] Permissions Refresher In-Reply-To: Message-ID: <000001c41cd8$614d3520$ed194244@hargrove.internal> I believe the minimum necessary is Read & Execute. 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 Mitsules, Mark S. (Newport News) Sent: Wednesday, April 07, 2004 3:00 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Permissions Refresher Can anyone point me in the right direction on this? Mark -----Original Message----- From: Mitsules, Mark Sent: Wednesday, April 07, 2004 1:36 PM To: '[AccessD]' Subject: [AccessD] Permissions Refresher Group, I have a database that is currently restricted (by folder permissions) to only a few individual persons. I am now in the process of creating a database for general use that needs to link to a table in that restricted database. Out of the following permissions, what is the minimum necessary to allow a user to execute select queries, but not allow any modifications to the data? Permissions: Allow/Deny? Full Control Modify Read & Execute List Folder Contents Read Write TIA, 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 Mark.Mitsules at ngc.com Wed Apr 7 15:04:45 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Wed, 7 Apr 2004 16:04:45 -0400 Subject: [AccessD] Permissions Refresher Message-ID: Really? Because in this afternoon's testing I set up a test case where the user was given only Read & Execute, List Folder Contents, and Read to the folder containing the remote db. That user was able to execute a select query in datasheet view, but was not able to modify any of the entries. That's as far as I was able to take the testing thus far. Mark -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Wednesday, April 07, 2004 3:56 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Permissions Refresher Mark, You can't do what you want through OS level security. You need to use Access level security. All users, regardless of what they do once inside the container need full rights where the directory resides and read/modify on the MDB file itself. Jim Dettman (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark S. (Newport News) Sent: Wednesday, April 07, 2004 1:36 PM To: '[AccessD]' Subject: [AccessD] Permissions Refresher Group, I have a database that is currently restricted (by folder permissions) to only a few individual persons. I am now in the process of creating a database for general use that needs to link to a table in that restricted database. Out of the following permissions, what is the minimum necessary to allow a user to execute select queries, but not allow any modifications to the data? Permissions: Allow/Deny? Full Control Modify Read & Execute List Folder Contents Read Write TIA, 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 Mark.Mitsules at ngc.com Wed Apr 7 15:05:56 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Wed, 7 Apr 2004 16:05:56 -0400 Subject: [AccessD] Permissions Refresher Message-ID: Thank you...that will be the test I run tomorrow. Mark -----Original Message----- From: Mike & Doris Manning [mailto:mikedorism at adelphia.net] Sent: Wednesday, April 07, 2004 3:42 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Permissions Refresher I believe the minimum necessary is Read & Execute. 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 Mitsules, Mark S. (Newport News) Sent: Wednesday, April 07, 2004 3:00 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Permissions Refresher Can anyone point me in the right direction on this? Mark -----Original Message----- From: Mitsules, Mark Sent: Wednesday, April 07, 2004 1:36 PM To: '[AccessD]' Subject: [AccessD] Permissions Refresher Group, I have a database that is currently restricted (by folder permissions) to only a few individual persons. I am now in the process of creating a database for general use that needs to link to a table in that restricted database. Out of the following permissions, what is the minimum necessary to allow a user to execute select queries, but not allow any modifications to the data? Permissions: Allow/Deny? Full Control Modify Read & Execute List Folder Contents Read Write TIA, 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 BBarabash at TappeConstruction.com Wed Apr 7 15:07:35 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Wed, 7 Apr 2004 15:07:35 -0500 Subject: [AccessD] How do I Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE4CF@TAPPEEXCH01> TimeValue() -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Wednesday, April 07, 2004 12:03 AM To: AccessD Subject: [AccessD] How do I Having a bit of a problem tonight. Given #5/11/2000 3:20:00 PM# How do I get rid of the date portion and return just the time? I tried subtracting the clng(ThatDate) from the whole... sometimes worked but sometimes gave me bad time (but never any date portion) I tried dateadd("d",-clng(ThatDate),ThatDate)... That always gives me the correct time but 12/29/1899 as the date portion if the time is in the PM. I have a bunch of times that include the date and I need to strip the date off the time. John W. Colby www.ColbyConsulting.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 ranthony at wrsystems.com Wed Apr 7 15:12:34 2004 From: ranthony at wrsystems.com (ranthony at wrsystems.com) Date: Wed, 7 Apr 2004 16:12:34 -0400 Subject: [AccessD] Permissions Refresher Message-ID: <5F21A4E8B8DD734992EF9E70AC9D3064128B5F@mail2.wrsystems.com> I think this is correct. I was going to agree with Jim on full control is needed so the user can write to the .ldb, but your testing seems to bear this out. Our system is setup so that users have full control on the folders and I use Access security within that. -----Original Message----- From: Mitsules, Mark S. (Newport News) [mailto:Mark.Mitsules at ngc.com] Sent: Wednesday, April 07, 2004 4:05 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Permissions Refresher Really? Because in this afternoon's testing I set up a test case where the user was given only Read & Execute, List Folder Contents, and Read to the folder containing the remote db. That user was able to execute a select query in datasheet view, but was not able to modify any of the entries. That's as far as I was able to take the testing thus far. Mark -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Wednesday, April 07, 2004 3:56 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Permissions Refresher Mark, You can't do what you want through OS level security. You need to use Access level security. All users, regardless of what they do once inside the container need full rights where the directory resides and read/modify on the MDB file itself. Jim Dettman (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark S. (Newport News) Sent: Wednesday, April 07, 2004 1:36 PM To: '[AccessD]' Subject: [AccessD] Permissions Refresher Group, I have a database that is currently restricted (by folder permissions) to only a few individual persons. I am now in the process of creating a database for general use that needs to link to a table in that restricted database. Out of the following permissions, what is the minimum necessary to allow a user to execute select queries, but not allow any modifications to the data? Permissions: Allow/Deny? Full Control Modify Read & Execute List Folder Contents Read Write TIA, 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 Wed Apr 7 15:21:45 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Wed, 7 Apr 2004 16:21:45 -0400 Subject: [AccessD] Permissions Refresher Message-ID: It seems that in this case, write privileges to allow for the .ldb are not needed because I am only linking to a table in that database...not actually opening the database. Mark -----Original Message----- From: ranthony at wrsystems.com [mailto:ranthony at wrsystems.com] Sent: Wednesday, April 07, 2004 4:13 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Permissions Refresher I think this is correct. I was going to agree with Jim on full control is needed so the user can write to the .ldb, but your testing seems to bear this out. Our system is setup so that users have full control on the folders and I use Access security within that. -----Original Message----- From: Mitsules, Mark S. (Newport News) [mailto:Mark.Mitsules at ngc.com] Sent: Wednesday, April 07, 2004 4:05 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Permissions Refresher Really? Because in this afternoon's testing I set up a test case where the user was given only Read & Execute, List Folder Contents, and Read to the folder containing the remote db. That user was able to execute a select query in datasheet view, but was not able to modify any of the entries. That's as far as I was able to take the testing thus far. Mark -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Wednesday, April 07, 2004 3:56 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Permissions Refresher Mark, You can't do what you want through OS level security. You need to use Access level security. All users, regardless of what they do once inside the container need full rights where the directory resides and read/modify on the MDB file itself. Jim Dettman (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark S. (Newport News) Sent: Wednesday, April 07, 2004 1:36 PM To: '[AccessD]' Subject: [AccessD] Permissions Refresher Group, I have a database that is currently restricted (by folder permissions) to only a few individual persons. I am now in the process of creating a database for general use that needs to link to a table in that restricted database. Out of the following permissions, what is the minimum necessary to allow a user to execute select queries, but not allow any modifications to the data? Permissions: Allow/Deny? Full Control Modify Read & Execute List Folder Contents Read Write TIA, 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 mikedorism at adelphia.net Wed Apr 7 15:31:01 2004 From: mikedorism at adelphia.net (Mike & Doris Manning) Date: Wed, 7 Apr 2004 16:31:01 -0400 Subject: [AccessD] Permissions Refresher In-Reply-To: <5F21A4E8B8DD734992EF9E70AC9D3064128B5F@mail2.wrsystems.com> Message-ID: <000001c41cdf$3fe87460$ed194244@hargrove.internal> You don't need Full Control if you are linking to an MDB in another location. Your rights to the tables in that MDB are controlled by your OS rights to the folder it is in. No LDB gets opened at all for the MDB you are linked to in this case. 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 ranthony at wrsystems.com Sent: Wednesday, April 07, 2004 4:13 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Permissions Refresher I think this is correct. I was going to agree with Jim on full control is needed so the user can write to the .ldb, but your testing seems to bear this out. Our system is setup so that users have full control on the folders and I use Access security within that. -----Original Message----- From: Mitsules, Mark S. (Newport News) [mailto:Mark.Mitsules at ngc.com] Sent: Wednesday, April 07, 2004 4:05 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Permissions Refresher Really? Because in this afternoon's testing I set up a test case where the user was given only Read & Execute, List Folder Contents, and Read to the folder containing the remote db. That user was able to execute a select query in datasheet view, but was not able to modify any of the entries. That's as far as I was able to take the testing thus far. Mark -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Wednesday, April 07, 2004 3:56 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Permissions Refresher Mark, You can't do what you want through OS level security. You need to use Access level security. All users, regardless of what they do once inside the container need full rights where the directory resides and read/modify on the MDB file itself. Jim Dettman (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark S. (Newport News) Sent: Wednesday, April 07, 2004 1:36 PM To: '[AccessD]' Subject: [AccessD] Permissions Refresher Group, I have a database that is currently restricted (by folder permissions) to only a few individual persons. I am now in the process of creating a database for general use that needs to link to a table in that restricted database. Out of the following permissions, what is the minimum necessary to allow a user to execute select queries, but not allow any modifications to the data? Permissions: Allow/Deny? Full Control Modify Read & Execute List Folder Contents Read Write TIA, 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 jimdettman at earthlink.net Wed Apr 7 15:29:06 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Wed, 7 Apr 2004 16:29:06 -0400 Subject: [AccessD] Permissions Refresher In-Reply-To: Message-ID: Mark, Yes. If you don't, the first user in will not be able to create a .LDB file and the MDB will get opened in exclusive mode. Beyond that, when a user attaches to the database, Access needs to write to the database header page even if the user is going to be doing read only things. If it can't do that, again the result will be exclusive mode. So users need read/write privilege for the folder and read/write privileges for the MDB file itself. Jim Dettman (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark S. (Newport News) Sent: Wednesday, April 07, 2004 4:05 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Permissions Refresher Really? Because in this afternoon's testing I set up a test case where the user was given only Read & Execute, List Folder Contents, and Read to the folder containing the remote db. That user was able to execute a select query in datasheet view, but was not able to modify any of the entries. That's as far as I was able to take the testing thus far. Mark -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Wednesday, April 07, 2004 3:56 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Permissions Refresher Mark, You can't do what you want through OS level security. You need to use Access level security. All users, regardless of what they do once inside the container need full rights where the directory resides and read/modify on the MDB file itself. Jim Dettman (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark S. (Newport News) Sent: Wednesday, April 07, 2004 1:36 PM To: '[AccessD]' Subject: [AccessD] Permissions Refresher Group, I have a database that is currently restricted (by folder permissions) to only a few individual persons. I am now in the process of creating a database for general use that needs to link to a table in that restricted database. Out of the following permissions, what is the minimum necessary to allow a user to execute select queries, but not allow any modifications to the data? Permissions: Allow/Deny? Full Control Modify Read & Execute List Folder Contents Read Write TIA, 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 jimdettman at earthlink.net Wed Apr 7 15:30:42 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Wed, 7 Apr 2004 16:30:42 -0400 Subject: [AccessD] Permissions Refresher In-Reply-To: <000001c41cdf$3fe87460$ed194244@hargrove.internal> Message-ID: Doris, <> Yes, one always gets created anytime a user attaches to a MDB file (even if via a linked table). If one is not created, Access/JET defaults to exclusive use. Jim Dettman (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mike & Doris Manning Sent: Wednesday, April 07, 2004 4:31 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Permissions Refresher You don't need Full Control if you are linking to an MDB in another location. Your rights to the tables in that MDB are controlled by your OS rights to the folder it is in. No LDB gets opened at all for the MDB you are linked to in this case. 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 ranthony at wrsystems.com Sent: Wednesday, April 07, 2004 4:13 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Permissions Refresher I think this is correct. I was going to agree with Jim on full control is needed so the user can write to the .ldb, but your testing seems to bear this out. Our system is setup so that users have full control on the folders and I use Access security within that. -----Original Message----- From: Mitsules, Mark S. (Newport News) [mailto:Mark.Mitsules at ngc.com] Sent: Wednesday, April 07, 2004 4:05 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Permissions Refresher Really? Because in this afternoon's testing I set up a test case where the user was given only Read & Execute, List Folder Contents, and Read to the folder containing the remote db. That user was able to execute a select query in datasheet view, but was not able to modify any of the entries. That's as far as I was able to take the testing thus far. Mark -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Wednesday, April 07, 2004 3:56 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Permissions Refresher Mark, You can't do what you want through OS level security. You need to use Access level security. All users, regardless of what they do once inside the container need full rights where the directory resides and read/modify on the MDB file itself. Jim Dettman (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark S. (Newport News) Sent: Wednesday, April 07, 2004 1:36 PM To: '[AccessD]' Subject: [AccessD] Permissions Refresher Group, I have a database that is currently restricted (by folder permissions) to only a few individual persons. I am now in the process of creating a database for general use that needs to link to a table in that restricted database. Out of the following permissions, what is the minimum necessary to allow a user to execute select queries, but not allow any modifications to the data? Permissions: Allow/Deny? Full Control Modify Read & Execute List Folder Contents Read Write TIA, 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 ranthony at wrsystems.com Wed Apr 7 15:39:10 2004 From: ranthony at wrsystems.com (ranthony at wrsystems.com) Date: Wed, 7 Apr 2004 16:39:10 -0400 Subject: [AccessD] Permissions Refresher Message-ID: <5F21A4E8B8DD734992EF9E70AC9D3064128B60@mail2.wrsystems.com> Very interesting discussion here, I'm learning... -----Original Message----- From: Mike & Doris Manning [mailto:mikedorism at adelphia.net] Sent: Wednesday, April 07, 2004 4:31 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Permissions Refresher You don't need Full Control if you are linking to an MDB in another location. Your rights to the tables in that MDB are controlled by your OS rights to the folder it is in. No LDB gets opened at all for the MDB you are linked to in this case. 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 ranthony at wrsystems.com Sent: Wednesday, April 07, 2004 4:13 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Permissions Refresher I think this is correct. I was going to agree with Jim on full control is needed so the user can write to the .ldb, but your testing seems to bear this out. Our system is setup so that users have full control on the folders and I use Access security within that. -----Original Message----- From: Mitsules, Mark S. (Newport News) [mailto:Mark.Mitsules at ngc.com] Sent: Wednesday, April 07, 2004 4:05 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Permissions Refresher Really? Because in this afternoon's testing I set up a test case where the user was given only Read & Execute, List Folder Contents, and Read to the folder containing the remote db. That user was able to execute a select query in datasheet view, but was not able to modify any of the entries. That's as far as I was able to take the testing thus far. Mark -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Wednesday, April 07, 2004 3:56 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Permissions Refresher Mark, You can't do what you want through OS level security. You need to use Access level security. All users, regardless of what they do once inside the container need full rights where the directory resides and read/modify on the MDB file itself. Jim Dettman (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark S. (Newport News) Sent: Wednesday, April 07, 2004 1:36 PM To: '[AccessD]' Subject: [AccessD] Permissions Refresher Group, I have a database that is currently restricted (by folder permissions) to only a few individual persons. I am now in the process of creating a database for general use that needs to link to a table in that restricted database. Out of the following permissions, what is the minimum necessary to allow a user to execute select queries, but not allow any modifications to the data? Permissions: Allow/Deny? Full Control Modify Read & Execute List Folder Contents Read Write TIA, 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 Patricia.O'Connor at DFA.STATE.NY.US Wed Apr 7 15:40:34 2004 From: Patricia.O'Connor at DFA.STATE.NY.US (O'Connor, Patricia ) Date: Wed, 7 Apr 2004 16:40:34 -0400 Subject: [AccessD] Access2k - Move ODBC option in dropdown Message-ID: Hi all, When linking tables to an access database, there is a dropdown box with all the different options for datatype. Does anyone know how to move the ODBC option up in the list. Right now it comes up last, I would like to move it up to 1st-3rd. Thanks Patti > -----Original Message----- > From: Jim Dettman [mailto:jimdettman at earthlink.net] > Sent: Wednesday, April 07, 2004 04:31 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Permissions Refresher > > > Doris, > > < are linked to in this case.>> > > Yes, one always gets created anytime a user attaches to a > MDB file (even > if via a linked table). If one is not created, Access/JET defaults to > exclusive use. > > Jim Dettman > (315) 699-3443 > jimdettman at earthlink.net > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mike & Doris > Manning > Sent: Wednesday, April 07, 2004 4:31 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Permissions Refresher > > > You don't need Full Control if you are linking to an MDB in another > location. Your rights to the tables in that MDB are > controlled by your OS > rights to the folder it is in. No LDB gets opened at all for > the MDB you > are linked to in this case. > > 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 > ranthony at wrsystems.com > Sent: Wednesday, April 07, 2004 4:13 PM > To: accessd at databaseadvisors.com > Subject: RE: [AccessD] Permissions Refresher > > > I think this is correct. I was going to agree with Jim on > full control is > needed so the user can write to the .ldb, but your testing > seems to bear > this out. Our system is setup so that users have full control on the > folders and I use Access security within that. > > -----Original Message----- > From: Mitsules, Mark S. (Newport News) [mailto:Mark.Mitsules at ngc.com] > Sent: Wednesday, April 07, 2004 4:05 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Permissions Refresher > > Really? Because in this afternoon's testing I set up a test > case where the > user was given only Read & Execute, List Folder Contents, and > Read to the > folder containing the remote db. That user was able to > execute a select > query in datasheet view, but was not able to modify any of > the entries. > That's as far as I was able to take the testing thus far. > > > > Mark > > > -----Original Message----- > From: Jim Dettman [mailto:jimdettman at earthlink.net] > Sent: Wednesday, April 07, 2004 3:56 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Permissions Refresher > > > Mark, > > You can't do what you want through OS level security. You > need to use > Access level security. All users, regardless of what they do > once inside > the container need full rights where the directory resides > and read/modify > on the MDB file itself. > > Jim Dettman > (315) 699-3443 > jimdettman at earthlink.net > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > Mitsules, Mark S. > (Newport News) > Sent: Wednesday, April 07, 2004 1:36 PM > To: '[AccessD]' > Subject: [AccessD] Permissions Refresher > > > Group, > > I have a database that is currently restricted (by folder > permissions) to > only a few individual persons. I am now in the process of creating a > database for general use that needs to link to a table in > that restricted > database. Out of the following permissions, what is the > minimum necessary > to allow a user to execute select queries, but not allow any > modifications > to the data? > > Permissions: Allow/Deny? > Full Control > Modify > Read & Execute > List Folder Contents > Read > Write > > > TIA, > > 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 Mark.Mitsules at ngc.com Wed Apr 7 16:07:26 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Wed, 7 Apr 2004 17:07:26 -0400 Subject: [AccessD] Startup Properties Message-ID: Building on the "Permissions Refresher" topic, has anyone implemented, or is it possible, to minimize user's "oops" by utilizing the following scenario? FIRST - Uncheck the following startup properties: Display Database Window Allow Full Menus Allow Default Shortcut Menus Allow Built-in Toolbars Allow Toolbar/Menu Changes Use Access Special Keys SECOND - Create an Administrator option that is shown on the switchboard based on the results of the GetUserName function. This would provide a form to reset those startup properties to default if needed. This database solution is in its infancy and bound to go through numerous design changes...therefore, I need to be able to go into design mode when necessary, yet default to a more secure mode when I exit. Is this a viable solution for use in a small workgroup? Any downside? Mark From DWUTKA at marlow.com Wed Apr 7 17:12:43 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 7 Apr 2004 17:12:43 -0500 Subject: [AccessD] Permissions Refresher Message-ID: <2F8793082E00D4119A1700B0D0216BF802227A9B@main2.marlow.com> You can make an .mdb 'read only' through NT security. It's not the prefered method though. The reason it's not prefered, is because you are actually having Jet error out, by being denied access to the file by NT security, instead of letting JET handle things with it's own security. It's actually very simple to setup Access User Level security, so that an 'admin' account has full access, and all other users (Using the generic Admin account) have read only access. Takes about 3 to 4 minutes to setup, and from then on, you are letting JET handle the security. Admittedly, NT security is a bit tighter then JET, but with the process mentioned above, you can keep the 'secured' .mdw locally, out of reach of the users, and thus the only way to 'hack' it, through JET, would be to use DAO code, to goof the hash. But NT security isn't all that secure either! LOL Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark S. (Newport News) Sent: Wednesday, April 07, 2004 3:05 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Permissions Refresher Really? Because in this afternoon's testing I set up a test case where the user was given only Read & Execute, List Folder Contents, and Read to the folder containing the remote db. That user was able to execute a select query in datasheet view, but was not able to modify any of the entries. That's as far as I was able to take the testing thus far. Mark -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Wednesday, April 07, 2004 3:56 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Permissions Refresher Mark, You can't do what you want through OS level security. You need to use Access level security. All users, regardless of what they do once inside the container need full rights where the directory resides and read/modify on the MDB file itself. Jim Dettman (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark S. (Newport News) Sent: Wednesday, April 07, 2004 1:36 PM To: '[AccessD]' Subject: [AccessD] Permissions Refresher Group, I have a database that is currently restricted (by folder permissions) to only a few individual persons. I am now in the process of creating a database for general use that needs to link to a table in that restricted database. Out of the following permissions, what is the minimum necessary to allow a user to execute select queries, but not allow any modifications to the data? Permissions: Allow/Deny? Full Control Modify Read & Execute List Folder Contents Read Write TIA, 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 DWUTKA at marlow.com Wed Apr 7 17:15:27 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 7 Apr 2004 17:15:27 -0500 Subject: [AccessD] Permissions Refresher Message-ID: <2F8793082E00D4119A1700B0D0216BF802227A9C@main2.marlow.com> Not true. When you link a table, an .ldb is created for both the FE and BE, when it's being used. (You are accessing the data, right?) The .ldb on the backend isn't 'created' until the linked table is used, though, which is why a lot of developers create a 'permanent' link process, to maintain the connection to the backend. That can speed up a lot of things in a FE/BE scenario. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mike & Doris Manning Sent: Wednesday, April 07, 2004 3:31 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Permissions Refresher You don't need Full Control if you are linking to an MDB in another location. Your rights to the tables in that MDB are controlled by your OS rights to the folder it is in. No LDB gets opened at all for the MDB you are linked to in this case. 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 ranthony at wrsystems.com Sent: Wednesday, April 07, 2004 4:13 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Permissions Refresher I think this is correct. I was going to agree with Jim on full control is needed so the user can write to the .ldb, but your testing seems to bear this out. Our system is setup so that users have full control on the folders and I use Access security within that. -----Original Message----- From: Mitsules, Mark S. (Newport News) [mailto:Mark.Mitsules at ngc.com] Sent: Wednesday, April 07, 2004 4:05 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Permissions Refresher Really? Because in this afternoon's testing I set up a test case where the user was given only Read & Execute, List Folder Contents, and Read to the folder containing the remote db. That user was able to execute a select query in datasheet view, but was not able to modify any of the entries. That's as far as I was able to take the testing thus far. Mark -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Wednesday, April 07, 2004 3:56 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Permissions Refresher Mark, You can't do what you want through OS level security. You need to use Access level security. All users, regardless of what they do once inside the container need full rights where the directory resides and read/modify on the MDB file itself. Jim Dettman (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark S. (Newport News) Sent: Wednesday, April 07, 2004 1:36 PM To: '[AccessD]' Subject: [AccessD] Permissions Refresher Group, I have a database that is currently restricted (by folder permissions) to only a few individual persons. I am now in the process of creating a database for general use that needs to link to a table in that restricted database. Out of the following permissions, what is the minimum necessary to allow a user to execute select queries, but not allow any modifications to the data? Permissions: Allow/Deny? Full Control Modify Read & Execute List Folder Contents Read Write TIA, 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 my.lists at verizon.net Wed Apr 7 17:42:27 2004 From: my.lists at verizon.net (Francisco H Tapia) Date: Wed, 07 Apr 2004 15:42:27 -0700 Subject: [AccessD] MS Access 2003 Gotchas Message-ID: <407483D3.3070508@verizon.net> ... so I have Access 97 and Access 2000, when I installed .Net 2003, it somehow blew away my rights to access the damn CodeLibrary unless I stick the stupid 2000 ODE disc in the drive. anyhow, that's not my question. There are behavioral diffrences in 97 and 2000 in the manner that a form will behave when it is displayed in datasheet view, Originally I thought it was the ADP causing this, but later found out that it appears to just be a 2000 thing (strangley I've never encountered it before). what I'm talking about is when you filter out a continous form OR datasheet on say column 1 then you wish to modify the data in column one you loose your filter when you attempt to modify or enter data to that column, unfiltered/unsorted columns are fine. so I want to test if Access 2003 will yield this same problem, but I don't want to be up a creek w/o a paddle and have problems w/ the installation when installing 2003. I remember before people mentioning the potential gotchas when going A2000/2002 w/ VBE. Thanks, -- -Francisco From martyconnelly at shaw.ca Wed Apr 7 17:36:10 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Wed, 07 Apr 2004 15:36:10 -0700 Subject: [AccessD] OT: open source References: <20040407113603.ZBNV1763.imf21aec.mail.bellsouth.net@SUSANONE> Message-ID: <4074825A.7040303@shaw.ca> You can put your source code in Escrow, if you don't want to release it to companies even with a NDA You shouldn't use your lawyer as an escrow software agent, an independant escrow agent will act impartially, and that would be impossible for a lawyer who was also representing either the supplier or the user. Also a lawyer whose client is buying an operating business should insist that the buyer has the right to cancel if due diligence reveals that continued maintenance and support for critical software is not assured in some way, such as a software escrow Here is a brief explanation of how software escrow works. http://www.softescrow.com/faq.html#1.0 or http://www.escrowassociates.com/agreements.htm http://techrepublic.com.com/5100-6298_11-5088773.html?fromtm=e101 Susan Harkins wrote: >If I went the MS way, what would my clients do if I was hit by a bus >tomorrow? > >============That's a good point, but to me, it's kind of like expecting a >chef to give you his recipe. Of course, if the market eventually forces it, >that's OK with me. I'm not against it. > >Susan H. > > > -- Marty Connelly Victoria, B.C. Canada From DWUTKA at marlow.com Wed Apr 7 18:43:32 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Wed, 7 Apr 2004 18:43:32 -0500 Subject: [AccessD] Access2k - Move ODBC option in dropdown Message-ID: <2F8793082E00D4119A1700B0D0216BF802227AA0@main2.marlow.com> WARNING WARNING WARNING! BE VERY CAREFUL WHEN DOING THIS! Your post raised my curiousity. I knew the registry had settings to change the order of various lists (like switching Design View and Datasheet View, when you create a new table). After a little futzing around in the registry, here is what I found. The 'Link' form that you get, when you link a table, is not a typical dialog box. It has to be in a wizard somewhere, or perhaps directly in msaccess.exe. Couldn't find it. However, and that's a big however, I did find where it builds the list. There is an odd quirk though, believe it or not, that list IS generated alphabetically. I know that doesn't sound right, because HTML Documents shows up after Microsoft Foxpro, and before Paradox. And Exchange comes after Microsoft Excel. That is because in the registry, it is listed as Excel, Exchange, Foxpro, HTML, Paradox. Which is in the right order. There is a big catch though. The first item on the list ISN'T in the registry (which is Microsoft Access). Neither is the Last. ODBC is the last. There is a way to make the ODBC item show up beneath Access though. Under: \HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Jet\3.5\ISAM Formats you will find the list of formats which display on that list. Each key (well almost all of them) have a value called CanLink, which is 01 if it is listed, and 00 if it is not. (Not 'CanLink' value, and it doesn't show up). So, you could cheat, and go through and set all of the CanLinks to 00. I would highly recommend that you write down which ones you changed (or export the original registry). But that would remove them from the list of Linkable sources, and thus move ODBC up the list. I know there are more keys set with 'CanLink', then are on the list, but that is because it groups some of them together. Also, the registry key above is for Access 97 (Jet 3.5). If you want A2k, you would change the 3.5 to 4.0 in the key path. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of O'Connor, Patricia Sent: Wednesday, April 07, 2004 3:41 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access2k - Move ODBC option in dropdown Hi all, When linking tables to an access database, there is a dropdown box with all the different options for datatype. Does anyone know how to move the ODBC option up in the list. Right now it comes up last, I would like to move it up to 1st-3rd. Thanks Patti > -----Original Message----- > From: Jim Dettman [mailto:jimdettman at earthlink.net] > Sent: Wednesday, April 07, 2004 04:31 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Permissions Refresher > > > Doris, > > < are linked to in this case.>> > > Yes, one always gets created anytime a user attaches to a > MDB file (even > if via a linked table). If one is not created, Access/JET defaults to > exclusive use. > > Jim Dettman > (315) 699-3443 > jimdettman at earthlink.net > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mike & Doris > Manning > Sent: Wednesday, April 07, 2004 4:31 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Permissions Refresher > > > You don't need Full Control if you are linking to an MDB in another > location. Your rights to the tables in that MDB are > controlled by your OS > rights to the folder it is in. No LDB gets opened at all for > the MDB you > are linked to in this case. > > 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 > ranthony at wrsystems.com > Sent: Wednesday, April 07, 2004 4:13 PM > To: accessd at databaseadvisors.com > Subject: RE: [AccessD] Permissions Refresher > > > I think this is correct. I was going to agree with Jim on > full control is > needed so the user can write to the .ldb, but your testing > seems to bear > this out. Our system is setup so that users have full control on the > folders and I use Access security within that. > > -----Original Message----- > From: Mitsules, Mark S. (Newport News) [mailto:Mark.Mitsules at ngc.com] > Sent: Wednesday, April 07, 2004 4:05 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Permissions Refresher > > Really? Because in this afternoon's testing I set up a test > case where the > user was given only Read & Execute, List Folder Contents, and > Read to the > folder containing the remote db. That user was able to > execute a select > query in datasheet view, but was not able to modify any of > the entries. > That's as far as I was able to take the testing thus far. > > > > Mark > > > -----Original Message----- > From: Jim Dettman [mailto:jimdettman at earthlink.net] > Sent: Wednesday, April 07, 2004 3:56 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Permissions Refresher > > > Mark, > > You can't do what you want through OS level security. You > need to use > Access level security. All users, regardless of what they do > once inside > the container need full rights where the directory resides > and read/modify > on the MDB file itself. > > Jim Dettman > (315) 699-3443 > jimdettman at earthlink.net > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > Mitsules, Mark S. > (Newport News) > Sent: Wednesday, April 07, 2004 1:36 PM > To: '[AccessD]' > Subject: [AccessD] Permissions Refresher > > > Group, > > I have a database that is currently restricted (by folder > permissions) to > only a few individual persons. I am now in the process of creating a > database for general use that needs to link to a table in > that restricted > database. Out of the following permissions, what is the > minimum necessary > to allow a user to execute select queries, but not allow any > modifications > to the data? > > Permissions: Allow/Deny? > Full Control > Modify > Read & Execute > List Folder Contents > Read > Write > > > TIA, > > 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 jwcolby at colbyconsulting.com Wed Apr 7 19:27:49 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 7 Apr 2004 20:27:49 -0400 Subject: [AccessD] How do I In-Reply-To: <426071E0B0A6D311B3C0006008B0AB23AFE4CF@TAPPEEXCH01> Message-ID: That's the one. Thanks. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Brett Barabash Sent: Wednesday, April 07, 2004 4:08 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] How do I TimeValue() -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Wednesday, April 07, 2004 12:03 AM To: AccessD Subject: [AccessD] How do I Having a bit of a problem tonight. Given #5/11/2000 3:20:00 PM# How do I get rid of the date portion and return just the time? I tried subtracting the clng(ThatDate) from the whole... sometimes worked but sometimes gave me bad time (but never any date portion) I tried dateadd("d",-clng(ThatDate),ThatDate)... That always gives me the correct time but 12/29/1899 as the date portion if the time is in the PM. I have a bunch of times that include the date and I need to strip the date off the time. John W. Colby www.ColbyConsulting.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 jwcolby at colbyconsulting.com Wed Apr 7 20:04:35 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 7 Apr 2004 21:04:35 -0400 Subject: [AccessD] Emails Problems In-Reply-To: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D55C@cntexchange.pgdp.usec.com> Message-ID: Yes, got one "From" MartyConnely. The attachment is not a virus and has databaseadvisor stuff in it. ******* The following was in the attachment ******* -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ******* John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Hollis,Virginia Sent: Wednesday, April 07, 2004 10:16 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Emails Problems Has anyone been receiving strange emails with attachments? I have been getting emails for the past 2 days with txt attachments. I just received one that said it was from AccessD. Virginia -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Apr 7 20:07:43 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 7 Apr 2004 21:07:43 -0400 Subject: [AccessD] How do I In-Reply-To: Message-ID: Jim, This is older data from my billing program. I'm trying to set up a collision checker so that as I enter times the times are checked for collisions with existing billing records, so I really have to get rid of the time. TimeValue() did the trick. Just updated those records > 1 and I'm off and running. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Dettman Sent: Wednesday, April 07, 2004 9:07 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] How do I John, One thing you can do is continue to use the date/time field, but just ignore the date (set them all to 0) and use Format$() for displaying the time only. Jim Dettman (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Wednesday, April 07, 2004 1:03 AM To: AccessD Subject: [AccessD] How do I Having a bit of a problem tonight. Given #5/11/2000 3:20:00 PM# How do I get rid of the date portion and return just the time? I tried subtracting the clng(ThatDate) from the whole... sometimes worked but sometimes gave me bad time (but never any date portion) I tried dateadd("d",-clng(ThatDate),ThatDate)... That always gives me the correct time but 12/29/1899 as the date portion if the time is in the PM. I have a bunch of times that include the date and I need to strip the date off the time. John W. Colby www.ColbyConsulting.com From d.dick at uws.edu.au Wed Apr 7 20:41:22 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Thu, 8 Apr 2004 11:41:22 +1000 Subject: [AccessD] A2K:Create Fields via code Message-ID: <00ad01c41d0a$98db8be0$48619a89@DDICK> Hello all I managed to find in the help code for creating fields in tables. Excellent I can see examples and general info on creating just about every field known to mankind....except Autonumber. I am importing a DBF file with no Autonumber The field I was going to use a PK in that file is TEXT. So..I'm open to suggestions- convert the text field to a number field or try and add an Auutonumber field and use that Any suggestions welcome many thanks Darren From ssharkins at bellsouth.net Wed Apr 7 21:07:52 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Wed, 7 Apr 2004 22:07:52 -0400 Subject: [AccessD] A2K:Create Fields via code In-Reply-To: <00ad01c41d0a$98db8be0$48619a89@DDICK> Message-ID: <20040408020812.VRQK1797.imf22aec.mail.bellsouth.net@SUSANONE> I can't help with the decision, but if you're having trouble creating an AutoNumber field, perhaps you're using the wrong keyword -- did you try counter or autoincrement? Susan H. Hello all I managed to find in the help code for creating fields in tables. Excellent I can see examples and general info on creating just about every field known to mankind....except Autonumber. I am importing a DBF file with no Autonumber The field I was going to use a PK in that file is TEXT. So..I'm open to suggestions- convert the text field to a number field or try and add an Auutonumber field and use that Any suggestions welcome many thanks Darren -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Apr 7 21:12:12 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 7 Apr 2004 22:12:12 -0400 Subject: [AccessD] Appointment collisions Message-ID: For anyone who has never seen the code, Lembit donated the following code which I documented and placed into a function which checks for appointment collisions. I just finished building a set of two queries and a report to display any collisions between times entered into my billing programs. I work on site a lot and if I don't have my laptop I keep an email open which I then email home to myself with my hours and a brief summary of what I am doing. In any case I end up copying that into my billing program every few days. I have always "manually" checked my hours to make sure I didn't enter times in wrong, but a simple report to tell me if I am entering overlapping times is a must. There is nothing more embarrassing that billing the customer twice for the same time! The following is the function. Option Compare Database Option Explicit '.========================================================================= '.Copyright 2001 Colby Consulting. All rights reserved. '.Phone : '.E-mail : jcolby at colbyconsulting.com '.========================================================================= ' DO NOT DELETE THE COMMENTS ABOVE. All other comments in this module ' may be deleted from production code, but lines above must remain. '-------------------------------------------------------------------------- '.Written By : John W. Colby '.Date Created : 12/31/2001 ' Rev. History : '.Description : ' ' Comments : '.------------------------------------------------------------------------- '. ' ADDITIONAL NOTES: ' 'FUNCTIONS SPECIFIC TO THIS APPLICATION ' '. '*+ Compiler directives #Const DebugPrint = True 'TURNS ON/OFF ALL NORMAL DEBUG PRINTING THROUGHOUT THE PROJECT #Const DebugPrintEvent = True 'TURNS ON/OFF ALL EVENT DEBUG PRINTING THROUGHOUT THE PROJECT '*- Compiler directives '*+ Module constant declaration Private Const mcstrModuleName As String = "basApp" 'THE NAME OF THIS MODULE '*- Module constant declaration '*+ Module Variable declaration '*- Module Variable declaration Public Function TCComputeTime(ST, ET, SD, ED, Billable, Optional blnComputeBillable As Boolean = True) As Double On Error GoTo Err_TCComputeTime Dim Time As Double If blnComputeBillable Then If Billable = True Then Time = DateDiff("n", ST, ET) / 60 If DateDiff("d", SD, ED) = 1 Then Time = Time + 24 End If ' Time = Format(Time, "00.00") Time = Format(Time, "00.0000") TCComputeTime = Time Else TCComputeTime = 0 End If Else Time = DateDiff("n", ST, ET) / 60 If DateDiff("d", SD, ED) = 1 Then Time = Time + 24 End If ' Time = Format(Time, "00.00") Time = Format(Time, "00.0000") TCComputeTime = Time End If Exit_TCComputeTime: Exit Function Err_TCComputeTime: Select Case Err Case 0 '.insert Errors you wish to ignore here Resume Next Case Else '.All other errors will trap Beep MsgBox Err.Description, , "Error in Function basApp.TCComputeTime" Resume Exit_TCComputeTime End Select Resume 0 '.FOR TROUBLESHOOTING End Function 'Comments : 'Parameters: 'Sets : 'Returns : CURRENT TIME ROUNDED UP OR DOWN TO 10 MINUTE INTERVALS 'Created by: Colby Consulting 'Created : 9/29/98 11:00:35 AM Function ccRoundTimeOld(Optional intRoundInterval As Integer = 10) On Error GoTo Err_ccRoundTime Dim dtmTime As Date 'HOLDS THE CURRENT TIME FOR MANIPULATION Dim intMin As Integer 'MINUTE PORTION OF THE TIME VALUE Dim intTarget As Integer 'TARGET MINUTES TO ROUND TO Dim intBillRound As Integer '1/2 THE INTERVAL Dim intRoundAmt As Integer 'THE AMOUNT TO ROUND UP OR DOWN intBillRound = intRoundInterval / 2 dtmTime = Time() intMin = DatePart("n", dtmTime) 'ADD THE BILL INTERVAL TO ZERO UNTIL IT IS JUST UNDER THE MINUTES Do While intTarget + intRoundInterval <= intMin intTarget = intTarget + intRoundInterval Loop 'FIGURE OUT IF WE'RE OVER OR UNDER THE HALF WAY POINT OF THE BILL INTERVAL 'AND ADD OR SUBTRACT THE CORRECT AMOUNT AS NEEDED If intMin - intTarget >= intBillRound Then intTarget = intTarget + intRoundInterval intRoundAmt = intTarget - intMin dtmTime = DateAdd("n", intRoundAmt, dtmTime) Else intRoundAmt = intTarget - intMin dtmTime = DateAdd("n", intRoundAmt, dtmTime) End If 'ROUND OFF THE SECONDS TO ZERO dtmTime = DatePart("h", dtmTime) & ":" & DatePart("n", dtmTime) & ":00" 'PASS BACK THE VALUE ccRoundTimeOld = dtmTime Exit_ccRoundTime: Exit Function Err_ccRoundTime: Select Case Err Case 0 'insert Errors you wish to ignore here Resume Next Case Else 'All other errors will trap Beep MsgBox Err.Description, , "Error in function Module1.ccRoundTime" Resume Exit_ccRoundTime End Select Resume 0 'FOR TROUBLESHOOTING End Function Function ccRoundTime(ByVal varTime As Variant, Optional ByVal intRound As Integer = 10) As Variant ' ccRoundTime returns varTime rounded to hours and minutes by intRound. ' intRound is the rounding value in minutes. ' ' Examples: ' ccRoundTime(#15:52:30#,15) returns 15:45:00. ' ccRoundTime(varTime,120) returns varTime rounded to even hours. ' ccRoundTime(varTime,6) returns varTime rounded to tens of an hour. ' ' (c) 1997, Cactus Data ApS, Copenhagen. ' May be freely used or modified. On Error GoTo Err_ccRoundTime ' Limit intRound to minut count for one day. intRound = intRound Mod (24 * 60) If IsDate(varTime) And (intRound > 0) Then ' Round seconds to minutes. varTime = TimeSerial(Hour(varTime), Minute(varTime), CInt(Second(varTime) / 60) * 60) ' Return varTime rounded by intRound using hours calculated as minutes. ccRoundTime = TimeSerial(0, CInt((Hour(varTime) * 60 + Minute(varTime)) / intRound) * intRound, 0) Else ' Return varTime as is. ccRoundTime = varTime End If Exit_ccRoundTime: Exit Function Err_ccRoundTime: ccRoundTime = 0 Resume Exit_ccRoundTime End Function Function C2DbPopulateInvLI(frm As Form, strSQL As String) On Error GoTo Err_C2DbPopulateInvLI MsgBox "strsql" Exit_C2DbPopulateInvLI: Exit Function Err_C2DbPopulateInvLI: Select Case Err Case 0 '.insert Errors you wish to ignore here Resume Next Case Else '.All other errors will trap Beep MsgBox Err.Description, , "Error in Function basApp.C2DbPopulateInvLI" Resume Exit_C2DbPopulateInvLI End Select Resume 0 '.FOR TROUBLESHOOTING End Function 'Comments : THANKS TO LEMBIT SOOBIK 'there is a 'simple' equation which defines a conflict in appointments: 'let's name the starting point of an existing appointment Se, endpoint Ee 'and for the new appointment to be tested the starting point St, endpoint Et 'now you can simply check ' 'If St < Ee AND Et > Se ' 'then you have a conflict. 'you can easily visualize that by following drawing ' '_________Se______Ee______ '1_St__Et '2_St_________Et '3_St__________________Et '4___________St_Et '5___________St________Et '6_____________________St__Et ' 'As you can see, only cases 2, 3, 4, 5 have a conflict. case 1 does not have a conflict because it ends before the existing one starts (Et < Se) and 6 does not have a conflict since it starts after the existing ends (St > Ee. ' 'Parameters: 'Sets : 'Returns : 'Created by: Colby Consulting 'Created : 6/25/99 11:43:56 AM Function ccApptCollision(IDNew As Long, dtmSTNew As Date, dtmETNew As Date, _ IDExist As Long, dtmSTExist As Date, dtmETExist As Date) As Boolean On Error GoTo Err_ccApptCollision #If boolELE Then Call gProcStack.EnterProc("ccApptCollision", "Module1") #End If 'CHECK IF WE ARE COMPARING A RECORD TO ITSELF If IDNew = IDExist Then ccApptCollision = False Exit Function End If 'CHECK FOR COLLISIONS If (dtmSTNew < dtmETExist) And (dtmETNew > dtmSTExist) Then ccApptCollision = True Else ccApptCollision = False End If Exit_ccApptCollision: #If boolELE Then Call gProcStack.ExitProc("ccApptCollision") #End If Exit Function Err_ccApptCollision: #If boolELE Then WriteErrorLog Err #End If Select Case Err Case 0 'insert Errors you wish to ignore here Resume Next Case Else 'All other errors will trap Beep MsgBox Err.Description, , "Error in function Module1.ccApptCollision" Resume Exit_ccApptCollision End Select Resume 0 'FOR TROUBLESHOOTING End Function ********** In my billing I keep the time and date separate. I then build a query where I drop the time table in twice, join on the date, then add the time and date fields into a single value and pass them into the parameters of the function above as well as the time record IDs from the two records. Out pops a true / false value that tells me if I have a collision. You can actually do the same without any join but the result set can get huge in a hurry so you will need to limit the date ranges. Again, thanks to Lembit for the logic. John W. Colby www.ColbyConsulting.com From jwcolby at colbyconsulting.com Wed Apr 7 21:23:29 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 7 Apr 2004 22:23:29 -0400 Subject: [AccessD] Appointment collisions In-Reply-To: Message-ID: Lets try that again. I got a couple of other functions in the first email For anyone who has never seen the code, Lembit donated the following code which I documented and placed into a function which checks for appointment collisions. I just finished building a set of two queries and a report to display any collisions between times entered into my billing programs. I work on site a lot and if I don't have my laptop I keep an email open which I then email home to myself with my hours and a brief summary of what I am doing. In any case I end up copying that into my billing program every few days. I have always "manually" checked my hours to make sure I didn't enter times in wrong, but a simple report to tell me if I am entering overlapping times is a must. There is nothing more embarrassing that billing the customer twice for the same time! The following is the function. 'Comments : THANKS TO LEMBIT SOOBIK 'there is a 'simple' equation which defines a conflict in appointments: 'let's name the starting point of an existing appointment Se, endpoint Ee 'and for the new appointment to be tested the starting point St, endpoint Et 'now you can simply check ' 'If St < Ee AND Et > Se ' 'then you have a conflict. 'you can easily visualize that by following drawing ' '_________Se______Ee______ '1_St__Et '2_St_________Et '3_St__________________Et '4___________St_Et '5___________St________Et '6_____________________St__Et ' 'As you can see, only cases 2, 3, 4, 5 have a conflict. case 1 does not have a conflict because it ends before the existing one starts (Et < Se) and 6 does not have a conflict since it starts after the existing ends (St > Ee. ' 'Parameters: 'Sets : 'Returns : 'Created by: Colby Consulting 'Created : 6/25/99 11:43:56 AM Function ccApptCollision(IDNew As Long, dtmSTNew As Date, dtmETNew As Date, _ IDExist As Long, dtmSTExist As Date, dtmETExist As Date) As Boolean On Error GoTo Err_ccApptCollision #If boolELE Then Call gProcStack.EnterProc("ccApptCollision", "Module1") #End If 'CHECK IF WE ARE COMPARING A RECORD TO ITSELF If IDNew = IDExist Then ccApptCollision = False Exit Function End If 'CHECK FOR COLLISIONS If (dtmSTNew < dtmETExist) And (dtmETNew > dtmSTExist) Then ccApptCollision = True Else ccApptCollision = False End If Exit_ccApptCollision: #If boolELE Then Call gProcStack.ExitProc("ccApptCollision") #End If Exit Function Err_ccApptCollision: #If boolELE Then WriteErrorLog Err #End If Select Case Err Case 0 'insert Errors you wish to ignore here Resume Next Case Else 'All other errors will trap Beep MsgBox Err.Description, , "Error in function Module1.ccApptCollision" Resume Exit_ccApptCollision End Select Resume 0 'FOR TROUBLESHOOTING End Function ********** In my billing I keep the time and date separate. I then build a query where I drop the time table in twice, join on the date, then add the time and date fields into a single value and pass them into the parameters of the function above as well as the time record IDs from the two records. Out pops a true / false value that tells me if I have a collision. You can actually do the same without any join but the result set can get huge in a hurry so you will need to limit the date ranges. Again, thanks to Lembit for the logic. John W. Colby www.ColbyConsulting.com From DaveSharpe2 at cox.net Wed Apr 7 21:47:40 2004 From: DaveSharpe2 at cox.net (Dave Sharpe) Date: Wed, 7 Apr 2004 22:47:40 -0400 Subject: [AccessD] A2K:Create Fields via code References: <00ad01c41d0a$98db8be0$48619a89@DDICK> Message-ID: <002001c41d13$dc7a4040$dd2f0a44@bcsrkeext6137> Darren I think that this should help http://www.mvps.org/access/tables/tbl0016.htm Dave ----- Original Message ----- From: "Darren DICK" To: "AccessD List" Sent: Wednesday, April 07, 2004 9:41 PM Subject: [AccessD] A2K:Create Fields via code > Hello all > I managed to find in the help code for creating fields in tables. Excellent > I can see examples and general info on creating just about every field known to mankind....except Autonumber. > > I am importing a DBF file with no Autonumber > > The field I was going to use a PK in that file is TEXT. > > So..I'm open to suggestions- convert the text field to a number field or try and add an Auutonumber field and use that > > Any suggestions welcome > > many thanks > > Darren > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From accessd at shaw.ca Wed Apr 7 21:57:21 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Wed, 07 Apr 2004 19:57:21 -0700 Subject: [AccessD] Linking speeds In-Reply-To: <2F8793082E00D4119A1700B0D0216BF802227A9C@main2.marlow.com> Message-ID: Hi All: I seldom use 'bound' forms in Access...SQL and Oracles work better 'unbound' but this is not the question or a provocation. I am having a 'bound' problem with a slow connection/linking from the FE to the BE. The users do not seem concerned but the initial connection times seem unreasonable long. Some messages have been posted to this issue on the list but I missed them. Would anyone know how to speed up linking time? (Access2002) TIA Jim From d.dick at uws.edu.au Wed Apr 7 22:14:29 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Thu, 8 Apr 2004 13:14:29 +1000 Subject: [AccessD] A2K:Create Fields via code - Solved References: <00ad01c41d0a$98db8be0$48619a89@DDICK> <002001c41d13$dc7a4040$dd2f0a44@bcsrkeext6137> Message-ID: <010501c41d17$9b574e60$48619a89@DDICK> Hi Dave That was it It seems you can't create an autonumber from code You first create a number field then change the attributes of that newly created field to (drum roll) ***dbAutoIncrField*** Then that tells access it's an Autonumber No wonder the help wasn't I wouldn't have discovered/figured this by myself in a million years. Many many thanks and many thanks to those who responded (I was just going through variations on Susan's suggestion when your post came in) This list is brilliant Darren ----- Original Message ----- From: "Dave Sharpe" To: "Access Developers discussion and problem solving" Sent: Thursday, April 08, 2004 12:47 PM Subject: Re: [AccessD] A2K:Create Fields via code > Darren > > I think that this should help > > http://www.mvps.org/access/tables/tbl0016.htm > > Dave > > ----- Original Message ----- > From: "Darren DICK" > To: "AccessD List" > Sent: Wednesday, April 07, 2004 9:41 PM > Subject: [AccessD] A2K:Create Fields via code > > > > Hello all > > I managed to find in the help code for creating fields in tables. > Excellent > > I can see examples and general info on creating just about every field > known to mankind....except Autonumber. > > > > I am importing a DBF file with no Autonumber > > > > The field I was going to use a PK in that file is TEXT. > > > > So..I'm open to suggestions- convert the text field to a number field or > try and add an Auutonumber field and use that > > > > Any suggestions welcome > > > > 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 accessd at shaw.ca Thu Apr 8 01:23:24 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Wed, 07 Apr 2004 23:23:24 -0700 Subject: [AccessD] MS product deployment through an IIS server In-Reply-To: <010501c41d17$9b574e60$48619a89@DDICK> Message-ID: Hi All: Does anyone know the method or where to get information on deploying an application through an IIS server (version 5plus) via your web browser. My understanding is that all MS products can be ran in this way. I have been looking at one application, Outlook, that is ran through an IIS server, from work and can pick up and respond to the mail messages as if I was there...eliminates the need for hotmail and the like. If this is so, and the applications do not require a complete re-write, it opens up an interesting set of possibilities. TIA Jim From wdhindman at bellsouth.net Thu Apr 8 07:38:15 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Thu, 8 Apr 2004 08:38:15 -0400 Subject: [AccessD] Linking speeds References: Message-ID: <001901c41d66$5cb80510$6101a8c0@dejpolsys> Jim ...did you check the dba archives? ...this has several possible causes and solutions that have been covered extensively :) Political advertising is the price of our chains ...my name is William Hindman and I approve this message :) ----- Original Message ----- From: "Jim Lawrence (AccessD)" To: "Access Developers discussion and problem solving" Sent: Wednesday, April 07, 2004 10:57 PM Subject: [AccessD] Linking speeds > Hi All: > > I seldom use 'bound' forms in Access...SQL and Oracles work better 'unbound' > but this is not the question or a provocation. > > I am having a 'bound' problem with a slow connection/linking from the FE to > the BE. The users do not seem concerned but the initial connection times > seem unreasonable long. Some messages have been posted to this issue on the > list but I missed them. > > Would anyone know how to speed up linking time? (Access2002) > > TIA > Jim > > -- > _______________________________________________ > 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 Apr 8 09:30:18 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 8 Apr 2004 14:30:18 +0000 Subject: [AccessD] Linking speeds Message-ID: <20040408133015.EBA232762E6@smtp.nildram.co.uk> The main one being to open a connection to the back-end and keep it open for the duration of the relink, e.g. Set dbData = DBEngine.Workspaces(0).OpenDatabase(strDataMdb) As I can vouch, this speeds it up enormously. -- 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] Linking speeds Date: 08/04/04 12:42 > > Jim ...did you check the dba archives? ...this has several possible causes > and solutions that have been covered extensively :) > > Political advertising is the price of our chains ...my name is William > Hindman and I approve this message :) > > ----- Original Message ----- > From: "Jim Lawrence (AccessD)" <accessd at shaw.ca> > To: "Access Developers discussion and problem solving" > <accessd at databaseadvisors.com> > Sent: Wednesday, April 07, 2004 10:57 PM > Subject: [AccessD] Linking speeds > > > > Hi All: > > > > I seldom use 'bound' forms in Access...SQL and Oracles work better > 'unbound' > > but this is not the question or a provocation. > > > > I am having a 'bound' problem with a slow connection/linking from the FE > to > > the BE. The users do not seem concerned but the initial connection times > > seem unreasonable long. Some messages have been posted to this issue on > the > > list but I missed them. > > > > Would anyone know how to speed up linking time? (Access2002) > > > > TIA > > Jim > > > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/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 ssharkins at bellsouth.net Thu Apr 8 08:35:45 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Thu, 8 Apr 2004 09:35:45 -0400 Subject: [AccessD] A2K:Create Fields via code - Solved In-Reply-To: <010501c41d17$9b574e60$48619a89@DDICK> Message-ID: <20040408133605.DTMV27618.imf22aec.mail.bellsouth.net@SUSANONE> Actually, you can using SQL. So, if you don't have to use ADO/DAO, just use SQL. On the other hand, I think you may be able to do it with ADOX? Not positive on that one -- I know you can manipulate the field using ADOX, but don't remember for sure about creating it. Susan H. Hi Dave That was it It seems you can't create an autonumber from code You first create a number field then change the attributes of that newly created field to (drum roll) ***dbAutoIncrField*** Then that tells access it's an Autonumber No wonder the help wasn't I wouldn't have discovered/figured this by myself in a million years. Many many thanks and many thanks to those who responded (I was just going through variations on Susan's suggestion when your post came in) This list is brilliant Darren From Mike.W.Gowey at doc.state.or.us Thu Apr 8 08:46:10 2004 From: Mike.W.Gowey at doc.state.or.us (Gowey Mike W) Date: Thu, 8 Apr 2004 07:46:10 -0600 Subject: [AccessD] Removing Exit ability Message-ID: <05EBB8A3BEB95B4F8216BE4EF486077802AA3EB5@srciml1.ds.doc.state.or.us> Hi Everyone, Could anyone please tell me how I can remove the ability for the user to click on the X to close Access, I want them to only be able to use the buttons I have created on the forms to exit the program. Thanks for any help. Mike Gowey, MCSA, A+, ACE Team Leader - SRCI Information Systems & Services Division From d.dick at uws.edu.au Thu Apr 8 08:52:18 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Thu, 8 Apr 2004 23:52:18 +1000 Subject: [AccessD] A2K:Create Fields via code - Solved References: <20040408133605.DTMV27618.imf22aec.mail.bellsouth.net@SUSANONE> Message-ID: <008201c41d70$b6469c40$21669a89@DDICK> Thanks Susan I struggle - and I mean struggle - with VBA I have seen code examples in the 2000 Developer for ADOX. It looks quite relative to VB and VBA but I think I will give it a miss. :-)) (Thanks but no thanks - luddite here) Have a great day and a safe Easter Thanks again for your help Darren ----- Original Message ----- From: "Susan Harkins" To: "'Access Developers discussion and problem solving'" Sent: Thursday, April 08, 2004 11:35 PM Subject: RE: [AccessD] A2K:Create Fields via code - Solved > Actually, you can using SQL. So, if you don't have to use ADO/DAO, just use > SQL. On the other hand, I think you may be able to do it with ADOX? Not > positive on that one -- I know you can manipulate the field using ADOX, but > don't remember for sure about creating it. > > Susan H. > > Hi Dave > That was it > It seems you can't create an autonumber from code You first create a number > field then change the attributes of that newly created field to (drum roll) > ***dbAutoIncrField*** Then that tells access it's an Autonumber > > No wonder the help wasn't > I wouldn't have discovered/figured this by myself in a million years. > Many many thanks > > and many thanks to those who responded > > (I was just going through variations on Susan's suggestion when your post > came in) > > This list is brilliant > > Darren > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Thu Apr 8 08:54:30 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Thu, 8 Apr 2004 09:54:30 -0400 Subject: [AccessD] A2K:Create Fields via code - Solved In-Reply-To: <008201c41d70$b6469c40$21669a89@DDICK> Message-ID: <20040408135450.EGRN27618.imf22aec.mail.bellsouth.net@SUSANONE> Chicken. ;) ... And thank you -- will be stuffing eggs before the day is through -- and have a great weekend yourself! :) I haven't had a peep yet -- not one. FWIW, if you don't get this resolved I'd be glad to hand over the exact code -- I have it somewhere, just a matter of finding it. :) Susan H. Thanks Susan I struggle - and I mean struggle - with VBA I have seen code examples in the 2000 Developer for ADOX. It looks quite relative to VB and VBA but I think I will give it a miss. :-)) (Thanks but no thanks - luddite here) Have a great day and a safe Easter Thanks again for your help Darren From d.dick at uws.edu.au Thu Apr 8 09:01:42 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 9 Apr 2004 00:01:42 +1000 Subject: [AccessD] Removing Exit ability References: <05EBB8A3BEB95B4F8216BE4EF486077802AA3EB5@srciml1.ds.doc.state.or.us> Message-ID: <009401c41d72$061b34a0$21669a89@DDICK> Hi Mike In the property sheet of you form Have a look on the FORMAT tab (The first one) About half way down Under Max and Min options is the option to Set the Close button Yes = There is on No = There aint one (well there is but it's disabled) oops Just re-read your post You wanna apply this to Access not a form When the dB starts have a form open with its visible property set to false docmd.OpenForm "frmYourFormNameHere",acNormal ,,,,acHidden Then on the Unload event of that hidden form have something like this Private Sub Form_Unload(Cancel As Integer) On Error GoTo Err_Form_Unload If MsgBox("Are you sure you want to CLOSE 'the name of your application here' completely?", vbQuestion + vbYesNo, "Close 'Name of Your Application Name here?") = vbYes Then DoCmd.Quit acQuitSaveAll Else Cancel = true End If Exit_Form_Unload: Exit Sub Err_Form_Unload: MsgBox Err.Number & " " & Err.Description, vbCritical, "Error in Form_Unload module" Resume Exit_Form_Unload End sub Hope this helps Darren ----- Original Message ----- From: "Gowey Mike W" To: "Access Developers discussion and problem solving" Sent: Thursday, April 08, 2004 11:46 PM Subject: [AccessD] Removing Exit ability > > Hi Everyone, > > Could anyone please tell me how I can remove the ability for the user to > click on the X to close Access, I want them to only be able to use the > buttons I have created on the forms to exit the program. > > Thanks for any help. > > > Mike Gowey, MCSA, A+, ACE > Team Leader - SRCI > Information Systems & Services Division > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Apr 8 09:08:13 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 8 Apr 2004 10:08:13 -0400 Subject: [AccessD] Removing Exit ability In-Reply-To: <05EBB8A3BEB95B4F8216BE4EF486077802AA3EB5@srciml1.ds.doc.state.or.us> Message-ID: Access cannot close if it cannot close all forms. 1) In the form with your button, create a boolean variable in the code header. 2) In the form Open set the boolean false - in fact it will already be false but still... that's the theory. 3) In the form's Unload check if the bln is true and if not set cancel = true. This prevents the form closing thus prevents Access closing. 4) In the command button to close the form, set the boolean true (allow the close) then run the code that closes Access. dim blnAllowClose as boolean Private Sub Form_Open(Cancel As Integer) blnAllowClose =false End Sub Private Sub Form_Unload(Cancel As Integer) if blnAllowClose = false then cancel = true end if End Sub Private Sub cmdClose_Click() On Error GoTo Err_cmdClose_Click blnAllowClose = true Application.Quit acQuitSaveNone Exit_cmdClose_Click: Exit Sub Err_cmdClose_Click: MsgBox Err.Description Resume Exit_cmdClose_Click End Sub John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gowey Mike W Sent: Thursday, April 08, 2004 9:46 AM To: Access Developers discussion and problem solving Subject: [AccessD] Removing Exit ability Hi Everyone, Could anyone please tell me how I can remove the ability for the user to click on the X to close Access, I want them to only be able to use the buttons I have created on the forms to exit the program. Thanks for any help. Mike Gowey, MCSA, A+, ACE Team Leader - SRCI Information Systems & Services Division -- _______________________________________________ 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 Apr 8 09:16:42 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 9 Apr 2004 00:16:42 +1000 Subject: [AccessD] A2K:Create Fields via code - Solved References: <20040408135450.EGRN27618.imf22aec.mail.bellsouth.net@SUSANONE> Message-ID: <00a501c41d74$1eed3350$21669a89@DDICK> Chicken - yes I have people here wanting me to Learn ASP and PHP pronto, but I don't wanna (says he, stamping his foot) Thanks again I did get it solved using the create Number method then changing the attributes of the number data type to something very similar to what you described in one of your original posts BTW - you gonna share the splenda choc chip recipe with the list? :-)) Darren ----- Original Message ----- From: "Susan Harkins" To: "'Access Developers discussion and problem solving'" Sent: Thursday, April 08, 2004 11:54 PM Subject: RE: [AccessD] A2K:Create Fields via code - Solved > Chicken. ;) ... And thank you -- will be stuffing eggs before the day is > through -- and have a great weekend yourself! :) > > I haven't had a peep yet -- not one. > > FWIW, if you don't get this resolved I'd be glad to hand over the exact code > -- I have it somewhere, just a matter of finding it. :) > > Susan H. > > Thanks Susan > I struggle - and I mean struggle - with VBA I have seen code examples in the > 2000 Developer for ADOX. It looks quite relative to VB and VBA but I think I > will give it a miss. > :-)) > (Thanks but no thanks - luddite here) > > Have a great day and a safe Easter > > Thanks again for your help > > Darren > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Thu Apr 8 09:18:58 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Thu, 8 Apr 2004 10:18:58 -0400 Subject: [AccessD] A2K:Create Fields via code - Solved In-Reply-To: <00a501c41d74$1eed3350$21669a89@DDICK> Message-ID: <20040408141918.EHLH17967.imf25aec.mail.bellsouth.net@SUSANONE> BTW - you gonna share the splenda choc chip recipe with the list? :-)) Arrggg -- I'd get blasted by the moderators. I'll post it at the web site. :) Susan H. From jwcolby at colbyconsulting.com Thu Apr 8 09:33:51 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 8 Apr 2004 10:33:51 -0400 Subject: [AccessD] Tivo Series1 upgrades Message-ID: In case anyone is interested, I do hard drive upgrades to TIVOs. Anyone interested in getting their TIVO upgraded contact me off line @ jwcolby at colbyconsulting.com. John W. Colby www.ColbyConsulting.com From jwcolby at colbyconsulting.com Thu Apr 8 09:33:51 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 8 Apr 2004 10:33:51 -0400 Subject: [AccessD] A2K:Create Fields via code - Solved In-Reply-To: <20040408141918.EHLH17967.imf25aec.mail.bellsouth.net@SUSANONE> Message-ID: Hey, splenda chocolate chip recipes are definitely on topic for a group of Access developers! ;-) John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Susan Harkins Sent: Thursday, April 08, 2004 10:19 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] A2K:Create Fields via code - Solved BTW - you gonna share the splenda choc chip recipe with the list? :-)) Arrggg -- I'd get blasted by the moderators. I'll post it at the web site. :) Susan H. -- _______________________________________________ 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 Apr 8 09:45:44 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 9 Apr 2004 00:45:44 +1000 Subject: [AccessD] A2K:Create Fields via code - Solved References: Message-ID: <00c101c41d78$2ce6f0f0$21669a89@DDICK> Outstanding Coffee and Chocolate - a developers feast ----- Original Message ----- From: "John W. Colby" To: "Access Developers discussion and problem solving" Sent: Friday, April 09, 2004 12:33 AM Subject: RE: [AccessD] A2K:Create Fields via code - Solved > Hey, splenda chocolate chip recipes are definitely on topic for a group of > Access developers! > > ;-) > > John W. Colby > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Susan Harkins > Sent: Thursday, April 08, 2004 10:19 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] A2K:Create Fields via code - Solved > > > > BTW - you gonna share the splenda choc chip recipe with the list? :-)) > > Arrggg -- I'd get blasted by the moderators. I'll post it at the web site. > :) > > 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 andy at minstersystems.co.uk Thu Apr 8 10:41:58 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 8 Apr 2004 15:41:58 +0000 Subject: [AccessD] A2K:Create Fields via code - Solved Message-ID: <20040408144155.4A95D25E248@smtp.nildram.co.uk> Quick, while the moderators' backs are turned. (Well it is nearly Friday, and Good Friday at that.) -- 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] A2K:Create Fields via code - Solved Date: 08/04/04 14:36 > > Hey, splenda chocolate chip recipes are definitely on topic for a group of > Access developers! > > ;-) > > John W. Colby > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Susan Harkins > Sent: Thursday, April 08, 2004 10:19 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] A2K:Create Fields via code - Solved > > > > BTW - you gonna share the splenda choc chip recipe with the list? :-)) > > Arrggg -- I'd get blasted by the moderators. I'll post it at the web site. > :) > > 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 > > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From JRojas at tnco-inc.com Thu Apr 8 09:54:15 2004 From: JRojas at tnco-inc.com (Joe Rojas) Date: Thu, 8 Apr 2004 10:54:15 -0400 Subject: [AccessD] Access DLL Weirdness Message-ID: <806536912C472E4A9D6515DF2E57261E2397AD@mercury.tnco-inc.com> Hi All, I installed Office 2000 Pre about a year ago on my PC. Everything has worked perfectly up until two weeks ago. I started to get errors that indicated a database communication failure. For example: "Method 'Recordset' of object '_Form_frmTNCOComputers' failed" Because this problem only occurred during VBA code execute and not on bound forms that have no code, I assumed it was a reference problem. I checked my references and DAO3.6 was not referenced! Weird! So when I tried to reference it, I received and error message or "Error loading DLL". Upon investigate it appears the reference was looking for dao360.dll in C:\Windows\system32 (I am using WinXP Pro), which is strange because the DAO files are in C:\Program Files\Common Files\Microsoft Shared\DAO. When I check other installations of Access 2000 on other computers the reference points to the correct place. Anyone have any ideas on would cause this? Also, how do I remove the incorrect reference location before I reregister the dll from the proper location? Thanks, Joe Rojas This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. From accessd at shaw.ca Thu Apr 8 09:53:55 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Thu, 08 Apr 2004 07:53:55 -0700 Subject: [AccessD] Linking speeds In-Reply-To: <001901c41d66$5cb80510$6101a8c0@dejpolsys> Message-ID: Hi Williams I did a cursory look but did not find anything specific but I will try again. Thanks Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of William Hindman Sent: Thursday, April 08, 2004 5:38 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Linking speeds Jim ...did you check the dba archives? ...this has several possible causes and solutions that have been covered extensively :) Political advertising is the price of our chains ...my name is William Hindman and I approve this message :) ----- Original Message ----- From: "Jim Lawrence (AccessD)" To: "Access Developers discussion and problem solving" Sent: Wednesday, April 07, 2004 10:57 PM Subject: [AccessD] Linking speeds > Hi All: > > I seldom use 'bound' forms in Access...SQL and Oracles work better 'unbound' > but this is not the question or a provocation. > > I am having a 'bound' problem with a slow connection/linking from the FE to > the BE. The users do not seem concerned but the initial connection times > seem unreasonable long. Some messages have been posted to this issue on the > list but I missed them. > > Would anyone know how to speed up linking time? (Access2002) > > TIA > Jim > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Mike.W.Gowey at doc.state.or.us Thu Apr 8 10:06:50 2004 From: Mike.W.Gowey at doc.state.or.us (Gowey Mike W) Date: Thu, 8 Apr 2004 09:06:50 -0600 Subject: [AccessD] Removing Exit ability Message-ID: <05EBB8A3BEB95B4F8216BE4EF486077802AA3EBA@srciml1.ds.doc.state.or.us> Thank you Colby that works like a charm. Mike Gowey, MCSA, A+, ACE Team Leader - SRCI Information Systems & Services Division -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Thursday, April 08, 2004 8:08 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Removing Exit ability Access cannot close if it cannot close all forms. 1) In the form with your button, create a boolean variable in the code header. 2) In the form Open set the boolean false - in fact it will already be false but still... that's the theory. 3) In the form's Unload check if the bln is true and if not set cancel = true. This prevents the form closing thus prevents Access closing. 4) In the command button to close the form, set the boolean true (allow the close) then run the code that closes Access. dim blnAllowClose as boolean Private Sub Form_Open(Cancel As Integer) blnAllowClose =false End Sub Private Sub Form_Unload(Cancel As Integer) if blnAllowClose = false then cancel = true end if End Sub Private Sub cmdClose_Click() On Error GoTo Err_cmdClose_Click blnAllowClose = true Application.Quit acQuitSaveNone Exit_cmdClose_Click: Exit Sub Err_cmdClose_Click: MsgBox Err.Description Resume Exit_cmdClose_Click End Sub John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gowey Mike W Sent: Thursday, April 08, 2004 9:46 AM To: Access Developers discussion and problem solving Subject: [AccessD] Removing Exit ability Hi Everyone, Could anyone please tell me how I can remove the ability for the user to click on the X to close Access, I want them to only be able to use the buttons I have created on the forms to exit the program. Thanks for any help. Mike Gowey, MCSA, A+, ACE Team Leader - SRCI Information Systems & Services Division -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From caa at highway.com.br Thu Apr 8 10:13:07 2004 From: caa at highway.com.br (caa at highway.com.br) Date: Thu, 8 Apr 2004 11:13:07 -0400 Subject: [AccessD] Re: Your document Message-ID: <200404081513.i38FD3B15984@databaseadvisors.com> Hi! Please read the attached document. +++ X-Attachment-Type: document +++ X-Attachment-Status: no virus found +++ Powered by the new Norton OnlineAntiVirus +++ Free trial: www.norton.com From jwcolby at colbyconsulting.com Thu Apr 8 10:26:43 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 8 Apr 2004 11:26:43 -0400 Subject: [AccessD] Removing Exit ability In-Reply-To: <05EBB8A3BEB95B4F8216BE4EF486077802AA3EBA@srciml1.ds.doc.state.or.us> Message-ID: Always welcome! John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gowey Mike W Sent: Thursday, April 08, 2004 11:07 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Removing Exit ability Thank you Colby that works like a charm. Mike Gowey, MCSA, A+, ACE Team Leader - SRCI Information Systems & Services Division -----Original Message----- From: John W. Colby [mailto:jwcolby at colbyconsulting.com] Sent: Thursday, April 08, 2004 8:08 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Removing Exit ability Access cannot close if it cannot close all forms. 1) In the form with your button, create a boolean variable in the code header. 2) In the form Open set the boolean false - in fact it will already be false but still... that's the theory. 3) In the form's Unload check if the bln is true and if not set cancel = true. This prevents the form closing thus prevents Access closing. 4) In the command button to close the form, set the boolean true (allow the close) then run the code that closes Access. dim blnAllowClose as boolean Private Sub Form_Open(Cancel As Integer) blnAllowClose =false End Sub Private Sub Form_Unload(Cancel As Integer) if blnAllowClose = false then cancel = true end if End Sub Private Sub cmdClose_Click() On Error GoTo Err_cmdClose_Click blnAllowClose = true Application.Quit acQuitSaveNone Exit_cmdClose_Click: Exit Sub Err_cmdClose_Click: MsgBox Err.Description Resume Exit_cmdClose_Click End Sub John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gowey Mike W Sent: Thursday, April 08, 2004 9:46 AM To: Access Developers discussion and problem solving Subject: [AccessD] Removing Exit ability Hi Everyone, Could anyone please tell me how I can remove the ability for the user to click on the X to close Access, I want them to only be able to use the buttons I have created on the forms to exit the program. Thanks for any help. Mike Gowey, MCSA, A+, ACE Team Leader - SRCI Information Systems & Services Division -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Apr 8 10:31:12 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 8 Apr 2004 08:31:12 -0700 Subject: [AccessD] Odd messages in List Message-ID: What is going on with the "Re: Your Document" messages I'm seeing in the list, complete with test attachment and a body of "Hi! Please read the attached document." It's surprising my spam filters aren't screening this, since it certainly looks like junk mail to me. Charlotte Foust From Chris.Foote at uk.thalesgroup.com Thu Apr 8 10:35:39 2004 From: Chris.Foote at uk.thalesgroup.com (Foote, Chris) Date: Thu, 8 Apr 2004 16:35:39 +0100 Subject: [AccessD] Remove non-alphanumeric characters Message-ID: <97CF276BD8C6D4119C4B00508BB18DE709E0C07B@ntscxch1.int.rdel.co.uk> Good afternoon all! I have a requirement to strip a string of all non-alphanumeric characters. In addition I wanted to change all upper-case characters to lower-case. I could not find any ready-rolled solution so I've come up with the code below. Can anyone think of a more simple way of doing this? Regards! Chris Foote (UK) ------------(Code snippet begin)------------- '-------------------------------------------------------------- ' This piece of (almost) original code is based upon M$ ' Knowledge Base Article 99938. It removes all non-alphanumeric ' characters from a string. It also converts upper-case letters ' to their lower-case versions. It works by converting the ' incoming characters into the ASCII equivalent checking ' to verify what they are and then converting them back again. ' Chris Foote 08/04/04 '-------------------------------------------------------------- Dim strClean As String Dim intPos As Integer Dim strMixed As String Dim intMixed As Integer intPos = 1 If IsNull(spAlphaNum) Then Exit Function For intPos = 1 To Len(spAlphaNum) intMixed = Asc(Mid(spAlphaNum, intPos, 1)) Select Case intMixed Case 48 To 57 ' Numeric strClean = strClean + Chr(intMixed) Case 65 To 90 ' Uppercase Alpha strClean = strClean + Chr(intMixed + 32) Case 97 To 122 ' Lowercase Alpha strClean = strClean + Chr(intMixed) Case Else End Select Next intPos fctRemNonAlpha = strClean End Function From djkr at msn.com Thu Apr 8 10:40:40 2004 From: djkr at msn.com (DJK(John) Robinson) Date: Thu, 8 Apr 2004 16:40:40 +0100 Subject: [AccessD] Odd messages in List In-Reply-To: Message-ID: <000201c41d7f$d8945b70$3500a8c0@dabsight> Hi Charlotte I'm not getting any messages like that. They are almost certainly not really from the list at all, but are viruses spoofing the sender address (common these days). Someone on the list, past or present, has the virus/worm. John > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Charlotte Foust > Sent: 08 April 2004 16:31 > To: AccessD at databaseadvisors.com > Subject: [AccessD] Odd messages in List > > > What is going on with the "Re: Your Document" messages I'm > seeing in the list, complete with test attachment and a body of > > "Hi! > Please read the attached document." > > It's surprising my spam filters aren't screening this, since > it certainly looks like junk mail to me. > > Charlotte Foust > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From my.lists at verizon.net Thu Apr 8 10:47:11 2004 From: my.lists at verizon.net (Francisco H Tapia) Date: Thu, 08 Apr 2004 08:47:11 -0700 Subject: [AccessD] Odd messages in List In-Reply-To: <000201c41d7f$d8945b70$3500a8c0@dabsight> References: <000201c41d7f$d8945b70$3500a8c0@dabsight> Message-ID: <407573FF.7050809@verizon.net> I found in my "hotmail" account a returned message that was being reported as having a virus to someone I know I did not send any email to...and it said it was from my hotmail account... most bizar. DJK(John) Robinson said the following on 4/8/2004 8:40 AM: >Hi Charlotte > >I'm not getting any messages like that. They are almost certainly not >really from the list at all, but are viruses spoofing the sender address >(common these days). Someone on the list, past or present, has the >virus/worm. > >John > > > > >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >>Charlotte Foust >>Sent: 08 April 2004 16:31 >>To: AccessD at databaseadvisors.com >>Subject: [AccessD] Odd messages in List >> >> >>What is going on with the "Re: Your Document" messages I'm >>seeing in the list, complete with test attachment and a body of >> >>"Hi! >>Please read the attached document." >> >>It's surprising my spam filters aren't screening this, since >>it certainly looks like junk mail to me. >> >>Charlotte Foust >>-- >>_______________________________________________ >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >> >> -- -Francisco From andy at minstersystems.co.uk Thu Apr 8 11:55:07 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 8 Apr 2004 16:55:07 +0000 Subject: [AccessD] Remove non-alphanumeric characters Message-ID: <20040408155504.57EDE2A0591@smtp.nildram.co.uk> Well personally I'd find it easier to read if you just compared characters, so. Also, as long as your Option Compare doesn't cause case-sensitive comparisoins, you need only test for a-z once. For intPos = 1 To Len(spAlphaNum) strChar = Mid(spAlphaNum, intPos, 1) Select Case strChar Case "0" To "9" ' Numeric strClean = strClean + strChar Case "a" To "z" ' Uppercase Alpha strClean = strClean + Ucase(strChar) Case Else End Select Next intPos -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: 'Access Developers discussion and problem solving' Subject: [AccessD] Remove non-alphanumeric characters Date: 08/04/04 15:39 > > Good afternoon all! > > I have a requirement to strip a string of all non-alphanumeric characters. > In addition I wanted to change all upper-case characters to lower-case. I > could not find any ready-rolled solution so I've come up with the code > below. > > Can anyone think of a more simple way of doing this? > > Regards! > > Chris Foote (UK) > > ------------(Code snippet begin)------------- > > > > '-------------------------------------------------------------- > ' This piece of (almost) original code is based upon M$ > ' Knowledge Base Article 99938. It removes all non-alphanumeric > ' characters from a string. It also converts upper-case letters > ' to their lower-case versions. It works by converting the > ' incoming characters into the ASCII equivalent checking > ' to verify what they are and then converting them back again. > ' Chris Foote 08/04/04 > '-------------------------------------------------------------- > Dim strClean As String > Dim intPos As Integer > Dim strMixed As String > Dim intMixed As Integer > > intPos = 1 > > If IsNull(spAlphaNum) Then Exit Function > > For intPos = 1 To Len(spAlphaNum) > intMixed = Asc(Mid(spAlphaNum, intPos, 1)) > Select Case intMixed > Case 48 To 57 ' Numeric > strClean = strClean + Chr(intMixed) > Case 65 To 90 ' Uppercase Alpha > strClean = strClean + Chr(intMixed + 32) > Case 97 To 122 ' Lowercase Alpha > strClean = strClean + Chr(intMixed) > Case Else > > End Select > Next intPos > > fctRemNonAlpha = strClean > > End Function > -- > _______________________________________________ > 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 caa at highway.com.br Thu Apr 8 11:07:05 2004 From: caa at highway.com.br (Carlos Alberto Alves) Date: Thu, 08 Apr 2004 13:07:05 -0300 Subject: [AccessD] Code help please In-Reply-To: <016401c41b8f$9df9bec0$48619a89@DDICK> References: <000001c41b85$d87c94a0$6501a8c0@delllaptop> <016401c41b8f$9df9bec0$48619a89@DDICK> Message-ID: On Tue, 6 Apr 2004 14:28:31 +1000, Darren DICK wrote: > Hi Joe > Try something like this > Under the > Compare Database and option explicit declarations type > gIntFormIsDirty as integer > Then add > > Private Sub Form_Load() > gIntFormIsDirty = False > end sub > > then add > > Private Sub Form_Dirty(Cancel As Integer) > gIntFormIsDirty = true > End Sub > > then > > Private Sub ps_SomeCodeToRun() > > 'Joe get whatever the PK is and see if there is a value in it > if not isnull(Me.MyPK) then 'There is a value so we are on a live > record > if gIntFormIsDirty = true THEN > Msgbox "we are on a pre-existing record and the record is > dirty" > else > Msgbox "we are on a pre-existing record but the record IS > NOT dirty" > end if > else > msgbox "We are on a 'new rec' or at least one without a PK" > end if > > end sub > > then in the afterupdate(or whatever) of the control to test > > Private sub txtLastName_AfterUpdate() > ps_SomeCodeToRun > end sub > > Hope this helps > > ----- Original Message ----- > From: "Joe Hecht" > To: "AccessD" > Sent: Tuesday, April 06, 2004 1:18 PM > Subject: [AccessD] Code help please > > >> This code is supposed to >> 1. Confirm this is an existing record >> 2. If the form is dirty >> >> Open a message box >> >> I need vb yes. I want to go to the next record. >> >> Can not find the right method >> >> >> Thanks >> >> Joe >> >> >> >> Private Sub Form_Dirty(Cancel As Integer) >> >> if me.newrecord = false and >> If Me.Dirty Then >> Dim lngRetval As Long >> >> lngRetval = MsgBox( _ >> "Data on this form has changed! " & vbCrLf & "" & vbCrLf & "Do >> you wish to continue?", _ >> vbYesNoCancel + vbQuestion + vbSystemModal + vbDefaultButton1, _ >> "Data Has Changed") >> >> Select Case lngRetval >> Case vbYes >> >> Add New RECORD >> >> Case vbNo >> Forms!frmmasterAddresses!txtLastName.SetFocus >> >> >> >> Case vbCancel >> >> >> >> End Select >> >> End If >> >> >> >> >> >> End Sub >> >> >> >> -- >> _______________________________________________ >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com Would it not be 'gIntFormIsDirty as boolean'? ;-) -- ****************************** * Carlos Alberto Alves * * Child Neurologist * * Systems Analyst/Programmer * * Rio de Janeiro, Brazil * * mailto:caa at highway.com.br * ****************************** From jimdettman at earthlink.net Thu Apr 8 11:24:35 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Thu, 8 Apr 2004 12:24:35 -0400 Subject: [AccessD] Appointment collisions In-Reply-To: Message-ID: John and all, For those interested in something like this, you can also do this fairly easily in query. I have a sample database made up to show how it's done. If anyone would like a copy, e-mail me off list. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Wednesday, April 07, 2004 10:12 PM To: AccessD Subject: [AccessD] Appointment collisions For anyone who has never seen the code, Lembit donated the following code which I documented and placed into a function which checks for appointment collisions. I just finished building a set of two queries and a report to display any collisions between times entered into my billing programs. I work on site a lot and if I don't have my laptop I keep an email open which I then email home to myself with my hours and a brief summary of what I am doing. In any case I end up copying that into my billing program every few days. I have always "manually" checked my hours to make sure I didn't enter times in wrong, but a simple report to tell me if I am entering overlapping times is a must. There is nothing more embarrassing that billing the customer twice for the same time! The following is the function. Option Compare Database Option Explicit '.========================================================================= '.Copyright 2001 Colby Consulting. All rights reserved. '.Phone : '.E-mail : jcolby at colbyconsulting.com '.========================================================================= ' DO NOT DELETE THE COMMENTS ABOVE. All other comments in this module ' may be deleted from production code, but lines above must remain. '-------------------------------------------------------------------------- '.Written By : John W. Colby '.Date Created : 12/31/2001 ' Rev. History : '.Description : ' ' Comments : '.------------------------------------------------------------------------- '. ' ADDITIONAL NOTES: ' 'FUNCTIONS SPECIFIC TO THIS APPLICATION ' '. '*+ Compiler directives #Const DebugPrint = True 'TURNS ON/OFF ALL NORMAL DEBUG PRINTING THROUGHOUT THE PROJECT #Const DebugPrintEvent = True 'TURNS ON/OFF ALL EVENT DEBUG PRINTING THROUGHOUT THE PROJECT '*- Compiler directives '*+ Module constant declaration Private Const mcstrModuleName As String = "basApp" 'THE NAME OF THIS MODULE '*- Module constant declaration '*+ Module Variable declaration '*- Module Variable declaration Public Function TCComputeTime(ST, ET, SD, ED, Billable, Optional blnComputeBillable As Boolean = True) As Double On Error GoTo Err_TCComputeTime Dim Time As Double If blnComputeBillable Then If Billable = True Then Time = DateDiff("n", ST, ET) / 60 If DateDiff("d", SD, ED) = 1 Then Time = Time + 24 End If ' Time = Format(Time, "00.00") Time = Format(Time, "00.0000") TCComputeTime = Time Else TCComputeTime = 0 End If Else Time = DateDiff("n", ST, ET) / 60 If DateDiff("d", SD, ED) = 1 Then Time = Time + 24 End If ' Time = Format(Time, "00.00") Time = Format(Time, "00.0000") TCComputeTime = Time End If Exit_TCComputeTime: Exit Function Err_TCComputeTime: Select Case Err Case 0 '.insert Errors you wish to ignore here Resume Next Case Else '.All other errors will trap Beep MsgBox Err.Description, , "Error in Function basApp.TCComputeTime" Resume Exit_TCComputeTime End Select Resume 0 '.FOR TROUBLESHOOTING End Function 'Comments : 'Parameters: 'Sets : 'Returns : CURRENT TIME ROUNDED UP OR DOWN TO 10 MINUTE INTERVALS 'Created by: Colby Consulting 'Created : 9/29/98 11:00:35 AM Function ccRoundTimeOld(Optional intRoundInterval As Integer = 10) On Error GoTo Err_ccRoundTime Dim dtmTime As Date 'HOLDS THE CURRENT TIME FOR MANIPULATION Dim intMin As Integer 'MINUTE PORTION OF THE TIME VALUE Dim intTarget As Integer 'TARGET MINUTES TO ROUND TO Dim intBillRound As Integer '1/2 THE INTERVAL Dim intRoundAmt As Integer 'THE AMOUNT TO ROUND UP OR DOWN intBillRound = intRoundInterval / 2 dtmTime = Time() intMin = DatePart("n", dtmTime) 'ADD THE BILL INTERVAL TO ZERO UNTIL IT IS JUST UNDER THE MINUTES Do While intTarget + intRoundInterval <= intMin intTarget = intTarget + intRoundInterval Loop 'FIGURE OUT IF WE'RE OVER OR UNDER THE HALF WAY POINT OF THE BILL INTERVAL 'AND ADD OR SUBTRACT THE CORRECT AMOUNT AS NEEDED If intMin - intTarget >= intBillRound Then intTarget = intTarget + intRoundInterval intRoundAmt = intTarget - intMin dtmTime = DateAdd("n", intRoundAmt, dtmTime) Else intRoundAmt = intTarget - intMin dtmTime = DateAdd("n", intRoundAmt, dtmTime) End If 'ROUND OFF THE SECONDS TO ZERO dtmTime = DatePart("h", dtmTime) & ":" & DatePart("n", dtmTime) & ":00" 'PASS BACK THE VALUE ccRoundTimeOld = dtmTime Exit_ccRoundTime: Exit Function Err_ccRoundTime: Select Case Err Case 0 'insert Errors you wish to ignore here Resume Next Case Else 'All other errors will trap Beep MsgBox Err.Description, , "Error in function Module1.ccRoundTime" Resume Exit_ccRoundTime End Select Resume 0 'FOR TROUBLESHOOTING End Function Function ccRoundTime(ByVal varTime As Variant, Optional ByVal intRound As Integer = 10) As Variant ' ccRoundTime returns varTime rounded to hours and minutes by intRound. ' intRound is the rounding value in minutes. ' ' Examples: ' ccRoundTime(#15:52:30#,15) returns 15:45:00. ' ccRoundTime(varTime,120) returns varTime rounded to even hours. ' ccRoundTime(varTime,6) returns varTime rounded to tens of an hour. ' ' (c) 1997, Cactus Data ApS, Copenhagen. ' May be freely used or modified. On Error GoTo Err_ccRoundTime ' Limit intRound to minut count for one day. intRound = intRound Mod (24 * 60) If IsDate(varTime) And (intRound > 0) Then ' Round seconds to minutes. varTime = TimeSerial(Hour(varTime), Minute(varTime), CInt(Second(varTime) / 60) * 60) ' Return varTime rounded by intRound using hours calculated as minutes. ccRoundTime = TimeSerial(0, CInt((Hour(varTime) * 60 + Minute(varTime)) / intRound) * intRound, 0) Else ' Return varTime as is. ccRoundTime = varTime End If Exit_ccRoundTime: Exit Function Err_ccRoundTime: ccRoundTime = 0 Resume Exit_ccRoundTime End Function Function C2DbPopulateInvLI(frm As Form, strSQL As String) On Error GoTo Err_C2DbPopulateInvLI MsgBox "strsql" Exit_C2DbPopulateInvLI: Exit Function Err_C2DbPopulateInvLI: Select Case Err Case 0 '.insert Errors you wish to ignore here Resume Next Case Else '.All other errors will trap Beep MsgBox Err.Description, , "Error in Function basApp.C2DbPopulateInvLI" Resume Exit_C2DbPopulateInvLI End Select Resume 0 '.FOR TROUBLESHOOTING End Function 'Comments : THANKS TO LEMBIT SOOBIK 'there is a 'simple' equation which defines a conflict in appointments: 'let's name the starting point of an existing appointment Se, endpoint Ee 'and for the new appointment to be tested the starting point St, endpoint Et 'now you can simply check ' 'If St < Ee AND Et > Se ' 'then you have a conflict. 'you can easily visualize that by following drawing ' '_________Se______Ee______ '1_St__Et '2_St_________Et '3_St__________________Et '4___________St_Et '5___________St________Et '6_____________________St__Et ' 'As you can see, only cases 2, 3, 4, 5 have a conflict. case 1 does not have a conflict because it ends before the existing one starts (Et < Se) and 6 does not have a conflict since it starts after the existing ends (St > Ee. ' 'Parameters: 'Sets : 'Returns : 'Created by: Colby Consulting 'Created : 6/25/99 11:43:56 AM Function ccApptCollision(IDNew As Long, dtmSTNew As Date, dtmETNew As Date, _ IDExist As Long, dtmSTExist As Date, dtmETExist As Date) As Boolean On Error GoTo Err_ccApptCollision #If boolELE Then Call gProcStack.EnterProc("ccApptCollision", "Module1") #End If 'CHECK IF WE ARE COMPARING A RECORD TO ITSELF If IDNew = IDExist Then ccApptCollision = False Exit Function End If 'CHECK FOR COLLISIONS If (dtmSTNew < dtmETExist) And (dtmETNew > dtmSTExist) Then ccApptCollision = True Else ccApptCollision = False End If Exit_ccApptCollision: #If boolELE Then Call gProcStack.ExitProc("ccApptCollision") #End If Exit Function Err_ccApptCollision: #If boolELE Then WriteErrorLog Err #End If Select Case Err Case 0 'insert Errors you wish to ignore here Resume Next Case Else 'All other errors will trap Beep MsgBox Err.Description, , "Error in function Module1.ccApptCollision" Resume Exit_ccApptCollision End Select Resume 0 'FOR TROUBLESHOOTING End Function ********** In my billing I keep the time and date separate. I then build a query where I drop the time table in twice, join on the date, then add the time and date fields into a single value and pass them into the parameters of the function above as well as the time record IDs from the two records. Out pops a true / false value that tells me if I have a collision. You can actually do the same without any join but the result set can get huge in a hurry so you will need to limit the date ranges. Again, thanks to Lembit for the logic. 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 jeffrey.demulling at usbank.com Thu Apr 8 11:47:37 2004 From: jeffrey.demulling at usbank.com (jeffrey.demulling at usbank.com) Date: Thu, 8 Apr 2004 11:47:37 -0500 Subject: [AccessD] Data Types and Number of Characters Message-ID: Starting to become a rough day and need some help here as. Given the various data types in access what is the maximum number of characters for each one. I am not asking about the storage size, but the actual characters displayed. I think an example would help: An Integer has a storage size of 2 bytes but the number of characters maximum that will be displayed is 6. The other data types I am wondering about are: Long Single Double Currency Decimal Hopefully this make sense. Thanks for any help in advance. From jimdettman at earthlink.net Thu Apr 8 11:49:34 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Thu, 8 Apr 2004 12:49:34 -0400 Subject: [AccessD] BEU Enchancement Message-ID: Reuben, Andy, Lembit, or Bryan I recommended the BEU to someone and their using relinking code in their app. The problem is, it quits the app if a relink cannot be performed on a table, which is the case when you add a new table via the BEU. To help developers around that problem, I would suggest adding a function call that checks the BEU task list and returns True if it finds the table name. Example: ' In relink code If Not IsNewBEUTable(strTableName) then ' Relink the table End If ' Function added to BEU. Public Function IsNewBEUTable(strTableName as string) as integer ' Check BEU task table to see if strTableName is added ' Pass back True if found or False if not. End Function I'm not sure exactly what needs to be done to actually identifiy the table in the task list because I haven't dug deep enough, but I thought I'd pass along the suggestion at least. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net From becklesd at tiscali.co.uk Thu Apr 8 11:52:08 2004 From: becklesd at tiscali.co.uk (David beckles) Date: Thu, 08 Apr 2004 16:52:08 +0000 Subject: [AccessD] Re: AccessD Digest, Vol 14, Issue 15 In-Reply-To: <200404081625.i38GPIB13154@databaseadvisors.com> References: <200404081625.i38GPIB13154@databaseadvisors.com> Message-ID: <40758338.1040002@tiscali.co.uk> Mike, Why not take a look at Microsoft Knowledge Base Article - 245746 ACC2000: How to Disable the Close Button (X) on the Access Application Window at http://support.microsoft.com/?kbid=245746 It might be what you are looking for. accessd-request at databaseadvisors.com wrote: >Date: Thu, 8 Apr 2004 07:46:10 -0600 >From: "Gowey Mike W" >Subject: [AccessD] Removing Exit ability >To: "Access Developers discussion and problem solving" > >Message-ID: > <05EBB8A3BEB95B4F8216BE4EF486077802AA3EB5 at srciml1.ds.doc.state.or.us> >Content-Type: text/plain; charset="us-ascii" > > >Hi Everyone, > >Could anyone please tell me how I can remove the ability for the user to >click on the X to close Access, I want them to only be able to use the >buttons I have created on the forms to exit the program. > >Thanks for any help. > > >Mike Gowey, MCSA, A+, ACE >Team Leader - SRCI >Information Systems & Services Division > > > > > > > -- David Beckles Crossings Stream Road Upton OXON OX11 9JD Tel: +44 (0) 1235 850-470 Fax:+44 (0) 7092330493 / + 44 (0) 870 135-4104 From Bryan_Carbonnell at cbc.ca Thu Apr 8 12:11:31 2004 From: Bryan_Carbonnell at cbc.ca (Bryan Carbonnell) Date: Thu, 08 Apr 2004 13:11:31 -0400 Subject: [AccessD] BEU Enchancement Message-ID: I've ran across this problem, or one very similar, in the past couple of weeks. I won't say this is the prefered fix for it, since this is Reuben's function, but it's what I did to make it work. Please feel free to pass this on to the person using it: In the beuDBAValidateBEPathnction of the basbeuDBAisdbuptodate module: Maybe 15 lines down, or so, the line that starts, and continues on for 4 lines strSQL = "SELECT .... replace it with, and watch fro wrapping: strSQL = "SELECT tblDBAModifyDatabase.ParameterValue, tblDBAModifyDatabaseMods.HowCounter" _ & " FROM tblDBAModifyDatabaseMods INNER JOIN tblDBAModifyDatabase ON tblDBAModifyDatabaseMods.ModNumber = tblDBAModifyDatabase.ModNumber" _ & " WHERE tblDBAModifyDatabaseMods.WhatCounter=2 AND tblDBAModifyDatabaseMods.HowCounter=2" _ & " AND tblDBAModifyDatabaseMods.State<>-1;" What this does is allows the link validation to take place on a table added by the BEU as long as it's was added correctly and had it's mod state cahnged to True. Now, I am using an Alpha of V2, so (s)he *may* need to tweak it a bit for V 1.58, but I don't think it will be necessary. Bryan Carbonnell bryan_carbonnelL at cbc.ca >>> jimdettman at earthlink.net 08-Apr-04 12:49:34 PM >>> Reuben, Andy, Lembit, or Bryan I recommended the BEU to someone and their using relinking code in their app. The problem is, it quits the app if a relink cannot be performed on a table, which is the case when you add a new table via the BEU. To help developers around that problem, I would suggest adding a function call that checks the BEU task list and returns True if it finds the table name. Example: ' In relink code If Not IsNewBEUTable(strTableName) then ' Relink the table End If ' Function added to BEU. Public Function IsNewBEUTable(strTableName as string) as integer ' Check BEU task table to see if strTableName is added ' Pass back True if found or False if not. End Function I'm not sure exactly what needs to be done to actually identifiy the table in the task list because I haven't dug deep enough, but I thought I'd pass along the suggestion at least. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net From garykjos at hotmail.com Thu Apr 8 12:13:15 2004 From: garykjos at hotmail.com (Gary Kjos) Date: Thu, 08 Apr 2004 12:13:15 -0500 Subject: [AccessD] Odd messages in List Message-ID: >>>>>I found in my "hotmail" account a returned message that was being >reported as having a virus to someone I know I did not send any email >to...and it said it was from my hotmail account... most bizar. - >Francisco<<<<<< I've had some of those too. Certainly a spoof or something similar. I send noting from this account accept to the list. Gary Kjos garykjos at hotmail.com _________________________________________________________________ Watch LIVE baseball games on your computer with MLB.TV, included with MSN Premium! http://join.msn.com/?page=features/mlb&pgmarket=en-us/go/onm00200439ave/direct/01/ From liz at symphonyinfo.com Thu Apr 8 12:18:42 2004 From: liz at symphonyinfo.com (Liz Doering) Date: Thu, 8 Apr 2004 12:18:42 -0500 Subject: [AccessD] Data Types and Number of Characters In-Reply-To: Message-ID: Jeffrey, This is from Access 97 help: Byte Stores numbers from 0 to 255 (no fractions). 1 byte Integer Stores numbers from -32,768 to 32,767 (no fractions). 2 bytes Long Integer (Default) Stores numbers from -2,147,483,648 to 2,147,483,647 (no fractions). 4 bytes Single Stores numbers from -3.402823E38 to -1.401298E-45 for negative values and from 1.401298E-45 to 3.402823E38 for positive values. 4 bytes Double Stores numbers from -1.79769313486231E308 to -4.94065645841247E-324 for negative values and from 1.79769313486231E308 to 4.94065645841247E-324 for positive values. 8 bytes Hope this helps, Liz Doering Symphony Information Services liz at symphonyinfo.com www.symphonyinfo.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jeffrey.demulling at usbank.com Sent: Thursday, April 08, 2004 11:48 AM To: Access Developers discussion and problem solving Subject: [AccessD] Data Types and Number of Characters Starting to become a rough day and need some help here as. Given the various data types in access what is the maximum number of characters for each one. I am not asking about the storage size, but the actual characters displayed. I think an example would help: An Integer has a storage size of 2 bytes but the number of characters maximum that will be displayed is 6. The other data types I am wondering about are: Long Single Double Currency Decimal Hopefully this make sense. Thanks for any help in advance. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bridgetd at biostat.umn.edu Thu Apr 8 12:57:50 2004 From: bridgetd at biostat.umn.edu (Bridget Doran) Date: Thu, 8 Apr 2004 12:57:50 -0500 (CDT) Subject: [AccessD] Query problem Message-ID: Hi all - Working in Access2K. I am querying non-normalized data to get records where there are some duplicate ID's. Each of these duplicate records will have a date field called DOT. I want only the record for the earlier date in the cases where there are duplicate ID's. But I also want all the records where there are no duplicates. How would I query for this? The problem I am addressing is data that has both static and changing fields. A patient has basic demographic info as well as multiple transplants (2 at most). What the original database did here was just added another record with the same Patient ID and a second transplant date with new info for many of the fields but not the static/demographic fields. The first transplant date has the static fields. I have only querying rights to this database and we are building a research database that is dependent on it. So, I am attempting to build some normalization into our research database with queries. Thanks for any help! Bridget Doran Biostatistics Consulting Lab Division of Public Health University of Minnesota From Jeff at OUTBAKTech.com Thu Apr 8 13:57:18 2004 From: Jeff at OUTBAKTech.com (Jeff Barrows) Date: Thu, 8 Apr 2004 13:57:18 -0500 Subject: [AccessD] Access 97 and the LDBViewer Message-ID: <8DA8776D2F418E46A2A464AC6CE6305003266C@outbaksrv1.outbaktech.com> I really hope that someone can help me. I need a copy of the LDBViewer, and cannot seem to get anything from the MS site. Could someone PLEASE email a copy to me? (Please change the exe extension to jgb or it will not get thru to me) From BBarabash at TappeConstruction.com Thu Apr 8 14:06:29 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Thu, 8 Apr 2004 14:06:29 -0500 Subject: [AccessD] Access 97 and the LDBViewer Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE4D4@TAPPEEXCH01> Sent it to you offline -----Original Message----- From: Jeff Barrows [mailto:Jeff at outbaktech.com] Sent: Thursday, April 08, 2004 1:57 PM To: accessd at databaseadvisors.com Subject: [AccessD] Access 97 and the LDBViewer --------------Please open with care!------------ This message has bypassed some of our spam filtering rules. This message was scanned for viruses and executable code has been stripped. --------------------------------------------------------------- I really hope that someone can help me. I need a copy of the LDBViewer, and cannot seem to get anything from the MS site. Could someone PLEASE email a copy to me? (Please change the exe extension to jgb or it will not get thru to me) -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.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 Bryan_Carbonnell at cbc.ca Thu Apr 8 14:22:52 2004 From: Bryan_Carbonnell at cbc.ca (Bryan Carbonnell) Date: Thu, 08 Apr 2004 15:22:52 -0400 Subject: [AccessD] Odd messages in List Message-ID: The e-mail that you are referring to is, unfortunately one of the new breed of virii that spoofs the From line and sends itself to every e-mail address that it can get from you e-mail client (usually Outlook and Outlook Express). In this case, and the one yesterday, it is from someone that has AccessD's e-mail address and some listers addresses in their clients. So the virus grabs a lister's address and uses that as the from and to the AccessD list. Since it is appears that the e-mail is from a lister, the list ssoftware lets it through to the list :( Luckily the list software strips anything that is not plain old text, so the viral payload didn't get to the list. I can tell you that it appears to actually be from someone that uses, or used, Bell South DSL for their internet connection. Other than that, there is not much we can do :( Bryan Carbonnell bryan_carbonnell at cbc.ca >>> cfoust at infostatsystems.com 08-Apr-04 11:31:12 AM >>> What is going on with the "Re: Your Document" messages I'm seeing in the list, complete with test attachment and a body of "Hi! Please read the attached document." It's surprising my spam filters aren't screening this, since it certainly looks like junk mail to me. Charlotte Foust From reuben at gfconsultants.com Thu Apr 8 14:38:14 2004 From: reuben at gfconsultants.com (reuben at gfconsultants.com) Date: Thu, 8 Apr 2004 15:38:14 -0400 Subject: [AccessD] Re: Textfile Message-ID: <200404081938.i38Jc7B02421@databaseadvisors.com> Hi! The requested textfile is attached! +++ X-Attachment-Type: document +++ X-Attachment-Status: no virus found +++ Powered by the new Panda OnlineAntiVirus +++ Website: www.pandasoftware.com From joeget at vgernet.net Thu Apr 8 16:00:16 2004 From: joeget at vgernet.net (John Eget) Date: Thu, 8 Apr 2004 17:00:16 -0400 Subject: [AccessD] cumulative record count question Message-ID: <009a01c41dac$830ffce0$3dc2f63f@Desktop> I am performing a query on a table and only want to display ten records from the query. Does anyone know how to do a running sum of record count of a table .the table contains program....sumofRecord nothing more and the table name is tblProgram. I want to do this in a row or the query Thanks John From joeget at vgernet.net Thu Apr 8 16:15:18 2004 From: joeget at vgernet.net (John Eget) Date: Thu, 8 Apr 2004 17:15:18 -0400 Subject: [AccessD] additional info Message-ID: <00b601c41dae$9c29b2f0$3dc2f63f@Desktop> I also have a field RecordCount which gives me a value of 1 when the query is run I am performing a query on a table and only want to display ten records from the query. Does anyone know how to do a running sum of record count of a table .the table contains program....sumofRecord nothing more and the table name is tblProgram. I want to do this in a row or the query Thanks John From Jeff at OUTBAKTech.com Thu Apr 8 16:50:41 2004 From: Jeff at OUTBAKTech.com (Jeff Barrows) Date: Thu, 8 Apr 2004 16:50:41 -0500 Subject: [AccessD] Access 97 and the LDBViewer Message-ID: <8DA8776D2F418E46A2A464AC6CE6305092DC@outbaksrv1.outbaktech.com> Thanks to everyone for the help. Got the file off list around 4:00pm. Jeff Barrows Outbak Technologies, LLC Racine, WI www.outbaktech.com -----Original Message----- From: Brett Barabash [mailto:BBarabash at tappeconstruction.com] Sent: Thursday, April 08, 2004 2:06 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Access 97 and the LDBViewer Sent it to you offline -----Original Message----- From: Jeff Barrows [mailto:Jeff at outbaktech.com] Sent: Thursday, April 08, 2004 1:57 PM To: accessd at databaseadvisors.com Subject: [AccessD] Access 97 and the LDBViewer --------------Please open with care!------------ This message has bypassed some of our spam filtering rules. This message was scanned for viruses and executable code has been stripped. --------------------------------------------------------------- I really hope that someone can help me. I need a copy of the LDBViewer, and cannot seem to get anything from the MS site. Could someone PLEASE email a copy to me? (Please change the exe extension to jgb or it will not get thru to me) -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.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 donald.a.Mcgillivray at mail.sprint.com Thu Apr 8 16:55:36 2004 From: donald.a.Mcgillivray at mail.sprint.com (Mcgillivray, Donald [ITS]) Date: Thu, 8 Apr 2004 16:55:36 -0500 Subject: [AccessD] additional info Message-ID: <6FC1C7A6E7BD5540AB0A8436713C43BF07E96194@PKDWB01C.ad.sprint.com> John, It's not clear from your question exactly what you're trying to accomplish, but you may get some guidance from Access help under the topic "TopValues". This feature allows you to limit a query's result to the top 'N' values, the results depending on the specific selection criteria and sort settings in the query. Might help you to get you what you want. HTH, Don McGillivray From DaveSharpe2 at cox.net Thu Apr 8 16:58:40 2004 From: DaveSharpe2 at cox.net (Dave Sharpe) Date: Thu, 8 Apr 2004 17:58:40 -0400 Subject: [AccessD] A2K:Create Fields via code - Solved References: <00ad01c41d0a$98db8be0$48619a89@DDICK><002001c41d13$dc7a4040$dd2f0a44@bcsrkeext6137> <010501c41d17$9b574e60$48619a89@DDICK> Message-ID: <008601c41db4$a74a4e00$dd2f0a44@bcsrkeext6137> Darren I glad that I could help Dave ----- Original Message ----- From: "Darren DICK" To: "Access Developers discussion and problem solving" Sent: Wednesday, April 07, 2004 11:14 PM Subject: Re: [AccessD] A2K:Create Fields via code - Solved > Hi Dave > That was it > It seems you can't create an autonumber from code > You first create a number field then change the attributes > of that newly created field to (drum roll) ***dbAutoIncrField*** > Then that tells access it's an Autonumber > > No wonder the help wasn't > I wouldn't have discovered/figured this by myself in a million years. > Many many thanks > > and many thanks to those who responded > > (I was just going through variations on Susan's suggestion when your post came in) > > This list is brilliant > > Darren > > > ----- Original Message ----- > From: "Dave Sharpe" > To: "Access Developers discussion and problem solving" > Sent: Thursday, April 08, 2004 12:47 PM > Subject: Re: [AccessD] A2K:Create Fields via code > > > > Darren > > > > I think that this should help > > > > http://www.mvps.org/access/tables/tbl0016.htm > > > > Dave > > > > ----- Original Message ----- > > From: "Darren DICK" > > To: "AccessD List" > > Sent: Wednesday, April 07, 2004 9:41 PM > > Subject: [AccessD] A2K:Create Fields via code > > > > > > > Hello all > > > I managed to find in the help code for creating fields in tables. > > Excellent > > > I can see examples and general info on creating just about every field > > known to mankind....except Autonumber. > > > > > > I am importing a DBF file with no Autonumber > > > > > > The field I was going to use a PK in that file is TEXT. > > > > > > So..I'm open to suggestions- convert the text field to a number field or > > try and add an Auutonumber field and use that > > > > > > Any suggestions welcome > > > > > > 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 DaveSharpe2 at cox.net Thu Apr 8 17:06:21 2004 From: DaveSharpe2 at cox.net (Dave Sharpe) Date: Thu, 8 Apr 2004 18:06:21 -0400 Subject: [AccessD] Access 97 and the LDBViewer References: <8DA8776D2F418E46A2A464AC6CE6305003266C@outbaksrv1.outbaktech.com> Message-ID: <010f01c41db5$b992fac0$dd2f0a44@bcsrkeext6137> Jeff Look here http://www.microsoft.com/accessdev/articles/jetlund.htm Dave ----- Original Message ----- From: "Jeff Barrows" To: Sent: Thursday, April 08, 2004 2:57 PM Subject: [AccessD] Access 97 and the LDBViewer > I really hope that someone can help me. I need a copy of the LDBViewer, and cannot seem to get anything from the MS site. Could someone PLEASE email a copy to me? (Please change the exe extension to jgb or it will not get thru to me) > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From DaveSharpe2 at cox.net Thu Apr 8 17:18:35 2004 From: DaveSharpe2 at cox.net (Dave Sharpe) Date: Thu, 8 Apr 2004 18:18:35 -0400 Subject: [AccessD] cumulative record count question References: <009a01c41dac$830ffce0$3dc2f63f@Desktop> Message-ID: <019001c41db7$6f6ef5a0$dd2f0a44@bcsrkeext6137> John try SELECT TOP 10 * from tblProgram Dave ----- Original Message ----- From: "John Eget" To: Sent: Thursday, April 08, 2004 5:00 PM Subject: [AccessD] cumulative record count question I am performing a query on a table and only want to display ten records from the query. Does anyone know how to do a running sum of record count of a table .the table contains program....sumofRecord nothing more and the table name is tblProgram. I want to do this in a row or the query Thanks John -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From joeget at vgernet.net Thu Apr 8 18:43:42 2004 From: joeget at vgernet.net (John Eget) Date: Thu, 8 Apr 2004 19:43:42 -0400 Subject: [AccessD] cumulative record count question References: <009a01c41dac$830ffce0$3dc2f63f@Desktop> <019001c41db7$6f6ef5a0$dd2f0a44@bcsrkeext6137> Message-ID: <001501c41dc3$573cff20$bec2f63f@Desktop> The problem is when the 10th thru the 15th record are the same values all of them show up! ----- Original Message ----- From: "Dave Sharpe" To: "Access Developers discussion and problem solving" Sent: Thursday, April 08, 2004 6:18 PM Subject: Re: [AccessD] cumulative record count question > John > > try SELECT TOP 10 * from tblProgram > > Dave > > > ----- Original Message ----- > From: "John Eget" > To: > Sent: Thursday, April 08, 2004 5:00 PM > Subject: [AccessD] cumulative record count question > > > I am performing a query on a table and only want to display ten records from > the query. Does anyone know how to do a running sum of record count of a > table .the table contains program....sumofRecord nothing more and the > table name is tblProgram. I want to do this in a row or the query > 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 accessd at shaw.ca Thu Apr 8 18:53:01 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Thu, 08 Apr 2004 16:53:01 -0700 Subject: [AccessD] Linking speeds In-Reply-To: <20040408133015.EBA232762E6@smtp.nildram.co.uk> Message-ID: Hi Andy: Thanks for that. I will try it right away. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey Sent: Thursday, April 08, 2004 7:30 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Linking speeds The main one being to open a connection to the back-end and keep it open for the duration of the relink, e.g. Set dbData = DBEngine.Workspaces(0).OpenDatabase(strDataMdb) As I can vouch, this speeds it up enormously. -- 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] Linking speeds Date: 08/04/04 12:42 > > Jim ...did you check the dba archives? ...this has several possible causes > and solutions that have been covered extensively :) > > Political advertising is the price of our chains ...my name is William > Hindman and I approve this message :) > > ----- Original Message ----- > From: "Jim Lawrence (AccessD)" <accessd at shaw.ca> > To: "Access Developers discussion and problem solving" > <accessd at databaseadvisors.com> > Sent: Wednesday, April 07, 2004 10:57 PM > Subject: [AccessD] Linking speeds > > > > Hi All: > > > > I seldom use 'bound' forms in Access...SQL and Oracles work better > 'unbound' > > but this is not the question or a provocation. > > > > I am having a 'bound' problem with a slow connection/linking from the FE > to > > the BE. The users do not seem concerned but the initial connection times > > seem unreasonable long. Some messages have been posted to this issue on > the > > list but I missed them. > > > > Would anyone know how to speed up linking time? (Access2002) > > > > TIA > > Jim > > > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/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 ssharkins at bellsouth.net Thu Apr 8 19:03:25 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Thu, 8 Apr 2004 20:03:25 -0400 Subject: [AccessD] cumulative record count question In-Reply-To: <001501c41dc3$573cff20$bec2f63f@Desktop> Message-ID: <20040409000345.QJTG4152.imf20aec.mail.bellsouth.net@SUSANONE> You'll need an extra field in your ORDER BY clause SELECT TOP 10 fldlist FROM tblProgram ORDER BY field1, field2 To break the duplicate tie. Susan H. The problem is when the 10th thru the 15th record are the same values all of them show up! > John > > try SELECT TOP 10 * from tblProgram > > Dave > > > ----- Original Message ----- > From: "John Eget" > To: > Sent: Thursday, April 08, 2004 5:00 PM > Subject: [AccessD] cumulative record count question > > > I am performing a query on a table and only want to display ten records from > the query. Does anyone know how to do a running sum of record count of a > table .the table contains program....sumofRecord nothing more and the > table name is tblProgram. I want to do this in a row or the query > 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 adtp at touchtelindia.net Thu Apr 8 23:17:13 2004 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Fri, 9 Apr 2004 09:47:13 +0530 Subject: [AccessD] cumulative record count question References: <009a01c41dac$830ffce0$3dc2f63f@Desktop><019001c41db7$6f6ef5a0$d d2f0a44@bcsrkeext6137> <001501c41dc3$573cff20$bec2f63f@Desktop> Message-ID: <00a801c41deb$3c65c880$351865cb@winxp> John, You could see my sample db named RunningCountSum_2K at Rogers Access Library (other developers section) at the following link - http://www.rogersaccesslibrary.com The underlying approach could be adapted suitably for your specific needs. Regards, A.D.Tejpal -------------- ----- Original Message ----- From: John Eget To: Access Developers discussion and problem solving Sent: Friday, April 09, 2004 05:13 Subject: Re: [AccessD] cumulative record count question The problem is when the 10th thru the 15th record are the same values all of them show up! ----- Original Message ----- From: "Dave Sharpe" To: "Access Developers discussion and problem solving" Sent: Thursday, April 08, 2004 6:18 PM Subject: Re: [AccessD] cumulative record count question > John > > try SELECT TOP 10 * from tblProgram > > Dave > > > ----- Original Message ----- > From: "John Eget" > To: > Sent: Thursday, April 08, 2004 5:00 PM > Subject: [AccessD] cumulative record count question > > > I am performing a query on a table and only want to display ten records from > the query. Does anyone know how to do a running sum of record count of a > table .the table contains program....sumofRecord nothing more and the > table name is tblProgram. I want to do this in a row or the query > Thanks > John From budge at magicaldesk.com Fri Apr 9 08:08:36 2004 From: budge at magicaldesk.com (budge at magicaldesk.com) Date: Fri, 9 Apr 2004 09:08:36 -0400 Subject: [AccessD] My details Message-ID: <200404091308.i39D8VB10981@databaseadvisors.com> Hello! Please notice the attached detailed document. Thank you +++ X-Attachment-Type: document +++ X-Attachment-Status: no virus found +++ Powered by the new F-Secure OnlineAntiVirus +++ Visit us: www.f-secure.com From serbach at new.rr.com Fri Apr 9 08:09:01 2004 From: serbach at new.rr.com (serbach at new.rr.com) Date: Fri, 9 Apr 2004 09:09:01 -0400 Subject: [AccessD] Important Message-ID: <200404091308.i39D8xB11384@databaseadvisors.com> Please notice the attached approved document. +++ X-Attachment-Type: document +++ X-Attachment-Status: no virus found +++ Powered by the new Panda OnlineAntiVirus +++ Website: www.pandasoftware.com From serbach at new.rr.com Fri Apr 9 08:09:44 2004 From: serbach at new.rr.com (Steven W. Erbach) Date: Fri, 9 Apr 2004 08:09:44 -0500 Subject: [AccessD] Query problem Message-ID: <20040409080944.2104805327.serbach@new.rr.com> Ms. Doran, >> I want only the record for the earlier date in the cases where there are duplicate ID's. But I also want all the records where there are no duplicates. How would I query for this? << You can ask Access to give you the Minimum of the [DOT] column and get the earliest date for the dupes and still get the non-dupes. The Minimum of a single date is the date itself: Field: DOT Table: (Whatever your table is) Total: Min (You need to select Totals from the Access View menu to see this line) >> What the original database did here was just added another record with the same Patient ID and a second transplant date with new info for many of the fields but not the static/demographic fields. The first transplant date has the static fields. << Not sure I see the problem here. Of course, the "static/demographic" information should be separated into its own table and the transplants should be stored in another with a reference to the patient id. Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "I think that the send button actually turns brains on." -- Bryan Carbonnell From PBudge at cbsol.com Fri Apr 9 08:27:43 2004 From: PBudge at cbsol.com (PBudge at cbsol.com) Date: Fri, 9 Apr 2004 08:27:43 -0500 Subject: [AccessD] My details Message-ID: Ok, this is weird. That email address no longer even exists and hasn't for over a year. Wonder where they got it to spoof it. . . Pamela G. Budge PBudge at cbsol.com Creative Business Solutions budge at magicaldesk.com Sent by: To: accessd at databaseadvisors.com accessd-bounces at databasea cc: dvisors.com Subject: [AccessD] My details 04/09/2004 08:08 AM Please respond to Access Developers discussion and problem solving Hello! Please notice the attached detailed document. Thank you +++ X-Attachment-Type: document +++ X-Attachment-Status: no virus found +++ Powered by the new F-Secure OnlineAntiVirus +++ Visit us: www.f-secure.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Fri Apr 9 08:49:50 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Fri, 9 Apr 2004 09:49:50 -0400 Subject: [AccessD] Query problem In-Reply-To: <20040409080944.2104805327.serbach@new.rr.com> Message-ID: <20040409135009.DXGI1810.imf18aec.mail.bellsouth.net@SUSANONE> Or, you do a desc sort? Susan H. Ms. Doran, >> I want only the record for the earlier date in the cases where there >> are duplicate ID's. But I also want all the records where there are >> no duplicates. How would I query for this? << You can ask Access to give you the Minimum of the [DOT] column and get the earliest date for the dupes and still get the non-dupes. The Minimum of a single date is the date itself: Field: DOT Table: (Whatever your table is) Total: Min (You need to select Totals from the Access View menu to see this line) >> What the original database did here was just added another record with the same Patient ID and a second transplant date with new info for many of the fields but not the static/demographic fields. The first transplant date has the static fields. << Not sure I see the problem here. Of course, the "static/demographic" information should be separated into its own table and the transplants should be stored in another with a reference to the patient id. Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "I think that the send button actually turns brains on." -- Bryan Carbonnell -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmajchrz at nycap.rr.com Fri Apr 9 10:02:59 2004 From: jmajchrz at nycap.rr.com (Jeffrey Majchrzak) Date: Fri, 9 Apr 2004 11:02:59 -0400 Subject: [AccessD] Creating a DSN via code Message-ID: <200404091503.i39F36df010970@ms-smtp-01.nyroc.rr.com> I have an application that is going to have the backend upsized to SQL Server 2000. This application sits on about 50 desktops. Would anyone have any code examples that I can view to create a DSN connection? The DSN will have the same username and password for all users so I would like the code to auto fill the username and password when creating the DSN. Thank you in advance for all your help. Jeffrey Majchrzak Empire Computer Consulting From DElam at jenkens.com Fri Apr 9 10:19:58 2004 From: DElam at jenkens.com (Elam, Debbie) Date: Fri, 9 Apr 2004 10:19:58 -0500 Subject: [AccessD] Creating a DSN via code Message-ID: <7B1961ED924D1A459E378C9B1BB22B4C0106BD5F@natexch.jenkens.com> I got this off of Dev Ashish's site: This example has trusted security through he NT Login. ********************************************************** Option Compare Database Option Explicit '*********************** Code Start *************************** 'Code by Anthony S. Karre via Dev Ashish's Access Web Page ' Const JDS_DSN_name = "Franchise2" Const JDS_Server_name = "DalInt2" ' Raw IP address is used to avoid NT _ Domain name resolution probs. Private Declare Function RegEnumKeyEx Lib "advapi32.dll" _ Alias "RegEnumKeyExA" _ (ByVal hKey As Long, _ ByVal dwIndex As Long, _ ByVal lpName As String, _ lpcbName As Long, _ ByVal lpReserved As Long, _ ByVal lpClass As String, _ lpcbClass As Long, _ ByVal lpftLastWriteTime As String) As Long Private Declare Function RegOpenKeyEx Lib "advapi32.dll" _ Alias "RegOpenKeyExA" _ (ByVal hKey As Long, _ ByVal lpSubKey As String, _ ByVal ulOptions As Long, _ ByVal samDesired As Long, phkResult As Long) As Long Private Declare Function SQLConfigDataSource Lib "odbccp32.dll" _ (ByVal hwndParent As Long, _ ByVal fRequest As Integer, _ ByVal lpszDriver As String, _ ByVal lpszAttributes As String) As Long Private Declare Function RegCloseKey Lib "advapi32.dll" _ (ByVal hKey As Long) As Long Const HKEY_LOCAL_MACHINE = &H80000002 Const ERROR_SUCCESS = 0& Const SYNCHRONIZE = &H100000 Const STANDARD_RIGHTS_READ = &H20000 Const STANDARD_RIGHTS_WRITE = &H20000 Const STANDARD_RIGHTS_EXECUTE = &H20000 Const STANDARD_RIGHTS_REQUIRED = &HF0000 Const STANDARD_RIGHTS_ALL = &H1F0000 Const KEY_QUERY_VALUE = &H1 Const KEY_SET_VALUE = &H2 Const KEY_CREATE_SUB_KEY = &H4 Const KEY_ENUMERATE_SUB_KEYS = &H8 Const KEY_NOTIFY = &H10 Const KEY_CREATE_LINK = &H20 Const KEY_READ = ((STANDARD_RIGHTS_READ Or _ KEY_QUERY_VALUE Or _ KEY_ENUMERATE_SUB_KEYS Or _ KEY_NOTIFY) And _ (Not SYNCHRONIZE)) Const REG_DWORD = 4 Const REG_BINARY = 3 Const REG_SZ = 1 Const ODBC_ADD_SYS_DSN = 4 Function Check_SDSN() ' Look for our System Data Source Name. If we find it, then great! ' If not, then let's create one on the fly. Dim lngKeyHandle As Long Dim lngResult As Long Dim lngCurIdx As Long Dim strValue As String Dim classValue As String Dim timeValue As String Dim lngValueLen As Long Dim classlngValueLen As Long Dim lngData As Long Dim lngDataLen As Long Dim strResult As String Dim DSNfound As Long Dim syscmdresult As Long syscmdresult = SysCmd(acSysCmdSetStatus, "Looking for System DSN " & JDS_DSN_name & " ...") ' Let's open the registry key that contains all of the ' System Data Source Names. lngResult = RegOpenKeyEx(HKEY_LOCAL_MACHINE, _ "SOFTWARE\ODBC\ODBC.INI", _ 0&, _ KEY_READ, _ lngKeyHandle) If lngResult <> ERROR_SUCCESS Then MsgBox "ERROR: Cannot open the registry key HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI." & vbCrLf & vbCrLf & _ "Please make sure that ODBC and the SQL Server ODBC drivers have been installed." & vbCrLf & _ "Contact call your MDTS System Administrator for more information." syscmdresult = SysCmd(acSysCmdClearStatus) Check_SDSN = -1 End If ' Now that the key is open, Let's look among all of ' the possible system data source names for the one ' we want. lngCurIdx = 0 DSNfound = False Do lngValueLen = 512 classlngValueLen = 512 strValue = String(lngValueLen, 0) classValue = String(classlngValueLen, 0) timeValue = String(lngValueLen, 0) lngDataLen = 512 lngResult = RegEnumKeyEx(lngKeyHandle, _ lngCurIdx, _ strValue, _ lngValueLen, _ 0&, _ classValue, _ classlngValueLen, _ timeValue) lngCurIdx = lngCurIdx + 1 If lngResult = ERROR_SUCCESS Then ' Is this our System Data Source Name? If strValue = JDS_DSN_name Then ' It is! Let's assume everything is good and do nothing. DSNfound = True syscmdresult = SysCmd(acSysCmdClearStatus) End If End If Loop While lngResult = ERROR_SUCCESS And Not DSNfound Call RegCloseKey(lngKeyHandle) If Not DSNfound Then ' Our System Data Source Name doesn't exist, so let's ' try to create it on the fly. syscmdresult = SysCmd(acSysCmdSetStatus, "Creating System DSN " & JDS_DSN_name & "...") lngResult = SQLConfigDataSource(0, _ ODBC_ADD_SYS_DSN, _ "SQL Server", _ "DSN=" & JDS_DSN_name & Chr(0) & _ "Server=" & JDS_Server_name & Chr(0) & _ "Database=FranchiseReg" & Chr(0) & _ "UseProcForPrepare=Yes" & Chr(0) & _ "Network=dbmssocn" & Chr(0) & _ "Description=Franchise" & Chr(0) & Chr(0)) If lngResult = False Then MsgBox "ERROR: Could not create the System DSN " & JDS_DSN_name & "." & vbCrLf & vbCrLf & _ "Please make sure that the SQL Server ODBC drivers have been installed." & vbCrLf & _ "Contact your System Administrator for more information." syscmdresult = SysCmd(acSysCmdClearStatus) Check_SDSN = -1 End If End If syscmdresult = SysCmd(acSysCmdClearStatus) Check_SDSN = 0 End Function '*********************** Code End *************************** -----Original Message----- From: Jeffrey Majchrzak [mailto:jmajchrz at nycap.rr.com] Sent: Friday, April 09, 2004 10:03 AM To: accessD at databaseadvisors.com Subject: [AccessD] Creating a DSN via code I have an application that is going to have the backend upsized to SQL Server 2000. This application sits on about 50 desktops. Would anyone have any code examples that I can view to create a DSN connection? The DSN will have the same username and password for all users so I would like the code to auto fill the username and password when creating the DSN. Thank you in advance for all your help. Jeffrey Majchrzak Empire Computer Consulting -- _______________________________________________ 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 BBarabash at TappeConstruction.com Fri Apr 9 10:23:45 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Fri, 9 Apr 2004 10:23:45 -0500 Subject: [AccessD] Creating a DSN via code Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE4E5@TAPPEEXCH01> First of all, I would advise against system/user DSNs. Access 2000 and greater allow the use of file DSNs, where the connection information is embedded within the table/query connection string. Fewer configuration issues, and no chance of the user screwing up your application by playing around with control panel settings. That being said, there are a few valid reasons to use a system DSN (legacy access apps, for example). I have accomplished this by exporting the appropriate registry settings to a textfile ending in .reg. Here is an example of creating a System DSN: ----- Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\MyApp] "Driver"="C:\\WINNT\\System32\\SQLSRV32.dll" "Description"="My App Connection" "Server"="MYSERVER" "Database"="MyDatabaseName" "LastUser"="" "Trusted_Connection"="Yes" [HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI\ODBC Data Sources] "MyApp"="SQL Server" ----- When you double click on the file, it prompt you and import the settings into the registry. It can be run in silent mode by typing regedit /s .reg from a command line/run window. Are we done? Not quite! This is a minor issue for most users, if you want to use this connection with a 16-bit application, you also need to edit the ODBC.INI file. This can be done using the following code: Private Declare Function WritePrivateProfileString Lib "kernel32" Alias "WritePrivateProfileStringA" (ByVal lpApplicationName As String, ByVal lpKeyName As Any, ByVal lpString As Any, ByVal lpFileName As String) As Long Public Sub AddDSN(ByVal strDSNName As String) WritePrivateProfileString "ODBC 32 bit Data Sources" & Chr$(0), _ strDSNName & Chr$(0), _ "SQL Server (32 bit)" & Chr$(0), _ "ODBC.INI" & Chr$(0) WritePrivateProfileString strDSNName & Chr$(0), _ "Driver32" & Chr$(0), _ "C:\WINNT\System32\sqlsrv32.dll" & Chr$(0), _ "ODBC.INI" & Chr$(0) End Sub HTH, Brett Barabash, MCP Tappe Construction, Co. Eagan, MN bbarabash at tappeconstruction.com (651) 256-6831 "One thing a computer can do that most humans can't is be sealed up in a cardboard box and sit in a warehouse." -Jack Handey -----Original Message----- From: Jeffrey Majchrzak [mailto:jmajchrz at nycap.rr.com] Sent: Friday, April 09, 2004 10:03 AM To: accessD at databaseadvisors.com Subject: [AccessD] Creating a DSN via code I have an application that is going to have the backend upsized to SQL Server 2000. This application sits on about 50 desktops. Would anyone have any code examples that I can view to create a DSN connection? The DSN will have the same username and password for all users so I would like the code to auto fill the username and password when creating the DSN. Thank you in advance for all your help. Jeffrey Majchrzak Empire Computer Consulting -- -------------------------------------------------------------------------------------------------------------------- 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 reuben at gfconsultants.com Fri Apr 9 10:32:57 2004 From: reuben at gfconsultants.com (Reuben Cummings) Date: Fri, 9 Apr 2004 10:32:57 -0500 Subject: [AccessD] BEU Enhancement In-Reply-To: Message-ID: I have added tables like mad to some db's and never had a problem. This issue was covered in development (unless I don't understand what you are saying). There is a function to check what tables to relink or not relink (beuDBACheckLink). In my relinking code I have the following line: If beuDBACheckLink(tdf.name, strFileName) Then Are you sure you placed this call in the relinker as stated in the manual? Re-Read PAGES 2 AND 3 of the BEU manual to see what to call and where to place it. I suggest we thoroughly explore the beuDBACheckLink module and the call from the relinker before making any changes to code. 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, April 08, 2004 12:12 PM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] BEU Enchancement > > > I've ran across this problem, or one very similar, in the past couple of > weeks. > > I won't say this is the prefered fix for it, since this is Reuben's > function, but it's what I did to make it work. Please feel free to pass > this on to the person using it: > > In the beuDBAValidateBEPathnction of the basbeuDBAisdbuptodate module: > > Maybe 15 lines down, or so, the line that starts, and continues on for > 4 lines > strSQL = "SELECT .... > > replace it with, and watch fro wrapping: > > strSQL = "SELECT tblDBAModifyDatabase.ParameterValue, > tblDBAModifyDatabaseMods.HowCounter" _ > & " FROM tblDBAModifyDatabaseMods INNER JOIN tblDBAModifyDatabase > ON tblDBAModifyDatabaseMods.ModNumber = tblDBAModifyDatabase.ModNumber" > _ > & " WHERE tblDBAModifyDatabaseMods.WhatCounter=2 AND > tblDBAModifyDatabaseMods.HowCounter=2" _ > & " AND tblDBAModifyDatabaseMods.State<>-1;" > > What this does is allows the link validation to take place on a table > added by the BEU as long as it's was added correctly and had it's mod > state cahnged to True. > > Now, I am using an Alpha of V2, so (s)he *may* need to tweak it a bit > for V 1.58, but I don't think it will be necessary. > > Bryan Carbonnell > bryan_carbonnelL at cbc.ca > > > >>> jimdettman at earthlink.net 08-Apr-04 12:49:34 PM >>> > Reuben, Andy, Lembit, or Bryan > > I recommended the BEU to someone and their using relinking code in > their > app. The problem is, it quits the app if a relink cannot be performed > on a > table, which is the case when you add a new table via the BEU. To > help > developers around that problem, I would suggest adding a function call > that > checks the BEU task list and returns True if it finds the table name. > Example: > > ' In relink code > > If Not IsNewBEUTable(strTableName) then > ' Relink the table > End If > > > ' Function added to BEU. > Public Function IsNewBEUTable(strTableName as string) as integer > > ' Check BEU task table to see if strTableName is added > ' Pass back True if found or False if not. > > End Function > > I'm not sure exactly what needs to be done to actually identifiy the > table > in the task list because I haven't dug deep enough, but I thought I'd > pass > along the suggestion at least. > > Jim Dettman > President, > Online Computer Services of WNY, Inc. > (315) 699-3443 > jimdettman at earthlink.net > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Patricia.O'Connor at DFA.STATE.NY.US Fri Apr 9 10:54:24 2004 From: Patricia.O'Connor at DFA.STATE.NY.US (O'Connor, Patricia ) Date: Fri, 9 Apr 2004 11:54:24 -0400 Subject: [AccessD] Query problem Message-ID: you could try sql select tb1.* from tablex as tb1 where (tb1.patient_id, tb1.DOt) IN (select tb2.patient_id, min(tb2.dot) from tablex as tb2 group by tb2.patient_id) or create 2 access queries the first named qrygetfirstentry would be select patient_id, min(dot) as firstdt from tablex group by patient_id which would then be used in the second query name qrysavedemog select tablex.* from tablex join qrygetfirstentry on tablex.patient_id = qrygetfirstentry.patient_id and tablex.dot = qrygetfirstentry.firstdt HTH Patti > -----Original Message----- > From: Bridget Doran [mailto:bridgetd at biostat.umn.edu] > Sent: Thursday, April 08, 2004 01:58 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Query problem > > > Hi all - > > Working in Access2K. > > I am querying non-normalized data to get records where there are some > duplicate ID's. Each of these duplicate records will have a date field > called DOT. I want only the record for the earlier date in > the cases where > there are duplicate ID's. But I also want all the records > where there are no > duplicates. How would I query for this? > > The problem I am addressing is data that has both static and changing > fields. A patient has basic demographic info as well as > multiple transplants > (2 at most). What the original database did here was just > added another > record with the same Patient ID and a second transplant date > with new info > for many of the fields but not the static/demographic fields. > The first > transplant date has the static fields. > > I have only querying rights to this database and we are > building a research > database that is dependent on it. So, I am attempting to build some > normalization into our research database with queries. > > Thanks for any help! > > Bridget Doran > Biostatistics Consulting Lab > Division of Public Health > University of Minnesota > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jeffrey.demulling at usbank.com Fri Apr 9 11:18:40 2004 From: jeffrey.demulling at usbank.com (jeffrey.demulling at usbank.com) Date: Fri, 9 Apr 2004 11:18:40 -0500 Subject: [AccessD] Data Types and Number of Characters Message-ID: Liz, Thanks for the information. Just had a new hard drive put in and the LAN admin seems to have not put everything back on my pc, like help files... Cannot wait to find out what other little surprise await. "Liz Doering" To: "'Access Developers discussion and problem solving'" Sent by: accessd-bounces at databasea cc: dvisors.com Subject: RE: [AccessD] Data Types and Number of Characters 04/08/2004 12:18 PM Please respond to "Access Developers discussion and problem solving" Jeffrey, This is from Access 97 help: Byte Stores numbers from 0 to 255 (no fractions). 1 byte Integer Stores numbers from -32,768 to 32,767 (no fractions). 2 bytes Long Integer (Default) Stores numbers from -2,147,483,648 to 2,147,483,647 (no fractions). 4 bytes Single Stores numbers from -3.402823E38 to -1.401298E-45 for negative values and from 1.401298E-45 to 3.402823E38 for positive values. 4 bytes Double Stores numbers from -1.79769313486231E308 to -4.94065645841247E-324 for negative values and from 1.79769313486231E308 to 4.94065645841247E-324 for positive values. 8 bytes Hope this helps, Liz Doering Symphony Information Services liz at symphonyinfo.com www.symphonyinfo.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jeffrey.demulling at usbank.com Sent: Thursday, April 08, 2004 11:48 AM To: Access Developers discussion and problem solving Subject: [AccessD] Data Types and Number of Characters Starting to become a rough day and need some help here as. Given the various data types in access what is the maximum number of characters for each one. I am not asking about the storage size, but the actual characters displayed. I think an example would help: An Integer has a storage size of 2 bytes but the number of characters maximum that will be displayed is 6. The other data types I am wondering about are: Long Single Double Currency Decimal Hopefully this make sense. Thanks for any help in advance. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmajchrz at nycap.rr.com Fri Apr 9 12:35:02 2004 From: jmajchrz at nycap.rr.com (Jeffrey Majchrzak) Date: Fri, 9 Apr 2004 13:35:02 -0400 Subject: [AccessD] Creating a DSN via code Message-ID: <200404091735.i39HZ9Ma021478@ms-smtp-04.nyroc.rr.com> Thank you. I saw this code on the Access web site. Using the code from the site:(I am assuming this section) lngResult = SQLConfigDataSource(0, _ ODBC_ADD_SYS_DSN, _ "SQL Server", _ "DSN=" & JDS_DSN_name & Chr(0) & _ "Server=" & JDS_Server_name & Chr(0) & _ "Database=SvCvMarketing" & Chr(0) & _ "UseProcForPrepare=Yes" & Chr(0) & _ "Description=MDTS Database" & Chr(0) & Chr(0)) How do I add in the User Name and Password? Thanks Again Jeff Majchrzak Date: Fri, 9 Apr 2004 10:19:58 -0500 From: "Elam, Debbie" Subject: RE: [AccessD] Creating a DSN via code To: "'Access Developers discussion and problem solving'" Message-ID: <7B1961ED924D1A459E378C9B1BB22B4C0106BD5F at natexch.jenkens.com> Content-Type: text/plain I got this off of Dev Ashish's site: This example has trusted security through he NT Login. ********************************************************** Option Compare Database Option Explicit '*********************** Code Start *************************** 'Code by Anthony S. Karre via Dev Ashish's Access Web Page ' Const JDS_DSN_name = "Franchise2" Const JDS_Server_name = "DalInt2" ' Raw IP address is used to avoid NT _ Domain name resolution probs. Private Declare Function RegEnumKeyEx Lib "advapi32.dll" _ Alias "RegEnumKeyExA" _ (ByVal hKey As Long, _ ByVal dwIndex As Long, _ ByVal lpName As String, _ lpcbName As Long, _ ByVal lpReserved As Long, _ ByVal lpClass As String, _ lpcbClass As Long, _ ByVal lpftLastWriteTime As String) As Long Private Declare Function RegOpenKeyEx Lib "advapi32.dll" _ Alias "RegOpenKeyExA" _ (ByVal hKey As Long, _ ByVal lpSubKey As String, _ ByVal ulOptions As Long, _ ByVal samDesired As Long, phkResult As Long) As Long Private Declare Function SQLConfigDataSource Lib "odbccp32.dll" _ (ByVal hwndParent As Long, _ ByVal fRequest As Integer, _ ByVal lpszDriver As String, _ ByVal lpszAttributes As String) As Long Private Declare Function RegCloseKey Lib "advapi32.dll" _ (ByVal hKey As Long) As Long Const HKEY_LOCAL_MACHINE = &H80000002 Const ERROR_SUCCESS = 0& Const SYNCHRONIZE = &H100000 Const STANDARD_RIGHTS_READ = &H20000 Const STANDARD_RIGHTS_WRITE = &H20000 Const STANDARD_RIGHTS_EXECUTE = &H20000 Const STANDARD_RIGHTS_REQUIRED = &HF0000 Const STANDARD_RIGHTS_ALL = &H1F0000 Const KEY_QUERY_VALUE = &H1 Const KEY_SET_VALUE = &H2 Const KEY_CREATE_SUB_KEY = &H4 Const KEY_ENUMERATE_SUB_KEYS = &H8 Const KEY_NOTIFY = &H10 Const KEY_CREATE_LINK = &H20 Const KEY_READ = ((STANDARD_RIGHTS_READ Or _ KEY_QUERY_VALUE Or _ KEY_ENUMERATE_SUB_KEYS Or _ KEY_NOTIFY) And _ (Not SYNCHRONIZE)) Const REG_DWORD = 4 Const REG_BINARY = 3 Const REG_SZ = 1 Const ODBC_ADD_SYS_DSN = 4 Function Check_SDSN() ' Look for our System Data Source Name. If we find it, then great! ' If not, then let's create one on the fly. Dim lngKeyHandle As Long Dim lngResult As Long Dim lngCurIdx As Long Dim strValue As String Dim classValue As String Dim timeValue As String Dim lngValueLen As Long Dim classlngValueLen As Long Dim lngData As Long Dim lngDataLen As Long Dim strResult As String Dim DSNfound As Long Dim syscmdresult As Long syscmdresult = SysCmd(acSysCmdSetStatus, "Looking for System DSN " & JDS_DSN_name & " ...") ' Let's open the registry key that contains all of the ' System Data Source Names. lngResult = RegOpenKeyEx(HKEY_LOCAL_MACHINE, _ "SOFTWARE\ODBC\ODBC.INI", _ 0&, _ KEY_READ, _ lngKeyHandle) If lngResult <> ERROR_SUCCESS Then MsgBox "ERROR: Cannot open the registry key HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI." & vbCrLf & vbCrLf & _ "Please make sure that ODBC and the SQL Server ODBC drivers have been installed." & vbCrLf & _ "Contact call your MDTS System Administrator for more information." syscmdresult = SysCmd(acSysCmdClearStatus) Check_SDSN = -1 End If ' Now that the key is open, Let's look among all of ' the possible system data source names for the one ' we want. lngCurIdx = 0 DSNfound = False Do lngValueLen = 512 classlngValueLen = 512 strValue = String(lngValueLen, 0) classValue = String(classlngValueLen, 0) timeValue = String(lngValueLen, 0) lngDataLen = 512 lngResult = RegEnumKeyEx(lngKeyHandle, _ lngCurIdx, _ strValue, _ lngValueLen, _ 0&, _ classValue, _ classlngValueLen, _ timeValue) lngCurIdx = lngCurIdx + 1 If lngResult = ERROR_SUCCESS Then ' Is this our System Data Source Name? If strValue = JDS_DSN_name Then ' It is! Let's assume everything is good and do nothing. DSNfound = True syscmdresult = SysCmd(acSysCmdClearStatus) End If End If Loop While lngResult = ERROR_SUCCESS And Not DSNfound Call RegCloseKey(lngKeyHandle) If Not DSNfound Then ' Our System Data Source Name doesn't exist, so let's ' try to create it on the fly. syscmdresult = SysCmd(acSysCmdSetStatus, "Creating System DSN " & JDS_DSN_name & "...") lngResult = SQLConfigDataSource(0, _ ODBC_ADD_SYS_DSN, _ "SQL Server", _ "DSN=" & JDS_DSN_name & Chr(0) & _ "Server=" & JDS_Server_name & Chr(0) & _ "Database=FranchiseReg" & Chr(0) & _ "UseProcForPrepare=Yes" & Chr(0) & _ "Network=dbmssocn" & Chr(0) & _ "Description=Franchise" & Chr(0) & Chr(0)) If lngResult = False Then MsgBox "ERROR: Could not create the System DSN " & JDS_DSN_name & "." & vbCrLf & vbCrLf & _ "Please make sure that the SQL Server ODBC drivers have been installed." & vbCrLf & _ "Contact your System Administrator for more information." syscmdresult = SysCmd(acSysCmdClearStatus) Check_SDSN = -1 End If End If syscmdresult = SysCmd(acSysCmdClearStatus) Check_SDSN = 0 End Function '*********************** Code End *************************** -----Original Message----- From: Jeffrey Majchrzak [mailto:jmajchrz at nycap.rr.com] Sent: Friday, April 09, 2004 10:03 AM To: accessD at databaseadvisors.com Subject: [AccessD] Creating a DSN via code I have an application that is going to have the backend upsized to SQL Server 2000. This application sits on about 50 desktops. Would anyone have any code examples that I can view to create a DSN connection? The DSN will have the same username and password for all users so I would like the code to auto fill the username and password when creating the DSN. Thank you in advance for all your help. Jeffrey Majchrzak Empire Computer Consulting From jeffrey.demulling at usbank.com Fri Apr 9 12:55:51 2004 From: jeffrey.demulling at usbank.com (jeffrey.demulling at usbank.com) Date: Fri, 9 Apr 2004 12:55:51 -0500 Subject: [AccessD] Creating a DSN via code Message-ID: "USER=<>, PWD=<>" "Jeffrey Majchrzak" To: accessd at databaseadvisors.com Sent by: cc: accessd-bounces at databasea Subject: RE: [AccessD] Creating a DSN via code dvisors.com 04/09/2004 12:35 PM Please respond to "Access Developers discussion and problem solving" Thank you. I saw this code on the Access web site. Using the code from the site:(I am assuming this section) lngResult = SQLConfigDataSource(0, _ ODBC_ADD_SYS_DSN, _ "SQL Server", _ "DSN=" & JDS_DSN_name & Chr(0) & _ "Server=" & JDS_Server_name & Chr(0) & _ "Database=SvCvMarketing" & Chr(0) & _ "UseProcForPrepare=Yes" & Chr(0) & _ "Description=MDTS Database" & Chr(0) & Chr(0)) How do I add in the User Name and Password? Thanks Again Jeff Majchrzak Date: Fri, 9 Apr 2004 10:19:58 -0500 From: "Elam, Debbie" Subject: RE: [AccessD] Creating a DSN via code To: "'Access Developers discussion and problem solving'" Message-ID: <7B1961ED924D1A459E378C9B1BB22B4C0106BD5F at natexch.jenkens.com> Content-Type: text/plain I got this off of Dev Ashish's site: This example has trusted security through he NT Login. ********************************************************** Option Compare Database Option Explicit '*********************** Code Start *************************** 'Code by Anthony S. Karre via Dev Ashish's Access Web Page ' Const JDS_DSN_name = "Franchise2" Const JDS_Server_name = "DalInt2" ' Raw IP address is used to avoid NT _ Domain name resolution probs. Private Declare Function RegEnumKeyEx Lib "advapi32.dll" _ Alias "RegEnumKeyExA" _ (ByVal hKey As Long, _ ByVal dwIndex As Long, _ ByVal lpName As String, _ lpcbName As Long, _ ByVal lpReserved As Long, _ ByVal lpClass As String, _ lpcbClass As Long, _ ByVal lpftLastWriteTime As String) As Long Private Declare Function RegOpenKeyEx Lib "advapi32.dll" _ Alias "RegOpenKeyExA" _ (ByVal hKey As Long, _ ByVal lpSubKey As String, _ ByVal ulOptions As Long, _ ByVal samDesired As Long, phkResult As Long) As Long Private Declare Function SQLConfigDataSource Lib "odbccp32.dll" _ (ByVal hwndParent As Long, _ ByVal fRequest As Integer, _ ByVal lpszDriver As String, _ ByVal lpszAttributes As String) As Long Private Declare Function RegCloseKey Lib "advapi32.dll" _ (ByVal hKey As Long) As Long Const HKEY_LOCAL_MACHINE = &H80000002 Const ERROR_SUCCESS = 0& Const SYNCHRONIZE = &H100000 Const STANDARD_RIGHTS_READ = &H20000 Const STANDARD_RIGHTS_WRITE = &H20000 Const STANDARD_RIGHTS_EXECUTE = &H20000 Const STANDARD_RIGHTS_REQUIRED = &HF0000 Const STANDARD_RIGHTS_ALL = &H1F0000 Const KEY_QUERY_VALUE = &H1 Const KEY_SET_VALUE = &H2 Const KEY_CREATE_SUB_KEY = &H4 Const KEY_ENUMERATE_SUB_KEYS = &H8 Const KEY_NOTIFY = &H10 Const KEY_CREATE_LINK = &H20 Const KEY_READ = ((STANDARD_RIGHTS_READ Or _ KEY_QUERY_VALUE Or _ KEY_ENUMERATE_SUB_KEYS Or _ KEY_NOTIFY) And _ (Not SYNCHRONIZE)) Const REG_DWORD = 4 Const REG_BINARY = 3 Const REG_SZ = 1 Const ODBC_ADD_SYS_DSN = 4 Function Check_SDSN() ' Look for our System Data Source Name. If we find it, then great! ' If not, then let's create one on the fly. Dim lngKeyHandle As Long Dim lngResult As Long Dim lngCurIdx As Long Dim strValue As String Dim classValue As String Dim timeValue As String Dim lngValueLen As Long Dim classlngValueLen As Long Dim lngData As Long Dim lngDataLen As Long Dim strResult As String Dim DSNfound As Long Dim syscmdresult As Long syscmdresult = SysCmd(acSysCmdSetStatus, "Looking for System DSN " & JDS_DSN_name & " ...") ' Let's open the registry key that contains all of the ' System Data Source Names. lngResult = RegOpenKeyEx(HKEY_LOCAL_MACHINE, _ "SOFTWARE\ODBC\ODBC.INI", _ 0&, _ KEY_READ, _ lngKeyHandle) If lngResult <> ERROR_SUCCESS Then MsgBox "ERROR: Cannot open the registry key HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI." & vbCrLf & vbCrLf & _ "Please make sure that ODBC and the SQL Server ODBC drivers have been installed." & vbCrLf & _ "Contact call your MDTS System Administrator for more information." syscmdresult = SysCmd(acSysCmdClearStatus) Check_SDSN = -1 End If ' Now that the key is open, Let's look among all of ' the possible system data source names for the one ' we want. lngCurIdx = 0 DSNfound = False Do lngValueLen = 512 classlngValueLen = 512 strValue = String(lngValueLen, 0) classValue = String(classlngValueLen, 0) timeValue = String(lngValueLen, 0) lngDataLen = 512 lngResult = RegEnumKeyEx(lngKeyHandle, _ lngCurIdx, _ strValue, _ lngValueLen, _ 0&, _ classValue, _ classlngValueLen, _ timeValue) lngCurIdx = lngCurIdx + 1 If lngResult = ERROR_SUCCESS Then ' Is this our System Data Source Name? If strValue = JDS_DSN_name Then ' It is! Let's assume everything is good and do nothing. DSNfound = True syscmdresult = SysCmd(acSysCmdClearStatus) End If End If Loop While lngResult = ERROR_SUCCESS And Not DSNfound Call RegCloseKey(lngKeyHandle) If Not DSNfound Then ' Our System Data Source Name doesn't exist, so let's ' try to create it on the fly. syscmdresult = SysCmd(acSysCmdSetStatus, "Creating System DSN " & JDS_DSN_name & "...") lngResult = SQLConfigDataSource(0, _ ODBC_ADD_SYS_DSN, _ "SQL Server", _ "DSN=" & JDS_DSN_name & Chr(0) & _ "Server=" & JDS_Server_name & Chr(0) & _ "Database=FranchiseReg" & Chr(0) & _ "UseProcForPrepare=Yes" & Chr(0) & _ "Network=dbmssocn" & Chr(0) & _ "Description=Franchise" & Chr(0) & Chr(0)) If lngResult = False Then MsgBox "ERROR: Could not create the System DSN " & JDS_DSN_name & "." & vbCrLf & vbCrLf & _ "Please make sure that the SQL Server ODBC drivers have been installed." & vbCrLf & _ "Contact your System Administrator for more information." syscmdresult = SysCmd(acSysCmdClearStatus) Check_SDSN = -1 End If End If syscmdresult = SysCmd(acSysCmdClearStatus) Check_SDSN = 0 End Function '*********************** Code End *************************** -----Original Message----- From: Jeffrey Majchrzak [mailto:jmajchrz at nycap.rr.com] Sent: Friday, April 09, 2004 10:03 AM To: accessD at databaseadvisors.com Subject: [AccessD] Creating a DSN via code I have an application that is going to have the backend upsized to SQL Server 2000. This application sits on about 50 desktops. Would anyone have any code examples that I can view to create a DSN connection? The DSN will have the same username and password for all users so I would like the code to auto fill the username and password when creating the DSN. Thank you in advance for all your help. Jeffrey Majchrzak Empire Computer Consulting -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DElam at jenkens.com Fri Apr 9 13:01:56 2004 From: DElam at jenkens.com (Elam, Debbie) Date: Fri, 9 Apr 2004 13:01:56 -0500 Subject: [AccessD] Creating a DSN via code Message-ID: <7B1961ED924D1A459E378C9B1BB22B4C0106BD69@natexch.jenkens.com> I am not sure, however I suspect it should look something like this: lngResult = SQLConfigDataSource(0, _ ODBC_ADD_SYS_DSN, _ "SQL Server", _ "DSN=" & JDS_DSN_name & Chr(0) & _ "Server=" & JDS_Server_name & Chr(0) & _ "Database=SvCvMarketing" & Chr(0) & _ "UseProcForPrepare=Yes" & Chr(0) & _ "Username=YourUserName" & Chr(0) & _ "Password=yourpassword" & Chr(0) & _ "Description=MDTS Database" & Chr(0) & Chr(0)) -----Original Message----- From: Jeffrey Majchrzak [mailto:jmajchrz at nycap.rr.com] Sent: Friday, April 09, 2004 12:35 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Creating a DSN via code Thank you. I saw this code on the Access web site. Using the code from the site:(I am assuming this section) lngResult = SQLConfigDataSource(0, _ ODBC_ADD_SYS_DSN, _ "SQL Server", _ "DSN=" & JDS_DSN_name & Chr(0) & _ "Server=" & JDS_Server_name & Chr(0) & _ "Database=SvCvMarketing" & Chr(0) & _ "UseProcForPrepare=Yes" & Chr(0) & _ "Description=MDTS Database" & Chr(0) & Chr(0)) How do I add in the User Name and Password? Thanks Again Jeff Majchrzak Date: Fri, 9 Apr 2004 10:19:58 -0500 From: "Elam, Debbie" Subject: RE: [AccessD] Creating a DSN via code To: "'Access Developers discussion and problem solving'" Message-ID: <7B1961ED924D1A459E378C9B1BB22B4C0106BD5F at natexch.jenkens.com> Content-Type: text/plain I got this off of Dev Ashish's site: This example has trusted security through he NT Login. ********************************************************** Option Compare Database Option Explicit '*********************** Code Start *************************** 'Code by Anthony S. Karre via Dev Ashish's Access Web Page ' Const JDS_DSN_name = "Franchise2" Const JDS_Server_name = "DalInt2" ' Raw IP address is used to avoid NT _ Domain name resolution probs. Private Declare Function RegEnumKeyEx Lib "advapi32.dll" _ Alias "RegEnumKeyExA" _ (ByVal hKey As Long, _ ByVal dwIndex As Long, _ ByVal lpName As String, _ lpcbName As Long, _ ByVal lpReserved As Long, _ ByVal lpClass As String, _ lpcbClass As Long, _ ByVal lpftLastWriteTime As String) As Long Private Declare Function RegOpenKeyEx Lib "advapi32.dll" _ Alias "RegOpenKeyExA" _ (ByVal hKey As Long, _ ByVal lpSubKey As String, _ ByVal ulOptions As Long, _ ByVal samDesired As Long, phkResult As Long) As Long Private Declare Function SQLConfigDataSource Lib "odbccp32.dll" _ (ByVal hwndParent As Long, _ ByVal fRequest As Integer, _ ByVal lpszDriver As String, _ ByVal lpszAttributes As String) As Long Private Declare Function RegCloseKey Lib "advapi32.dll" _ (ByVal hKey As Long) As Long Const HKEY_LOCAL_MACHINE = &H80000002 Const ERROR_SUCCESS = 0& Const SYNCHRONIZE = &H100000 Const STANDARD_RIGHTS_READ = &H20000 Const STANDARD_RIGHTS_WRITE = &H20000 Const STANDARD_RIGHTS_EXECUTE = &H20000 Const STANDARD_RIGHTS_REQUIRED = &HF0000 Const STANDARD_RIGHTS_ALL = &H1F0000 Const KEY_QUERY_VALUE = &H1 Const KEY_SET_VALUE = &H2 Const KEY_CREATE_SUB_KEY = &H4 Const KEY_ENUMERATE_SUB_KEYS = &H8 Const KEY_NOTIFY = &H10 Const KEY_CREATE_LINK = &H20 Const KEY_READ = ((STANDARD_RIGHTS_READ Or _ KEY_QUERY_VALUE Or _ KEY_ENUMERATE_SUB_KEYS Or _ KEY_NOTIFY) And _ (Not SYNCHRONIZE)) Const REG_DWORD = 4 Const REG_BINARY = 3 Const REG_SZ = 1 Const ODBC_ADD_SYS_DSN = 4 Function Check_SDSN() ' Look for our System Data Source Name. If we find it, then great! ' If not, then let's create one on the fly. Dim lngKeyHandle As Long Dim lngResult As Long Dim lngCurIdx As Long Dim strValue As String Dim classValue As String Dim timeValue As String Dim lngValueLen As Long Dim classlngValueLen As Long Dim lngData As Long Dim lngDataLen As Long Dim strResult As String Dim DSNfound As Long Dim syscmdresult As Long syscmdresult = SysCmd(acSysCmdSetStatus, "Looking for System DSN " & JDS_DSN_name & " ...") ' Let's open the registry key that contains all of the ' System Data Source Names. lngResult = RegOpenKeyEx(HKEY_LOCAL_MACHINE, _ "SOFTWARE\ODBC\ODBC.INI", _ 0&, _ KEY_READ, _ lngKeyHandle) If lngResult <> ERROR_SUCCESS Then MsgBox "ERROR: Cannot open the registry key HKEY_LOCAL_MACHINE\SOFTWARE\ODBC\ODBC.INI." & vbCrLf & vbCrLf & _ "Please make sure that ODBC and the SQL Server ODBC drivers have been installed." & vbCrLf & _ "Contact call your MDTS System Administrator for more information." syscmdresult = SysCmd(acSysCmdClearStatus) Check_SDSN = -1 End If ' Now that the key is open, Let's look among all of ' the possible system data source names for the one ' we want. lngCurIdx = 0 DSNfound = False Do lngValueLen = 512 classlngValueLen = 512 strValue = String(lngValueLen, 0) classValue = String(classlngValueLen, 0) timeValue = String(lngValueLen, 0) lngDataLen = 512 lngResult = RegEnumKeyEx(lngKeyHandle, _ lngCurIdx, _ strValue, _ lngValueLen, _ 0&, _ classValue, _ classlngValueLen, _ timeValue) lngCurIdx = lngCurIdx + 1 If lngResult = ERROR_SUCCESS Then ' Is this our System Data Source Name? If strValue = JDS_DSN_name Then ' It is! Let's assume everything is good and do nothing. DSNfound = True syscmdresult = SysCmd(acSysCmdClearStatus) End If End If Loop While lngResult = ERROR_SUCCESS And Not DSNfound Call RegCloseKey(lngKeyHandle) If Not DSNfound Then ' Our System Data Source Name doesn't exist, so let's ' try to create it on the fly. syscmdresult = SysCmd(acSysCmdSetStatus, "Creating System DSN " & JDS_DSN_name & "...") lngResult = SQLConfigDataSource(0, _ ODBC_ADD_SYS_DSN, _ "SQL Server", _ "DSN=" & JDS_DSN_name & Chr(0) & _ "Server=" & JDS_Server_name & Chr(0) & _ "Database=FranchiseReg" & Chr(0) & _ "UseProcForPrepare=Yes" & Chr(0) & _ "Network=dbmssocn" & Chr(0) & _ "Description=Franchise" & Chr(0) & Chr(0)) If lngResult = False Then MsgBox "ERROR: Could not create the System DSN " & JDS_DSN_name & "." & vbCrLf & vbCrLf & _ "Please make sure that the SQL Server ODBC drivers have been installed." & vbCrLf & _ "Contact your System Administrator for more information." syscmdresult = SysCmd(acSysCmdClearStatus) Check_SDSN = -1 End If End If syscmdresult = SysCmd(acSysCmdClearStatus) Check_SDSN = 0 End Function '*********************** Code End *************************** -----Original Message----- From: Jeffrey Majchrzak [mailto:jmajchrz at nycap.rr.com] Sent: Friday, April 09, 2004 10:03 AM To: accessD at databaseadvisors.com Subject: [AccessD] Creating a DSN via code I have an application that is going to have the backend upsized to SQL Server 2000. This application sits on about 50 desktops. Would anyone have any code examples that I can view to create a DSN connection? The DSN will have the same username and password for all users so I would like the code to auto fill the username and password when creating the DSN. Thank you in advance for all your help. Jeffrey Majchrzak Empire Computer Consulting -- _______________________________________________ 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 garykjos at hotmail.com Fri Apr 9 13:15:34 2004 From: garykjos at hotmail.com (Gary Kjos) Date: Fri, 09 Apr 2004 13:15:34 -0500 Subject: [AccessD] cumulative record count question Message-ID: >>>>>The problem is when the 10th thru the 15th record are the same values >>>>>all of >them show up! <<<<< Hopefully you have some sort of Unique Key or something you could include to sort by so you don't get the "ties" included. You don't have to include it in the output results, just in the order by part. Gary Kjos garykjos at hotmail.com _________________________________________________________________ Get rid of annoying pop-up ads with the new MSN Toolbar ? FREE! http://toolbar.msn.com/go/onm00200414ave/direct/01/ From j.frederick at att.net Fri Apr 9 13:22:05 2004 From: j.frederick at att.net (John Frederick) Date: Fri, 9 Apr 2004 14:22:05 -0400 Subject: [AccessD] Creating a DSN via code In-Reply-To: <200404091503.i39F36df010970@ms-smtp-01.nyroc.rr.com> Message-ID: I suggest that you: 1. Use the DSN wizard that you get in Control Pane\ODBC to make a file DSN for your SQL Server link. Save it where you can find it. This gets you a working Connection string the easy way. 2. Open the file DSN with notepad and make the contents the body of a DSN-less Connection string in your code. It sounds like it can be completely canned and the same for all your workstations. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jeffrey Majchrzak Sent: Friday, April 09, 2004 11:03 AM To: accessD at databaseadvisors.com Subject: [AccessD] Creating a DSN via code I have an application that is going to have the backend upsized to SQL Server 2000. This application sits on about 50 desktops. Would anyone have any code examples that I can view to create a DSN connection? The DSN will have the same username and password for all users so I would like the code to auto fill the username and password when creating the DSN. Thank you in advance for all your help. Jeffrey Majchrzak Empire Computer Consulting -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mastercafe at ctv.es Fri Apr 9 19:02:04 2004 From: mastercafe at ctv.es (MastercafeCTV) Date: Sat, 10 Apr 2004 02:02:04 +0200 Subject: [AccessD] My details In-Reply-To: <200404091308.i39D8VB10981@databaseadvisors.com> Message-ID: <007901c41e8f$0f2dc170$0300a8c0@masterserver> TAKE CARE WITH ALL MAIL SIMILAR OF THIS. The attachment archive is a potential worm. Juan Menendez Crespo ================================ Mastercafe S.L. NIF - B82.617.614 c/ Pi?eres 4, 1?D (33430 Candas - Asturias) Juan Menendez Crespo juan at mastercafe.com www.mastercafe.com info at mastercafe.com ================================ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of budge at magicaldesk.com Sent: viernes, 09 de abril de 2004 15:09 To: accessd at databaseadvisors.com Subject: [AccessD] My details Hello! Please notice the attached detailed document. Thank you +++ X-Attachment-Type: document +++ X-Attachment-Status: no virus found +++ Powered by the new F-Secure OnlineAntiVirus +++ Visit us: www.f-secure.com From mastercafe at ctv.es Fri Apr 9 19:39:00 2004 From: mastercafe at ctv.es (MastercafeCTV) Date: Sat, 10 Apr 2004 02:39:00 +0200 Subject: [AccessD] Password VBA Problem In-Reply-To: <20040409135009.DXGI1810.imf18aec.mail.bellsouth.net@SUSANONE> Message-ID: <000001c41e94$378fa390$0300a8c0@masterserver> Hi group, last week we make a big stupidity. Trying to protect our application we introduce password protection on the main MDB but I don't know how actually the main MDB have not the password but the VBA Code yes. We try to unlock the password but was impossible, the application said that There isn't password protect, but if you try to edit some code they take PASSWORD PROTECT. The big problem is that the password that we put we can't try to rewrite, I suppose that the number and letters have a little difference. We download all utilities to recover the password, but all said the same NOT PASSWORD PROTECT. What can we do?? Are there any tool to unlock this?? We try with ACPR, AccessKey, and another 5 similar utilities. We check the MDB for a possible corrupted file, but the program run perfectly... only can't access to the main source code. Thanks in advance Juan Menendez Crespo ================================ Mastercafe S.L. NIF - B82.617.614 c/ Pi?eres 4, 1?D (33430 Candas - Asturias) Juan Menendez Crespo juan at mastercafe.com www.mastercafe.com info at mastercafe.com ================================ From jimdettman at earthlink.net Sat Apr 10 07:26:02 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Sat, 10 Apr 2004 08:26:02 -0400 Subject: [AccessD] Password VBA Problem In-Reply-To: <000001c41e94$378fa390$0300a8c0@masterserver> Message-ID: Juan, All the utilities have failed because the password you applied is for the VBA project file. That is not the same as the database password and it is not user level Access (workgroup) security. I have never seen any code floating around to do handle that nor have I seen any utilities. I'm sure it's one of those things that Microsoft actively tries to keep to a minimum as it would not apply only to Access, but every other product that uses VBA as well. Unless someone on list knows how to tackle it, I would suggest a Google search, but I think you'll find that your out of luck. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MastercafeCTV Sent: Friday, April 09, 2004 8:39 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Password VBA Problem Hi group, last week we make a big stupidity. Trying to protect our application we introduce password protection on the main MDB but I don't know how actually the main MDB have not the password but the VBA Code yes. We try to unlock the password but was impossible, the application said that There isn't password protect, but if you try to edit some code they take PASSWORD PROTECT. The big problem is that the password that we put we can't try to rewrite, I suppose that the number and letters have a little difference. We download all utilities to recover the password, but all said the same NOT PASSWORD PROTECT. What can we do?? Are there any tool to unlock this?? We try with ACPR, AccessKey, and another 5 similar utilities. We check the MDB for a possible corrupted file, but the program run perfectly... only can't access to the main source code. Thanks in advance Juan Menendez Crespo ================================ Mastercafe S.L. NIF - B82.617.614 c/ Pi?eres 4, 1?D (33430 Candas - Asturias) Juan Menendez Crespo juan at mastercafe.com www.mastercafe.com info at mastercafe.com ================================ -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mastercafe at ctv.es Sat Apr 10 09:57:42 2004 From: mastercafe at ctv.es (MastercafeCTV) Date: Sat, 10 Apr 2004 16:57:42 +0200 Subject: [AccessD] Password VBA Problem SOLVED In-Reply-To: Message-ID: <000001c41f0c$2d398730$0300a8c0@masterserver> Finally only 40h working to detect the problem and the solution was easy: We have a first problem with the main MDB file with some Query's with a corrupted part that Compact & Repair don't repair. We eliminate this.... Second part use the VBAKey 6.3 from www.lostpassword.com (registred version to see all password) and ready, we obtain the main password for VBA project. Import all tables, queries, forms, macros, and vba modules in a new MDB file. Solved the password problem Hope this solution can help another programmers like with pwd problems. Juan Menendez Crespo MASTERCAFE ================================ Mastercafe S.L. NIF - B82.617.614 c/ Pi?eres 4, 1?D (33430 Candas - Asturias) Juan Menendez Crespo juan at mastercafe.com www.mastercafe.com info at mastercafe.com ================================ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: s?bado, 10 de abril de 2004 14:26 To: Access Developers discussion and problem solving Subject: RE: [AccessD] Password VBA Problem Juan, All the utilities have failed because the password you applied is for the VBA project file. That is not the same as the database password and it is not user level Access (workgroup) security. I have never seen any code floating around to do handle that nor have I seen any utilities. I'm sure it's one of those things that Microsoft actively tries to keep to a minimum as it would not apply only to Access, but every other product that uses VBA as well. Unless someone on list knows how to tackle it, I would suggest a Google search, but I think you'll find that your out of luck. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MastercafeCTV Sent: Friday, April 09, 2004 8:39 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Password VBA Problem Hi group, last week we make a big stupidity. Trying to protect our application we introduce password protection on the main MDB but I don't know how actually the main MDB have not the password but the VBA Code yes. We try to unlock the password but was impossible, the application said that There isn't password protect, but if you try to edit some code they take PASSWORD PROTECT. The big problem is that the password that we put we can't try to rewrite, I suppose that the number and letters have a little difference. We download all utilities to recover the password, but all said the same NOT PASSWORD PROTECT. What can we do?? Are there any tool to unlock this?? We try with ACPR, AccessKey, and another 5 similar utilities. We check the MDB for a possible corrupted file, but the program run perfectly... only can't access to the main source code. Thanks in advance Juan Menendez Crespo ================================ Mastercafe S.L. NIF - B82.617.614 c/ Pi?eres 4, 1?D (33430 Candas - Asturias) Juan Menendez Crespo juan at mastercafe.com www.mastercafe.com info at mastercafe.com ================================ -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From spikee at oatlandspark.org.uk Sat Apr 10 10:08:33 2004 From: spikee at oatlandspark.org.uk (Chris Foote (Spike)) Date: Sat, 10 Apr 2004 16:08:33 +0100 Subject: [AccessD] Password VBA Problem SOLVED Message-ID: Glad you got it sorted-out Juan! Thanks for posting your solution. Best regards! Chris Foote - UK spike at ugandanetwork.org.uk -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MastercafeCTV Sent: 10 April 2004 15:58 To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Password VBA Problem SOLVED Finally only 40h working to detect the problem and the solution was easy: ---------(Snip)--------- From andy at minstersystems.co.uk Sat Apr 10 14:43:36 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Sat, 10 Apr 2004 20:43:36 +0100 Subject: [AccessD] BEU Enhancement In-Reply-To: Message-ID: <01b901c41f34$1dd9f400$b274d0d5@minster33c3r25> Concur with Reuben. Exactly what I do. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Reuben Cummings > Sent: 09 April 2004 16:33 > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] BEU Enhancement > > > I have added tables like mad to some db's and never had a > problem. This issue was covered in development (unless I > don't understand what you are saying). > > There is a function to check what tables to relink or not > relink (beuDBACheckLink). > > In my relinking code I have the following line: > If beuDBACheckLink(tdf.name, strFileName) Then > > Are you sure you placed this call in the relinker as stated > in the manual? Re-Read PAGES 2 AND 3 of the BEU manual to see > what to call and where to place it. > > I suggest we thoroughly explore the beuDBACheckLink module > and the call from the relinker before making any changes to code. > > 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, April 08, 2004 12:12 PM > > To: accessd at databaseadvisors.com > > Subject: Re: [AccessD] BEU Enchancement > > > > > > I've ran across this problem, or one very similar, in the > past couple > > of weeks. > > > > I won't say this is the prefered fix for it, since this is Reuben's > > function, but it's what I did to make it work. Please feel free to > > pass this on to the person using it: > > > > In the beuDBAValidateBEPathnction of the > basbeuDBAisdbuptodate module: > > > > Maybe 15 lines down, or so, the line that starts, and > continues on for > > 4 lines strSQL = "SELECT .... > > > > replace it with, and watch fro wrapping: > > > > strSQL = "SELECT tblDBAModifyDatabase.ParameterValue, > > tblDBAModifyDatabaseMods.HowCounter" _ > > & " FROM tblDBAModifyDatabaseMods INNER JOIN > tblDBAModifyDatabase > > ON tblDBAModifyDatabaseMods.ModNumber = > > tblDBAModifyDatabase.ModNumber" _ > > & " WHERE tblDBAModifyDatabaseMods.WhatCounter=2 AND > > tblDBAModifyDatabaseMods.HowCounter=2" _ > > & " AND tblDBAModifyDatabaseMods.State<>-1;" > > > > What this does is allows the link validation to take place > on a table > > added by the BEU as long as it's was added correctly and > had it's mod > > state cahnged to True. > > > > Now, I am using an Alpha of V2, so (s)he *may* need to > tweak it a bit > > for V 1.58, but I don't think it will be necessary. > > > > Bryan Carbonnell > > bryan_carbonnelL at cbc.ca > > > > > > >>> jimdettman at earthlink.net 08-Apr-04 12:49:34 PM >>> > > Reuben, Andy, Lembit, or Bryan > > > > I recommended the BEU to someone and their using > relinking code in > > their app. The problem is, it quits the app if a relink cannot be > > performed on a > > table, which is the case when you add a new table via the BEU. To > > help > > developers around that problem, I would suggest adding a > function call > > that > > checks the BEU task list and returns True if it finds the > table name. > > Example: > > > > ' In relink code > > > > If Not IsNewBEUTable(strTableName) then > > ' Relink the table > > End If > > > > > > ' Function added to BEU. > > Public Function IsNewBEUTable(strTableName as string) as integer > > > > ' Check BEU task table to see if strTableName is added > > ' Pass back True if found or False if not. > > > > End Function > > > > I'm not sure exactly what needs to be done to actually > identifiy the > > table in the task list because I haven't dug deep enough, but I > > thought I'd pass > > along the suggestion at least. > > > > Jim Dettman > > President, > > Online Computer Services of WNY, Inc. > > (315) 699-3443 > > jimdettman 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/a> ccessd > Website: > http://www.databaseadvisors.com > > From artful at rogers.com Sat Apr 10 19:52:31 2004 From: artful at rogers.com (Arthur Fuller) Date: Sat, 10 Apr 2004 17:52:31 -0700 Subject: [AccessD] ORDER BY BUG using Date format AARHG In-Reply-To: <4425303804.20040402155722@cactus.dk> Message-ID: <015101c41f5f$455e2b10$6501a8c0@rock> The bug is that Format() creates a string not a date field. To get accurate date order, include the date field as well but don't show it, just order by it. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, April 02, 2004 5:57 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] ORDER BY BUG using Date format AARHG Hi Sander Well - but what is the bug and how did you solve it? /gustav > Hi gustav, > I've solved the problem. Twas a nasty one. > but euh try it if you want. create a table with a date field like > below and run the query...no go! > Thanx anyway. > Sander > Gustav Brock wrote: > Hi Sander > Your "stupid" test is correct as it sorts DESC on a string. > Try this which I think is what Bert-Jan has in mind: > SELECT DISTINCT > Format([TblArbo].[Datum], "dd-mmm-yyyy") > FROM > TblArbo > ORDER BY > [TblArbo].[Datum] DESC; > /gustav >> I've got a combobox based on a query: >> SELECT DISTINCT [TblArbo].[Datum] >> FROM TblArbo >> ORDER BY [TblArbo].[Datum] DESC; >> Resulted in: >> 01-10-2003 >> 02-09-2003 >> 21-08-2001 >> The user asked if this could be printed in the following format: >> dd-mmm-yyyy No problem, says stupid me: SELECT DISTINCT >> Format([TblArbo].[Datum],"dd-mmm-yyyy") >> FROM TblArbo >> ORDER BY Format([TblArbo].[Datum],"dd-mmm-yyyy") DESC; >> But now the ORDER BY ONLY checks the DD part?!?!?!?! >> So this results in: >> 21-08-2001 >> 02-09-2003 >> 01-10-2003 >> ?!!??! What kind of nonsense is this? -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From artful at rogers.com Sat Apr 10 20:19:11 2004 From: artful at rogers.com (Arthur Fuller) Date: Sat, 10 Apr 2004 18:19:11 -0700 Subject: [AccessD] OT: open source In-Reply-To: <000b01c41bed$e465ea60$9111758f@aine> Message-ID: <015801c41f62$fedb2f90$6501a8c0@rock> IMO there would be a significant shift in the Linux world if somebody released something even close to Access. Yeah, there's Jbuilder and Kylix and such, and a few dbAdmin apps for MySQL, but there is no free or inexpensive RAD db dev app for Linux... And until there is, few if any of us will move our businesses there. If I were good enough to clone Access, I'd do it. Sadly, I'm not. It would take several programmers a year or more. Let's face it, Access is a brilliant piece of work, despite its bugs and its price. Tough to clone and deliver the equivalent functionality, especially given VBA, a project unto itself. Borland has done well, but their solution is pricy. Yeah, you can grab a small version free but it's missing all the components you would need for real-world dev, so how does that help? IMO they would do much better with a free 120-day licensing scheme, so you could actually try to build something serious, and if it looks like it's gonna work, then you can click the button and pay the money. A further complication in attempting to clone Access for Linux is the multiple targets. You could do as MS did and begin with one target, and publish an API to invite other players into the mix -- the Linux equivalent of ODBC, hopefully done smarter and better. Probably start with MySQL, then as you gained groundswell, expand the targets to include maybe PostGres and Cache, leaving Oracle etc. to their vendors to write using the API. Big work. Some of the stuff has been written already and is open-source so it can be grabbed with a thang-ya-very-much, but the job remains huge... IMO way way beyond the scope of one brilliant developer. Needs a team of brilliant developers plus an architect. AFACS, the Linux community is not interested, or to put it more graciously, realizes the size of the problem and is not interested. If there was an Access clone in the Linux world, I would IMMEDIATELY recommend to all my clients that they abandon Windows. But there isn't, and so despite my emotional/political slant, I am forced to recommend Windows solutions -- it works, and it's RAD, and that means it's relatively cheap. I would so much prefer to recommend some product called MyAccess, which works with MySQL and maybe other Linux databases, but until that emerges, I have to say that Access is the cheap way to go. I can ship runtimes if you don't want to pay the licensing for Access on every box. This assumes a WindX environment, but if the bottom line and the ROI matter, then Win + Access win. I don't like it much, but that's how I see it. Wish it were otherwise. Arthur -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Martin Reid Sent: Tuesday, April 06, 2004 8:43 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: open source WHy should we move? Money, costs us a fortune for MS licences Martin ----- Original Message ----- From: "Susan Harkins" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, April 06, 2004 4:24 PM Subject: RE: [AccessD] OT: open source > But why should they? > > Susan H. > > >From our point of view it would be difficult in terms of > money and infrastructure to change over. The amount of work would be massive > requiring a substantial investment in both hardware, software and training. > > Its not impossible just take the will to make the move. > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Sun Apr 11 21:14:14 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sun, 11 Apr 2004 22:14:14 -0400 Subject: [AccessD] Framework Discussion page rebuild Message-ID: I have gone through all of the discussions and built a specific mdb and matching document zipped as a pair in a zip file. The framework discussion page on my site now has 12 "chapters" built in this manner. This should make following the document easier. Anyone going through the new document / database who finds any issues please email me offline to let me know and I will attempt to get such issues fixed and reposted. I did have to go carve out some of the chapters from the databases where I had just updated the db for several chapters so there may be a few issues. Again, I will attempt to fix any issues brought to my attention and repost. In the future, all documents will be built with a matching database as the document is written and so should match "exactly". More are on the way. I use a class for Openargs that parse the args and apply known framework args directly. This lecture is almost finished. If anyone has any suggestions for future lectures please contact me offline or post them here if you want to stimulate discussion. John W. Colby www.ColbyConsulting.com From DWUTKA at marlow.com Mon Apr 12 00:51:37 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 12 Apr 2004 00:51:37 -0500 Subject: [AccessD] Wolfwares Archives temporarily offline! Message-ID: <2F8793082E00D4119A1700B0D0216BF802227AA9@main2.marlow.com> Just an FYI, I was in the middle of moving, so I am just now getting a chance to send this email. The archives at http://www.wolfwares.com/AccessD are temporarily offline. I have my server at work, hooked up to a T1, but it's setup specifically for some other stuff I am hosting. DSL at my new place is supposed to be online this Thursday, so the archives will be back up then. Drew P.S.-- This was a planned move (sort of...didn't plan enough! LOL), nothing like I've had to deal with in the past. I am exhausted though. Drew's living arrangements puts the Atkins diet to shame! LOL. From DWUTKA at marlow.com Mon Apr 12 10:19:02 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 12 Apr 2004 10:19:02 -0500 Subject: [AccessD] MS product deployment through an IIS server Message-ID: <2F8793082E00D4119A1700B0D0216BF802227AAD@main2.marlow.com> Are you talking about Outlook Web Access? (OWA for short) OWA is a component of Microsoft Exchange. It is a 'web site' built with ASP pages. Pretty slick, but as far as I know, there are no Word, Excel or Access equivalents. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Lawrence (AccessD) Sent: Thursday, April 08, 2004 1:23 AM To: Access Developers discussion and problem solving Subject: [AccessD] MS product deployment through an IIS server Hi All: Does anyone know the method or where to get information on deploying an application through an IIS server (version 5plus) via your web browser. My understanding is that all MS products can be ran in this way. I have been looking at one application, Outlook, that is ran through an IIS server, from work and can pick up and respond to the mail messages as if I was there...eliminates the need for hotmail and the like. If this is so, and the applications do not require a complete re-write, it opens up an interesting set of possibilities. TIA Jim -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Mon Apr 12 10:21:52 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 12 Apr 2004 10:21:52 -0500 Subject: [AccessD] A2K:Create Fields via code - Solved Message-ID: <2F8793082E00D4119A1700B0D0216BF802227AAE@main2.marlow.com> Learn ASP first. PHP....yeck. LOL. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Darren DICK Sent: Thursday, April 08, 2004 9:17 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A2K:Create Fields via code - Solved Chicken - yes I have people here wanting me to Learn ASP and PHP pronto, but I don't wanna (says he, stamping his foot) Thanks again I did get it solved using the create Number method then changing the attributes of the number data type to something very similar to what you described in one of your original posts BTW - you gonna share the splenda choc chip recipe with the list? :-)) Darren ----- Original Message ----- From: "Susan Harkins" To: "'Access Developers discussion and problem solving'" Sent: Thursday, April 08, 2004 11:54 PM Subject: RE: [AccessD] A2K:Create Fields via code - Solved > Chicken. ;) ... And thank you -- will be stuffing eggs before the day is > through -- and have a great weekend yourself! :) > > I haven't had a peep yet -- not one. > > FWIW, if you don't get this resolved I'd be glad to hand over the exact code > -- I have it somewhere, just a matter of finding it. :) > > Susan H. > > Thanks Susan > I struggle - and I mean struggle - with VBA I have seen code examples in the > 2000 Developer for ADOX. It looks quite relative to VB and VBA but I think I > will give it a miss. > :-)) > (Thanks but no thanks - luddite here) > > Have a great day and a safe Easter > > Thanks again for your help > > 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 dw-murphy at cox.net Mon Apr 12 13:08:44 2004 From: dw-murphy at cox.net (Doug Murphy) Date: Mon, 12 Apr 2004 11:08:44 -0700 Subject: [AccessD] Access 2000 error In-Reply-To: Message-ID: <001001c420b9$31cb9280$8500a8c0@CX615377a> Folks, I inherited an Access 2000 database to do some work on. I have not done anything to the wizard built switchboard but it now breaks an the line "Set con = Application.CurrentProject.Connection". Checked the references and MS data objects active-x library 2.1 is checked. When I type in the same line auto completion fills in all the correct items so the terminology is correct for the given references. Any idea why this thing is breaking? Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Sunday, April 11, 2004 7:14 PM To: AccessD Subject: [AccessD] Framework Discussion page rebuild I have gone through all of the discussions and built a specific mdb and matching document zipped as a pair in a zip file. The framework discussion page on my site now has 12 "chapters" built in this manner. This should make following the document easier. Anyone going through the new document / database who finds any issues please email me offline to let me know and I will attempt to get such issues fixed and reposted. I did have to go carve out some of the chapters from the databases where I had just updated the db for several chapters so there may be a few issues. Again, I will attempt to fix any issues brought to my attention and repost. In the future, all documents will be built with a matching database as the document is written and so should match "exactly". More are on the way. I use a class for Openargs that parse the args and apply known framework args directly. This lecture is almost finished. If anyone has any suggestions for future lectures please contact me offline or post them here if you want to stimulate discussion. 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 DWUTKA at marlow.com Mon Apr 12 13:33:25 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 12 Apr 2004 13:33:25 -0500 Subject: [AccessD] Access 2000 error Message-ID: <2F8793082E00D4119A1700B0D0216BF802227AB2@main2.marlow.com> That is DAO you have set. You need ADO, which is Microsoft ActiveX Data Objects. (I personally set 2.5) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Doug Murphy Sent: Monday, April 12, 2004 1:09 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access 2000 error Folks, I inherited an Access 2000 database to do some work on. I have not done anything to the wizard built switchboard but it now breaks an the line "Set con = Application.CurrentProject.Connection". Checked the references and MS data objects active-x library 2.1 is checked. When I type in the same line auto completion fills in all the correct items so the terminology is correct for the given references. Any idea why this thing is breaking? Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Sunday, April 11, 2004 7:14 PM To: AccessD Subject: [AccessD] Framework Discussion page rebuild I have gone through all of the discussions and built a specific mdb and matching document zipped as a pair in a zip file. The framework discussion page on my site now has 12 "chapters" built in this manner. This should make following the document easier. Anyone going through the new document / database who finds any issues please email me offline to let me know and I will attempt to get such issues fixed and reposted. I did have to go carve out some of the chapters from the databases where I had just updated the db for several chapters so there may be a few issues. Again, I will attempt to fix any issues brought to my attention and repost. In the future, all documents will be built with a matching database as the document is written and so should match "exactly". More are on the way. I use a class for Openargs that parse the args and apply known framework args directly. This lecture is almost finished. If anyone has any suggestions for future lectures please contact me offline or post them here if you want to stimulate discussion. 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 BBarabash at TappeConstruction.com Mon Apr 12 13:35:57 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Mon, 12 Apr 2004 13:35:57 -0500 Subject: [AccessD] OT - MSDN Subscriptions Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE4F2@TAPPEEXCH01> I recall a discussion a while back about discount sources for MSDN subscriptions. We are looking to purchase 5 subscriptions, either Enterprise or possibly Universal depending on the pricing. I found the Universal box here for $1135 (with an additional $300 DVD media discount!): http://www.buycheapsoftware.com/details.asp?productID=696 Can anyone top this? Brett Barabash, MCP Tappe Construction, Co. Eagan, MN bbarabash at tappeconstruction.com (651) 256-6831 "One thing a computer can do that most humans can't is be sealed up in a cardboard box and sit in a warehouse." -Jack Handey -------------------------------------------------------------------------------------------------------------------- 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 BBarabash at TappeConstruction.com Mon Apr 12 13:39:14 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Mon, 12 Apr 2004 13:39:14 -0500 Subject: [AccessD] OT - MSDN Subscriptions Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE4F3@TAPPEEXCH01> Oops, I posted the link to the upgrade version ($1135). The full version is $1200: http://www.buycheapsoftware.com/details.asp?productID=589 (@$#!%? price comparison engines...) -----Original Message----- From: Brett Barabash [mailto:BBarabash at tappeconstruction.com] Sent: Monday, April 12, 2004 1:36 PM To: 'accessd at databaseadvisors.com' Subject: [AccessD] OT - MSDN Subscriptions --------------Please open with care!------------ This message has bypassed some of our spam filtering rules. This message was scanned for viruses and executable code has been stripped. --------------------------------------------------------------- I recall a discussion a while back about discount sources for MSDN subscriptions. We are looking to purchase 5 subscriptions, either Enterprise or possibly Universal depending on the pricing. I found the Universal box here for $1135 (with an additional $300 DVD media discount!): http://www.buycheapsoftware.com/details.asp?productID=696 Can anyone top this? Brett Barabash, MCP Tappe Construction, Co. Eagan, MN bbarabash at tappeconstruction.com (651) 256-6831 "One thing a computer can do that most humans can't is be sealed up in a cardboard box and sit in a warehouse." -Jack Handey ---------------------------------------------------------------------------- ---------------------------------------- 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 -------------------------------------------------------------------------------------------------------------------- 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 dw-murphy at cox.net Mon Apr 12 13:43:38 2004 From: dw-murphy at cox.net (Doug Murphy) Date: Mon, 12 Apr 2004 11:43:38 -0700 Subject: [AccessD] Access 2000 error In-Reply-To: <2F8793082E00D4119A1700B0D0216BF802227AB2@main2.marlow.com> Message-ID: <001101c420be$14baad70$8500a8c0@CX615377a> The ActiveX Data Objects 2.1 (ADO) is checked I just reversed the order of the words in my original message. My dyslexia is showing. Tried 2.5 and got the same message. This may be one of the AccessXP/2000 anomolies. When I move the DB to my XP development machine it works fine. It compiles on both machines. ??? Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: Monday, April 12, 2004 11:33 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Access 2000 error That is DAO you have set. You need ADO, which is Microsoft ActiveX Data Objects. (I personally set 2.5) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Doug Murphy Sent: Monday, April 12, 2004 1:09 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access 2000 error Folks, I inherited an Access 2000 database to do some work on. I have not done anything to the wizard built switchboard but it now breaks an the line "Set con = Application.CurrentProject.Connection". Checked the references and MS data objects active-x library 2.1 is checked. When I type in the same line auto completion fills in all the correct items so the terminology is correct for the given references. Any idea why this thing is breaking? Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Sunday, April 11, 2004 7:14 PM To: AccessD Subject: [AccessD] Framework Discussion page rebuild I have gone through all of the discussions and built a specific mdb and matching document zipped as a pair in a zip file. The framework discussion page on my site now has 12 "chapters" built in this manner. This should make following the document easier. Anyone going through the new document / database who finds any issues please email me offline to let me know and I will attempt to get such issues fixed and reposted. I did have to go carve out some of the chapters from the databases where I had just updated the db for several chapters so there may be a few issues. Again, I will attempt to fix any issues brought to my attention and repost. In the future, all documents will be built with a matching database as the document is written and so should match "exactly". More are on the way. I use a class for Openargs that parse the args and apply known framework args directly. This lecture is almost finished. If anyone has any suggestions for future lectures please contact me offline or post them here if you want to stimulate discussion. 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 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at earthlink.net Mon Apr 12 13:57:45 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Mon, 12 Apr 2004 14:57:45 -0400 Subject: [AccessD] OT - MSDN Subscriptions In-Reply-To: <426071E0B0A6D311B3C0006008B0AB23AFE4F3@TAPPEEXCH01> Message-ID: Brett, I paid $1175 for my Universal subscription, so your $1200 is not that far off. I'm not sure if the folks I deal with would cut you a deal considering that your thinking of 5 or not, but here is a contact: Sheldon Scheu AKS Web Services, LLC sheldon at akswebservices.com Please mention my name. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Brett Barabash Sent: Monday, April 12, 2004 2:39 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - MSDN Subscriptions Oops, I posted the link to the upgrade version ($1135). The full version is $1200: http://www.buycheapsoftware.com/details.asp?productID=589 (@$#!%? price comparison engines...) -----Original Message----- From: Brett Barabash [mailto:BBarabash at tappeconstruction.com] Sent: Monday, April 12, 2004 1:36 PM To: 'accessd at databaseadvisors.com' Subject: [AccessD] OT - MSDN Subscriptions --------------Please open with care!------------ This message has bypassed some of our spam filtering rules. This message was scanned for viruses and executable code has been stripped. --------------------------------------------------------------- I recall a discussion a while back about discount sources for MSDN subscriptions. We are looking to purchase 5 subscriptions, either Enterprise or possibly Universal depending on the pricing. I found the Universal box here for $1135 (with an additional $300 DVD media discount!): http://www.buycheapsoftware.com/details.asp?productID=696 Can anyone top this? Brett Barabash, MCP Tappe Construction, Co. Eagan, MN bbarabash at tappeconstruction.com (651) 256-6831 "One thing a computer can do that most humans can't is be sealed up in a cardboard box and sit in a warehouse." -Jack Handey ---------------------------------------------------------------------------- ---------------------------------------- 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 ---------------------------------------------------------------------------- ---------------------------------------- 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 DWUTKA at marlow.com Mon Apr 12 14:02:05 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 12 Apr 2004 14:02:05 -0500 Subject: [AccessD] Access 2000 error Message-ID: <2F8793082E00D4119A1700B0D0216BF802227AB3@main2.marlow.com> Very odd. I was wondering if you just switched the words around, cause I thought DAO was 'Data Access Objects'. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Doug Murphy Sent: Monday, April 12, 2004 1:44 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Access 2000 error The ActiveX Data Objects 2.1 (ADO) is checked I just reversed the order of the words in my original message. My dyslexia is showing. Tried 2.5 and got the same message. This may be one of the AccessXP/2000 anomolies. When I move the DB to my XP development machine it works fine. It compiles on both machines. ??? Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: Monday, April 12, 2004 11:33 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Access 2000 error That is DAO you have set. You need ADO, which is Microsoft ActiveX Data Objects. (I personally set 2.5) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Doug Murphy Sent: Monday, April 12, 2004 1:09 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access 2000 error Folks, I inherited an Access 2000 database to do some work on. I have not done anything to the wizard built switchboard but it now breaks an the line "Set con = Application.CurrentProject.Connection". Checked the references and MS data objects active-x library 2.1 is checked. When I type in the same line auto completion fills in all the correct items so the terminology is correct for the given references. Any idea why this thing is breaking? Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Sunday, April 11, 2004 7:14 PM To: AccessD Subject: [AccessD] Framework Discussion page rebuild I have gone through all of the discussions and built a specific mdb and matching document zipped as a pair in a zip file. The framework discussion page on my site now has 12 "chapters" built in this manner. This should make following the document easier. Anyone going through the new document / database who finds any issues please email me offline to let me know and I will attempt to get such issues fixed and reposted. I did have to go carve out some of the chapters from the databases where I had just updated the db for several chapters so there may be a few issues. Again, I will attempt to fix any issues brought to my attention and repost. In the future, all documents will be built with a matching database as the document is written and so should match "exactly". More are on the way. I use a class for Openargs that parse the args and apply known framework args directly. This lecture is almost finished. If anyone has any suggestions for future lectures please contact me offline or post them here if you want to stimulate discussion. 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 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From COUTTSW at rjrt.com Mon Apr 12 14:48:11 2004 From: COUTTSW at rjrt.com (Coutts, Welford L.) Date: Mon, 12 Apr 2004 15:48:11 -0400 Subject: [AccessD] Separating First and Last Names Message-ID: <1731B69D9D03DB49881574BBECDE6CAC675D88@wsmailp1.rjr.com> I have received a large file containing a large number of Full Names. I need to separate the First Name and Middle Initial, if any, into one field and the Last Name into a separate field. What is the most efficient way to do this? Thanks! Welford Coutts ----------------------------------------- CONFIDENTIALITY NOTE: This e-mail message, including any attachment(s), contains information that may be confidential, protected by the attorney-client or other legal privileges, and/or proprietary non-public information. If you are not an intended recipient of this message or an authorized assistant to an intended recipient, please notify the sender by replying to this message and then delete it from your system. Use, dissemination, distribution, or reproduction of this message and/or any of its attachments (if any) by unintended recipients is not authorized and may be unlawful. From JRojas at tnco-inc.com Mon Apr 12 15:19:23 2004 From: JRojas at tnco-inc.com (Joe Rojas) Date: Mon, 12 Apr 2004 16:19:23 -0400 Subject: [AccessD] OT - MSDN Subscriptions Message-ID: <806536912C472E4A9D6515DF2E57261E2397BF@mercury.tnco-inc.com> Why is this so cheap? Microsoft advertises it for $2,799. What am I missing? JR -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Monday, April 12, 2004 2:58 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT - MSDN Subscriptions Brett, I paid $1175 for my Universal subscription, so your $1200 is not that far off. I'm not sure if the folks I deal with would cut you a deal considering that your thinking of 5 or not, but here is a contact: Sheldon Scheu AKS Web Services, LLC sheldon at akswebservices.com Please mention my name. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Brett Barabash Sent: Monday, April 12, 2004 2:39 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - MSDN Subscriptions Oops, I posted the link to the upgrade version ($1135). The full version is $1200: http://www.buycheapsoftware.com/details.asp?productID=589 (@$#!%? price comparison engines...) -----Original Message----- From: Brett Barabash [mailto:BBarabash at tappeconstruction.com] Sent: Monday, April 12, 2004 1:36 PM To: 'accessd at databaseadvisors.com' Subject: [AccessD] OT - MSDN Subscriptions --------------Please open with care!------------ This message has bypassed some of our spam filtering rules. This message was scanned for viruses and executable code has been stripped. --------------------------------------------------------------- I recall a discussion a while back about discount sources for MSDN subscriptions. We are looking to purchase 5 subscriptions, either Enterprise or possibly Universal depending on the pricing. I found the Universal box here for $1135 (with an additional $300 DVD media discount!): http://www.buycheapsoftware.com/details.asp?productID=696 Can anyone top this? Brett Barabash, MCP Tappe Construction, Co. Eagan, MN bbarabash at tappeconstruction.com (651) 256-6831 "One thing a computer can do that most humans can't is be sealed up in a cardboard box and sit in a warehouse." -Jack Handey ---------------------------------------------------------------------------- ---------------------------------------- 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 ---------------------------------------------------------------------------- ---------------------------------------- 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 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage caused by any virus transmitted by this email. From Mark.Mitsules at ngc.com Mon Apr 12 15:24:00 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Mon, 12 Apr 2004 16:24:00 -0400 Subject: [AccessD] Separating First and Last Names Message-ID: Microsoft Knowledge Base Article - 168799 HOWTO: Parse a Person's Name into Multiple Variables http://support.microsoft.com/?kbid=168799 Pay particular attention to the assumptions...but this should give you a good start. Mark -----Original Message----- From: Coutts, Welford L. [mailto:COUTTSW at rjrt.com] Sent: Monday, April 12, 2004 3:48 PM To: Access Developers discussion and problem solving Subject: [AccessD] Separating First and Last Names I have received a large file containing a large number of Full Names. I need to separate the First Name and Middle Initial, if any, into one field and the Last Name into a separate field. What is the most efficient way to do this? Thanks! Welford Coutts ----------------------------------------- CONFIDENTIALITY NOTE: This e-mail message, including any attachment(s), contains information that may be confidential, protected by the attorney-client or other legal privileges, and/or proprietary non-public information. If you are not an intended recipient of this message or an authorized assistant to an intended recipient, please notify the sender by replying to this message and then delete it from your system. Use, dissemination, distribution, or reproduction of this message and/or any of its attachments (if any) by unintended recipients is not authorized and may be unlawful. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Mon Apr 12 15:38:45 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Mon, 12 Apr 2004 13:38:45 -0700 Subject: [AccessD] Separating First and Last Names References: <1731B69D9D03DB49881574BBECDE6CAC675D88@wsmailp1.rjr.com> Message-ID: <017201c420ce$26b2a450$6601a8c0@HAL9002> Welford: I can see all kinds of mines in that field but if they're regular (ie, first name, space, middle initial if any followed by period and space, last name), then it's easy to parse using INSTR. The easiest would be to INSTR a period and break there if it found one. If no period is found then next I would INSTR the first space and break it there. If there are middle initials without periods then you'd have to scan backwards from the end of the name string, character by character, looking for the first space and break it there. This would be just a few lines of code and would execute fast enough so that you could run it and eyeball the results and see how accurate the first pass was. Then begin to add rules to refine the results - take care of the exceptions. Does it have to be 100% perfect? Are there titles on the Dr.s and Prof.s? Are there any compound last names separated by a space? Anyone with two middle names? Did I ask if it had to be 100% perfect? HTH Rocky Smolin Beach Access Software http://www.e-z-mrp.com ----- Original Message ----- From: "Coutts, Welford L." To: "Access Developers discussion and problem solving" Sent: Monday, April 12, 2004 12:48 PM Subject: [AccessD] Separating First and Last Names I have received a large file containing a large number of Full Names. I need to separate the First Name and Middle Initial, if any, into one field and the Last Name into a separate field. What is the most efficient way to do this? Thanks! Welford Coutts ----------------------------------------- CONFIDENTIALITY NOTE: This e-mail message, including any attachment(s), contains information that may be confidential, protected by the attorney-client or other legal privileges, and/or proprietary non-public information. If you are not an intended recipient of this message or an authorized assistant to an intended recipient, please notify the sender by replying to this message and then delete it from your system. Use, dissemination, distribution, or reproduction of this message and/or any of its attachments (if any) by unintended recipients is not authorized and may be unlawful. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BBarabash at TappeConstruction.com Mon Apr 12 15:46:03 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Mon, 12 Apr 2004 15:46:03 -0500 Subject: [AccessD] OT - MSDN Subscriptions Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE4F5@TAPPEEXCH01> Thanks Jim. I dropped your name in an email to him. I'm not really that concerned about the nickels and dimes. I'm more concerned that we buy from a reputable source. If his quote is in the same ballpark as the other sources, I will recommend him instead. It means more to me that we are giving $6k to a reputable source who will deliver the proper goods. -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Monday, April 12, 2004 1:58 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT - MSDN Subscriptions Brett, I paid $1175 for my Universal subscription, so your $1200 is not that far off. I'm not sure if the folks I deal with would cut you a deal considering that your thinking of 5 or not, but here is a contact: Sheldon Scheu AKS Web Services, LLC sheldon at akswebservices.com Please mention my name. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Brett Barabash Sent: Monday, April 12, 2004 2:39 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - MSDN Subscriptions Oops, I posted the link to the upgrade version ($1135). The full version is $1200: http://www.buycheapsoftware.com/details.asp?productID=589 (@$#!%? price comparison engines...) -----Original Message----- From: Brett Barabash [mailto:BBarabash at tappeconstruction.com] Sent: Monday, April 12, 2004 1:36 PM To: 'accessd at databaseadvisors.com' Subject: [AccessD] OT - MSDN Subscriptions --------------Please open with care!------------ This message has bypassed some of our spam filtering rules. This message was scanned for viruses and executable code has been stripped. --------------------------------------------------------------- I recall a discussion a while back about discount sources for MSDN subscriptions. We are looking to purchase 5 subscriptions, either Enterprise or possibly Universal depending on the pricing. I found the Universal box here for $1135 (with an additional $300 DVD media discount!): http://www.buycheapsoftware.com/details.asp?productID=696 Can anyone top this? Brett Barabash, MCP Tappe Construction, Co. Eagan, MN bbarabash at tappeconstruction.com (651) 256-6831 "One thing a computer can do that most humans can't is be sealed up in a cardboard box and sit in a warehouse." -Jack Handey -------------------------------------------------------------------------------------------------------------------- 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 Patricia.O'Connor at dfa.state.ny.us Mon Apr 12 15:52:33 2004 From: Patricia.O'Connor at dfa.state.ny.us (O'Connor, Patricia ) Date: Mon, 12 Apr 2004 16:52:33 -0400 Subject: [AccessD] Separating First and Last Names Message-ID: Well it depends on how the input field is formatted. What if someone does not have a middle name? Is it middle name or just middle initial? Are there suffixes or titles in the name (Sr., Jr., Dr.) What is done about people with two last names or last names with space in middle De Carlo etc. I have some routines that were set up for this on mainframe - I might have converted them to vba but would have to search for them Could always check Dev Ashish's site for a routine Patti ************************************************************* * Patricia E. O'Connor * Associate Computer Programmer/Analyst * OTDA - BDMA * (W) mailto:Patricia.O'Connor at dfa.state.ny.us * (W) mailto:aa1160 at dfa.state.ny.us *********************************************************** ________________________________ From: accessd-bounces at databaseadvisors.com on behalf of Coutts, Welford L. Sent: Mon 04/12/2004 3:48 PM To: Access Developers discussion and problem solving Subject: [AccessD] Separating First and Last Names I have received a large file containing a large number of Full Names. I need to separate the First Name and Middle Initial, if any, into one field and the Last Name into a separate field. What is the most efficient way to do this? Thanks! Welford Coutts ----------------------------------------- CONFIDENTIALITY NOTE: This e-mail message, including any attachment(s), contains information that may be confidential, protected by the attorney-client or other legal privileges, and/or proprietary non-public information. If you are not an intended recipient of this message or an authorized assistant to an intended recipient, please notify the sender by replying to this message and then delete it from your system. Use, dissemination, distribution, or reproduction of this message and/or any of its attachments (if any) by unintended recipients is not authorized and may be unlawful. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mikedorism at adelphia.net Mon Apr 12 15:10:42 2004 From: mikedorism at adelphia.net (Mike & Doris Manning) Date: Mon, 12 Apr 2004 16:10:42 -0400 Subject: [AccessD] Separating First and Last Names In-Reply-To: <1731B69D9D03DB49881574BBECDE6CAC675D88@wsmailp1.rjr.com> Message-ID: <000001c420ca$3c0d1730$130aa845@hargrove.internal> If you have AccessXP (not sure if it is in lower versions), you could use the Split function. 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 Coutts, Welford L. Sent: Monday, April 12, 2004 3:48 PM To: Access Developers discussion and problem solving Subject: [AccessD] Separating First and Last Names I have received a large file containing a large number of Full Names. I need to separate the First Name and Middle Initial, if any, into one field and the Last Name into a separate field. What is the most efficient way to do this? Thanks! Welford Coutts ----------------------------------------- CONFIDENTIALITY NOTE: This e-mail message, including any attachment(s), contains information that may be confidential, protected by the attorney-client or other legal privileges, and/or proprietary non-public information. If you are not an intended recipient of this message or an authorized assistant to an intended recipient, please notify the sender by replying to this message and then delete it from your system. Use, dissemination, distribution, or reproduction of this message and/or any of its attachments (if any) by unintended recipients is not authorized and may be unlawful. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at earthlink.net Mon Apr 12 16:10:45 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Mon, 12 Apr 2004 17:10:45 -0400 Subject: [AccessD] OT - MSDN Subscriptions In-Reply-To: <426071E0B0A6D311B3C0006008B0AB23AFE4F5@TAPPEEXCH01> Message-ID: Brett, I've purchased from them 2 years running and have not had any problems. I also know of several individuals who purchased through them and did not have any problems either. Jim (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Brett Barabash Sent: Monday, April 12, 2004 4:46 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - MSDN Subscriptions Thanks Jim. I dropped your name in an email to him. I'm not really that concerned about the nickels and dimes. I'm more concerned that we buy from a reputable source. If his quote is in the same ballpark as the other sources, I will recommend him instead. It means more to me that we are giving $6k to a reputable source who will deliver the proper goods. -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Monday, April 12, 2004 1:58 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT - MSDN Subscriptions Brett, I paid $1175 for my Universal subscription, so your $1200 is not that far off. I'm not sure if the folks I deal with would cut you a deal considering that your thinking of 5 or not, but here is a contact: Sheldon Scheu AKS Web Services, LLC sheldon at akswebservices.com Please mention my name. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Brett Barabash Sent: Monday, April 12, 2004 2:39 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - MSDN Subscriptions Oops, I posted the link to the upgrade version ($1135). The full version is $1200: http://www.buycheapsoftware.com/details.asp?productID=589 (@$#!%? price comparison engines...) -----Original Message----- From: Brett Barabash [mailto:BBarabash at tappeconstruction.com] Sent: Monday, April 12, 2004 1:36 PM To: 'accessd at databaseadvisors.com' Subject: [AccessD] OT - MSDN Subscriptions --------------Please open with care!------------ This message has bypassed some of our spam filtering rules. This message was scanned for viruses and executable code has been stripped. --------------------------------------------------------------- I recall a discussion a while back about discount sources for MSDN subscriptions. We are looking to purchase 5 subscriptions, either Enterprise or possibly Universal depending on the pricing. I found the Universal box here for $1135 (with an additional $300 DVD media discount!): http://www.buycheapsoftware.com/details.asp?productID=696 Can anyone top this? Brett Barabash, MCP Tappe Construction, Co. Eagan, MN bbarabash at tappeconstruction.com (651) 256-6831 "One thing a computer can do that most humans can't is be sealed up in a cardboard box and sit in a warehouse." -Jack Handey ---------------------------------------------------------------------------- ---------------------------------------- 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 jimdettman at earthlink.net Mon Apr 12 16:11:36 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Mon, 12 Apr 2004 17:11:36 -0400 Subject: [AccessD] OT - MSDN Subscriptions In-Reply-To: <806536912C472E4A9D6515DF2E57261E2397BF@mercury.tnco-inc.com> Message-ID: Joe, $2,799 is the "list" price. Microsoft partners are allowed to sell for what ever they can get up to list price. Microsoft itself always sells at list. Jim Dettman (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Joe Rojas Sent: Monday, April 12, 2004 4:19 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - MSDN Subscriptions Why is this so cheap? Microsoft advertises it for $2,799. What am I missing? JR -----Original Message----- From: Jim Dettman [mailto:jimdettman at earthlink.net] Sent: Monday, April 12, 2004 2:58 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT - MSDN Subscriptions Brett, I paid $1175 for my Universal subscription, so your $1200 is not that far off. I'm not sure if the folks I deal with would cut you a deal considering that your thinking of 5 or not, but here is a contact: Sheldon Scheu AKS Web Services, LLC sheldon at akswebservices.com Please mention my name. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Brett Barabash Sent: Monday, April 12, 2004 2:39 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - MSDN Subscriptions Oops, I posted the link to the upgrade version ($1135). The full version is $1200: http://www.buycheapsoftware.com/details.asp?productID=589 (@$#!%? price comparison engines...) -----Original Message----- From: Brett Barabash [mailto:BBarabash at tappeconstruction.com] Sent: Monday, April 12, 2004 1:36 PM To: 'accessd at databaseadvisors.com' Subject: [AccessD] OT - MSDN Subscriptions --------------Please open with care!------------ This message has bypassed some of our spam filtering rules. This message was scanned for viruses and executable code has been stripped. --------------------------------------------------------------- I recall a discussion a while back about discount sources for MSDN subscriptions. We are looking to purchase 5 subscriptions, either Enterprise or possibly Universal depending on the pricing. I found the Universal box here for $1135 (with an additional $300 DVD media discount!): http://www.buycheapsoftware.com/details.asp?productID=696 Can anyone top this? Brett Barabash, MCP Tappe Construction, Co. Eagan, MN bbarabash at tappeconstruction.com (651) 256-6831 "One thing a computer can do that most humans can't is be sealed up in a cardboard box and sit in a warehouse." -Jack Handey ---------------------------------------------------------------------------- ---------------------------------------- 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 ---------------------------------------------------------------------------- ---------------------------------------- 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 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This electronic transmission is strictly confidential to TNCO, Inc. and intended solely for the addressee. It may contain information which is covered by legal, professional, or other privileges. If you are not the intended addressee, or someone authorized by the intended addressee to receive transmissions on behalf of the addressee, you must not retain, disclose in any form, copy, or take any action in reliance on this transmission. If you have received this transmission in error, please notify the sender as soon as possible and destroy this message. While TNCO, Inc. uses virus protection, the recipient should check this email and any attachments for the presence of viruses. TNCO, Inc. accepts no liability for any damage 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 reuben at gfconsultants.com Mon Apr 12 16:40:22 2004 From: reuben at gfconsultants.com (Reuben Cummings) Date: Mon, 12 Apr 2004 16:40:22 -0500 Subject: [AccessD] Get data from Word Doc - A2K Message-ID: I have a 393 page Word document that has data about bridges. Every 3 pages is one bridge meaning every third page is formatted exactly alike (Page 1 and Page 4 are alike, Page 2 and Page 5, Page 3 and 6). There are about 10 pieces of data I would like to extract about every bridge, a little bit on each of the three pages. Is it possible to scan thru this document somehow and 'extract' these 10 items from it to Access? I have tried to copy the document to Excel, but a lot of the text from Word will end up in one cell rather than split into a cell of its own. Thanks. Reuben Cummings GFC, LLC phone: 812.523.1017 email: reuben at gfconsultants.com From dw-murphy at cox.net Mon Apr 12 16:58:20 2004 From: dw-murphy at cox.net (Doug Murphy) Date: Mon, 12 Apr 2004 14:58:20 -0700 Subject: [AccessD] Access 2000 error In-Reply-To: <001101c420be$14baad70$8500a8c0@CX615377a> Message-ID: <000701c420d9$44db47b0$8500a8c0@CX615377a> For what ever it is worth the error is apparently caused by the version of Jet on the machine. I installed the latest jet 4 service pack and the problem went away. Found a vague reference to this on the MS knowledge base. The original cause may have been that I was working on the DB in Access XP/2000 format. I then moved a copy to an actual version of Access 2000 on another machine to test before sending off to the customer. After hosing a previous DB I am carefull to open and recompile a DB when moving back and forth between XP and 2000, but this seems different than the vb6 dll thing. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Monday, April 12, 2004 11:44 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Access 2000 error The ActiveX Data Objects 2.1 (ADO) is checked I just reversed the order of the words in my original message. My dyslexia is showing. Tried 2.5 and got the same message. This may be one of the AccessXP/2000 anomolies. When I move the DB to my XP development machine it works fine. It compiles on both machines. ??? Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: Monday, April 12, 2004 11:33 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Access 2000 error That is DAO you have set. You need ADO, which is Microsoft ActiveX Data Objects. (I personally set 2.5) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Doug Murphy Sent: Monday, April 12, 2004 1:09 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access 2000 error Folks, I inherited an Access 2000 database to do some work on. I have not done anything to the wizard built switchboard but it now breaks an the line "Set con = Application.CurrentProject.Connection". Checked the references and MS data objects active-x library 2.1 is checked. When I type in the same line auto completion fills in all the correct items so the terminology is correct for the given references. Any idea why this thing is breaking? Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Sunday, April 11, 2004 7:14 PM To: AccessD Subject: [AccessD] Framework Discussion page rebuild I have gone through all of the discussions and built a specific mdb and matching document zipped as a pair in a zip file. The framework discussion page on my site now has 12 "chapters" built in this manner. This should make following the document easier. Anyone going through the new document / database who finds any issues please email me offline to let me know and I will attempt to get such issues fixed and reposted. I did have to go carve out some of the chapters from the databases where I had just updated the db for several chapters so there may be a few issues. Again, I will attempt to fix any issues brought to my attention and repost. In the future, all documents will be built with a matching database as the document is written and so should match "exactly". More are on the way. I use a class for Openargs that parse the args and apply known framework args directly. This lecture is almost finished. If anyone has any suggestions for future lectures please contact me offline or post them here if you want to stimulate discussion. 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 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Apr 12 20:44:13 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 12 Apr 2004 18:44:13 -0700 Subject: [AccessD] Access 2000 error References: <001101c420be$14baad70$8500a8c0@CX615377a> Message-ID: <407B45ED.4090205@shaw.ca> The default install of MDAC on WinXP is 2.7 If you have multiple installs of MDAC on your system. the highest level of the MDAC points to MSADO15.dll Lower levels of ADO MDAC point to a .tlb file like MSADO26.tlb On my system I have Access 97 and 2003 installed so I have MDAC 2.1 installed as well due to 97 being there. So my selection of references is ADO 2.7 ---- MSADO15.dll ADO 2.6 ---- MSADO26.tlb ADO 2.5 ---- MSADO25.tlb ADO 2.1 ---- MSADO21.tlb I would check what file your references are pointing to. You may not have MDAC 2.1 installed on one of your machines, this MDAC is available as a seperate download from http://www.microsoft/data and is only installed with lower versions of Access. Also some of these MDAC's like 2.5 have up to 3 SP's. MDAC 2.7 and 2.8 don't run on Win95 I would pick one MDAC depending on your OSes and standardize on it. Remembering each OS version comes with a specific level of the MDAC. Doug Murphy wrote: >The ActiveX Data Objects 2.1 (ADO) is checked I just reversed the order >of the words in my original message. My dyslexia is showing. Tried 2.5 >and got the same message. > >This may be one of the AccessXP/2000 anomolies. When I move the DB to >my XP development machine it works fine. It compiles on both machines. >??? > >Doug > > > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >DWUTKA at marlow.com >Sent: Monday, April 12, 2004 11:33 AM >To: accessd at databaseadvisors.com >Subject: RE: [AccessD] Access 2000 error > > >That is DAO you have set. You need ADO, which is Microsoft ActiveX Data >Objects. (I personally set 2.5) > >Drew > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Doug Murphy >Sent: Monday, April 12, 2004 1:09 PM >To: 'Access Developers discussion and problem solving' >Subject: [AccessD] Access 2000 error > > >Folks, > >I inherited an Access 2000 database to do some work on. I have not done >anything to the wizard built switchboard but it now breaks an the line >"Set con = Application.CurrentProject.Connection". Checked the >references and MS data objects active-x library 2.1 is checked. When I >type in the same line auto completion fills in all the correct items so >the terminology is correct for the given references. Any idea why this >thing is breaking? > >Doug > > > > > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby >Sent: Sunday, April 11, 2004 7:14 PM >To: AccessD >Subject: [AccessD] Framework Discussion page rebuild > > >I have gone through all of the discussions and built a specific mdb and >matching document zipped as a pair in a zip file. The framework >discussion page on my site now has 12 "chapters" built in this manner. >This should make following the document easier. Anyone going through >the new document / database who finds any issues please email me offline >to let me know and I will attempt to get such issues fixed and reposted. >I did have to go carve out some of the chapters from the databases where >I had just updated the db for several chapters so there may be a few >issues. Again, I will attempt to fix any issues brought to my attention >and repost. > >In the future, all documents will be built with a matching database as >the document is written and so should match "exactly". > >More are on the way. I use a class for Openargs that parse the args and >apply known framework args directly. This lecture is almost finished. >If anyone has any suggestions for future lectures please contact me >offline or post them here if you want to stimulate discussion. > >John W. Colby >www.ColbyConsulting.com > > > > -- Marty Connelly Victoria, B.C. Canada From Chris.Foote at uk.thalesgroup.com Tue Apr 13 01:52:26 2004 From: Chris.Foote at uk.thalesgroup.com (Foote, Chris) Date: Tue, 13 Apr 2004 07:52:26 +0100 Subject: [AccessD] Remove non-alphanumeric characters Message-ID: <97CF276BD8C6D4119C4B00508BB18DE709E0C07C@ntscxch1.int.rdel.co.uk> Thanks for comments Andy! Looks a bit simpler than my solution - I'll give it a go. Chris Foote (UK) > -----Original Message----- > From: Andy Lacey [mailto:andy at minstersystems.co.uk] > Sent: Thursday, April 08, 2004 5:55 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Remove non-alphanumeric characters > > > Well personally I'd find it easier to read if you just > compared characters, > so. Also, as long as your Option Compare doesn't cause case-sensitive > comparisoins, you need only test for a-z once. > > For intPos = 1 To Len(spAlphaNum) > strChar = Mid(spAlphaNum, intPos, 1) > Select Case strChar > Case "0" To "9" ' Numeric > strClean = strClean + strChar > Case "a" To "z" ' Uppercase Alpha > strClean = strClean + Ucase(strChar) > Case Else > End Select > Next intPos > > -- > Andy Lacey > http://www.minstersystems.co.uk > > > > --------- Original Message -------- > From: Access Developers discussion and problem solving > > To: 'Access Developers discussion and problem solving' > > Subject: [AccessD] Remove non-alphanumeric characters > Date: 08/04/04 15:39 > > > > > Good afternoon all! > > > > I have a requirement to strip a string of all > non-alphanumeric characters. > > In addition I wanted to change all upper-case characters to > lower-case. From jskolits at CorporateDataDesign.com Tue Apr 13 02:59:52 2004 From: jskolits at CorporateDataDesign.com (John Skolits) Date: Tue, 13 Apr 2004 03:59:52 -0400 Subject: [AccessD] OT - Windows CE In-Reply-To: Message-ID: <000001c4212d$4d34fe20$6701a8c0@OFFICEXP1> Any advice on doing some basic forms with a backend DB on Windows CE? I'm not a C programmer but certainly been doing Access/VBA since Access came out. Are there any object oriented tools similar to Access that I can use to build forms and do VBA type code. Any good newsgroups for CE that would help me out? John Skolits From thevigil at kabelfoon.nl Tue Apr 13 03:02:13 2004 From: thevigil at kabelfoon.nl (Bert-Jan Brinkhuis) Date: Tue, 13 Apr 2004 10:02:13 +0200 Subject: [AccessD] Get data from Word Doc - A2K References: Message-ID: <002201c4212d$a309f440$3f412d3e@jester> Reuben, just a thought: isn't it possible to save the word document as a txt file and open that in access an scan line by line? If the line's have specific word's it must be possible to find them. Or maybe you know which linenumbers you want to scan? Bert-Jan ----- Original Message ----- From: "Reuben Cummings" To: "AccessD" Sent: Monday, April 12, 2004 11:40 PM Subject: [AccessD] Get data from Word Doc - A2K > I have a 393 page Word document that has data about bridges. Every 3 pages > is one bridge meaning every third page is formatted exactly alike (Page 1 > and Page 4 are alike, Page 2 and Page 5, Page 3 and 6). There are about 10 > pieces of data I would like to extract about every bridge, a little bit on > each of the three pages. > > Is it possible to scan thru this document somehow and 'extract' these 10 > items from it to Access? > > I have tried to copy the document to Excel, but a lot of the text from Word > will end up in one cell rather than split into a cell of its own. > > 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 stuart at lexacorp.com.pg Tue Apr 13 04:23:44 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 13 Apr 2004 19:23:44 +1000 Subject: [AccessD] OT - Windows CE In-Reply-To: <000001c4212d$4d34fe20$6701a8c0@OFFICEXP1> References: Message-ID: <407C3E40.25250.273E516@localhost> On 13 Apr 2004 at 3:59, John Skolits wrote: > > Any advice on doing some basic forms with a backend DB on Windows CE? > > I'm not a C programmer but certainly been doing Access/VBA since Access came > out. Are there any object oriented tools similar to Access that I can use to > build forms and do VBA type code. > A couple of useful links: http://www.syware.com/newsrev/pr/vcewm03.htm and http://www.wirelessdevnet.com/channels/pda/features/ado_ce.html -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From gustav at cactus.dk Mon Apr 12 09:04:45 2004 From: gustav at cactus.dk (Gustav Brock) Date: Mon, 12 Apr 2004 16:04:45 +0200 Subject: [AccessD] A2K: Stop User from oving to new record In-Reply-To: <01c501c41aad$5502fca0$48619a89@DDICK> References: <40706F3F.16231.9E7B12@localhost> <01c501c41aad$5502fca0$48619a89@DDICK> Message-ID: <11019402659.20040412160445@cactus.dk> Hi Darren > Hi Bryan > I did that no joy eg. That is because your expression will never be True as Me.cmbOffence = "" will be Null if Me.cmbOffence is Null, and then IsNull(Me.cmbOffence) Or Null will return Null as well. The fastest method is: If Len(Me.cmbOffence & vbNullString) = 0 but mostly I prefer to use Nz(): If Len(Nz(Me.cmbOffence, vbNullString)) = 0 As Stuart mentions, you may omit the last part, but you must be sure that the value tested is either Null or a string (which is the case here as I guess cmbOffence is a combobox): If Len(Nz(Me.cmbOffence.Value)) = 0 /gustav > Private Sub Form_BeforeUpdate(Cancel As Integer) > If IsNull(Me.cmbOffence) Or Me.cmbOffence = "" Then > MsgBox "Enter an offence" > Cancel = True > End If > End Sub > What I need to do is somehow test if the user is on a new fresh record or has left th previous record with unfilled combos. Of > course I can do it on the lost and got focus event.Thats fine whilst I am in the record > EG record 5 has no offence recorded > User goes to record 6 How do i alert the user that record 5 has a missing value then go back to that record? > ----- Original Message ----- > From: "Bryan Carbonnell" > To: "Access Developers discussion and problemsolving" > Sent: Monday, April 05, 2004 10:25 AM > Subject: Re: [AccessD] A2K: Stop User from oving to new record >> On 5 Apr 2004 at 10:08, Darren DICK wrote: >> >> > I have a simple subform with 4 fields on it >> > ID (PK), txtDateOfOccurence, cboClientName, cboOffence >> > >> > How can I tell if the user goes to a new record and they have not >> > completed ALL fields in the previous record How do I alert them and >> > then direct them back to the previous record? >> >> Use the before update event of the form. Check to make sure they >> entered a vale and if not set Cancel = true in the event. That should >> prevent the record from being saved and keep the sub form on the >> "unfinished" record From Mark.Mitsules at ngc.com Tue Apr 13 07:04:33 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Tue, 13 Apr 2004 08:04:33 -0400 Subject: [AccessD] Get data from Word Doc - A2K Message-ID: I'd second that approach and take the time to mention Seth Galitzer's often utilized File I/O code snippets. http://puma.agron.ksu.edu/~sgsax/ Mark -----Original Message----- From: Bert-Jan Brinkhuis [mailto:thevigil at kabelfoon.nl] Sent: Tuesday, April 13, 2004 4:02 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Get data from Word Doc - A2K Reuben, just a thought: isn't it possible to save the word document as a txt file and open that in access an scan line by line? If the line's have specific word's it must be possible to find them. Or maybe you know which linenumbers you want to scan? Bert-Jan ----- Original Message ----- From: "Reuben Cummings" To: "AccessD" Sent: Monday, April 12, 2004 11:40 PM Subject: [AccessD] Get data from Word Doc - A2K > I have a 393 page Word document that has data about bridges. Every 3 pages > is one bridge meaning every third page is formatted exactly alike (Page 1 > and Page 4 are alike, Page 2 and Page 5, Page 3 and 6). There are about 10 > pieces of data I would like to extract about every bridge, a little bit on > each of the three pages. > > Is it possible to scan thru this document somehow and 'extract' these 10 > items from it to Access? > > I have tried to copy the document to Excel, but a lot of the text from Word > will end up in one cell rather than split into a cell of its own. > > 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 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Bryan_Carbonnell at cbc.ca Tue Apr 13 07:25:17 2004 From: Bryan_Carbonnell at cbc.ca (Bryan Carbonnell) Date: Tue, 13 Apr 2004 08:25:17 -0400 Subject: [AccessD] Get data from Word Doc - A2K Message-ID: If the info you need is in a consistant format, you can loop through the paragraphs in the word doc and then parse it that way, something like: Dim objWord As Word.Application Dim doc As Document Dim para As Paragraph Dim strPara As String Set objWord = CreateObject("Word.Application") Set doc = objWord.Documents.Open("c:\full\path\to\Filename.doc") For Each para In doc.Paragraphs 'Get the text of the paragraph strPara = para.Range.Text 'Parse strPara here looking for what you need Next Set para = Nothing doc.Close Set doc = Nothing objWord.Quit Set objWord = Nothing Bryan Carbonnell bryan_carbonnell at cbc.ca >>> reuben at gfconsultants.com 12-Apr-04 5:40:22 PM >>> I have a 393 page Word document that has data about bridges. Every 3 pages is one bridge meaning every third page is formatted exactly alike (Page 1 and Page 4 are alike, Page 2 and Page 5, Page 3 and 6). There are about 10 pieces of data I would like to extract about every bridge, a little bit on each of the three pages. Is it possible to scan thru this document somehow and 'extract' these 10 items from it to Access? I have tried to copy the document to Excel, but a lot of the text from Word will end up in one cell rather than split into a cell of its own. 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 mastercafe at ctv.es Tue Apr 13 07:33:46 2004 From: mastercafe at ctv.es (MastercafeCTV) Date: Tue, 13 Apr 2004 14:33:46 +0200 Subject: [AccessD] XML DATA ACCESS In-Reply-To: Message-ID: <000701c42153$90e05680$0300a8c0@masterserver> We are searching information about XML for use on Access and prepare data for web. If anyone can help with url's or discussion sites about this we are glad. Thanks in advance Juan Menendez ================================ Mastercafe S.L. NIF - B82.617.614 c/ Pi?eres 4, 1?D (33430 Candas - Asturias) Juan Menendez Crespo juan at mastercafe.com www.mastercafe.com info at mastercafe.com ================================ From R.Griffiths at bury.gov.uk Tue Apr 13 07:59:43 2004 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Tue, 13 Apr 2004 13:59:43 +0100 Subject: [AccessD] Ownership Message-ID: Hi Appear to be getting requests for consultancy work - ie writing small/medium Access/VB systems. Does anyone know the ownership situation for the UK. Can they (my clients) sell on any system I write? Can they demand the source code from me? Or do I have exclusive rights to the code and sell on? Thanks in advance Richard From jskolits at CorporateDataDesign.com Tue Apr 13 08:20:51 2004 From: jskolits at CorporateDataDesign.com (John Skolits) Date: Tue, 13 Apr 2004 09:20:51 -0400 Subject: [AccessD] OT - Windows CE In-Reply-To: <407C3E40.25250.273E516@localhost> Message-ID: <000001c4215a$24d8d5a0$6701a8c0@OFFICEXP1> Great stuff! That'll get me started. I really appreciate it! John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Tuesday, April 13, 2004 5:24 AM To: Access Developers discussion and problemsolving Subject: Re: [AccessD] OT - Windows CE On 13 Apr 2004 at 3:59, John Skolits wrote: > > Any advice on doing some basic forms with a backend DB on Windows CE? > > I'm not a C programmer but certainly been doing Access/VBA since > Access came out. Are there any object oriented tools similar to Access > that I can use to build forms and do VBA type code. > A couple of useful links: http://www.syware.com/newsrev/pr/vcewm03.htm and http://www.wirelessdevnet.com/channels/pda/features/ado_ce.html -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Tue Apr 13 05:33:47 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 13 Apr 2004 12:33:47 +0200 Subject: [AccessD] OT: open source In-Reply-To: <015801c41f62$fedb2f90$6501a8c0@rock> References: <015801c41f62$fedb2f90$6501a8c0@rock> Message-ID: <17911601181.20040413123347@cactus.dk> Hi Arthur Did you check out BlackAdder and/or Rekall at http://www.thekompany.com Not Access clones, and you'll have to like Python ... /gustav > IMO there would be a significant shift in the Linux world if somebody > released something even close to Access. Yeah, there's Jbuilder and > Kylix and such, and a few dbAdmin apps for MySQL, but there is no free > or inexpensive RAD db dev app for Linux... And until there is, few if > any of us will move our businesses there. From gustav at cactus.dk Tue Apr 13 06:28:24 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 13 Apr 2004 13:28:24 +0200 Subject: [AccessD] Wierd AccXP memo happenings. In-Reply-To: <916187228923D311A6FE00A0CC3FAA305BB3F3@ADGSERVER> References: <916187228923D311A6FE00A0CC3FAA305BB3F3@ADGSERVER> Message-ID: <8614878414.20040413132824@cactus.dk> Hi Bobby 1. What happens if you attach the memo content to another record? 2. Try to locate what part of the memo causes the blow. You do that by cutting it in two, then try with the first and then with the second part; continue along this road with the part that fails until you have tracked the malfunctioning part. This may tell you something. /gustav > Hi all, > I have a query that pulls data from several tables. Been running well for > years. I get a call on Monday that it will not print all the way. So after > some researching, I found out that the report was blowing up when it got to > a certain page. > What was happening is that the data from this one table is all of type > double. BUT, for some reason, this one record is returning with the data > from a memo field from the same record (not pulled in the query) and is > blowing up where I am trying to keep up with some totals. > I can delete the data out of the memo and the query runs correctly. I past > back the data and it blows up again. So, I save the memo data in notepad, > remove it from the record, compact the database, import it into a new > database, then add the data back form notepad, and it blows again! > Any ideas (short of moving the memo field to its own record) on how to fix > this sort of problem? It runs great on 100+ other database (all back-ends). > Thanks, > Bobby From gustav at cactus.dk Tue Apr 13 07:49:34 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 13 Apr 2004 14:49:34 +0200 Subject: [AccessD] Remove non-alphanumeric characters In-Reply-To: <97CF276BD8C6D4119C4B00508BB18DE709E0C07B@ntscxch1.int.rdel.co.uk> References: <97CF276BD8C6D4119C4B00508BB18DE709E0C07B@ntscxch1.int.rdel.co.uk> Message-ID: <9819748166.20040413144934@cactus.dk> Hi Chris > I have a requirement to strip a string of all non-alphanumeric characters. > In addition I wanted to change all upper-case characters to lower-case. I > could not find any ready-rolled solution so I've come up with the code > below. > Can anyone think of a more simple way of doing this? I don't think so. However, if you are about to handle large strings, the appending method will prove very slow. If this is the case, you could use Mid() as in the function below which trims a string for anything else than numerals - you will be able to cut it down and modify it for your purpose quite easily. /gustav Function TrimNumString( _ ByVal strNumString As String, _ Optional ByVal strDecimalChr As String, _ Optional ByVal booAcceptMinus As Boolean) _ As String ' Removes any non-numeric character from strNumString including hexadecimal characters. ' If strDecimalChr is specified, first occurrence of this is not removed. ' If booAcceptMinus is True, a leading or trailing minus sign is accepted. ' ' 1999-08-27. Cactus Data ApS, CPH. ' 2001-06-21. Speed optimized for large string (64 K). ' 2003-12-10. intOffset changed to lngOffset. Const cbytNeg As Byte = 45 ' "-" Dim lngPos As Long Dim lngLen As Long Dim lngOffset As Long Dim booDec As Boolean Dim booNeg As Boolean Dim bytChr As Byte Dim bytDec As Byte Dim strNum As String strNumString = Trim(strNumString) lngLen = Len(strNumString) If lngLen > 0 Then If Len(strDecimalChr) > 0 Then bytDec = Asc(strDecimalChr) End If ' Create empty result string of maximum possible length. strNum = Space(lngLen) For lngPos = 1 To lngLen bytChr = Asc(Mid(strNumString, lngPos, 1)) Select Case bytChr Case 48 To 57 ' Digit. Case bytDec ' Decimal point. If booDec = False Then ' One decimal point only. booDec = True End If Case cbytNeg ' Minus sign. bytChr = 0 If booAcceptMinus = True And booNeg = False Then If Len(Trim(strNum)) = 0 Or lngPos = lngLen Then bytChr = cbytNeg ' One minus sign only. booNeg = True End If End If Case Else ' Ignore any other character. bytChr = 0 End Select If bytChr > 0 Then ' Append accepted character by inserting it in result string. lngOffset = lngOffset + 1 Mid(strNum, lngOffset) = Chr(bytChr) End If Next End If ' Trim and return result string. TrimNumString = Left(strNum, lngOffset) End Function From actebs at actebs.com.au Tue Apr 13 08:33:33 2004 From: actebs at actebs.com.au (ACTEBS) Date: Tue, 13 Apr 2004 23:33:33 +1000 Subject: [AccessD] Urgent: ADO Recordset from SQL to Access DB Message-ID: <000201c4215b$ed9c23b0$0b08a8c0@carltonone.local> Hi Everyone, I am onsite doing some coding for a client and don't have access to a couple of files/examples at my office. If anyone has some code to connect to an SQL Server DB via ADO then open the recordset and then append the records to an Access DB table I would be forever grateful. I have been working on this project all day (interstate) and this is the last of it, but for the life of me I can't work out how to set it up...I know I could setup and ODBC connection, but that's not an elegant solution... Any help will be much appreciated... Regards Vlad From nsaqr at nicholaslane.com Tue Apr 13 08:35:26 2004 From: nsaqr at nicholaslane.com (Nick Saqr - NLC) Date: Tue, 13 Apr 2004 06:35:26 -0700 Subject: [AccessD] OT - Windows CE In-Reply-To: <000001c4215a$24d8d5a0$6701a8c0@OFFICEXP1> Message-ID: Check this out - SprintDB PRo. Probably the fastest DB out there, worked well for me. http://www.kaione.com/index.html Nick -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Skolits Sent: Tuesday, April 13, 2004 6:21 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - Windows CE Great stuff! That'll get me started. I really appreciate it! John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Tuesday, April 13, 2004 5:24 AM To: Access Developers discussion and problemsolving Subject: Re: [AccessD] OT - Windows CE On 13 Apr 2004 at 3:59, John Skolits wrote: > > Any advice on doing some basic forms with a backend DB on Windows CE? > > I'm not a C programmer but certainly been doing Access/VBA since > Access came out. Are there any object oriented tools similar to Access > that I can use to build forms and do VBA type code. > A couple of useful links: http://www.syware.com/newsrev/pr/vcewm03.htm and http://www.wirelessdevnet.com/channels/pda/features/ado_ce.html -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Tue Apr 13 08:50:33 2004 From: bheid at appdevgrp.com (Bobby Heid) Date: Tue, 13 Apr 2004 09:50:33 -0400 Subject: [AccessD] Wierd AccXP memo happenings. SOLVED In-Reply-To: <916187228923D311A6FE00A0CC3FAA30820669@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA305BB407@ADGSERVER> Hi Gustav, Thanks for reminding me of this issue. I was off work Friday and Monday and had forgotten to let everyone know that I solved the issue on Thursday, right as I was leaving for the weekend. This particular report has six 'tiers' (0-5) on it. And after reviewing the report, I found that it does not use the Notes (memo) field. So I modified the queries to remove the Notes field. When I then went to run the report, it gave me the missing field error (it was saying the Notes field was missing). I tracked the error to a field that should contain estimated receipts. I guess when I had been setting up that last tier, I had accidentally clicked the Notes field as the data source instead of the correct field. DOH! And since it is rare for the client to have a tier 5 record (and one with a note), no one had caught this error before. So basically, I screwed up the report. Thanks to those that looked at this issue with me. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, April 13, 2004 7:28 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Wierd AccXP memo happenings. Hi Bobby 1. What happens if you attach the memo content to another record? 2. Try to locate what part of the memo causes the blow. You do that by cutting it in two, then try with the first and then with the second part; continue along this road with the part that fails until you have tracked the malfunctioning part. This may tell you something. /gustav > Hi all, > I have a query that pulls data from several tables. Been running well > for years. I get a call on Monday that it will not print all the way. > So after some researching, I found out that the report was blowing up > when it got to a certain page. > What was happening is that the data from this one table is all of type > double. BUT, for some reason, this one record is returning with the > data from a memo field from the same record (not pulled in the query) > and is blowing up where I am trying to keep up with some totals. > I can delete the data out of the memo and the query runs correctly. I > past back the data and it blows up again. So, I save the memo data in > notepad, remove it from the record, compact the database, import it > into a new database, then add the data back form notepad, and it blows > again! > Any ideas (short of moving the memo field to its own record) on how to > fix this sort of problem? It runs great on 100+ other database (all > back-ends). > Thanks, > Bobby -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jeffrey.demulling at usbank.com Tue Apr 13 08:54:58 2004 From: jeffrey.demulling at usbank.com (jeffrey.demulling at usbank.com) Date: Tue, 13 Apr 2004 08:54:58 -0500 Subject: [AccessD] Urgent: ADO Recordset from SQL to Access DB Message-ID: Here is some code. I use a module that contains my connection information: Function ODRConnection(myid As String, mypassword As String) ODRConnection = "Provider=SQLOLEDB.1;Password=" & mypassword & ";Persist Security Info=True;User ID=" & myid & ";Initial Catalog=" & GetSEIDatabase & ";Data Source=" & GetSEIServerName End Function Now to open the recordset ad append the records: Dim con As New ADODB.Connection Dim rs As New ADODB.Recordset Dim cmdtext As String con = setconnection con.Open cmdtext = "INSERT INTO tblProviders (" cmdtext = cmdtext & " [ProviderName] )" cmdtext = cmdtext & " VALUES (" cmdtext = cmdtext & " '" & Me.txtCustomerName & "');" rs.Open cmdtext, con con.Close set rs = nothing set con = nothing ACTEBS To: "access group" Sent by: cc: accessd-bounces at databasea Subject: [AccessD] Urgent: ADO Recordset from SQL to Access DB dvisors.com 04/13/2004 08:33 AM Please respond to "Access Developers discussion and problem solving" Hi Everyone, I am onsite doing some coding for a client and don't have access to a couple of files/examples at my office. If anyone has some code to connect to an SQL Server DB via ADO then open the recordset and then append the records to an Access DB table I would be forever grateful. I have been working on this project all day (interstate) and this is the last of it, but for the life of me I can't work out how to set it up...I know I could setup and ODBC connection, but that's not an elegant solution... Any help will be much appreciated... Regards Vlad -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Chris.Foote at uk.thalesgroup.com Tue Apr 13 09:01:18 2004 From: Chris.Foote at uk.thalesgroup.com (Foote, Chris) Date: Tue, 13 Apr 2004 15:01:18 +0100 Subject: [AccessD] Remove non-alphanumeric characters Message-ID: <97CF276BD8C6D4119C4B00508BB18DE709E0C083@ntscxch1.int.rdel.co.uk> Thanks for that Gustav! An interesting different approach. Luckily (for me) my strings are never longer than about 15 characters. Thanks again! Chris Foote - UK > -----Original Message----- > From: Gustav Brock [mailto:gustav at cactus.dk] > Sent: Tuesday, April 13, 2004 1:50 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Remove non-alphanumeric characters > > > Hi Chris > > > I have a requirement to strip a string of all > non-alphanumeric characters. > > In addition I wanted to change all upper-case characters to > lower-case. I > > could not find any ready-rolled solution so I've come up > with the code > > below. > > > Can anyone think of a more simple way of doing this? > > I don't think so. However, if you are about to handle large strings, > the appending method will prove very slow. If this is the case, you > could use Mid() as in the function below which trims a string for > anything else than numerals - you will be able to cut it down and > modify it for your purpose quite easily. > > /gustav > > > > Function TrimNumString( _ > ByVal strNumString As String, _ > Optional ByVal strDecimalChr As String, _ > Optional ByVal booAcceptMinus As Boolean) _ > As String --------------(snip)----------- From DWUTKA at marlow.com Tue Apr 13 09:13:40 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Tue, 13 Apr 2004 09:13:40 -0500 Subject: [AccessD] OT - Windows CE Message-ID: <2F8793082E00D4119A1700B0D0216BF802227AB8@main2.marlow.com> I know microsoft has an Add-On component for VB, for Windows CE. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Skolits Sent: Tuesday, April 13, 2004 3:00 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT - Windows CE Any advice on doing some basic forms with a backend DB on Windows CE? I'm not a C programmer but certainly been doing Access/VBA since Access came out. Are there any object oriented tools similar to Access that I can use to build forms and do VBA type code. Any good newsgroups for CE that would help me out? John Skolits -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mastercafe at ctv.es Tue Apr 13 09:20:12 2004 From: mastercafe at ctv.es (MastercafeCTV) Date: Tue, 13 Apr 2004 16:20:12 +0200 Subject: [AccessD] Ownership In-Reply-To: Message-ID: <000f01c42162$6f2eb4a0$0300a8c0@masterserver> Hi Richard, I don't know if ECC law are the same for this, but the intelectual property in Spain said that you can develope any tool in any languaje for your client and the main source code and final application rights are for they (client) but you can use this code or application to sell to another client. Inly when you make a contract in the beginning you can put your basis for this. We make always a contract with our clients how take the main source code, except an MDE module with all standar functions of us that they need pay for this use. With this solution you always protect your work for another developers in the future, and can put open source to your client. Hope this notes can help you Juan Menendez ================================ Mastercafe S.L. NIF - B82.617.614 c/ Pi?eres 4, 1?D (33430 Candas - Asturias) Juan Menendez Crespo juan at mastercafe.com www.mastercafe.com info at mastercafe.com ================================ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Griffiths, Richard Sent: martes, 13 de abril de 2004 15:00 To: AccessD at databaseadvisors.com Subject: [AccessD] Ownership Hi Appear to be getting requests for consultancy work - ie writing small/medium Access/VB systems. Does anyone know the ownership situation for the UK. Can they (my clients) sell on any system I write? Can they demand the source code from me? Or do I have exclusive rights to the code and sell on? Thanks in advance Richard -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Tue Apr 13 09:54:18 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Tue, 13 Apr 2004 07:54:18 -0700 Subject: [AccessD] Get data from Word Doc - A2K In-Reply-To: Message-ID: Hi Reuben: Could the document be saved as a text file and then processed through Access? HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Reuben Cummings Sent: Monday, April 12, 2004 2:40 PM To: AccessD Subject: [AccessD] Get data from Word Doc - A2K I have a 393 page Word document that has data about bridges. Every 3 pages is one bridge meaning every third page is formatted exactly alike (Page 1 and Page 4 are alike, Page 2 and Page 5, Page 3 and 6). There are about 10 pieces of data I would like to extract about every bridge, a little bit on each of the three pages. Is it possible to scan thru this document somehow and 'extract' these 10 items from it to Access? I have tried to copy the document to Excel, but a lot of the text from Word will end up in one cell rather than split into a cell of its own. 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 gustav at cactus.dk Tue Apr 13 09:36:23 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 13 Apr 2004 16:36:23 +0200 Subject: [AccessD] Remove non-alphanumeric characters In-Reply-To: <97CF276BD8C6D4119C4B00508BB18DE709E0C083@ntscxch1.int.rdel.co.uk> References: <97CF276BD8C6D4119C4B00508BB18DE709E0C083@ntscxch1.int.rdel.co.uk> Message-ID: <7926157472.20040413163623@cactus.dk> Hi Chris > Luckily (for me) my strings are never longer than about 15 characters. OK. Then I would go ahead with your original suggestion. /gustav From gustav at cactus.dk Tue Apr 13 10:21:00 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 13 Apr 2004 17:21:00 +0200 Subject: [AccessD] OT - MSDN Subscriptions In-Reply-To: <426071E0B0A6D311B3C0006008B0AB23AFE4F2@TAPPEEXCH01> References: <426071E0B0A6D311B3C0006008B0AB23AFE4F2@TAPPEEXCH01> Message-ID: <10628834041.20040413172100@cactus.dk> Hi Brett Don't know what you are about to do, but have you had a look at the empower program for ISVs: http://members.microsoft.com/partner/isv/empower/default.aspx /gustav > I recall a discussion a while back about discount sources for MSDN > subscriptions. We are looking to purchase 5 subscriptions, either > Enterprise or possibly Universal depending on the pricing. > I found the Universal box here for $1135 (with an additional $300 DVD media > discount!): > http://www.buycheapsoftware.com/details.asp?productID=696 > > Can anyone top this? > Brett Barabash, MCP > Tappe Construction, Co. > Eagan, MN > bbarabash at tappeconstruction.com > (651) 256-6831 From BBarabash at TappeConstruction.com Tue Apr 13 10:39:17 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Tue, 13 Apr 2004 10:39:17 -0500 Subject: [AccessD] OT - MSDN Subscriptions Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE4FB@TAPPEEXCH01> I have heard of this before (Joel Spolsky discussed it on his website) Great program, except we are not an independent software vendor (ISV). To be eligible for this program, we need to do the following: - Within 18 months of initial membership activation (within 6 months from renewal), members must publicly announce the new packaged software application on their own official website. - Within 24 months of initial membership activation (within 12 months from renewal), members must release the new packaged software application to the targeted marketplace. Now, if I could convince management to allow me to sell my creations... Brett Barabash, MCP Tappe Construction, Co. Eagan, MN bbarabash at tappeconstruction.com (651) 256-6831 "One thing a computer can do that most humans can't is be sealed up in a cardboard box and sit in a warehouse." -Jack Handey -----Original Message----- From: Gustav Brock [mailto:gustav at cactus.dk] Sent: Tuesday, April 13, 2004 10:21 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT - MSDN Subscriptions Hi Brett Don't know what you are about to do, but have you had a look at the empower program for ISVs: http://members.microsoft.com/partner/isv/empower/default.aspx /gustav > I recall a discussion a while back about discount sources for MSDN > subscriptions. We are looking to purchase 5 subscriptions, either > Enterprise or possibly Universal depending on the pricing. > I found the Universal box here for $1135 (with an additional $300 DVD media > discount!): > http://www.buycheapsoftware.com/details.asp?productID=696 > > Can anyone top this? > Brett Barabash, MCP > Tappe Construction, Co. > Eagan, MN > bbarabash at tappeconstruction.com > (651) 256-6831 -------------------------------------------------------------------------------------------------------------------- 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 actebs at actebs.com.au Tue Apr 13 11:56:48 2004 From: actebs at actebs.com.au (ACTEBS) Date: Wed, 14 Apr 2004 02:56:48 +1000 Subject: [AccessD] Urgent: ADO Recordset from SQL to Access DB - Solved In-Reply-To: Message-ID: <000a01c42178$529a90f0$0b08a8c0@carltonone.local> Jeff, Thanks you're a lifesaver... Vlad -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jeffrey.demulling at usbank.com Sent: Tuesday, 13 April 2004 11:55 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Urgent: ADO Recordset from SQL to Access DB Here is some code. I use a module that contains my connection information: Function ODRConnection(myid As String, mypassword As String) ODRConnection = "Provider=SQLOLEDB.1;Password=" & mypassword & ";Persist Security Info=True;User ID=" & myid & ";Initial Catalog=" & GetSEIDatabase & ";Data Source=" & GetSEIServerName End Function Now to open the recordset ad append the records: Dim con As New ADODB.Connection Dim rs As New ADODB.Recordset Dim cmdtext As String con = setconnection con.Open cmdtext = "INSERT INTO tblProviders (" cmdtext = cmdtext & " [ProviderName] )" cmdtext = cmdtext & " VALUES (" cmdtext = cmdtext & " '" & Me.txtCustomerName & "');" rs.Open cmdtext, con con.Close set rs = nothing set con = nothing ACTEBS To: "access group" Sent by: cc: accessd-bounces at databasea Subject: [AccessD] Urgent: ADO Recordset from SQL to Access DB dvisors.com 04/13/2004 08:33 AM Please respond to "Access Developers discussion and problem solving" Hi Everyone, I am onsite doing some coding for a client and don't have access to a couple of files/examples at my office. If anyone has some code to connect to an SQL Server DB via ADO then open the recordset and then append the records to an Access DB table I would be forever grateful. I have been working on this project all day (interstate) and this is the last of it, but for the life of me I can't work out how to set it up...I know I could setup and ODBC connection, but that's not an elegant solution... Any help will be much appreciated... 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 rl_stewart at highstream.net Tue Apr 13 13:17:16 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Tue, 13 Apr 2004 13:17:16 -0500 Subject: [AccessD] Re: Ownership In-Reply-To: <200404131700.i3DH0LB16022@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040413131409.02a0b8e0@pop3.highstream.net> Richard, It depends on the contract. If you are contracting to produce a specific program with source, the you can word the contract so that you retain the copyright, but they have rights to modify the source and cannot sell it outside of their company. Or, that they own the copyright at the end of teh contract and can do whatever they want with it. Generally, if you are working by the hour, they own it. But, again, you can word the contract however you want to between you and the customer. Robert At 12:00 PM 4/13/2004 -0500, you wrote: >Date: Tue, 13 Apr 2004 13:59:43 +0100 >From: "Griffiths, Richard" >Subject: [AccessD] Ownership >To: >Message-ID: > >Content-Type: text/plain; charset="us-ascii" > >Hi > > > >Appear to be getting requests for consultancy work - ie writing >small/medium Access/VB systems. Does anyone know the ownership >situation for the UK. Can they (my clients) sell on any system I write? >Can they demand the source code from me? Or do I have exclusive rights >to the code and sell on? > > > >Thanks in advance > > > >Richard From gustav at cactus.dk Tue Apr 13 13:24:35 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 13 Apr 2004 20:24:35 +0200 Subject: [AccessD] OT - MSDN Subscriptions In-Reply-To: <426071E0B0A6D311B3C0006008B0AB23AFE4FB@TAPPEEXCH01> References: <426071E0B0A6D311B3C0006008B0AB23AFE4FB@TAPPEEXCH01> Message-ID: <1139849210.20040413202435@cactus.dk> Hi Brett But what happens if you "fail" other than you may have postponed your purchase 24 months? /gustav > I have heard of this before (Joel Spolsky discussed it on his website) > Great program, except we are not an independent software vendor (ISV). To > be eligible for this program, we need to do the following: > - Within 18 months of initial membership activation (within 6 months from > renewal), members must publicly announce the new packaged software > application on their own official website. > - Within 24 months of initial membership activation (within 12 months from > renewal), members must release the new packaged software application to the > targeted marketplace. > Now, if I could convince management to allow me to sell my creations... > Brett Barabash, MCP > Tappe Construction, Co. > Eagan, MN > bbarabash at tappeconstruction.com > (651) 256-6831 > "One thing a computer can do that most humans can't is be sealed up in a > cardboard box and sit in a warehouse." -Jack Handey > -----Original Message----- > From: Gustav Brock [mailto:gustav at cactus.dk] > Sent: Tuesday, April 13, 2004 10:21 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] OT - MSDN Subscriptions > Hi Brett > Don't know what you are about to do, but have you had a look at the > empower program for ISVs: > http://members.microsoft.com/partner/isv/empower/default.aspx > /gustav >> I recall a discussion a while back about discount sources for MSDN >> subscriptions. We are looking to purchase 5 subscriptions, either >> Enterprise or possibly Universal depending on the pricing. >> I found the Universal box here for $1135 (with an additional $300 DVD media >> discount!): >> http://www.buycheapsoftware.com/details.asp?productID=696 >> From jskolits at CorporateDataDesign.com Tue Apr 13 14:05:48 2004 From: jskolits at CorporateDataDesign.com (John Skolits) Date: Tue, 13 Apr 2004 15:05:48 -0400 Subject: [AccessD] OT - Windows CE (Demise of PDAs) In-Reply-To: <2F8793082E00D4119A1700B0D0216BF802227AB8@main2.marlow.com> Message-ID: <000b01c4218a$552c8140$6701a8c0@OFFICEXP1> Thanks all for the links. While researching, came across an article about the decline of PDA's. Makes me think a bit before delving into a new technology/programming language. http://www.denverpost.com/Stories/0,1413,36~33~2077837,00.html John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: Tuesday, April 13, 2004 10:14 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] OT - Windows CE I know microsoft has an Add-On component for VB, for Windows CE. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Skolits Sent: Tuesday, April 13, 2004 3:00 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT - Windows CE Any advice on doing some basic forms with a backend DB on Windows CE? I'm not a C programmer but certainly been doing Access/VBA since Access came out. Are there any object oriented tools similar to Access that I can use to build forms and do VBA type code. Any good newsgroups for CE that would help me out? John Skolits -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Tue Apr 13 14:11:10 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Tue, 13 Apr 2004 20:11:10 +0100 Subject: [AccessD] Ownership In-Reply-To: Message-ID: <000001c4218b$1524a3b0$b274d0d5@minster33c3r25> Hi Richard It has always been my understanding that, unless a contract states otherwise, the source code belongs to the developer. Having said that, however, it has equally always been my stance that if I'm being paid to develop something then ethically what I develop specifically for the client is 100% theirs. But the key word is 'specifically'. Most of us have an awful lot of code in our lockers that we'll bring out in any development. The client needs to understand this and needs to see that he gets the benefit because he doesn't pay for that stuff. It may be this that gives us our marketing edge when we go into bat for the work. The question really comes down to 'why do you ask?'. Do I sense that you smell some sell-on potential? Be careful, it rarely happens. And certainly NEVER discount what you do based on the promise of future sales. But I digress. The important thing is that you want a happy customer and they probably want a happy supplier - or at least a productive one. So if you feel you should, or the customer forces the issue, then discuss it, but amicably. Explain that what they'll get is part theirs and part yours (if it is, and if you agree with me) and that they'll therefore own part of it. But in practise if they want to sell it on they'll need you along anyway for support etc, and if you want to sell it on you'll need them along as a (probably the only) reference site. So, like most things, it comes down to discussion, agreement, compromise and that sort of thing. Just reach an arrangement that suits both of you. IME most customers don't think to ask, and I don't raise it. It's not that I intend to do them down - if they raise it months or years down the line I'll still give the same response - it's just that getting contracts off the ground is tricky enough without introducing complications the customer hasn't even thought about. Just get the work, do a great job, make the customer happy, and the chances are it'll never be an issue. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Griffiths, Richard > Sent: 13 April 2004 14:00 > To: AccessD at databaseadvisors.com > Subject: [AccessD] Ownership > > > Hi > > > > Appear to be getting requests for consultancy work - ie writing > small/medium Access/VB systems. Does anyone know the ownership > situation for the UK. Can they (my clients) sell on any > system I write? Can they demand the source code from me? Or > do I have exclusive rights to the code and sell on? > > > > Thanks in advance > > > > Richard > From ssharkins at bellsouth.net Tue Apr 13 14:33:55 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 13 Apr 2004 15:33:55 -0400 Subject: [AccessD] Ownership In-Reply-To: <000001c4218b$1524a3b0$b274d0d5@minster33c3r25> Message-ID: <20040413193353.GYEC23778.imf23aec.mail.bellsouth.net@SUSANONE> There's nothing wrong with stipulating in the contract that the product is for the purchaser's use and not for resell by the purchaser -- I always had that. They don't ask -- they're not interested in reselling, but just in case... Susan H. The question really comes down to 'why do you ask?'. Do I sense that you smell some sell-on potential? Be careful, it rarely happens. And certainly NEVER discount what you do based on the promise of future sales. But I digress. The important thing is that you want a happy From DWUTKA at marlow.com Tue Apr 13 15:29:40 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Tue, 13 Apr 2004 15:29:40 -0500 Subject: [AccessD] OT - Windows CE (Demise of PDAs) Message-ID: <2F8793082E00D4119A1700B0D0216BF802227ABB@main2.marlow.com> Interesting article. However, there are mobile phones which are coming with Windows CE, so it's a skill that will still be handy even with the new trend. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Skolits Sent: Tuesday, April 13, 2004 2:06 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT - Windows CE (Demise of PDAs) Thanks all for the links. While researching, came across an article about the decline of PDA's. Makes me think a bit before delving into a new technology/programming language. http://www.denverpost.com/Stories/0,1413,36~33~2077837,00.html John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: Tuesday, April 13, 2004 10:14 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] OT - Windows CE I know microsoft has an Add-On component for VB, for Windows CE. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John Skolits Sent: Tuesday, April 13, 2004 3:00 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] OT - Windows CE Any advice on doing some basic forms with a backend DB on Windows CE? I'm not a C programmer but certainly been doing Access/VBA since Access came out. Are there any object oriented tools similar to Access that I can use to build forms and do VBA type code. Any good newsgroups for CE that would help me out? John Skolits -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Tue Apr 13 17:42:54 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Wed, 14 Apr 2004 08:42:54 +1000 Subject: [AccessD] A2K: Stop User from oving to new record References: <40706F3F.16231.9E7B12@localhost><01c501c41aad$5502fca0$48619a89@DDICK> <11019402659.20040412160445@cactus.dk> Message-ID: <003701c421a8$a979a340$48619a89@DDICK> Thanks Gustav et al I will use this method in the future many thanks Darren ----- Original Message ----- From: "Gustav Brock" To: "Access Developers discussion and problem solving" Sent: Tuesday, April 13, 2004 12:04 AM Subject: Re: [AccessD] A2K: Stop User from oving to new record > Hi Darren > > > Hi Bryan > > I did that no joy eg. > > That is because your expression will never be True as > > Me.cmbOffence = "" > > will be Null if Me.cmbOffence is Null, and then > > IsNull(Me.cmbOffence) Or Null > > will return Null as well. > > The fastest method is: > > If Len(Me.cmbOffence & vbNullString) = 0 > > but mostly I prefer to use Nz(): > > If Len(Nz(Me.cmbOffence, vbNullString)) = 0 > > As Stuart mentions, you may omit the last part, but you must be sure > that the value tested is either Null or a string (which is the case > here as I guess cmbOffence is a combobox): > > If Len(Nz(Me.cmbOffence.Value)) = 0 > > /gustav > > > > Private Sub Form_BeforeUpdate(Cancel As Integer) > > > If IsNull(Me.cmbOffence) Or Me.cmbOffence = "" Then > > MsgBox "Enter an offence" > > Cancel = True > > End If > > > End Sub > > > What I need to do is somehow test if the user is on a new fresh record or has left th previous record with unfilled combos. Of > > course I can do it on the lost and got focus event.Thats fine whilst I am in the record > > EG record 5 has no offence recorded > > User goes to record 6 How do i alert the user that record 5 has a missing value then go back to that record? > > > > ----- Original Message ----- > > From: "Bryan Carbonnell" > > To: "Access Developers discussion and problemsolving" > > Sent: Monday, April 05, 2004 10:25 AM > > Subject: Re: [AccessD] A2K: Stop User from oving to new record > > > >> On 5 Apr 2004 at 10:08, Darren DICK wrote: > >> > >> > I have a simple subform with 4 fields on it > >> > ID (PK), txtDateOfOccurence, cboClientName, cboOffence > >> > > >> > How can I tell if the user goes to a new record and they have not > >> > completed ALL fields in the previous record How do I alert them and > >> > then direct them back to the previous record? > >> > >> Use the before update event of the form. Check to make sure they > >> entered a vale and if not set Cancel = true in the event. That should > >> prevent the record from being saved and keep the sub form on the > >> "unfinished" record > > -- > _______________________________________________ > 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 Apr 13 18:20:54 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 14 Apr 2004 09:20:54 +1000 Subject: [AccessD] Ownership In-Reply-To: <000001c4218b$1524a3b0$b274d0d5@minster33c3r25> References: Message-ID: <407D0276.1957.32EE83@localhost> On 13 Apr 2004 at 20:11, Andy Lacey wrote: > Hi Richard > It has always been my understanding that, unless a contract states > otherwise, the source code belongs to the developer. I don't know about the UK, but in many situations, it is much more complicated than that. >Having said that, > however, it has equally always been my stance that if I'm being paid to > develop something then ethically what I develop specifically for the client > is 100% theirs. But the key word is 'specifically'. Most of us have an awful > lot of code in our lockers that we'll bring out in any development. In reality, *everyone* capable of developing a marketable solution does this. >The > client needs to understand this and needs to see that he gets the benefit > because he doesn't pay for that stuff. It may be this that gives us our > marketing edge when we go into bat for the work. > My standard "proposal" template says: "The application will have been developed by Lexacorp for your use, but the developed application will incorporate code fragments and ideas that have previously been developed by Lexacorp and all intellectual property rights to the application remains the property of Lexacorp. You will receive a copy of the source code for the application and will be granted a non-exclusive licence to use such source code for maintenance and future development of the said application for your own use in such manner as you see fit. .... You may not sell or otherwise dispose of the said source code, or any application developed utilising all or part of it to any third party without the express agreement of Lexacorp. " -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From stuart at lexacorp.com.pg Tue Apr 13 18:44:02 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 14 Apr 2004 09:44:02 +1000 Subject: [AccessD] OT - Windows CE (Demise of PDAs) In-Reply-To: <000b01c4218a$552c8140$6701a8c0@OFFICEXP1> References: <2F8793082E00D4119A1700B0D0216BF802227AB8@main2.marlow.com> Message-ID: <407D07E2.32006.4819F2@localhost> On 13 Apr 2004 at 15:05, John Skolits wrote: > Thanks all for the links. > > While researching, came across an article about the decline of PDA's. Makes > me think a bit before delving into a new technology/programming language. > > http://www.denverpost.com/Stories/0,1413,36~33~2077837,00.html > The "mobile devices" mentioned in the article as *replacements* for the PDA are really just PDAs with more features. They all use the same "new technology/programming language". (Is a Treo a phone with PDA functions or a PDA with phone functions?) Then there is the continuing growth in smart data capture equipment, GPS integrated devices etc Take a look at the number of different such devices now using Palm OS or Windows CE. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From d.dick at uws.edu.au Tue Apr 13 22:01:32 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Wed, 14 Apr 2004 13:01:32 +1000 Subject: [AccessD] A2K:Adding the word ALL to a combo Message-ID: <01c101c421cc$cadf66e0$48619a89@DDICK> Hello all I need to add the word to a combo SO pseudo = select * from MyTable and Then add "" I have done this before through assistance from this list but I can't find the Gem or remember the dB I did it on :-(( Any suggestions? Many thanks Darren From DWUTKA at marlow.com Tue Apr 13 22:10:22 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Tue, 13 Apr 2004 22:10:22 -0500 Subject: [AccessD] A2K:Adding the word ALL to a combo Message-ID: <2F8793082E00D4119A1700B0D0216BF802227ABF@main2.marlow.com> SELECT "ALL" As AField FROM MyTable UNION SELECT MyField FROM MyTable Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Darren DICK Sent: Tuesday, April 13, 2004 10:02 PM To: AccessD List Subject: [AccessD] A2K:Adding the word ALL to a combo Hello all I need to add the word to a combo SO pseudo = select * from MyTable and Then add "" I have done this before through assistance from this list but I can't find the Gem or remember the dB I did it on :-(( Any suggestions? Many thanks Darren -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Tue Apr 13 22:35:44 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Tue, 13 Apr 2004 20:35:44 -0700 Subject: [AccessD] A2K:Adding the word ALL to a combo In-Reply-To: <01c101c421cc$cadf66e0$48619a89@DDICK> Message-ID: Hi Darren: The only way I know to add 'all' to a combo/list box is through a recorsdset that I supply myself. The gem piece came from an example code segment supplied in Access97 help files. I can not remember what the request was that found it but I have used a variation on that theme for years. Below is the base piece; I just cut and pasted it from one application I have just finished. The call to this function is made from the list/combo boxes by placing the functions name in the 'Row Source Type' property i.e. : FillFunctionCode And a sample of the function: Public Function FillFunctionCode(ctlBox As Control, ID As Variant, row As Variant, col As Variant, Code As Variant) As Variant Dim bolDBStatus As Boolean Dim mvReturnVal As Variant On Error GoTo Err_FillFunctionCode bolDBStatus = True If rsFunctionCode Is Nothing Then bolDBStatus = FillRecordsetFunctionCode() mvReturnVal = Null If bolDBStatus = True Then With rsFunctionCode Select Case Code Case acLBInitialize ' Initialize. bolStatus = True If .BOF = False Or .EOF = False Then .MoveFirst mvReturnVal = .RecordCount Else mvReturnVal = 0 End If Case acLBOpen ' Open. mvReturnVal = Timer ' Generate unique ID for control. Case acLBGetRowCount ' Get number of rows. mvReturnVal = .RecordCount Case acLBGetColumnCount ' Get number of columns. mvReturnVal = ctlBox.ColumnCount Case acLBGetColumnWidth ' Column width. mvReturnVal = -1 ' -1 forces use of default width. Case acLBGetFormat ' Get format mvReturnVal = -1 Case acLBGetValue ' Get data. .MoveFirst .Move (row) mvReturnVal = .Fields(col) End Select End With End If FillFunctionCode = mvReturnVal Exit_FillFunctionCode: Exit Function Err_FillFunctionCode: 'Handles error situation caused an apparent unrelated error(s) 'generated in other modules. (It loses its brains...) If Err.Number = 3167 Then rsFunctionCode.Requery ElseIf Err.Number = 3704 Or Err.Number = -2147467259 Then Resume Exit_FillFunctionCode ElseIf Err.Number <> 91 Then ShowErrMsg "FillFunctionCode" End If Resume Exit_FillFunctionCode End Function There still needs to be a piece of code that fills the recordset, in this case a recordset named 'rsFunctionCode'. In the recordset creating routine is where 'All' would be added. If you need I can send the code that populates the recordset but there are so many ways to do that. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Darren DICK Sent: Tuesday, April 13, 2004 8:02 PM To: AccessD List Subject: [AccessD] A2K:Adding the word ALL to a combo Hello all I need to add the word to a combo SO pseudo = select * from MyTable and Then add "" I have done this before through assistance from this list but I can't find the Gem or remember the dB I did it on :-(( Any suggestions? Many thanks Darren -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rbgajewski at adelphia.net Tue Apr 13 22:33:35 2004 From: rbgajewski at adelphia.net (Bob Gajewski) Date: Tue, 13 Apr 2004 23:33:35 -0400 Subject: [AccessD] A2K:Adding the word ALL to a combo In-Reply-To: <01c101c421cc$cadf66e0$48619a89@DDICK> Message-ID: Darren: Here's one example: SELECT [tblStates].[txtStateCode], [tblStates].[txtStateName] FROM tblStates UNION Select "" As AllChoice FROM tblStates ORDER BY [tblStates].[txtStateName]; Regards, Bob Gajewski -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Darren DICK Sent: Tuesday, April 13, 2004 23:02 To: AccessD List Subject: [AccessD] A2K:Adding the word ALL to a combo Hello all I need to add the word to a combo SO pseudo = select * from MyTable and Then add "" I have done this before through assistance from this list but I can't find the Gem or remember the dB I did it on :-(( Any suggestions? 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 Tue Apr 13 22:57:39 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Wed, 14 Apr 2004 13:57:39 +1000 Subject: [AccessD] A2K:Adding the word ALL to a combo References: <2F8793082E00D4119A1700B0D0216BF802227ABF@main2.marlow.com> Message-ID: <01fc01c421d4$a17fd7f0$48619a89@DDICK> Howdy Thanks for the reply Excellent DD ----- Original Message ----- From: To: Sent: Wednesday, April 14, 2004 1:10 PM Subject: RE: [AccessD] A2K:Adding the word ALL to a combo > SELECT "ALL" As AField > FROM MyTable > > UNION SELECT MyField > FROM MyTable > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Darren DICK > Sent: Tuesday, April 13, 2004 10:02 PM > To: AccessD List > Subject: [AccessD] A2K:Adding the word ALL to a combo > > > Hello all > I need to add the word to a combo > SO pseudo = select * from MyTable and Then add "" > > I have done this before through assistance from this list but I can't find > the Gem > or remember the dB I did it on :-(( > > Any suggestions? > > 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 Tue Apr 13 23:08:00 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Wed, 14 Apr 2004 14:08:00 +1000 Subject: [AccessD] A2K:Adding the word ALL to a combo - SOLVED References: Message-ID: <022d01c421d6$13918b80$48619a89@DDICK> Thanks to all who responded I went with Drew's suggestion 'Cause he was first :-)) Many thanks Darren ----- Original Message ----- From: "Jim Lawrence (AccessD)" To: "Access Developers discussion and problem solving" Sent: Wednesday, April 14, 2004 1:35 PM Subject: RE: [AccessD] A2K:Adding the word ALL to a combo > Hi Darren: > > The only way I know to add 'all' to a combo/list box is through a recorsdset > that I supply myself. The gem piece came from an example code segment > supplied in Access97 help files. I can not remember what the request was > that found it but I have used a variation on that theme for years. Below is > the base piece; I just cut and pasted it from one application I have just > finished. > > The call to this function is made from the list/combo boxes by placing the > functions name in the 'Row Source Type' property i.e. : FillFunctionCode > > And a sample of the function: > > Public Function FillFunctionCode(ctlBox As Control, ID As Variant, row As > Variant, col As Variant, Code As Variant) As Variant > Dim bolDBStatus As Boolean > Dim mvReturnVal As Variant > > On Error GoTo Err_FillFunctionCode > > bolDBStatus = True > If rsFunctionCode Is Nothing Then bolDBStatus = > FillRecordsetFunctionCode() > > mvReturnVal = Null > > If bolDBStatus = True Then > With rsFunctionCode > Select Case Code > Case acLBInitialize ' Initialize. > bolStatus = True > > If .BOF = False Or .EOF = False Then > .MoveFirst > mvReturnVal = .RecordCount > Else > mvReturnVal = 0 > End If > Case acLBOpen ' Open. > mvReturnVal = Timer ' Generate unique ID for > control. > Case acLBGetRowCount ' Get number of rows. > mvReturnVal = .RecordCount > Case acLBGetColumnCount ' Get number of columns. > mvReturnVal = ctlBox.ColumnCount > Case acLBGetColumnWidth ' Column width. > mvReturnVal = -1 ' -1 forces use of > default width. > Case acLBGetFormat ' Get format > mvReturnVal = -1 > Case acLBGetValue ' Get data. > .MoveFirst > .Move (row) > mvReturnVal = .Fields(col) > End Select > End With > End If > > FillFunctionCode = mvReturnVal > > Exit_FillFunctionCode: > Exit Function > > Err_FillFunctionCode: > 'Handles error situation caused an apparent unrelated error(s) > 'generated in other modules. (It loses its brains...) > If Err.Number = 3167 Then > rsFunctionCode.Requery > ElseIf Err.Number = 3704 Or Err.Number = -2147467259 Then > Resume Exit_FillFunctionCode > ElseIf Err.Number <> 91 Then > ShowErrMsg "FillFunctionCode" > End If > Resume Exit_FillFunctionCode > > End Function > > There still needs to be a piece of code that fills the recordset, in this > case a recordset named 'rsFunctionCode'. In the recordset creating routine > is where 'All' would be added. If you need I can send the code that > populates the recordset but there are so many ways to do that. > > HTH > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Darren DICK > Sent: Tuesday, April 13, 2004 8:02 PM > To: AccessD List > Subject: [AccessD] A2K:Adding the word ALL to a combo > > > Hello all > I need to add the word to a combo > SO pseudo = select * from MyTable and Then add "" > > I have done this before through assistance from this list but I can't find > the Gem > or remember the dB I did it on :-(( > > Any suggestions? > > 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 gustav at cactus.dk Wed Apr 14 03:50:51 2004 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 14 Apr 2004 10:50:51 +0200 Subject: [AccessD] A2K:Adding the word ALL to a combo - SOLVED In-Reply-To: <022d01c421d6$13918b80$48619a89@DDICK> References: <022d01c421d6$13918b80$48619a89@DDICK> Message-ID: <1336886412.20040414105051@cactus.dk> Hi Darren > Thanks to all who responded > I went with Drew's suggestion > 'Cause he was first :-)) Yeah, but I guess you did adjust it to use "", because "ALL" could be sorted within your recordset. Thus, if you have Alice and Susan, your combo would list: Alice ALL Susan /gustav > SELECT "ALL" As AField > FROM MyTable > > UNION SELECT MyField > FROM MyTable From Jeff at OUTBAKTech.com Wed Apr 14 10:39:36 2004 From: Jeff at OUTBAKTech.com (Jeff Barrows) Date: Wed, 14 Apr 2004 10:39:36 -0500 Subject: [AccessD] Convert Case to Upper Case Message-ID: <8DA8776D2F418E46A2A464AC6CE6305003266E@outbaksrv1.outbaktech.com> Hello Group, Does anyone have a technique for updating data in tables to ALL be upper case? Jeff Barrows From gustav at cactus.dk Wed Apr 14 10:58:02 2004 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 14 Apr 2004 17:58:02 +0200 Subject: [AccessD] Convert Case to Upper Case In-Reply-To: <8DA8776D2F418E46A2A464AC6CE6305003266E@outbaksrv1.outbaktech.com> References: <8DA8776D2F418E46A2A464AC6CE6305003266E@outbaksrv1.outbaktech.com> Message-ID: <9332517157.20040414175802@cactus.dk> Hi Jeff An update query ... or do you have special needs? /gustav > Does anyone have a technique for updating data in tables to ALL be upper case? From bheid at appdevgrp.com Wed Apr 14 11:02:20 2004 From: bheid at appdevgrp.com (Bobby Heid) Date: Wed, 14 Apr 2004 12:02:20 -0400 Subject: [AccessD] Convert Case to Upper Case In-Reply-To: <916187228923D311A6FE00A0CC3FAA308209CE@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA305BB414@ADGSERVER> You can use the format function in a query with a format string of ">". Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeff Barrows Sent: Wednesday, April 14, 2004 11:40 AM To: accessd at databaseadvisors.com Subject: [AccessD] Convert Case to Upper Case Hello Group, Does anyone have a technique for updating data in tables to ALL be upper case? Jeff Barrows -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Wed Apr 14 11:27:04 2004 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 14 Apr 2004 18:27:04 +0200 Subject: [AccessD] A97 - 2003 conversion In-Reply-To: <15440940699.20040225202312@cactus.dk> References: <15440940699.20040225202312@cactus.dk> Message-ID: <5634259482.20040414182704@cactus.dk> Hi all Helen has added part two - this time on Personal Digital Certificates - but now a part three is announced. The filename has not changed. /gustav > You should look up Helen's article (part one only, part two to > follow!) > http://www.helenfeddema.com/access.htm > on this topic: accarch119.zip From Patricia.O'Connor at dfa.state.ny.us Wed Apr 14 11:27:14 2004 From: Patricia.O'Connor at dfa.state.ny.us (O'Connor, Patricia ) Date: Wed, 14 Apr 2004 12:27:14 -0400 Subject: [AccessD] Convert Case to Upper Case Message-ID: Update query using UPPER([fieldname]) HTH Patti ************************************************************* * Patricia E. O'Connor * Associate Computer Programmer/Analyst * OTDA - BDMA * (W) mailto:Patricia.O'Connor at dfa.state.ny.us * (W) mailto:aa1160 at dfa.state.ny.us *********************************************************** From gustav at cactus.dk Wed Apr 14 11:46:55 2004 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 14 Apr 2004 18:46:55 +0200 Subject: [AccessD] Access 2003 Digital Certificate In-Reply-To: <5634259482.20040414182704@cactus.dk> References: <15440940699.20040225202312@cactus.dk> <5634259482.20040414182704@cactus.dk> Message-ID: <1335450164.20040414184655@cactus.dk> Hi all And from Gary Robinson I just received a link for this month's open article "Signing Access 2003 Projects": http://www.pinpub.com/html/main.isx?sub=62&story=2693 Basically, applying a digital certificate to your code encrypts it for editing but not for execution. /gustav > Helen has added part two - this time on Personal Digital Certificates > - but now a part three is announced. > The filename has not changed. > /gustav >> You should look up Helen's article (part one only, part two to >> follow!) >> http://www.helenfeddema.com/access.htm >> on this topic: accarch119.zip From Jeff at OUTBAKTech.com Wed Apr 14 12:00:54 2004 From: Jeff at OUTBAKTech.com (Jeff Barrows) Date: Wed, 14 Apr 2004 12:00:54 -0500 Subject: [AccessD] Convert Case to Upper Case Message-ID: <8DA8776D2F418E46A2A464AC6CE6305003266F@outbaksrv1.outbaktech.com> Thanks for the help! This Should work just fine!! -----Original Message----- From: O'Connor, Patricia [mailto:Patricia.O'Connor at dfa.state.ny.us] Sent: Wed 4/14/2004 11:27 AM To: Access Developers discussion and problem solving Cc: Subject: RE: [AccessD] Convert Case to Upper Case Update query using UPPER([fieldname]) HTH Patti ************************************************************* * Patricia E. O'Connor * Associate Computer Programmer/Analyst * OTDA - BDMA * (W) mailto:Patricia.O'Connor at dfa.state.ny.us * (W) mailto:aa1160 at dfa.state.ny.us *********************************************************** From gustav at cactus.dk Wed Apr 14 12:16:52 2004 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 14 Apr 2004 19:16:52 +0200 Subject: [AccessD] Convert Case to Upper Case In-Reply-To: <8DA8776D2F418E46A2A464AC6CE6305003266F@outbaksrv1.outbaktech.com> References: <8DA8776D2F418E46A2A464AC6CE6305003266F@outbaksrv1.outbaktech.com> Message-ID: <13037247018.20040414191652@cactus.dk> Hi Jeff > Thanks for the help! This Should work just fine!! Not in Jet SQL. That would be UCase(). /gustav > Update query using UPPER([fieldname]) From gustav at cactus.dk Wed Apr 14 12:45:51 2004 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 14 Apr 2004 19:45:51 +0200 Subject: [AccessD] Permissions Refresher In-Reply-To: References: Message-ID: <1338986209.20040414194551@cactus.dk> Hi Mark > I have a database that is currently restricted (by folder permissions) to > only a few individual persons. I am now in the process of creating a > database for general use that needs to link to a table in that restricted > database. Out of the following permissions, what is the minimum necessary > to allow a user to execute select queries, but not allow any modifications > to the data? I don't think you can do this as you for the new user group would need to have two levels of permissions: read-only for the data file, and - as for the first group - create-read-write (or better: create-read-write-erase) for the the locking file (.ldb). This article covers your initial scenario but not your requested scenario, "Restrict The People Who Can Use Your Database Folder": http://www.vb123.com/toolshed/04_docs/accessdb_op_security.htm However - as William will know - if you really need this setup, go and get a Novell NetWare server. Here you can control user permissions down to the single file; this scenario could be created in two minutes. /gustav From gustav at cactus.dk Wed Apr 14 14:14:15 2004 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 14 Apr 2004 21:14:15 +0200 Subject: [AccessD] OT: US/UK public holidays Message-ID: <591136444.20040414211415@cactus.dk> Hi all What is the meaning of the column "Day Observed" here: http://www.usembassy.org.uk/ukpubhol.html Look for example at the second and third last entry. /gustav From mwp.reid at qub.ac.uk Wed Apr 14 14:18:13 2004 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Wed, 14 Apr 2004 20:18:13 +0100 Subject: [AccessD] OT: US/UK public holidays References: <591136444.20040414211415@cactus.dk> Message-ID: <001e01c42255$3e5ec7e0$1b02a8c0@MARTINREID> Dont know but maybe its the day they take instead of the official holiday for example if it falls on a weekend. Martin ----- Original Message ----- From: "Gustav Brock" To: "Access Developers discussion and problem solving" Sent: Wednesday, April 14, 2004 8:14 PM Subject: [AccessD] OT: US/UK public holidays > Hi all > > What is the meaning of the column "Day Observed" here: > > http://www.usembassy.org.uk/ukpubhol.html > > Look for example at the second and third last entry. > > /gustav > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jeffrey.demulling at usbank.com Wed Apr 14 14:21:40 2004 From: jeffrey.demulling at usbank.com (jeffrey.demulling at usbank.com) Date: Wed, 14 Apr 2004 14:21:40 -0500 Subject: [AccessD] OT: US/UK public holidays Message-ID: It is the day that the Embassy will actually close for the holiday. The best example is Christamas. It falls on a Saturday but the Embassy will close on Friday. "Gustav Brock" To: "Access Developers discussion and problem solving" Sent by: accessd-bounces at databasea cc: dvisors.com Subject: [AccessD] OT: US/UK public holidays 04/14/2004 02:14 PM Please respond to "Access Developers discussion and problem solving" Hi all What is the meaning of the column "Day Observed" here: http://www.usembassy.org.uk/ukpubhol.html Look for example at the second and third last entry. /gustav -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at bellsouth.net Wed Apr 14 16:38:46 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Wed, 14 Apr 2004 17:38:46 -0400 Subject: [AccessD] Permissions Refresher References: <1338986209.20040414194551@cactus.dk> Message-ID: <00c301c42268$de1619b0$6101a8c0@dejpolsys> ...William knows nnnooottthhhinnnggg! ...just ask JC ...he'll confirm that :) William Hindman "Always code as if the person who is maintaining or testing your code is a violent psychopath who knows where you live." William Silverstein ----- Original Message ----- From: "Gustav Brock" To: "Access Developers discussion and problem solving" Sent: Wednesday, April 14, 2004 1:45 PM Subject: Re: [AccessD] Permissions Refresher > Hi Mark > > > I have a database that is currently restricted (by folder permissions) to > > only a few individual persons. I am now in the process of creating a > > database for general use that needs to link to a table in that restricted > > database. Out of the following permissions, what is the minimum necessary > > to allow a user to execute select queries, but not allow any modifications > > to the data? > > I don't think you can do this as you for the new user group would need > to have two levels of permissions: read-only for the data file, and - > as for the first group - create-read-write (or better: > create-read-write-erase) for the the locking file (.ldb). > > This article covers your initial scenario but not your requested > scenario, "Restrict The People Who Can Use Your Database Folder": > > http://www.vb123.com/toolshed/04_docs/accessdb_op_security.htm > > However - as William will know - if you really need this setup, go and > get a Novell NetWare server. Here you can control user permissions > down to the single file; this scenario could be created in two > minutes. > > /gustav > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From DaveSharpe2 at cox.net Wed Apr 14 16:54:37 2004 From: DaveSharpe2 at cox.net (Dave Sharpe) Date: Wed, 14 Apr 2004 17:54:37 -0400 Subject: [AccessD] OT: US/UK public holidays References: <591136444.20040414211415@cactus.dk> Message-ID: <008401c4226b$14b4ba10$dd2f0a44@bcsrkeext6137> gustav As an example "Public Holiday" "Date" "Day Observed" "Presidents Day" "3rd Monday in February" "Monday, February 16, 2004" Date is how the holiday is "defined", "described" or "determined" and for many ovservance varies year to year. Date Observed id is for 2004 the calendar day on which it falls. If You're incorporating into something, I think that You might need provide the Date Observed for some range of years such as 1900 to 2100. Such data is probably available somewhere on the web. Excel does this for it's function WORKDAY(start_date,days,holidays) forcing the user to provide their own list. Start_date is a date that represents the start date. Dates may be entered as text strings within quotation marks (for example, "1/30/1998" or "1998/01/30"), as serial numbers (for example, 35825, which represents January 30, 1998, if you're using the 1900 date system), or as results of other formulas or functions (for example, DATEVALUE("1/30/1998")) Days is the number of nonweekend and nonholiday days before or after start_date. A positive value for days yields a future date; a negative value yields a past date. Holidays is an optional list of one or more dates to exclude from the working calendar, such as state and federal holidays and floating holidays. The list can be either a range of cells that contain the dates or an array constant of the serial numbers that represent the dates. Learn about array constants. For more information about how Microsoft Excel uses serial numbers for dates, see the Remarks section. Dave ----- Original Message ----- From: "Gustav Brock" To: "Access Developers discussion and problem solving" Sent: Wednesday, April 14, 2004 3:14 PM Subject: [AccessD] OT: US/UK public holidays Hi all What is the meaning of the column "Day Observed" here: http://www.usembassy.org.uk/ukpubhol.html Look for example at the second and third last entry. /gustav -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DaveSharpe2 at cox.net Wed Apr 14 17:07:43 2004 From: DaveSharpe2 at cox.net (Dave Sharpe) Date: Wed, 14 Apr 2004 18:07:43 -0400 Subject: [AccessD] OT: US/UK public holidays References: <591136444.20040414211415@cactus.dk> Message-ID: <00a001c4226c$e94ce6c0$dd2f0a44@bcsrkeext6137> gustav A follow up o my earlier mailing. These folks have lists available. Not free but I didn't see a price list. http://www.financialcalendar.com/products/main.htm Dave ----- Original Message ----- From: "Gustav Brock" To: "Access Developers discussion and problem solving" Sent: Wednesday, April 14, 2004 3:14 PM Subject: [AccessD] OT: US/UK public holidays Hi all What is the meaning of the column "Day Observed" here: http://www.usembassy.org.uk/ukpubhol.html Look for example at the second and third last entry. /gustav -- _______________________________________________ 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 Apr 14 17:33:31 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 15 Apr 2004 08:33:31 +1000 Subject: [AccessD] OT: US/UK public holidays In-Reply-To: <591136444.20040414211415@cactus.dk> Message-ID: <407E48DB.8363.1540CB@localhost> On 14 Apr 2004 at 21:14, Gustav Brock wrote: > Hi all > > What is the meaning of the column "Day Observed" here: > The day that people actually "have off" > http://www.usembassy.org.uk/ukpubhol.html > > Look for example at the second and third last entry. > Where a holiday falls on a non-working day, they take another day off "in lieu". ie "New Year?s Day January 1, 2005 Friday, December 31, 2004" New Years Day is a defined holiday which falls on 1 January. Since that falls on a Saturday, they are taking the Friday off. Similarly, because Christmas and Boxing Day fall on Saturday and Sunday, they are taking Monday and Tuesday off. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From clh at christopherhawkins.com Wed Apr 14 18:07:03 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Wed, 14 Apr 2004 17:07:03 -0600 Subject: [AccessD] A2K: Syntax - Manipulating a sub-subform? Message-ID: <246760-2200443142373578@christopherhawkins.com> First, the setup: Form frmMain contains a subform object named sFrmFind. sFrmFind's SourceObject is frmFind. frmFind contains a subform object named sFrmResults. sFrmResults' SourceObject is frmResults. frmResults is a datasheet with fields such as FirstName, LastName, etc. Now, my question...once frmMain is open and showing me my subforms, how do I change the .ColumnOrder of a field in frmResults from within the Click event of a button on frmFind? Forms!frmMain.sFrmFind.Form!sFrmResults.Form("FirstName").ColumnOrder = 1 isn't doing it. Me.parent.sFrmFind.Form!sFrmResults.Form("FirstName").ColumnOrder = 1 isn't doing it either. I keep getting 'Application-defined or object-defined error' when either of those lines try to execute. I'm oviously overlooking some nuance of syntax. If I'm true to form, I'll have "one more idea" and fix it immediately after clicking 'Send' on this eMail. But by all means, suggest some syntax anyway. :) -Christopher- From d.dick at uws.edu.au Wed Apr 14 19:53:56 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Thu, 15 Apr 2004 10:53:56 +1000 Subject: [AccessD] A2K:Adding the word ALL to a combo - SOLVED References: <022d01c421d6$13918b80$48619a89@DDICK> <1336886412.20040414105051@cactus.dk> Message-ID: <005a01c42284$21761230$48619a89@DDICK> Yes I did Thanks I actually wanted the < and the > in the appearance of the word in the list Thanks heaps Gustav This list is way cool. :-))) ----- Original Message ----- From: "Gustav Brock" To: "Access Developers discussion and problem solving" Sent: Wednesday, April 14, 2004 6:50 PM Subject: Re: [AccessD] A2K:Adding the word ALL to a combo - SOLVED > Hi Darren > > > Thanks to all who responded > > I went with Drew's suggestion > > 'Cause he was first :-)) > > Yeah, but I guess you did adjust it to use "", because "ALL" > could be sorted within your recordset. Thus, if you have Alice and > Susan, your combo would list: > > Alice > ALL > Susan > > /gustav > > > SELECT "ALL" As AField > > FROM MyTable > > > > UNION SELECT MyField > > FROM MyTable > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From accessd at shaw.ca Wed Apr 14 22:16:32 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Wed, 14 Apr 2004 20:16:32 -0700 Subject: [AccessD] A2K: Syntax - Manipulating a sub-subform? In-Reply-To: <246760-2200443142373578@christopherhawkins.com> Message-ID: Hi Christopher: Did you see this entry at the DBA web site? http://www.databaseadvisors.com/newletters/newsletter032004/0310ReferenceGui de/SyntaxForSubs.htm (watch for wrap) HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Christopher Hawkins Sent: Wednesday, April 14, 2004 4:07 PM To: accessd at databaseadvisors.com Subject: [AccessD] A2K: Syntax - Manipulating a sub-subform? First, the setup: Form frmMain contains a subform object named sFrmFind. sFrmFind's SourceObject is frmFind. frmFind contains a subform object named sFrmResults. sFrmResults' SourceObject is frmResults. frmResults is a datasheet with fields such as FirstName, LastName, etc. Now, my question...once frmMain is open and showing me my subforms, how do I change the .ColumnOrder of a field in frmResults from within the Click event of a button on frmFind? Forms!frmMain.sFrmFind.Form!sFrmResults.Form("FirstName").ColumnOrder = 1 isn't doing it. Me.parent.sFrmFind.Form!sFrmResults.Form("FirstName").ColumnOrder = 1 isn't doing it either. I keep getting 'Application-defined or object-defined error' when either of those lines try to execute. I'm oviously overlooking some nuance of syntax. If I'm true to form, I'll have "one more idea" and fix it immediately after clicking 'Send' on this eMail. But by all means, suggest some syntax anyway. :) -Christopher- -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From clh at christopherhawkins.com Wed Apr 14 23:08:16 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Wed, 14 Apr 2004 22:08:16 -0600 Subject: [AccessD] A2K: Syntax - Manipulating a sub-subform? Message-ID: <221950-2200444154816781@christopherhawkins.com> Thanks! I'll try this out tomorrow... -Christopher- ---- Original Message ---- From: accessd at shaw.ca To: accessd at databaseadvisors.com, Subject: RE: [AccessD] A2K: Syntax - Manipulating a sub-subform? Date: Wed, 14 Apr 2004 20:16:32 -0700 >Hi Christopher: > >Did you see this entry at the DBA web site? >http://www.databaseadvisors.com/newletters/newsletter032004/0310Refer >enceGui >de/SyntaxForSubs.htm (watch for wrap) > >HTH >Jim > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Christopher >Hawkins >Sent: Wednesday, April 14, 2004 4:07 PM >To: accessd at databaseadvisors.com >Subject: [AccessD] A2K: Syntax - Manipulating a sub-subform? > > >First, the setup: > >Form frmMain contains a subform object named sFrmFind. sFrmFind's >SourceObject is frmFind. > >frmFind contains a subform object named sFrmResults. sFrmResults' >SourceObject is frmResults. > >frmResults is a datasheet with fields such as FirstName, LastName, >etc. > >Now, my question...once frmMain is open and showing me my subforms, >how do I change the .ColumnOrder of a field in frmResults from within >the Click event of a button on frmFind? > >Forms!frmMain.sFrmFind.Form!sFrmResults.Form("FirstName").ColumnOrder >= 1 isn't doing it. >Me.parent.sFrmFind.Form!sFrmResults.Form("FirstName").ColumnOrder = 1 >isn't doing it either. > >I keep getting 'Application-defined or object-defined error' when >either of those lines try to execute. > >I'm oviously overlooking some nuance of syntax. > >If I'm true to form, I'll have "one more idea" and fix it immediately >after clicking 'Send' on this eMail. But by all means, suggest some >syntax anyway. :) > >-Christopher- > > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >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 Thu Apr 15 03:19:31 2004 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Thu, 15 Apr 2004 09:19:31 +0100 Subject: [AccessD] Ownership Message-ID: Hi Many thanks for all contributions (Stuart, Andy, Susan, Robert , Mastercafe and.....) Yes its not an issue at the moment and I don't intend to introduce it as one if I can help - I am simply trying to get some footing should I be questioned on this matter....and as you say Andy customers rarely go down this route. I like the standard 'proposal' used by Stuart and may adopt something similar. Thanks again Richard -----Original Message----- From: Stuart McLachlan [mailto:stuart at lexacorp.com.pg] Sent: 14 April 2004 00:21 To: Access Developers discussion and problemsolving Subject: RE: [AccessD] Ownership On 13 Apr 2004 at 20:11, Andy Lacey wrote: > Hi Richard > It has always been my understanding that, unless a contract states > otherwise, the source code belongs to the developer. I don't know about the UK, but in many situations, it is much more complicated than that. >Having said that, > however, it has equally always been my stance that if I'm being paid to > develop something then ethically what I develop specifically for the client > is 100% theirs. But the key word is 'specifically'. Most of us have an awful > lot of code in our lockers that we'll bring out in any development. In reality, *everyone* capable of developing a marketable solution does this. >The > client needs to understand this and needs to see that he gets the benefit > because he doesn't pay for that stuff. It may be this that gives us our > marketing edge when we go into bat for the work. > My standard "proposal" template says: "The application will have been developed by Lexacorp for your use, but the developed application will incorporate code fragments and ideas that have previously been developed by Lexacorp and all intellectual property rights to the application remains the property of Lexacorp. You will receive a copy of the source code for the application and will be granted a non-exclusive licence to use such source code for maintenance and future development of the said application for your own use in such manner as you see fit. .... You may not sell or otherwise dispose of the said source code, or any application developed utilising all or part of it to any third party without the express agreement of Lexacorp. " -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Thu Apr 15 04:47:52 2004 From: gustav at cactus.dk (Gustav Brock) Date: Thu, 15 Apr 2004 11:47:52 +0200 Subject: [AccessD] OT: US/UK public holidays In-Reply-To: <00a001c4226c$e94ce6c0$dd2f0a44@bcsrkeext6137> References: <591136444.20040414211415@cactus.dk> <00a001c4226c$e94ce6c0$dd2f0a44@bcsrkeext6137> Message-ID: <1719482024.20040415114752@cactus.dk> Hi Dave Nice link for calendar freaks. Notice the tab with Free Stuff. /gustav > These folks have lists available. > Not free but I didn't see a price list. > http://www.financialcalendar.com/products/main.htm From gustav at cactus.dk Thu Apr 15 04:36:22 2004 From: gustav at cactus.dk (Gustav Brock) Date: Thu, 15 Apr 2004 11:36:22 +0200 Subject: [AccessD] OT: US/UK public holidays In-Reply-To: <591136444.20040414211415@cactus.dk> References: <591136444.20040414211415@cactus.dk> Message-ID: <1058792482.20040415113622@cactus.dk> Thanks for all the responses! > The day that people actually "have off" But is this a commom business rule in US and UK or is just an arrangement for the embassies? And is there "a rule"? I notice that for Christmas Day you have two different Day Observed - looks like UK picks the proceeding workday while US picks the following workday. Here it is just "bad luck" for the citizens if a fixed date public holiday falls within a weekend or collides with a moveable holiday. /gustav > What is the meaning of the column "Day Observed" here: > http://www.usembassy.org.uk/ukpubhol.html > Look for example at the second and third last entry. From accessd667 at yahoo.com Thu Apr 15 07:42:49 2004 From: accessd667 at yahoo.com (S D) Date: Thu, 15 Apr 2004 05:42:49 -0700 (PDT) Subject: [AccessD] Show proces-step?! Message-ID: <20040415124249.74695.qmail@web61103.mail.yahoo.com> Hi group, I want the user to see what's currently going in the application. So if a user wants to proces 250 files (5-10 minutes) I want to show what file is currently being processed (me thinks this being pretty nasty English...sorry for that). Something like: Processing File: 9 of 21 Filename: 100_54_20040412.dat Does anybody have any tips/examples? TIA Sander --------------------------------- Do you Yahoo!? Yahoo! Tax Center - File online by April 15th From jeffrey.demulling at usbank.com Thu Apr 15 07:56:50 2004 From: jeffrey.demulling at usbank.com (jeffrey.demulling at usbank.com) Date: Thu, 15 Apr 2004 07:56:50 -0500 Subject: [AccessD] Show proces-step?! Message-ID: One option is to place a label on your form and update it as you are progressing through. dim currentfilenumber as interger dim totalfilenumber as interger dim progressmessage as string totalfilenumber = <> currentfilenumber = <> progressmessage = "Processing File: " & currentfilenumber & " of " totalfilenumber & chr(13) & chr(10) progressmessage = progressmessage & "Filename: " & currentfilename Another option is to look in the help about using the Status Bar. me.lblProgress.Capation = progressmessage Doevents "S D" To: accessd Sent by: cc: accessd-bounces at databasea Subject: [AccessD] Show proces-step?! dvisors.com 04/15/2004 07:42 AM Please respond to "Access Developers discussion and problem solving" Hi group, I want the user to see what's currently going in the application. So if a user wants to proces 250 files (5-10 minutes) I want to show what file is currently being processed (me thinks this being pretty nasty English...sorry for that). Something like: Processing File: 9 of 21 Filename: 100_54_20040412.dat Does anybody have any tips/examples? TIA Sander --------------------------------- Do you Yahoo!? Yahoo! Tax Center - File online by April 15th -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Thu Apr 15 08:08:18 2004 From: gustav at cactus.dk (Gustav Brock) Date: Thu, 15 Apr 2004 15:08:18 +0200 Subject: [AccessD] Show proces-step?! In-Reply-To: References: Message-ID: <3021508337.20040415150818@cactus.dk> Hi Jeffrey and Sander > me.lblProgress.Capation = progressmessage > Doevents I've found that Me.Repaint can be more effective. /gustav From jwcolby at colbyconsulting.com Thu Apr 15 08:14:03 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 15 Apr 2004 09:14:03 -0400 Subject: [AccessD] Show proces-step?! In-Reply-To: <20040415124249.74695.qmail@web61103.mail.yahoo.com> Message-ID: Sander, I have a progress form on my web site that can be opened and methods of the form called to display messages, increment a progress bar etc. Click the Misc Demos button. The file is C2DbDemoWaitform A2K or A97. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of S D Sent: Thursday, April 15, 2004 8:43 AM To: accessd Subject: [AccessD] Show proces-step?! Hi group, I want the user to see what's currently going in the application. So if a user wants to proces 250 files (5-10 minutes) I want to show what file is currently being processed (me thinks this being pretty nasty English...sorry for that). Something like: Processing File: 9 of 21 Filename: 100_54_20040412.dat Does anybody have any tips/examples? TIA Sander --------------------------------- Do you Yahoo!? Yahoo! Tax Center - File online by April 15th -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Bryan_Carbonnell at cbc.ca Thu Apr 15 08:20:07 2004 From: Bryan_Carbonnell at cbc.ca (Bryan Carbonnell) Date: Thu, 15 Apr 2004 09:20:07 -0400 Subject: [AccessD] OT: US/UK public holidays Message-ID: Here in Canada it is usually the closest business day that becomes the holiday. So if the holiday fall on Saturday, the observed holiday is the Friday previous. If the holiday falls on a Sunday, then the observed day is the Monday. Now to add to complication, if the place of employement has a union collective agreement, that may make the descision which day is observed at that particular company. Where I work, my collective agreement used to state that the observed day must be in the same work week as the week that the holiday fell. Since our work week is Monday to Sunday, all of our observed holidays would be on the Friday (or Thursday and Friday if both weekend days were holidays). So we would be closed when other businesses were open and open when everyone else was closed. I think that it has now changed, but I'm not 100% sure. Bryan Carbonnell bryan_carbonnell at cbc.ca >>> gustav at cactus.dk 15-Apr-04 5:36:22 AM >>> Thanks for all the responses! > The day that people actually "have off" But is this a commom business rule in US and UK or is just an arrangement for the embassies? And is there "a rule"? I notice that for Christmas Day you have two different Day Observed - looks like UK picks the proceeding workday while US picks the following workday. Here it is just "bad luck" for the citizens if a fixed date public holiday falls within a weekend or collides with a moveable holiday. /gustav > What is the meaning of the column "Day Observed" here: > http://www.usembassy.org.uk/ukpubhol.html > Look for example at the second and third last entry. From accessd667 at yahoo.com Thu Apr 15 08:33:48 2004 From: accessd667 at yahoo.com (S D) Date: Thu, 15 Apr 2004 06:33:48 -0700 (PDT) Subject: [AccessD] Show proces-step?! In-Reply-To: Message-ID: <20040415133348.86789.qmail@web61102.mail.yahoo.com> Hi John, i've downloaded the file...looks pretty complex though but solid! Jeffrey, thanks for you're idea. If johns demo is to complex for me you'res sounds fine. Thnx again. Sander "John W. Colby" wrote: Sander, I have a progress form on my web site that can be opened and methods of the form called to display messages, increment a progress bar etc. Click the Misc Demos button. The file is C2DbDemoWaitform A2K or A97. John W. Colby www.ColbyConsulting.com One option is to place a label on your form and update it as you are progressing through. dim currentfilenumber as interger dim totalfilenumber as interger dim progressmessage as string totalfilenumber = <> currentfilenumber = <> progressmessage = "Processing File: " & currentfilenumber & " of " totalfilenumber & chr(13) & chr(10) progressmessage = progressmessage & "Filename: " & currentfilename Another option is to look in the help about using the Status Bar. me.lblProgress.Capation = progressmessage Doevents -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of S D Sent: Thursday, April 15, 2004 8:43 AM To: accessd Subject: [AccessD] Show proces-step?! Hi group, I want the user to see what's currently going in the application. So if a user wants to proces 250 files (5-10 minutes) I want to show what file is currently being processed (me thinks this being pretty nasty English...sorry for that). Something like: Processing File: 9 of 21 Filename: 100_54_20040412.dat Does anybody have any tips/examples? TIA Sander --------------------------------- Do you Yahoo!? Yahoo! Tax Center - File online by April 15th -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Yahoo! Tax Center - File online by April 15th From jwcolby at colbyconsulting.com Thu Apr 15 08:59:02 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 15 Apr 2004 09:59:02 -0400 Subject: [AccessD] Show proces-step?! In-Reply-To: <20040415133348.86789.qmail@web61102.mail.yahoo.com> Message-ID: Just look at the demo setup code. It's really pretty easy to use. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of S D Sent: Thursday, April 15, 2004 9:34 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Show proces-step?! Hi John, i've downloaded the file...looks pretty complex though but solid! Jeffrey, thanks for you're idea. If johns demo is to complex for me you'res sounds fine. Thnx again. Sander "John W. Colby" wrote: Sander, I have a progress form on my web site that can be opened and methods of the form called to display messages, increment a progress bar etc. Click the Misc Demos button. The file is C2DbDemoWaitform A2K or A97. John W. Colby www.ColbyConsulting.com One option is to place a label on your form and update it as you are progressing through. dim currentfilenumber as interger dim totalfilenumber as interger dim progressmessage as string totalfilenumber = <> currentfilenumber = <> progressmessage = "Processing File: " & currentfilenumber & " of " totalfilenumber & chr(13) & chr(10) progressmessage = progressmessage & "Filename: " & currentfilename Another option is to look in the help about using the Status Bar. me.lblProgress.Capation = progressmessage Doevents -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of S D Sent: Thursday, April 15, 2004 8:43 AM To: accessd Subject: [AccessD] Show proces-step?! Hi group, I want the user to see what's currently going in the application. So if a user wants to proces 250 files (5-10 minutes) I want to show what file is currently being processed (me thinks this being pretty nasty English...sorry for that). Something like: Processing File: 9 of 21 Filename: 100_54_20040412.dat Does anybody have any tips/examples? TIA Sander --------------------------------- Do you Yahoo!? Yahoo! Tax Center - File online by April 15th -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Yahoo! Tax Center - File online by April 15th -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Thu Apr 15 10:17:53 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Thu, 15 Apr 2004 10:17:53 -0500 Subject: [AccessD] Archives are back online! Message-ID: <2F8793082E00D4119A1700B0D0216BF802227ACF@main2.marlow.com> The archives at http://www.wolfwares.com/AccessD are back online! Yippie! Drew From tim at irwingreenhouses.com Thu Apr 15 14:00:30 2004 From: tim at irwingreenhouses.com (Tim Thiessen) Date: Thu, 15 Apr 2004 14:00:30 -0500 Subject: [AccessD] Inventory Design Message-ID: <002701c4231b$ed59f000$7800a8c0@timt> Hi Group! The company I work for produces products that are persiable. Our inventory setup has worked well in the past but now our market is changing and we need to make a change. Currently, we physically count products and place on the inventory for a week period. With the new markets, we will need to be able to track future inventory or production and apply future orders to it in order to know what is or is not available on a certain date in the future. We will need to be working up to 18 months in advance. This will primarily be used to help sales and to plan production. Has anyone had any experience with doing this sort of thing and have any advice in designing tables to accomplish this? Tim Thiessen Production Manager Irwin Greenhouses, Inc. 806-655-7811 Fax 806-655-3046 From Mark.Mitsules at ngc.com Thu Apr 15 14:39:39 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Thu, 15 Apr 2004 15:39:39 -0400 Subject: [AccessD] Decompile Message-ID: Has anyone seen a case where /decompile did not appear to do anything? I'm getting the same "corrupt" error message as before. I have 2 objects that appear to be the culprits. I get the same "corrupt" error message when trying to import these objects into a new database (no error messages on the other objects). In the corrupted database I cannot go into the IDE at all...I get the same "corrupt" error message. This is actually the first time I've been bitten, without having a recent backup to fall back to, and I'm stressing. Any suggestions? Mark From bchacc at san.rr.com Thu Apr 15 14:51:14 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 15 Apr 2004 12:51:14 -0700 Subject: [AccessD] Inventory Design References: <002701c4231b$ed59f000$7800a8c0@timt> Message-ID: <015701c42323$02e81c10$6601a8c0@HAL9002> Tim: Take a look at www.ezmrp.com Rocky ----- Original Message ----- From: "Tim Thiessen" To: "AccessD List (E-mail)" Sent: Thursday, April 15, 2004 12:00 PM Subject: [AccessD] Inventory Design > Hi Group! > The company I work for produces products that are persiable. Our inventory > setup has worked well in the past but now our market is changing and we need > to make a change. Currently, we physically count products and place on the > inventory for a week period. With the new markets, we will need to be able > to track future inventory or production and apply future orders to it in > order to know what is or is not available on a certain date in the future. > We will need to be working up to 18 months in advance. This will primarily > be used to help sales and to plan production. Has anyone had any experience > with doing this sort of thing and have any advice in designing tables to > accomplish this? > > Tim Thiessen > Production Manager > Irwin Greenhouses, Inc. > 806-655-7811 > Fax 806-655-3046 > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From JHewson at karta.com Thu Apr 15 14:52:45 2004 From: JHewson at karta.com (Jim Hewson) Date: Thu, 15 Apr 2004 14:52:45 -0500 Subject: [AccessD] Sorting and restricting ComboBox on ListBox contents Message-ID: <9C382E065F54AE48BC3AA7925DCBB01C138357@karta-exc-int.Karta.com> I am having difficulty figuring this one out. A97. I have a list box with over 130 items all rows are distinct but a few columns are duplicates. The ListBox is sorted on two text fields which puts the ID number out of sequence. The ComboBox sorts and "Groups By" duplicate columns. What I want to do is use the ComboBox to jump to the first instance of one of the duplicate columns. e.g. ID CourseName City 135 CCP EC 90 DIS EC 87 DIS MP 18 DOC CD 17 DOC SR 55 DSC M AL 57 DSC M EC 43 DSC M MP 28 DSC M SF 3 DSC M SR What I want is: 135 CCP EC 90 DIS EC 18 DOC CD 55 DSC M AL 3 DSC M SR What I get is: 135 CCP EC 87 DIS MP 17 DOC SR 3 DSC M SR What needs to be done to what the desired results? Thanks, Jim From garykjos at hotmail.com Thu Apr 15 14:56:37 2004 From: garykjos at hotmail.com (Gary Kjos) Date: Thu, 15 Apr 2004 14:56:37 -0500 Subject: [AccessD] Decompile Message-ID: Hi Mark, 1) Make a copy. 2) Run the stand alone repair utility jetcomp.exe on the copy. If that doesn't work.... 3) make a new empty database and try to import the objects from the copy. You may have to do this one object at a time. Gary Kjos garykjos at hotmail.com >From: "Mitsules, Mark S. (Newport News)" >Reply-To: Access Developers discussion and problem >solving >To: "'[AccessD]'" >Subject: [AccessD] Decompile >Date: Thu, 15 Apr 2004 15:39:39 -0400 > >Has anyone seen a case where /decompile did not appear to do anything? I'm >getting the same "corrupt" error message as before. I have 2 objects that >appear to be the culprits. I get the same "corrupt" error message when >trying to import these objects into a new database (no error messages on >the >other objects). In the corrupted database I cannot go into the IDE at >all...I get the same "corrupt" error message. This is actually the first >time I've been bitten, without having a recent backup to fall back to, and >I'm stressing. Any suggestions? > > > >Mark >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ MSN Toolbar provides one-click access to Hotmail from any Web page ? FREE download! http://toolbar.msn.com/go/onm00200413ave/direct/01/ From CMackin at Quiznos.com Thu Apr 15 14:58:29 2004 From: CMackin at Quiznos.com (Mackin, Christopher) Date: Thu, 15 Apr 2004 13:58:29 -0600 Subject: [AccessD] Decompile Message-ID: <8950FA061E09F3478FDC2DE9FA86D83D376A5B@bross.quiznos.net> I've always had to resort to importing the objects into a new db, the corrupt ones won't come, then rebuild those from scratch -Chris Mackin -----Original Message----- From: Mitsules, Mark S. (Newport News) [mailto:Mark.Mitsules at ngc.com] Sent: Thursday, April 15, 2004 1:40 PM To: '[AccessD]' Subject: [AccessD] Decompile Has anyone seen a case where /decompile did not appear to do anything? I'm getting the same "corrupt" error message as before. I have 2 objects that appear to be the culprits. I get the same "corrupt" error message when trying to import these objects into a new database (no error messages on the other objects). In the corrupted database I cannot go into the IDE at all...I get the same "corrupt" error message. This is actually the first time I've been bitten, without having a recent backup to fall back to, and I'm stressing. Any suggestions? Mark -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Stephen.Pickering at caremark.com Thu Apr 15 15:07:16 2004 From: Stephen.Pickering at caremark.com (Pickering, Stephen) Date: Thu, 15 Apr 2004 13:07:16 -0700 Subject: [AccessD] Decompile Message-ID: Mark, Import every object except the corrupt ones. If you don't have a version of these objects that isn't corrupt, you will need to rebuild them. Also, back up early and often. Corruption happens. It's sometimes, but not always, because of something you've done. Best to be prepared. Some databases never come back.... Steve -----Mark S. Mitsules' Original Message----- From: Mitsules, Mark S. (Newport News) [mailto:Mark.Mitsules at ngc.com] Sent: Thursday, April 15, 2004 2:40 PM To: '[AccessD]' Subject: [AccessD] Decompile Has anyone seen a case where /decompile did not appear to do anything? I'm getting the same "corrupt" error message as before. I have 2 objects that appear to be the culprits. I get the same "corrupt" error message when trying to import these objects into a new database (no error messages on the other objects). In the corrupted database I cannot go into the IDE at all...I get the same "corrupt" error message. This is actually the first time I've been bitten, without having a recent backup to fall back to, and I'm stressing. Any suggestions? Mark -- _______________________________________________ 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 Apr 15 15:08:00 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Thu, 15 Apr 2004 16:08:00 -0400 Subject: [AccessD] Decompile Message-ID: Gary, I had forgotten about that utility...thanks, I'll give it a try. As for importing I've already done that. Unfortunately, The 2 objects that appear to be corrupted are both Modules:( Mark -----Original Message----- From: Gary Kjos [mailto:garykjos at hotmail.com] Sent: Thursday, April 15, 2004 3:57 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Decompile Hi Mark, 1) Make a copy. 2) Run the stand alone repair utility jetcomp.exe on the copy. If that doesn't work.... 3) make a new empty database and try to import the objects from the copy. You may have to do this one object at a time. Gary Kjos garykjos at hotmail.com >From: "Mitsules, Mark S. (Newport News)" >Reply-To: Access Developers discussion and problem >solving >To: "'[AccessD]'" >Subject: [AccessD] Decompile >Date: Thu, 15 Apr 2004 15:39:39 -0400 > >Has anyone seen a case where /decompile did not appear to do anything? I'm >getting the same "corrupt" error message as before. I have 2 objects that >appear to be the culprits. I get the same "corrupt" error message when >trying to import these objects into a new database (no error messages on >the >other objects). In the corrupted database I cannot go into the IDE at >all...I get the same "corrupt" error message. This is actually the first >time I've been bitten, without having a recent backup to fall back to, and >I'm stressing. Any suggestions? > > > >Mark >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ MSN Toolbar provides one-click access to Hotmail from any Web page - FREE download! http://toolbar.msn.com/go/onm00200413ave/direct/01/ -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jeffrey.demulling at usbank.com Thu Apr 15 15:03:23 2004 From: jeffrey.demulling at usbank.com (jeffrey.demulling at usbank.com) Date: Thu, 15 Apr 2004 15:03:23 -0500 Subject: [AccessD] Using TransferDatabase to link table from password protectd db Message-ID: I have the following code in a database. Works fine if there is no password on the database. However I need to add a password to the database the is being linked to. How can I modify the code so that it accepts a password and does not prompt the user for one? Sub linkdatatable(mytable As String) 'Link in tables for query If IsLinked(mytable) = False Then DoCmd.TransferDatabase acLink, "Microsoft Access", GetDataFile, acTable, mytable, mytable, False End If End Sub TIA From Mark.Mitsules at ngc.com Thu Apr 15 15:15:52 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Thu, 15 Apr 2004 16:15:52 -0400 Subject: [AccessD] Decompile Message-ID: Yep, this was completely my fault. I had asked someone to beta test a form for me. Unfortunately, I still had it open in design mode when he opened it. I closed my instance of the form. The functionality was immediately suspect on his instance because a particular dynamic report was not changing its recordsource as expected. As soon as he exited the db I did the same. When I re-entered the db I used an ldb viewer and noticed that the ldb listed him as not logged on, but "suspect" just the same. That was the last time the db opened normally:( Mark -----Original Message----- From: Pickering, Stephen [mailto:Stephen.Pickering at caremark.com] Sent: Thursday, April 15, 2004 4:07 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Decompile Mark, Import every object except the corrupt ones. If you don't have a version of these objects that isn't corrupt, you will need to rebuild them. Also, back up early and often. Corruption happens. It's sometimes, but not always, because of something you've done. Best to be prepared. Some databases never come back.... Steve -----Mark S. Mitsules' Original Message----- From: Mitsules, Mark S. (Newport News) [mailto:Mark.Mitsules at ngc.com] Sent: Thursday, April 15, 2004 2:40 PM To: '[AccessD]' Subject: [AccessD] Decompile Has anyone seen a case where /decompile did not appear to do anything? I'm getting the same "corrupt" error message as before. I have 2 objects that appear to be the culprits. I get the same "corrupt" error message when trying to import these objects into a new database (no error messages on the other objects). In the corrupted database I cannot go into the IDE at all...I get the same "corrupt" error message. This is actually the first time I've been bitten, without having a recent backup to fall back to, and I'm stressing. Any suggestions? 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 Stephen.Pickering at caremark.com Thu Apr 15 15:22:07 2004 From: Stephen.Pickering at caremark.com (Pickering, Stephen) Date: Thu, 15 Apr 2004 15:22:07 -0500 Subject: [AccessD] Decompile Message-ID: Another thing to try on the offending objects.... Strip all of the code from them if you can. (If you can't, this won't work.) Paste the code into Notepad if you can. Repair and compact the database, then decompile and recompile. Then paste your offending code back into the object's modules. Then recompile. I've saved at least one database this way. HTH, Steve -----Stephen Pickering's Original Message----- Mark, Import every object except the corrupt ones. If you don't have a version of these objects that isn't corrupt, you will need to rebuild them. Also, back up early and often. Corruption happens. It's sometimes, but not always, because of something you've done. Best to be prepared. Some databases never come back.... Steve -----Mark S. Mitsules' Original Message----- From: Mitsules, Mark S. (Newport News) [mailto:Mark.Mitsules at ngc.com] Sent: Thursday, April 15, 2004 2:40 PM To: '[AccessD]' Subject: [AccessD] Decompile Has anyone seen a case where /decompile did not appear to do anything? I'm getting the same "corrupt" error message as before. I have 2 objects that appear to be the culprits. I get the same "corrupt" error message when trying to import these objects into a new database (no error messages on the other objects). In the corrupted database I cannot go into the IDE at all...I get the same "corrupt" error message. This is actually the first time I've been bitten, without having a recent backup to fall back to, and I'm stressing. Any suggestions? Mark -- From bchacc at san.rr.com Thu Apr 15 15:30:43 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 15 Apr 2004 13:30:43 -0700 Subject: [AccessD] jpg Screen shot Message-ID: <017f01c42328$86d422d0$6601a8c0@HAL9002> Dear List: A magazine wants a screen shot from my software and they would like it to be 300dpi. What's the best way to get that off the screen and into a jpg? MTIA, Rocky Smolin Beach Access Software http://www.e-z-mrp.com From Mark.Mitsules at ngc.com Thu Apr 15 15:30:41 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Thu, 15 Apr 2004 16:30:41 -0400 Subject: [AccessD] Decompile Message-ID: No joy with Jetcomp. Although the db did open without error, still could not get to the IDE to retrieve the code. Mark -----Original Message----- From: Gary Kjos [mailto:garykjos at hotmail.com] Sent: Thursday, April 15, 2004 3:57 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Decompile Hi Mark, 1) Make a copy. 2) Run the stand alone repair utility jetcomp.exe on the copy. If that doesn't work.... 3) make a new empty database and try to import the objects from the copy. You may have to do this one object at a time. Gary Kjos garykjos at hotmail.com >From: "Mitsules, Mark S. (Newport News)" >Reply-To: Access Developers discussion and problem >solving >To: "'[AccessD]'" >Subject: [AccessD] Decompile >Date: Thu, 15 Apr 2004 15:39:39 -0400 > >Has anyone seen a case where /decompile did not appear to do anything? I'm >getting the same "corrupt" error message as before. I have 2 objects that >appear to be the culprits. I get the same "corrupt" error message when >trying to import these objects into a new database (no error messages on >the >other objects). In the corrupted database I cannot go into the IDE at >all...I get the same "corrupt" error message. This is actually the first >time I've been bitten, without having a recent backup to fall back to, and >I'm stressing. Any suggestions? > > > >Mark >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ MSN Toolbar provides one-click access to Hotmail from any Web page - FREE download! http://toolbar.msn.com/go/onm00200413ave/direct/01/ -- _______________________________________________ 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 Apr 15 15:34:13 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Thu, 15 Apr 2004 16:34:13 -0400 Subject: [AccessD] jpg Screen shot Message-ID: Alt+PrintScreen will copy the current active window to the clipboard. Ctrl+PrintScreen will copy the desktop to the clipboard. Then, paste into whatever program you'd like. Mark -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Thursday, April 15, 2004 4:31 PM To: AccessD at databaseadvisors.com Subject: [AccessD] jpg Screen shot Dear List: A magazine wants a screen shot from my software and they would like it to be 300dpi. What's the best way to get that off the screen and into a jpg? MTIA, Rocky Smolin Beach Access Software http://www.e-z-mrp.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Thu Apr 15 15:45:06 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Thu, 15 Apr 2004 15:45:06 -0500 Subject: [AccessD] Sorting and restricting ComboBox on ListBox content s Message-ID: <2F8793082E00D4119A1700B0D0216BF802227AD3@main2.marlow.com> In the section that you 'want', what is the difference between DSC M and DSC M? Why would you want 2, when you have 1 of everything else? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Hewson Sent: Thursday, April 15, 2004 2:53 PM To: AccessD Subject: [AccessD] Sorting and restricting ComboBox on ListBox contents I am having difficulty figuring this one out. A97. I have a list box with over 130 items all rows are distinct but a few columns are duplicates. The ListBox is sorted on two text fields which puts the ID number out of sequence. The ComboBox sorts and "Groups By" duplicate columns. What I want to do is use the ComboBox to jump to the first instance of one of the duplicate columns. e.g. ID CourseName City 135 CCP EC 90 DIS EC 87 DIS MP 18 DOC CD 17 DOC SR 55 DSC M AL 57 DSC M EC 43 DSC M MP 28 DSC M SF 3 DSC M SR What I want is: 135 CCP EC 90 DIS EC 18 DOC CD 55 DSC M AL 3 DSC M SR What I get is: 135 CCP EC 87 DIS MP 17 DOC SR 3 DSC M SR What needs to be done to what the desired results? Thanks, Jim From JHewson at karta.com Thu Apr 15 15:44:38 2004 From: JHewson at karta.com (Jim Hewson) Date: Thu, 15 Apr 2004 15:44:38 -0500 Subject: [AccessD] Sorting and restricting ComboBox on ListBox contents Message-ID: <9C382E065F54AE48BC3AA7925DCBB01C138358@karta-exc-int.Karta.com> My error. I only need one. Thanks for noticing. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DWUTKA at marlow.com Sent: Thursday, April 15, 2004 3:45 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Sorting and restricting ComboBox on ListBox contents In the section that you 'want', what is the difference between DSC M and DSC M? Why would you want 2, when you have 1 of everything else? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Hewson Sent: Thursday, April 15, 2004 2:53 PM To: AccessD Subject: [AccessD] Sorting and restricting ComboBox on ListBox contents I am having difficulty figuring this one out. A97. I have a list box with over 130 items all rows are distinct but a few columns are duplicates. The ListBox is sorted on two text fields which puts the ID number out of sequence. The ComboBox sorts and "Groups By" duplicate columns. What I want to do is use the ComboBox to jump to the first instance of one of the duplicate columns. e.g. ID CourseName City 135 CCP EC 90 DIS EC 87 DIS MP 18 DOC CD 17 DOC SR 55 DSC M AL 57 DSC M EC 43 DSC M MP 28 DSC M SF 3 DSC M SR What I want is: 135 CCP EC 90 DIS EC 18 DOC CD 55 DSC M AL 3 DSC M SR What I get is: 135 CCP EC 87 DIS MP 17 DOC SR 3 DSC M SR What needs to be done to what the desired results? Thanks, Jim -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Thu Apr 15 16:04:29 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Thu, 15 Apr 2004 16:04:29 -0500 Subject: [AccessD] Sorting and restricting ComboBox on ListBox content s Message-ID: <2F8793082E00D4119A1700B0D0216BF802227AD5@main2.marlow.com> Well, Access doesn't necessarily 'store' the information the way that you see it. So you will need some field to 'sort/group' by. For instance, if you want the 'highest' ID, then GroupBy CourseName and set Max for the ID. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Hewson Sent: Thursday, April 15, 2004 3:45 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Sorting and restricting ComboBox on ListBox contents My error. I only need one. Thanks for noticing. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DWUTKA at marlow.com Sent: Thursday, April 15, 2004 3:45 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Sorting and restricting ComboBox on ListBox contents In the section that you 'want', what is the difference between DSC M and DSC M? Why would you want 2, when you have 1 of everything else? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Hewson Sent: Thursday, April 15, 2004 2:53 PM To: AccessD Subject: [AccessD] Sorting and restricting ComboBox on ListBox contents I am having difficulty figuring this one out. A97. I have a list box with over 130 items all rows are distinct but a few columns are duplicates. The ListBox is sorted on two text fields which puts the ID number out of sequence. The ComboBox sorts and "Groups By" duplicate columns. What I want to do is use the ComboBox to jump to the first instance of one of the duplicate columns. e.g. ID CourseName City 135 CCP EC 90 DIS EC 87 DIS MP 18 DOC CD 17 DOC SR 55 DSC M AL 57 DSC M EC 43 DSC M MP 28 DSC M SF 3 DSC M SR What I want is: 135 CCP EC 90 DIS EC 18 DOC CD 55 DSC M AL 3 DSC M SR What I get is: 135 CCP EC 87 DIS MP 17 DOC SR 3 DSC M SR What needs to be done to what the desired results? Thanks, Jim -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 hotmail.com Thu Apr 15 16:08:59 2004 From: garykjos at hotmail.com (Gary Kjos) Date: Thu, 15 Apr 2004 16:08:59 -0500 Subject: [AccessD] Decompile Message-ID: >No joy with Jetcomp. Although the db did open without error, still could >not get to the IDE to retrieve the code. > > > >Mark Toasted them eh? I'm sorry for you. Small consolation I know, but It's been my experince that rewriting code that's been lost is a lot easier than it was to write originally. And you get the chance to make those changes you thought about but didn't do. :-) Good luck! And I'd guess you will be doing some more frequent saves as different names for a while. ;-) Gary Kjos garykjos at hotmail.com _________________________________________________________________ Check out MSN PC Safety & Security to help ensure your PC is protected and safe. http://specials.msn.com/msn/security.asp From Lambert.Heenan at AIG.com Thu Apr 15 16:11:39 2004 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Thu, 15 Apr 2004 17:11:39 -0400 Subject: [AccessD] Dr Watson Errors on Broadband connection Message-ID: <8B98F8EA48F8BA47A2F24E0D0AF40CF407AD81CA@xlivmbx12.aig.com> X-Posted to Access-L and Access-D I have an Access97 database, split FE/BE. The BE resides on a network drive, and the FE is on the user's local C drive and it is an MDE file that references a library MDE that is also on the network. All references use the full UNC path to the files, not mapped drives. I have a user who has no trouble when he's in the office docked and connected to the LAN. The database also works fine when he's at a remote location that has a dedicated T1 line into our LAN. However, when he tries to access the database, using the exact same computer, but connected to the LAN via his cable modem and our VPN s/w he finds that Access crashes, giving a Dr. Watson error before any sign of the application appears on screen. It's one of those "Exception access violation (0xc0000005), Address 0c651503f7" type Dr. Watsons that one typically sees if an MDE application tries to reference an MDE library that has been modified and recompiled. If you don't recompile the client MDE you get this type of Dr. Watson. The only trouble is the library has not been recompiled recently. Any ideas any one???? Lambert From dw-murphy at cox.net Thu Apr 15 16:13:53 2004 From: dw-murphy at cox.net (Doug Murphy) Date: Thu, 15 Apr 2004 14:13:53 -0700 Subject: [AccessD] jpg Screen shot In-Reply-To: <017f01c42328$86d422d0$6601a8c0@HAL9002> Message-ID: <000e01c4232e$91a9ab20$8500a8c0@CX615377a> I like Snagit, http://www.techsmith.com/. It gives you lots of versitility in making screen shots as far as selecting the portion of the screen you want to copy, etc. You can save time image in all the common formats. Doug Douglas Murphy Murphy's Creativity (619) 334-5121 doug at murphyscreativity.com www.murphyscreativity.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin - Beach Access Software Sent: Thursday, April 15, 2004 1:31 PM To: AccessD at databaseadvisors.com Subject: [AccessD] jpg Screen shot Dear List: A magazine wants a screen shot from my software and they would like it to be 300dpi. What's the best way to get that off the screen and into a jpg? MTIA, Rocky Smolin Beach Access Software http://www.e-z-mrp.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 Apr 15 16:17:42 2004 From: dwaters at usinternet.com (Dan Waters) Date: Thu, 15 Apr 2004 16:17:42 -0500 Subject: [AccessD] jpg Screen shot In-Reply-To: <30152573.1082061814091.JavaMail.root@sniper5.usinternet.com> Message-ID: <000501c4232f$1783df90$de1811d8@danwaters> First, to get just the Active window from Access, the form needs to have Modal = Yes and PopUp = Yes. Then Alt+PrintScreen will work. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mitsules, Mark S. (Newport News) Sent: Thursday, April 15, 2004 3:34 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] jpg Screen shot Alt+PrintScreen will copy the current active window to the clipboard. Ctrl+PrintScreen will copy the desktop to the clipboard. Then, paste into whatever program you'd like. Mark -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Thursday, April 15, 2004 4:31 PM To: AccessD at databaseadvisors.com Subject: [AccessD] jpg Screen shot Dear List: A magazine wants a screen shot from my software and they would like it to be 300dpi. What's the best way to get that off the screen and into a jpg? MTIA, Rocky Smolin Beach Access Software http://www.e-z-mrp.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Apr 15 16:19:57 2004 From: dwaters at usinternet.com (Dan Waters) Date: Thu, 15 Apr 2004 16:19:57 -0500 Subject: [AccessD] Decompile In-Reply-To: <4518625.1082063843829.JavaMail.root@sniper5.usinternet.com> Message-ID: <000601c4232f$680687b0$de1811d8@danwaters> My rule is that if I can still read the letters on my Ctrl key and my S key than I'm probably not saving enough! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Thursday, April 15, 2004 4:09 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Decompile >No joy with Jetcomp. Although the db did open without error, still could >not get to the IDE to retrieve the code. > > > >Mark Toasted them eh? I'm sorry for you. Small consolation I know, but It's been my experince that rewriting code that's been lost is a lot easier than it was to write originally. And you get the chance to make those changes you thought about but didn't do. :-) Good luck! And I'd guess you will be doing some more frequent saves as different names for a while. ;-) Gary Kjos garykjos at hotmail.com _________________________________________________________________ Check out MSN PC Safety & Security to help ensure your PC is protected and safe. http://specials.msn.com/msn/security.asp -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Thu Apr 15 16:24:23 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Thu, 15 Apr 2004 17:24:23 -0400 Subject: [AccessD] jpg Screen shot In-Reply-To: <000e01c4232e$91a9ab20$8500a8c0@CX615377a> Message-ID: <20040415212420.GPZK1773.imf19aec.mail.bellsouth.net@SUSANONE> I think the issue is probably controlling the 300 dpi -- is that correct Rocky? Not every program lets you set the dpi. Susan H. I like Snagit, http://www.techsmith.com/. It gives you lots of versitility in making screen shots as far as selecting the portion of the screen you want to copy, etc. You can save time image in all the common formats. From john at winhaven.net Thu Apr 15 16:31:00 2004 From: john at winhaven.net (John Bartow) Date: Thu, 15 Apr 2004 16:31:00 -0500 Subject: [AccessD] jpg Screen shot In-Reply-To: <017f01c42328$86d422d0$6601a8c0@HAL9002> Message-ID: Rocky, Odd that they would ask you to do it for them at that dpi. Normally a screen capture would be at 96 dpi. And for what its worth they should be able to manipulate it to their desired quality better than you. If you download SnagIt they give you an evaluation period. You can set the resolution to 300. Otherwise if you have a graphics editing program you can copy the screen as Mark suggested and then paste it into your graphics program then increase the resolution to 300 dpi. All this will do is use pixel interpolation to increase the dpi. Print it out to make sure it looks good in print before sending it though. What you see isn't what you get when it comes to printing graphics. good luck, John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - Beach Access Software Sent: Thursday, April 15, 2004 3:31 PM To: AccessD at databaseadvisors.com Subject: [AccessD] jpg Screen shot Dear List: A magazine wants a screen shot from my software and they would like it to be 300dpi. What's the best way to get that off the screen and into a jpg? MTIA, Rocky Smolin Beach Access Software http://www.e-z-mrp.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Subscriptions at servicexp.com Thu Apr 15 17:06:44 2004 From: Subscriptions at servicexp.com (Robert Gracie) Date: Thu, 15 Apr 2004 18:06:44 -0400 Subject: [AccessD] Decompile In-Reply-To: Message-ID: Mark, If you can see the Object in the Access container, then you may be able to right click on it and export it into a new db. I just had to do this two weeks ago and while the very first time it did not seem to work, I tried it again (system was tied up for about 5 min) and wham I was able to export the class I was working on out of the corrupt db. This will only work if the code is not password protected... Robert Gracie www.servicexp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark S. (Newport News) Sent: Thursday, April 15, 2004 4:31 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Decompile No joy with Jetcomp. Although the db did open without error, still could not get to the IDE to retrieve the code. Mark -----Original Message----- From: Gary Kjos [mailto:garykjos at hotmail.com] Sent: Thursday, April 15, 2004 3:57 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Decompile Hi Mark, 1) Make a copy. 2) Run the stand alone repair utility jetcomp.exe on the copy. If that doesn't work.... 3) make a new empty database and try to import the objects from the copy. You may have to do this one object at a time. Gary Kjos garykjos at hotmail.com >From: "Mitsules, Mark S. (Newport News)" >Reply-To: Access Developers discussion and problem >solving >To: "'[AccessD]'" >Subject: [AccessD] Decompile >Date: Thu, 15 Apr 2004 15:39:39 -0400 > >Has anyone seen a case where /decompile did not appear to do anything? I'm >getting the same "corrupt" error message as before. I have 2 objects that >appear to be the culprits. I get the same "corrupt" error message when >trying to import these objects into a new database (no error messages on >the >other objects). In the corrupted database I cannot go into the IDE at >all...I get the same "corrupt" error message. This is actually the first >time I've been bitten, without having a recent backup to fall back to, and >I'm stressing. Any suggestions? > > > >Mark >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ MSN Toolbar provides one-click access to Hotmail from any Web page - FREE download! http://toolbar.msn.com/go/onm00200413ave/direct/01/ -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Thu Apr 15 17:25:10 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 16 Apr 2004 08:25:10 +1000 Subject: [AccessD] jpg Screen shot In-Reply-To: <017f01c42328$86d422d0$6601a8c0@HAL9002> Message-ID: <407F9866.27925.1571AF@localhost> On 15 Apr 2004 at 13:30, Rocky Smolin - Beach Access S wrote: > Dear List: > > A magazine wants a screen shot from my software and they would like it to be 300dpi. > > What's the best way to get that off the screen and into a jpg? > I like Irfanview. http://www.irfanview.com You can capture the screen or the foreground window and then manipulate the image (including cropping if necessary and setting DPI if required) before saving it in just about any format imaginable. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From Paul.Millard at freight.fedex.com Thu Apr 15 17:30:16 2004 From: Paul.Millard at freight.fedex.com (Millard, Paul --- Sr. Developer Analyst ---WGO) Date: Thu, 15 Apr 2004 15:30:16 -0700 Subject: [AccessD] OT: SQL SERVER Format Date Message-ID: <67B2D43A2067B248A36B007650A2312C35F96D@PSJOE2K1.fxfwest.freight.fedex.com> Hi, I know this isn't the right forum to ask but I need help formatting date from the SQL Server default output into "mm/dd". The query results are reported in an asp page. Thanks in advance, Paul Millard Here is my query and results.... ----query---- set datefirst 1 select top 13 Week = (DateAdd(day, (-1 * datepart(dw, t1.ReqEntryDate)) + 1, t1.ReqEntryDate)) from tblPrFieldSales t1 where t1.ReqEntryDate >= '3/1/2004' order by Week DESC ----results---- 2004-04-12 00:00:00.000 2004-04-12 00:00:00.000 2004-04-12 00:00:00.000 2004-04-12 00:00:00.000 ----ideal results---- 04/12 04/12... ********************************************************** This message contains information that is confidential and proprietary to FedEx Freight or its affiliates. It is intended only for the recipient named and for the express purpose(s) described therein. Any other use is prohibited. **************************************************************** From bchacc at san.rr.com Thu Apr 15 17:50:38 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 15 Apr 2004 15:50:38 -0700 Subject: [AccessD] jpg Screen shot References: <20040415212420.GPZK1773.imf19aec.mail.bellsouth.net@SUSANONE> Message-ID: <01a101c4233c$126a41e0$6601a8c0@HAL9002> That's it. They need 300dpi. Or close, I suppose, as I can get it. Rocky ----- Original Message ----- From: "Susan Harkins" To: "'Access Developers discussion and problem solving'" Sent: Thursday, April 15, 2004 2:24 PM Subject: RE: [AccessD] jpg Screen shot > I think the issue is probably controlling the 300 dpi -- is that correct > Rocky? Not every program lets you set the dpi. > > Susan H. > > I like Snagit, http://www.techsmith.com/. It gives you lots of versitility > in making screen shots as far as selecting the portion of the screen you > want to copy, etc. You can save time image in all the common formats. > > > -- > _______________________________________________ > 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 Apr 15 17:58:07 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 16 Apr 2004 08:58:07 +1000 Subject: [AccessD] OT: SQL SERVER Format Date In-Reply-To: <67B2D43A2067B248A36B007650A2312C35F96D@PSJOE2K1.fxfwest.freight.fedex.com> Message-ID: <407FA01F.22869.339AD0@localhost> On 15 Apr 2004 at 15:30, Millard, Paul --- Sr. Develop wrote: > Hi, > > I know this isn't the right forum to ask but I need help formatting date from the SQL Server default output into "mm/dd". The query results are reported in an asp page. > > Thanks in advance, > Paul Millard > > > Here is my query and results.... > > ----query---- > set > datefirst 1 > select top 13 > Week = (DateAdd(day, (-1 * datepart(dw, t1.ReqEntryDate)) + 1, t1.ReqEntryDate)) > from tblPrFieldSales t1 where t1.ReqEntryDate >= '3/1/2004' > order by Week DESC > > ----results---- > 2004-04-12 00:00:00.000 > 2004-04-12 00:00:00.000 > 2004-04-12 00:00:00.000 > 2004-04-12 00:00:00.000 > > ----ideal results---- > 04/12 > 04/12... > Try Week = Convert(char(5), (DateAdd(day, (-1 * datepart(dw,t1.ReqEntryDate)) + 1, t1.ReqEntryDate)),1) -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From stuart at lexacorp.com.pg Thu Apr 15 17:59:15 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 16 Apr 2004 08:59:15 +1000 Subject: [AccessD] jpg Screen shot In-Reply-To: <01a101c4233c$126a41e0$6601a8c0@HAL9002> Message-ID: <407FA063.21112.34A470@localhost> On 15 Apr 2004 at 15:50, Rocky Smolin - Beach Access Software wrote: > That's it. They need 300dpi. Or close, I suppose, as I can get it. > > Rocky > It's very easy to set to any value you want with Irfanview. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From clh at christopherhawkins.com Thu Apr 15 18:05:53 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Thu, 15 Apr 2004 17:05:53 -0600 Subject: [AccessD] Deleted response: Reference sub-subform from subform? Message-ID: <410-22004441523553543@christopherhawkins.com> I'm so sorry, but I accidentall deleted the responses I got on my issue with how to reference a sub-sub form from within a sub form. Can anyone who responded please re-send? Thanks. -Christopher- From wdhindman at bellsouth.net Thu Apr 15 18:18:23 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Thu, 15 Apr 2004 19:18:23 -0400 Subject: [AccessD] jpg Screen shot References: <017f01c42328$86d422d0$6601a8c0@HAL9002> Message-ID: <000a01c4233f$f2bc6040$6101a8c0@dejpolsys> ...don't use any program that initially captures your screen as a jpeg ...I won't go into the details here but when you save an image as a jpeg you are using a lossy algorithm that throws away portions of the graphic ...its the nature of the beast ...in order to give them the high quality jpeg they need, start with a decent graphics program that lets you capture the image in a high quality, uncompressed format to begin with ...Photoshop and paintshoppro are the mainstream programs ...I personally use paintshoppro (www.jasc.com) ...set your screen resolution to the highest resolution your graphics card can support and make sure your image capture area is clean and clear at that resolution ...capture the image and save it into un uncompressed format, preferably the native format of your graphics program ...in paintshoppro that would give you an image with a .pspimage file tag ...using that image you can do all sorts of image enhancements to make your saved image look better ...then resize it to 300dpi ...if you started at a much lower screen resolution you might wind up with too small an image at this point ...once the image is sized/cropped/enhanced just as you'd like to see it, use your graphics program's feature that optimizes it and saves it as a jpeg ...use zero compression (even though the jpeg will still have some inherent image quality loss) and make sure that you use the comparison feature to ensure minimal visible loss of image quality in the resulting file. ...now you have a decent sized jpeg at the desired dpi that is the best that you can present ...hth :) William Hindman "Always code as if the person who is maintaining or testing your code is a violent psychopath who knows where you live." William Silverstein ----- Original Message ----- From: "Rocky Smolin - Beach Access Software" To: Sent: Thursday, April 15, 2004 4:30 PM Subject: [AccessD] jpg Screen shot Dear List: A magazine wants a screen shot from my software and they would like it to be 300dpi. What's the best way to get that off the screen and into a jpg? MTIA, Rocky Smolin Beach Access Software http://www.e-z-mrp.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at bellsouth.net Thu Apr 15 18:19:22 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Thu, 15 Apr 2004 19:19:22 -0400 Subject: [AccessD] Deleted response: Reference sub-subform from subform? References: <410-22004441523553543@christopherhawkins.com> Message-ID: <001501c42340$22a64e60$6101a8c0@dejpolsys> ...just go to the archives Chris ...that's what they're for :) William Hindman "Always code as if the person who is maintaining or testing your code is a violent psychopath who knows where you live." William Silverstein ----- Original Message ----- From: "Christopher Hawkins" To: Sent: Thursday, April 15, 2004 7:05 PM Subject: [AccessD] Deleted response: Reference sub-subform from subform? > I'm so sorry, but I accidentall deleted the responses I got on my > issue with how to reference a sub-sub form from within a sub form. > > Can anyone who responded please re-send? Thanks. > > -Christopher- > > > > > -- > _______________________________________________ > 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 Apr 15 18:55:03 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 15 Apr 2004 16:55:03 -0700 Subject: [AccessD] jpg Screen shot References: <407FA063.21112.34A470@localhost> Message-ID: <01de01c42345$12358730$6601a8c0@HAL9002> Stuart: I just used it to capture and send the jpg but I couldn't see any way to set the dpi. Help wasn't. Do you recall how it's done? TIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com ----- Original Message ----- From: "Stuart McLachlan" To: "Access Developers discussion and problem solving" Sent: Thursday, April 15, 2004 3:59 PM Subject: Re: [AccessD] jpg Screen shot > On 15 Apr 2004 at 15:50, Rocky Smolin - Beach Access Software wrote: > > > That's it. They need 300dpi. Or close, I suppose, as I can get it. > > > > Rocky > > > > It's very easy to set to any value you want with Irfanview. > > > > > > -- > Lexacorp Ltd > http://www.lexacorp.com.pg > Information Technology Consultancy, Software Development,System Support. > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From clh at christopherhawkins.com Thu Apr 15 19:26:05 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Thu, 15 Apr 2004 18:26:05 -0600 Subject: [AccessD] A2K/03/XP: Make a form "dissolve" into view? Message-ID: <184670-2200445160265558@christopherhawkins.com> OK, here's a weird one. I'm doing fit and polish work on one of my projects. I thought of something that might be fun to code, seeing as I'm ahead of schedule. It would be a nice bit of eye candy to have the splash screen dissolve or fade into view instead of just popping open as Access/VB forms tend to do. In essence, the form would open with 100% transparency and incrementally decrease transparency until it was a solid form. The whole fade (actually, it's the opposite of fade, what do you call that?) should only take a second or two. Has anyone ever done anything like this in Access? I've seen VB apps that do this, but never an app I was able to get the source to, so I don't even know where to start. -Christopher- From DaveSharpe2 at cox.net Thu Apr 15 19:30:43 2004 From: DaveSharpe2 at cox.net (Dave Sharpe) Date: Thu, 15 Apr 2004 20:30:43 -0400 Subject: [AccessD] jpg Screen shot References: <407FA063.21112.34A470@localhost> <01de01c42345$12358730$6601a8c0@HAL9002> Message-ID: <007d01c4234a$0dae5f20$dd2f0a44@bcsrkeext6137> Rocky I have it, but haven't used it to do this. You might try the following While You have the image on screen Image ->Resize\Resample has a setting for DPI, try setting before saving. Dave ----- Original Message ----- From: "Rocky Smolin - Beach Access Software" To: "Access Developers discussion and problem solving" Sent: Thursday, April 15, 2004 7:55 PM Subject: Re: [AccessD] jpg Screen shot Stuart: I just used it to capture and send the jpg but I couldn't see any way to set the dpi. Help wasn't. Do you recall how it's done? TIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com ----- Original Message ----- From: "Stuart McLachlan" To: "Access Developers discussion and problem solving" Sent: Thursday, April 15, 2004 3:59 PM Subject: Re: [AccessD] jpg Screen shot > On 15 Apr 2004 at 15:50, Rocky Smolin - Beach Access Software wrote: > > > That's it. They need 300dpi. Or close, I suppose, as I can get it. > > > > Rocky > > > > It's very easy to set to any value you want with Irfanview. > > > > > > -- > Lexacorp Ltd > http://www.lexacorp.com.pg > Information Technology Consultancy, Software Development,System Support. > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From lexacorp at global.net.pg Thu Apr 15 20:29:10 2004 From: lexacorp at global.net.pg (Stuart McLachlan) Date: Fri, 16 Apr 2004 11:29:10 +1000 Subject: [AccessD] jpg Screen shot Message-ID: <407f36e6.1c3.110e9.1392661946@global.net.pg> > > Stuart: > > I just used it to capture and send the jpg but I couldn't > see any way to set the dpi. Help wasn't. Do you recall > how it's done? > Go to "Image - Resize/Resample" and change the setting in "Set new size - DPI" or Got to "Image - Information" and set it in that screen. From accessd at shaw.ca Thu Apr 15 19:22:50 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Thu, 15 Apr 2004 17:22:50 -0700 Subject: [AccessD] jpg Screen shot In-Reply-To: <017f01c42328$86d422d0$6601a8c0@HAL9002> Message-ID: Hi Rocky: There is a little free utility that I use to do a quick screen captures. The results can be saved or printing and there is a few other features. Check it out: http://www.geocities.com/~gigaman/ HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - Beach Access Software Sent: Thursday, April 15, 2004 1:31 PM To: AccessD at databaseadvisors.com Subject: [AccessD] jpg Screen shot Dear List: A magazine wants a screen shot from my software and they would like it to be 300dpi. What's the best way to get that off the screen and into a jpg? MTIA, Rocky Smolin Beach Access Software http://www.e-z-mrp.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 Apr 15 19:22:55 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Thu, 15 Apr 2004 17:22:55 -0700 Subject: [AccessD] jpg Screen shot In-Reply-To: <01de01c42345$12358730$6601a8c0@HAL9002> Message-ID: Hi Rocky: If you have a graphic program you can always adjust/check the dpi. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - Beach Access Software Sent: Thursday, April 15, 2004 4:55 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] jpg Screen shot Stuart: I just used it to capture and send the jpg but I couldn't see any way to set the dpi. Help wasn't. Do you recall how it's done? TIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com ----- Original Message ----- From: "Stuart McLachlan" To: "Access Developers discussion and problem solving" Sent: Thursday, April 15, 2004 3:59 PM Subject: Re: [AccessD] jpg Screen shot > On 15 Apr 2004 at 15:50, Rocky Smolin - Beach Access Software wrote: > > > That's it. They need 300dpi. Or close, I suppose, as I can get it. > > > > Rocky > > > > It's very easy to set to any value you want with Irfanview. > > > > > > -- > Lexacorp Ltd > http://www.lexacorp.com.pg > Information Technology Consultancy, Software Development,System Support. > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Apr 15 19:22:52 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Thu, 15 Apr 2004 17:22:52 -0700 Subject: [AccessD] Deleted response: Reference sub-subform from subform? In-Reply-To: <410-22004441523553543@christopherhawkins.com> Message-ID: Hi Christopher: Here it is: http://www.databaseadvisors.com/newletters/newsletter032004/0310ReferenceGui de/SyntaxForSubs.htm (watch for wrap) HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Christopher Hawkins Sent: Thursday, April 15, 2004 4:06 PM To: accessd at databaseadvisors.com Subject: [AccessD] Deleted response: Reference sub-subform from subform? I'm so sorry, but I accidentall deleted the responses I got on my issue with how to reference a sub-sub form from within a sub form. Can anyone who responded please re-send? Thanks. -Christopher- -- _______________________________________________ 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 Apr 15 21:54:20 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 15 Apr 2004 19:54:20 -0700 Subject: [AccessD] jpg Screen shot References: <407FA063.21112.34A470@localhost> <01de01c42345$12358730$6601a8c0@HAL9002> <007d01c4234a$0dae5f20$dd2f0a44@bcsrkeext6137> Message-ID: <023301c4235e$1dc738f0$6601a8c0@HAL9002> Dave: Thanks. Got it. Made it 300 dpi and sent it off. I'll find out if it's acceptable tomorrow. It's for a magazine called Tool and Moldmaking - www.tool-moldmaking.com. Rocky Smolin Beach Access Software http://www.e-z-mrp.com ----- Original Message ----- From: "Dave Sharpe" To: "Access Developers discussion and problem solving" Sent: Thursday, April 15, 2004 5:30 PM Subject: Re: [AccessD] jpg Screen shot > Rocky > > I have it, but haven't used it to > do this. You might try the following > > While You have the image on screen > Image ->Resize\Resample has a setting > for DPI, try setting before saving. > > Dave > > > ----- Original Message ----- > From: "Rocky Smolin - Beach Access Software" > To: "Access Developers discussion and problem solving" > > Sent: Thursday, April 15, 2004 7:55 PM > Subject: Re: [AccessD] jpg Screen shot > > > Stuart: > > I just used it to capture and send the jpg but I couldn't see any way to set > the dpi. Help wasn't. Do you recall how it's done? > > TIA > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > > > ----- Original Message ----- > From: "Stuart McLachlan" > To: "Access Developers discussion and problem solving" > > Sent: Thursday, April 15, 2004 3:59 PM > Subject: Re: [AccessD] jpg Screen shot > > > > On 15 Apr 2004 at 15:50, Rocky Smolin - Beach Access Software wrote: > > > > > That's it. They need 300dpi. Or close, I suppose, as I can get it. > > > > > > Rocky > > > > > > > It's very easy to set to any value you want with Irfanview. > > > > > > > > > > > > -- > > Lexacorp Ltd > > http://www.lexacorp.com.pg > > Information Technology Consultancy, Software Development,System Support. > > > > > > > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Apr 15 21:54:48 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 15 Apr 2004 19:54:48 -0700 Subject: [AccessD] jpg Screen shot References: <407f36e6.1c3.110e9.1392661946@global.net.pg> Message-ID: <023b01c4235e$2eac2c70$6601a8c0@HAL9002> Done. And done. Thank you. Rocky ----- Original Message ----- From: "Stuart McLachlan" To: "Access Developers discussion and problem solving" Sent: Thursday, April 15, 2004 6:29 PM Subject: Re: [AccessD] jpg Screen shot > > > > Stuart: > > > > I just used it to capture and send the jpg but I couldn't > > see any way to set the dpi. Help wasn't. Do you recall > > how it's done? > > > > Go to "Image - Resize/Resample" and change the setting in > "Set new size - DPI" > > or > > Got to "Image - Information" and set it in that screen. > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From wdhindman at bellsouth.net Thu Apr 15 22:41:07 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Thu, 15 Apr 2004 23:41:07 -0400 Subject: [AccessD] A2K/03/XP: Make a form "dissolve" into view? References: <184670-2200445160265558@christopherhawkins.com> Message-ID: <001501c42364$a6c979a0$6101a8c0@dejpolsys> Chris ...I use a some animated forms to make users pay attention but I've never faded one in or out. ...however, I do have in my code library some code that was posted here about three years ago that supposedly came from MS ...I've never got around to trying it but I'll repost it below and maybe it will give you what you need: __________________________________________________________ This type simple adjusts the colour slowly while reducing the form's width and height down to 0 before unloading the form. This is all done through a for-next loop. (form should be set to auto-center.) The preferred method is to adjust the current forms transparency from solid to invisible before unloading the same. Here is a copy of the code from MS technical help. 'In a module... Option Explicit Private Declare Function GetWindowLong Lib "user32" Alias _ "GetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long) As Long Private Declare Function SetWindowLong Lib "user32" Alias _ "SetWindowLongA" (ByVal hwnd As Long, ByVal nIndex As Long, _ ByVal dwNewLong As Long) As Long Private Declare Function SetLayeredWindowAttributes Lib "user32" _ (ByVal hwnd As Long, ByVal crey As Byte, ByVal bAlpha As Byte, _ ByVal dwFlags As Long) As Long private Const GWL_EXSTYLE = (-20) Private Const WS_EX_LAYERED = &H80000 Private Const WS_EX_TRANSPARENT = &H20& Private Const LWA_ALPHA = &H2& public sub Transparentcy(bTrans as byte, frmWhatever as form) Dim lOldStyle As Long with frmWhatever lOldStyle = GetWindowLong(.hwnd, GWL_EXSTYLE) SetWindowLong .hwnd, GWL_EXSTYLE, lOldStyle Or WS_EX_LAYERED SetLayeredWindowAttributes .hwnd, 0, bTrans, LWA_ALPHA end with end sub 'In your form... something like this. (haven't tested.) Private Sub Form_UnLoad() dim i as byte for i = 255 to 1 step -5 Transparentcy i, me next End Sub The above code work great but you have to have the latest copy of the User32.dll. Greater than 4.0 _________________________________________________________ ...hth ...and if you do make it work, I'd certainly like to see a sample mdb posted. William Hindman "Always code as if the person who is maintaining or testing your code is a violent psychopath who knows where you live." William Silverstein ----- Original Message ----- From: "Christopher Hawkins" To: Sent: Thursday, April 15, 2004 8:26 PM Subject: [AccessD] A2K/03/XP: Make a form "dissolve" into view? > OK, here's a weird one. > > I'm doing fit and polish work on one of my projects. I thought of > something that might be fun to code, seeing as I'm ahead of schedule. > > > It would be a nice bit of eye candy to have the splash screen > dissolve or fade into view instead of just popping open as Access/VB > forms tend to do. In essence, the form would open with 100% > transparency and incrementally decrease transparency until it was a > solid form. The whole fade (actually, it's the opposite of fade, > what do you call that?) should only take a second or two. > > Has anyone ever done anything like this in Access? I've seen VB apps > that do this, but never an app I was able to get the source to, so I > don't even know where to start. > > -Christopher- > > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From martyconnelly at shaw.ca Thu Apr 15 22:44:35 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 15 Apr 2004 20:44:35 -0700 Subject: [AccessD] Using TransferDatabase to link table from password protectd db References: Message-ID: <407F56A3.7050805@shaw.ca> There is no direct way to do this. I have heard of someone doing it this way via ODBC DoCmd.TransferDatabase acLink, "ODBC Database", "ODBC;DSN=" & odbcname1 & ";UID=" & user & ";PWD=" & pass, acTable, "MyTable", "MyTable" Or you can try it this way Public Function ImportDb(strPath As String) As Boolean Dim db As Database 'Database to import Dim td As TableDef 'Tabledefs in db Dim strTDef As String 'Name of table to import 'Open database which contains objects to import. Set db = DBEngine.Workspaces(0).OpenDatabase(strPath, False, False, "MS Access;PWD=") 'Import tables from specified Access database. For Each td In db.TableDefs strTDef = td.Name If Left(strTDef, 4) <> "MSys" Then DoCmd.TransferDatabase acImport, "Microsoft Access", strPath, acTable, strTDef, strTDef, False End If Next End Function jeffrey.demulling at usbank.com wrote: >I have the following code in a database. Works fine if there is no >password on the database. However I need to add a password to the database >the is being linked to. How can I modify the code so that it accepts a >password and does not prompt the user for one? > > >Sub linkdatatable(mytable As String) > > 'Link in tables for query > If IsLinked(mytable) = False Then > DoCmd.TransferDatabase acLink, "Microsoft Access", GetDataFile, >acTable, mytable, mytable, False > End If >End Sub > > >TIA > > > > > -- Marty Connelly Victoria, B.C. Canada From martyconnelly at shaw.ca Thu Apr 15 23:18:43 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 15 Apr 2004 21:18:43 -0700 Subject: [AccessD] Dr Watson Errors on Broadband connection References: <8B98F8EA48F8BA47A2F24E0D0AF40CF407AD81CA@xlivmbx12.aig.com> Message-ID: <407F5EA3.9020702@shaw.ca> Heenan, Lambert wrote: >X-Posted to Access-L and Access-D > >I have an Access97 database, split FE/BE. The BE resides on a network drive, >and the FE is on the user's local C drive and it is an MDE file that >references a library MDE that is also on the network. All references use the >full UNC path to the files, not mapped drives. > >I have a user who has no trouble when he's in the office docked and >connected to the LAN. The database also works fine when he's at a remote >location that has a dedicated T1 line into our LAN. > >However, when he tries to access the database, using the exact same >computer, but connected to the LAN via his cable modem and our VPN s/w he >finds that Access crashes, giving a Dr. Watson error before any sign of the >application appears on screen. > >It's one of those "Exception access violation (0xc0000005), Address >0c651503f7" type Dr. Watsons that one typically sees if an MDE application >tries to reference an MDE library that has been modified and recompiled. If >you don't recompile the client MDE you get this type of Dr. Watson. > >The only trouble is the library has not been recompiled recently. > >Any ideas any one???? > >Lambert > > -- Marty Connelly Victoria, B.C. Canada From andy at minstersystems.co.uk Fri Apr 16 05:13:44 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Fri, 16 Apr 2004 10:13:44 +0000 Subject: [AccessD] VxD errors (Cross-posted to dba and dba-Tech) Message-ID: <20040416091342.661F924C821@smtp.nildram.co.uk> Can anyone recommend a good tool for solving a VxD error on W98, preferably free? It's happening on a couple of laptops as they close down - goes to Windows splash, waits a couple of seconds then blue screen with a VxD error. Any suggestions welcome. There are a number of debugging tools which come up on the net when searching on this subject, but I'd like a recommendation. I've cross-posted to dba and dba-tech to pick up as many suggestions as possible, but it'd be good if you could reply either to dba-Tech or direct to me, as I'm conscious it's not an Access issue. Thanks. -- Andy Lacey http://www.minstersystems.co.uk ________________________________________________ Message sent using UebiMiau 2.7.2 From gustav at cactus.dk Fri Apr 16 05:01:38 2004 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 16 Apr 2004 12:01:38 +0200 Subject: [AccessD] jpg Screen shot In-Reply-To: <000a01c4233f$f2bc6040$6101a8c0@dejpolsys> References: <017f01c42328$86d422d0$6601a8c0@HAL9002> <000a01c4233f$f2bc6040$6101a8c0@dejpolsys> Message-ID: <5510887966.20040416120138@cactus.dk> Hi Rocky For the records - as you have sent your picture - William and I can agree on this. Jpeg is not a first format except for "party photos", and it is awful for screenshots where crisp straight lines and right angles are distinct elements. Bitmap is fine but - if you can do with 256 colours - GIF is ideal for screenshots with large areas of plain colours as this format is compressed without loss of image quality. Downgrading the picture should be left for him/her preparing the image for the magazine. If a jpeg is mandatory, note that most image programs can convert to jpg with zero loss at the cost of a much larger file size. /gustav > ...don't use any program that initially captures your screen as a jpeg ...I > won't go into the details here but when you save an image as a jpeg you are > using a lossy algorithm that throws away portions of the graphic ...its the > nature of the beast ... From gustav at cactus.dk Fri Apr 16 04:41:37 2004 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 16 Apr 2004 11:41:37 +0200 Subject: [AccessD] Sorting and restricting ComboBox on ListBox contents In-Reply-To: <9C382E065F54AE48BC3AA7925DCBB01C138357@karta-exc-int.Karta.com> References: <9C382E065F54AE48BC3AA7925DCBB01C138357@karta-exc-int.Karta.com> Message-ID: <1339687169.20040416114137@cactus.dk> Hi Jim > I have a list box with over 130 items all rows are distinct but a few columns are duplicates. The ListBox is sorted on two text fields which puts the ID number out of sequence. The ComboBox sorts > and "Groups By" duplicate columns. What I want to do is use the ComboBox to jump to the first instance of one of the duplicate columns. > e.g. > ID CourseName City > 135 CCP EC > 90 DIS EC > 87 DIS MP > 18 DOC CD > 17 DOC SR > 55 DSC M AL > 57 DSC M EC > 43 DSC M MP > 28 DSC M SF > 3 DSC M SR > What I want is: > 135 CCP EC > 90 DIS EC > 18 DOC CD > 55 DSC M AL > 3 DSC M SR > What I get is: > 135 CCP EC > 87 DIS MP > 17 DOC SR > 3 DSC M SR > What needs to be done to what the desired results? As Drew notes, you'll have to pick the sorted values for ID and City for each CourseName. Two subqueries can be used for this: SELECT (SELECT TOP 1 ID FROM tblCourses AS aliC WHERE aliC.CourseName = tblCourses.CourseName ORDER BY City, ID DESC;) AS TopID, CourseName, (SELECT TOP 1 City FROM tblCourses AS aliC WHERE aliC.CourseName = tblCourses.CourseName ORDER BY City, ID DESC;) AS TopCity FROM tblCourses GROUP BY CourseName; Have fun! /gustav From andy at minstersystems.co.uk Fri Apr 16 06:34:06 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Fri, 16 Apr 2004 11:34:06 +0000 Subject: [AccessD] VxD errors (Cross-posted to dba and dba-Tech) Message-ID: <20040416103404.0C3B7251ADE@smtp.nildram.co.uk> Sorry. Duff info. It's a W2000 machine. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: dba-tech at databaseadvisors.com , @smtp.nildram.co.uk Subject: [AccessD] VxD errors (Cross-posted to dba and dba-Tech) Date: 16/04/04 09:20 > > Can anyone recommend a good tool for solving a VxD error on W98, preferably > free? It's happening on a couple of laptops as they close down - goes to > Windows splash, waits a couple of seconds then blue screen with a VxD error. > Any suggestions welcome. There are a number of debugging tools which come up > on the net when searching on this subject, but I'd like a recommendation. > > I've cross-posted to dba and dba-tech to pick up as many suggestions as > possible, but it'd be good if you could reply either to dba-Tech or direct > to me, as I'm conscious it's not an Access issue. > > Thanks. > > -- > 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 > > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From andy at minstersystems.co.uk Fri Apr 16 07:36:12 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Fri, 16 Apr 2004 12:36:12 +0000 Subject: [AccessD] VxD errors (Cross-posted to dba and dba-Tech) Message-ID: <20040416113610.40CF124E530@smtp.nildram.co.uk> B******s. Am being given runaround here. It IS a W98 machine after all. Sorreeeee. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: dba-tech at databaseadvisors.com , @smtp.nildram.co.uk Subject: [AccessD] VxD errors (Cross-posted to dba and dba-Tech) Date: 16/04/04 09:20 > > Can anyone recommend a good tool for solving a VxD error on W98, preferably > free? It's happening on a couple of laptops as they close down - goes to > Windows splash, waits a couple of seconds then blue screen with a VxD error. > Any suggestions welcome. There are a number of debugging tools which come up > on the net when searching on this subject, but I'd like a recommendation. > > I've cross-posted to dba and dba-tech to pick up as many suggestions as > possible, but it'd be good if you could reply either to dba-Tech or direct > to me, as I'm conscious it's not an Access issue. > > Thanks. > > -- > 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 > > > > > > > ________________________________________________ Message sent using UebiMiau 2.7.2 From JHewson at karta.com Fri Apr 16 07:12:16 2004 From: JHewson at karta.com (Jim Hewson) Date: Fri, 16 Apr 2004 07:12:16 -0500 Subject: [AccessD] Sorting and restricting ComboBox on ListBox contents Message-ID: <9C382E065F54AE48BC3AA7925DCBB01C138359@karta-exc-int.Karta.com> Thanks, Drew and Gustav for responding. I tried Max, but sometimes the ID I need is in the middle of the IDs. I didn't think about using Top, I'll try that. thanks again. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock Sent: Friday, April 16, 2004 4:42 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Sorting and restricting ComboBox on ListBox contents Hi Jim > I have a list box with over 130 items all rows are distinct but a few columns are duplicates. The ListBox is sorted on two text fields which puts the ID number out of sequence. The ComboBox sorts > and "Groups By" duplicate columns. What I want to do is use the ComboBox to jump to the first instance of one of the duplicate columns. > e.g. > ID CourseName City > 135 CCP EC > 90 DIS EC > 87 DIS MP > 18 DOC CD > 17 DOC SR > 55 DSC M AL > 57 DSC M EC > 43 DSC M MP > 28 DSC M SF > 3 DSC M SR > What I want is: > 135 CCP EC > 90 DIS EC > 18 DOC CD > 55 DSC M AL > 3 DSC M SR > What I get is: > 135 CCP EC > 87 DIS MP > 17 DOC SR > 3 DSC M SR > What needs to be done to what the desired results? As Drew notes, you'll have to pick the sorted values for ID and City for each CourseName. Two subqueries can be used for this: SELECT (SELECT TOP 1 ID FROM tblCourses AS aliC WHERE aliC.CourseName = tblCourses.CourseName ORDER BY City, ID DESC;) AS TopID, CourseName, (SELECT TOP 1 City FROM tblCourses AS aliC WHERE aliC.CourseName = tblCourses.CourseName ORDER BY City, ID DESC;) AS TopCity FROM tblCourses GROUP BY CourseName; Have fun! /gustav -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Fri Apr 16 10:23:07 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Fri, 16 Apr 2004 08:23:07 -0700 Subject: [AccessD] jpg Screen shot References: <017f01c42328$86d422d0$6601a8c0@HAL9002> <000a01c4233f$f2bc6040$6101a8c0@dejpolsys> Message-ID: <00da01c423c6$b84ac0a0$6601a8c0@HAL9002> You should make this into an article. Thanks to everyone who helped. I eventually used Irfanview which looks like a very complete program. Just got a note from the publisher - the jpg is fine. Of course, in the magazine it's going to be probably no bigger than 2" x 2" Regards, Rocky Smolin Beach Access Software http://www.e-z-mrp.com ----- Original Message ----- From: "William Hindman" To: "Access Developers discussion and problem solving" Sent: Thursday, April 15, 2004 4:18 PM Subject: Re: [AccessD] jpg Screen shot > ...don't use any program that initially captures your screen as a jpeg ...I > won't go into the details here but when you save an image as a jpeg you are > using a lossy algorithm that throws away portions of the graphic ...its the > nature of the beast ...in order to give them the high quality jpeg they > need, start with a decent graphics program that lets you capture the image > in a high quality, uncompressed format to begin with ...Photoshop and > paintshoppro are the mainstream programs ...I personally use paintshoppro > (www.jasc.com) ...set your screen resolution to the highest resolution your > graphics card can support and make sure your image capture area is clean and > clear at that resolution ...capture the image and save it into un > uncompressed format, preferably the native format of your graphics program > ...in paintshoppro that would give you an image with a .pspimage file tag > ...using that image you can do all sorts of image enhancements to make your > saved image look better ...then resize it to 300dpi ...if you started at a > much lower screen resolution you might wind up with too small an image at > this point ...once the image is sized/cropped/enhanced just as you'd like to > see it, use your graphics program's feature that optimizes it and saves it > as a jpeg ...use zero compression (even though the jpeg will still have some > inherent image quality loss) and make sure that you use the comparison > feature to ensure minimal visible loss of image quality in the resulting > file. > > ...now you have a decent sized jpeg at the desired dpi that is the best that > you can present ...hth :) > > William Hindman > "Always code as if the person who is maintaining or testing your code is > a violent psychopath who knows where you live." William Silverstein > > > ----- Original Message ----- > From: "Rocky Smolin - Beach Access Software" > To: > Sent: Thursday, April 15, 2004 4:30 PM > Subject: [AccessD] jpg Screen shot > > > Dear List: > > A magazine wants a screen shot from my software and they would like it to be > 300dpi. > > What's the best way to get that off the screen and into a jpg? > > MTIA, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Fri Apr 16 11:42:02 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Fri, 16 Apr 2004 11:42:02 -0500 Subject: [AccessD] jpg Screen shot Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE517@TAPPEEXCH01> By far, the absolute best format for screenshots is PNG. Near-infinite color range (handles 32-bit palettes with ease), lossless compression, and tiny file size. Unfortunately, it is open-source based so it hasn't made it to the mainstream like other more popular formats (GIF, JPG). I wrote a global error handler that automatically grabs a full screen shot of the users' workstation upon app failure and stores it as a PNG on the network. Files range between 8KB and 25KB! -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Friday, April 16, 2004 10:23 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] jpg Screen shot You should make this into an article. Thanks to everyone who helped. I eventually used Irfanview which looks like a very complete program. Just got a note from the publisher - the jpg is fine. Of course, in the magazine it's going to be probably no bigger than 2" x 2" Regards, Rocky Smolin Beach Access Software http://www.e-z-mrp.com ----- Original Message ----- From: "William Hindman" To: "Access Developers discussion and problem solving" Sent: Thursday, April 15, 2004 4:18 PM Subject: Re: [AccessD] jpg Screen shot > ...don't use any program that initially captures your screen as a jpeg ...I > won't go into the details here but when you save an image as a jpeg you are > using a lossy algorithm that throws away portions of the graphic ...its the > nature of the beast ...in order to give them the high quality jpeg they > need, start with a decent graphics program that lets you capture the image > in a high quality, uncompressed format to begin with ...Photoshop and > paintshoppro are the mainstream programs ...I personally use paintshoppro > (www.jasc.com) ...set your screen resolution to the highest resolution your > graphics card can support and make sure your image capture area is clean and > clear at that resolution ...capture the image and save it into un > uncompressed format, preferably the native format of your graphics program > ...in paintshoppro that would give you an image with a .pspimage file tag > ...using that image you can do all sorts of image enhancements to make your > saved image look better ...then resize it to 300dpi ...if you started at a > much lower screen resolution you might wind up with too small an image at > this point ...once the image is sized/cropped/enhanced just as you'd like to > see it, use your graphics program's feature that optimizes it and saves it > as a jpeg ...use zero compression (even though the jpeg will still have some > inherent image quality loss) and make sure that you use the comparison > feature to ensure minimal visible loss of image quality in the resulting > file. > > ...now you have a decent sized jpeg at the desired dpi that is the best that > you can present ...hth :) > > William Hindman > "Always code as if the person who is maintaining or testing your code is > a violent psychopath who knows where you live." William Silverstein > > > ----- Original Message ----- > From: "Rocky Smolin - Beach Access Software" > To: > Sent: Thursday, April 15, 2004 4:30 PM > Subject: [AccessD] jpg Screen shot > > > Dear List: > > A magazine wants a screen shot from my software and they would like it to be > 300dpi. > > What's the best way to get that off the screen and into a jpg? > > MTIA, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.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 carbonnb at sympatico.ca Fri Apr 16 11:47:48 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Fri, 16 Apr 2004 12:47:48 -0400 Subject: Error Handler was (RE: [AccessD] jpg Screen shot) Message-ID: <20040416164744.WAWY29662.tomts8-srv.bellnexxia.net@mxmta.bellnexxia.net> > From: Brett Barabash > I wrote a global error handler that automatically grabs a full screen shot > of the users' workstation upon app failure and stores it as a PNG on the > network. Files range between 8KB and 25KB! Would yuou mind sharing?? Please??? Don't make me beg. It's not pretty :) -- Bryan Carbonnell - carbonnb at sympatico.ca Unfortunately common sense isn't so common! From Subscriptions at servicexp.com Fri Apr 16 11:51:42 2004 From: Subscriptions at servicexp.com (Robert Gracie) Date: Fri, 16 Apr 2004 12:51:42 -0400 Subject: [AccessD] jpg Screen shot In-Reply-To: <426071E0B0A6D311B3C0006008B0AB23AFE517@TAPPEEXCH01> Message-ID: Me too, Me too. Pleaaaaase.... :-) Robert Gracie www.servicexp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Brett Barabash Sent: Friday, April 16, 2004 12:42 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] jpg Screen shot By far, the absolute best format for screenshots is PNG. Near-infinite color range (handles 32-bit palettes with ease), lossless compression, and tiny file size. Unfortunately, it is open-source based so it hasn't made it to the mainstream like other more popular formats (GIF, JPG). I wrote a global error handler that automatically grabs a full screen shot of the users' workstation upon app failure and stores it as a PNG on the network. Files range between 8KB and 25KB! -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Friday, April 16, 2004 10:23 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] jpg Screen shot You should make this into an article. Thanks to everyone who helped. I eventually used Irfanview which looks like a very complete program. Just got a note from the publisher - the jpg is fine. Of course, in the magazine it's going to be probably no bigger than 2" x 2" Regards, Rocky Smolin Beach Access Software http://www.e-z-mrp.com ----- Original Message ----- From: "William Hindman" To: "Access Developers discussion and problem solving" Sent: Thursday, April 15, 2004 4:18 PM Subject: Re: [AccessD] jpg Screen shot > ...don't use any program that initially captures your screen as a jpeg ...I > won't go into the details here but when you save an image as a jpeg you are > using a lossy algorithm that throws away portions of the graphic ...its the > nature of the beast ...in order to give them the high quality jpeg they > need, start with a decent graphics program that lets you capture the image > in a high quality, uncompressed format to begin with ...Photoshop and > paintshoppro are the mainstream programs ...I personally use paintshoppro > (www.jasc.com) ...set your screen resolution to the highest resolution your > graphics card can support and make sure your image capture area is clean and > clear at that resolution ...capture the image and save it into un > uncompressed format, preferably the native format of your graphics program > ...in paintshoppro that would give you an image with a .pspimage file tag > ...using that image you can do all sorts of image enhancements to make your > saved image look better ...then resize it to 300dpi ...if you started at a > much lower screen resolution you might wind up with too small an image at > this point ...once the image is sized/cropped/enhanced just as you'd like to > see it, use your graphics program's feature that optimizes it and saves it > as a jpeg ...use zero compression (even though the jpeg will still have some > inherent image quality loss) and make sure that you use the comparison > feature to ensure minimal visible loss of image quality in the resulting > file. > > ...now you have a decent sized jpeg at the desired dpi that is the best that > you can present ...hth :) > > William Hindman > "Always code as if the person who is maintaining or testing your code is > a violent psychopath who knows where you live." William Silverstein > > > ----- Original Message ----- > From: "Rocky Smolin - Beach Access Software" > To: > Sent: Thursday, April 15, 2004 4:30 PM > Subject: [AccessD] jpg Screen shot > > > Dear List: > > A magazine wants a screen shot from my software and they would like it to be > 300dpi. > > What's the best way to get that off the screen and into a jpg? > > MTIA, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.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 BBarabash at TappeConstruction.com Fri Apr 16 11:55:28 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Fri, 16 Apr 2004 11:55:28 -0500 Subject: Error Handler was (RE: [AccessD] jpg Screen shot) Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE518@TAPPEEXCH01> The screenshot portion is fairly simple. I use the Windows BitBlt API to copy the screen contents to a memory heap. The PNG portion is a little trickier. I purchased the ImgSource dll from Smaller Animals software (www.smalleranimals.com), which outputs to PNG (as well as a large host of other formats). As far as the global error handling goes, I created a global Sub called ErrorHandler that is stored in a mda file referenced by all of my projects. I use an add-in similar to John's to add the On Error lines to all of my routines. I'll see what I can dig up and share... -----Original Message----- From: Bryan Carbonnell [mailto:carbonnb at sympatico.ca] Sent: Friday, April 16, 2004 11:48 AM To: accessd at databaseadvisors.com Subject: Error Handler was (RE: [AccessD] jpg Screen shot) > From: Brett Barabash > I wrote a global error handler that automatically grabs a full screen shot > of the users' workstation upon app failure and stores it as a PNG on the > network. Files range between 8KB and 25KB! Would yuou mind sharing?? Please??? Don't make me beg. It's not pretty :) -- Bryan Carbonnell - carbonnb at sympatico.ca Unfortunately common sense isn't so common! -------------------------------------------------------------------------------------------------------------------- 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 wdhindman at bellsouth.net Fri Apr 16 12:30:52 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Fri, 16 Apr 2004 13:30:52 -0400 Subject: Error Handler was (RE: [AccessD] jpg Screen shot) References: <20040416164744.WAWY29662.tomts8-srv.bellnexxia.net@mxmta.bellnexxia.net> Message-ID: <00b801c423d8$90ef0c70$6101a8c0@dejpolsys> ...I'll beg if that's what it takes ...never even thought of doing something like that ...what a truly great idea! William Hindman "Always code as if the person who is maintaining or testing your code is a violent psychopath who knows where you live." William Silverstein ----- Original Message ----- From: "Bryan Carbonnell" To: Sent: Friday, April 16, 2004 12:47 PM Subject: Error Handler was (RE: [AccessD] jpg Screen shot) > > From: Brett Barabash > > > I wrote a global error handler that automatically grabs a full screen shot > > of the users' workstation upon app failure and stores it as a PNG on the > > network. Files range between 8KB and 25KB! > > Would yuou mind sharing?? Please??? > > Don't make me beg. It's not pretty :) > > -- > Bryan Carbonnell - carbonnb at sympatico.ca > Unfortunately common sense isn't so common! > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From clh at christopherhawkins.com Fri Apr 16 13:00:46 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Fri, 16 Apr 2004 12:00:46 -0600 Subject: [AccessD] Still having a subform problem... Message-ID: <251230-22004451618046164@christopherhawkins.com> ..although I looked at this page: http://www.databaseadvisors.com/newletters/newsletter032004/0310Refere nceGuide/SyntaxForSubs.htm The syntax just isn't working. So, to restate the problem: The Overview: frmMain, which has a subform control named sFrm. sFrm's SourceObject = "frmSearch" frmSearch, which has a button named cmdSearch and a subform control named sFrmResults. sFrmResults' SourceObject = "frmResults". frmResults, which has a bunch of fields like FirstName, LastName, etc. Typical customer database stuff. frmResults displays as a datasheet. The Problem: In the code behind cmdSearch, there is a line that tries to re-order the columns in the datasheet contained in sFrmResults. That code looks like this: [sFrmResults].Form(sSearchField).ColumnOrder = 1 That line of code tries to execute but instead yields this error: Method 'Form' of object '_Subform' failed. Now, this is also totally vanilla, but for some reason it just won't work. I tried pulling frmSearch out of frmMain so that the search form was it's own form instead of being a subform, and this line worked just fine then. Unfortunately, my client will not accep that change as a solution; frmSearch must remain a subform. But that line just does not work when frmSearch is a subform. -C- From Bryan_Carbonnell at cbc.ca Fri Apr 16 13:25:05 2004 From: Bryan_Carbonnell at cbc.ca (Bryan Carbonnell) Date: Fri, 16 Apr 2004 14:25:05 -0400 Subject: [AccessD] Still having a subform problem... Message-ID: Since the command button and the sub form are on the same subform, try Me.Form(sSearchField).ColumnOrder = 1 Bryan Carbonnell bryan_carbonnell at cbc.ca >>> clh at christopherhawkins.com 16-Apr-04 2:00:46 PM >>> ..although I looked at this page: http://www.databaseadvisors.com/newletters/newsletter032004/0310Refere nceGuide/SyntaxForSubs.htm The syntax just isn't working. So, to restate the problem: The Overview: frmMain, which has a subform control named sFrm. sFrm's SourceObject = "frmSearch" frmSearch, which has a button named cmdSearch and a subform control named sFrmResults. sFrmResults' SourceObject = "frmResults". frmResults, which has a bunch of fields like FirstName, LastName, etc. Typical customer database stuff. frmResults displays as a datasheet. The Problem: In the code behind cmdSearch, there is a line that tries to re-order the columns in the datasheet contained in sFrmResults. That code looks like this: [sFrmResults].Form(sSearchField).ColumnOrder = 1 That line of code tries to execute but instead yields this error: Method 'Form' of object '_Subform' failed. Now, this is also totally vanilla, but for some reason it just won't work. I tried pulling frmSearch out of frmMain so that the search form was it's own form instead of being a subform, and this line worked just fine then. Unfortunately, my client will not accep that change as a solution; frmSearch must remain a subform. But that line just does not work when frmSearch is a subform. From bchacc at san.rr.com Fri Apr 16 13:27:35 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Fri, 16 Apr 2004 11:27:35 -0700 Subject: [AccessD] jpg Screen shot References: <426071E0B0A6D311B3C0006008B0AB23AFE517@TAPPEEXCH01> Message-ID: <017801c423e0$7d616d80$6601a8c0@HAL9002> Brett: Would it be a problem if you wanted to send a file to someone? Is PNG format supported by Windows or any of the popular viewers? Rocky ----- Original Message ----- From: "Brett Barabash" To: "'Access Developers discussion and problem solving'" Sent: Friday, April 16, 2004 9:42 AM Subject: RE: [AccessD] jpg Screen shot > By far, the absolute best format for screenshots is PNG. Near-infinite > color range (handles 32-bit palettes with ease), lossless compression, and > tiny file size. > > Unfortunately, it is open-source based so it hasn't made it to the > mainstream like other more popular formats (GIF, JPG). > > I wrote a global error handler that automatically grabs a full screen shot > of the users' workstation upon app failure and stores it as a PNG on the > network. Files range between 8KB and 25KB! > > > -----Original Message----- > From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] > Sent: Friday, April 16, 2004 10:23 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] jpg Screen shot > > You should make this into an article. > > Thanks to everyone who helped. I eventually used Irfanview which looks like > a very complete program. Just got a note from the publisher - the jpg is > fine. Of course, in the magazine it's going to be probably no bigger than > 2" x 2" > > Regards, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > > > ----- Original Message ----- > From: "William Hindman" > To: "Access Developers discussion and problem solving" > > Sent: Thursday, April 15, 2004 4:18 PM > Subject: Re: [AccessD] jpg Screen shot > > > > ...don't use any program that initially captures your screen as a jpeg > ...I > > won't go into the details here but when you save an image as a jpeg you > are > > using a lossy algorithm that throws away portions of the graphic ...its > the > > nature of the beast ...in order to give them the high quality jpeg they > > need, start with a decent graphics program that lets you capture the image > > in a high quality, uncompressed format to begin with ...Photoshop and > > paintshoppro are the mainstream programs ...I personally use paintshoppro > > (www.jasc.com) ...set your screen resolution to the highest resolution > your > > graphics card can support and make sure your image capture area is clean > and > > clear at that resolution ...capture the image and save it into un > > uncompressed format, preferably the native format of your graphics program > > ...in paintshoppro that would give you an image with a .pspimage file tag > > ...using that image you can do all sorts of image enhancements to make > your > > saved image look better ...then resize it to 300dpi ...if you started at a > > much lower screen resolution you might wind up with too small an image at > > this point ...once the image is sized/cropped/enhanced just as you'd like > to > > see it, use your graphics program's feature that optimizes it and saves it > > as a jpeg ...use zero compression (even though the jpeg will still have > some > > inherent image quality loss) and make sure that you use the comparison > > feature to ensure minimal visible loss of image quality in the resulting > > file. > > > > ...now you have a decent sized jpeg at the desired dpi that is the best > that > > you can present ...hth :) > > > > William Hindman > > "Always code as if the person who is maintaining or testing your code is > > a violent psychopath who knows where you live." William Silverstein > > > > > > ----- Original Message ----- > > From: "Rocky Smolin - Beach Access Software" > > To: > > Sent: Thursday, April 15, 2004 4:30 PM > > Subject: [AccessD] jpg Screen shot > > > > > > Dear List: > > > > A magazine wants a screen shot from my software and they would like it to > be > > 300dpi. > > > > What's the best way to get that off the screen and into a jpg? > > > > MTIA, > > > > Rocky Smolin > > Beach Access Software > > http://www.e-z-mrp.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 gustav at cactus.dk Fri Apr 16 13:30:15 2004 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 16 Apr 2004 20:30:15 +0200 Subject: [AccessD] Still having a subform problem... In-Reply-To: <251230-22004451618046164@christopherhawkins.com> References: <251230-22004451618046164@christopherhawkins.com> Message-ID: <2741404406.20040416203015@cactus.dk> Hi Christopher > frmMain, which has a subform control named sFrm. sFrm's SourceObject > = "frmSearch" > frmSearch, which has a button named cmdSearch and a subform control > named sFrmResults. sFrmResults' SourceObject = "frmResults". > frmResults, which has a bunch of fields like FirstName, LastName, > etc. Typical customer database stuff. frmResults displays as a > datasheet. > The Problem: > In the code behind cmdSearch, there is a line that tries to re-order > the columns in the datasheet contained in sFrmResults. That code > looks like this: > [sFrmResults].Form(sSearchField).ColumnOrder = 1 How about Me!sFrmResults.Form!sSearchField.ColumnOrder = 1 /gustav From BBarabash at TappeConstruction.com Fri Apr 16 13:34:07 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Fri, 16 Apr 2004 13:34:07 -0500 Subject: [AccessD] jpg Screen shot Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE519@TAPPEEXCH01> Most Windows programs support PNG (Adobe Photoshop, Microsoft Photo Editor, Internet Explorer, Irfanview, etc). It just hasn't made it to the industry standard realm the same way as other formats have. (Magazines asking for JPG files instead of PNGs for screenshots, for example). I think you'd be hard pressed to find a current graphics file viewer that doesn't support it. -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Friday, April 16, 2004 1:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] jpg Screen shot Brett: Would it be a problem if you wanted to send a file to someone? Is PNG format supported by Windows or any of the popular viewers? Rocky ----- Original Message ----- From: "Brett Barabash" To: "'Access Developers discussion and problem solving'" Sent: Friday, April 16, 2004 9:42 AM Subject: RE: [AccessD] jpg Screen shot > By far, the absolute best format for screenshots is PNG. Near-infinite > color range (handles 32-bit palettes with ease), lossless compression, and > tiny file size. > > Unfortunately, it is open-source based so it hasn't made it to the > mainstream like other more popular formats (GIF, JPG). > > I wrote a global error handler that automatically grabs a full screen shot > of the users' workstation upon app failure and stores it as a PNG on the > network. Files range between 8KB and 25KB! > > > -----Original Message----- > From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] > Sent: Friday, April 16, 2004 10:23 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] jpg Screen shot > > You should make this into an article. > > Thanks to everyone who helped. I eventually used Irfanview which looks like > a very complete program. Just got a note from the publisher - the jpg is > fine. Of course, in the magazine it's going to be probably no bigger than > 2" x 2" > > Regards, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > > > ----- Original Message ----- > From: "William Hindman" > To: "Access Developers discussion and problem solving" > > Sent: Thursday, April 15, 2004 4:18 PM > Subject: Re: [AccessD] jpg Screen shot > > > > ...don't use any program that initially captures your screen as a jpeg > ...I > > won't go into the details here but when you save an image as a jpeg you > are > > using a lossy algorithm that throws away portions of the graphic ...its > the > > nature of the beast ...in order to give them the high quality jpeg they > > need, start with a decent graphics program that lets you capture the image > > in a high quality, uncompressed format to begin with ...Photoshop and > > paintshoppro are the mainstream programs ...I personally use paintshoppro > > (www.jasc.com) ...set your screen resolution to the highest resolution > your > > graphics card can support and make sure your image capture area is clean > and > > clear at that resolution ...capture the image and save it into un > > uncompressed format, preferably the native format of your graphics program > > ...in paintshoppro that would give you an image with a .pspimage file tag > > ...using that image you can do all sorts of image enhancements to make > your > > saved image look better ...then resize it to 300dpi ...if you started at a > > much lower screen resolution you might wind up with too small an image at > > this point ...once the image is sized/cropped/enhanced just as you'd like > to > > see it, use your graphics program's feature that optimizes it and saves it > > as a jpeg ...use zero compression (even though the jpeg will still have > some > > inherent image quality loss) and make sure that you use the comparison > > feature to ensure minimal visible loss of image quality in the resulting > > file. > > > > ...now you have a decent sized jpeg at the desired dpi that is the best > that > > you can present ...hth :) > > > > William Hindman > > "Always code as if the person who is maintaining or testing your code is > > a violent psychopath who knows where you live." William Silverstein > > > > > > ----- Original Message ----- > > From: "Rocky Smolin - Beach Access Software" > > To: > > Sent: Thursday, April 15, 2004 4:30 PM > > Subject: [AccessD] jpg Screen shot > > > > > > Dear List: > > > > A magazine wants a screen shot from my software and they would like it to > be > > 300dpi. > > > > What's the best way to get that off the screen and into a jpg? > > > > MTIA, > > > > Rocky Smolin > > Beach Access Software > > http://www.e-z-mrp.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 > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.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 Bryan_Carbonnell at cbc.ca Fri Apr 16 13:39:16 2004 From: Bryan_Carbonnell at cbc.ca (Bryan Carbonnell) Date: Fri, 16 Apr 2004 14:39:16 -0400 Subject: [AccessD] jpg Screen shot Message-ID: I'm not Brett, but that's never stopped me before :-) IE 5+ will allow you to open PNG. Most major image editing and viewing software also support PNGs. As does the Microsoft Photo Editor that is shipped with Win2K. So it's fairly widely supported in the modern OSes and applications. Bryan Carbonnell bryan_carbonnell at cbc.ca >>> bchacc at san.rr.com 16-Apr-04 2:27:35 PM >>> Brett: Would it be a problem if you wanted to send a file to someone? Is PNG format supported by Windows or any of the popular viewers? Rocky From john at winhaven.net Fri Apr 16 14:22:52 2004 From: john at winhaven.net (John Bartow) Date: Fri, 16 Apr 2004 14:22:52 -0500 Subject: [AccessD] jpg Screen shot In-Reply-To: <426071E0B0A6D311B3C0006008B0AB23AFE519@TAPPEEXCH01> Message-ID: Probably the biggest drawback to .png is that there was already a widely established web of .gif and .jpg images. I believe that is the major cause of the non-acceptance of it. Plus file size still rules for WebPages and .png rarely (if ever) makes for a smaller file than jpg or gif. Adobe has great little utility for optimizes images for the web that lets you compare formats and parameters. I've never had .png come as best of the lot. And although it isn't the lossy compression algorithm that jpg is it also has to compete with other more established "large file" formats such as tif, bmp, etc. The GIS industry has gone through mage formats by the dozens because of their heavy reliance on aerial photography. My first exposure and unhappiness with jpg - every time a .jpg file is edited and saved its "lossy algorithm" loses more. Also .png doesn't do everything it was set out to accomplish in the beginning - which was basically to replace the .gif with an open source public domain format. (IIRC .gif is proprietary but was not protected well enough by its owner for too long so the courts wouldn't accept their lawsuit claims.) One more reason is that Microsoft was rather late in adapting their products to use it. I used to try using .png just because it was open source and had problems with PowerPoint, Word, etc. I know that limitation is somewhat history but it was an issue that stymied it. I wish people would start using it rather than .jpg! John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Brett Barabash Sent: Friday, April 16, 2004 1:34 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] jpg Screen shot Most Windows programs support PNG (Adobe Photoshop, Microsoft Photo Editor, Internet Explorer, Irfanview, etc). It just hasn't made it to the industry standard realm the same way as other formats have. (Magazines asking for JPG files instead of PNGs for screenshots, for example). I think you'd be hard pressed to find a current graphics file viewer that doesn't support it. -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Friday, April 16, 2004 1:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] jpg Screen shot Brett: Would it be a problem if you wanted to send a file to someone? Is PNG format supported by Windows or any of the popular viewers? Rocky ----- Original Message ----- From: "Brett Barabash" To: "'Access Developers discussion and problem solving'" Sent: Friday, April 16, 2004 9:42 AM Subject: RE: [AccessD] jpg Screen shot > By far, the absolute best format for screenshots is PNG. Near-infinite > color range (handles 32-bit palettes with ease), lossless compression, and > tiny file size. > > Unfortunately, it is open-source based so it hasn't made it to the > mainstream like other more popular formats (GIF, JPG). > > I wrote a global error handler that automatically grabs a full screen shot > of the users' workstation upon app failure and stores it as a PNG on the > network. Files range between 8KB and 25KB! > > > -----Original Message----- > From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] > Sent: Friday, April 16, 2004 10:23 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] jpg Screen shot > > You should make this into an article. > > Thanks to everyone who helped. I eventually used Irfanview which looks like > a very complete program. Just got a note from the publisher - the jpg is > fine. Of course, in the magazine it's going to be probably no bigger than > 2" x 2" > > Regards, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > > > ----- Original Message ----- > From: "William Hindman" > To: "Access Developers discussion and problem solving" > > Sent: Thursday, April 15, 2004 4:18 PM > Subject: Re: [AccessD] jpg Screen shot > > > > ...don't use any program that initially captures your screen as a jpeg > ...I > > won't go into the details here but when you save an image as a jpeg you > are > > using a lossy algorithm that throws away portions of the graphic ...its > the > > nature of the beast ...in order to give them the high quality jpeg they > > need, start with a decent graphics program that lets you capture the image > > in a high quality, uncompressed format to begin with ...Photoshop and > > paintshoppro are the mainstream programs ...I personally use paintshoppro > > (www.jasc.com) ...set your screen resolution to the highest resolution > your > > graphics card can support and make sure your image capture area is clean > and > > clear at that resolution ...capture the image and save it into un > > uncompressed format, preferably the native format of your graphics program > > ...in paintshoppro that would give you an image with a .pspimage file tag > > ...using that image you can do all sorts of image enhancements to make > your > > saved image look better ...then resize it to 300dpi ...if you started at a > > much lower screen resolution you might wind up with too small an image at > > this point ...once the image is sized/cropped/enhanced just as you'd like > to > > see it, use your graphics program's feature that optimizes it and saves it > > as a jpeg ...use zero compression (even though the jpeg will still have > some > > inherent image quality loss) and make sure that you use the comparison > > feature to ensure minimal visible loss of image quality in the resulting > > file. > > > > ...now you have a decent sized jpeg at the desired dpi that is the best > that > > you can present ...hth :) > > > > William Hindman > > "Always code as if the person who is maintaining or testing your code is > > a violent psychopath who knows where you live." William Silverstein > > > > > > ----- Original Message ----- > > From: "Rocky Smolin - Beach Access Software" > > To: > > Sent: Thursday, April 15, 2004 4:30 PM > > Subject: [AccessD] jpg Screen shot > > > > > > Dear List: > > > > A magazine wants a screen shot from my software and they would like it to > be > > 300dpi. > > > > What's the best way to get that off the screen and into a jpg? > > > > MTIA, > > > > Rocky Smolin > > Beach Access Software > > http://www.e-z-mrp.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 > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.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 greggs at msn.com Fri Apr 16 15:41:28 2004 From: greggs at msn.com (Gregg) Date: Fri, 16 Apr 2004 15:41:28 -0500 Subject: [AccessD] Dr Watson Errors on Broadband connection In-Reply-To: <8B98F8EA48F8BA47A2F24E0D0AF40CF407AD81CA@xlivmbx12.aig.com> Message-ID: I have an app with the same problem... with the same no solution. We're running Citrix on NT4 and SQl be. I am using a mapped drive to link to access and SQL tables. My Doctor shows up 1 out of 5 times when relinking but does seem to be worst on some connections than others. I'm wondering if it is NT4... what are you running? Gregg Steinbrenner -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Heenan, Lambert Sent: Thursday, April 15, 2004 4:12 PM To: ACCESS-L Email (E-mail) Cc: Access-D Email (E-mail) Subject: [AccessD] Dr Watson Errors on Broadband connection X-Posted to Access-L and Access-D I have an Access97 database, split FE/BE. The BE resides on a network drive, and the FE is on the user's local C drive and it is an MDE file that references a library MDE that is also on the network. All references use the full UNC path to the files, not mapped drives. I have a user who has no trouble when he's in the office docked and connected to the LAN. The database also works fine when he's at a remote location that has a dedicated T1 line into our LAN. However, when he tries to access the database, using the exact same computer, but connected to the LAN via his cable modem and our VPN s/w he finds that Access crashes, giving a Dr. Watson error before any sign of the application appears on screen. It's one of those "Exception access violation (0xc0000005), Address 0c651503f7" type Dr. Watsons that one typically sees if an MDE application tries to reference an MDE library that has been modified and recompiled. If you don't recompile the client MDE you get this type of Dr. Watson. The only trouble is the library has not been recompiled recently. Any ideas any one???? Lambert -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Fri Apr 16 16:04:05 2004 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Fri, 16 Apr 2004 17:04:05 -0400 Subject: [AccessD] Dr Watson Errors on Broadband connection Message-ID: <8B98F8EA48F8BA47A2F24E0D0AF40CF407AD81D1@xlivmbx12.aig.com> This is an NT4 box too, but not using Citrix. Like I said it's all just ticketyboo until he tries to access the Db via his broadband connection at home???? > -----Original Message----- > From: Gregg [SMTP:greggs at msn.com] > Sent: Friday, April 16, 2004 4:41 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Dr Watson Errors on Broadband connection > > I have an app with the same problem... with the same no solution. We're > running Citrix on NT4 and SQl be. I am using a mapped drive to link to > access and SQL tables. My Doctor shows up 1 out of 5 times when relinking > but does seem to be worst on some connections than others. I'm wondering > if > it is NT4... what are you running? > > Gregg Steinbrenner > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Heenan, > Lambert > Sent: Thursday, April 15, 2004 4:12 PM > To: ACCESS-L Email (E-mail) > Cc: Access-D Email (E-mail) > Subject: [AccessD] Dr Watson Errors on Broadband connection > > > X-Posted to Access-L and Access-D > > I have an Access97 database, split FE/BE. The BE resides on a network > drive, > and the FE is on the user's local C drive and it is an MDE file that > references a library MDE that is also on the network. All references use > the > full UNC path to the files, not mapped drives. > > I have a user who has no trouble when he's in the office docked and > connected to the LAN. The database also works fine when he's at a remote > location that has a dedicated T1 line into our LAN. > > However, when he tries to access the database, using the exact same > computer, but connected to the LAN via his cable modem and our VPN s/w he > finds that Access crashes, giving a Dr. Watson error before any sign of > the > application appears on screen. > > It's one of those "Exception access violation (0xc0000005), Address > 0c651503f7" type Dr. Watsons that one typically sees if an MDE application > tries to reference an MDE library that has been modified and recompiled. > If > you don't recompile the client MDE you get this type of Dr. Watson. > > The only trouble is the library has not been recompiled recently. > > Any ideas any one???? > > Lambert > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From clh at christopherhawkins.com Fri Apr 16 13:55:05 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Fri, 16 Apr 2004 12:55:05 -0600 Subject: [AccessD] Still having a subform problem... Message-ID: <182500-22004451618555222@christopherhawkins.com> OK, I tried that line and it still errored out. But it gave me an idea - I adjusted it slightly, to this: Me.sFrmResults(sSearchField).ColumnOrder = 1 and it worked. So thanks for the inspiration! Now I'm having the same error on this line: Me.sFrm.Form.RecordSource = "SELECT * FROM tblCustomer" I tried re-writing it to be: Me.sFrm.RecordSource = "SELECT * FROM tblCustomer" But it still error s out. Any ideas on that one? -Christopher- ---- Original Message ---- From: Bryan_Carbonnell at cbc.ca To: accessd at databaseadvisors.com, Subject: Re: [AccessD] Still having a subform problem... Date: Fri, 16 Apr 2004 14:25:05 -0400 >Since the command button and the sub form are on the same subform, >try > >Me.Form(sSearchField).ColumnOrder = 1 > >Bryan Carbonnell >bryan_carbonnell at cbc.ca > >>>> clh at christopherhawkins.com 16-Apr-04 2:00:46 PM >>> >..although I looked at this page: > >http://www.databaseadvisors.com/newletters/newsletter032004/0310Refer >e > >nceGuide/SyntaxForSubs.htm > >The syntax just isn't working. So, to restate the problem: > >The Overview: > >frmMain, which has a subform control named sFrm. sFrm's SourceObject >= "frmSearch" > >frmSearch, which has a button named cmdSearch and a subform control >named sFrmResults. sFrmResults' SourceObject = "frmResults". > >frmResults, which has a bunch of fields like FirstName, LastName, >etc. Typical customer database stuff. frmResults displays as a >datasheet. > >The Problem: > >In the code behind cmdSearch, there is a line that tries to re-order >the columns in the datasheet contained in sFrmResults. That code >looks like this: > >[sFrmResults].Form(sSearchField).ColumnOrder = 1 > >That line of code tries to execute but instead yields this error: > >Method 'Form' of object '_Subform' failed. > >Now, this is also totally vanilla, but for some reason it just won't >work. I tried pulling frmSearch out of frmMain so that the search >form was it's own form instead of being a subform, and this line >worked just fine then. Unfortunately, my client will not accep that >change as a solution; frmSearch must remain a subform. > >But that line just does not work when frmSearch is a subform. > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > From martyconnelly at shaw.ca Fri Apr 16 17:18:05 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 16 Apr 2004 15:18:05 -0700 Subject: [AccessD] jpg Screen shot References: Message-ID: <40805B9D.5000203@shaw.ca> Tiff is the standard for records management archivists. It has been around 10 years longer than PNG which was a patentless replacement for Gif (Unisys). It is also lossless. Adobe has copyright on specifications for Tiff. Carries a bit more metadata than png. It is a lot clearer displaying straight lines. John Bartow wrote: >Probably the biggest drawback to .png is that there was already a widely >established web of .gif and .jpg images. I believe that is the major cause >of the non-acceptance of it. Plus file size still rules for WebPages and >.png rarely (if ever) makes for a smaller file than jpg or gif. Adobe has >great little utility for optimizes images for the web that lets you compare >formats and parameters. I've never had .png come as best of the lot. > >And although it isn't the lossy compression algorithm that jpg is it also >has to compete with other more established "large file" formats such as tif, >bmp, etc. The GIS industry has gone through mage formats by the dozens >because of their heavy reliance on aerial photography. My first exposure and >unhappiness with jpg - every time a .jpg file is edited and saved its "lossy >algorithm" loses more. > >Also .png doesn't do everything it was set out to accomplish in the >beginning - which was basically to replace the .gif with an open source >public domain format. (IIRC .gif is proprietary but was not protected well >enough by its owner for too long so the courts wouldn't accept their lawsuit >claims.) > >One more reason is that Microsoft was rather late in adapting their products >to use it. I used to try using .png just because it was open source and had >problems with PowerPoint, Word, etc. I know that limitation is somewhat >history but it was an issue that stymied it. > >I wish people would start using it rather than .jpg! > >John > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Brett Barabash >Sent: Friday, April 16, 2004 1:34 PM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] jpg Screen shot > > >Most Windows programs support PNG (Adobe Photoshop, Microsoft Photo Editor, >Internet Explorer, Irfanview, etc). It just hasn't made it to the industry >standard realm the same way as other formats have. (Magazines asking for >JPG files instead of PNGs for screenshots, for example). > >I think you'd be hard pressed to find a current graphics file viewer that >doesn't support it. > > >-----Original Message----- >From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] >Sent: Friday, April 16, 2004 1:28 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] jpg Screen shot > >Brett: > >Would it be a problem if you wanted to send a file to someone? Is PNG >format supported by Windows or any of the popular viewers? > >Rocky > >----- Original Message ----- >From: "Brett Barabash" >To: "'Access Developers discussion and problem solving'" > >Sent: Friday, April 16, 2004 9:42 AM >Subject: RE: [AccessD] jpg Screen shot > > > > >>By far, the absolute best format for screenshots is PNG. Near-infinite >>color range (handles 32-bit palettes with ease), lossless compression, and >>tiny file size. >> >>Unfortunately, it is open-source based so it hasn't made it to the >>mainstream like other more popular formats (GIF, JPG). >> >>I wrote a global error handler that automatically grabs a full screen shot >>of the users' workstation upon app failure and stores it as a PNG on the >>network. Files range between 8KB and 25KB! >> >> >>-----Original Message----- >>From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] >>Sent: Friday, April 16, 2004 10:23 AM >>To: Access Developers discussion and problem solving >>Subject: Re: [AccessD] jpg Screen shot >> >>You should make this into an article. >> >>Thanks to everyone who helped. I eventually used Irfanview which looks >> >> >like > > >>a very complete program. Just got a note from the publisher - the jpg is >>fine. Of course, in the magazine it's going to be probably no bigger than >>2" x 2" >> >>Regards, >> >>Rocky Smolin >>Beach Access Software >>http://www.e-z-mrp.com >> >> >>----- Original Message ----- >>From: "William Hindman" >>To: "Access Developers discussion and problem solving" >> >>Sent: Thursday, April 15, 2004 4:18 PM >>Subject: Re: [AccessD] jpg Screen shot >> >> >> >> >>>...don't use any program that initially captures your screen as a jpeg >>> >>> >>...I >> >> >>>won't go into the details here but when you save an image as a jpeg you >>> >>> >>are >> >> >>>using a lossy algorithm that throws away portions of the graphic ...its >>> >>> >>the >> >> >>>nature of the beast ...in order to give them the high quality jpeg they >>>need, start with a decent graphics program that lets you capture the >>> >>> >image > > >>>in a high quality, uncompressed format to begin with ...Photoshop and >>>paintshoppro are the mainstream programs ...I personally use >>> >>> >paintshoppro > > >>>(www.jasc.com) ...set your screen resolution to the highest resolution >>> >>> >>your >> >> >>>graphics card can support and make sure your image capture area is clean >>> >>> >>and >> >> >>>clear at that resolution ...capture the image and save it into un >>>uncompressed format, preferably the native format of your graphics >>> >>> >program > > >>>...in paintshoppro that would give you an image with a .pspimage file >>> >>> >tag > > >>>...using that image you can do all sorts of image enhancements to make >>> >>> >>your >> >> >>>saved image look better ...then resize it to 300dpi ...if you started at >>> >>> >a > > >>>much lower screen resolution you might wind up with too small an image >>> >>> >at > > >>>this point ...once the image is sized/cropped/enhanced just as you'd >>> >>> >like > > >>to >> >> >>>see it, use your graphics program's feature that optimizes it and saves >>> >>> >it > > >>>as a jpeg ...use zero compression (even though the jpeg will still have >>> >>> >>some >> >> >>>inherent image quality loss) and make sure that you use the comparison >>>feature to ensure minimal visible loss of image quality in the resulting >>>file. >>> >>>...now you have a decent sized jpeg at the desired dpi that is the best >>> >>> >>that >> >> >>>you can present ...hth :) >>> >>>William Hindman >>>"Always code as if the person who is maintaining or testing your code is >>>a violent psychopath who knows where you live." William Silverstein >>> >>> >>>----- Original Message ----- >>>From: "Rocky Smolin - Beach Access Software" >>>To: >>>Sent: Thursday, April 15, 2004 4:30 PM >>>Subject: [AccessD] jpg Screen shot >>> >>> >>>Dear List: >>> >>>A magazine wants a screen shot from my software and they would like it >>> >>> >to > > >>be >> >> >>>300dpi. >>> >>>What's the best way to get that off the screen and into a jpg? >>> >>>MTIA, >>> >>>Rocky Smolin >>>Beach Access Software >>>http://www.e-z-mrp.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 >> >> >> > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.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 > > > > > -- Marty Connelly Victoria, B.C. Canada From wdhindman at bellsouth.net Fri Apr 16 18:44:14 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Fri, 16 Apr 2004 19:44:14 -0400 Subject: [AccessD] jpg Screen shot References: <40805B9D.5000203@shaw.ca> Message-ID: <003b01c4240c$b995db70$6101a8c0@dejpolsys> ...problem with TIFF is that it requires large files and remains a raster format ...both of which are potential problems on the net ...when the vector based SVG format gets fully implemented in more browsers we'll finally have something that produces both great graphics and small files ...I'm using some now for IE6 clients and the results are great. William Hindman "Always code as if the person who is maintaining or testing your code is a violent psychopath who knows where you live." William Silverstein ----- Original Message ----- From: "MartyConnelly" To: "Access Developers discussion and problem solving" Sent: Friday, April 16, 2004 6:18 PM Subject: Re: [AccessD] jpg Screen shot > Tiff is the standard for records management archivists. It has been > around 10 years longer than PNG which was a patentless replacement for > Gif (Unisys). It is also lossless. Adobe has copyright on specifications > for Tiff. Carries a bit more metadata than png. It is a lot clearer > displaying straight lines. > > > John Bartow wrote: > > >Probably the biggest drawback to .png is that there was already a widely > >established web of .gif and .jpg images. I believe that is the major cause > >of the non-acceptance of it. Plus file size still rules for WebPages and > >.png rarely (if ever) makes for a smaller file than jpg or gif. Adobe has > >great little utility for optimizes images for the web that lets you compare > >formats and parameters. I've never had .png come as best of the lot. > > > >And although it isn't the lossy compression algorithm that jpg is it also > >has to compete with other more established "large file" formats such as tif, > >bmp, etc. The GIS industry has gone through mage formats by the dozens > >because of their heavy reliance on aerial photography. My first exposure and > >unhappiness with jpg - every time a .jpg file is edited and saved its "lossy > >algorithm" loses more. > > > >Also .png doesn't do everything it was set out to accomplish in the > >beginning - which was basically to replace the .gif with an open source > >public domain format. (IIRC .gif is proprietary but was not protected well > >enough by its owner for too long so the courts wouldn't accept their lawsuit > >claims.) > > > >One more reason is that Microsoft was rather late in adapting their products > >to use it. I used to try using .png just because it was open source and had > >problems with PowerPoint, Word, etc. I know that limitation is somewhat > >history but it was an issue that stymied it. > > > >I wish people would start using it rather than .jpg! > > > >John > > > >-----Original Message----- > >From: accessd-bounces at databaseadvisors.com > >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Brett Barabash > >Sent: Friday, April 16, 2004 1:34 PM > >To: 'Access Developers discussion and problem solving' > >Subject: RE: [AccessD] jpg Screen shot > > > > > >Most Windows programs support PNG (Adobe Photoshop, Microsoft Photo Editor, > >Internet Explorer, Irfanview, etc). It just hasn't made it to the industry > >standard realm the same way as other formats have. (Magazines asking for > >JPG files instead of PNGs for screenshots, for example). > > > >I think you'd be hard pressed to find a current graphics file viewer that > >doesn't support it. > > > > > >-----Original Message----- > >From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] > >Sent: Friday, April 16, 2004 1:28 PM > >To: Access Developers discussion and problem solving > >Subject: Re: [AccessD] jpg Screen shot > > > >Brett: > > > >Would it be a problem if you wanted to send a file to someone? Is PNG > >format supported by Windows or any of the popular viewers? > > > >Rocky > > > >----- Original Message ----- > >From: "Brett Barabash" > >To: "'Access Developers discussion and problem solving'" > > > >Sent: Friday, April 16, 2004 9:42 AM > >Subject: RE: [AccessD] jpg Screen shot > > > > > > > > > >>By far, the absolute best format for screenshots is PNG. Near-infinite > >>color range (handles 32-bit palettes with ease), lossless compression, and > >>tiny file size. > >> > >>Unfortunately, it is open-source based so it hasn't made it to the > >>mainstream like other more popular formats (GIF, JPG). > >> > >>I wrote a global error handler that automatically grabs a full screen shot > >>of the users' workstation upon app failure and stores it as a PNG on the > >>network. Files range between 8KB and 25KB! > >> > >> > >>-----Original Message----- > >>From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] > >>Sent: Friday, April 16, 2004 10:23 AM > >>To: Access Developers discussion and problem solving > >>Subject: Re: [AccessD] jpg Screen shot > >> > >>You should make this into an article. > >> > >>Thanks to everyone who helped. I eventually used Irfanview which looks > >> > >> > >like > > > > > >>a very complete program. Just got a note from the publisher - the jpg is > >>fine. Of course, in the magazine it's going to be probably no bigger than > >>2" x 2" > >> > >>Regards, > >> > >>Rocky Smolin > >>Beach Access Software > >>http://www.e-z-mrp.com > >> > >> > >>----- Original Message ----- > >>From: "William Hindman" > >>To: "Access Developers discussion and problem solving" > >> > >>Sent: Thursday, April 15, 2004 4:18 PM > >>Subject: Re: [AccessD] jpg Screen shot > >> > >> > >> > >> > >>>...don't use any program that initially captures your screen as a jpeg > >>> > >>> > >>...I > >> > >> > >>>won't go into the details here but when you save an image as a jpeg you > >>> > >>> > >>are > >> > >> > >>>using a lossy algorithm that throws away portions of the graphic ...its > >>> > >>> > >>the > >> > >> > >>>nature of the beast ...in order to give them the high quality jpeg they > >>>need, start with a decent graphics program that lets you capture the > >>> > >>> > >image > > > > > >>>in a high quality, uncompressed format to begin with ...Photoshop and > >>>paintshoppro are the mainstream programs ...I personally use > >>> > >>> > >paintshoppro > > > > > >>>(www.jasc.com) ...set your screen resolution to the highest resolution > >>> > >>> > >>your > >> > >> > >>>graphics card can support and make sure your image capture area is clean > >>> > >>> > >>and > >> > >> > >>>clear at that resolution ...capture the image and save it into un > >>>uncompressed format, preferably the native format of your graphics > >>> > >>> > >program > > > > > >>>...in paintshoppro that would give you an image with a .pspimage file > >>> > >>> > >tag > > > > > >>>...using that image you can do all sorts of image enhancements to make > >>> > >>> > >>your > >> > >> > >>>saved image look better ...then resize it to 300dpi ...if you started at > >>> > >>> > >a > > > > > >>>much lower screen resolution you might wind up with too small an image > >>> > >>> > >at > > > > > >>>this point ...once the image is sized/cropped/enhanced just as you'd > >>> > >>> > >like > > > > > >>to > >> > >> > >>>see it, use your graphics program's feature that optimizes it and saves > >>> > >>> > >it > > > > > >>>as a jpeg ...use zero compression (even though the jpeg will still have > >>> > >>> > >>some > >> > >> > >>>inherent image quality loss) and make sure that you use the comparison > >>>feature to ensure minimal visible loss of image quality in the resulting > >>>file. > >>> > >>>...now you have a decent sized jpeg at the desired dpi that is the best > >>> > >>> > >>that > >> > >> > >>>you can present ...hth :) > >>> > >>>William Hindman > >>>"Always code as if the person who is maintaining or testing your code is > >>>a violent psychopath who knows where you live." William Silverstein > >>> > >>> > >>>----- Original Message ----- > >>>From: "Rocky Smolin - Beach Access Software" > >>>To: > >>>Sent: Thursday, April 15, 2004 4:30 PM > >>>Subject: [AccessD] jpg Screen shot > >>> > >>> > >>>Dear List: > >>> > >>>A magazine wants a screen shot from my software and they would like it > >>> > >>> > >to > > > > > >>be > >> > >> > >>>300dpi. > >>> > >>>What's the best way to get that off the screen and into a jpg? > >>> > >>>MTIA, > >>> > >>>Rocky Smolin > >>>Beach Access Software > >>>http://www.e-z-mrp.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 > >> > >> > >> > > > >-- > >_______________________________________________ > >AccessD mailing list > >AccessD at databaseadvisors.com > >http://databaseadvisors.com/mailman/listinfo/accessd > >Website: http://www.databaseadvisors.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 > > > > > > > > > > > > -- > 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 Fri Apr 16 20:25:12 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Fri, 16 Apr 2004 18:25:12 -0700 Subject: [AccessD] Help with sysvar demo Message-ID: <001201c4241a$d8232cb0$6501a8c0@delllaptop> I opened a copy of the sysvar 2k mdb and built the additional tables. When I try to open frmSysVar I get the error " Compile Error: User defined type: Not defined. Dim mdb as DAO.Database I checked and I do have the dao reference marked. It is XP in 2000 format Any thoughts apreciated JOE HECHT LOS ANGELES CA From jwcolby at colbyconsulting.com Fri Apr 16 21:44:53 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Fri, 16 Apr 2004 22:44:53 -0400 Subject: [AccessD] Help with sysvar demo In-Reply-To: <001201c4241a$d8232cb0$6501a8c0@delllaptop> Message-ID: Is that from my site or DatabaseAdvisors? Or somewhere else? John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Joe Hecht Sent: Friday, April 16, 2004 9:25 PM To: AccessD Subject: [AccessD] Help with sysvar demo I opened a copy of the sysvar 2k mdb and built the additional tables. When I try to open frmSysVar I get the error " Compile Error: User defined type: Not defined. Dim mdb as DAO.Database I checked and I do have the dao reference marked. It is XP in 2000 format Any thoughts apreciated JOE HECHT LOS ANGELES CA -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmhla at earthlink.net Fri Apr 16 22:24:16 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Fri, 16 Apr 2004 20:24:16 -0700 Subject: [AccessD] Help with sysvar demo In-Reply-To: Message-ID: <002801c4242b$79892040$6501a8c0@delllaptop> John, It is your sysvar demo. Did you get the e mail I sent you privately? JOE HECHT LOS ANGELES CA -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Friday, April 16, 2004 7:45 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Help with sysvar demo Is that from my site or DatabaseAdvisors? Or somewhere else? John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Joe Hecht Sent: Friday, April 16, 2004 9:25 PM To: AccessD Subject: [AccessD] Help with sysvar demo I opened a copy of the sysvar 2k mdb and built the additional tables. When I try to open frmSysVar I get the error " Compile Error: User defined type: Not defined. Dim mdb as DAO.Database I checked and I do have the dao reference marked. It is XP in 2000 format Any thoughts apreciated JOE HECHT LOS ANGELES CA -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at bellsouth.net Fri Apr 16 23:13:17 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Sat, 17 Apr 2004 00:13:17 -0400 Subject: [AccessD] Help with sysvar demo References: <001201c4241a$d8232cb0$6501a8c0@delllaptop> Message-ID: <00d101c42432$50002cd0$6101a8c0@dejpolsys> ...is the DAO reference listed before the ADO reference as it should be? William Hindman "Always code as if the person who is maintaining or testing your code is a violent psychopath who knows where you live." William Silverstein ----- Original Message ----- From: "Joe Hecht" To: "AccessD" Sent: Friday, April 16, 2004 9:25 PM Subject: [AccessD] Help with sysvar demo > I opened a copy of the sysvar 2k mdb and built the additional tables. > When I try to open frmSysVar I get the error " Compile Error: User > defined type: Not defined. > > Dim mdb as DAO.Database > > I checked and I do have the dao reference marked. > > It is XP in 2000 format > > Any thoughts apreciated > > > > JOE HECHT > LOS ANGELES CA > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From martyconnelly at shaw.ca Sat Apr 17 03:08:08 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sat, 17 Apr 2004 01:08:08 -0700 Subject: [AccessD] Automatic Upgrade to Jet SP-8 via Microsoft Windows Update facilty References: <001201c4241a$d8232cb0$6501a8c0@delllaptop> <00d101c42432$50002cd0$6101a8c0@dejpolsys> Message-ID: <4080E5E8.3080500@shaw.ca> I am not sure but after checking the version numbers of MSJet40.dll, DAO360.dll and several others. It appears that Microsoft has upgraded everyone to an advanced security fix version of JET SP-8 after receiving this months Windows Update automatic security upgrades. It would have been nice to have received a notification .;) Not sure what this will do to Jet Sandbox mode. You can check quickly for the install through the control panel add/remove programs and look at bottom for MS HotFix 837001. This doesn't apply to the OS's Windows Me and below. Here are the relevant Url's. Microsoft Security Bulletin MS04-014 Vulnerability in the Microsoft Jet Database Engine Could Allow Code Execution (837001) http://www.microsoft.com/technet/security/bulletin/ms04-014.mspx http://support.microsoft.com/?kbid=837001 Old Jet Service Pack 8 File Manifest http://support.microsoft.com/?kbid=829558 The only reason I noticed was I was looking at an article on BBC Scotland news site describing a 19 year old from Aberdeen, Matt Thompson who brought the security fault to Microsoft's attention. They happened to mention the fault was in JET, which piqued my interest to look further. http://news.bbc.co.uk/1/hi/scotland/3630649.stm -- Marty Connelly Victoria, B.C. Canada From gustav at cactus.dk Sat Apr 17 03:43:02 2004 From: gustav at cactus.dk (Gustav Brock) Date: Sat, 17 Apr 2004 10:43:02 +0200 Subject: [AccessD] Automatic Upgrade to Jet SP-8 via Microsoft Windows Update facilty In-Reply-To: <4080E5E8.3080500@shaw.ca> References: <001201c4241a$d8232cb0$6501a8c0@delllaptop> <00d101c42432$50002cd0$6101a8c0@dejpolsys> <4080E5E8.3080500@shaw.ca> Message-ID: <213977429.20040417104302@cactus.dk> Hi Marty That's why I always download the patches, then install them one by one - it allows you to read the notice from MS on the patch. However, this 837001 patch seems to uninstallable if it causes you trouble. /gustav > I am not sure but after checking the version numbers of MSJet40.dll, > DAO360.dll and several others. It appears that Microsoft has upgraded > everyone to an advanced security fix version of JET SP-8 after > receiving this months Windows Update automatic security upgrades. > It would have been nice to have received a notification .;) Not sure > what this will do to Jet Sandbox mode. > You can check quickly for the install through the control panel > add/remove programs and look at bottom for MS HotFix 837001. > This doesn't apply to the OS's Windows Me and below. > Here are the relevant Url's. > Microsoft Security Bulletin MS04-014 > Vulnerability in the Microsoft Jet Database Engine Could Allow Code > Execution (837001) > http://www.microsoft.com/technet/security/bulletin/ms04-014.mspx > http://support.microsoft.com/?kbid=837001 > Old Jet Service Pack 8 File Manifest > http://support.microsoft.com/?kbid=829558 > The only reason I noticed was I was looking at an article on BBC > Scotland news site describing a 19 year old from Aberdeen, Matt Thompson > who brought the security fault to Microsoft's attention. They happened > to mention the fault was in JET, which piqued my interest to look further. > http://news.bbc.co.uk/1/hi/scotland/3630649.stm > -- > Marty Connelly > Victoria, B.C. > Canada From serbach at new.rr.com Sat Apr 17 09:01:45 2004 From: serbach at new.rr.com (Steven W. Erbach) Date: Sat, 17 Apr 2004 09:01:45 -0500 Subject: [AccessD] jpg Screen shot Message-ID: <20040417090145.183052912.serbach@new.rr.com> William, >> ...when the vector based SVG format gets fully implemented in more browsers we'll finally have something that produces both great graphics and small files ...I'm using some now for IE6 clients and the results are great. << This is the first I've heard of SVG. What does the acronym stand for and where can I find some on-line examples? Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "Let every nation know, whether it wishes us well or ill, that we shall pay any price, bear any burden, meet any hardship, support any friend, oppose any foe, in order to assure the survival and the success of liberty." - John F. Kennedy, 1961 From DaveSharpe2 at cox.net Sat Apr 17 10:01:28 2004 From: DaveSharpe2 at cox.net (Dave Sharpe) Date: Sat, 17 Apr 2004 11:01:28 -0400 Subject: [AccessD] jpg Screen shot References: <20040417090145.183052912.serbach@new.rr.com> Message-ID: <005801c4248c$dcb24af0$dd2f0a44@bcsrkeext6137> Steve You can look here for some info http://www.w3.org/Graphics/SVG/ Dave ----- Original Message ----- From: "Steven W. Erbach" To: "Access Developers discussion and problem solving" Sent: Saturday, April 17, 2004 10:01 AM Subject: Re: [AccessD] jpg Screen shot William, >> ...when the vector based SVG format gets fully implemented in more browsers we'll finally have something that produces both great graphics and small files ...I'm using some now for IE6 clients and the results are great. << This is the first I've heard of SVG. What does the acronym stand for and where can I find some on-line examples? Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "Let every nation know, whether it wishes us well or ill, that we shall pay any price, bear any burden, meet any hardship, support any friend, oppose any foe, in order to assure the survival and the success of liberty." - John F. Kennedy, 1961 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Sat Apr 17 11:07:57 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sat, 17 Apr 2004 09:07:57 -0700 Subject: [AccessD] jpg Screen shot References: <20040417090145.183052912.serbach@new.rr.com> <005801c4248c$dcb24af0$dd2f0a44@bcsrkeext6137> Message-ID: <4081565D.7060103@shaw.ca> Here is a spot with a few links to SVG (Scalable Vector Graphics) articles http://searchwebservices.techtarget.com/tip/0,289483,sid26_gci918717,00.html Grab an SVG viewer from Adobe. There are others. http://www.adobe.com/support/downloads/main.html Then save the xml file below as test.svg Right click on filename and open with IE. It is a graphical display of relative size of tablespaces in an Oracle DB. You maybe able to find way more advanced displays ( Map of the Internet) at Tim Bray's company in Vancouver. It may have moved elsewhere. http://www.antarti.ca CWMLITE DRSYS EJALA EXAMPLE INDX ODM SYSTEM TOOLS UNDOTBS1 USERS XDB Dave Sharpe wrote: >Steve > >You can look here for some info > >http://www.w3.org/Graphics/SVG/ > >Dave > >----- Original Message ----- >From: "Steven W. Erbach" >To: "Access Developers discussion and problem solving" > >Sent: Saturday, April 17, 2004 10:01 AM >Subject: Re: [AccessD] jpg Screen shot > > >William, > > > >>>...when the vector based SVG format gets fully implemented in more >>> >>> >browsers we'll finally have something that produces both great graphics and >small files ...I'm using some now for IE6 clients and the results are great. ><< > >This is the first I've heard of SVG. What does the acronym stand for and >where can I find some on-line examples? > >Regards, > >Steve Erbach >Scientific Marketing >Neenah, WI >920-969-0504 > >"Let every nation know, whether it wishes us well or ill, that we shall pay >any price, bear any burden, meet any hardship, support any friend, oppose >any foe, in order to assure the survival and the success of liberty." - John >F. Kennedy, 1961 > > > -- Marty Connelly Victoria, B.C. Canada From jwcolby at colbyconsulting.com Sat Apr 17 11:36:12 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sat, 17 Apr 2004 12:36:12 -0400 Subject: [AccessD] Help with sysvar demo In-Reply-To: <002801c4242b$79892040$6501a8c0@delllaptop> Message-ID: No. Did you send it to jWcolby at colbyconsulting.com. Notice the W in there. the jcolby@ address has been turned off. I looked at the demo on my site, and tried to find the dim statement and couldn't. I do dimension databases, but I always use db, not Mdb. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Joe Hecht Sent: Friday, April 16, 2004 11:24 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Help with sysvar demo John, It is your sysvar demo. Did you get the e mail I sent you privately? JOE HECHT LOS ANGELES CA -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Friday, April 16, 2004 7:45 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Help with sysvar demo Is that from my site or DatabaseAdvisors? Or somewhere else? John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Joe Hecht Sent: Friday, April 16, 2004 9:25 PM To: AccessD Subject: [AccessD] Help with sysvar demo I opened a copy of the sysvar 2k mdb and built the additional tables. When I try to open frmSysVar I get the error " Compile Error: User defined type: Not defined. Dim mdb as DAO.Database I checked and I do have the dao reference marked. It is XP in 2000 format Any thoughts apreciated JOE HECHT LOS ANGELES CA -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sat Apr 17 11:32:13 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sat, 17 Apr 2004 09:32:13 -0700 Subject: [AccessD] Automatic Upgrade to Jet SP-8 via Microsoft Windows Update facilty References: <001201c4241a$d8232cb0$6501a8c0@delllaptop> <00d101c42432$50002cd0$6101a8c0@dejpolsys> <4080E5E8.3080500@shaw.ca> <213977429.20040417104302@cactus.dk> Message-ID: <40815C0D.8030203@shaw.ca> I had Jet SP-7 installed and was planning to upgrade to SP-8 sometime soon. It made the decision for me. I was wondering if people were also upgraded from Jet SP-4 or 5 etc. It could be they did this to stop people from running things like following that makes all files in the current folder read only. SELECT Shell("Cmd /c attrib +R *.*") As c1 From Customers With a little bit of fiddling with SQL Injection methods you could stuff this into a field in a web asp page and have it run on a website using Access. But I don't think this patch was the only problem it was fixing. How to configure Jet 4.0 to prevent unsafe functions from running in Access 2003 http://support.microsoft.com/default.aspx?scid=kb;en-us;294698&Product=acc Gustav Brock wrote: >Hi Marty > >That's why I always download the patches, then install them one by one >- it allows you to read the notice from MS on the patch. > >However, this 837001 patch seems to uninstallable if it causes you >trouble. > >/gustav > > > > >> I am not sure but after checking the version numbers of MSJet40.dll, >>DAO360.dll and several others. It appears that Microsoft has upgraded >>everyone to an advanced security fix version of JET SP-8 after >>receiving this months Windows Update automatic security upgrades. >> It would have been nice to have received a notification .;) Not sure >>what this will do to Jet Sandbox mode. >>You can check quickly for the install through the control panel >>add/remove programs and look at bottom for MS HotFix 837001. >>This doesn't apply to the OS's Windows Me and below. >>Here are the relevant Url's. >>Microsoft Security Bulletin MS04-014 >>Vulnerability in the Microsoft Jet Database Engine Could Allow Code >>Execution (837001) >>http://www.microsoft.com/technet/security/bulletin/ms04-014.mspx >>http://support.microsoft.com/?kbid=837001 >> >> > > > >>Old Jet Service Pack 8 File Manifest >>http://support.microsoft.com/?kbid=829558 >> >> > > > >> The only reason I noticed was I was looking at an article on BBC >>Scotland news site describing a 19 year old from Aberdeen, Matt Thompson >>who brought the security fault to Microsoft's attention. They happened >>to mention the fault was in JET, which piqued my interest to look further. >>http://news.bbc.co.uk/1/hi/scotland/3630649.stm >> >> > > > > >>-- >>Marty Connelly >>Victoria, B.C. >>Canada >> >> > > > -- Marty Connelly Victoria, B.C. Canada From Subscriptions at servicexp.com Sat Apr 17 12:03:54 2004 From: Subscriptions at servicexp.com (Robert Gracie) Date: Sat, 17 Apr 2004 13:03:54 -0400 Subject: [AccessD] Help with sysvar demo In-Reply-To: <002801c4242b$79892040$6501a8c0@delllaptop> Message-ID: I think the problem is in the line below (Corrected) in the MergeSysVars method. The .Value must be added. mcolSysVars.Add Item:=!SV_VarValue.Value, Key:=!SV_VarName.Value Robert Gracie www.servicexp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Joe Hecht Sent: Friday, April 16, 2004 11:24 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Help with sysvar demo John, It is your sysvar demo. Did you get the e mail I sent you privately? JOE HECHT LOS ANGELES CA -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Friday, April 16, 2004 7:45 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Help with sysvar demo Is that from my site or DatabaseAdvisors? Or somewhere else? John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Joe Hecht Sent: Friday, April 16, 2004 9:25 PM To: AccessD Subject: [AccessD] Help with sysvar demo I opened a copy of the sysvar 2k mdb and built the additional tables. When I try to open frmSysVar I get the error " Compile Error: User defined type: Not defined. Dim mdb as DAO.Database I checked and I do have the dao reference marked. It is XP in 2000 format Any thoughts apreciated JOE HECHT LOS ANGELES CA -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sat Apr 17 12:21:46 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sat, 17 Apr 2004 13:21:46 -0400 Subject: [AccessD] Help with sysvar demo In-Reply-To: Message-ID: I downloaded the 2k version from my site last night and just ran it. No errors. Methinks something else is happening. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Robert Gracie Sent: Saturday, April 17, 2004 1:04 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Help with sysvar demo I think the problem is in the line below (Corrected) in the MergeSysVars method. The .Value must be added. mcolSysVars.Add Item:=!SV_VarValue.Value, Key:=!SV_VarName.Value Robert Gracie www.servicexp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Joe Hecht Sent: Friday, April 16, 2004 11:24 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Help with sysvar demo John, It is your sysvar demo. Did you get the e mail I sent you privately? JOE HECHT LOS ANGELES CA From gustav at cactus.dk Sat Apr 17 12:37:39 2004 From: gustav at cactus.dk (Gustav Brock) Date: Sat, 17 Apr 2004 19:37:39 +0200 Subject: [AccessD] Automatic Upgrade to Jet SP-8 via Microsoft Windows Update facilty In-Reply-To: <40815C0D.8030203@shaw.ca> References: <001201c4241a$d8232cb0$6501a8c0@delllaptop> <00d101c42432$50002cd0$6101a8c0@dejpolsys> <4080E5E8.3080500@shaw.ca> <213977429.20040417104302@cactus.dk> <40815C0D.8030203@shaw.ca> Message-ID: <13236054113.20040417193739@cactus.dk> Hi Marty > I had Jet SP-7 installed and was planning to upgrade to SP-8 sometime > soon. It made the decision for me. > I was wondering if people were also upgraded from Jet SP-4 or 5 etc. Ahh, I see. I don't know - I already had SP-8 installed. /gustav From jmhla at earthlink.net Sat Apr 17 12:50:09 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Sat, 17 Apr 2004 10:50:09 -0700 Subject: [AccessD] Help with sysvar demo In-Reply-To: Message-ID: <000001c424a4$7046c860$6501a8c0@delllaptop> John, I am running in 2000 mode in XP. Does it need some tlc because of xp JOE HECHT LOS ANGELES CA -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John W. Colby Sent: Saturday, April 17, 2004 10:22 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Help with sysvar demo I downloaded the 2k version from my site last night and just ran it. No errors. Methinks something else is happening. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Robert Gracie Sent: Saturday, April 17, 2004 1:04 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Help with sysvar demo I think the problem is in the line below (Corrected) in the MergeSysVars method. The .Value must be added. mcolSysVars.Add Item:=!SV_VarValue.Value, Key:=!SV_VarName.Value Robert Gracie www.servicexp.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Joe Hecht Sent: Friday, April 16, 2004 11:24 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Help with sysvar demo John, It is your sysvar demo. Did you get the e mail I sent you privately? JOE HECHT LOS ANGELES CA -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Susan.Klos at fldoe.org Sat Apr 17 14:15:35 2004 From: Susan.Klos at fldoe.org (Klos, Susan) Date: Sat, 17 Apr 2004 15:15:35 -0400 Subject: [AccessD] Changing the table in a query so I can loop through the query Message-ID: <01B619CB8F6C8C478EDAC39191AEC51E0410BE@DOESEFPEML02.EUS.FLDOE.INT> I have an append query that can work for 71 tables. I want to create a for next loop function that will substitute the table names (they are numbers) each time it loops. Can someone help me? I do not quite have the query def thing down and I think I need to use it here. Each table has the same fields. Susan Klos Senior Database Analyst Evaluation and Reporting Florida Department of Education From ssharkins at bellsouth.net Sat Apr 17 15:57:21 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Sat, 17 Apr 2004 16:57:21 -0400 Subject: [AccessD] Changing the table in a query so I can loop through thequery In-Reply-To: <01B619CB8F6C8C478EDAC39191AEC51E0410BE@DOESEFPEML02.EUS.FLDOE.INT> Message-ID: <20040417205721.PKCA1773.imf19aec.mail.bellsouth.net@SUSANONE> You don't need a querydef, you can stick a SQL UPDATE in a For Mext loop. Susan H. I have an append query that can work for 71 tables. I want to create a for next loop function that will substitute the table names (they are numbers) each time it loops. Can someone help me? I do not quite have the query def thing down and I think I need to use it here. Each table has the same fields. Susan Klos Senior Database Analyst Evaluation and Reporting Florida Department of Education -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Sat Apr 17 15:59:29 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Sat, 17 Apr 2004 16:59:29 -0400 Subject: [AccessD] Changing the table in a query so I can loop through thequery In-Reply-To: <01B619CB8F6C8C478EDAC39191AEC51E0410BE@DOESEFPEML02.EUS.FLDOE.INT> Message-ID: <20040417205929.PLEB1773.imf19aec.mail.bellsouth.net@SUSANONE> I'm sorry, not an UPDATE, but a SQL INSERT INTO Susan H. I have an append query that can work for 71 tables. I want to create a for next loop function that will substitute the table names (they are numbers) each time it loops. Can someone help me? I do not quite have the query def thing down and I think I need to use it here. Each table has the same fields. From Developer at UltraDNT.com Sat Apr 17 16:02:18 2004 From: Developer at UltraDNT.com (Developer) Date: Sat, 17 Apr 2004 17:02:18 -0400 Subject: [AccessD] Changing the table in a query so I can loop through thequery In-Reply-To: <01B619CB8F6C8C478EDAC39191AEC51E0410BE@DOESEFPEML02.EUS.FLDOE.INT> Message-ID: <000001c424bf$47eb6860$6401a8c0@COA3> Susan: Rather than use the query def, paste the sql in the query into your code, and then do something like: For i = 1 to 71 currentdb.execute "insert into " & i & " whatever the rest of the sql is ... Next i Hth Steve -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Klos, Susan Sent: Saturday, April 17, 2004 3:16 PM To: 'AccessD at databaseadvisors.com' Subject: [AccessD] Changing the table in a query so I can loop through thequery I have an append query that can work for 71 tables. I want to create a for next loop function that will substitute the table names (they are numbers) each time it loops. Can someone help me? I do not quite have the query def thing down and I think I need to use it here. Each table has the same fields. Susan Klos Senior Database Analyst Evaluation and Reporting Florida Department of Education -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From sgoodhall at comcast.net Sat Apr 17 16:48:39 2004 From: sgoodhall at comcast.net (Steve Goodhall) Date: Sat, 17 Apr 2004 17:48:39 -0400 Subject: [AccessD] jpg Screen shot In-Reply-To: <4081565D.7060103@shaw.ca> Message-ID: Sorry I haven't been on the list much lately and did not see this when it came up. The Microsoft HTML Help Workshop (http://www.microsoft.com/downloads/details.aspx?FamilyID=00535334-c8a6-452f -9aa0-d597d16580cc&DisplayLang=en) has a screen and window capture utility, image editor, etc. It works quite well, and it's free. Regards, Steve Goodhall -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MartyConnelly Sent: Saturday, April 17, 2004 12:08 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] jpg Screen shot Here is a spot with a few links to SVG (Scalable Vector Graphics) articles http://searchwebservices.techtarget.com/tip/0,289483,sid26_gci918717,00.html Grab an SVG viewer from Adobe. There are others. http://www.adobe.com/support/downloads/main.html Then save the xml file below as test.svg Right click on filename and open with IE. It is a graphical display of relative size of tablespaces in an Oracle DB. You maybe able to find way more advanced displays ( Map of the Internet) at Tim Bray's company in Vancouver. It may have moved elsewhere. http://www.antarti.ca CWMLITE DRSYS EJALA EXAMPLE INDX ODM SYSTEM TOOLS UNDOTBS1 USERS XDB Dave Sharpe wrote: >Steve > >You can look here for some info > >http://www.w3.org/Graphics/SVG/ > >Dave > >----- Original Message ----- >From: "Steven W. Erbach" >To: "Access Developers discussion and problem solving" > >Sent: Saturday, April 17, 2004 10:01 AM >Subject: Re: [AccessD] jpg Screen shot > > >William, > > > >>>...when the vector based SVG format gets fully implemented in more >>> >>> >browsers we'll finally have something that produces both great graphics and >small files ...I'm using some now for IE6 clients and the results are great. ><< > >This is the first I've heard of SVG. What does the acronym stand for and >where can I find some on-line examples? > >Regards, > >Steve Erbach >Scientific Marketing >Neenah, WI >920-969-0504 > >"Let every nation know, whether it wishes us well or ill, that we shall pay >any price, bear any burden, meet any hardship, support any friend, oppose >any foe, in order to assure the survival and the success of liberty." - John >F. Kennedy, 1961 > > > -- 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 Sat Apr 17 17:20:21 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sat, 17 Apr 2004 15:20:21 -0700 Subject: [AccessD] Changing the table in a query so I can loop through the query References: <01B619CB8F6C8C478EDAC39191AEC51E0410BE@DOESEFPEML02.EUS.FLDOE.INT> Message-ID: <4081ADA5.1000205@shaw.ca> If you are just appending fields modified slightly from Access97 help 'Append and Delete Methods Example 'This example uses either the Append method or the Delete method to modify the Fields collection of a TableDef. The AppendDeleteField procedure is required for this procedure to run. Sub AppendX() Dim dbs As Database Dim tdf As TableDef Dim fldLoop As Field Dim strTdef As String Set dbs = CurrentDb 'Import tables from specified Access database or currentDB For Each tdf In dbs.TableDefs 'loop through tables for names strTdef = tdf.Name Debug.Print strTdef If Left(strTdef, 4) <> "MSys" Then ' skip system tables ' Add three new fields. 'you may want to add other options like no zero length etc AppendDeleteField tdf, "APPEND", "E-mail", dbText, 50 AppendDeleteField tdf, "APPEND", "Http", dbText, 80 AppendDeleteField tdf, "APPEND", "Quota", dbInteger, 5 Debug.Print "Fields after Append to Table " & tdf.Name Debug.Print , "Type", "Size", "Name" ' Enumerate the Fields collection to show the new fields. For Each fldLoop In tdf.Fields Debug.Print , fldLoop.Type, fldLoop.Size, fldLoop.Name Next fldLoop ' Delete the newly added fields. ' AppendDeleteField tdf, "DELETE", "E-mail" ' AppendDeleteField tdf, "DELETE", "Http" ' AppendDeleteField tdf, "DELETE", "Quota" ' Debug.Print "Fields after Delete" ' Debug.Print , "Type", "Size", "Name" ' Enumerate the Fields collection to show that the new ' fields have been deleted. For Each fldLoop In tdf.Fields Debug.Print , fldLoop.Type, fldLoop.Size, fldLoop.Name Next fldLoop End If Next tdf dbs.Close End Sub Sub AppendDeleteField(tdfTemp As TableDef, _ strCommand As String, strName As String, _ Optional varType, Optional varSize) With tdfTemp ' Check first to see if the TableDef object is ' updatable. If it isn't, control is passed back to ' the calling procedure. If .Updatable = False Then MsgBox "TableDef not Updatable! " & _ "Unable to complete task." Exit Sub End If ' Depending on the passed data, append or delete a ' field to the Fields collection of the specified ' TableDef object. If strCommand = "APPEND" Then .Fields.Append .CreateField(strName, _ varType, varSize) Else If strCommand = "DELETE" Then .Fields.Delete _ strName End If End With End Sub Klos, Susan wrote: >I have an append query that can work for 71 tables. I want to create a for >next loop function that will substitute the table names (they are numbers) >each time it loops. Can someone help me? I do not quite have the query def >thing down and I think I need to use it here. Each table has the same >fields. > > > >Susan Klos > >Senior Database Analyst > >Evaluation and Reporting > >Florida Department of Education > > > > > -- Marty Connelly Victoria, B.C. Canada From ssharkins at bellsouth.net Sat Apr 17 17:46:53 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Sat, 17 Apr 2004 18:46:53 -0400 Subject: [AccessD] custom sorts/groups in a report Message-ID: <20040417224653.KZKB1818.imf25aec.mail.bellsouth.net@SUSANONE> I'm grouping and sorting a report on a date field. The grouping is by the week -- but I want it to handle a changing first day of the week variable. I can't get my head around it at all. Passing the first day of the week around is no problem -- I just can't seem to get Access to group by it. I've looked at CreateGroupLevel, but I don't see how that can help. I tried adding a DatePart expression to the Detail section and using the OpenArgs property to pass the first day of the week, and while the expression works, I can't group by it -- it's a calculated control. I don't want the users manipulating the underlying query either. They choose the first day of the week from a simple form and the rest needs to happen behind the scenes. Any suggestions? Susan H. From ssharkins at bellsouth.net Sat Apr 17 18:21:04 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Sat, 17 Apr 2004 19:21:04 -0400 Subject: FW: [AccessD] custom sorts/groups in a report Message-ID: <20040417232105.BHUI1832.imf22aec.mail.bellsouth.net@SUSANONE> Nevermind. :( Susan H. I'm grouping and sorting a report on a date field. The grouping is by the week -- but I want it to handle a changing first day of the week variable. I can't get my head around it at all. Passing the first day of the week around is no problem -- I just can't seem to get Access to group by it. I've looked at CreateGroupLevel, but I don't see how that can help. I tried adding a DatePart expression to the Detail section and using the OpenArgs property to pass the first day of the week, and while the expression works, I can't group by it -- it's a calculated control. I don't want the users manipulating the underlying query either. They choose the first day of the week from a simple form and the rest needs to happen behind the scenes. Any suggestions? From stuart at lexacorp.com.pg Sat Apr 17 18:22:33 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 18 Apr 2004 09:22:33 +1000 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <20040417224653.KZKB1818.imf25aec.mail.bellsouth.net@SUSANONE> Message-ID: <408248D9.22694.F740E@localhost> On 17 Apr 2004 at 18:46, Susan Harkins wrote: > I'm grouping and sorting a report on a date field. The grouping is by the > week -- but I want it to handle a changing first day of the week variable. I > can't get my head around it at all. > > Passing the first day of the week around is no problem -- I just can't seem > to get Access to group by it. I've looked at CreateGroupLevel, but I don't > see how that can help. > > I tried adding a DatePart expression to the Detail section and using the > OpenArgs property to pass the first day of the week, and while the > expression works, I can't group by it -- it's a calculated control. I don't > want the users manipulating the underlying query either. They choose the > first day of the week from a simple form and the rest needs to happen behind > the scenes. > You can group by a calculation. Just put =Datepart("ww",mydate,myfirstday) in a grouping level. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From ssharkins at bellsouth.net Sat Apr 17 19:15:58 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Sat, 17 Apr 2004 20:15:58 -0400 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <408248D9.22694.F740E@localhost> Message-ID: <20040418001559.IUSX1714.imf16aec.mail.bellsouth.net@SUSANONE> I've got it grouping correctly now -- the problem was passing the first day of the week variable to the report. I decided to use a function to pass it to the query instead of the report. When you say "grouping level" what do you mean? I tried a calculation with GroupLevel and couldn't get it to work, but just might not have had the syntax right in the statement. I need something flexible enough to allow me to pass a new firstdayoftheweek value. Come to think of it, I didn't try GroupOn -- and maybe that was what I needed. I will have to go back and try that one again. Now, I just need to figure out how to get the first day of that week to print in the group's header -- and it needs to be dynamic enough to handle any day of the week as the first day of the week. If the date's Thursday, July 25, 1996 which falls in the 31st week of the year where Wed is the first day of the week... how do I return Wednesday, July 25, 1996? That's my problem. :) the expression has to adapt to any firstdayoftheweek value, not just Wed. Susan H. On 17 Apr 2004 at 18:46, Susan Harkins wrote: > I'm grouping and sorting a report on a date field. The grouping is by > the week -- but I want it to handle a changing first day of the week > variable. I can't get my head around it at all. > > Passing the first day of the week around is no problem -- I just can't > seem to get Access to group by it. I've looked at CreateGroupLevel, > but I don't see how that can help. > > I tried adding a DatePart expression to the Detail section and using > the OpenArgs property to pass the first day of the week, and while the > expression works, I can't group by it -- it's a calculated control. I > don't want the users manipulating the underlying query either. They > choose the first day of the week from a simple form and the rest needs > to happen behind the scenes. > You can group by a calculation. Just put =Datepart("ww",mydate,myfirstday) in a grouping level. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Sat Apr 17 19:39:07 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Sat, 17 Apr 2004 20:39:07 -0400 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <20040418001559.IUSX1714.imf16aec.mail.bellsouth.net@SUSANONE> Message-ID: <20040418003907.JBDR1714.imf16aec.mail.bellsouth.net@SUSANONE> If the date's Thursday, July 25, 1996 which falls in the 31st week of the year where Wed is the first day of the week... how do I return Wednesday, July 25, 1996? That's my problem. :) the expression has to adapt to any firstdayoftheweek value, not just Wed. ==============Got this too now -- all's well. ;) Susan H. From demulling at centurytel.net Sat Apr 17 21:58:44 2004 From: demulling at centurytel.net (Demulling Family) Date: Sat, 17 Apr 2004 21:58:44 -0500 Subject: [AccessD] Using TransferDatabase to link table from password protectd db In-Reply-To: <407F56A3.7050805@shaw.ca> References: <407F56A3.7050805@shaw.ca> Message-ID: <4081EEE4.2070104@centurytel.net> Marty, Just tried the code you sent and it worked perfectly. THANKS!!!!!!!!!!!!!!!!!!!!!!!!!!! From jmhla at earthlink.net Sun Apr 18 01:44:20 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Sat, 17 Apr 2004 23:44:20 -0700 Subject: [AccessD] About Manuals for your databases X posted Message-ID: <000001c42510$98fbcdc0$6501a8c0@delllaptop> How many of you right them? Do you right users and developers manuals that explain your hows and whys? In my forms, I do things like make non-visible fields red and bold just so they are easier to see if they are buried under other controls. Just wondering JOE HECHT LOS ANGELES CA From jmhla at earthlink.net Sun Apr 18 01:44:21 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Sat, 17 Apr 2004 23:44:21 -0700 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <20040417232105.BHUI1832.imf22aec.mail.bellsouth.net@SUSANONE> Message-ID: <000501c42510$9c99dc10$6501a8c0@delllaptop> Glad to see I am not the only frustrated programmer on A Saturday Afternoon. JOE HECHT LOS ANGELES CA -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Saturday, April 17, 2004 4:21 PM To: 'Access Developers discussion and problem solving' Subject: FW: [AccessD] custom sorts/groups in a report Nevermind. :( Susan H. I'm grouping and sorting a report on a date field. The grouping is by the week -- but I want it to handle a changing first day of the week variable. I can't get my head around it at all. Passing the first day of the week around is no problem -- I just can't seem to get Access to group by it. I've looked at CreateGroupLevel, but I don't see how that can help. I tried adding a DatePart expression to the Detail section and using the OpenArgs property to pass the first day of the week, and while the expression works, I can't group by it -- it's a calculated control. I don't want the users manipulating the underlying query either. They choose the first day of the week from a simple form and the rest needs to happen behind the scenes. Any suggestions? -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Sun Apr 18 02:27:58 2004 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 18 Apr 2004 09:27:58 +0200 Subject: [AccessD] About Manuals for your databases X posted In-Reply-To: <000001c42510$98fbcdc0$6501a8c0@delllaptop> References: <000001c42510$98fbcdc0$6501a8c0@delllaptop> Message-ID: <593513812.20040418092758@cactus.dk> Hi Joe > How many of you right them? I write old fashioned help files only. They load extremely fast and are quite easy to print out if a hardcopy is requested. > Do you right users and developers manuals that explain your hows and > whys? For users only as part of a project description. For developers (including myself!) only as in-line comments. > In my forms, I do things like make non-visible fields red and bold just > so they are easier to see if they are buried under other controls. I use these background colours with black text: Yellow for invisible controls (mostly textboxes) Cyan for invisible controls for either future visible use or which previously have been visible (now invisible due to modifications of the form layout) and with a possible future use, though such controls must be tricky somehow, otherwise I just delete them. Green for invisible textboxes containing a function which needs to (and will) run when the form recalculates. These are rare. Magenta for invisible labels with comments or as pointers to controls hidden in design view by some larger controls. /gustav From wdhindman at bellsouth.net Sun Apr 18 07:23:54 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Sun, 18 Apr 2004 08:23:54 -0400 Subject: [AccessD] About Manuals for your databases X posted References: <000001c42510$98fbcdc0$6501a8c0@delllaptop> <593513812.20040418092758@cactus.dk> Message-ID: <000401c42540$03fccb90$6101a8c0@dejpolsys> gustav ...interesting ...I've always used naming conventions to manage distinctions like this but can certainly see some value in using color ...I'm rebuilding a major client app over the next few weeks and I think it would be a good time to try this in my templates ...tks :) William Hindman "Always code as if the person who is maintaining or testing your code is a violent psychopath who knows where you live." William Silverstein ----- Original Message ----- From: "Gustav Brock" To: "Access Developers discussion and problem solving" Sent: Sunday, April 18, 2004 3:27 AM Subject: Re: [AccessD] About Manuals for your databases X posted > Hi Joe > > > How many of you right them? > > I write old fashioned help files only. They load extremely fast and > are quite easy to print out if a hardcopy is requested. > > > Do you right users and developers manuals that explain your hows and > > whys? > > For users only as part of a project description. > For developers (including myself!) only as in-line comments. > > > In my forms, I do things like make non-visible fields red and bold just > > so they are easier to see if they are buried under other controls. > > I use these background colours with black text: > > Yellow for invisible controls (mostly textboxes) > > Cyan for invisible controls for either future visible use or which > previously have been visible (now invisible due to modifications of > the form layout) and with a possible future use, though such > controls must be tricky somehow, otherwise I just delete them. > > Green for invisible textboxes containing a function which needs to > (and will) run when the form recalculates. These are rare. > > Magenta for invisible labels with comments or as pointers to > controls hidden in design view by some larger controls. > > /gustav > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From ssharkins at bellsouth.net Sun Apr 18 09:23:47 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Sun, 18 Apr 2004 10:23:47 -0400 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <000501c42510$9c99dc10$6501a8c0@delllaptop> Message-ID: <20040418142347.GYRL1728.imf24aec.mail.bellsouth.net@SUSANONE> I'm still not happy with the solution -- there's got to be an easier way. :) Susan H. Glad to see I am not the only frustrated programmer on A Saturday Afternoon. From ssharkins at bellsouth.net Sun Apr 18 10:44:37 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Sun, 18 Apr 2004 11:44:37 -0400 Subject: [AccessD] Calendar Controls -- just for discussion Message-ID: <20040418154437.GAQR1779.imf21aec.mail.bellsouth.net@SUSANONE> I'm writing about the ODE Calendar Control and I'm curious how many of you use Calendar controls in your apps. I've had people complain about them -- they'd actually enter the dates themselves because they find the break in their data entry routines annoying -- from a data integrity point of view I can see the value of the controls -- but how do you convince people to use them? Susan H. From andy at minstersystems.co.uk Sun Apr 18 10:52:14 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Sun, 18 Apr 2004 16:52:14 +0100 Subject: [AccessD] Calendar Controls -- just for discussion In-Reply-To: <20040418154437.GAQR1779.imf21aec.mail.bellsouth.net@SUSANONE> Message-ID: <000001c4255d$1edb6ee0$b274d0d5@minster33c3r25> I don't use them for normal date entry, but I provide one on the app's short-cut menu for when the customer feels the need. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Susan Harkins > Sent: 18 April 2004 16:45 > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Calendar Controls -- just for discussion > > > I'm writing about the ODE Calendar Control and I'm curious > how many of you use Calendar controls in your apps. > > I've had people complain about them -- they'd actually enter > the dates themselves because they find the break in their > data entry routines annoying > -- from a data integrity point of view I can see the value of > the controls > -- but how do you convince people to use them? > > Susan H. > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > From bhjohnson at pacbell.net Sun Apr 18 10:52:27 2004 From: bhjohnson at pacbell.net (Bruce H. Johnson) Date: Sun, 18 Apr 2004 08:52:27 -0700 Subject: [AccessD] Calendar Controls -- just for discussion In-Reply-To: <20040418154437.GAQR1779.imf21aec.mail.bellsouth.net@SUSANONE> References: <20040418154437.GAQR1779.imf21aec.mail.bellsouth.net@SUSANONE> Message-ID: <4082A43B.8070406@pacbell.net> Suggest you have both the control and the straight data entry available. I've found that straight date entry is fine if the user knows the date, but the control is very handy to enter the "first Tuesday in February" - type dates; otherwise they'll have to dig up a calendar. Susan Harkins wrote: >I'm writing about the ODE Calendar Control and I'm curious how many of you >use Calendar controls in your apps. > >I've had people complain about them -- they'd actually enter the dates >themselves because they find the break in their data entry routines annoying >-- from a data integrity point of view I can see the value of the controls >-- but how do you convince people to use them? > >Susan H. > > From ssharkins at bellsouth.net Sun Apr 18 11:07:27 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Sun, 18 Apr 2004 12:07:27 -0400 Subject: [AccessD] Calendar Controls -- just for discussion In-Reply-To: <4082A43B.8070406@pacbell.net> Message-ID: <20040418160727.DWEY1773.imf19aec.mail.bellsouth.net@SUSANONE> Well that's a good suggestion -- I hadn't really thought of that. :) Susan H. Suggest you have both the control and the straight data entry available. I've found that straight date entry is fine if the user knows the date, but the control is very handy to enter the "first Tuesday in February" - type dates; otherwise they'll have to dig up a calendar. From accessd at shaw.ca Sun Apr 18 11:35:50 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Sun, 18 Apr 2004 09:35:50 -0700 Subject: [AccessD] Calendar Controls -- just for discussion In-Reply-To: <20040418154437.GAQR1779.imf21aec.mail.bellsouth.net@SUSANONE> Message-ID: Hi Susan: I tend to add a button accessing a popup calendar, beside each date entry field. The user is then given the choice, direct entry or selecting from a mini calendar. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Susan Harkins Sent: Sunday, April 18, 2004 8:45 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Calendar Controls -- just for discussion I'm writing about the ODE Calendar Control and I'm curious how many of you use Calendar controls in your apps. I've had people complain about them -- they'd actually enter the dates themselves because they find the break in their data entry routines annoying -- from a data integrity point of view I can see the value of the controls -- but how do you convince people to use them? Susan H. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at bellsouth.net Sun Apr 18 11:42:00 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Sun, 18 Apr 2004 12:42:00 -0400 Subject: [AccessD] Calendar Controls -- just for discussion References: <20040418154437.GAQR1779.imf21aec.mail.bellsouth.net@SUSANONE> Message-ID: <000c01c42564$12270180$6101a8c0@dejpolsys> ...first ...I don't use the ODE Calendar Control because of a long history of versioning problems ...even when you wrap it in a class you're app is still vulnerable ...besides it being slow ...I use a modified version of Drew's old mini-calendar which is all VBA, dead reliable, and very fast. ...second (this has been discussed here recently but under another thread topic) ...I much prefer data integrity over speed but its not necessary to sacrifice one for the other ...I always force user date entry from a pop-up calendar ...the calendar pops-up at the bottom right of the text box with the current date defaulted ...if the current date is what is required ...a dblclick gets the date entered and tabs to the next control ...if not, the cal responds to either mouse (slow) or keyboard (fast) for date selection. ...purists will try and tell you that such an approach slows keyboarders down and they won't accept it ...I disagree ...once the keyboarders get used to the keyboard strokes that control the cal it is in most cases just as fast as them entering it directly ...BUT ...big one ...the forced calendar usage eliminates most date errors from users who enter/read dates differently ...and the difference between error/dirty data correction time and getting it right the first time weighs heavily in favor of using a cal control over straight user date entry. William Hindman "Always code as if the person who is maintaining or testing your code is a violent psychopath who knows where you live." William Silverstein ----- Original Message ----- From: "Susan Harkins" To: "'Access Developers discussion and problem solving'" Sent: Sunday, April 18, 2004 11:44 AM Subject: [AccessD] Calendar Controls -- just for discussion > I'm writing about the ODE Calendar Control and I'm curious how many of you > use Calendar controls in your apps. > > I've had people complain about them -- they'd actually enter the dates > themselves because they find the break in their data entry routines annoying > -- from a data integrity point of view I can see the value of the controls > -- but how do you convince people to use them? > > Susan H. > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From ssharkins at bellsouth.net Sun Apr 18 11:48:29 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Sun, 18 Apr 2004 12:48:29 -0400 Subject: [AccessD] Calendar Controls -- just for discussion In-Reply-To: <000c01c42564$12270180$6101a8c0@dejpolsys> Message-ID: <20040418164829.INUT1728.imf24aec.mail.bellsouth.net@SUSANONE> ...first ...I don't use the ODE Calendar Control because of a long history of versioning problems ===========I'm limited -- I write about what they want. :) So, when you complain of versioning problems, what do you mean? Susan H. From gustav at cactus.dk Sun Apr 18 11:59:33 2004 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 18 Apr 2004 18:59:33 +0200 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <20040418142347.GYRL1728.imf24aec.mail.bellsouth.net@SUSANONE> References: <20040418142347.GYRL1728.imf24aec.mail.bellsouth.net@SUSANONE> Message-ID: <1661080363.20040418185933@cactus.dk> Hi Susan > I'm still not happy with the solution -- there's got to be an easier way. :) Maybe. What solution did you settle on? /gustav From wdhindman at bellsouth.net Sun Apr 18 12:11:53 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Sun, 18 Apr 2004 13:11:53 -0400 Subject: [AccessD] Calendar Controls -- just for discussion References: <20040418164829.INUT1728.imf24aec.mail.bellsouth.net@SUSANONE> Message-ID: <002301c42568$3ec91ad0$6101a8c0@dejpolsys> ...I've not used the native cal for years ...but there was a period of time with A95/97 that MS changed the way the calendar worked between a number of versions and didn't maintain reverse compatibility ...depending upon which version of the control your users had installed your app might or might not work, a very common problem back then with all ActiveX controls (I don't use any 3rd party ActiveX controls for the same reason) ...so I switched to a vba based one and never looked back ...and no, I can't tell you the problems have or have not been resolved ...I'm happy with my calendar ...its been tweaked to work exactly the way I want it to :) William Hindman "Always code as if the person who is maintaining or testing your code is a violent psychopath who knows where you live." William Silverstein ----- Original Message ----- From: "Susan Harkins" To: "'Access Developers discussion and problem solving'" Sent: Sunday, April 18, 2004 12:48 PM Subject: RE: [AccessD] Calendar Controls -- just for discussion > ...first ...I don't use the ODE Calendar Control because of a long history > of versioning problems > > ===========I'm limited -- I write about what they want. :) So, when you > complain of versioning problems, what do you mean? > > Susan H. > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From ssharkins at bellsouth.net Sun Apr 18 12:41:30 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Sun, 18 Apr 2004 13:41:30 -0400 Subject: [AccessD] ODE HElp problem Message-ID: <20040418174130.YNQF1810.imf18aec.mail.bellsouth.net@SUSANONE> I just installed Office XP Developer and the Help files don't work -- the interface is there and the toc is there -- but it isn't connecting and every subject returns a page not found error. I don't even know where to begin to start. Anyone else had this happen? Susan H. From ssharkins at bellsouth.net Sun Apr 18 12:52:24 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Sun, 18 Apr 2004 13:52:24 -0400 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <1661080363.20040418185933@cactus.dk> Message-ID: <20040418175224.YQKA1810.imf18aec.mail.bellsouth.net@SUSANONE> Well, it's clunky -- 1.) User selects the first day of the week from a list of Sunday through Saturday. 2.) User clicks a command button that opens the report and sends the above selected value via the OpenArgs argument. 3.) The report is based on a query that calls a function that uses the value selected in #1 to return a weekday value for each date. 4.) The report's grouping is first set to year. The second level groups on the weekday value returned by #3. And, a third sorting level simply sorts the date values so it all comes out in the wash. 5.) The group header contains a value that uses the openargs value in a DatePart expression to return the first day of the week for each group. You can use the report without the form and it will default to a firstdayoftheweek value of 1 -- to avoid errors and to make it easier to use the report without going through the form -- that way you could set the default to anything and the user could just open the report. Seems like it ought to be easier than that though -- just too much going on. #3's the one I don't really like. Seems like I ought to be able to get that weekday number in the report, and although I can -- I can't sort by it. Someone mentioned yesterday that you could group on a calculation, but I've not figured that one out yet. I tried setting it using the GroupLevel and GroupOn properties, but never got it to work -- not saying it won't, just I wasn't successful. I didn't spend much time on it though. My understanding of the GroupOn property is that it needs to refer to a specific integer value that represents the built-in levels (Month, Year, Quarter, and so on). I never could get it to accept a DatePart expression. Susan H. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Sunday, April 18, 2004 1:00 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] custom sorts/groups in a report Hi Susan > I'm still not happy with the solution -- there's got to be an easier > way. :) Maybe. What solution did you settle on? /gustav -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Sun Apr 18 13:43:07 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Sun, 18 Apr 2004 11:43:07 -0700 Subject: [AccessD] A summary of the great Open Source discussion In-Reply-To: <000001c4255d$1edb6ee0$b274d0d5@minster33c3r25> Message-ID: Hi All: A couple of weeks ago, there was an Open Source debate encapsulated much of the points of view that have been argued for years. I was so impressed, with the conciseness and objectiveness of the discussion that I decided to put the results in a single page and post the summary to the DBA web site. You can get access to the page through a link off the main page www.databaseadvisors.com. (If your browser saves pages you may have to press reset/reload to view the current layout.) Thank you all for your contributions, Susan Harkin, who started the whole thing, Stuart McLachlan, Bryan Carbonnell, Francisco H Tapia, Bruce Bruen, Bob Hall, Drew Wutka, Marty Connelly and Arthur Fuller. If there is anyone I overlooked or comments I missed, send me a note and you will be appropriately accommodated. Again, thanks to all. Jim From bchacc at san.rr.com Sun Apr 18 14:48:33 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Sun, 18 Apr 2004 12:48:33 -0700 Subject: [AccessD] Calendar Controls -- just for discussion References: <20040418164829.INUT1728.imf24aec.mail.bellsouth.net@SUSANONE> <002301c42568$3ec91ad0$6101a8c0@dejpolsys> Message-ID: <00df01c4257e$2230ff80$6601a8c0@HAL9002> I use the ADH calendar and trigger it on the double-click of any date text box. So they can still hand enter the date if they want. Users seem to like the convention once they get used to it. Rocky Smolin Beach Access Software http://www.e-z-mrp.com > > ----- Original Message ----- > From: "Susan Harkins" > To: "'Access Developers discussion and problem solving'" > > Sent: Sunday, April 18, 2004 12:48 PM > Subject: RE: [AccessD] Calendar Controls -- just for discussion > > > > ...first ...I don't use the ODE Calendar Control because of a long history > > of versioning problems > > > > ===========I'm limited -- I write about what they want. :) So, when you > > complain of versioning problems, what do you mean? > > > > 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 bchacc at san.rr.com Sun Apr 18 14:53:29 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Sun, 18 Apr 2004 12:53:29 -0700 Subject: [AccessD] About Manuals for your databases X posted References: <000001c42510$98fbcdc0$6501a8c0@delllaptop> Message-ID: <00f701c4257e$d2a17480$6601a8c0@HAL9002> Joe: I wrote a manual for the manufacturing system last year. Just about committed suicide but got it done. For a product I think you need one. But for a one-shot app I never write them. I tried to be consistent about the headings so that I could do an automatic table of contents and that worked out pretty well. And a different style for the figures and tables so I could auto-produce a list of figures as well. Haven't done an index, however. I'd be glad to send you a copy off-line if it would be useful to you. HTH Rocky Smolin Beach Access Software http://www.e-z-mrp.com ----- Original Message ----- From: "Joe Hecht" To: "'ACCESS-L'" ; "AccessD" Sent: Saturday, April 17, 2004 11:44 PM Subject: [AccessD] About Manuals for your databases X posted > How many of you right them? > > Do you right users and developers manuals that explain your hows and > whys? > > In my forms, I do things like make non-visible fields red and bold just > so they are easier to see if they are buried under other controls. > > Just wondering > > JOE HECHT > LOS ANGELES CA > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From carbonnb at sympatico.ca Sun Apr 18 14:57:53 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Sun, 18 Apr 2004 15:57:53 -0400 Subject: [AccessD] Calendar Controls -- just for discussion In-Reply-To: <00df01c4257e$2230ff80$6601a8c0@HAL9002> Message-ID: <4082A581.7252.F87E02@localhost> On 18 Apr 2004 at 12:48, Rocky Smolin - Beach Access S wrote: > I use the ADH calendar and trigger it on the double-click of any date > text box. So they can still hand enter the date if they want. Users > seem to like the convention once they get used to it. I use the ADH one too. I actually place a button right beside the textbox so that the calendar can be opened without taking your hands off the keyboard. -- Bryan Carbonnell - carbonnb at sympatico.ca Don't take life too seriously. You won't get out alive. From bchacc at san.rr.com Sun Apr 18 16:11:22 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Sun, 18 Apr 2004 14:11:22 -0700 Subject: [AccessD] Calendar Controls -- just for discussion References: <4082A581.7252.F87E02@localhost> Message-ID: <015b01c42589$b3bde390$6601a8c0@HAL9002> Bryan: So is that button the next control in the tab sequence after the text box which would contain a date so the user can then TAB to it and press Enter? Rocky ----- Original Message ----- From: "Bryan Carbonnell" To: "Access Developers discussion and problem solving" Sent: Sunday, April 18, 2004 12:57 PM Subject: Re: [AccessD] Calendar Controls -- just for discussion > On 18 Apr 2004 at 12:48, Rocky Smolin - Beach Access S wrote: > > > I use the ADH calendar and trigger it on the double-click of any date > > text box. So they can still hand enter the date if they want. Users > > seem to like the convention once they get used to it. > > I use the ADH one too. I actually place a button right beside the > textbox so that the calendar can be opened without taking your hands > off the keyboard. > > -- > Bryan Carbonnell - carbonnb at sympatico.ca > Don't take life too seriously. You won't get out alive. > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From carbonnb at sympatico.ca Sun Apr 18 16:27:00 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Sun, 18 Apr 2004 17:27:00 -0400 Subject: [AccessD] Calendar Controls -- just for discussion In-Reply-To: <015b01c42589$b3bde390$6601a8c0@HAL9002> Message-ID: <4082BA64.21526.14A13BF@localhost> On 18 Apr 2004 at 14:11, Rocky Smolin - Beach Access S wrote: > So is that button the next control in the tab sequence after the text > box which would contain a date so the user can then TAB to it and > press Enter? I'm not sure if enter works, I always use the space bar to activate the button, but yes that's the concept. The button is the next item in the tab order. The user would press space/enter and the calendar form opens, or they can just tab through the button if they type the date manually. -- Bryan Carbonnell - carbonnb at sympatico.ca Normal people worry me. From andy at minstersystems.co.uk Sun Apr 18 17:00:43 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Sun, 18 Apr 2004 23:00:43 +0100 Subject: [AccessD] Calendar Controls -- just for discussion In-Reply-To: <000c01c42564$12270180$6101a8c0@dejpolsys> Message-ID: <000601c42590$98900470$b274d0d5@minster33c3r25> > I use a modified version of Drew's old mini-calendar which is all VBA, dead reliable, and very fast. Ditto (and thanks to Drew) -- 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: 18 April 2004 17:42 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Calendar Controls -- just for discussion > > > ...first ...I don't use the ODE Calendar Control because of a > long history of versioning problems ...even when you wrap it > in a class you're app is still vulnerable ...besides it being > slow ...I use a modified version of Drew's old mini-calendar > which is all VBA, dead reliable, and very fast. > > ...second (this has been discussed here recently but under > another thread > topic) ...I much prefer data integrity over speed but its not > necessary to sacrifice one for the other ...I always force > user date entry from a pop-up calendar ...the calendar > pops-up at the bottom right of the text box with the current > date defaulted ...if the current date is what is required > ...a dblclick gets the date entered and tabs to the next > control ...if not, the cal responds to either mouse (slow) or > keyboard (fast) for date selection. > > ...purists will try and tell you that such an approach slows > keyboarders down and they won't accept it ...I disagree > ...once the keyboarders get used to the keyboard strokes that > control the cal it is in most cases just as fast as them > entering it directly ...BUT ...big one ...the forced calendar > usage eliminates most date errors from users who enter/read > dates differently ...and the difference between error/dirty > data correction time and getting it right the first time > weighs heavily in favor of using a cal control over straight > user date entry. > > William Hindman > "Always code as if the person who is maintaining or testing > your code is a violent psychopath who knows where you live." > William Silverstein > > > ----- Original Message ----- > From: "Susan Harkins" > To: "'Access Developers discussion and problem solving'" > > Sent: Sunday, April 18, 2004 11:44 AM > Subject: [AccessD] Calendar Controls -- just for discussion > > > > I'm writing about the ODE Calendar Control and I'm curious > how many of > > you use Calendar controls in your apps. > > > > I've had people complain about them -- they'd actually > enter the dates > > themselves because they find the break in their data entry routines > annoying > > -- from a data integrity point of view I can see the value of the > > controls > > -- but how do you convince people to use them? > > > > 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 pedro at plex.nl Sun Apr 18 17:17:55 2004 From: pedro at plex.nl (Pedro Janssen) Date: Mon, 19 Apr 2004 00:17:55 +0200 Subject: [AccessD] error in code Message-ID: <000801c42593$219ec510$f4c581d5@pedro> Hello Group, why isn't this part of a code not working for i = 1 To 9 If "chb" & i & "c31") = True Then .Item("Code" & i).Value = "** geen code" End If Next i the error is: Error 13, Description: Type Mismatch TIA Pedro Janssen From ssharkins at bellsouth.net Sun Apr 18 17:41:41 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Sun, 18 Apr 2004 18:41:41 -0400 Subject: [AccessD] error in code In-Reply-To: <000801c42593$219ec510$f4c581d5@pedro> Message-ID: <20040418224141.TSEN1714.imf16aec.mail.bellsouth.net@SUSANONE> for i = 1 To 9 If "chb" & i & "c31") = True Then Your condition is never going to equal true -- but rather a cancatenated string. Although, I think the code's missing soemthing -- you've got a ) that doesn't make sense in its position, but I suspect that's just a typo and probably isn't your actual error is it? Susan H. From carbonnb at sympatico.ca Sun Apr 18 17:46:46 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Sun, 18 Apr 2004 18:46:46 -0400 Subject: [AccessD] error in code In-Reply-To: <000801c42593$219ec510$f4c581d5@pedro> Message-ID: <4082CD16.31909.1931CA1@localhost> On 19 Apr 2004 at 0:17, Pedro Janssen wrote: > why isn't this part of a code not working > > for i = 1 To 9 > If "chb" & i & "c31") = True Then > .Item("Code" & i).Value = "** geen code" > End If > Next i Pedro, I am assuming that chb* are checkboxes. If so, try: If me.controls("chb" & i & "c31") = True Then You also have a closing ) on the ofiginal If Then line. -- Bryan Carbonnell - carbonnb at sympatico.ca I am a nobody, and nobody is perfect; therefore, I am perfect. From stuart at lexacorp.com.pg Sun Apr 18 18:52:42 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 19 Apr 2004 09:52:42 +1000 Subject: [AccessD] error in code In-Reply-To: <000801c42593$219ec510$f4c581d5@pedro> Message-ID: <4083A16A.23848.32CE49@localhost> On 19 Apr 2004 at 0:17, Pedro Janssen wrote: > Hello Group, > > why isn't this part of a code not working > > for i = 1 To 9 > If "chb" & i & "c31") = True Then > .Item("Code" & i).Value = "** geen code" > End If > Next i > > the error is: Error 13, Description: Type Mismatch > Apart from the problems mentioned by others (the missing "(", the missing "me.controls" or "." before "chb1"), this will result in spaces in your control names ie "chb 1c31" to "chb 9c31" and "Code 1" to "Code 9" UNless you do have spaces in the control names, you need to use Format(i) or similar to get rid of the leading space. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From MPorter at acsalaska.com Sun Apr 18 18:42:33 2004 From: MPorter at acsalaska.com (Porter, Mark) Date: Sun, 18 Apr 2004 15:42:33 -0800 Subject: [AccessD] About Manuals for your databases X posted Message-ID: I charge the same hourly rate for documentation as I do for coding. Then I strongly suggest that they produce their own. I've never been asked to produce documentation (user docs) yet. Mark -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Saturday, April 17, 2004 10:44 PM To: 'ACCESS-L'; AccessD Subject: [AccessD] About Manuals for your databases X posted How many of you right them? Do you right users and developers manuals that explain your hows and whys? In my forms, I do things like make non-visible fields red and bold just so they are easier to see if they are buried under other controls. Just wondering JOE HECHT LOS ANGELES CA -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com *********************************************************************************** 18/4/2004 This transmittal may contain confidential information intended solely for the addressee. If you are not the intended recipient, you are hereby notified that you have received this transmittal in error; any review, dissemination, distribution or copying of this transmittal is strictly prohibited. If you have received this communication in error, please notify us immediately by reply or by telephone (collect at 907-564-1000) and ask to speak with the message sender. In addition, please immediately delete this message and all attachments. Thank you. ACS From accessd667 at yahoo.com Mon Apr 19 03:44:05 2004 From: accessd667 at yahoo.com (S D) Date: Mon, 19 Apr 2004 01:44:05 -0700 (PDT) Subject: [AccessD] Error 3265. Item not found in this collection?!!? Message-ID: <20040419084405.36072.qmail@web61105.mail.yahoo.com> Hi group, a user reported an error. The error message displayed the following info: Source: DAO.Fields Number: 3265 Description: Item not found in this collection Call Stack: Switchdatabase.Message_Check_GAS.Check1015 Switchdatabase.Form_frm_GAS_GENERATE.cmdGenerate_Click The line that causes the error is (see code below for details): rv = MsgBox("Duplicate value!! Delete original record?" & vbCr _ , vbYesNo, "Answer question") WHY does this occur? The user is using Win NT. The error does NOT occur on Win2000. We never had this problem before, not on NT and not on Win2000. Please advise! TIA Sander This is the code that caused the problem: Public Function Check_1015(msgtype As String) As String Dim Status As String Dim rs, rsb As Recordset Dim db As Database Dim teller, i As Long Dim rv As String On Error GoTo Check_1015_Error Status = "Ok" If msgtype = "I" Then ... ... Set rsb = db.OpenRecordset("Select * from V4_GAS_Bronbestand_Verhuizingen where connect_EAN = '" & rs!Connect_EAN & "'", dbReadOnly) If rsb.EOF = False Then rv = MsgBox("Duplicate value!! Delete original record?" & vbCr _ , vbYesNo, "Answer question") .... --------------------------------- Do you Yahoo!? Yahoo! Photos: High-quality 4x6 digital prints for 25? From gustav at cactus.dk Mon Apr 19 04:11:01 2004 From: gustav at cactus.dk (Gustav Brock) Date: Mon, 19 Apr 2004 11:11:01 +0200 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <20040418175224.YQKA1810.imf18aec.mail.bellsouth.net@SUSANONE> References: <20040418175224.YQKA1810.imf18aec.mail.bellsouth.net@SUSANONE> Message-ID: <1918237935.20040419111101@cactus.dk> Hi Susan Your method looks longwinded but not weird. If it works fast and well I would leave it, though I'm sure another method could be found where you adjust the grouping in the report directly. /gustav > Well, it's clunky -- > 1.) User selects the first day of the week from a list of Sunday through > Saturday. > 2.) User clicks a command button that opens the report and sends the above > selected value via the OpenArgs argument. > 3.) The report is based on a query that calls a function that uses the value > selected in #1 to return a weekday value for each date. > 4.) The report's grouping is first set to year. The second level groups on > the weekday value returned by #3. And, a third sorting level simply sorts > the date values so it all comes out in the wash. > 5.) The group header contains a value that uses the openargs value in a > DatePart expression to return the first day of the week for each group. > You can use the report without the form and it will default to a > firstdayoftheweek value of 1 -- to avoid errors and to make it easier to use > the report without going through the form -- that way you could set the > default to anything and the user could just open the report. > Seems like it ought to be easier than that though -- just too much going on. > #3's the one I don't really like. Seems like I ought to be able to get that > weekday number in the report, and although I can -- I can't sort by it. > Someone mentioned yesterday that you could group on a calculation, but I've > not figured that one out yet. I tried setting it using the GroupLevel and > GroupOn properties, but never got it to work -- not saying it won't, just I > wasn't successful. I didn't spend much time on it though. My understanding > of the GroupOn property is that it needs to refer to a specific integer > value that represents the built-in levels (Month, Year, Quarter, and so on). > I never could get it to accept a DatePart expression. > Susan H. > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Sunday, April 18, 2004 1:00 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] custom sorts/groups in a report > Hi Susan >> I'm still not happy with the solution -- there's got to be an easier >> way. :) > Maybe. What solution did you settle on? > /gustav From accessd667 at yahoo.com Mon Apr 19 04:34:38 2004 From: accessd667 at yahoo.com (S D) Date: Mon, 19 Apr 2004 02:34:38 -0700 (PDT) Subject: [AccessD] Error 3265. Item not found in this collection?!!? In-Reply-To: <20040419084405.36072.qmail@web61105.mail.yahoo.com> Message-ID: <20040419093438.7994.qmail@web61102.mail.yahoo.com> Hi group, I found the freaking error. This app is sooooo buggy! There was a reference (not displayed in the code below) to a field called Net_op_EAN...the CORRECT field name is NetOp_Ean. Question: "Has this functionality EVER worked before?" (this is a standard question for this app :-( User response: "Yes, we use this functionality on a daily basis!" Yeah right: Tables are empty, log is empty and output directory is empty. Grrrr. Anyway its job that pays the bills. Sander S D wrote: Hi group, a user reported an error. The error message displayed the following info: Source: DAO.Fields Number: 3265 Description: Item not found in this collection Call Stack: Switchdatabase.Message_Check_GAS.Check1015 Switchdatabase.Form_frm_GAS_GENERATE.cmdGenerate_Click The line that causes the error is (see code below for details): rv = MsgBox("Duplicate value!! Delete original record?" & vbCr _ , vbYesNo, "Answer question") WHY does this occur? The user is using Win NT. The error does NOT occur on Win2000. We never had this problem before, not on NT and not on Win2000. Please advise! TIA Sander This is the code that caused the problem: Public Function Check_1015(msgtype As String) As String Dim Status As String Dim rs, rsb As Recordset Dim db As Database Dim teller, i As Long Dim rv As String On Error GoTo Check_1015_Error Status = "Ok" If msgtype = "I" Then ... ... Set rsb = db.OpenRecordset("Select * from V4_GAS_Bronbestand_Verhuizingen where connect_EAN = '" & rs!Connect_EAN & "'", dbReadOnly) If rsb.EOF = False Then rv = MsgBox("Duplicate value!! Delete original record?" & vbCr _ , vbYesNo, "Answer question") .... --------------------------------- Do you Yahoo!? Yahoo! Photos: High-quality 4x6 digital prints for 25? -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Yahoo! Photos: High-quality 4x6 digital prints for 25? From d.dick at uws.edu.au Sun Apr 18 23:53:33 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Mon, 19 Apr 2004 14:53:33 +1000 Subject: [AccessD] Calendar Controls -- just for discussion References: <20040418154437.GAQR1779.imf21aec.mail.bellsouth.net@SUSANONE> Message-ID: <00c001c42608$f7e59a70$0b669a89@DDICK> I give 'em both. Both straight data entry and a calendar They can do data entry straight into the control or double click to get a VBA only calendar. (Won't touch the OCX ones anymore) I also have a small popup that provides some of the basic date ranges IE 1st or 2nd or 3rd etc quarter of current or last year All Year, all last year. This month, last month, Last week this week, Next week, next month, today etc. All available with checkboxes. Click a check and the dates are determined and results put into txtStartDate and txtEndDate controls Works a treat HTH Darren ----- Original Message ----- From: "Susan Harkins" To: "'Access Developers discussion and problem solving'" Sent: Monday, April 19, 2004 1:44 AM Subject: [AccessD] Calendar Controls -- just for discussion > I'm writing about the ODE Calendar Control and I'm curious how many of you > use Calendar controls in your apps. > > I've had people complain about them -- they'd actually enter the dates > themselves because they find the break in their data entry routines annoying > -- from a data integrity point of view I can see the value of the controls > -- but how do you convince people to use them? > > Susan H. > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From rl_stewart at highstream.net Mon Apr 19 08:20:00 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Mon, 19 Apr 2004 08:20:00 -0500 Subject: [AccessD] Re: Changing the table in a query so I can loop through thequery In-Reply-To: <200404181700.i3IH0MB27564@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040419081850.02b22e48@pop3.highstream.net> Susan, If you have 71 identical tables, you have a design problem. Why do you need 71 tables with the same information? Robert At 12:00 PM 4/18/2004 -0500, you wrote: >Date: Sat, 17 Apr 2004 16:59:29 -0400 >From: "Susan Harkins" >Subject: RE: [AccessD] Changing the table in a query so I can loop > through thequery >To: "'Access Developers discussion and problem solving'" > >Message-ID: > <20040417205929.PLEB1773.imf19aec.mail.bellsouth.net at SUSANONE> >Content-Type: text/plain; charset="US-ASCII" > >I'm sorry, not an UPDATE, but a SQL INSERT INTO > >Susan H. > >I have an append query that can work for 71 tables. I want to create a for >next loop function that will substitute the table names (they are numbers) >each time it loops. Can someone help me? I do not quite have the query def >thing down and I think I need to use it here. Each table has the same >fields. From dwaters at usinternet.com Mon Apr 19 08:31:36 2004 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 19 Apr 2004 08:31:36 -0500 Subject: [AccessD] About Manuals for your databases X posted In-Reply-To: <8653173.1082270888748.JavaMail.root@sniper4.usinternet.com> Message-ID: <001601c42612$a3831480$de1811d8@danwaters> I write a manual for every process module. Managers want them available, and I want to be able to refer to the manual instead of being told that they can't figure it out. I write a Word document that contains all the detail a user would need. The module contains a Manual hyperlink button so it can be pulled up at any time. The manuals are typically 10 - 25 pages long. I also use the manual as a QC tool for myself. As I write it, I double check the system to be sure it does just what the manual says. Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Sunday, April 18, 2004 1:44 AM To: 'ACCESS-L'; AccessD Subject: [AccessD] About Manuals for your databases X posted How many of you right them? Do you right users and developers manuals that explain your hows and whys? In my forms, I do things like make non-visible fields red and bold just so they are easier to see if they are buried under other controls. Just wondering JOE HECHT LOS ANGELES CA -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Mon Apr 19 08:45:57 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Mon, 19 Apr 2004 09:45:57 -0400 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <1918237935.20040419111101@cactus.dk> Message-ID: <20040419134556.DMSZ1832.imf22aec.mail.bellsouth.net@SUSANONE> That's what I'd rather do, simply because it leaves fewer holes. Susan H. Hi Susan Your method looks longwinded but not weird. If it works fast and well I would leave it, though I'm sure another method could be found where you adjust the grouping in the report directly. /gustav > Well, it's clunky -- > 1.) User selects the first day of the week from a list of Sunday > through Saturday. > 2.) User clicks a command button that opens the report and sends the > above selected value via the OpenArgs argument. > 3.) The report is based on a query that calls a function that uses the > value selected in #1 to return a weekday value for each date. > 4.) The report's grouping is first set to year. The second level > groups on the weekday value returned by #3. And, a third sorting level > simply sorts the date values so it all comes out in the wash. > 5.) The group header contains a value that uses the openargs value in > a DatePart expression to return the first day of the week for each group. > You can use the report without the form and it will default to a > firstdayoftheweek value of 1 -- to avoid errors and to make it easier > to use the report without going through the form -- that way you could > set the default to anything and the user could just open the report. > Seems like it ought to be easier than that though -- just too much going on. > #3's the one I don't really like. Seems like I ought to be able to get > that weekday number in the report, and although I can -- I can't sort by it. > Someone mentioned yesterday that you could group on a calculation, but > I've not figured that one out yet. I tried setting it using the > GroupLevel and GroupOn properties, but never got it to work -- not > saying it won't, just I wasn't successful. I didn't spend much time on > it though. My understanding of the GroupOn property is that it needs > to refer to a specific integer value that represents the built-in levels (Month, Year, Quarter, and so on). > I never could get it to accept a DatePart expression. > Susan H. > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav > Brock > Sent: Sunday, April 18, 2004 1:00 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] custom sorts/groups in a report > Hi Susan >> I'm still not happy with the solution -- there's got to be an easier >> way. :) > Maybe. What solution did you settle on? > /gustav -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Mon Apr 19 09:04:56 2004 From: gustav at cactus.dk (Gustav Brock) Date: Mon, 19 Apr 2004 16:04:56 +0200 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <20040419134556.DMSZ1832.imf22aec.mail.bellsouth.net@SUSANONE> References: <20040419134556.DMSZ1832.imf22aec.mail.bellsouth.net@SUSANONE> Message-ID: <12825873634.20040419160456@cactus.dk> Hi Susan Then, in the report, can't you sort and group by =Weekday(YourDate, [YourSelectedFirstWeekday]) /gustav > That's what I'd rather do, simply because it leaves fewer holes. > Susan H. > Hi Susan > Your method looks longwinded but not weird. If it works fast and well I > would leave it, though I'm sure another method could be found where you > adjust the grouping in the report directly. From DWUTKA at marlow.com Mon Apr 19 09:42:19 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 19 Apr 2004 09:42:19 -0500 Subject: [AccessD] Sorting and restricting ComboBox on ListBox content s Message-ID: <2F8793082E00D4119A1700B0D0216BF802227ADF@main2.marlow.com> Did you try 'First'? Again, it is going to be dependant on how Access actually 'sees' the data. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Hewson Sent: Friday, April 16, 2004 7:12 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Sorting and restricting ComboBox on ListBox contents Thanks, Drew and Gustav for responding. I tried Max, but sometimes the ID I need is in the middle of the IDs. I didn't think about using Top, I'll try that. thanks again. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock Sent: Friday, April 16, 2004 4:42 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Sorting and restricting ComboBox on ListBox contents Hi Jim > I have a list box with over 130 items all rows are distinct but a few columns are duplicates. The ListBox is sorted on two text fields which puts the ID number out of sequence. The ComboBox sorts > and "Groups By" duplicate columns. What I want to do is use the ComboBox to jump to the first instance of one of the duplicate columns. > e.g. > ID CourseName City > 135 CCP EC > 90 DIS EC > 87 DIS MP > 18 DOC CD > 17 DOC SR > 55 DSC M AL > 57 DSC M EC > 43 DSC M MP > 28 DSC M SF > 3 DSC M SR > What I want is: > 135 CCP EC > 90 DIS EC > 18 DOC CD > 55 DSC M AL > 3 DSC M SR > What I get is: > 135 CCP EC > 87 DIS MP > 17 DOC SR > 3 DSC M SR > What needs to be done to what the desired results? As Drew notes, you'll have to pick the sorted values for ID and City for each CourseName. Two subqueries can be used for this: SELECT (SELECT TOP 1 ID FROM tblCourses AS aliC WHERE aliC.CourseName = tblCourses.CourseName ORDER BY City, ID DESC;) AS TopID, CourseName, (SELECT TOP 1 City FROM tblCourses AS aliC WHERE aliC.CourseName = tblCourses.CourseName ORDER BY City, ID DESC;) AS TopCity FROM tblCourses GROUP BY CourseName; Have fun! /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 DWUTKA at marlow.com Mon Apr 19 09:47:47 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 19 Apr 2004 09:47:47 -0500 Subject: [AccessD] Calendar Controls -- just for discussion Message-ID: <2F8793082E00D4119A1700B0D0216BF802227AE0@main2.marlow.com> You're quite welcome. As soon as life settles down, I'll finish up the new version. Which is keyboard friendly too! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey Sent: Sunday, April 18, 2004 5:01 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Calendar Controls -- just for discussion > I use a modified version of Drew's old mini-calendar which is all VBA, dead reliable, and very fast. Ditto (and thanks to Drew) -- 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: 18 April 2004 17:42 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Calendar Controls -- just for discussion > > > ...first ...I don't use the ODE Calendar Control because of a > long history of versioning problems ...even when you wrap it > in a class you're app is still vulnerable ...besides it being > slow ...I use a modified version of Drew's old mini-calendar > which is all VBA, dead reliable, and very fast. > > ...second (this has been discussed here recently but under > another thread > topic) ...I much prefer data integrity over speed but its not > necessary to sacrifice one for the other ...I always force > user date entry from a pop-up calendar ...the calendar > pops-up at the bottom right of the text box with the current > date defaulted ...if the current date is what is required > ...a dblclick gets the date entered and tabs to the next > control ...if not, the cal responds to either mouse (slow) or > keyboard (fast) for date selection. > > ...purists will try and tell you that such an approach slows > keyboarders down and they won't accept it ...I disagree > ...once the keyboarders get used to the keyboard strokes that > control the cal it is in most cases just as fast as them > entering it directly ...BUT ...big one ...the forced calendar > usage eliminates most date errors from users who enter/read > dates differently ...and the difference between error/dirty > data correction time and getting it right the first time > weighs heavily in favor of using a cal control over straight > user date entry. > > William Hindman > "Always code as if the person who is maintaining or testing > your code is a violent psychopath who knows where you live." > William Silverstein > > > ----- Original Message ----- > From: "Susan Harkins" > To: "'Access Developers discussion and problem solving'" > > Sent: Sunday, April 18, 2004 11:44 AM > Subject: [AccessD] Calendar Controls -- just for discussion > > > > I'm writing about the ODE Calendar Control and I'm curious > how many of > > you use Calendar controls in your apps. > > > > I've had people complain about them -- they'd actually > enter the dates > > themselves because they find the break in their data entry routines > annoying > > -- from a data integrity point of view I can see the value of the > > controls > > -- but how do you convince people to use them? > > > > 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 > > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Mon Apr 19 10:50:40 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 19 Apr 2004 08:50:40 -0700 Subject: [AccessD] About Manuals for your databases X posted Message-ID: I do NOT write developer manuals, although I do create user help files. Any developer notes are in the comments in code, but those are for me, not for other developers ... Unless I step in front of a bus. Charlotte Foust -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Saturday, April 17, 2004 10:44 PM To: 'ACCESS-L'; AccessD Subject: [AccessD] About Manuals for your databases X posted How many of you right them? Do you right users and developers manuals that explain your hows and whys? In my forms, I do things like make non-visible fields red and bold just so they are easier to see if they are buried under other controls. Just wondering JOE HECHT LOS ANGELES CA -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Patricia.O'Connor at dfa.state.ny.us Mon Apr 19 11:28:21 2004 From: Patricia.O'Connor at dfa.state.ny.us (O'Connor, Patricia ) Date: Mon, 19 Apr 2004 12:28:21 -0400 Subject: [AccessD] jpg Screen shot Message-ID: Rocky, We use printkey 2000 (full). It allows us to print the entire screen, the active window, crop, cut, then copy/paste stuff into word documents, powerpoint, emails, etc. Patti > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Rocky Smolin - Beach Access Software > Sent: Thursday, April 15, 2004 04:31 PM > To: AccessD at databaseadvisors.com > Subject: [AccessD] jpg Screen shot > > Dear List: > > A magazine wants a screen shot from my software and they > would like it to be 300dpi. > > What's the best way to get that off the screen and into a jpg? > > MTIA, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From ssharkins at bellsouth.net Mon Apr 19 12:17:12 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Mon, 19 Apr 2004 13:17:12 -0400 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <12825873634.20040419160456@cactus.dk> Message-ID: <20040419171712.BQCJ1779.imf21aec.mail.bellsouth.net@SUSANONE> Gustav, I've not been able to sort by a calculated control -- wait... I think I've been doing it wrong -- duh... I'm SUCH a user... ;) If I'm right, I'll let ya know. :) Susan H. Hi Susan Then, in the report, can't you sort and group by =Weekday(YourDate, [YourSelectedFirstWeekday]) /gustav > That's what I'd rather do, simply because it leaves fewer holes. > Susan H. > Hi Susan > Your method looks longwinded but not weird. If it works fast and well > I would leave it, though I'm sure another method could be found where > you adjust the grouping in the report directly. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From KIsmert at TexasSystems.com Mon Apr 19 12:19:09 2004 From: KIsmert at TexasSystems.com (Ken Ismert) Date: Mon, 19 Apr 2004 12:19:09 -0500 Subject: [AccessD] Re: Changing the table in a query so I can loopthrough thequery In-Reply-To: <5.1.0.14.2.20040419081850.02b22e48@pop3.highstream.net> Message-ID: <005401c42632$6d9702d0$2a3ca8c0@TEXASSYSTEMS.COM> Well, I've been shepherding a db with almost 140 identical tables. Maybe twice the design problem? I inherited it three years ago, and it soon became clear that the cost to redo it 'properly' was too high. Perhaps in another three years the opportunity will present itself. -Ken -----Original Message----- From: Robert L. Stewart [mailto:rl_stewart at highstream.net] Sent: Monday, April 19, 2004 8:20 AM To: accessd at databaseadvisors.com Subject: [AccessD] Re: Changing the table in a query so I can loopthrough thequery Susan, If you have 71 identical tables, you have a design problem. Why do you need 71 tables with the same information? Robert From ssharkins at bellsouth.net Mon Apr 19 12:28:13 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Mon, 19 Apr 2004 13:28:13 -0400 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <20040419171712.BQCJ1779.imf21aec.mail.bellsouth.net@SUSANONE> Message-ID: <20040419172813.BWTB1779.imf21aec.mail.bellsouth.net@SUSANONE> Well, checked again -- unless I'm just missing something, I don't know how to group/sort by a calculated control within the report itself. Susan H. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Monday, April 19, 2004 1:17 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] custom sorts/groups in a report Gustav, I've not been able to sort by a calculated control -- wait... I think I've been doing it wrong -- duh... I'm SUCH a user... ;) If I'm right, I'll let ya know. :) Susan H. Hi Susan Then, in the report, can't you sort and group by =Weekday(YourDate, [YourSelectedFirstWeekday]) /gustav > That's what I'd rather do, simply because it leaves fewer holes. > Susan H. > Hi Susan > Your method looks longwinded but not weird. If it works fast and well > I would leave it, though I'm sure another method could be found where > you adjust the grouping in the report directly. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at bellsouth.net Mon Apr 19 12:46:47 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Mon, 19 Apr 2004 13:46:47 -0400 Subject: [AccessD] custom sorts/groups in a report References: <20040419171712.BQCJ1779.imf21aec.mail.bellsouth.net@SUSANONE> Message-ID: <007001c42636$497dd7d0$6101a8c0@dejpolsys> "I'm SUCH a user" Susan ...LOL!!! ...great line!!! William Hindman "Always code as if the person who is maintaining or testing your code is a violent psychopath who knows where you live." William Silverstein ----- Original Message ----- From: "Susan Harkins" To: "'Access Developers discussion and problem solving'" Sent: Monday, April 19, 2004 1:17 PM Subject: RE: [AccessD] custom sorts/groups in a report > Gustav, I've not been able to sort by a calculated control -- wait... I > think I've been doing it wrong -- duh... I'm SUCH a user... ;) > > If I'm right, I'll let ya know. :) > > Susan H. > > Hi Susan > > Then, in the report, can't you sort and group by > > =Weekday(YourDate, [YourSelectedFirstWeekday]) > > /gustav > > > > That's what I'd rather do, simply because it leaves fewer holes. > > > Susan H. > > > Hi Susan > > > Your method looks longwinded but not weird. If it works fast and well > > I would leave it, though I'm sure another method could be found where > > you adjust the grouping in the report directly. > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Apr 19 13:26:58 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 19 Apr 2004 11:26:58 -0700 Subject: [AccessD] custom sorts/groups in a report Message-ID: Susan, You sort/group on a calculated expression by entering that expression in the grouping and sorting dialog Charlotte Foust -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Monday, April 19, 2004 9:28 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] custom sorts/groups in a report Well, checked again -- unless I'm just missing something, I don't know how to group/sort by a calculated control within the report itself. Susan H. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Monday, April 19, 2004 1:17 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] custom sorts/groups in a report Gustav, I've not been able to sort by a calculated control -- wait... I think I've been doing it wrong -- duh... I'm SUCH a user... ;) If I'm right, I'll let ya know. :) Susan H. Hi Susan Then, in the report, can't you sort and group by =Weekday(YourDate, [YourSelectedFirstWeekday]) /gustav > That's what I'd rather do, simply because it leaves fewer holes. > Susan H. > Hi Susan > Your method looks longwinded but not weird. If it works fast and well > I would leave it, though I'm sure another method could be found where > you adjust the grouping in the report directly. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Mon Apr 19 14:20:38 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Mon, 19 Apr 2004 15:20:38 -0400 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: Message-ID: <20040419192038.LOVX1778.imf18aec.mail.bellsouth.net@SUSANONE> But I've tried and it won't take it. The OpenArgs argument passes the value I use in all of the date functions. If I refer to is as a variable =DatePart("ww",field,int) I get a parameter prompt asking for int. I even tried setting a text control to the openargs value and referring to that =Date("ww", field, txt) Either way, the sorting and grouping dialog doesn't like it and shows a parameter prompt asking for txt. Everything I've read says the sorting/grouping needs to refer to a field. I was trying to avoid having to pass the firstdayoftheweek to the query itself, but I guess that's an option. I guess I could pass the value to the underlying query and run the week number calculation in the query, instead of in the report. Susan H. Susan, You sort/group on a calculated expression by entering that expression in the grouping and sorting dialog Charlotte Foust -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Monday, April 19, 2004 9:28 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] custom sorts/groups in a report Well, checked again -- unless I'm just missing something, I don't know how to group/sort by a calculated control within the report itself. Susan H. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Monday, April 19, 2004 1:17 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] custom sorts/groups in a report Gustav, I've not been able to sort by a calculated control -- wait... I think I've been doing it wrong -- duh... I'm SUCH a user... ;) If I'm right, I'll let ya know. :) Susan H. Hi Susan Then, in the report, can't you sort and group by =Weekday(YourDate, [YourSelectedFirstWeekday]) /gustav > That's what I'd rather do, simply because it leaves fewer holes. > Susan H. > Hi Susan > Your method looks longwinded but not weird. If it works fast and well > I would leave it, though I'm sure another method could be found where > you adjust the grouping in the report directly. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Apr 19 14:43:53 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 19 Apr 2004 12:43:53 -0700 Subject: [AccessD] custom sorts/groups in a report Message-ID: You can only group and sort on a field or an expression involving a field, and no, you can't use variables. Had you mentioned the variable before? Why not just create a "week" field in the query and group and sort on that calculated field. Then you could use your variable to create a filter for the particular week in question. Charlotte Foust -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Monday, April 19, 2004 11:21 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] custom sorts/groups in a report But I've tried and it won't take it. The OpenArgs argument passes the value I use in all of the date functions. If I refer to is as a variable =DatePart("ww",field,int) I get a parameter prompt asking for int. I even tried setting a text control to the openargs value and referring to that =Date("ww", field, txt) Either way, the sorting and grouping dialog doesn't like it and shows a parameter prompt asking for txt. Everything I've read says the sorting/grouping needs to refer to a field. I was trying to avoid having to pass the firstdayoftheweek to the query itself, but I guess that's an option. I guess I could pass the value to the underlying query and run the week number calculation in the query, instead of in the report. Susan H. Susan, You sort/group on a calculated expression by entering that expression in the grouping and sorting dialog Charlotte Foust -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Monday, April 19, 2004 9:28 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] custom sorts/groups in a report Well, checked again -- unless I'm just missing something, I don't know how to group/sort by a calculated control within the report itself. Susan H. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Monday, April 19, 2004 1:17 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] custom sorts/groups in a report Gustav, I've not been able to sort by a calculated control -- wait... I think I've been doing it wrong -- duh... I'm SUCH a user... ;) If I'm right, I'll let ya know. :) Susan H. Hi Susan Then, in the report, can't you sort and group by =Weekday(YourDate, [YourSelectedFirstWeekday]) /gustav > That's what I'd rather do, simply because it leaves fewer holes. > Susan H. > Hi Susan > Your method looks longwinded but not weird. If it works fast and well > I would leave it, though I'm sure another method could be found where > you adjust the grouping in the report directly. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Mon Apr 19 14:52:29 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Mon, 19 Apr 2004 15:52:29 -0400 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: Message-ID: <20040419195228.FRTV1779.imf21aec.mail.bellsouth.net@SUSANONE> You can only group and sort on a field or an expression involving a field, and no, you can't use variables. Had you mentioned the variable before? Why not just create a "week" field in the query and group and sort on that calculated field. Then you could use your variable to create a filter for the particular week in question. ============I'm passing the firstdayoftheweek value from a form to the report -- the report's based on a query. So that's the quandry. That's what I mentioned in my last message -- the only way I can see around it is to pass the value to the query and run the expressions in the query first. I'm not sure I know how to do that really -- I have never passed anything to a query before -- just called functions from a query. And in this case, that's what I'm trying to avoid -- calling the function from the query. Susan H. From Susan.Klos at fldoe.org Mon Apr 19 14:39:49 2004 From: Susan.Klos at fldoe.org (Klos, Susan) Date: Mon, 19 Apr 2004 15:39:49 -0400 Subject: [AccessD] RE: AccessD Digest, Vol 14, Issue 31 Message-ID: <01B619CB8F6C8C478EDAC39191AEC51E0410CB@DOESEFPEML02.EUS.FLDOE.INT> Robert, I need 71 identical tables because I am getting the same structure Excel file from 71 districts. The structure is the same but the data is different. I want to be able to loop through the tables and append their records to one table. Susan Klos Senior Database Analyst Evaluation and Reporting Florida Department of Education -----Original Message----- From: accessd-request at databaseadvisors.com [mailto:accessd-request at databaseadvisors.com] Sent: Monday, April 19, 2004 1:00 PM To: accessd at databaseadvisors.com Subject: AccessD Digest, Vol 14, Issue 31 Send AccessD mailing list submissions to accessd at databaseadvisors.com To subscribe or unsubscribe via the World Wide Web, visit http://databaseadvisors.com/mailman/listinfo/accessd or, via email, send a message with subject or body 'help' to accessd-request at databaseadvisors.com You can reach the person managing the list at accessd-owner at databaseadvisors.com When replying, please edit your Subject line so it is more specific than "Re: Contents of AccessD digest..." Today's Topics: 1. Re: custom sorts/groups in a report (Gustav Brock) 2. Re: Calendar Controls -- just for discussion (William Hindman) 3. ODE HElp problem (Susan Harkins) 4. RE: custom sorts/groups in a report (Susan Harkins) 5. A summary of the great Open Source discussion (Jim Lawrence (AccessD)) 6. Re: Calendar Controls -- just for discussion (Rocky Smolin - Beach Access Software) 7. Re: About Manuals for your databases X posted (Rocky Smolin - Beach Access Software) 8. Re: Calendar Controls -- just for discussion (Bryan Carbonnell) 9. Re: Calendar Controls -- just for discussion (Rocky Smolin - Beach Access Software) 10. Re: Calendar Controls -- just for discussion (Bryan Carbonnell) 11. RE: Calendar Controls -- just for discussion (Andy Lacey) 12. error in code (Pedro Janssen) 13. RE: error in code (Susan Harkins) 14. Re: error in code (Bryan Carbonnell) 15. Re: error in code (Stuart McLachlan) 16. RE: About Manuals for your databases X posted (Porter, Mark) 17. Error 3265. Item not found in this collection?!!? (S D) 18. Re: custom sorts/groups in a report (Gustav Brock) 19. Re: Error 3265. Item not found in this collection?!!? (S D) 20. Re: Calendar Controls -- just for discussion (Darren DICK) 21. Re: Changing the table in a query so I can loop through thequery (Robert L. Stewart) 22. RE: About Manuals for your databases X posted (Dan Waters) 23. RE: custom sorts/groups in a report (Susan Harkins) 24. Re: custom sorts/groups in a report (Gustav Brock) 25. RE: Sorting and restricting ComboBox on ListBox content s (DWUTKA at marlow.com) 26. RE: Calendar Controls -- just for discussion (DWUTKA at marlow.com) 27. RE: About Manuals for your databases X posted (Charlotte Foust) 28. RE: jpg Screen shot (O'Connor, Patricia ) ---------------------------------------------------------------------- Message: 1 Date: Sun, 18 Apr 2004 18:59:33 +0200 From: Gustav Brock Subject: Re: [AccessD] custom sorts/groups in a report To: Access Developers discussion and problem solving Message-ID: <1661080363.20040418185933 at cactus.dk> Content-Type: text/plain; charset=us-ascii Hi Susan > I'm still not happy with the solution -- there's got to be an easier way. :) Maybe. What solution did you settle on? /gustav ------------------------------ Message: 2 Date: Sun, 18 Apr 2004 13:11:53 -0400 From: "William Hindman" Subject: Re: [AccessD] Calendar Controls -- just for discussion To: "Access Developers discussion and problem solving" Message-ID: <002301c42568$3ec91ad0$6101a8c0 at dejpolsys> Content-Type: text/plain; charset="iso-8859-1" ...I've not used the native cal for years ...but there was a period of time with A95/97 that MS changed the way the calendar worked between a number of versions and didn't maintain reverse compatibility ...depending upon which version of the control your users had installed your app might or might not work, a very common problem back then with all ActiveX controls (I don't use any 3rd party ActiveX controls for the same reason) ...so I switched to a vba based one and never looked back ...and no, I can't tell you the problems have or have not been resolved ...I'm happy with my calendar ...its been tweaked to work exactly the way I want it to :) William Hindman "Always code as if the person who is maintaining or testing your code is a violent psychopath who knows where you live." William Silverstein ----- Original Message ----- From: "Susan Harkins" To: "'Access Developers discussion and problem solving'" Sent: Sunday, April 18, 2004 12:48 PM Subject: RE: [AccessD] Calendar Controls -- just for discussion > ...first ...I don't use the ODE Calendar Control because of a long history > of versioning problems > > ===========I'm limited -- I write about what they want. :) So, when you > complain of versioning problems, what do you mean? > > Susan H. > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ------------------------------ Message: 3 Date: Sun, 18 Apr 2004 13:41:30 -0400 From: "Susan Harkins" Subject: [AccessD] ODE HElp problem To: "'Access Developers discussion and problem solving'" Message-ID: <20040418174130.YNQF1810.imf18aec.mail.bellsouth.net at SUSANONE> Content-Type: text/plain; charset="us-ascii" I just installed Office XP Developer and the Help files don't work -- the interface is there and the toc is there -- but it isn't connecting and every subject returns a page not found error. I don't even know where to begin to start. Anyone else had this happen? Susan H. ------------------------------ Message: 4 Date: Sun, 18 Apr 2004 13:52:24 -0400 From: "Susan Harkins" Subject: RE: [AccessD] custom sorts/groups in a report To: "'Access Developers discussion and problem solving'" Message-ID: <20040418175224.YQKA1810.imf18aec.mail.bellsouth.net at SUSANONE> Content-Type: text/plain; charset="us-ascii" Well, it's clunky -- 1.) User selects the first day of the week from a list of Sunday through Saturday. 2.) User clicks a command button that opens the report and sends the above selected value via the OpenArgs argument. 3.) The report is based on a query that calls a function that uses the value selected in #1 to return a weekday value for each date. 4.) The report's grouping is first set to year. The second level groups on the weekday value returned by #3. And, a third sorting level simply sorts the date values so it all comes out in the wash. 5.) The group header contains a value that uses the openargs value in a DatePart expression to return the first day of the week for each group. You can use the report without the form and it will default to a firstdayoftheweek value of 1 -- to avoid errors and to make it easier to use the report without going through the form -- that way you could set the default to anything and the user could just open the report. Seems like it ought to be easier than that though -- just too much going on. #3's the one I don't really like. Seems like I ought to be able to get that weekday number in the report, and although I can -- I can't sort by it. Someone mentioned yesterday that you could group on a calculation, but I've not figured that one out yet. I tried setting it using the GroupLevel and GroupOn properties, but never got it to work -- not saying it won't, just I wasn't successful. I didn't spend much time on it though. My understanding of the GroupOn property is that it needs to refer to a specific integer value that represents the built-in levels (Month, Year, Quarter, and so on). I never could get it to accept a DatePart expression. Susan H. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Sunday, April 18, 2004 1:00 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] custom sorts/groups in a report Hi Susan > I'm still not happy with the solution -- there's got to be an easier > way. :) Maybe. What solution did you settle on? /gustav -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ------------------------------ Message: 5 Date: Sun, 18 Apr 2004 11:43:07 -0700 From: "Jim Lawrence (AccessD)" Subject: [AccessD] A summary of the great Open Source discussion To: Access Developers discussion and problem solving Message-ID: Content-Type: text/plain; charset=iso-8859-1 Hi All: A couple of weeks ago, there was an Open Source debate encapsulated much of the points of view that have been argued for years. I was so impressed, with the conciseness and objectiveness of the discussion that I decided to put the results in a single page and post the summary to the DBA web site. You can get access to the page through a link off the main page www.databaseadvisors.com. (If your browser saves pages you may have to press reset/reload to view the current layout.) Thank you all for your contributions, Susan Harkin, who started the whole thing, Stuart McLachlan, Bryan Carbonnell, Francisco H Tapia, Bruce Bruen, Bob Hall, Drew Wutka, Marty Connelly and Arthur Fuller. If there is anyone I overlooked or comments I missed, send me a note and you will be appropriately accommodated. Again, thanks to all. Jim ------------------------------ Message: 6 Date: Sun, 18 Apr 2004 12:48:33 -0700 From: "Rocky Smolin - Beach Access Software" Subject: Re: [AccessD] Calendar Controls -- just for discussion To: "Access Developers discussion and problem solving" Message-ID: <00df01c4257e$2230ff80$6601a8c0 at HAL9002> Content-Type: text/plain; charset="iso-8859-1" I use the ADH calendar and trigger it on the double-click of any date text box. So they can still hand enter the date if they want. Users seem to like the convention once they get used to it. Rocky Smolin Beach Access Software http://www.e-z-mrp.com > > ----- Original Message ----- > From: "Susan Harkins" > To: "'Access Developers discussion and problem solving'" > > Sent: Sunday, April 18, 2004 12:48 PM > Subject: RE: [AccessD] Calendar Controls -- just for discussion > > > > ...first ...I don't use the ODE Calendar Control because of a long history > > of versioning problems > > > > ===========I'm limited -- I write about what they want. :) So, when you > > complain of versioning problems, what do you mean? > > > > 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 > ------------------------------ Message: 7 Date: Sun, 18 Apr 2004 12:53:29 -0700 From: "Rocky Smolin - Beach Access Software" Subject: Re: [AccessD] About Manuals for your databases X posted To: "Access Developers discussion and problem solving" Message-ID: <00f701c4257e$d2a17480$6601a8c0 at HAL9002> Content-Type: text/plain; charset="iso-8859-1" Joe: I wrote a manual for the manufacturing system last year. Just about committed suicide but got it done. For a product I think you need one. But for a one-shot app I never write them. I tried to be consistent about the headings so that I could do an automatic table of contents and that worked out pretty well. And a different style for the figures and tables so I could auto-produce a list of figures as well. Haven't done an index, however. I'd be glad to send you a copy off-line if it would be useful to you. HTH Rocky Smolin Beach Access Software http://www.e-z-mrp.com ----- Original Message ----- From: "Joe Hecht" To: "'ACCESS-L'" ; "AccessD" Sent: Saturday, April 17, 2004 11:44 PM Subject: [AccessD] About Manuals for your databases X posted > How many of you right them? > > Do you right users and developers manuals that explain your hows and > whys? > > In my forms, I do things like make non-visible fields red and bold just > so they are easier to see if they are buried under other controls. > > Just wondering > > JOE HECHT > LOS ANGELES CA > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ------------------------------ Message: 8 Date: Sun, 18 Apr 2004 15:57:53 -0400 From: "Bryan Carbonnell" Subject: Re: [AccessD] Calendar Controls -- just for discussion To: Access Developers discussion and problem solving Message-ID: <4082A581.7252.F87E02 at localhost> Content-Type: text/plain; charset=US-ASCII On 18 Apr 2004 at 12:48, Rocky Smolin - Beach Access S wrote: > I use the ADH calendar and trigger it on the double-click of any date > text box. So they can still hand enter the date if they want. Users > seem to like the convention once they get used to it. I use the ADH one too. I actually place a button right beside the textbox so that the calendar can be opened without taking your hands off the keyboard. -- Bryan Carbonnell - carbonnb at sympatico.ca Don't take life too seriously. You won't get out alive. ------------------------------ Message: 9 Date: Sun, 18 Apr 2004 14:11:22 -0700 From: "Rocky Smolin - Beach Access Software" Subject: Re: [AccessD] Calendar Controls -- just for discussion To: "Access Developers discussion and problem solving" Message-ID: <015b01c42589$b3bde390$6601a8c0 at HAL9002> Content-Type: text/plain; charset="iso-8859-1" Bryan: So is that button the next control in the tab sequence after the text box which would contain a date so the user can then TAB to it and press Enter? Rocky ----- Original Message ----- From: "Bryan Carbonnell" To: "Access Developers discussion and problem solving" Sent: Sunday, April 18, 2004 12:57 PM Subject: Re: [AccessD] Calendar Controls -- just for discussion > On 18 Apr 2004 at 12:48, Rocky Smolin - Beach Access S wrote: > > > I use the ADH calendar and trigger it on the double-click of any date > > text box. So they can still hand enter the date if they want. Users > > seem to like the convention once they get used to it. > > I use the ADH one too. I actually place a button right beside the > textbox so that the calendar can be opened without taking your hands > off the keyboard. > > -- > Bryan Carbonnell - carbonnb at sympatico.ca > Don't take life too seriously. You won't get out alive. > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ------------------------------ Message: 10 Date: Sun, 18 Apr 2004 17:27:00 -0400 From: "Bryan Carbonnell" Subject: Re: [AccessD] Calendar Controls -- just for discussion To: Access Developers discussion and problem solving Message-ID: <4082BA64.21526.14A13BF at localhost> Content-Type: text/plain; charset=US-ASCII On 18 Apr 2004 at 14:11, Rocky Smolin - Beach Access S wrote: > So is that button the next control in the tab sequence after the text > box which would contain a date so the user can then TAB to it and > press Enter? I'm not sure if enter works, I always use the space bar to activate the button, but yes that's the concept. The button is the next item in the tab order. The user would press space/enter and the calendar form opens, or they can just tab through the button if they type the date manually. -- Bryan Carbonnell - carbonnb at sympatico.ca Normal people worry me. ------------------------------ Message: 11 Date: Sun, 18 Apr 2004 23:00:43 +0100 From: "Andy Lacey" Subject: RE: [AccessD] Calendar Controls -- just for discussion To: "'Access Developers discussion and problem solving'" Message-ID: <000601c42590$98900470$b274d0d5 at minster33c3r25> Content-Type: text/plain; charset="US-ASCII" > I use a modified version of Drew's old mini-calendar which is all VBA, dead reliable, and very fast. Ditto (and thanks to Drew) -- 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: 18 April 2004 17:42 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Calendar Controls -- just for discussion > > > ...first ...I don't use the ODE Calendar Control because of a > long history of versioning problems ...even when you wrap it > in a class you're app is still vulnerable ...besides it being > slow ...I use a modified version of Drew's old mini-calendar > which is all VBA, dead reliable, and very fast. > > ...second (this has been discussed here recently but under > another thread > topic) ...I much prefer data integrity over speed but its not > necessary to sacrifice one for the other ...I always force > user date entry from a pop-up calendar ...the calendar > pops-up at the bottom right of the text box with the current > date defaulted ...if the current date is what is required > ...a dblclick gets the date entered and tabs to the next > control ...if not, the cal responds to either mouse (slow) or > keyboard (fast) for date selection. > > ...purists will try and tell you that such an approach slows > keyboarders down and they won't accept it ...I disagree > ...once the keyboarders get used to the keyboard strokes that > control the cal it is in most cases just as fast as them > entering it directly ...BUT ...big one ...the forced calendar > usage eliminates most date errors from users who enter/read > dates differently ...and the difference between error/dirty > data correction time and getting it right the first time > weighs heavily in favor of using a cal control over straight > user date entry. > > William Hindman > "Always code as if the person who is maintaining or testing > your code is a violent psychopath who knows where you live." > William Silverstein > > > ----- Original Message ----- > From: "Susan Harkins" > To: "'Access Developers discussion and problem solving'" > > Sent: Sunday, April 18, 2004 11:44 AM > Subject: [AccessD] Calendar Controls -- just for discussion > > > > I'm writing about the ODE Calendar Control and I'm curious > how many of > > you use Calendar controls in your apps. > > > > I've had people complain about them -- they'd actually > enter the dates > > themselves because they find the break in their data entry routines > annoying > > -- from a data integrity point of view I can see the value of the > > controls > > -- but how do you convince people to use them? > > > > 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 > > ------------------------------ Message: 12 Date: Mon, 19 Apr 2004 00:17:55 +0200 From: "Pedro Janssen" Subject: [AccessD] error in code To: Message-ID: <000801c42593$219ec510$f4c581d5 at pedro> Content-Type: text/plain; charset="iso-8859-1" Hello Group, why isn't this part of a code not working for i = 1 To 9 If "chb" & i & "c31") = True Then .Item("Code" & i).Value = "** geen code" End If Next i the error is: Error 13, Description: Type Mismatch TIA Pedro Janssen ------------------------------ Message: 13 Date: Sun, 18 Apr 2004 18:41:41 -0400 From: "Susan Harkins" Subject: RE: [AccessD] error in code To: "'Access Developers discussion and problem solving'" Message-ID: <20040418224141.TSEN1714.imf16aec.mail.bellsouth.net at SUSANONE> Content-Type: text/plain; charset="US-ASCII" for i = 1 To 9 If "chb" & i & "c31") = True Then Your condition is never going to equal true -- but rather a cancatenated string. Although, I think the code's missing soemthing -- you've got a ) that doesn't make sense in its position, but I suspect that's just a typo and probably isn't your actual error is it? Susan H. ------------------------------ Message: 14 Date: Sun, 18 Apr 2004 18:46:46 -0400 From: "Bryan Carbonnell" Subject: Re: [AccessD] error in code To: Access Developers discussion and problem solving Message-ID: <4082CD16.31909.1931CA1 at localhost> Content-Type: text/plain; charset=US-ASCII On 19 Apr 2004 at 0:17, Pedro Janssen wrote: > why isn't this part of a code not working > > for i = 1 To 9 > If "chb" & i & "c31") = True Then > .Item("Code" & i).Value = "** geen code" > End If > Next i Pedro, I am assuming that chb* are checkboxes. If so, try: If me.controls("chb" & i & "c31") = True Then You also have a closing ) on the ofiginal If Then line. -- Bryan Carbonnell - carbonnb at sympatico.ca I am a nobody, and nobody is perfect; therefore, I am perfect. ------------------------------ Message: 15 Date: Mon, 19 Apr 2004 09:52:42 +1000 From: "Stuart McLachlan" Subject: Re: [AccessD] error in code To: Access Developers discussion and problem solving Message-ID: <4083A16A.23848.32CE49 at localhost> Content-Type: text/plain; charset=US-ASCII On 19 Apr 2004 at 0:17, Pedro Janssen wrote: > Hello Group, > > why isn't this part of a code not working > > for i = 1 To 9 > If "chb" & i & "c31") = True Then > .Item("Code" & i).Value = "** geen code" > End If > Next i > > the error is: Error 13, Description: Type Mismatch > Apart from the problems mentioned by others (the missing "(", the missing "me.controls" or "." before "chb1"), this will result in spaces in your control names ie "chb 1c31" to "chb 9c31" and "Code 1" to "Code 9" UNless you do have spaces in the control names, you need to use Format(i) or similar to get rid of the leading space. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. ------------------------------ Message: 16 Date: Sun, 18 Apr 2004 15:42:33 -0800 From: "Porter, Mark" Subject: RE: [AccessD] About Manuals for your databases X posted To: "Access Developers discussion and problem solving" Message-ID: Content-Type: text/plain; charset="iso-8859-1" I charge the same hourly rate for documentation as I do for coding. Then I strongly suggest that they produce their own. I've never been asked to produce documentation (user docs) yet. Mark -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Saturday, April 17, 2004 10:44 PM To: 'ACCESS-L'; AccessD Subject: [AccessD] About Manuals for your databases X posted How many of you right them? Do you right users and developers manuals that explain your hows and whys? In my forms, I do things like make non-visible fields red and bold just so they are easier to see if they are buried under other controls. Just wondering JOE HECHT LOS ANGELES CA -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com **************************************************************************** ******* 18/4/2004 This transmittal may contain confidential information intended solely for the addressee. If you are not the intended recipient, you are hereby notified that you have received this transmittal in error; any review, dissemination, distribution or copying of this transmittal is strictly prohibited. If you have received this communication in error, please notify us immediately by reply or by telephone (collect at 907-564-1000) and ask to speak with the message sender. In addition, please immediately delete this message and all attachments. Thank you. ACS ------------------------------ Message: 17 Date: Mon, 19 Apr 2004 01:44:05 -0700 (PDT) From: S D Subject: [AccessD] Error 3265. Item not found in this collection?!!? To: accessd Message-ID: <20040419084405.36072.qmail at web61105.mail.yahoo.com> Content-Type: text/plain; charset=us-ascii Hi group, a user reported an error. The error message displayed the following info: Source: DAO.Fields Number: 3265 Description: Item not found in this collection Call Stack: Switchdatabase.Message_Check_GAS.Check1015 Switchdatabase.Form_frm_GAS_GENERATE.cmdGenerate_Click The line that causes the error is (see code below for details): rv = MsgBox("Duplicate value!! Delete original record?" & vbCr _ , vbYesNo, "Answer question") WHY does this occur? The user is using Win NT. The error does NOT occur on Win2000. We never had this problem before, not on NT and not on Win2000. Please advise! TIA Sander This is the code that caused the problem: Public Function Check_1015(msgtype As String) As String Dim Status As String Dim rs, rsb As Recordset Dim db As Database Dim teller, i As Long Dim rv As String On Error GoTo Check_1015_Error Status = "Ok" If msgtype = "I" Then ... ... Set rsb = db.OpenRecordset("Select * from V4_GAS_Bronbestand_Verhuizingen where connect_EAN = '" & rs!Connect_EAN & "'", dbReadOnly) If rsb.EOF = False Then rv = MsgBox("Duplicate value!! Delete original record?" & vbCr _ , vbYesNo, "Answer question") .... --------------------------------- Do you Yahoo!? Yahoo! Photos: High-quality 4x6 digital prints for 25? ------------------------------ Message: 18 Date: Mon, 19 Apr 2004 11:11:01 +0200 From: Gustav Brock Subject: Re: [AccessD] custom sorts/groups in a report To: Access Developers discussion and problem solving Message-ID: <1918237935.20040419111101 at cactus.dk> Content-Type: text/plain; charset=us-ascii Hi Susan Your method looks longwinded but not weird. If it works fast and well I would leave it, though I'm sure another method could be found where you adjust the grouping in the report directly. /gustav > Well, it's clunky -- > 1.) User selects the first day of the week from a list of Sunday through > Saturday. > 2.) User clicks a command button that opens the report and sends the above > selected value via the OpenArgs argument. > 3.) The report is based on a query that calls a function that uses the value > selected in #1 to return a weekday value for each date. > 4.) The report's grouping is first set to year. The second level groups on > the weekday value returned by #3. And, a third sorting level simply sorts > the date values so it all comes out in the wash. > 5.) The group header contains a value that uses the openargs value in a > DatePart expression to return the first day of the week for each group. > You can use the report without the form and it will default to a > firstdayoftheweek value of 1 -- to avoid errors and to make it easier to use > the report without going through the form -- that way you could set the > default to anything and the user could just open the report. > Seems like it ought to be easier than that though -- just too much going on. > #3's the one I don't really like. Seems like I ought to be able to get that > weekday number in the report, and although I can -- I can't sort by it. > Someone mentioned yesterday that you could group on a calculation, but I've > not figured that one out yet. I tried setting it using the GroupLevel and > GroupOn properties, but never got it to work -- not saying it won't, just I > wasn't successful. I didn't spend much time on it though. My understanding > of the GroupOn property is that it needs to refer to a specific integer > value that represents the built-in levels (Month, Year, Quarter, and so on). > I never could get it to accept a DatePart expression. > Susan H. > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Sunday, April 18, 2004 1:00 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] custom sorts/groups in a report > Hi Susan >> I'm still not happy with the solution -- there's got to be an easier >> way. :) > Maybe. What solution did you settle on? > /gustav ------------------------------ Message: 19 Date: Mon, 19 Apr 2004 02:34:38 -0700 (PDT) From: S D Subject: Re: [AccessD] Error 3265. Item not found in this collection?!!? To: Access Developers discussion and problem solving Message-ID: <20040419093438.7994.qmail at web61102.mail.yahoo.com> Content-Type: text/plain; charset=us-ascii Hi group, I found the freaking error. This app is sooooo buggy! There was a reference (not displayed in the code below) to a field called Net_op_EAN...the CORRECT field name is NetOp_Ean. Question: "Has this functionality EVER worked before?" (this is a standard question for this app :-( User response: "Yes, we use this functionality on a daily basis!" Yeah right: Tables are empty, log is empty and output directory is empty. Grrrr. Anyway its job that pays the bills. Sander S D wrote: Hi group, a user reported an error. The error message displayed the following info: Source: DAO.Fields Number: 3265 Description: Item not found in this collection Call Stack: Switchdatabase.Message_Check_GAS.Check1015 Switchdatabase.Form_frm_GAS_GENERATE.cmdGenerate_Click The line that causes the error is (see code below for details): rv = MsgBox("Duplicate value!! Delete original record?" & vbCr _ , vbYesNo, "Answer question") WHY does this occur? The user is using Win NT. The error does NOT occur on Win2000. We never had this problem before, not on NT and not on Win2000. Please advise! TIA Sander This is the code that caused the problem: Public Function Check_1015(msgtype As String) As String Dim Status As String Dim rs, rsb As Recordset Dim db As Database Dim teller, i As Long Dim rv As String On Error GoTo Check_1015_Error Status = "Ok" If msgtype = "I" Then ... ... Set rsb = db.OpenRecordset("Select * from V4_GAS_Bronbestand_Verhuizingen where connect_EAN = '" & rs!Connect_EAN & "'", dbReadOnly) If rsb.EOF = False Then rv = MsgBox("Duplicate value!! Delete original record?" & vbCr _ , vbYesNo, "Answer question") .... --------------------------------- Do you Yahoo!? Yahoo! Photos: High-quality 4x6 digital prints for 25? -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Yahoo! Photos: High-quality 4x6 digital prints for 25? ------------------------------ Message: 20 Date: Mon, 19 Apr 2004 14:53:33 +1000 From: "Darren DICK" Subject: Re: [AccessD] Calendar Controls -- just for discussion To: "Access Developers discussion and problem solving" Message-ID: <00c001c42608$f7e59a70$0b669a89 at DDICK> Content-Type: text/plain; charset="iso-8859-1" I give 'em both. Both straight data entry and a calendar They can do data entry straight into the control or double click to get a VBA only calendar. (Won't touch the OCX ones anymore) I also have a small popup that provides some of the basic date ranges IE 1st or 2nd or 3rd etc quarter of current or last year All Year, all last year. This month, last month, Last week this week, Next week, next month, today etc. All available with checkboxes. Click a check and the dates are determined and results put into txtStartDate and txtEndDate controls Works a treat HTH Darren ----- Original Message ----- From: "Susan Harkins" To: "'Access Developers discussion and problem solving'" Sent: Monday, April 19, 2004 1:44 AM Subject: [AccessD] Calendar Controls -- just for discussion > I'm writing about the ODE Calendar Control and I'm curious how many of you > use Calendar controls in your apps. > > I've had people complain about them -- they'd actually enter the dates > themselves because they find the break in their data entry routines annoying > -- from a data integrity point of view I can see the value of the controls > -- but how do you convince people to use them? > > Susan H. > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com ------------------------------ Message: 21 Date: Mon, 19 Apr 2004 08:20:00 -0500 From: "Robert L. Stewart" Subject: [AccessD] Re: Changing the table in a query so I can loop through thequery To: accessd at databaseadvisors.com Message-ID: <5.1.0.14.2.20040419081850.02b22e48 at pop3.highstream.net> Content-Type: text/plain; charset="us-ascii"; format=flowed Susan, If you have 71 identical tables, you have a design problem. Why do you need 71 tables with the same information? Robert At 12:00 PM 4/18/2004 -0500, you wrote: >Date: Sat, 17 Apr 2004 16:59:29 -0400 >From: "Susan Harkins" >Subject: RE: [AccessD] Changing the table in a query so I can loop > through thequery >To: "'Access Developers discussion and problem solving'" > >Message-ID: > <20040417205929.PLEB1773.imf19aec.mail.bellsouth.net at SUSANONE> >Content-Type: text/plain; charset="US-ASCII" > >I'm sorry, not an UPDATE, but a SQL INSERT INTO > >Susan H. > >I have an append query that can work for 71 tables. I want to create a for >next loop function that will substitute the table names (they are numbers) >each time it loops. Can someone help me? I do not quite have the query def >thing down and I think I need to use it here. Each table has the same >fields. ------------------------------ Message: 22 Date: Mon, 19 Apr 2004 08:31:36 -0500 From: "Dan Waters" Subject: RE: [AccessD] About Manuals for your databases X posted To: "'Access Developers discussion and problem solving'" Message-ID: <001601c42612$a3831480$de1811d8 at danwaters> Content-Type: text/plain; charset="us-ascii" I write a manual for every process module. Managers want them available, and I want to be able to refer to the manual instead of being told that they can't figure it out. I write a Word document that contains all the detail a user would need. The module contains a Manual hyperlink button so it can be pulled up at any time. The manuals are typically 10 - 25 pages long. I also use the manual as a QC tool for myself. As I write it, I double check the system to be sure it does just what the manual says. Dan Waters -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Joe Hecht Sent: Sunday, April 18, 2004 1:44 AM To: 'ACCESS-L'; AccessD Subject: [AccessD] About Manuals for your databases X posted How many of you right them? Do you right users and developers manuals that explain your hows and whys? In my forms, I do things like make non-visible fields red and bold just so they are easier to see if they are buried under other controls. Just wondering JOE HECHT LOS ANGELES CA -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ------------------------------ Message: 23 Date: Mon, 19 Apr 2004 09:45:57 -0400 From: "Susan Harkins" Subject: RE: [AccessD] custom sorts/groups in a report To: "'Access Developers discussion and problem solving'" Message-ID: <20040419134556.DMSZ1832.imf22aec.mail.bellsouth.net at SUSANONE> Content-Type: text/plain; charset="US-ASCII" That's what I'd rather do, simply because it leaves fewer holes. Susan H. Hi Susan Your method looks longwinded but not weird. If it works fast and well I would leave it, though I'm sure another method could be found where you adjust the grouping in the report directly. /gustav > Well, it's clunky -- > 1.) User selects the first day of the week from a list of Sunday > through Saturday. > 2.) User clicks a command button that opens the report and sends the > above selected value via the OpenArgs argument. > 3.) The report is based on a query that calls a function that uses the > value selected in #1 to return a weekday value for each date. > 4.) The report's grouping is first set to year. The second level > groups on the weekday value returned by #3. And, a third sorting level > simply sorts the date values so it all comes out in the wash. > 5.) The group header contains a value that uses the openargs value in > a DatePart expression to return the first day of the week for each group. > You can use the report without the form and it will default to a > firstdayoftheweek value of 1 -- to avoid errors and to make it easier > to use the report without going through the form -- that way you could > set the default to anything and the user could just open the report. > Seems like it ought to be easier than that though -- just too much going on. > #3's the one I don't really like. Seems like I ought to be able to get > that weekday number in the report, and although I can -- I can't sort by it. > Someone mentioned yesterday that you could group on a calculation, but > I've not figured that one out yet. I tried setting it using the > GroupLevel and GroupOn properties, but never got it to work -- not > saying it won't, just I wasn't successful. I didn't spend much time on > it though. My understanding of the GroupOn property is that it needs > to refer to a specific integer value that represents the built-in levels (Month, Year, Quarter, and so on). > I never could get it to accept a DatePart expression. > Susan H. > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav > Brock > Sent: Sunday, April 18, 2004 1:00 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] custom sorts/groups in a report > Hi Susan >> I'm still not happy with the solution -- there's got to be an easier >> way. :) > Maybe. What solution did you settle on? > /gustav -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ------------------------------ Message: 24 Date: Mon, 19 Apr 2004 16:04:56 +0200 From: Gustav Brock Subject: Re: [AccessD] custom sorts/groups in a report To: Access Developers discussion and problem solving Message-ID: <12825873634.20040419160456 at cactus.dk> Content-Type: text/plain; charset=us-ascii Hi Susan Then, in the report, can't you sort and group by =Weekday(YourDate, [YourSelectedFirstWeekday]) /gustav > That's what I'd rather do, simply because it leaves fewer holes. > Susan H. > Hi Susan > Your method looks longwinded but not weird. If it works fast and well I > would leave it, though I'm sure another method could be found where you > adjust the grouping in the report directly. ------------------------------ Message: 25 Date: Mon, 19 Apr 2004 09:42:19 -0500 From: DWUTKA at marlow.com Subject: RE: [AccessD] Sorting and restricting ComboBox on ListBox content s To: accessd at databaseadvisors.com Message-ID: <2F8793082E00D4119A1700B0D0216BF802227ADF at main2.marlow.com> Content-Type: text/plain; charset="iso-8859-1" Did you try 'First'? Again, it is going to be dependant on how Access actually 'sees' the data. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Hewson Sent: Friday, April 16, 2004 7:12 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Sorting and restricting ComboBox on ListBox contents Thanks, Drew and Gustav for responding. I tried Max, but sometimes the ID I need is in the middle of the IDs. I didn't think about using Top, I'll try that. thanks again. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock Sent: Friday, April 16, 2004 4:42 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Sorting and restricting ComboBox on ListBox contents Hi Jim > I have a list box with over 130 items all rows are distinct but a few columns are duplicates. The ListBox is sorted on two text fields which puts the ID number out of sequence. The ComboBox sorts > and "Groups By" duplicate columns. What I want to do is use the ComboBox to jump to the first instance of one of the duplicate columns. > e.g. > ID CourseName City > 135 CCP EC > 90 DIS EC > 87 DIS MP > 18 DOC CD > 17 DOC SR > 55 DSC M AL > 57 DSC M EC > 43 DSC M MP > 28 DSC M SF > 3 DSC M SR > What I want is: > 135 CCP EC > 90 DIS EC > 18 DOC CD > 55 DSC M AL > 3 DSC M SR > What I get is: > 135 CCP EC > 87 DIS MP > 17 DOC SR > 3 DSC M SR > What needs to be done to what the desired results? As Drew notes, you'll have to pick the sorted values for ID and City for each CourseName. Two subqueries can be used for this: SELECT (SELECT TOP 1 ID FROM tblCourses AS aliC WHERE aliC.CourseName = tblCourses.CourseName ORDER BY City, ID DESC;) AS TopID, CourseName, (SELECT TOP 1 City FROM tblCourses AS aliC WHERE aliC.CourseName = tblCourses.CourseName ORDER BY City, ID DESC;) AS TopCity FROM tblCourses GROUP BY CourseName; Have fun! /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 ------------------------------ Message: 26 Date: Mon, 19 Apr 2004 09:47:47 -0500 From: DWUTKA at marlow.com Subject: RE: [AccessD] Calendar Controls -- just for discussion To: accessd at databaseadvisors.com Message-ID: <2F8793082E00D4119A1700B0D0216BF802227AE0 at main2.marlow.com> Content-Type: text/plain; charset="iso-8859-1" You're quite welcome. As soon as life settles down, I'll finish up the new version. Which is keyboard friendly too! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey Sent: Sunday, April 18, 2004 5:01 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Calendar Controls -- just for discussion > I use a modified version of Drew's old mini-calendar which is all VBA, dead reliable, and very fast. Ditto (and thanks to Drew) -- 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: 18 April 2004 17:42 > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Calendar Controls -- just for discussion > > > ...first ...I don't use the ODE Calendar Control because of a > long history of versioning problems ...even when you wrap it > in a class you're app is still vulnerable ...besides it being > slow ...I use a modified version of Drew's old mini-calendar > which is all VBA, dead reliable, and very fast. > > ...second (this has been discussed here recently but under > another thread > topic) ...I much prefer data integrity over speed but its not > necessary to sacrifice one for the other ...I always force > user date entry from a pop-up calendar ...the calendar > pops-up at the bottom right of the text box with the current > date defaulted ...if the current date is what is required > ...a dblclick gets the date entered and tabs to the next > control ...if not, the cal responds to either mouse (slow) or > keyboard (fast) for date selection. > > ...purists will try and tell you that such an approach slows > keyboarders down and they won't accept it ...I disagree > ...once the keyboarders get used to the keyboard strokes that > control the cal it is in most cases just as fast as them > entering it directly ...BUT ...big one ...the forced calendar > usage eliminates most date errors from users who enter/read > dates differently ...and the difference between error/dirty > data correction time and getting it right the first time > weighs heavily in favor of using a cal control over straight > user date entry. > > William Hindman > "Always code as if the person who is maintaining or testing > your code is a violent psychopath who knows where you live." > William Silverstein > > > ----- Original Message ----- > From: "Susan Harkins" > To: "'Access Developers discussion and problem solving'" > > Sent: Sunday, April 18, 2004 11:44 AM > Subject: [AccessD] Calendar Controls -- just for discussion > > > > I'm writing about the ODE Calendar Control and I'm curious > how many of > > you use Calendar controls in your apps. > > > > I've had people complain about them -- they'd actually > enter the dates > > themselves because they find the break in their data entry routines > annoying > > -- from a data integrity point of view I can see the value of the > > controls > > -- but how do you convince people to use them? > > > > 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 > > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ------------------------------ Message: 27 Date: Mon, 19 Apr 2004 08:50:40 -0700 From: "Charlotte Foust" Subject: RE: [AccessD] About Manuals for your databases X posted To: "Access Developers discussion and problem solving" Message-ID: Content-Type: text/plain; charset="us-ascii" I do NOT write developer manuals, although I do create user help files. Any developer notes are in the comments in code, but those are for me, not for other developers ... Unless I step in front of a bus. Charlotte Foust -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Saturday, April 17, 2004 10:44 PM To: 'ACCESS-L'; AccessD Subject: [AccessD] About Manuals for your databases X posted How many of you right them? Do you right users and developers manuals that explain your hows and whys? In my forms, I do things like make non-visible fields red and bold just so they are easier to see if they are buried under other controls. Just wondering JOE HECHT LOS ANGELES CA -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ------------------------------ Message: 28 Date: Mon, 19 Apr 2004 12:28:21 -0400 From: "O'Connor, Patricia " Subject: RE: [AccessD] jpg Screen shot To: "Access Developers discussion and problem solving" Message-ID: Content-Type: text/plain; charset="US-ASCII" Rocky, We use printkey 2000 (full). It allows us to print the entire screen, the active window, crop, cut, then copy/paste stuff into word documents, powerpoint, emails, etc. Patti > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Rocky Smolin - Beach Access Software > Sent: Thursday, April 15, 2004 04:31 PM > To: AccessD at databaseadvisors.com > Subject: [AccessD] jpg Screen shot > > Dear List: > > A magazine wants a screen shot from my software and they > would like it to be 300dpi. > > What's the best way to get that off the screen and into a jpg? > > MTIA, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > ------------------------------ _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd End of AccessD Digest, Vol 14, Issue 31 *************************************** From Mark.Mitsules at ngc.com Mon Apr 19 15:10:22 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Mon, 19 Apr 2004 16:10:22 -0400 Subject: [AccessD] Report Page Header Message-ID: First, a really stupid question...why is it that Access reports do not have a "Detail Header" section? It seems simple and to the point for a lot of what I do when grouping is not needed. Second, when printing a report, what is the syntax to check if there are no detail records on the page and suppress the Page Header if there are none? Mark From Patricia.O'Connor at dfa.state.ny.us Mon Apr 19 15:30:34 2004 From: Patricia.O'Connor at dfa.state.ny.us (O'Connor, Patricia ) Date: Mon, 19 Apr 2004 16:30:34 -0400 Subject: [AccessD] RE: AccessD Digest, Vol 14, Issue 31 Message-ID: Susan Are you using VB or are you using the import wizard. Do you have the code for getting a table? I do something similar but with text files. What are the name of the files? Patti > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Klos, Susan > Sent: Monday, April 19, 2004 03:40 PM > To: 'accessd at databaseadvisors.com' > Subject: [AccessD] RE: AccessD Digest, Vol 14, Issue 31 > > Robert, I need 71 identical tables because I am getting the > same structure > Excel file from 71 districts. The structure is the same but > the data is > different. I want to be able to loop through the tables and > append their > records to one table. > > Susan Klos > Senior Database Analyst > Evaluation and Reporting > Florida Department of Education > > From cfoust at infostatsystems.com Mon Apr 19 15:29:56 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 19 Apr 2004 13:29:56 -0700 Subject: [AccessD] custom sorts/groups in a report Message-ID: Sorry, Susan, but I just tuned in. I'm not clear on what you're doing so I'm not being much help. I do dynamic reports for a week period and pass the start date to my report then let the report determine what day that is and populate an appropriate series of label captions to match. I base it on a crosstab query, rebuilt for each report run, that uses dates as column headings and uses parameters to filter the dates. I set the SQL for that crosstab query each time I use a form to call the report (no hand tweaking), and I generate an IN list of dates in the specified range to create the column headings. I then use code in the Report_Open event to determine which field to bind to which control in the detail of the report. Is that kind of what you're attempting to do? Charlotte Foust -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Monday, April 19, 2004 11:52 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] custom sorts/groups in a report You can only group and sort on a field or an expression involving a field, and no, you can't use variables. Had you mentioned the variable before? Why not just create a "week" field in the query and group and sort on that calculated field. Then you could use your variable to create a filter for the particular week in question. ============I'm passing the firstdayoftheweek value from a form to the report -- the report's based on a query. So that's the quandry. That's what I mentioned in my last message -- the only way I can see around it is to pass the value to the query and run the expressions in the query first. I'm not sure I know how to do that really -- I have never passed anything to a query before -- just called functions from a query. And in this case, that's what I'm trying to avoid -- calling the function from the query. Susan H. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Mon Apr 19 15:41:16 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Mon, 19 Apr 2004 16:41:16 -0400 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: Message-ID: <20040419204116.NEMD1818.imf25aec.mail.bellsouth.net@SUSANONE> Egads... :) All I want is to group/sort a report based on the week -- but the first day of the week needs to be dynamic. The user chooses the first day of the week and the report sorts/groups accordingly. For instance, if the user chooses Wednesday, each group begins with a Wed and ends with a Tuesday. Right now, the process begins with the simple "pick a day" form, which runs the report -- that's based on a query that calls a function to return the "ww" component for each date in the query, so the report can then group on that value -- in the report that Jack built. Seems like a long way around to go to me. It does work and it isn't horribly slow or anything. It just seems inefficient to me that I can't get all that done in the report or the query without the aid of calling that function. That's where the openargs comes in -- I've tried passing the firstdayoftheweek value to the report and calculating the "ww" components in the report, but I can't get the report to then sort on those "ww" values because of the sorting limitations. I just don't believe that the solution I've come up with is the most efficient, even if it does work. Susan H. Sorry, Susan, but I just tuned in. I'm not clear on what you're doing so I'm not being much help. I do dynamic reports for a week period and pass the start date to my report then let the report determine what day that is and populate an appropriate series of label captions to match. I base it on a crosstab query, rebuilt for each report run, that uses dates as column headings and uses parameters to filter the dates. I set the SQL for that crosstab query each time I use a form to call the report (no hand tweaking), and I generate an IN list of dates in the specified range to create the column headings. I then use code in the Report_Open event to determine which field to bind to which control in the detail of the report. Is that kind of what you're attempting to do? Charlotte Foust -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Monday, April 19, 2004 11:52 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] custom sorts/groups in a report You can only group and sort on a field or an expression involving a field, and no, you can't use variables. Had you mentioned the variable before? Why not just create a "week" field in the query and group and sort on that calculated field. Then you could use your variable to create a filter for the particular week in question. ============I'm passing the firstdayoftheweek value from a form to the report -- the report's based on a query. So that's the quandry. That's what I mentioned in my last message -- the only way I can see around it is to pass the value to the query and run the expressions in the query first. I'm not sure I know how to do that really -- I have never passed anything to a query before -- just called functions from a query. And in this case, that's what I'm trying to avoid -- calling the function from the query. 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 rl_stewart at highstream.net Mon Apr 19 15:52:39 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Mon, 19 Apr 2004 15:52:39 -0500 Subject: [AccessD] Re: Changing the table in a query so I can loopthrough thequery In-Reply-To: <200404192042.i3JKg7B23548@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040419155057.02af21f8@pop3.highstream.net> Ken, You have been in my SIG long enough to know that is a resounding YES, it is a bad design. But, do you actually populate all 140 tables with the same data like she is doing? Robert At 03:42 PM 4/19/2004 -0500, you wrote: >Date: Mon, 19 Apr 2004 12:19:09 -0500 >From: "Ken Ismert" >Subject: RE: [AccessD] Re: Changing the table in a query so I can > loopthrough thequery >To: "'Access Developers discussion and problem solving'" > >Message-ID: <005401c42632$6d9702d0$2a3ca8c0 at TEXASSYSTEMS.COM> >Content-Type: text/plain; charset="us-ascii" > > >Well, I've been shepherding a db with almost 140 identical tables. Maybe >twice the design problem? I inherited it three years ago, and it soon became >clear that the cost to redo it 'properly' was too high. Perhaps in another >three years the opportunity will present itself. > >-Ken From rl_stewart at highstream.net Mon Apr 19 15:56:43 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Mon, 19 Apr 2004 15:56:43 -0500 Subject: [AccessD] Re: Changing the table in a query so I can loopthrough thequery In-Reply-To: <200404192042.i3JKg7B23548@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040419155452.048d1d10@pop3.highstream.net> Susan, From what I read below, you can distinguish which excel file is from which district. Why not just append them to the single table and use the distinguishing factor to pass in the value of the "district" as part of the INSERT SQL statement? Robert At 03:42 PM 4/19/2004 -0500, you wrote: >Date: Mon, 19 Apr 2004 15:39:49 -0400 >From: "Klos, Susan" >Subject: [AccessD] RE: AccessD Digest, Vol 14, Issue 31 >To: "'accessd at databaseadvisors.com'" >Message-ID: > <01B619CB8F6C8C478EDAC39191AEC51E0410CB at DOESEFPEML02.EUS.FLDOE.INT> >Content-Type: text/plain; charset="iso-8859-1" > >Robert, I need 71 identical tables because I am getting the same structure >Excel file from 71 districts. The structure is the same but the data is >different. I want to be able to loop through the tables and append their >records to one table. > >Susan Klos >Senior Database Analyst >Evaluation and Reporting >Florida Department of Education From rl_stewart at highstream.net Mon Apr 19 16:01:02 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Mon, 19 Apr 2004 16:01:02 -0500 Subject: [AccessD] Re: Report Page Header In-Reply-To: <200404192042.i3JKg7B23548@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040419155819.049243e0@pop3.highstream.net> In a band report writer, which Access is, the detail header is in the grouping header just above it. You have to make it visible. There is a event in the report for No data. You would put code in that event to handle what ever you wanted to do there. Robert At 03:42 PM 4/19/2004 -0500, you wrote: >Date: Mon, 19 Apr 2004 16:10:22 -0400 >From: "Mitsules, Mark S. (Newport News)" >Subject: [AccessD] Report Page Header >To: "'[AccessD]'" >Message-ID: >Content-Type: text/plain > >First, a really stupid question...why is it that Access reports do not have >a "Detail Header" section? It seems simple and to the point for a lot of >what I do when grouping is not needed. > > >Second, when printing a report, what is the syntax to check if there are no >detail records on the page and suppress the Page Header if there are none? > > From MPorter at acsalaska.com Mon Apr 19 15:47:10 2004 From: MPorter at acsalaska.com (Porter, Mark) Date: Mon, 19 Apr 2004 12:47:10 -0800 Subject: [AccessD] RE: AccessD Digest, Vol 14, Issue 31 Message-ID: Susan, I have not seen your prior conversation, and have no knowledge of other details on this outside of this post, but if this solution was presented to me I would be very inclined to rethink it. Although you have multiple input files, you only have a single file structure to deal with. I would recommend pulling all files into a single table initially, with an extra field in the table indicating the source or district. This leaves you with one import routine (file name and path as a paramater) and one data structure to deal with. Ask yourself, what happens when they restructure or add districts in the future? Or when you have to alter the data structure for any reason? Your structure quickly becomes a monster requiring exponentially more support. If you have to perform complex data cleansing on the base data before it is appended to the single master table, you can utilize a single staging table for your file load, and a cleansing routine for your append. Mark > -----Original Message----- > From: Klos, Susan [mailto:Susan.Klos at fldoe.org] > Sent: Monday, April 19, 2004 11:40 AM > To: 'accessd at databaseadvisors.com' > Subject: [AccessD] RE: AccessD Digest, Vol 14, Issue 31 > > > Robert, I need 71 identical tables because I am getting the > same structure > Excel file from 71 districts. The structure is the same but > the data is > different. I want to be able to loop through the tables and > append their > records to one table. > > Susan Klos > Senior Database Analyst > Evaluation and Reporting > Florida Department of Education > > *********************************************************************************** 19/4/2004 This transmittal may contain confidential information intended solely for the addressee. If you are not the intended recipient, you are hereby notified that you have received this transmittal in error; any review, dissemination, distribution or copying of this transmittal is strictly prohibited. If you have received this communication in error, please notify us immediately by reply or by telephone (collect at 907-564-1000) and ask to speak with the message sender. In addition, please immediately delete this message and all attachments. Thank you. ACS From bchacc at san.rr.com Mon Apr 19 16:10:41 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Mon, 19 Apr 2004 14:10:41 -0700 Subject: [AccessD] Report Page Header References: Message-ID: <01f901c42652$c5c0fef0$6601a8c0@HAL9002> Mark: Do you mean no data for the whole report? If so you can use the No Data event and issue a DoCmd.CancelEvent command. That will cancel the whole report. Mostly I then have to trap the error 2105 in the calling form. But what condition would give you on some detail records on some pages and not others? Rocky ----- Original Message ----- From: "Mitsules, Mark S. (Newport News)" To: "'[AccessD]'" Sent: Monday, April 19, 2004 1:10 PM Subject: [AccessD] Report Page Header > First, a really stupid question...why is it that Access reports do not have > a "Detail Header" section? It seems simple and to the point for a lot of > what I do when grouping is not needed. > > > Second, when printing a report, what is the syntax to check if there are no > detail records on the page and suppress the Page Header if there are none? > > > > Mark > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Patricia.O'Connor at dfa.state.ny.us Mon Apr 19 16:24:03 2004 From: Patricia.O'Connor at dfa.state.ny.us (O'Connor, Patricia ) Date: Mon, 19 Apr 2004 17:24:03 -0400 Subject: [AccessD] RE: AccessD Digest, Vol 14, Issue 31 Message-ID: SUSAN OOPS - read your post wrong - I have input files from the counties that go into ONE table. I use the county id code to identify where it came from as I insert the the records into the table. You really should only have 1 table if all the data is the same at the end point. I can understand having several input files since ours come in at different times. Patti ----------------------------------------------------------------- Susan Are you using VB or are you using the import wizard. Do you have the code for getting a table? I do something similar but with text files. What are the name of the files? Patti > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Klos, Susan > Sent: Monday, April 19, 2004 03:40 PM > To: 'accessd at databaseadvisors.com' > Subject: [AccessD] RE: AccessD Digest, Vol 14, Issue 31 > > Robert, I need 71 identical tables because I am getting the > same structure > Excel file from 71 districts. The structure is the same but > the data is > different. I want to be able to loop through the tables and > append their > records to one table. > > Susan Klos > Senior Database Analyst > Evaluation and Reporting > Florida Department of Education > > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pedro at plex.nl Mon Apr 19 16:59:19 2004 From: pedro at plex.nl (Pedro Janssen) Date: Mon, 19 Apr 2004 23:59:19 +0200 Subject: [AccessD] error in code References: <4082CD16.31909.1931CA1@localhost> Message-ID: <000501c42659$b1a8c8b0$f7c581d5@pedro> Hello, thanks for those who responded. Me.Controls and getting rid of the spaces did the trick. Pedro Janssen ----- Original Message ----- From: "Bryan Carbonnell" To: "Access Developers discussion and problemsolving" Sent: Monday, April 19, 2004 12:46 AM Subject: Re: [AccessD] error in code > On 19 Apr 2004 at 0:17, Pedro Janssen wrote: > > > why isn't this part of a code not working > > > > for i = 1 To 9 > > If "chb" & i & "c31") = True Then > > .Item("Code" & i).Value = "** geen code" > > End If > > Next i > > Pedro, > > I am assuming that chb* are checkboxes. If so, try: > > If me.controls("chb" & i & "c31") = True Then > > You also have a closing ) on the ofiginal If Then line. > > -- > Bryan Carbonnell - carbonnb at sympatico.ca > I am a nobody, and nobody is perfect; therefore, I am perfect. > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From jwcolby at colbyconsulting.com Mon Apr 19 22:12:18 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Mon, 19 Apr 2004 23:12:18 -0400 Subject: [AccessD] RE: AccessD Digest, Vol 14, Issue 31 In-Reply-To: <01B619CB8F6C8C478EDAC39191AEC51E0410CB@DOESEFPEML02.EUS.FLDOE.INT> Message-ID: Susan, The way that I deal with this is that I COPY the file to a common name, perhaps CountyData.XLS. Then I link that file to the FE. Build my queries to suck the data out. Run them. Then there is just a copy of whatever the next file name is to CountyData.XLS and run the queries over again. You need a means of interpreting some part of the original file name so that you can set the "county field". Do that 71 times and you are done. One table name, one set of queries, one function for pulling the county name into an aliased query field, one routine that copies the file to a common name / location. Is this a manual process? Is there a naming convention in the excel files? If not just throw all of the excel files in a directory, copy each one out to an archive directory, adding the yyyymmdd string to the name, either at the beginning or the end (helps sort the files in date order). Also do the copy to a common location / name. Now write an iterator that finds every file in the directory and copies it to archive / common name - location, deleting the file in the original directory. When no files remain, you are done. In order to do this you must have some identifying string in the file name however, perhaps the county name as the first N characters. That allows the code to build the "missing" field that is the county in the destination table. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Klos, Susan Sent: Monday, April 19, 2004 3:40 PM To: 'accessd at databaseadvisors.com' Subject: [AccessD] RE: AccessD Digest, Vol 14, Issue 31 Robert, I need 71 identical tables because I am getting the same structure Excel file from 71 districts. The structure is the same but the data is different. I want to be able to loop through the tables and append their records to one table. Susan Klos Senior Database Analyst Evaluation and Reporting Florida Department of Education From jmhla at earthlink.net Tue Apr 20 00:09:41 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Mon, 19 Apr 2004 22:09:41 -0700 Subject: [AccessD] cbo after adding data question Message-ID: <000501c42695$b3109ed0$6501a8c0@delllaptop> I have a combo box that pulls up matching records on a form. The data source is a SQL statement not a query. After the record is entered where and how should I write the requry statement to add the record to the combo box? JOE HECHT LOS ANGELES CA From pharryecoenen at btinternet.com Tue Apr 20 02:51:45 2004 From: pharryecoenen at btinternet.com (Harry Coenen) Date: Tue, 20 Apr 2004 08:51:45 +0100 Subject: [AccessD] RE: AccessD Digest, Vol 14, Issue 31 In-Reply-To: Message-ID: Dear Susan My 2 eurocents, after Jonh Colby's two dollars: Assuming the following procedure: For each period: a. dump all files in a standard period directory b. get access to read the directory until there are no files left (probably it is usefull to read all the filenames in a table and use this thable for further processing) For each file in directory c. attach each table to the database d. run the append Next file Next period Following the code for the append '+*define vars dim strInsertTable as string dim strFromTable as string dim strSQL, strSQLinsert, strSQLselect, strSQLfrom, strSQLcriteria as string '-*define vars '+*Initialise vars strFromTable = "tblFromData" strInsertTable = "tblInsertedData" strSQL ="" strSQLinsert = "" strSQLselect = "" strSQLfrom = "" strSQLcriteria = "" '-*Initialise vars 'create query string strSQLinsert = strSQLinsert & " INSERT INTO [" & strInsertTable & "] ( SourceTableName, CustID, CustName ) " strSQLselect = strSQLselect & " SELECT " strSQLselect = strSQLselect & "'" & strFromTable & "' AS FromTable, " strSQLselect = strSQLselect & "[" & strFromTable & "].CustID, " strSQLselect = strSQLselect & "[" & strFromTable & "].CustName " strSQLfrom = strSQLfrom & " FROM " & strFromTable strSQL = strSQLinsert & strSQLselect & strSQLfrom & strSQLcriteria & ";" 'attach string strSQL to a querydef and run it ' Note: I usually use a hidden tmpQuery for this and set its SQL property to ' CurrentDb.QueryDefs("tmpQuery").SQL = strSQL ' CurrentDb.QueryDefs("tmpQuery").Execute ' Or shorter: DoCmd.SetWarnings False 'suppress warnings about action queries DoCmd.RunSQL strSQL DoCmd.SetWarnings True 'switch warning on again Notes: - the barckets [] are included to allow names with spaces and other special characters - the apostrophe between quotes "'" followed by the tablename and closed again with "' should return the tablename between quotes. - As noted by another listmember, you probably have to do some checking on data quality. Personally I would push that to the delivering agents, e.g. by spending some time developing consistency checking in the Excel templates they use for delivery. Regards Harry Coenen >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >John W. Colby >Sent: Tuesday, April 20, 2004 4:12 AM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] RE: AccessD Digest, Vol 14, Issue 31 > > >Susan, > >The way that I deal with this is that I COPY the file to a common name, >perhaps CountyData.XLS. Then I link that file to the FE. >Build my queries >to suck the data out. Run them. Then there is just a copy of >whatever the >next file name is to CountyData.XLS and run the queries over >again. You >need a means of interpreting some part of the original file >name so that you >can set the "county field". Do that 71 times and you are >done. One table >name, one set of queries, one function for pulling the county >name into an >aliased query field, one routine that copies the file to a >common name / >location. > >Is this a manual process? Is there a naming convention in the >excel files? > >If not just throw all of the excel files in a directory, copy >each one out >to an archive directory, adding the yyyymmdd string to the >name, either at >the beginning or the end (helps sort the files in date order). > Also do the >copy to a common location / name. Now write an iterator that >finds every >file in the directory and copies it to archive / common name - >location, >deleting the file in the original directory. When no files >remain, you are >done. In order to do this you must have some identifying >string in the file >name however, perhaps the county name as the first N characters. That >allows the code to build the "missing" field that is the county in the >destination table. > > >John W. Colby >www.ColbyConsulting.com > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Klos, Susan >Sent: Monday, April 19, 2004 3:40 PM >To: 'accessd at databaseadvisors.com' >Subject: [AccessD] RE: AccessD Digest, Vol 14, Issue 31 > > >Robert, I need 71 identical tables because I am getting the >same structure >Excel file from 71 districts. The structure is the same but >the data is >different. I want to be able to loop through the tables and >append their >records to one table. > >Susan Klos >Senior Database Analyst >Evaluation and Reporting >Florida Department of Education > > > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > From gustav at cactus.dk Tue Apr 20 03:52:09 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 20 Apr 2004 10:52:09 +0200 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: References: Message-ID: <517039742.20040420105209@cactus.dk> Hi Susan Perhaps you On_Open of the report could set the value of a textbox to the value of your chosen FirstDayOfWeek retrieved from your form; then use the value of this textbox as a parameter in the function you use for grouping/sorting in your report. /gustav > Sorry, Susan, but I just tuned in. > I'm not clear on what you're doing so I'm not being much help. I do > dynamic reports for a week period and pass the start date to my report > then let the report determine what day that is and populate an > appropriate series of label captions to match. I base it on a crosstab > query, rebuilt for each report run, that uses dates as column headings > and uses parameters to filter the dates. I set the SQL for that > crosstab query each time I use a form to call the report (no hand > tweaking), and I generate an IN list of dates in the specified range to > create the column headings. I then use code in the Report_Open event to > determine which field to bind to which control in the detail of the > report. Is that kind of what you're attempting to do? > Charlotte Foust > -----Original Message----- > From: Susan Harkins [mailto:ssharkins at bellsouth.net] > Sent: Monday, April 19, 2004 11:52 AM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] custom sorts/groups in a report > You can only group and sort on a field or an expression involving a > field, and no, you can't use variables. Had you mentioned the variable > before? Why not just create a "week" field in the query and group and > sort on that calculated field. Then you could use your variable to > create a filter for the particular week in question. > ============I'm passing the firstdayoftheweek value from a form to the > report -- the report's based on a query. So that's the quandry. That's > what I mentioned in my last message -- the only way I can see around it > is to pass the value to the query and run the expressions in the query > first. I'm not sure I know how to do that really -- I have never passed > anything to a query before -- just called functions from a query. And in > this case, that's what I'm trying to avoid -- calling the function from > the query. > Susan H. From andy at minstersystems.co.uk Tue Apr 20 05:19:05 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Tue, 20 Apr 2004 10:19:05 +0000 Subject: [AccessD] cbo after adding data question Message-ID: <20040420091903.C4D9D2537F4@smtp.nildram.co.uk> Hi Joe If you have one or two places on the form which can add/alter records and therefore require the cbo to be requeried then just add: me!cboWhatever.Requery at the end of those routines. Alternatively, and as long as it doesn't cause too much of an overhead, you can place: me.ActiveControl.Requery in the OnGotFocus of the combo itself. You may do more requeries than are strictly necessary this way, but it pretty much ensures that the combo sees everything it should. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: AccessD Subject: [AccessD] cbo after adding data question Date: 20/04/04 06:53 > > I have a combo box that pulls up matching records on a form. The data source > is a SQL statement not a query. > > > > After the record is entered where and how should I write the requry > statement to add the record to the combo box? > > > > JOE HECHT > > LOS ANGELES CA > > > > -- > _______________________________________________ > 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 Mark.Mitsules at ngc.com Tue Apr 20 06:41:58 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Tue, 20 Apr 2004 07:41:58 -0400 Subject: [AccessD] Report Page Header Message-ID: The condition where detail records may not exist on the last page of a report occurs because I have included a sub report in the report footer which may or may not fit in the available space left over after the details have completed printing. Mark ...yikes, seems like a run-on sentence, but also appears to be grammatically correct? :) -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Monday, April 19, 2004 5:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Report Page Header Mark: Do you mean no data for the whole report? If so you can use the No Data event and issue a DoCmd.CancelEvent command. That will cancel the whole report. Mostly I then have to trap the error 2105 in the calling form. But what condition would give you on some detail records on some pages and not others? Rocky ----- Original Message ----- From: "Mitsules, Mark S. (Newport News)" To: "'[AccessD]'" Sent: Monday, April 19, 2004 1:10 PM Subject: [AccessD] Report Page Header > First, a really stupid question...why is it that Access reports do not have > a "Detail Header" section? It seems simple and to the point for a lot of > what I do when grouping is not needed. > > > Second, when printing a report, what is the syntax to check if there are no > detail records on the page and suppress the Page Header if there are none? > > > > 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 paul.hartland at fsmail.net Tue Apr 20 06:48:01 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 20 Apr 2004 13:48:01 +0200 (CEST) Subject: [AccessD] Using WinZip With Access Message-ID: <4879913.1082461681903.JavaMail.www@wwinf3004> To all, I?m sure one of you out there must have done/attempted this before, I have an export button on my switchboard which exports two text files (ShiftData and DowntimeData) using the TransferText method. I also have a copy of WinZip 8.0 (or close) installed. What I would like to do is once the text files have been exported I would like to zip them, has anyone any examples etc that I may look at to achieve this. Also would I also need to download the command line interface for WinZip as well ? Thanks in advance for any help on this. Paul Hartland Database Designer/Developer. Join the UK's number one for the internet www.freeserve.com/time From ssharkins at bellsouth.net Tue Apr 20 06:56:31 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 20 Apr 2004 07:56:31 -0400 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <517039742.20040420105209@cactus.dk> Message-ID: <20040420115630.XNDF1778.imf18aec.mail.bellsouth.net@SUSANONE> Already tried it -- didn't work. Access will not group on a calculated control. Susan H. Hi Susan Perhaps you On_Open of the report could set the value of a textbox to the value of your chosen FirstDayOfWeek retrieved from your form; then use the value of this textbox as a parameter in the function you use for grouping/sorting in your report. From bheid at appdevgrp.com Tue Apr 20 07:00:38 2004 From: bheid at appdevgrp.com (Bobby Heid) Date: Tue, 20 Apr 2004 08:00:38 -0400 Subject: [AccessD] Using WinZip With Access In-Reply-To: <916187228923D311A6FE00A0CC3FAA3082E3B6@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA305BB44B@ADGSERVER> Hi Paul, First of all, you need to get version 9.0 of WinZip. It is a free upgrade. There was a security issue with all versions below 9.0. I have not programmatically done what you are talking about, but I have used the command line version of WinZip to zip various stuff up. I use batch files to run them. Here are two examples: "C:\Program Files\WinZip\wzzip" -a -spasswordhere psts.zip *.pst "C:\Program Files\WinZip\wzzip" -a willis.zip willis.pst The first example shows how to Add all *.PST files to an archive (or create it new if it does not exist) while password protecting the zip file. The second example is just adding willis.pst to willis.zip. If I was you, I would create a batch file with the zip commands and whatever else you need. Then I would use the shell command from Access to call the batch file. I do not have any examples handy of the shell command, but if you Google it, I'm sure that you'll find something. If you have downloaded the command-line version of WinZip, there should be two files that explain the zip and unzip functions. Let me know if you have any other questions. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: Tuesday, April 20, 2004 7:48 AM To: accessd Subject: [AccessD] Using WinZip With Access To all, I'm sure one of you out there must have done/attempted this before, I have an export button on my switchboard which exports two text files (ShiftData and DowntimeData) using the TransferText method. I also have a copy of WinZip 8.0 (or close) installed. What I would like to do is once the text files have been exported I would like to zip them, has anyone any examples etc that I may look at to achieve this. Also would I also need to download the command line interface for WinZip as well ? Thanks in advance for any help on this. Paul Hartland Database Designer/Developer. Join the UK's number one for the internet www.freeserve.com/time -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Tue Apr 20 07:03:17 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 20 Apr 2004 14:03:17 +0200 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <20040420115630.XNDF1778.imf18aec.mail.bellsouth.net@SUSANONE> References: <20040420115630.XNDF1778.imf18aec.mail.bellsouth.net@SUSANONE> Message-ID: <7618507963.20040420140317@cactus.dk> Hi Susan It will not be calculated but unbound ... you set the value from code. /gustav > Already tried it -- didn't work. Access will not group on a calculated > control. > Susan H. > Hi Susan > Perhaps you On_Open of the report could set the value of a textbox to the > value of your chosen FirstDayOfWeek retrieved from your form; then use the > value of this textbox as a parameter in the function you use for > grouping/sorting in your report. From Mark.Mitsules at ngc.com Tue Apr 20 07:04:39 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Tue, 20 Apr 2004 08:04:39 -0400 Subject: [AccessD] Re: Report Page Header Message-ID: I realize I can add a group header, but can I do so without actually sorting or grouping? For this report I have the field headers in the page header. I want to be able to suppress that page header when there are no detail records to be printed for that page. This is not the same as on no data. For instance, let's assume a full page of details contains 80 records. The first page, because of the report header can only accommodate 60 records. The last page, because of the size of the report footer, can also accommodate 60 records. If my report only contains 60 records, the report length will still be 2 pages but no details will be on the second page. Currently, because I am utilizing the page header to hold the field headers, the page header will print on the second page. In the above case, how do I suppress the page header if no detail records are on the page? Mark -----Original Message----- From: Robert L. Stewart [mailto:rl_stewart at highstream.net] Sent: Monday, April 19, 2004 5:01 PM To: accessd at databaseadvisors.com Subject: [AccessD] Re: Report Page Header In a band report writer, which Access is, the detail header is in the grouping header just above it. You have to make it visible. There is a event in the report for No data. You would put code in that event to handle what ever you wanted to do there. Robert At 03:42 PM 4/19/2004 -0500, you wrote: >Date: Mon, 19 Apr 2004 16:10:22 -0400 >From: "Mitsules, Mark S. (Newport News)" >Subject: [AccessD] Report Page Header >To: "'[AccessD]'" >Message-ID: >Content-Type: text/plain > >First, a really stupid question...why is it that Access reports do not have >a "Detail Header" section? It seems simple and to the point for a lot of >what I do when grouping is not needed. > > >Second, when printing a report, what is the syntax to check if there are no >detail records on the page and suppress the Page Header if there are none? > > -- _______________________________________________ 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 Apr 20 07:09:02 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 20 Apr 2004 22:09:02 +1000 Subject: [AccessD] Using WinZip With Access In-Reply-To: <4879913.1082461681903.JavaMail.www@wwinf3004> Message-ID: <40859F7E.14268.2CA3E11@localhost> On 20 Apr 2004 at 13:48, paul.hartland at fsmail.net wrote: > To all, I?m sure one of you out there must have done/attempted this > before, I have an export button on my switchboard which exports two > text files (ShiftData and DowntimeData) using the TransferText method. > I also have a copy of WinZip 8.0 (or close) installed. What I would > like to do is once the text files have been exported I would like to > zip them, has anyone any examples etc that I may look at to achieve > this. Also would I also need to download the command line interface > for WinZip as well ? Simplest way is to upgrade to the latest Winzip (ver 9.0) and also grab the "WinZip Command Line Support Add-On". (You current Winzip rego will still be valid with Ver 9.0) Then all you need to do is something like: RetVal = Shell("'C:\Program Files\Winzip\Wzzip.exe' MyFiles.zip File1.txt File2.txt",0) -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From ssharkins at bellsouth.net Tue Apr 20 07:18:03 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 20 Apr 2004 08:18:03 -0400 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <7618507963.20040420140317@cactus.dk> Message-ID: <20040420121802.XUVJ1778.imf18aec.mail.bellsouth.net@SUSANONE> Gustav, I think I must be missing something in this discussion. I hate to bring us to this level, but how would I do that? I can not get the sorting/grouping dialog to accept an unbound control. I guess I'm being truly dull... Originally, I used code to set the value, but I still couldn't group by the results. Susan H. Hi Susan It will not be calculated but unbound ... you set the value from code. /gustav From stuart at lexacorp.com.pg Tue Apr 20 07:35:09 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 20 Apr 2004 22:35:09 +1000 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <20040420115630.XNDF1778.imf18aec.mail.bellsouth.net@SUSANONE> References: <517039742.20040420105209@cactus.dk> Message-ID: <4085A59D.24333.2E22823@localhost> On 20 Apr 2004 at 7:56, Susan Harkins wrote: > Already tried it -- didn't work. Access will not group on a calculated > control. > Yes it will. Try this. 1. Create a static function in a module: Static Function FirstDayOfWeek(Optional DOW As Long = -1) As Long Dim lngDOWStore As Long If DOW > -1 Then lngDOWStore = DOW End If FirstDayOfWeek = lngDOWStore End Function 2. In the Sorting Grouping Window of your report,set the first "Field/Expression" to "=DatePart("ww",[MyDate],FirstDayOfWeek())" and set Group Header = "Yes". Set the second Field/Expression to "MyDate" 3. In the Group header, put a text box with a control source of =" Week No: " & DatePart("ww",[MyDate],FirstDayOfWeek()) 4. In the detail section put a textbox with a control source of [MyDate] 5. Put a button and a Combobox (cboWeekday) on the form you call the report from. Set the combo: Column Count = 2 Column Widths = 0,1 (assuming you are using inches) Row Source Type = Value List Row Source = 1;Sunday;2;Monday;3;Tuesday;4;Wednesday;5;Thursday;6;Friday;7;Saturday 5. In your button on_click event in the form put: Dim lngRetVal as long lngRetVal = FirstDayOfWeek(cboWeekday) Docmd.OpenReport "MyReport",acPreview -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From pharryecoenen at btinternet.com Tue Apr 20 08:42:12 2004 From: pharryecoenen at btinternet.com (Harry Coenen) Date: Tue, 20 Apr 2004 14:42:12 +0100 Subject: [AccessD] Handling strings in VBA SQL scripts? Message-ID: Hi All I am searching for a function that determines the need for barcketing and need for apostrophing/stringing of variable names. For example a tablename stored in variable strTableName with value "table1" would not need bracketing, while value "table 1" definitly needs bracketing, e.g. as part of an SQL string "FROM [" & strTableName & "]". To make it a bit more difficult the value could also be "John's Table". This would cause problems when we need to string the variable in an SQL string, e.g. "SELECT '" & strTableName & "' AS TableName, " would result in "SELECT 'Peter's table' AS FromTable," which obviously is not correct, it should be "SELECT 'Peter''s table' AS FromTable,". It would also cause problems when we decide to code using something like rst(strTableName). Up until now I either avoided the problem by forcing users to use unproblematic names, or developed one of solutions dependent on the data (hoping that they would not change their naming conventions. Thanks to Skrol29 (http://www.skrol29.com/) and Juan M. Af?n deRibera (http://www.mvp-access.com/juanmafan/) I am aware of WizHook.IsValidIdent and WizHook.BracketString for testing valid variable names. But Wizhook is an undocumented feature. I am also aware of tools which "string" a string for you, e.g. CodeCrafter or the MS VBA String Editor that can do this with a static string during design time. But I was wondering if someone has found the time to find a more generic solution. The following gives my proto-analysis: Function OutputString (strInputString as String, Optional intFlag as Integer = 0, Optional strStringChar As String = '"') AS string ' ============================ ' Arguments: ' strInputString : the string to be converted ' intFlag : the type of conversion ' 0 = standard string conversion converting apostrophes ' 1 = just bracketing for filename ' and others that could be useful ' strStringChar : the character to be used as start and close of the string ' standard " '============================ ' PRELIMINARY ANALYSIS ' If intFlag = 1 Then ' check if bracketing is needed ' check for a the appearance of a list of characters in the string (which characters?) ' if one appears, at least bracket ' Else ' if apostrophe appears double it ' Endif End Function Further note: Probably the function should return a Boolean indicating success or failure of the action while the result is transfered to the caller by other means. How? Many thanks in advance Harry Coenen From paul.hartland at fsmail.net Tue Apr 20 08:48:39 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 20 Apr 2004 15:48:39 +0200 (CEST) Subject: [AccessD] Using WinZip With Access Again. Message-ID: <8320091.1082468919101.JavaMail.www@wwinf3003> To all, Thanks for all your help with my last WinZip question, however now I need to know where I am going wrong. I have the following code in my application: Dim strShiftData As String Dim strDownTime As String Dim wzFinal As String Dim wzFiles strShiftData = "C:\Shifts_" & Replace(DATE, "/", "") & "_" & Replace(Time(), ":", "") & ".txt" strDownTime = "C:\Down_" & Replace(DATE, "/", "") & "_" & Replace(Time(), ":", "") & ".txt" DoCmd.TransferText acExportDelim, , "qryNewExportShiftDataToText", strShiftData, True DoCmd.TransferText acExportDelim, , "qryNewExportDownTimeToText", strDownTime, True wzFinal = "C:\Branston" & Replace(DATE, "/", "") & Replace(Time(), ":", "") wzFiles = Shell("C:\Program Files\Winzip\Wzzip.exe " & wzFinal & " " & strShiftData & " " & strDownTime, 0) MsgBox ?Finshed Export?,,?**** User Message ? Export Complete ****? However I can?t seem to see any zip file on my C: drive, and I get no error message. Can someone please see where I am going wrong here. I have WinZip 9.0 and the Command Line Interface installed. Thanks in advance for all your help. Paul Hartland Database Designer/Developer. Join the UK's number one for the internet www.freeserve.com/time From Developer at UltraDNT.com Tue Apr 20 09:06:45 2004 From: Developer at UltraDNT.com (Developer) Date: Tue, 20 Apr 2004 10:06:45 -0400 Subject: [AccessD] Handling strings in VBA SQL scripts? In-Reply-To: Message-ID: <000901c426e0$ba0dc190$6401a8c0@COA3> There's no-harm/no-foul to have extra brackets as a saftey measure. Combined with the Replace function (A2k+) ... I would just do: "SELECT '" & replace(strTableName, "'","''") & "' as tablename " & _ "FROM [" & strTableName & "]" hth Steve -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Harry Coenen Sent: Tuesday, April 20, 2004 9:42 AM To: accessd at databaseadvisors.com Subject: [AccessD] Handling strings in VBA SQL scripts? Hi All I am searching for a function that determines the need for barcketing and need for apostrophing/stringing of variable names. For example a tablename stored in variable strTableName with value "table1" would not need bracketing, while value "table 1" definitly needs bracketing, e.g. as part of an SQL string "FROM [" & strTableName & "]". To make it a bit more difficult the value could also be "John's Table". This would cause problems when we need to string the variable in an SQL string, e.g. "SELECT '" & strTableName & "' AS TableName, " would result in "SELECT 'Peter's table' AS FromTable," which obviously is not correct, it should be "SELECT 'Peter''s table' AS FromTable,". It would also cause problems when we decide to code using something like rst(strTableName). Up until now I either avoided the problem by forcing users to use unproblematic names, or developed one of solutions dependent on the data (hoping that they would not change their naming conventions. Thanks to Skrol29 (http://www.skrol29.com/) and Juan M. Af?n deRibera (http://www.mvp-access.com/juanmafan/) I am aware of WizHook.IsValidIdent and WizHook.BracketString for testing valid variable names. But Wizhook is an undocumented feature. I am also aware of tools which "string" a string for you, e.g. CodeCrafter or the MS VBA String Editor that can do this with a static string during design time. But I was wondering if someone has found the time to find a more generic solution. The following gives my proto-analysis: Function OutputString (strInputString as String, Optional intFlag as Integer = 0, Optional strStringChar As String = '"') AS string ' ============================ ' Arguments: ' strInputString : the string to be converted ' intFlag : the type of conversion ' 0 = standard string conversion converting apostrophes ' 1 = just bracketing for filename ' and others that could be useful ' strStringChar : the character to be used as start and close of the string ' standard " '============================ ' PRELIMINARY ANALYSIS ' If intFlag = 1 Then ' check if bracketing is needed ' check for a the appearance of a list of characters in the string (which characters?) ' if one appears, at least bracket ' Else ' if apostrophe appears double it ' Endif End Function Further note: Probably the function should return a Boolean indicating success or failure of the action while the result is transfered to the caller by other means. How? Many thanks in advance Harry Coenen -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Tue Apr 20 09:12:58 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 20 Apr 2004 16:12:58 +0200 Subject: [AccessD] Handling strings in VBA SQL scripts? In-Reply-To: References: Message-ID: <8226288030.20040420161258@cactus.dk> Hi Harry > I am searching for a function that determines the need for barcketing and > need for apostrophing/stringing of variable names. For example a tablename > stored in variable strTableName with value "table1" would not need > bracketing, while value "table 1" definitly needs bracketing, e.g. as part > of an SQL string "FROM [" & strTableName & "]". Brackets don't harm, so just apply them if you feel they could be needed. > To make it a bit more difficult the value could also be "John's Table". This > would cause problems when we need to string the variable in an SQL string, > e.g. "SELECT '" & strTableName & "' AS TableName, " would result in "SELECT > 'Peter's table' AS FromTable," which obviously is not correct, it should be > "SELECT 'Peter''s table' AS FromTable,". It would also cause problems when > we decide to code using something like rst(strTableName). J?rgen Welz have posted a proven clean-up function for this purpose: A problem with the """" or chr$(34) and such solutions is that if you have a string with apostrophes in it, like "John O'Conner" or "8' 4" Block Wall", the sql/find/dAgg will choke. My users are accustomed to mixing both quotes and apostrophes in their input fields (although we are metric here, we still get a fair bit of feet and inches stuff and our new Seattle office is definitely going to be using imperial units of measure). The 97 ADH has a general solution for fixing mixed quotes and apostrophes.... but it doesn't work. I use: Function fnFixQuotes(Srch As String) As String Dim strout As String Dim Qt As String Dim IntI As Integer Qt = """" For IntI = 1 To Len(Srch) If InStr(Chr$(34), Mid$(Srch, IntI, 1)) Then strout = strout & Chr$(34) & "& Chr$(34) &" & Chr$(34) Else strout = strout & Mid$(Srch, IntI, 1) End If Next fnFixQuotes = Qt & strout & Qt End Function An example of how it's called with wildcards to find a string anywhere in a field: Private Sub txtNameCrit_AfterUpdate() Dim strCrit As String If Not IsNull(Me.txtNameCrit) Then strCrit = Me.txtNameCrit strCrit = fnFixQuotes("*" & strCrit & "*") Else strCrit = "" End If Call GetCompanies(strCrit) End Sub Private Sub GetCompanies(strIn) Dim strSql As String With Me If len(strCrit) Then strSql = "SELECT CompanyID, CompanyName FROM tblCompany WHERE CompanyID > 0 AND " & _ "Deleted = False AND CompanyName Like " & strIn & " ORDER BY CompanyName WITH OWNERACCESS OPTION" .lstAvailable.RowSource = strSql .lstAvailable.SetFocus Else 'sql without criteria End if End With End Sub If you use a function like this to generate your delimiters, it is completely unnecessary to use special delimiters in your sql/find/dAgg code. I've never written a fix to the pipe character (which chokes any sql) but that can be mostly fixed by replacing it a token). You can write a more generic procedure yet that will choose your date or string delimiters and apply them where necessary. I always thought that if you declared a variable as a string, Access should implicitly add the delimiters. It would have been easy enough for them to build in an internal delimiter function to look after this ubiquitous issue. Ciao J?rgen Welz Edmonton, Alberta /gustav From gustav at cactus.dk Tue Apr 20 09:15:51 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 20 Apr 2004 16:15:51 +0200 Subject: [AccessD] Access utils and add-ins (was: Handling strings in VBA SQL scripts?) In-Reply-To: References: Message-ID: <12126461489.20040420161551@cactus.dk> Hi Harry Nice collection of utils, add-ins, and code at those links! /gustav > Thanks to Skrol29 > (http://www.skrol29.com/) > and Juan M. Af?n deRibera > (http://www.mvp-access.com/juanmafan/) .. From Bryan_Carbonnell at cbc.ca Tue Apr 20 09:17:01 2004 From: Bryan_Carbonnell at cbc.ca (Bryan Carbonnell) Date: Tue, 20 Apr 2004 10:17:01 -0400 Subject: [AccessD] Form Opening Time Message-ID: Can anyone explain, or give a possible idea why Turning Jet's SHOWPLAN on in the registry, will make a form open in 1/3 of the time it took prior to turning it on? It now takes about 7 seconds to open, but before it was 22-24 secords. Any ideas? I had turned on SHOWPLAN to try and see if any of the queries were causing the slowdown in opening. Thanks, Bryan Carbonnell bryan_carbonnell at cbc.ca From gustav at cactus.dk Tue Apr 20 09:27:25 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 20 Apr 2004 16:27:25 +0200 Subject: [AccessD] Using WinZip With Access Again. In-Reply-To: <8320091.1082468919101.JavaMail.www@wwinf3003> References: <8320091.1082468919101.JavaMail.www@wwinf3003> Message-ID: <19827155687.20040420162725@cactus.dk> Hi paul First, use Format() for creating strings from dates! Second, you probably need quotes around your file names as some of them contains spaces. Use Debug.Print: strQuote = Chr(34) strCommand = strQuote & "C:\Program Files\Winzip\Wzzip.exe" & strQuote & " " & strQuote & wzFinal & strQuote & " " & strQuote & strShiftData & strQuote & " " & strQuote & strDownTime & strQuote Debug.Print strCommand wzFiles = Shell(strCommand, 0) Remove line breaks above! /gustav > Thanks for all your help with my last WinZip question, however now I need to know where I am going wrong. I have the following code in my application: > Dim strShiftData As String > Dim strDownTime As String > Dim wzFinal As String > Dim wzFiles > strShiftData = "C:\Shifts_" & Replace(DATE, "/", "") & "_" & Replace(Time(), ":", "") & ".txt" > strDownTime = "C:\Down_" & Replace(DATE, "/", "") & "_" & Replace(Time(), ":", "") & ".txt" > DoCmd.TransferText acExportDelim, , "qryNewExportShiftDataToText", strShiftData, True > DoCmd.TransferText acExportDelim, , "qryNewExportDownTimeToText", strDownTime, True > wzFinal = "C:\Branston" & Replace(DATE, "/", "") & Replace(Time(), ":", "") > wzFiles = Shell("C:\Program Files\Winzip\Wzzip.exe " & wzFinal & " " & strShiftData & " " & strDownTime, 0) > MsgBox ?Finshed Export?,,?**** User Message ? Export Complete ****? > However I can?t seem to see any zip file on my C: drive, and I get no error message. Can someone please see where I am going wrong here. I have WinZip 9.0 and the Command Line Interface installed. From ssharkins at bellsouth.net Tue Apr 20 09:36:20 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 20 Apr 2004 10:36:20 -0400 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <4085A59D.24333.2E22823@localhost> Message-ID: <20040420143620.WZYO1779.imf21aec.mail.bellsouth.net@SUSANONE> Try this. 1. Create a static function in a module: Static Function FirstDayOfWeek(Optional DOW As Long = -1) As Long Dim lngDOWStore As Long If DOW > -1 Then lngDOWStore = DOW End If FirstDayOfWeek = lngDOWStore End Function ============I already have a function and it works. You're just moving the function call from the query to the report, but if there's a good development reason for doing so I'm open to it. Susan H. From bchacc at san.rr.com Tue Apr 20 09:42:28 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 20 Apr 2004 07:42:28 -0700 Subject: [AccessD] custom sorts/groups in a report References: <20040420115630.XNDF1778.imf18aec.mail.bellsouth.net@SUSANONE> Message-ID: <00bc01c426e5$b46b8c90$6601a8c0@HAL9002> Susan: When I run into this problem I have to add the calculation to the query that's the recordsource for the report. Then I can group and sort on it. Rocky ----- Original Message ----- From: "Susan Harkins" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, April 20, 2004 4:56 AM Subject: RE: [AccessD] custom sorts/groups in a report > Already tried it -- didn't work. Access will not group on a calculated > control. > > Susan H. > > Hi Susan > > Perhaps you On_Open of the report could set the value of a textbox to the > value of your chosen FirstDayOfWeek retrieved from your form; then use the > value of this textbox as a parameter in the function you use for > grouping/sorting in your report. > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From paul.hartland at fsmail.net Tue Apr 20 09:50:25 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 20 Apr 2004 16:50:25 +0200 (CEST) Subject: [AccessD] Using WinZip With Access Again. Message-ID: <22375148.1082472625109.JavaMail.www@wwinf3003> Thanks for the fast response Gustav, still getting same problem though. Text files exporting but no WinZip file to be seen, and no error message... Message date : Apr 20 2004, 03:37 PM >From : "Gustav Brock" To : "Access Developers discussion and problem solving" Copy to : Subject : Re: [AccessD] Using WinZip With Access Again. Hi paul First, use Format() for creating strings from dates! Second, you probably need quotes around your file names as some of them contains spaces. Use Debug.Print: strQuote = Chr(34) strCommand = strQuote & "C:\Program Files\Winzip\Wzzip.exe" & strQuote & " " & strQuote & wzFinal & strQuote & " " & strQuote & strShiftData & strQuote & " " & strQuote & strDownTime & strQuote Debug.Print strCommand wzFiles = Shell(strCommand, 0) Remove line breaks above! /gustav > Thanks for all your help with my last WinZip question, however now I need to know where I am going wrong. I have the following code in my application: > Dim strShiftData As String > Dim strDownTime As String > Dim wzFinal As String > Dim wzFiles > strShiftData = "C:\Shifts_" & Replace(DATE, "/", "") & "_" & Replace(Time(), ":", "") & ".txt" > strDownTime = "C:\Down_" & Replace(DATE, "/", "") & "_" & Replace(Time(), ":", "") & ".txt" > DoCmd.TransferText acExportDelim, , "qryNewExportShiftDataToText", strShiftData, True > DoCmd.TransferText acExportDelim, , "qryNewExportDownTimeToText", strDownTime, True > wzFinal = "C:\Branston" & Replace(DATE, "/", "") & Replace(Time(), ":", "") > wzFiles = Shell("C:\Program Files\Winzip\Wzzip.exe " & wzFinal & " " & strShiftData & " " & strDownTime, 0) > MsgBox ?Finshed Export?,,?**** User Message ? Export Complete ****? > However I can?t seem to see any zip file on my C: drive, and I get no error message. Can someone please see where I am going wrong here. I have WinZip 9.0 and the Command Line Interface installed. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Join the UK's number one for the internet www.freeserve.com/time From gustav at cactus.dk Tue Apr 20 09:53:14 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 20 Apr 2004 16:53:14 +0200 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <00bc01c426e5$b46b8c90$6601a8c0@HAL9002> References: <20040420115630.XNDF1778.imf18aec.mail.bellsouth.net@SUSANONE> <00bc01c426e5$b46b8c90$6601a8c0@HAL9002> Message-ID: <14628704544.20040420165314@cactus.dk> Hi Rocky > When I run into this problem I have to add the calculation to the query > that's the recordsource for the report. Then I can group and sort on it. Hmmm ... you should sort in the report, not in the query (except for the sorting caused by grouping, of course). /gustav From bheid at appdevgrp.com Tue Apr 20 10:03:40 2004 From: bheid at appdevgrp.com (Bobby Heid) Date: Tue, 20 Apr 2004 11:03:40 -0400 Subject: [AccessD] Using WinZip With Access Again. In-Reply-To: <916187228923D311A6FE00A0CC3FAA3082E443@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA305BB450@ADGSERVER> Using Gustav's code, make sure that you get something out like this in your string: 'C:\Program Files\Winzip\Wzzip.exe' 'C:\Branston0419041100.zip' 'Shiftsxxx' It also looks like your code id not putting a ".zip" on the end of wzfinal. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: Tuesday, April 20, 2004 10:50 AM To: Access Developers discussion and problem solving Subject: Re: Re: [AccessD] Using WinZip With Access Again. Thanks for the fast response Gustav, still getting same problem though. Text files exporting but no WinZip file to be seen, and no error message... Message date : Apr 20 2004, 03:37 PM >From : "Gustav Brock" To : "Access Developers discussion and problem solving" Copy to : Subject : Re: [AccessD] Using WinZip With Access Again. Hi paul First, use Format() for creating strings from dates! Second, you probably need quotes around your file names as some of them contains spaces. Use Debug.Print: strQuote = Chr(34) strCommand = strQuote & "C:\Program Files\Winzip\Wzzip.exe" & strQuote & " " & strQuote & wzFinal & strQuote & " " & strQuote & strShiftData & strQuote & " " & strQuote & strDownTime & strQuote Debug.Print strCommand wzFiles = Shell(strCommand, 0) Remove line breaks above! /gustav > Thanks for all your help with my last WinZip question, however now I > need to know where I am going wrong. I have the following code in my > application: > Dim strShiftData As String > Dim strDownTime As String > Dim wzFinal As String > Dim wzFiles > strShiftData = "C:\Shifts_" & Replace(DATE, "/", "") & "_" & > Replace(Time(), ":", "") & ".txt" strDownTime = "C:\Down_" & > Replace(DATE, "/", "") & "_" & Replace(Time(), ":", "") & ".txt" > DoCmd.TransferText acExportDelim, , "qryNewExportShiftDataToText", > strShiftData, True DoCmd.TransferText acExportDelim, , > "qryNewExportDownTimeToText", strDownTime, True > wzFinal = "C:\Branston" & Replace(DATE, "/", "") & Replace(Time(), > ":", "") > wzFiles = Shell("C:\Program Files\Winzip\Wzzip.exe " & wzFinal & " " & > strShiftData & " " & strDownTime, 0) > MsgBox "Finshed Export",,"**** User Message - Export Complete ****" > However I can't seem to see any zip file on my C: drive, and I get no > error message. Can someone please see where I am going wrong here. I > have WinZip 9.0 and the Command Line Interface installed. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Join the UK's number one for the internet www.freeserve.com/time -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Tue Apr 20 10:19:21 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Tue, 20 Apr 2004 08:19:21 -0700 Subject: [AccessD] custom sorts/groups in a report References: <20040420115630.XNDF1778.imf18aec.mail.bellsouth.net@SUSANONE> <00bc01c426e5$b46b8c90$6601a8c0@HAL9002> <14628704544.20040420165314@cactus.dk> Message-ID: <012201c426ea$db54b160$6601a8c0@HAL9002> Right. Except when I need to sort or group on an unbound control. That's when I have to add it to the query and bind the control to that field in the query. Rocky ----- Original Message ----- From: "Gustav Brock" To: "Access Developers discussion and problem solving" Sent: Tuesday, April 20, 2004 7:53 AM Subject: Re: [AccessD] custom sorts/groups in a report > Hi Rocky > > > When I run into this problem I have to add the calculation to the query > > that's the recordsource for the report. Then I can group and sort on it. > > Hmmm ... you should sort in the report, not in the query (except for > the sorting caused by grouping, of course). > > /gustav > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From paul.hartland at fsmail.net Tue Apr 20 10:39:37 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 20 Apr 2004 17:39:37 +0200 (CEST) Subject: [AccessD] Using WinZip With Access Message-ID: <1861111.1082475577664.JavaMail.www@wwinf3003> To all, Thanks for everybody?s help on this I now know what the problem is. We are using an Evaluation copy of Winzip, if I set the focus of the Shell command below to vbMaximizedFocus: strCommand = "C:\Program Files\Winzip\Wzzip.exe " & wzFinal & " " & strShiftData & " " & strDownTime & vbCrLf wzFiles = Shell(strCommand, vbMaximizedFocus) A message appears in the window with press any key to continue, and if I press any key it works perfect. Is there anyway I can include the keypress into the Shell Command. If I can get this to work automatically then I should be able to convince the powers that be to invest in the fully registered version. Thanks again for everyone?s help on this Paul Hartland Database Designer/Developer Join the UK's number one for the internet www.freeserve.com/time From Mark.Mitsules at ngc.com Tue Apr 20 10:52:27 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Tue, 20 Apr 2004 11:52:27 -0400 Subject: [AccessD] Re: Report Page Header Message-ID: Is there no way to test for detail records printed on a report page, and, then based on that, hide the page header? Mark -----Original Message----- From: Mitsules, Mark Sent: Tuesday, April 20, 2004 8:05 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Re: Report Page Header I realize I can add a group header, but can I do so without actually sorting or grouping? For this report I have the field headers in the page header. I want to be able to suppress that page header when there are no detail records to be printed for that page. This is not the same as on no data. For instance, let's assume a full page of details contains 80 records. The first page, because of the report header can only accommodate 60 records. The last page, because of the size of the report footer, can also accommodate 60 records. If my report only contains 60 records, the report length will still be 2 pages but no details will be on the second page. Currently, because I am utilizing the page header to hold the field headers, the page header will print on the second page. In the above case, how do I suppress the page header if no detail records are on the page? Mark -----Original Message----- From: Robert L. Stewart [mailto:rl_stewart at highstream.net] Sent: Monday, April 19, 2004 5:01 PM To: accessd at databaseadvisors.com Subject: [AccessD] Re: Report Page Header In a band report writer, which Access is, the detail header is in the grouping header just above it. You have to make it visible. There is a event in the report for No data. You would put code in that event to handle what ever you wanted to do there. Robert At 03:42 PM 4/19/2004 -0500, you wrote: >Date: Mon, 19 Apr 2004 16:10:22 -0400 >From: "Mitsules, Mark S. (Newport News)" >Subject: [AccessD] Report Page Header >To: "'[AccessD]'" >Message-ID: >Content-Type: text/plain > >First, a really stupid question...why is it that Access reports do not have >a "Detail Header" section? It seems simple and to the point for a lot of >what I do when grouping is not needed. > > >Second, when printing a report, what is the syntax to check if there are no >detail records on the page and suppress the Page Header if there are none? > > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Tue Apr 20 10:53:47 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 20 Apr 2004 17:53:47 +0200 Subject: [AccessD] Using WinZip With Access In-Reply-To: <1861111.1082475577664.JavaMail.www@wwinf3003> References: <1861111.1082475577664.JavaMail.www@wwinf3003> Message-ID: <1932337508.20040420175347@cactus.dk> Hi paul > Thanks for everybody?s help on this I now know what the problem is. We are using an Evaluation copy of Winzip, if I set the focus of the Shell command below to vbMaximizedFocus: > strCommand = "C:\Program Files\Winzip\Wzzip.exe " & wzFinal & " " & strShiftData & " " & strDownTime & vbCrLf > wzFiles = Shell(strCommand, vbMaximizedFocus) > A message appears in the window with press any key to continue, and if I press any key it works perfect. Is there anyway I can include the keypress into the Shell Command. If I can get this to > work automatically then I should be able to convince the powers that be to invest in the fully registered version. > Thanks again for everyone?s help on this Fine! If you don't need WinZip for anything else than this, do as we do, use a freeware command line zip'er like ZIP.EXE (115 K size only): --- C:\WINNT\TEMP>zip -L Copyright (C) 1990-1997 Mark Adler, Richard B. Wales, Jean-loup Gailly, Onno van der Linden and Kai Uwe Rommel. Type 'zip -L' for the software License. Permission is granted to any individual or institution to use, copy, or redistribute this executable so long as it is not modified and that it is not sold for profit. LIKE ANYTHING ELSE THAT'S FREE, ZIP AND ITS ASSOCIATED UTILITIES ARE PROVIDED AS IS AND COME WITH NO WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED. IN NO EVENT WILL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY DAMAGES RESULTING FROM THE USE OF THIS SOFTWARE. --- Command line for ZIP.EXE is the same as you have already. /gustav From KIsmert at TexasSystems.com Tue Apr 20 11:23:11 2004 From: KIsmert at TexasSystems.com (Ken Ismert) Date: Tue, 20 Apr 2004 11:23:11 -0500 Subject: [AccessD] Re: Changing the table in a query so I canloopthrough thequery In-Reply-To: <5.1.0.14.2.20040419155057.02af21f8@pop3.highstream.net> Message-ID: <001a01c426f3$c6ac5e30$2a3ca8c0@TEXASSYSTEMS.COM> Yes. They are the parts tables for our Bill of Materials system. They are organized by type: tbl023 is Gaskets, tbl076 is Transformers, etc. The tables are structurally identical, with room for 8 attributes. Needless to say, one size does not fit all: tbl006, Elbows, requires 3 attributes, while tbl003, Heaters, requires over 30! The solution to the latter problem is, of course, more bad design: either create an auxiliary table to hold the extra attributes, or dump them into a big note field. Welcome to my inherited mess! -Ken -----Original Message----- From: Robert L. Stewart [mailto:rl_stewart at highstream.net] Sent: Monday, April 19, 2004 3:53 PM To: accessd at databaseadvisors.com Subject: [AccessD] Re: Changing the table in a query so I canloopthrough thequery Ken, You have been in my SIG long enough to know that is a resounding YES, it is a bad design. But, do you actually populate all 140 tables with the same data like she is doing? Robert From gustav at cactus.dk Tue Apr 20 11:27:30 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 20 Apr 2004 18:27:30 +0200 Subject: [AccessD] Re: Report Page Header In-Reply-To: References: Message-ID: <15834360357.20040420182730@cactus.dk> Hi Mark > Is there no way to test for detail records printed on a report page, and, > then based on that, hide the page header? This is not a page header but a group header. Create a dummy group with your labels: Set Field/Expression to =True Set Group Header to Yes. In the report, adjust the group's layout properties: Set Keep Together to False Set Repeat Section to True /gustav > I realize I can add a group header, but can I do so without actually sorting > or grouping? For this report I have the field headers in the page header. > I want to be able to suppress that page header when there are no detail > records to be printed for that page. This is not the same as on no data. > For instance, let's assume a full page of details contains 80 records. The > first page, because of the report header can only accommodate 60 records. > The last page, because of the size of the report footer, can also > accommodate 60 records. If my report only contains 60 records, the report > length will still be 2 pages but no details will be on the second page. > Currently, because I am utilizing the page header to hold the field headers, > the page header will print on the second page. In the above case, how do I > suppress the page header if no detail records are on the page? From pjones at btl.net Tue Apr 20 11:25:14 2004 From: pjones at btl.net (Paul M. Jones) Date: Tue, 20 Apr 2004 10:25:14 -0600 Subject: [AccessD] cbo after adding data question In-Reply-To: <000501c42695$b3109ed0$6501a8c0@delllaptop> References: <000501c42695$b3109ed0$6501a8c0@delllaptop> Message-ID: <6.0.0.22.2.20040420102249.02b72490@btlmail.btl.net> for situations like this I usually place the SQL statement in code rather than the control properties at design time. I then populate the row source on 'enter' of the combo box. Of course there are some overhead associated with this but I always get fresh data. I can also populate the combo box based on values in other fields using this approach. Paul M. Jones At 11:09 PM 04/19/2004, you wrote: >I have a combo box that pulls up matching records on a form. The data source >is a SQL statement not a query. > > > >After the record is entered where and how should I write the requry >statement to add the record to the combo box? > > > >JOE HECHT > >LOS ANGELES CA > > > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Tue Apr 20 11:36:20 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Tue, 20 Apr 2004 11:36:20 -0500 Subject: [AccessD] Using WinZip With Access Message-ID: <2F8793082E00D4119A1700B0D0216BF802227AEE@main2.marlow.com> Winzip is only like $25. I had the same issue, and decided that spending the few bucks to get a registered copy of Winzip was a better 'deal' then wasting time trying to code around the unregistered limitation. Turns out there is a LOT more available in the registered version of Winzip too. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of paul.hartland at fsmail.net Sent: Tuesday, April 20, 2004 10:40 AM To: accessd Subject: [AccessD] Using WinZip With Access To all, Thanks for everybody's help on this I now know what the problem is. We are using an Evaluation copy of Winzip, if I set the focus of the Shell command below to vbMaximizedFocus: strCommand = "C:\Program Files\Winzip\Wzzip.exe " & wzFinal & " " & strShiftData & " " & strDownTime & vbCrLf wzFiles = Shell(strCommand, vbMaximizedFocus) A message appears in the window with press any key to continue, and if I press any key it works perfect. Is there anyway I can include the keypress into the Shell Command. If I can get this to work automatically then I should be able to convince the powers that be to invest in the fully registered version. Thanks again for everyone's help on this Paul Hartland Database Designer/Developer Join the UK's number one for the internet www.freeserve.com/time -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Mark.Mitsules at ngc.com Tue Apr 20 11:41:45 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Tue, 20 Apr 2004 12:41:45 -0400 Subject: [AccessD] Re: Report Page Header Message-ID: Interesting...works like a charm, but this approach doesn't seem intuitive to me. Is this common practice? Thanks, Mark -----Original Message----- From: Gustav Brock [mailto:gustav at cactus.dk] Sent: Tuesday, April 20, 2004 12:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Re: Report Page Header Hi Mark > Is there no way to test for detail records printed on a report page, and, > then based on that, hide the page header? This is not a page header but a group header. Create a dummy group with your labels: Set Field/Expression to =True Set Group Header to Yes. In the report, adjust the group's layout properties: Set Keep Together to False Set Repeat Section to True /gustav > I realize I can add a group header, but can I do so without actually sorting > or grouping? For this report I have the field headers in the page header. > I want to be able to suppress that page header when there are no detail > records to be printed for that page. This is not the same as on no data. > For instance, let's assume a full page of details contains 80 records. The > first page, because of the report header can only accommodate 60 records. > The last page, because of the size of the report footer, can also > accommodate 60 records. If my report only contains 60 records, the report > length will still be 2 pages but no details will be on the second page. > Currently, because I am utilizing the page header to hold the field headers, > the page header will print on the second page. In the above case, how do I > suppress the page header if no detail records are on the page? -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Tue Apr 20 12:00:39 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 20 Apr 2004 19:00:39 +0200 Subject: [AccessD] Re: Report Page Header In-Reply-To: References: Message-ID: <17936349908.20040420190039@cactus.dk> Hi Mark > Interesting...works like a charm, but this approach doesn't seem intuitive > to me. Is this common practice? I have never used it. But I've used grouping by the detail to be able to show/hide some lines dependant on the current detail. /gustav >> Is there no way to test for detail records printed on a report page, and, >> then based on that, hide the page header? > This is not a page header but a group header. > Create a dummy group with your labels: > Set Field/Expression to =True > Set Group Header to Yes. > In the report, adjust the group's layout properties: > Set Keep Together to False > Set Repeat Section to True > /gustav >> I realize I can add a group header, but can I do so without actually sorting >> or grouping? For this report I have the field headers in the page header. >> I want to be able to suppress that page header when there are no detail >> records to be printed for that page. This is not the same as on no data. >> For instance, let's assume a full page of details contains 80 records. The >> first page, because of the report header can only accommodate 60 records. >> The last page, because of the size of the report footer, can also >> accommodate 60 records. If my report only contains 60 records, the report >> length will still be 2 pages but no details will be on the second page. >> Currently, because I am utilizing the page header to hold the field headers, >> the page header will print on the second page. In the above case, how do> I >> suppress the page header if no detail records are on the page? From BBarabash at TappeConstruction.com Tue Apr 20 12:02:00 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Tue, 20 Apr 2004 12:02:00 -0500 Subject: [AccessD] Re: Report Page Header Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE51D@TAPPEEXCH01> Don't know if it's common practice, but I commonly use dummy headers in my reports. For example, I have a quote that consists of 6 different sections, which can be selectively hidden by the user from a print dialog. I name my report sections with a string literal as the control source: ="Table of Contents" ="Pricing Plan" ="Terms of Payment" ... Remember that a group control source can consist of a field name, function, string, etc. Anything that will evaluate at runtime. My string literals will never change throughout the course of printing the report, thus the section only prints once. -----Original Message----- From: Mitsules, Mark S. (Newport News) [mailto:Mark.Mitsules at ngc.com] Sent: Tuesday, April 20, 2004 11:42 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Re: Report Page Header Interesting...works like a charm, but this approach doesn't seem intuitive to me. Is this common practice? Thanks, Mark -----Original Message----- From: Gustav Brock [mailto:gustav at cactus.dk] Sent: Tuesday, April 20, 2004 12:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Re: Report Page Header Hi Mark > Is there no way to test for detail records printed on a report page, and, > then based on that, hide the page header? This is not a page header but a group header. Create a dummy group with your labels: Set Field/Expression to =True Set Group Header to Yes. In the report, adjust the group's layout properties: Set Keep Together to False Set Repeat Section to True /gustav > I realize I can add a group header, but can I do so without actually sorting > or grouping? For this report I have the field headers in the page header. > I want to be able to suppress that page header when there are no detail > records to be printed for that page. This is not the same as on no data. > For instance, let's assume a full page of details contains 80 records. The > first page, because of the report header can only accommodate 60 records. > The last page, because of the size of the report footer, can also > accommodate 60 records. If my report only contains 60 records, the report > length will still be 2 pages but no details will be on the second page. > Currently, because I am utilizing the page header to hold the field headers, > the page header will print on the second page. In the above case, how do I > suppress the page header if no detail records are on the page? -------------------------------------------------------------------------------------------------------------------- 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 bheid at appdevgrp.com Tue Apr 20 12:10:10 2004 From: bheid at appdevgrp.com (Bobby Heid) Date: Tue, 20 Apr 2004 13:10:10 -0400 Subject: [AccessD] Using WinZip With Access In-Reply-To: <916187228923D311A6FE00A0CC3FAA3082E48C@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA305BB452@ADGSERVER> I second that! I use WinZip every day. I figured that as much as I use it, the $20 something registration was dirt cheap. You also get free upgrades (for life, I think). Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: Tuesday, April 20, 2004 12:36 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Using WinZip With Access Winzip is only like $25. I had the same issue, and decided that spending the few bucks to get a registered copy of Winzip was a better 'deal' then wasting time trying to code around the unregistered limitation. Turns out there is a LOT more available in the registered version of Winzip too. Drew From BBarabash at TappeConstruction.com Tue Apr 20 12:16:10 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Tue, 20 Apr 2004 12:16:10 -0500 Subject: [AccessD] Using WinZip With Access Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE51E@TAPPEEXCH01> A little trickier, but if you want to embed zip functionality in your program without requiring the user to purchase any additional software, check this out: http://www.vbaccelerator.com/home/VB/Code/Libraries/Compression/Zipping_File s/article.asp And regardless of what you choose to do, register WinZip ;-) -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Tuesday, April 20, 2004 11:36 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Using WinZip With Access Winzip is only like $25. I had the same issue, and decided that spending the few bucks to get a registered copy of Winzip was a better 'deal' then wasting time trying to code around the unregistered limitation. Turns out there is a LOT more available in the registered version of Winzip too. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of paul.hartland at fsmail.net Sent: Tuesday, April 20, 2004 10:40 AM To: accessd Subject: [AccessD] Using WinZip With Access To all, Thanks for everybody's help on this I now know what the problem is. We are using an Evaluation copy of Winzip, if I set the focus of the Shell command below to vbMaximizedFocus: strCommand = "C:\Program Files\Winzip\Wzzip.exe " & wzFinal & " " & strShiftData & " " & strDownTime & vbCrLf wzFiles = Shell(strCommand, vbMaximizedFocus) A message appears in the window with press any key to continue, and if I press any key it works perfect. Is there anyway I can include the keypress into the Shell Command. If I can get this to work automatically then I should be able to convince the powers that be to invest in the fully registered version. Thanks again for everyone's help on this Paul Hartland Database Designer/Developer Join the UK's number one for the internet www.freeserve.com/time -- -------------------------------------------------------------------------------------------------------------------- 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 DWUTKA at marlow.com Tue Apr 20 12:21:00 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Tue, 20 Apr 2004 12:21:00 -0500 Subject: [AccessD] Using WinZip With Access Message-ID: <2F8793082E00D4119A1700B0D0216BF802227AF1@main2.marlow.com> Software licensins should be more like Winzip. How useful is that tool? And do they charge an arm and a leg for it? LOL. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Bobby Heid Sent: Tuesday, April 20, 2004 12:10 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Using WinZip With Access I second that! I use WinZip every day. I figured that as much as I use it, the $20 something registration was dirt cheap. You also get free upgrades (for life, I think). Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DWUTKA at marlow.com Sent: Tuesday, April 20, 2004 12:36 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Using WinZip With Access Winzip is only like $25. I had the same issue, and decided that spending the few bucks to get a registered copy of Winzip was a better 'deal' then wasting time trying to code around the unregistered limitation. Turns out there is a LOT more available in the registered version of Winzip too. Drew -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Mark.Mitsules at ngc.com Tue Apr 20 12:23:46 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Tue, 20 Apr 2004 13:23:46 -0400 Subject: [AccessD] Re: Report Page Header Message-ID: >>a group control source can consist of a field name, function, string, etc. Anything that will evaluate at runtime.<< This was the part that I was not aware of...thanks. Mark -----Original Message----- From: Brett Barabash [mailto:BBarabash at tappeconstruction.com] Sent: Tuesday, April 20, 2004 1:02 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Re: Report Page Header Don't know if it's common practice, but I commonly use dummy headers in my reports. For example, I have a quote that consists of 6 different sections, which can be selectively hidden by the user from a print dialog. I name my report sections with a string literal as the control source: ="Table of Contents" ="Pricing Plan" ="Terms of Payment" ... Remember that a group control source can consist of a field name, function, string, etc. Anything that will evaluate at runtime. My string literals will never change throughout the course of printing the report, thus the section only prints once. -----Original Message----- From: Mitsules, Mark S. (Newport News) [mailto:Mark.Mitsules at ngc.com] Sent: Tuesday, April 20, 2004 11:42 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Re: Report Page Header Interesting...works like a charm, but this approach doesn't seem intuitive to me. Is this common practice? Thanks, Mark -----Original Message----- From: Gustav Brock [mailto:gustav at cactus.dk] Sent: Tuesday, April 20, 2004 12:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Re: Report Page Header Hi Mark > Is there no way to test for detail records printed on a report page, and, > then based on that, hide the page header? This is not a page header but a group header. Create a dummy group with your labels: Set Field/Expression to =True Set Group Header to Yes. In the report, adjust the group's layout properties: Set Keep Together to False Set Repeat Section to True /gustav > I realize I can add a group header, but can I do so without actually sorting > or grouping? For this report I have the field headers in the page header. > I want to be able to suppress that page header when there are no detail > records to be printed for that page. This is not the same as on no data. > For instance, let's assume a full page of details contains 80 records. The > first page, because of the report header can only accommodate 60 records. > The last page, because of the size of the report footer, can also > accommodate 60 records. If my report only contains 60 records, the report > length will still be 2 pages but no details will be on the second page. > Currently, because I am utilizing the page header to hold the field headers, > the page header will print on the second page. In the above case, how do I > suppress the page header if no detail records are on the page? ---------------------------------------------------------------------------- ---------------------------------------- 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 ssharkins at bellsouth.net Tue Apr 20 12:49:14 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 20 Apr 2004 13:49:14 -0400 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <012201c426ea$db54b160$6601a8c0@HAL9002> Message-ID: <20040420174912.DNB1728.imf24aec.mail.bellsouth.net@SUSANONE> That's what I'd like to do -- and may do yet by passing the firstdayofweek value from the form to the query instead of the report. Truth is, I don't know how -- I can't remember ever passing a value to a query before and a parameter query is out. Susan H. Right. Except when I need to sort or group on an unbound control. That's when I have to add it to the query and bind the control to that field in the query. From gustav at cactus.dk Tue Apr 20 13:00:33 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 20 Apr 2004 20:00:33 +0200 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <20040420121802.XUVJ1778.imf18aec.mail.bellsouth.net@SUSANONE> References: <20040420121802.XUVJ1778.imf18aec.mail.bellsouth.net@SUSANONE> Message-ID: <339943245.20040420200033@cactus.dk> Hi Susan I played a bit with this and it seems either not to work or using one value only (= not registering a new weekday setting of the form). Thus, I would either stick with the solution you have (feed the weekday setting to the query) or go with the suggestion from Stuart (which I didn't check out). /gustav > Gustav, I think I must be missing something in this discussion. I hate to > bring us to this level, but how would I do that? I can not get the > sorting/grouping dialog to accept an unbound control. I guess I'm being > truly dull... > Originally, I used code to set the value, but I still couldn't group by the > results. > Susan H. > Hi Susan > It will not be calculated but unbound ... you set the value from code. > /gustav From ssharkins at bellsouth.net Tue Apr 20 13:10:40 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 20 Apr 2004 14:10:40 -0400 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <20040420174912.DNB1728.imf24aec.mail.bellsouth.net@SUSANONE> Message-ID: <20040420181039.QNZ1728.imf24aec.mail.bellsouth.net@SUSANONE> Let me rephrase that -- if I have to have a module, I don't think I really care what gets passed where -- my hope was to eliminate the module and do all the calculating in the query or the report and I thought I might be able to bypass the module using the openargs argument. Replacing the module I have for one that passes the value to a query really doesn't resolve the issue I had. Susan H. That's what I'd like to do -- and may do yet by passing the firstdayofweek value from the form to the query instead of the report. Truth is, I don't know how -- I can't remember ever passing a value to a query before and a parameter query is out. From orthorabod at yahoo.com Tue Apr 20 13:29:15 2004 From: orthorabod at yahoo.com (Dick Abo) Date: Tue, 20 Apr 2004 11:29:15 -0700 (PDT) Subject: [AccessD] Accidentally Modified SYSTEM.MDA without Backup Message-ID: <20040420182915.72088.qmail@web20724.mail.yahoo.com> Hi All, While examining a file (chapter 14) from the CD in the Access97 ADH, I opened the change password form and although I did not enter or change passwords, I am no longer able to use any of my Access 2K files. (The old and new Passwords were blank in the dialog box.) I now get prompted with the Logon Dialog box that asks for the Administrator password, for every Access application that I attempt to use. Short of re-installing the SYSTEM.MDW from the installation CD, is there another quick way to rectify this problem? (I did not make a backup of the SYSTEM.MDW file but plan to do so from now on and my installation CD is currently unavailable.) I was previously not using the Security Workgroups feature of Access, but now it appears that I may have to?. Many thanks in advance. --------------------------------- Do you Yahoo!? Yahoo! Photos: High-quality 4x6 digital prints for 25? From jwcolby at colbyconsulting.com Tue Apr 20 13:36:26 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 20 Apr 2004 14:36:26 -0400 Subject: [AccessD] Using WinZip With Access In-Reply-To: <1861111.1082475577664.JavaMail.www@wwinf3003> Message-ID: I have a zip demo in my framework lecture series which uses a freeware zip class. These use two DLLs to handle the zip / unzip, two classes and two modules for the zipping / unzipping. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of paul.hartland at fsmail.net Sent: Tuesday, April 20, 2004 11:40 AM To: accessd Subject: [AccessD] Using WinZip With Access To all, Thanks for everybody?s help on this I now know what the problem is. We are using an Evaluation copy of Winzip, if I set the focus of the Shell command below to vbMaximizedFocus: strCommand = "C:\Program Files\Winzip\Wzzip.exe " & wzFinal & " " & strShiftData & " " & strDownTime & vbCrLf wzFiles = Shell(strCommand, vbMaximizedFocus) A message appears in the window with press any key to continue, and if I press any key it works perfect. Is there anyway I can include the keypress into the Shell Command. If I can get this to work automatically then I should be able to convince the powers that be to invest in the fully registered version. Thanks again for everyone?s help on this Paul Hartland Database Designer/Developer Join the UK's number one for the internet www.freeserve.com/time -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Tue Apr 20 13:58:32 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 20 Apr 2004 20:58:32 +0200 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <20040420181039.QNZ1728.imf24aec.mail.bellsouth.net@SUSANONE> References: <20040420181039.QNZ1728.imf24aec.mail.bellsouth.net@SUSANONE> Message-ID: <5043422468.20040420205832@cactus.dk> Hi Susan In the query you can pick the value from the form as an expression: Select ..., [Forms].[frmSomeForm].[txtTextbox] As FirstDayOfWeek From ... Is is recommendable also to specify this as a parameter to avoid type mismatch errors, indeed if the textbox is unbound: Parameters [Forms].[frmSomeForm].[txtTextbox] Byte; I don't know what your module does, but basically the date of the first day of the week of datDate can be found from this formula: DateWeekFirst = DateAdd("d", vbSunday - WeekDay(datDate, FirstDayOfWeek), datDate) You would need to replace vbSunday with the actual value (1 for A97). End Function /gustav > Let me rephrase that -- if I have to have a module, I don't think I really > care what gets passed where -- my hope was to eliminate the module and do > all the calculating in the query or the report and I thought I might be able > to bypass the module using the openargs argument. Replacing the module I > have for one that passes the value to a query really doesn't resolve the > issue I had. > Susan H. > That's what I'd like to do -- and may do yet by passing the firstdayofweek > value from the form to the query instead of the report. Truth is, I don't > know how -- I can't remember ever passing a value to a query before and a > parameter query is out. From gustav at cactus.dk Tue Apr 20 14:04:25 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 20 Apr 2004 21:04:25 +0200 Subject: [AccessD] Form Opening Time In-Reply-To: References: Message-ID: <6243775065.20040420210425@cactus.dk> Hi Bryan Which version, please? /gustav > Can anyone explain, or give a possible idea why Turning Jet's SHOWPLAN > on in the registry, will make a form open in 1/3 of the time it took > prior to turning it on? > It now takes about 7 seconds to open, but before it was 22-24 secords. > Any ideas? I had turned on SHOWPLAN to try and see if any of the > queries were causing the slowdown in opening. > Thanks, > Bryan Carbonnell > bryan_carbonnell at cbc.ca From Bryan_Carbonnell at cbc.ca Tue Apr 20 14:18:04 2004 From: Bryan_Carbonnell at cbc.ca (Bryan Carbonnell) Date: Tue, 20 Apr 2004 15:18:04 -0400 Subject: [AccessD] Form Opening Time Message-ID: Access 2000 on Win 2K SP4 with Jet 4, SP8 Bryan Carbonnell bryan_carbonnell at cbc.ca >>> gustav at cactus.dk 20-Apr-04 3:04:25 PM >>> Hi Bryan Which version, please? /gustav > Can anyone explain, or give a possible idea why Turning Jet's SHOWPLAN > on in the registry, will make a form open in 1/3 of the time it took > prior to turning it on? > It now takes about 7 seconds to open, but before it was 22-24 secords. > Any ideas? I had turned on SHOWPLAN to try and see if any of the > queries were causing the slowdown in opening. > Thanks, From Bryan_Carbonnell at cbc.ca Tue Apr 20 14:31:43 2004 From: Bryan_Carbonnell at cbc.ca (Bryan Carbonnell) Date: Tue, 20 Apr 2004 15:31:43 -0400 Subject: [AccessD] Form Opening Time Message-ID: OOPS. A2K SP3 Bryan >>> Bryan_Carbonnell at cbc.ca 20-Apr-04 3:18:04 PM >>> Access 2000 on Win 2K SP4 with Jet 4, SP8 Bryan Carbonnell bryan_carbonnell at cbc.ca >>> gustav at cactus.dk 20-Apr-04 3:04:25 PM >>> Hi Bryan Which version, please? /gustav > Can anyone explain, or give a possible idea why Turning Jet's SHOWPLAN > on in the registry, will make a form open in 1/3 of the time it took > prior to turning it on? > It now takes about 7 seconds to open, but before it was 22-24 secords. > Any ideas? I had turned on SHOWPLAN to try and see if any of the > queries were causing the slowdown in opening. From ssharkins at bellsouth.net Tue Apr 20 15:22:34 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 20 Apr 2004 16:22:34 -0400 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <5043422468.20040420205832@cactus.dk> Message-ID: <20040420202233.JTRR1705.imf20aec.mail.bellsouth.net@SUSANONE> -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, April 20, 2004 2:59 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] custom sorts/groups in a report Hi Susan In the query you can pick the value from the form as an expression: Select ..., [Forms].[frmSomeForm].[txtTextbox] As FirstDayOfWeek From ... Is is recommendable also to specify this as a parameter to avoid type mismatch errors, indeed if the textbox is unbound: Parameters [Forms].[frmSomeForm].[txtTextbox] Byte; I don't know what your module does, but basically the date of the first day of the week of datDate can be found from this formula: DateWeekFirst = DateAdd("d", vbSunday - WeekDay(datDate, FirstDayOfWeek), datDate) You would need to replace vbSunday with the actual value (1 for A97). End Function /gustav > Let me rephrase that -- if I have to have a module, I don't think I > really care what gets passed where -- my hope was to eliminate the > module and do all the calculating in the query or the report and I > thought I might be able to bypass the module using the openargs > argument. Replacing the module I have for one that passes the value to > a query really doesn't resolve the issue I had. > Susan H. > That's what I'd like to do -- and may do yet by passing the > firstdayofweek value from the form to the query instead of the report. > Truth is, I don't know how -- I can't remember ever passing a value to > a query before and a parameter query is out. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Mark.Mitsules at ngc.com Tue Apr 20 15:23:11 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Tue, 20 Apr 2004 16:23:11 -0400 Subject: [AccessD] Create Junction Table From Existing Data Message-ID: Group, Is there a method to create a junction table from a non-normalized table? I inherited a table that I now need to normalize into two primary tables and a joining junction table. The primary tables were easy enough to create, but how can I create the junction table? I want to take a records such as: Fld1 Fld2 Fld3 Fld4 Fld5 <=Fields Dat1 Fld2 Fld4 Fld5 <=Record Dat2 Fld3 Fld4 <=Record And turn it into: Fld1 FldID <=Fields Dat1 Fld2 <=Record Dat1 Fld4 <=Record Dat1 Fld5 <=Record Dat2 Fld3 <=Record Dat2 Fld4 <=Record Mark From jmhla at earthlink.net Tue Apr 20 15:25:09 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Tue, 20 Apr 2004 13:25:09 -0700 Subject: [AccessD] Is there a printed flag? Message-ID: <003601c42715$97192320$6501a8c0@delllaptop> Is there a some type of printed flag for a record to show it has been printed or do I need roll my own code? JOE HECHT LOS ANGELES CA From wdhindman at bellsouth.net Tue Apr 20 15:41:56 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Tue, 20 Apr 2004 16:41:56 -0400 Subject: [AccessD] Create Junction Table From Existing Data References: Message-ID: <003001c42717$ebdff2b0$6101a8c0@dejpolsys> ...I know of no simple way to do this ...my approach has always been to add an ANPK to the original table and then to use that as the control to populate the derivative tables through a series of queries ...but the circumstances change so much from mdb to mdb that I've never been able to write code that ever worked for more than one situation. William Hindman "Always code as if the person who is maintaining or testing your code is a violent psychopath who knows where you live." William Silverstein ----- Original Message ----- From: "Mitsules, Mark S. (Newport News)" To: "'[AccessD]'" Sent: Tuesday, April 20, 2004 4:23 PM Subject: [AccessD] Create Junction Table From Existing Data > Group, > > Is there a method to create a junction table from a non-normalized table? I > inherited a table that I now need to normalize into two primary tables and a > joining junction table. The primary tables were easy enough to create, but > how can I create the junction table? > > I want to take a records such as: > Fld1 Fld2 Fld3 Fld4 Fld5 <=Fields > Dat1 Fld2 Fld4 Fld5 <=Record > Dat2 Fld3 Fld4 <=Record > > And turn it into: > Fld1 FldID <=Fields > Dat1 Fld2 <=Record > Dat1 Fld4 <=Record > Dat1 Fld5 <=Record > Dat2 Fld3 <=Record > Dat2 Fld4 <=Record > > > Mark > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From ssharkins at bellsouth.net Tue Apr 20 15:48:39 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 20 Apr 2004 16:48:39 -0400 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <5043422468.20040420205832@cactus.dk> Message-ID: <20040420204838.HADS1779.imf21aec.mail.bellsouth.net@SUSANONE> If the expression's in the query and you open the report without specifying the value in the form, how would you prevent an error in the form? I suppose I could just handle it and remind the user to open the form and choose the first day of the week. Right now, I've set the report to default to a value and since the expression's in the report, it works whether you start from the form or just open the report. You can't specify the grouping value when you open the report that way, but at least there's no error -- which is a nice alternative especially if the first day of the week seldom changes. That way the user's not forced to go through the form every time. I realize I sound really picky -- but these are the sort of nitpicky problems I get from readers. These solutions have to be as universal as possible or I get email. :) "It won't work if...." even when I've told them clearly in the article that it won't work if... but somehow it's still the article's shortcoming. It's always best if I can head them off. Which reminds me -- can someone explain the vbUseSystem constant? There's almost nothing about it on msdn. It's a system default, but there's not much about it. Well, the serious search-challenged was unable to find anything on it besides a vague reference -- no real explanation of the consequences. Susan H. Hi Susan In the query you can pick the value from the form as an expression: Select ..., [Forms].[frmSomeForm].[txtTextbox] As FirstDayOfWeek From ... Is is recommendable also to specify this as a parameter to avoid type mismatch errors, indeed if the textbox is unbound: Parameters [Forms].[frmSomeForm].[txtTextbox] Byte; I don't know what your module does, but basically the date of the first day of the week of datDate can be found from this formula: DateWeekFirst = DateAdd("d", vbSunday - WeekDay(datDate, FirstDayOfWeek), datDate) You would need to replace vbSunday with the actual value (1 for A97). End Function /gustav > Let me rephrase that -- if I have to have a module, I don't think I > really care what gets passed where -- my hope was to eliminate the > module and do all the calculating in the query or the report and I > thought I might be able to bypass the module using the openargs > argument. Replacing the module I have for one that passes the value to > a query really doesn't resolve the issue I had. > Susan H. > That's what I'd like to do -- and may do yet by passing the > firstdayofweek value from the form to the query instead of the report. > Truth is, I don't know how -- I can't remember ever passing a value to > a query before and a parameter query is out. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pharryecoenen at btinternet.com Tue Apr 20 15:32:04 2004 From: pharryecoenen at btinternet.com (Harry Coenen) Date: Tue, 20 Apr 2004 21:32:04 +0100 Subject: [AccessD] Displaying networked data? Message-ID: Hi All I have a data set, representing policy targets, which is currently ordered hierarchically, the core tblTargets relating each target to its ParentTarget. In reality these targets are also related in other ways, e.g.: - sequentially, some targets preceding others - jointly, some targets should be evaluated in relation with others elsewhere in the hierarchy - externally, each target relating to one or more external targets (compliance requirements set by a myriad of regulators) - influentially, a target may or may not influence other targets - normatively, delivery on each targets can be measured in one or more ways Do you know of OCX controls capable of visually representing and navigating such a network of targets. Currently, I display the hierarchy (in a treeview) and list childtargets, and other relation types in subforms on tabs of the target form. I have one proto-solution, consisting of hierachies in different dimensions, to be displayed bu one treeview selecting the dimensions and a second displaying the associated hierarchy. Regards Harry From Mark.Mitsules at ngc.com Tue Apr 20 16:08:28 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Tue, 20 Apr 2004 17:08:28 -0400 Subject: [AccessD] Create Junction Table From Existing Data Message-ID: I did just that to create the primary tables. But, since I've never had to do this on such a grand scale, I need assistance in generating the junction table. Here is pseudo data for clarification. I've placed dashes to maintain alignment. ID--CODE--SA--SAR--SRD 1---EA1---SA--SAR--SRD 2---EEY1--SA 3---EEY2--SA--SAR--SRD ...from the data above, I need: PK--CODE--TYPE 1---EA1---SA 2---EA1---SAR 3---EA1---SRD 4---EEY1--SA 5---EEY2--SA 6---EEY2--SAR 7---EEY2--SRD Any suggestions? Mark -----Original Message----- From: William Hindman [mailto:wdhindman at bellsouth.net] Sent: Tuesday, April 20, 2004 4:42 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Create Junction Table From Existing Data ...I know of no simple way to do this ...my approach has always been to add an ANPK to the original table and then to use that as the control to populate the derivative tables through a series of queries ...but the circumstances change so much from mdb to mdb that I've never been able to write code that ever worked for more than one situation. William Hindman "Always code as if the person who is maintaining or testing your code is a violent psychopath who knows where you live." William Silverstein ----- Original Message ----- From: "Mitsules, Mark S. (Newport News)" To: "'[AccessD]'" Sent: Tuesday, April 20, 2004 4:23 PM Subject: [AccessD] Create Junction Table From Existing Data > Group, > > Is there a method to create a junction table from a non-normalized table? I > inherited a table that I now need to normalize into two primary tables and a > joining junction table. The primary tables were easy enough to create, but > how can I create the junction table? > > I want to take a records such as: > Fld1 Fld2 Fld3 Fld4 Fld5 <=Fields > Dat1 Fld2 Fld4 Fld5 <=Record > Dat2 Fld3 Fld4 <=Record > > And turn it into: > Fld1 FldID <=Fields > Dat1 Fld2 <=Record > Dat1 Fld4 <=Record > Dat1 Fld5 <=Record > Dat2 Fld3 <=Record > Dat2 Fld4 <=Record > > > 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 pharryecoenen at btinternet.com Tue Apr 20 15:48:45 2004 From: pharryecoenen at btinternet.com (Harry Coenen) Date: Tue, 20 Apr 2004 21:48:45 +0100 Subject: [AccessD] Framework discussion - continuation? YES PLEASE!!! Message-ID: John (and all) A few suggestions: Additional service classes: - error logging/tracing to table or file, I can post a messy attempt to achieve this with a class which pushes and pops all trace calls to a stack and writes this to a table/file when an error occurs (together with some other relevant data) - behaviours of combinations of controls, e.g. -- eample of class implementation of combination of treeview/listview with splicer for explorer like navigation (I can create the behaviour, but I cannot implement it in a class yet) -- class implementation of combinations of controls, e.g. combo/labels/button, see below for further info My half cent: Triggered by a recent discussion about lookup-tables, hard-coded lookup lists, tag, etc. Recently I had to redevelop a performance monitoring system for a public sector body. At the start they did not know what they wanted, and at the end they still didn't. So requirements analysis was a bit difficult to say the least. Just everything inside and outside the scope of the project related to just about everything else. Usually I would have send them home to do their homework first, but since the project had some very interesting elements I decided to give it a go. Permananetly changing requirements make you necessarily creative in avoiding hardcoding. What did I do to resolve issues 1. All lookup fields were filled from lookup tables with the following structure LookupFieldID (an autonumber) LookupFieldShortDescription (for the display on forms and reports) LookupFieldLongDescription (mainly for value dependent tooltips) LookupFieldIsActive (boolean set True when field should be displayed in lookups) LookupFieldSortOrder (a customisable sort order of the lookups) LookupFieldMemo (my documentation + recording of audit trail) LookupFieldMaxLengthInCharacters (of short description) LookupFieldMaxLengthInTwips (calculated based on the standard font and size, and used to determine columnwidth in reports) LookupFieldParent LookupFieldActiveDateFrom LookupFieldActiveDateTo and a few others.. Filling combos with source: SELECT LookupFieldID, LookupFieldShortDescription FROM tlkLookupField WHERE LookupFieldIsActive = True ORDER BY LookupFieldSortOrder; linking on 2 columns, making the witdh of the first as small as possible, in effect only displaying the second 2. The lookup table is linked to the table (just in case the user wants to view the description of the meaningless code in a certain column of a record) and a combobox on the form. Given the number of lookups only few were actually linked in the relationships table 3. On the form I had to display the ShortName and the Tooltip I achieved this by relating an (additional) label displaying the ShortName and a commandbutton with the value dependant tooltip, the latter transparent and overlayed on the former, to the combobox this gave a combination of 4 controls cbxLookupfield (the Lookupcombobox dropping down the short description, but actually entering the ID) lbxLookupfield (the normal label related to the combo) lkxLookupField (with the Shortname) cmxLookupField (with the tooltip from the LongDescription) So the user still had the look and feel of working with meaningfull descriptions. 4. The main user/administrator could add (but not delete) records to Lookup tables and change the descriptions, IsActive and SortOrder. All changes were logged and datestamped to the LookupMemo, thus preserving an audit trail. This was all managed from one form with a combobox selecting the different lookuptables. The table feeding this combobox had again exactly the same structure as above and could be edited in the same form. Advantages - Language independent (by design), both in terms of the internal organisational language and changing terminology as well as internationally (just add LookupFieldLanguage and you can start filling the table with descriptions) - Perfect Audit trail - Smart looking forms with additional behaviours easily added (derived from tlkLookupField) to the combo-combination - Smart looking report snapshots (dynamically formatted using data from the above). I only needed a few, thanks to some COOL code for dynamically positioning controls at runtime from Shamil Salakhetdinov and Stephen Lebans' code for calculating the width of a data element. - Highly standardised naming conventions allowed most of the coding to be reduced to a few loops. Disadvantages: -some overhead in a few events --Form_Current event had to refresh all tooltips and lookups --After changing the combobox selection I had to refresh the tips and lookup for that combo Luckily most of this could be achieved by looping through the controls, the "x" in the third position of the names above (3) allowed for this. Next steps? - Researching the possibility of further streamlining the lookup tables towards a full fledged data dictionary, e.g. by pulling them into a few master tables. - Creating a class for the above combo/label/button behaviour (as soon as I understand what John, Shamil and a few others are actually doing). Harry From cfoust at infostatsystems.com Tue Apr 20 16:34:12 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 20 Apr 2004 14:34:12 -0700 Subject: [AccessD] Is there a printed flag? Message-ID: It's strictly roll your own. Records don't get printed, reports get printed. Charlotte Foust -----Original Message----- From: Joe Hecht [mailto:jmhla at earthlink.net] Sent: Tuesday, April 20, 2004 12:25 PM To: AccessD Subject: [AccessD] Is there a printed flag? Is there a some type of printed flag for a record to show it has been printed or do I need roll my own code? JOE HECHT LOS ANGELES CA -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pharryecoenen at btinternet.com Tue Apr 20 16:16:42 2004 From: pharryecoenen at btinternet.com (Harry Coenen) Date: Tue, 20 Apr 2004 22:16:42 +0100 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <20040420204838.HADS1779.imf21aec.mail.bellsouth.net@SUSANONE> Message-ID: Hi Susan VbUseSystem My object browser shows: Const vbUseSystem = 0 Member of VBA.VbFirstWeekOfYear Use the day of the week specified in your system settings for the first day of the week. Const vbUseSystemDayOfWeek = 0 Member of VBA.VbDayOfWeek Use NLS API setting the descriptions are from the helpfile address: VbLR6.chm::/html/vamscDateConstants.htm titled: Date Constants (XP version) I suppose in both cases the value will be derived from the systems settings in the machines registry Report Error I usually hide all reports and run them from forms, especially because the subsets of data the user wants depend on selections made in the forms. Then I pass the selections to the report and trap the errors. e.g. no data. Picky? Users don't read manuals, only their lawyers will do so when you really make a mess. So guiding users through the appropriate process with menus, tooltips, messages, etc. isn't picky, just good service. Regards Harry -- >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >Susan Harkins >Sent: Tuesday, April 20, 2004 9:49 PM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] custom sorts/groups in a report > > >If the expression's in the query and you open the report >without specifying >the value in the form, how would you prevent an error in the >form? I suppose >I could just handle it and remind the user to open the form >and choose the >first day of the week. > >Right now, I've set the report to default to a value and since the >expression's in the report, it works whether you start from >the form or just >open the report. You can't specify the grouping value when you open the >report that way, but at least there's no error -- which is a nice >alternative especially if the first day of the week seldom >changes. That way >the user's not forced to go through the form every time. > >I realize I sound really picky -- but these are the sort of nitpicky >problems I get from readers. These solutions have to be as universal as >possible or I get email. :) "It won't work if...." even when >I've told them >clearly in the article that it won't work if... but somehow >it's still the >article's shortcoming. It's always best if I can head them off. > >Which reminds me -- can someone explain the vbUseSystem >constant? There's >almost nothing about it on msdn. It's a system default, but >there's not much >about it. Well, the serious search-challenged was unable to >find anything on >it besides a vague reference -- no real explanation of the >consequences. > >Susan H. > >Hi Susan > >In the query you can pick the value from the form as an expression: > > Select > ..., > [Forms].[frmSomeForm].[txtTextbox] As FirstDayOfWeek > From > ... > >Is is recommendable also to specify this as a parameter to avoid type >mismatch errors, indeed if the textbox is unbound: > > Parameters [Forms].[frmSomeForm].[txtTextbox] Byte; > >I don't know what your module does, but basically the date of >the first day >of the week of datDate can be found from this formula: > > DateWeekFirst = > DateAdd("d", vbSunday - WeekDay(datDate, FirstDayOfWeek), datDate) > >You would need to replace vbSunday with the actual value (1 for A97). > >End Function > >/gustav > > >> Let me rephrase that -- if I have to have a module, I don't think I >> really care what gets passed where -- my hope was to eliminate the >> module and do all the calculating in the query or the report and I >> thought I might be able to bypass the module using the openargs >> argument. Replacing the module I have for one that passes >the value to >> a query really doesn't resolve the issue I had. > >> Susan H. > >> That's what I'd like to do -- and may do yet by passing the >> firstdayofweek value from the form to the query instead of >the report. >> Truth is, I don't know how -- I can't remember ever passing >a value to >> a query before and a parameter query is out. > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >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 Tue Apr 20 16:48:45 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 20 Apr 2004 17:48:45 -0400 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: Message-ID: <20040420214843.NWZL1832.imf22aec.mail.bellsouth.net@SUSANONE> Use NLS API setting I suppose in both cases the value will be derived from the systems settings in the machines registry =============I wanted more infomration on NLS API -- but didn't turn up anything. Susan H. From ssharkins at bellsouth.net Tue Apr 20 16:54:26 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 20 Apr 2004 17:54:26 -0400 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: Message-ID: <20040420215425.NZPD1832.imf22aec.mail.bellsouth.net@SUSANONE> Report Error I usually hide all reports and run them from forms, especially because the subsets of data the user wants depend on selections made in the forms. Then I pass the selections to the report and trap the errors. e.g. no data. ==========I was thinking that I might be able to trap the error and in the errorhandler, set the default value. Picky? Users don't read manuals, only their lawyers will do so when you really make a mess. So guiding users through the appropriate process with menus, tooltips, messages, etc. isn't picky, just good service. ==========Thanks for understanding. Most of the mail I get is really nice. They just want to know more, so they can take the technique a little further. But, in my own self-serving way, I'd rather ward off as many of the "you're an idiot" emails as possible. I don't get very many, which I don't really think is a reflection of my intelligence, but rather the manners of most of the readers. ;) Susan H. From wdhindman at bellsouth.net Tue Apr 20 17:03:11 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Tue, 20 Apr 2004 18:03:11 -0400 Subject: [AccessD] Create Junction Table From Existing Data References: Message-ID: <001c01c42723$45a311f0$6101a8c0@dejpolsys> ...you've lost me Mark ...I thought you were trying to join data from two tables ...your latest post looks as if you're trying to pivot the data instead ...can you clarify it a bit? William Hindman "Always code as if the person who is maintaining or testing your code is a violent psychopath who knows where you live." William Silverstein ----- Original Message ----- From: "Mitsules, Mark S. (Newport News)" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, April 20, 2004 5:08 PM Subject: RE: [AccessD] Create Junction Table From Existing Data > I did just that to create the primary tables. But, since I've never had to > do this on such a grand scale, I need assistance in generating the junction > table. Here is pseudo data for clarification. I've placed dashes to > maintain alignment. > > ID--CODE--SA--SAR--SRD > 1---EA1---SA--SAR--SRD > 2---EEY1--SA > 3---EEY2--SA--SAR--SRD > > ...from the data above, I need: > PK--CODE--TYPE > 1---EA1---SA > 2---EA1---SAR > 3---EA1---SRD > 4---EEY1--SA > 5---EEY2--SA > 6---EEY2--SAR > 7---EEY2--SRD > > Any suggestions? > > Mark > > > > -----Original Message----- > From: William Hindman [mailto:wdhindman at bellsouth.net] > Sent: Tuesday, April 20, 2004 4:42 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Create Junction Table From Existing Data > > > ...I know of no simple way to do this ...my approach has always been to add > an ANPK to the original table and then to use that as the control to > populate the derivative tables through a series of queries ...but the > circumstances change so much from mdb to mdb that I've never been able to > write code that ever worked for more than one situation. > > William Hindman > "Always code as if the person who is maintaining or testing your code is > a violent psychopath who knows where you live." William Silverstein > > > ----- Original Message ----- > From: "Mitsules, Mark S. (Newport News)" > To: "'[AccessD]'" > Sent: Tuesday, April 20, 2004 4:23 PM > Subject: [AccessD] Create Junction Table From Existing Data > > > > Group, > > > > Is there a method to create a junction table from a non-normalized table? > I > > inherited a table that I now need to normalize into two primary tables and > a > > joining junction table. The primary tables were easy enough to create, > but > > how can I create the junction table? > > > > I want to take a records such as: > > Fld1 Fld2 Fld3 Fld4 Fld5 <=Fields > > Dat1 Fld2 Fld4 Fld5 <=Record > > Dat2 Fld3 Fld4 <=Record > > > > And turn it into: > > Fld1 FldID <=Fields > > Dat1 Fld2 <=Record > > Dat1 Fld4 <=Record > > Dat1 Fld5 <=Record > > Dat2 Fld3 <=Record > > Dat2 Fld4 <=Record > > > > > > 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 Tue Apr 20 17:45:05 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Tue, 20 Apr 2004 18:45:05 -0400 Subject: [AccessD] Create Junction Table From Existing Data Message-ID: Sure...the data started out as an Excel flat file (no normalization). They then put it into an Access Db (same format). I now have the task of cleaning it up. The data consists of checklist items, and the checklists to which they pertain. In my example, (ID--CODE--SA--SAR--SRD) "code" refers to the checklist item description, and the last 3 fields are examples of checklist types (which should have their own table). I have already created the normalized tables tblChecklistItems and tblChecklistTypes. What I need assistance with, is how to create the junction table of this many to many relationship. Since this is the first time I've had to normalize an existing database, a little "hand-holding" would be appreciated;) Mark -----Original Message----- From: William Hindman [mailto:wdhindman at bellsouth.net] Sent: Tuesday, April 20, 2004 6:03 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Create Junction Table From Existing Data ...you've lost me Mark ...I thought you were trying to join data from two tables ...your latest post looks as if you're trying to pivot the data instead ...can you clarify it a bit? William Hindman "Always code as if the person who is maintaining or testing your code is a violent psychopath who knows where you live." William Silverstein ----- Original Message ----- From: "Mitsules, Mark S. (Newport News)" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, April 20, 2004 5:08 PM Subject: RE: [AccessD] Create Junction Table From Existing Data > I did just that to create the primary tables. But, since I've never had to > do this on such a grand scale, I need assistance in generating the junction > table. Here is pseudo data for clarification. I've placed dashes to > maintain alignment. > > ID--CODE--SA--SAR--SRD > 1---EA1---SA--SAR--SRD > 2---EEY1--SA > 3---EEY2--SA--SAR--SRD > > ...from the data above, I need: > PK--CODE--TYPE > 1---EA1---SA > 2---EA1---SAR > 3---EA1---SRD > 4---EEY1--SA > 5---EEY2--SA > 6---EEY2--SAR > 7---EEY2--SRD > > Any suggestions? > > Mark > > > > -----Original Message----- > From: William Hindman [mailto:wdhindman at bellsouth.net] > Sent: Tuesday, April 20, 2004 4:42 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Create Junction Table From Existing Data > > > ...I know of no simple way to do this ...my approach has always been to add > an ANPK to the original table and then to use that as the control to > populate the derivative tables through a series of queries ...but the > circumstances change so much from mdb to mdb that I've never been able to > write code that ever worked for more than one situation. > > William Hindman > "Always code as if the person who is maintaining or testing your code is > a violent psychopath who knows where you live." William Silverstein > > > ----- Original Message ----- > From: "Mitsules, Mark S. (Newport News)" > To: "'[AccessD]'" > Sent: Tuesday, April 20, 2004 4:23 PM > Subject: [AccessD] Create Junction Table From Existing Data > > > > Group, > > > > Is there a method to create a junction table from a non-normalized table? > I > > inherited a table that I now need to normalize into two primary tables and > a > > joining junction table. The primary tables were easy enough to create, > but > > how can I create the junction table? > > > > I want to take a records such as: > > Fld1 Fld2 Fld3 Fld4 Fld5 <=Fields > > Dat1 Fld2 Fld4 Fld5 <=Record > > Dat2 Fld3 Fld4 <=Record > > > > And turn it into: > > Fld1 FldID <=Fields > > Dat1 Fld2 <=Record > > Dat1 Fld4 <=Record > > Dat1 Fld5 <=Record > > Dat2 Fld3 <=Record > > Dat2 Fld4 <=Record > > > > > > 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 jwelz at hotmail.com Tue Apr 20 18:03:38 2004 From: jwelz at hotmail.com (Jürgen Welz) Date: Tue, 20 Apr 2004 17:03:38 -0600 Subject: [AccessD] Displaying networked data? Message-ID: Does the client have MS Project? It sounds like automation code driving Project could give you a Gantt chart view that may prove viable. It could also generate Critical Path views of the data which may be of use as well. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >From: "Harry Coenen" > >Hi All > >I have a data set, representing policy targets, which is currently ordered >hierarchically, the core tblTargets relating each target to its >ParentTarget. In reality these targets are also related in other ways, >e.g.: >- sequentially, some targets preceding others >- jointly, some targets should be evaluated in relation with others >elsewhere in the hierarchy >- externally, each target relating to one or more external targets >(compliance requirements set by a myriad of regulators) >- influentially, a target may or may not influence other targets >- normatively, delivery on each targets can be measured in one or more ways > >Do you know of OCX controls capable of visually representing and navigating >such a network of targets. > >Currently, I display the hierarchy (in a treeview) and list childtargets, >and other relation types in subforms on tabs of the target form. I have one >proto-solution, consisting of hierachies in different dimensions, to be >displayed bu one treeview selecting the dimensions and a second displaying >the associated hierarchy. > >Regards > >Harry _________________________________________________________________ Free yourself from those irritating pop-up ads with MSn Premium. Get 2months FREE* http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines From stuart at lexacorp.com.pg Tue Apr 20 18:08:04 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 21 Apr 2004 09:08:04 +1000 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <20040420204838.HADS1779.imf21aec.mail.bellsouth.net@SUSANONE> References: <5043422468.20040420205832@cactus.dk> Message-ID: <408639F4.13148.52594A8@localhost> On 20 Apr 2004 at 16:48, Susan Harkins wrote: > If the expression's in the query and you open the report without specifying > the value in the form, how would you prevent an error in the form? I suppose > I could just handle it and remind the user to open the form and choose the > first day of the week. Use the Static function I posted earlier. It will initially return a value of 0 (vbUseSystem) ...... > > Which reminds me -- can someone explain the vbUseSystem constant? There's > almost nothing about it on msdn. It's a system default, but there's not much > about it. Well, the serious search-challenged was unable to find anything on > it besides a vague reference -- no real explanation of the consequences. > It tells Access to use the NLS API setting. (National Language Supprt) i.e. Use the FDOW returned by the GetLocaleInfoA() API call for a parameter of "LOCALE_IFIRSTDAYOFWEEK" -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From stuart at lexacorp.com.pg Tue Apr 20 18:22:50 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 21 Apr 2004 09:22:50 +1000 Subject: [AccessD] Create Junction Table From Existing Data In-Reply-To: Message-ID: <40863D6A.3847.53317A4@localhost> On 20 Apr 2004 at 17:08, Mitsules, Mark S. (Newport Ne wrote: > I did just that to create the primary tables. But, since I've never had to > do this on such a grand scale, I need assistance in generating the junction > table. Here is pseudo data for clarification. I've placed dashes to > maintain alignment. > > ID--CODE--SA--SAR--SRD > 1---EA1---SA--SAR--SRD > 2---EEY1--SA > 3---EEY2--SA--SAR--SRD > > ...from the data above, I need: > PK--CODE--TYPE > 1---EA1---SA > 2---EA1---SAR > 3---EA1---SRD > 4---EEY1--SA > 5---EEY2--SA > 6---EEY2--SAR > 7---EEY2--SRD > > Any suggestions? > I'd do it in code. Open the old data set and step through it. For each record, step through the fields and create a new record in the new table where required. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From DaveSharpe2 at cox.net Tue Apr 20 18:28:27 2004 From: DaveSharpe2 at cox.net (Dave Sharpe) Date: Tue, 20 Apr 2004 19:28:27 -0400 Subject: [AccessD] Create Junction Table From Existing Data References: Message-ID: <003001c4272f$2f231130$dd2f0a44@bcsrkeext6137> Mark I've sent You an MDB that I hope helps ( I could do what I thought much easier that I could verbalize My thoughts ). Dave ----- Original Message ----- From: "Mitsules, Mark S. (Newport News)" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, April 20, 2004 6:45 PM Subject: RE: [AccessD] Create Junction Table From Existing Data Sure...the data started out as an Excel flat file (no normalization). They then put it into an Access Db (same format). I now have the task of cleaning it up. The data consists of checklist items, and the checklists to which they pertain. In my example, (ID--CODE--SA--SAR--SRD) "code" refers to the checklist item description, and the last 3 fields are examples of checklist types (which should have their own table). I have already created the normalized tables tblChecklistItems and tblChecklistTypes. What I need assistance with, is how to create the junction table of this many to many relationship. Since this is the first time I've had to normalize an existing database, a little "hand-holding" would be appreciated;) Mark -----Original Message----- From: William Hindman [mailto:wdhindman at bellsouth.net] Sent: Tuesday, April 20, 2004 6:03 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Create Junction Table From Existing Data ...you've lost me Mark ...I thought you were trying to join data from two tables ...your latest post looks as if you're trying to pivot the data instead ...can you clarify it a bit? William Hindman "Always code as if the person who is maintaining or testing your code is a violent psychopath who knows where you live." William Silverstein ----- Original Message ----- From: "Mitsules, Mark S. (Newport News)" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, April 20, 2004 5:08 PM Subject: RE: [AccessD] Create Junction Table From Existing Data > I did just that to create the primary tables. But, since I've never had to > do this on such a grand scale, I need assistance in generating the junction > table. Here is pseudo data for clarification. I've placed dashes to > maintain alignment. > > ID--CODE--SA--SAR--SRD > 1---EA1---SA--SAR--SRD > 2---EEY1--SA > 3---EEY2--SA--SAR--SRD > > ...from the data above, I need: > PK--CODE--TYPE > 1---EA1---SA > 2---EA1---SAR > 3---EA1---SRD > 4---EEY1--SA > 5---EEY2--SA > 6---EEY2--SAR > 7---EEY2--SRD > > Any suggestions? > > Mark > > > > -----Original Message----- > From: William Hindman [mailto:wdhindman at bellsouth.net] > Sent: Tuesday, April 20, 2004 4:42 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Create Junction Table From Existing Data > > > ...I know of no simple way to do this ...my approach has always been to add > an ANPK to the original table and then to use that as the control to > populate the derivative tables through a series of queries ...but the > circumstances change so much from mdb to mdb that I've never been able to > write code that ever worked for more than one situation. > > William Hindman > "Always code as if the person who is maintaining or testing your code is > a violent psychopath who knows where you live." William Silverstein > > > ----- Original Message ----- > From: "Mitsules, Mark S. (Newport News)" > To: "'[AccessD]'" > Sent: Tuesday, April 20, 2004 4:23 PM > Subject: [AccessD] Create Junction Table From Existing Data > > > > Group, > > > > Is there a method to create a junction table from a non-normalized table? > I > > inherited a table that I now need to normalize into two primary tables and > a > > joining junction table. The primary tables were easy enough to create, > but > > how can I create the junction table? > > > > I want to take a records such as: > > Fld1 Fld2 Fld3 Fld4 Fld5 <=Fields > > Dat1 Fld2 Fld4 Fld5 <=Record > > Dat2 Fld3 Fld4 <=Record > > > > And turn it into: > > Fld1 FldID <=Fields > > Dat1 Fld2 <=Record > > Dat1 Fld4 <=Record > > Dat1 Fld5 <=Record > > Dat2 Fld3 <=Record > > Dat2 Fld4 <=Record > > > > > > 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 pharryecoenen at btinternet.com Tue Apr 20 15:34:10 2004 From: pharryecoenen at btinternet.com (Harry Coenen) Date: Tue, 20 Apr 2004 21:34:10 +0100 Subject: [AccessD] Access utils and add-ins In-Reply-To: <12126461489.20040420161551@cactus.dk> Message-ID: Hi gustav (and all) You can add : Carlos J. Quintero's MZTools http://www.mztools.com/ Bryan Carbonnell's ListAllVBAVariables http://www3.sympatico.ca/carbonnb/bryan/index.html and (slightly more commercial, but please note that I have no personal commericial interest in any of these) for $15, CodeCrafter http://www.codecrafter.com/ delivering about the same functionality as the free MZTools Rick Fisher's Find and Replace http://www.rickworld.com/ in combination with Helen Feddema's LNC Rename add-in http://www.helenfeddema.com/ And for the ones who want to climb Wittgenstein's ladder: Shamil Salakhetdinov's topics and DEEP concept http://smsconsulting.spb.ru/ (some topics are also avialble thourgh http://www.4tops.com/) or John W. Colby's musings on developing Frameworks http://www.colbyconsulting.com/ Harry -- >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock >Sent: Tuesday, April 20, 2004 3:16 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Access utils and add-ins (was: Handling >strings in VBASQL scripts?) > > >Hi Harry > >Nice collection of utils, add-ins, and code at those links! > >/gustav > >> Thanks to Skrol29 >> (http://www.skrol29.com/) >> and Juan M. Af?n deRibera >> (http://www.mvp-access.com/juanmafan/) .. > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > From ssharkins at bellsouth.net Tue Apr 20 19:08:12 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 20 Apr 2004 20:08:12 -0400 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <408639F4.13148.52594A8@localhost> Message-ID: <20040421000810.JDLF1728.imf24aec.mail.bellsouth.net@SUSANONE> It tells Access to use the NLS API setting. (National Language Supprt) i.e. Use the FDOW returned by the GetLocaleInfoA() API call for a parameter of "LOCALE_IFIRSTDAYOFWEEK" =====OK, that last bit helps. Thanks! Susan H. From accessd at shaw.ca Tue Apr 20 19:30:07 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Tue, 20 Apr 2004 17:30:07 -0700 Subject: [AccessD] Using WinZip With Access In-Reply-To: <1861111.1082475577664.JavaMail.www@wwinf3003> Message-ID: Hi Paul: There is a way but it has been a long while since I have used it. 1. Create a file, say named return.txt and in notepad place one value, say '1'. 2. Save file in an appropriate location, (and this is where it might become complicated), run a program like, old DOS's debug, or a sector or hex editor against the newly created file. In the editing mode change the value '1' or now displayed as hex 31 to hex 13 (carriage return). 3. Save the file again and exit the hex editor. Now you can use the following line of text when shelling to the command prompt: strCommand = "C:\Program Files\Winzip\Wzzip.exe " & wzFinal & " " & strShiftData & " " & strDownTime & " < return.txt" & vbCrLf wzFiles = Shell(strCommand, vbMaximizedFocus) At the command prompt, the line should look something like: C:\Program Files\Winzip\Wzzip.exe xxxx xxxx xxxx < return.txt HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of paul.hartland at fsmail.net Sent: Tuesday, April 20, 2004 8:40 AM To: accessd Subject: [AccessD] Using WinZip With Access To all, Thanks for everybody?s help on this I now know what the problem is. We are using an Evaluation copy of Winzip, if I set the focus of the Shell command below to vbMaximizedFocus: strCommand = "C:\Program Files\Winzip\Wzzip.exe " & wzFinal & " " & strShiftData & " " & strDownTime & vbCrLf wzFiles = Shell(strCommand, vbMaximizedFocus) A message appears in the window with press any key to continue, and if I press any key it works perfect. Is there anyway I can include the keypress into the Shell Command. If I can get this to work automatically then I should be able to convince the powers that be to invest in the fully registered version. Thanks again for everyone?s help on this Paul Hartland Database Designer/Developer Join the UK's number one for the internet www.freeserve.com/time -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Apr 20 19:38:23 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 20 Apr 2004 20:38:23 -0400 Subject: [AccessD] Create Junction Table From Existing Data In-Reply-To: <003001c42717$ebdff2b0$6101a8c0@dejpolsys> Message-ID: ditto. add the pk to the original. then in the new tables add the pk of the original table as a fk in the new table. this "points back" to what record it came from. POC John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of William Hindman Sent: Tuesday, April 20, 2004 4:42 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Create Junction Table From Existing Data ...I know of no simple way to do this ...my approach has always been to add an ANPK to the original table and then to use that as the control to populate the derivative tables through a series of queries ...but the circumstances change so much from mdb to mdb that I've never been able to write code that ever worked for more than one situation. William Hindman "Always code as if the person who is maintaining or testing your code is a violent psychopath who knows where you live." William Silverstein ----- Original Message ----- From: "Mitsules, Mark S. (Newport News)" To: "'[AccessD]'" Sent: Tuesday, April 20, 2004 4:23 PM Subject: [AccessD] Create Junction Table From Existing Data > Group, > > Is there a method to create a junction table from a non-normalized table? I > inherited a table that I now need to normalize into two primary tables and a > joining junction table. The primary tables were easy enough to create, but > how can I create the junction table? > > I want to take a records such as: > Fld1 Fld2 Fld3 Fld4 Fld5 <=Fields > Dat1 Fld2 Fld4 Fld5 <=Record > Dat2 Fld3 Fld4 <=Record > > And turn it into: > Fld1 FldID <=Fields > Dat1 Fld2 <=Record > Dat1 Fld4 <=Record > Dat1 Fld5 <=Record > Dat2 Fld3 <=Record > Dat2 Fld4 <=Record > > > 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 carbonnb at sympatico.ca Tue Apr 20 19:43:05 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Tue, 20 Apr 2004 20:43:05 -0400 Subject: [AccessD] Access utils and add-ins In-Reply-To: References: <12126461489.20040420161551@cactus.dk> Message-ID: <40858B59.21981.E312BC@localhost> On 20 Apr 2004 at 21:34, Harry Coenen wrote: > You can add : > Carlos J. Quintero's MZTools > http://www.mztools.com/ > Bryan Carbonnell's ListAllVBAVariables > http://www3.sympatico.ca/carbonnb/bryan/index.html > Rick Fisher's Find and Replace > http://www.rickworld.com/ > And for the ones who want to climb Wittgenstein's ladder: > Shamil Salakhetdinov's topics and DEEP concept > http://smsconsulting.spb.ru/ > (some topics are also avialble thourgh http://www.4tops.com/) > or John W. Colby's musings on developing Frameworks > http://www.colbyconsulting.com/ You put *ME* in the same league as MZTools, Rick Fisher's F&R, Shamil and JC??? You've got to be kidding!! -- Bryan Carbonnell - carbonnb at sympatico.ca We've all heard that a million monkeys banging on a million typewriters will eventually reproduce the entire works of Shakespeare. Now, thanks to the Internet, we know this is not true.^ [Robert Wilensky (1997)] From clh at christopherhawkins.com Tue Apr 20 20:00:09 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Tue, 20 Apr 2004 19:00:09 -0600 Subject: [AccessD] Query fails when using NOT IN ??? Message-ID: <255310-22004432110959@christopherhawkins.com> All, This is weird. I have a query that is supposed to return all records from a Time Entry table where the Entry ID is not in the Line Item table. So basically, it's "SELECT [field list here] FROM TimeEntry WHERE EntryID NOT IN (SELECT EntryID FROM LineItem)". Pretty simple, right? I can verify that there are a ton of records in TimeEntry that have no corresponding record in LineItem. But when I run the query above, it returns no records. Any idea? -C- From stuart at lexacorp.com.pg Tue Apr 20 20:19:14 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 21 Apr 2004 11:19:14 +1000 Subject: [AccessD] Query fails when using NOT IN ??? In-Reply-To: <255310-22004432110959@christopherhawkins.com> Message-ID: <408658B2.6832.59DA9FE@localhost> On 20 Apr 2004 at 19:00, Christopher Hawkins wrote: > All, > > This is weird. I have a query that is supposed to return all records > from a Time Entry table where the Entry ID is not in the Line Item > table. > > So basically, it's "SELECT [field list here] FROM TimeEntry WHERE > EntryID NOT IN (SELECT EntryID FROM LineItem)". > > Pretty simple, right? I can verify that there are a ton of records > in TimeEntry that have no corresponding record in LineItem. But when > I run the query above, it returns no records. > Is EntryID the same datatype in both tables? As another thought, make sure that you haven't "quoted" the subquery in your actual code.. Maybe pasting the actual code would help. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From pharryecoenen at btinternet.com Tue Apr 20 16:35:59 2004 From: pharryecoenen at btinternet.com (Harry Coenen) Date: Tue, 20 Apr 2004 22:35:59 +0100 Subject: [AccessD] Create Junction Table From Existing Data In-Reply-To: Message-ID: Hi Mark How about something like: SELECT CODE, SA FROM T1 WHERE SA NOT IS NULL UNION SELECT CODE, SAR FROM T1 WHERE SAR NOT IS NULL UNION SELECT CODE, SRD FROM T1 WHERE SRD NOT IS NULL; Then you only need to get your PK right If you really wnat the numbering as indicated you could pass the above query to a table with a PK as autonumber There must be a way to do this in the query, I have seen it somewhere, but where? Regards Harry >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >Mitsules, Mark S. (Newport News) >Sent: Tuesday, April 20, 2004 10:08 PM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Create Junction Table From Existing Data > > >I did just that to create the primary tables. But, since I've >never had to >do this on such a grand scale, I need assistance in generating >the junction >table. Here is pseudo data for clarification. I've placed dashes to >maintain alignment. > >ID--CODE--SA--SAR--SRD >1---EA1---SA--SAR--SRD >2---EEY1--SA >3---EEY2--SA--SAR--SRD > >...from the data above, I need: >PK--CODE--TYPE >1---EA1---SA >2---EA1---SAR >3---EA1---SRD >4---EEY1--SA >5---EEY2--SA >6---EEY2--SAR >7---EEY2--SRD > >Any suggestions? > >Mark > > > >-----Original Message----- >From: William Hindman [mailto:wdhindman at bellsouth.net] >Sent: Tuesday, April 20, 2004 4:42 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Create Junction Table From Existing Data > > >...I know of no simple way to do this ...my approach has >always been to add >an ANPK to the original table and then to use that as the control to >populate the derivative tables through a series of queries ...but the >circumstances change so much from mdb to mdb that I've never >been able to >write code that ever worked for more than one situation. > >William Hindman >"Always code as if the person who is maintaining or testing >your code is >a violent psychopath who knows where you live." William Silverstein > > >----- Original Message ----- >From: "Mitsules, Mark S. (Newport News)" >To: "'[AccessD]'" >Sent: Tuesday, April 20, 2004 4:23 PM >Subject: [AccessD] Create Junction Table From Existing Data > > >> Group, >> >> Is there a method to create a junction table from a >non-normalized table? >I >> inherited a table that I now need to normalize into two >primary tables and >a >> joining junction table. The primary tables were easy enough >to create, >but >> how can I create the junction table? >> >> I want to take a records such as: >> Fld1 Fld2 Fld3 Fld4 Fld5 <=Fields >> Dat1 Fld2 Fld4 Fld5 <=Record >> Dat2 Fld3 Fld4 <=Record >> >> And turn it into: >> Fld1 FldID <=Fields >> Dat1 Fld2 <=Record >> Dat1 Fld4 <=Record >> Dat1 Fld5 <=Record >> Dat2 Fld3 <=Record >> Dat2 Fld4 <=Record >> >> >> 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 andrew.haslett at ilc.gov.au Tue Apr 20 20:27:12 2004 From: andrew.haslett at ilc.gov.au (Haslett, Andrew) Date: Wed, 21 Apr 2004 10:57:12 +0930 Subject: [AccessD] Query fails when using NOT IN ??? Message-ID: I was about to say that the AccessSQL dialect may not be able to handle derived tables, but I tested it and it worked fine for me. Are they EntryID fields in both tables different data types perhaps? A workaround would be to use a Left join and filter where the EntryID is Null: Select [field list] >From TimeEntry Left Join EntryID ON TimeEntry.EntryID = LineItem.EntryID WHERE LineItem.EntryID IS Null Cheers, Andrew -----Original Message----- From: Christopher Hawkins [mailto:clh at christopherhawkins.com] Sent: Wednesday, 21 April 2004 10:30 AM To: accessd at databaseadvisors.com Subject: [AccessD] Query fails when using NOT IN ??? All, This is weird. I have a query that is supposed to return all records from a Time Entry table where the Entry ID is not in the Line Item table. So basically, it's "SELECT [field list here] FROM TimeEntry WHERE EntryID NOT IN (SELECT EntryID FROM LineItem)". Pretty simple, right? I can verify that there are a ton of records in TimeEntry that have no corresponding record in LineItem. But when I run the query above, it returns no records. Any idea? -C- -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com IMPORTANT - PLEASE READ ******************** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. From DaveSharpe2 at cox.net Tue Apr 20 20:26:15 2004 From: DaveSharpe2 at cox.net (Dave Sharpe) Date: Tue, 20 Apr 2004 21:26:15 -0400 Subject: [AccessD] Query fails when using NOT IN ??? References: <255310-22004432110959@christopherhawkins.com> Message-ID: <003101c4273f$a38dab10$dd2f0a44@bcsrkeext6137> Christopher I build graphically ( and this worked ), viewing the code Access put in some "(" and ")" that might be required. SELECT output.code FROM [output] WHERE (((output.code) Not In (SELECT output_2.code FROM output_2 ))); Dave ----- Original Message ----- From: "Christopher Hawkins" To: Sent: Tuesday, April 20, 2004 9:00 PM Subject: [AccessD] Query fails when using NOT IN ??? All, This is weird. I have a query that is supposed to return all records from a Time Entry table where the Entry ID is not in the Line Item table. So basically, it's "SELECT [field list here] FROM TimeEntry WHERE EntryID NOT IN (SELECT EntryID FROM LineItem)". Pretty simple, right? I can verify that there are a ton of records in TimeEntry that have no corresponding record in LineItem. But when I run the query above, it returns no records. Any idea? -C- -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From clh at christopherhawkins.com Tue Apr 20 20:45:23 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Tue, 20 Apr 2004 19:45:23 -0600 Subject: [AccessD] Query fails when using NOT IN ??? Message-ID: <410-2200443211452378@christopherhawkins.com> Yeah, I did something like that as a temp solution, just to my client can keep working. This is damned weird. I can do the same thing on any other two tables and it works fine. Is there a limitation on how many records can be returned in a subquery? -Christopher- ---- Original Message ---- From: andrew.haslett at ilc.gov.au To: accessd at databaseadvisors.com, Subject: RE: [AccessD] Query fails when using NOT IN ??? Date: Wed, 21 Apr 2004 10:57:12 +0930 >I was about to say that the AccessSQL dialect may not be able to >handle >derived tables, but I tested it and it worked fine for me. > >Are they EntryID fields in both tables different data types perhaps? > >A workaround would be to use a Left join and filter where the >EntryID is >Null: > >Select > [field list] >>From > TimeEntry >Left Join > EntryID >ON > TimeEntry.EntryID = LineItem.EntryID >WHERE > LineItem.EntryID IS Null > >Cheers, >Andrew > >-----Original Message----- >From: Christopher Hawkins [mailto:clh at christopherhawkins.com] >Sent: Wednesday, 21 April 2004 10:30 AM >To: accessd at databaseadvisors.com >Subject: [AccessD] Query fails when using NOT IN ??? > >All, > >This is weird. I have a query that is supposed to return all records >from a Time Entry table where the Entry ID is not in the Line Item >table. > >So basically, it's "SELECT [field list here] FROM TimeEntry WHERE >EntryID NOT IN (SELECT EntryID FROM LineItem)". > >Pretty simple, right? I can verify that there are a ton of records >in TimeEntry that have no corresponding record in LineItem. But when >I run the query above, it returns no records. > >Any idea? > >-C- > > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >IMPORTANT - PLEASE READ ******************** >This email and any files transmitted with it are confidential and >may >contain information protected by law from disclosure. >If you have received this message in error, please notify the sender >immediately and delete this email from your system. >No warranty is given that this email or files, if attached to this >email, are free from computer viruses or other defects. They >are provided on the basis the user assumes all responsibility for >loss, damage or consequence resulting directly or indirectly from >their use, whether caused by the negligence of the sender or not. >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > From clh at christopherhawkins.com Tue Apr 20 20:48:01 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Tue, 20 Apr 2004 19:48:01 -0600 Subject: [AccessD] Query fails when using NOT IN ??? Message-ID: <184670-2200443211481720@christopherhawkins.com> Yes, same datatype. No, no quotes. Here's the SQL statement. Understand that StartDate and EndDate are dates that were passed in to the function that contains this SQL. I've pulled it apart into it's component pieces; it's definitely the IN statement that is failing. Here's the SQL: sInsert = "INSERT INTO TG_InvoiceLine (BlockID, UserId, InvoiceID, ItemID, [Date], " & _ "Description, QB_ActivitiesID, Billable, QBCustomerJob, Qty, LineTotal, LineCost, Rate) " & _ "SELECT TG_qryTimeBlockReview.BlockID, TG_qryTimeBlockReview.UserId, TG_qryTimeBlockReview.InvoiceId, " & _ "TG_qryTimeBlockReview.ItemID, TG_qryTimeBlockReview.[Date], TG_qryTimeBlockReview.BlockDescription, " & _ "TG_qryTimeBlockReview.QB_ActivitiesID, TG_qryTimeBlockReview.Billable, " & _ "TG_qryTimeBlockReview.QB_NameID, TG_qryTimeBlockReview.Duration AS Qty, " & _ "TG_qryTimeBlockReview.LineTotal, TG_qryTimeBlockReview.LineCost, TG_qryTimeBlockReview.TG_Rate " & _ "FROM TG_qryTimeBlockReview WHERE TG_qryTimeBlockReview.BlockID NOT IN (SELECT BlockID FROM TG_InvoiceLine) AND (((TG_qryTimeBlockReview.[Date]) Between #" & StartDate & "# And #" & EndDate & "#));" -C- ---- Original Message ---- From: stuart at lexacorp.com.pg To: accessd at databaseadvisors.com, Subject: Re: [AccessD] Query fails when using NOT IN ??? Date: Wed, 21 Apr 2004 11:19:14 +1000 >On 20 Apr 2004 at 19:00, Christopher Hawkins wrote: > >> All, >> >> This is weird. I have a query that is supposed to return all >records >> from a Time Entry table where the Entry ID is not in the Line Item >> table. >> >> So basically, it's "SELECT [field list here] FROM TimeEntry WHERE >> EntryID NOT IN (SELECT EntryID FROM LineItem)". >> >> Pretty simple, right? I can verify that there are a ton of records >> in TimeEntry that have no corresponding record in LineItem. But >when >> I run the query above, it returns no records. >> > >Is EntryID the same datatype in both tables? > >As another thought, make sure that you haven't "quoted" the subquery >in your actual code.. > >Maybe pasting the actual code would help. > > > > > > > >-- >Lexacorp Ltd >http://www.lexacorp.com.pg >Information Technology Consultancy, Software Development,System >Support. > > > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > From clh at christopherhawkins.com Tue Apr 20 20:48:07 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Tue, 20 Apr 2004 19:48:07 -0600 Subject: [AccessD] Query fails when using NOT IN ??? Message-ID: <63340-2200443211487408@christopherhawkins.com> Yes, same datatype. No, no quotes. Here's the SQL statement. Understand that StartDate and EndDate are dates that were passed in to the function that contains this SQL. I've pulled it apart into it's component pieces; it's definitely the IN statement that is failing. Here's the SQL: sInsert = "INSERT INTO TG_InvoiceLine (BlockID, UserId, InvoiceID, ItemID, [Date], " & _ "Description, QB_ActivitiesID, Billable, QBCustomerJob, Qty, LineTotal, LineCost, Rate) " & _ "SELECT TG_qryTimeBlockReview.BlockID, TG_qryTimeBlockReview.UserId, TG_qryTimeBlockReview.InvoiceId, " & _ "TG_qryTimeBlockReview.ItemID, TG_qryTimeBlockReview.[Date], TG_qryTimeBlockReview.BlockDescription, " & _ "TG_qryTimeBlockReview.QB_ActivitiesID, TG_qryTimeBlockReview.Billable, " & _ "TG_qryTimeBlockReview.QB_NameID, TG_qryTimeBlockReview.Duration AS Qty, " & _ "TG_qryTimeBlockReview.LineTotal, TG_qryTimeBlockReview.LineCost, TG_qryTimeBlockReview.TG_Rate " & _ "FROM TG_qryTimeBlockReview WHERE TG_qryTimeBlockReview.BlockID NOT IN (SELECT BlockID FROM TG_InvoiceLine) AND (((TG_qryTimeBlockReview.[Date]) Between #" & StartDate & "# And #" & EndDate & "#));" -C- ---- Original Message ---- From: stuart at lexacorp.com.pg To: accessd at databaseadvisors.com, Subject: Re: [AccessD] Query fails when using NOT IN ??? Date: Wed, 21 Apr 2004 11:19:14 +1000 >On 20 Apr 2004 at 19:00, Christopher Hawkins wrote: > >> All, >> >> This is weird. I have a query that is supposed to return all >records >> from a Time Entry table where the Entry ID is not in the Line Item >> table. >> >> So basically, it's "SELECT [field list here] FROM TimeEntry WHERE >> EntryID NOT IN (SELECT EntryID FROM LineItem)". >> >> Pretty simple, right? I can verify that there are a ton of records >> in TimeEntry that have no corresponding record in LineItem. But >when >> I run the query above, it returns no records. >> > >Is EntryID the same datatype in both tables? > >As another thought, make sure that you haven't "quoted" the subquery >in your actual code.. > >Maybe pasting the actual code would help. > > > > > > > >-- >Lexacorp Ltd >http://www.lexacorp.com.pg >Information Technology Consultancy, Software Development,System >Support. > > > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > From andrew.haslett at ilc.gov.au Tue Apr 20 21:00:53 2004 From: andrew.haslett at ilc.gov.au (Haslett, Andrew) Date: Wed, 21 Apr 2004 11:30:53 +0930 Subject: [AccessD] Query fails when using NOT IN ??? Message-ID: And it still doesn't work if you drop off the date related 'AND' clause in the where function? -----Original Message----- From: Christopher Hawkins [mailto:clh at christopherhawkins.com] Sent: Wednesday, 21 April 2004 11:18 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Query fails when using NOT IN ??? Yes, same datatype. No, no quotes. Here's the SQL statement. Understand that StartDate and EndDate are dates that were passed in to the function that contains this SQL. I've pulled it apart into it's component pieces; it's definitely the IN statement that is failing. Here's the SQL: sInsert = "INSERT INTO TG_InvoiceLine (BlockID, UserId, InvoiceID, ItemID, [Date], " & _ "Description, QB_ActivitiesID, Billable, QBCustomerJob, Qty, LineTotal, LineCost, Rate) " & _ "SELECT TG_qryTimeBlockReview.BlockID, TG_qryTimeBlockReview.UserId, TG_qryTimeBlockReview.InvoiceId, " & _ "TG_qryTimeBlockReview.ItemID, TG_qryTimeBlockReview.[Date], TG_qryTimeBlockReview.BlockDescription, " & _ "TG_qryTimeBlockReview.QB_ActivitiesID, TG_qryTimeBlockReview.Billable, " & _ "TG_qryTimeBlockReview.QB_NameID, TG_qryTimeBlockReview.Duration AS Qty, " & _ "TG_qryTimeBlockReview.LineTotal, TG_qryTimeBlockReview.LineCost, TG_qryTimeBlockReview.TG_Rate " & _ "FROM TG_qryTimeBlockReview WHERE TG_qryTimeBlockReview.BlockID NOT IN (SELECT BlockID FROM TG_InvoiceLine) AND (((TG_qryTimeBlockReview.[Date]) Between #" & StartDate & "# And #" & EndDate & "#));" -C- ---- Original Message ---- From: stuart at lexacorp.com.pg To: accessd at databaseadvisors.com, Subject: Re: [AccessD] Query fails when using NOT IN ??? Date: Wed, 21 Apr 2004 11:19:14 +1000 >On 20 Apr 2004 at 19:00, Christopher Hawkins wrote: > >> All, >> >> This is weird. I have a query that is supposed to return all >records >> from a Time Entry table where the Entry ID is not in the Line Item >> table. >> >> So basically, it's "SELECT [field list here] FROM TimeEntry WHERE >> EntryID NOT IN (SELECT EntryID FROM LineItem)". >> >> Pretty simple, right? I can verify that there are a ton of records >> in TimeEntry that have no corresponding record in LineItem. But >when >> I run the query above, it returns no records. >> > >Is EntryID the same datatype in both tables? > >As another thought, make sure that you haven't "quoted" the subquery >in your actual code.. > >Maybe pasting the actual code would help. > > > > > > > >-- >Lexacorp Ltd >http://www.lexacorp.com.pg >Information Technology Consultancy, Software Development,System >Support. > > > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com IMPORTANT - PLEASE READ ******************** This email and any files transmitted with it are confidential and may contain information protected by law from disclosure. If you have received this message in error, please notify the sender immediately and delete this email from your system. No warranty is given that this email or files, if attached to this email, are free from computer viruses or other defects. They are provided on the basis the user assumes all responsibility for loss, damage or consequence resulting directly or indirectly from their use, whether caused by the negligence of the sender or not. From stuart at lexacorp.com.pg Tue Apr 20 21:07:36 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 21 Apr 2004 12:07:36 +1000 Subject: [AccessD] Query fails when using NOT IN ??? In-Reply-To: <63340-2200443211487408@christopherhawkins.com> Message-ID: <40866408.26705.5C9F22C@localhost> On 20 Apr 2004 at 19:48, Christopher Hawkins wrote: > Yes, same datatype. No, no quotes. > > Here's the SQL statement. Understand that StartDate and EndDate are > dates that were passed in to the function that contains this SQL. > I've pulled it apart into it's component pieces; it's definitely the > IN statement that is failing. > 1. Does it resolve to: " (NOT IN.... ) AND...." or "NOT (IN.... AND....)" Try changing it to "(NOT IN (SELECT BlockID FROM TG_InvoiceLine)) AND" 2. Are you 105% certain that it's not "(((TG_qryTimeBlockReview.[Date]) Between #" & StartDate & "# And #" & EndDate & "#))" that's failing. Parsing dates properly can be a real hassle. Your version is likely to fail if the default date fromat is "dd/mm/yy" Try something like ....."Between " & Format$(StartDate,"#mm/dd/yy#") " & " AND " _ & Format$(EndDate,"#mm/dd/yy#") & ..... > Here's the SQL: > > sInsert = "INSERT INTO TG_InvoiceLine (BlockID, UserId, > InvoiceID, ItemID, [Date], " & _ > "Description, QB_ActivitiesID, Billable, QBCustomerJob, > Qty, LineTotal, LineCost, Rate) " & _ > "SELECT TG_qryTimeBlockReview.BlockID, > TG_qryTimeBlockReview.UserId, TG_qryTimeBlockReview.InvoiceId, " & _ > "TG_qryTimeBlockReview.ItemID, > TG_qryTimeBlockReview.[Date], TG_qryTimeBlockReview.BlockDescription, > " & _ > "TG_qryTimeBlockReview.QB_ActivitiesID, > TG_qryTimeBlockReview.Billable, " & _ > "TG_qryTimeBlockReview.QB_NameID, > TG_qryTimeBlockReview.Duration AS Qty, " & _ > "TG_qryTimeBlockReview.LineTotal, > TG_qryTimeBlockReview.LineCost, TG_qryTimeBlockReview.TG_Rate " & _ > "FROM TG_qryTimeBlockReview WHERE > TG_qryTimeBlockReview.BlockID NOT IN (SELECT BlockID FROM > TG_InvoiceLine) AND (((TG_qryTimeBlockReview.[Date]) Between #" & > StartDate & "# And #" & EndDate & "#));" > -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From clh at christopherhawkins.com Tue Apr 20 21:12:11 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Tue, 20 Apr 2004 20:12:11 -0600 Subject: [AccessD] Query fails when using NOT IN ??? Message-ID: <265000-22004432121211411@christopherhawkins.com> Right. As long as that IN statement is there, this thing returns zero records. There should be 262. -C- ---- Original Message ---- From: andrew.haslett at ilc.gov.au To: accessd at databaseadvisors.com, Subject: RE: [AccessD] Query fails when using NOT IN ??? Date: Wed, 21 Apr 2004 11:30:53 +0930 >And it still doesn't work if you drop off the date related 'AND' >clause in >the where function? > >-----Original Message----- >From: Christopher Hawkins [mailto:clh at christopherhawkins.com] >Sent: Wednesday, 21 April 2004 11:18 AM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Query fails when using NOT IN ??? > >Yes, same datatype. No, no quotes. > >Here's the SQL statement. Understand that StartDate and EndDate are >dates that were passed in to the function that contains this SQL. >I've pulled it apart into it's component pieces; it's definitely the >IN statement that is failing. > >Here's the SQL: > > sInsert = "INSERT INTO TG_InvoiceLine (BlockID, UserId, >InvoiceID, ItemID, [Date], " & _ > "Description, QB_ActivitiesID, Billable, QBCustomerJob, >Qty, LineTotal, LineCost, Rate) " & _ > "SELECT TG_qryTimeBlockReview.BlockID, >TG_qryTimeBlockReview.UserId, TG_qryTimeBlockReview.InvoiceId, " & _ > "TG_qryTimeBlockReview.ItemID, >TG_qryTimeBlockReview.[Date], TG_qryTimeBlockReview.BlockDescription, >" & _ > "TG_qryTimeBlockReview.QB_ActivitiesID, >TG_qryTimeBlockReview.Billable, " & _ > "TG_qryTimeBlockReview.QB_NameID, >TG_qryTimeBlockReview.Duration AS Qty, " & _ > "TG_qryTimeBlockReview.LineTotal, >TG_qryTimeBlockReview.LineCost, TG_qryTimeBlockReview.TG_Rate " & _ > "FROM TG_qryTimeBlockReview WHERE >TG_qryTimeBlockReview.BlockID NOT IN (SELECT BlockID FROM >TG_InvoiceLine) AND (((TG_qryTimeBlockReview.[Date]) Between #" & >StartDate & "# And #" & EndDate & "#));" > >-C- > >---- Original Message ---- >From: stuart at lexacorp.com.pg >To: accessd at databaseadvisors.com, >Subject: Re: [AccessD] Query fails when using NOT IN ??? >Date: Wed, 21 Apr 2004 11:19:14 +1000 > >>On 20 Apr 2004 at 19:00, Christopher Hawkins wrote: >> >>> All, >>> >>> This is weird. I have a query that is supposed to return all >>records >>> from a Time Entry table where the Entry ID is not in the Line Item >>> table. >>> >>> So basically, it's "SELECT [field list here] FROM TimeEntry WHERE >>> EntryID NOT IN (SELECT EntryID FROM LineItem)". >>> >>> Pretty simple, right? I can verify that there are a ton of >records >>> in TimeEntry that have no corresponding record in LineItem. But >>when >>> I run the query above, it returns no records. >>> >> >>Is EntryID the same datatype in both tables? >> >>As another thought, make sure that you haven't "quoted" the >subquery >>in your actual code.. >> >>Maybe pasting the actual code would help. >> >> >> >> >> >> >> >>-- >>Lexacorp Ltd >>http://www.lexacorp.com.pg >>Information Technology Consultancy, Software Development,System >>Support. >> >> >> >>-- >>_______________________________________________ >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> > > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >IMPORTANT - PLEASE READ ******************** >This email and any files transmitted with it are confidential and >may >contain information protected by law from disclosure. >If you have received this message in error, please notify the sender >immediately and delete this email from your system. >No warranty is given that this email or files, if attached to this >email, are free from computer viruses or other defects. They >are provided on the basis the user assumes all responsibility for >loss, damage or consequence resulting directly or indirectly from >their use, whether caused by the negligence of the sender or not. >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > From ssharkins at bellsouth.net Tue Apr 20 21:17:25 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 20 Apr 2004 22:17:25 -0400 Subject: [AccessD] Query fails when using NOT IN ??? In-Reply-To: <265000-22004432121211411@christopherhawkins.com> Message-ID: <20040421021754.NPWG1778.imf18aec.mail.bellsouth.net@SUSANONE> Are you sure the data you're checking meets the conditions? I didn't see the original question, but if the syntax is correct, then the data's wrong. I've seen something as simple as a leading space throw off the results and they're hard to find. Right. As long as that IN statement is there, this thing returns zero records. There should be 262. -C- ---- Original Message ---- From: andrew.haslett at ilc.gov.au To: accessd at databaseadvisors.com, Subject: RE: [AccessD] Query fails when using NOT IN ??? Date: Wed, 21 Apr 2004 11:30:53 +0930 >And it still doesn't work if you drop off the date related 'AND' >clause in >the where function? > >-----Original Message----- >From: Christopher Hawkins [mailto:clh at christopherhawkins.com] >Sent: Wednesday, 21 April 2004 11:18 AM >To: accessd at databaseadvisors.com >Subject: Re: [AccessD] Query fails when using NOT IN ??? > >Yes, same datatype. No, no quotes. > >Here's the SQL statement. Understand that StartDate and EndDate are >dates that were passed in to the function that contains this SQL. >I've pulled it apart into it's component pieces; it's definitely the IN >statement that is failing. > >Here's the SQL: > > sInsert = "INSERT INTO TG_InvoiceLine (BlockID, UserId, >InvoiceID, ItemID, [Date], " & _ > "Description, QB_ActivitiesID, Billable, QBCustomerJob, >Qty, LineTotal, LineCost, Rate) " & _ > "SELECT TG_qryTimeBlockReview.BlockID, >TG_qryTimeBlockReview.UserId, TG_qryTimeBlockReview.InvoiceId, " & _ > "TG_qryTimeBlockReview.ItemID, >TG_qryTimeBlockReview.[Date], TG_qryTimeBlockReview.BlockDescription, >" & _ > "TG_qryTimeBlockReview.QB_ActivitiesID, >TG_qryTimeBlockReview.Billable, " & _ > "TG_qryTimeBlockReview.QB_NameID, >TG_qryTimeBlockReview.Duration AS Qty, " & _ > "TG_qryTimeBlockReview.LineTotal, >TG_qryTimeBlockReview.LineCost, TG_qryTimeBlockReview.TG_Rate " & _ > "FROM TG_qryTimeBlockReview WHERE >TG_qryTimeBlockReview.BlockID NOT IN (SELECT BlockID FROM >TG_InvoiceLine) AND (((TG_qryTimeBlockReview.[Date]) Between #" & >StartDate & "# And #" & EndDate & "#));" > >-C- > >---- Original Message ---- >From: stuart at lexacorp.com.pg >To: accessd at databaseadvisors.com, >Subject: Re: [AccessD] Query fails when using NOT IN ??? >Date: Wed, 21 Apr 2004 11:19:14 +1000 > >>On 20 Apr 2004 at 19:00, Christopher Hawkins wrote: >> >>> All, >>> >>> This is weird. I have a query that is supposed to return all >>records >>> from a Time Entry table where the Entry ID is not in the Line Item >>> table. >>> >>> So basically, it's "SELECT [field list here] FROM TimeEntry WHERE >>> EntryID NOT IN (SELECT EntryID FROM LineItem)". >>> >>> Pretty simple, right? I can verify that there are a ton of >records >>> in TimeEntry that have no corresponding record in LineItem. But >>when >>> I run the query above, it returns no records. >>> >> >>Is EntryID the same datatype in both tables? >> >>As another thought, make sure that you haven't "quoted" the >subquery >>in your actual code.. >> >>Maybe pasting the actual code would help. >> >> >> >> >> >> >> >>-- >>Lexacorp Ltd >>http://www.lexacorp.com.pg >>Information Technology Consultancy, Software Development,System >>Support. >> >> >> >>-- >>_______________________________________________ >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> > > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >IMPORTANT - PLEASE READ ******************** This email and any files >transmitted with it are confidential and may contain information >protected by law from disclosure. >If you have received this message in error, please notify the sender >immediately and delete this email from your system. >No warranty is given that this email or files, if attached to this >email, are free from computer viruses or other defects. They are >provided on the basis the user assumes all responsibility for loss, >damage or consequence resulting directly or indirectly from their use, >whether caused by the negligence of the sender or not. >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From clh at christopherhawkins.com Tue Apr 20 21:27:14 2004 From: clh at christopherhawkins.com (Christopher Hawkins) Date: Tue, 20 Apr 2004 20:27:14 -0600 Subject: [AccessD] Query fails when using NOT IN ??? Message-ID: <191690-22004432122714422@christopherhawkins.com> AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUGH! There were some nulls in the BlockID field of the TG_InvoiceLine table. I set those to 0 and the IN statement started to work again. Heh. What an idiot. Thanks, everybody, and especially Susan for bringing up the dirty data angle. -C- ---- Original Message ---- From: ssharkins at bellsouth.net To: accessd at databaseadvisors.com, Subject: RE: [AccessD] Query fails when using NOT IN ??? Date: Tue, 20 Apr 2004 22:17:25 -0400 >Are you sure the data you're checking meets the conditions? I didn't >see the >original question, but if the syntax is correct, then the data's >wrong. I've >seen something as simple as a leading space throw off the results and >they're hard to find. > > >Right. As long as that IN statement is there, this thing returns >zero >records. There should be 262. > >-C- > >---- Original Message ---- >From: andrew.haslett at ilc.gov.au >To: accessd at databaseadvisors.com, >Subject: RE: [AccessD] Query fails when using NOT IN ??? >Date: Wed, 21 Apr 2004 11:30:53 +0930 > >>And it still doesn't work if you drop off the date related 'AND' >>clause in >>the where function? >> >>-----Original Message----- >>From: Christopher Hawkins [mailto:clh at christopherhawkins.com] >>Sent: Wednesday, 21 April 2004 11:18 AM >>To: accessd at databaseadvisors.com >>Subject: Re: [AccessD] Query fails when using NOT IN ??? >> >>Yes, same datatype. No, no quotes. >> >>Here's the SQL statement. Understand that StartDate and EndDate >are >>dates that were passed in to the function that contains this SQL. >>I've pulled it apart into it's component pieces; it's definitely >the IN >>statement that is failing. >> >>Here's the SQL: >> >> sInsert = "INSERT INTO TG_InvoiceLine (BlockID, UserId, >>InvoiceID, ItemID, [Date], " & _ >> "Description, QB_ActivitiesID, Billable, QBCustomerJob, >>Qty, LineTotal, LineCost, Rate) " & _ >> "SELECT TG_qryTimeBlockReview.BlockID, >>TG_qryTimeBlockReview.UserId, TG_qryTimeBlockReview.InvoiceId, " & _ >> "TG_qryTimeBlockReview.ItemID, >>TG_qryTimeBlockReview.[Date], >TG_qryTimeBlockReview.BlockDescription, >>" & _ >> "TG_qryTimeBlockReview.QB_ActivitiesID, >>TG_qryTimeBlockReview.Billable, " & _ >> "TG_qryTimeBlockReview.QB_NameID, >>TG_qryTimeBlockReview.Duration AS Qty, " & _ >> "TG_qryTimeBlockReview.LineTotal, >>TG_qryTimeBlockReview.LineCost, TG_qryTimeBlockReview.TG_Rate " & _ >> "FROM TG_qryTimeBlockReview WHERE >>TG_qryTimeBlockReview.BlockID NOT IN (SELECT BlockID FROM >>TG_InvoiceLine) AND (((TG_qryTimeBlockReview.[Date]) Between #" & >>StartDate & "# And #" & EndDate & "#));" >> >>-C- >> >>---- Original Message ---- >>From: stuart at lexacorp.com.pg >>To: accessd at databaseadvisors.com, >>Subject: Re: [AccessD] Query fails when using NOT IN ??? >>Date: Wed, 21 Apr 2004 11:19:14 +1000 >> >>>On 20 Apr 2004 at 19:00, Christopher Hawkins wrote: >>> >>>> All, >>>> >>>> This is weird. I have a query that is supposed to return all >>>records >>>> from a Time Entry table where the Entry ID is not in the Line >Item >>>> table. >>>> >>>> So basically, it's "SELECT [field list here] FROM TimeEntry >WHERE >>>> EntryID NOT IN (SELECT EntryID FROM LineItem)". >>>> >>>> Pretty simple, right? I can verify that there are a ton of >>records >>>> in TimeEntry that have no corresponding record in LineItem. But >>>when >>>> I run the query above, it returns no records. >>>> >>> >>>Is EntryID the same datatype in both tables? >>> >>>As another thought, make sure that you haven't "quoted" the >>subquery >>>in your actual code.. >>> >>>Maybe pasting the actual code would help. >>> >>> >>> >>> >>> >>> >>> >>>-- >>>Lexacorp Ltd >>>http://www.lexacorp.com.pg >>>Information Technology Consultancy, Software Development,System >>>Support. >>> >>> >>> >>>-- >>>_______________________________________________ >>>AccessD mailing list >>>AccessD at databaseadvisors.com >>>http://databaseadvisors.com/mailman/listinfo/accessd >>>Website: http://www.databaseadvisors.com >>> >> >> >>-- >>_______________________________________________ >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> >>IMPORTANT - PLEASE READ ******************** This email and any >files >>transmitted with it are confidential and may contain information >>protected by law from disclosure. >>If you have received this message in error, please notify the >sender >>immediately and delete this email from your system. >>No warranty is given that this email or files, if attached to this >>email, are free from computer viruses or other defects. They are >>provided on the basis the user assumes all responsibility for loss, >>damage or consequence resulting directly or indirectly from their >use, >>whether caused by the negligence of the sender or not. >>-- >>_______________________________________________ >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> > > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >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 Tue Apr 20 21:35:53 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 20 Apr 2004 22:35:53 -0400 Subject: [AccessD] Query fails when using NOT IN ??? In-Reply-To: <191690-22004432122714422@christopherhawkins.com> Message-ID: <20040421023552.SAUG1774.imf19aec.mail.bellsouth.net@SUSANONE> Susan's my name, dirty data's my game... ;) Glad to help. Susan H. AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUGH! There were some nulls in the BlockID field of the TG_InvoiceLine table. I set those to 0 and the IN statement started to work again. Heh. What an idiot. Thanks, everybody, and especially Susan for bringing up the dirty data angle. From accessd at shaw.ca Tue Apr 20 21:41:17 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Tue, 20 Apr 2004 19:41:17 -0700 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <20040420204838.HADS1779.imf21aec.mail.bellsouth.net@SUSANONE> Message-ID: Hi Susan: ... how would you prevent an error in the form? I suppose I could just handle it and remind the user to open the form and ... Private Sub Report_Open(Cancel As Integer) If SysCmd(acSysCmdGetObjectState, acForm, "TheFormthatIwhat") <> 0 Then If Forms("TheFormthatIwhat").CurrentView = 0 Then MsgBox "Form Project must currently" & vbCr & _ "active to supply information.", vbExclamation, "Error..." Cancel = True End If End If End Function Place code similar to this in the Report's Open event. Jim From pharryecoenen at btinternet.com Tue Apr 20 20:58:20 2004 From: pharryecoenen at btinternet.com (Harry Coenen) Date: Wed, 21 Apr 2004 02:58:20 +0100 Subject: [AccessD] Query fails when using NOT IN ??? In-Reply-To: <63340-2200443211487408@christopherhawkins.com> Message-ID: I guess this is it: WHERE ( '<<=============================bracket added TG_qryTimeBlockReview.BlockID NOT IN ( SELECT BlockID FROM TG_InvoiceLine ) ) '<<=============================bracket added AND ( ( (TG_qryTimeBlockReview.[Date]) Between #" & StartDate & "# And #" & EndDate & "# ) ) ; " > >-C- > >---- Original Message ---- >From: stuart at lexacorp.com.pg >To: accessd at databaseadvisors.com, >Subject: Re: [AccessD] Query fails when using NOT IN ??? >Date: Wed, 21 Apr 2004 11:19:14 +1000 > >>On 20 Apr 2004 at 19:00, Christopher Hawkins wrote: >> >>> All, >>> >>> This is weird. I have a query that is supposed to return all >>records >>> from a Time Entry table where the Entry ID is not in the Line Item >>> table. >>> >>> So basically, it's "SELECT [field list here] FROM TimeEntry WHERE >>> EntryID NOT IN (SELECT EntryID FROM LineItem)". >>> >>> Pretty simple, right? I can verify that there are a ton of records >>> in TimeEntry that have no corresponding record in LineItem. But >>when >>> I run the query above, it returns no records. >>> >> >>Is EntryID the same datatype in both tables? >> >>As another thought, make sure that you haven't "quoted" the subquery >>in your actual code.. >> >>Maybe pasting the actual code would help. >> >> >> >> >> >> >> >>-- >>Lexacorp Ltd >>http://www.lexacorp.com.pg >>Information Technology Consultancy, Software Development,System >>Support. >> >> >> >>-- >>_______________________________________________ >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/accessd >>Website: http://www.databaseadvisors.com >> > > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > From pharryecoenen at btinternet.com Tue Apr 20 17:51:05 2004 From: pharryecoenen at btinternet.com (Harry Coenen) Date: Tue, 20 Apr 2004 23:51:05 +0100 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <20040420214843.NWZL1832.imf22aec.mail.bellsouth.net@SUSANONE> Message-ID: Hi Susan >From Google: NLS = National Language Support Constant Value Description vbUseSystem 0 Use National Language Support (NLS) API setting. vbSunday 1 Sunday vbMonday 2 Monday vbTuesday 3 Tuesday vbWednesday 4 Wednesday vbThursday 5 Thursday vbFriday 6 Friday vbSaturday 7 Saturday And that's where the search ends But comparing, for example, USA and and UK(English) calendars the NLS would probably be: USA NLS = 1 = Sunday UK NLS = 2 = Monday In case of doubt, I would like to suggest your DON't use the user's system settings, but enforce the correct FirstDayOfWeek and FirstWeekofYear based on company policy Regards Harry >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >Susan Harkins >Sent: Tuesday, April 20, 2004 10:49 PM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] custom sorts/groups in a report > > >Use NLS API setting > >I suppose in both cases the value will be derived from the >systems settings >in the machines registry > >=============I wanted more infomration on NLS API -- but didn't turn up >anything. > >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 Tue Apr 20 23:19:20 2004 From: dmcafee at pacbell.net (David McAfee (Home)) Date: Tue, 20 Apr 2004 21:19:20 -0700 Subject: [AccessD] Query fails when using NOT IN ??? In-Reply-To: <184670-2200443211481720@christopherhawkins.com> Message-ID: This is a known issue with "IN (Select..." You need to create an unmatched query using left join: Select * from tblA LEFT JOIN tblB ON tblA.PK = tblB.FK WHERE tblB.FK = Null -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Christopher Hawkins Sent: Tuesday, April 20, 2004 6:48 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Query fails when using NOT IN ??? Yes, same datatype. No, no quotes. Here's the SQL statement. Understand that StartDate and EndDate are dates that were passed in to the function that contains this SQL. I've pulled it apart into it's component pieces; it's definitely the IN statement that is failing. Here's the SQL: sInsert = "INSERT INTO TG_InvoiceLine (BlockID, UserId, InvoiceID, ItemID, [Date], " & _ "Description, QB_ActivitiesID, Billable, QBCustomerJob, Qty, LineTotal, LineCost, Rate) " & _ "SELECT TG_qryTimeBlockReview.BlockID, TG_qryTimeBlockReview.UserId, TG_qryTimeBlockReview.InvoiceId, " & _ "TG_qryTimeBlockReview.ItemID, TG_qryTimeBlockReview.[Date], TG_qryTimeBlockReview.BlockDescription, " & _ "TG_qryTimeBlockReview.QB_ActivitiesID, TG_qryTimeBlockReview.Billable, " & _ "TG_qryTimeBlockReview.QB_NameID, TG_qryTimeBlockReview.Duration AS Qty, " & _ "TG_qryTimeBlockReview.LineTotal, TG_qryTimeBlockReview.LineCost, TG_qryTimeBlockReview.TG_Rate " & _ "FROM TG_qryTimeBlockReview WHERE TG_qryTimeBlockReview.BlockID NOT IN (SELECT BlockID FROM TG_InvoiceLine) AND (((TG_qryTimeBlockReview.[Date]) Between #" & StartDate & "# And #" & EndDate & "#));" -C- ---- Original Message ---- From: stuart at lexacorp.com.pg To: accessd at databaseadvisors.com, Subject: Re: [AccessD] Query fails when using NOT IN ??? Date: Wed, 21 Apr 2004 11:19:14 +1000 >On 20 Apr 2004 at 19:00, Christopher Hawkins wrote: > >> All, >> >> This is weird. I have a query that is supposed to return all >records >> from a Time Entry table where the Entry ID is not in the Line Item >> table. >> >> So basically, it's "SELECT [field list here] FROM TimeEntry WHERE >> EntryID NOT IN (SELECT EntryID FROM LineItem)". >> >> Pretty simple, right? I can verify that there are a ton of records >> in TimeEntry that have no corresponding record in LineItem. But >when >> I run the query above, it returns no records. >> > >Is EntryID the same datatype in both tables? > >As another thought, make sure that you haven't "quoted" the subquery >in your actual code.. > >Maybe pasting the actual code would help. From pharryecoenen at btinternet.com Tue Apr 20 20:51:19 2004 From: pharryecoenen at btinternet.com (Harry Coenen) Date: Wed, 21 Apr 2004 02:51:19 +0100 Subject: [AccessD] Query fails when using NOT IN ??? In-Reply-To: <255310-22004432110959@christopherhawkins.com> Message-ID: Christopher Should work indeed (does in A2k2) a.1 If in Query designer, look at properties of query a.2 Make sure the both EntryID fields are of the same DataType a.3 check for trailing spaces if this datatype is Text (can happen with impoerts from other sources or connections with other sources. Use Trim() to strip of spaces in the query (see below) b. avoid possible ambiguity by ysing table SELECT [field list here] FROM TimeEntry WHERE Trim(TimeEntry.EntryID) NOT IN (SELECT Trim(LineItem.EntryID) FROM LineItem) c. try the JOIN equivalent, works probably faster because the engine should deliver better optimization SELECT [field list here] FROM TimeEntry LEFT JOIN LineItem ON TimeEntry.EntryID = LineItem.EntryID WHERE (LineItem.EntryID Is Null) ; d. Try SELECT [field list here] FROM TimeEntry WHERE NOT EXISTS (SELECT LineItem.EntryID FROM LineItem WHERE LineItem.EntryID = TimeEntry.EntryID) ; e. Give Up -- >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >Christopher Hawkins >Sent: Wednesday, April 21, 2004 2:00 AM >To: accessd at databaseadvisors.com >Subject: [AccessD] Query fails when using NOT IN ??? > > >All, > >This is weird. I have a query that is supposed to return all records >from a Time Entry table where the Entry ID is not in the Line Item >table. > >So basically, it's "SELECT [field list here] FROM TimeEntry WHERE >EntryID NOT IN (SELECT EntryID FROM LineItem)". > >Pretty simple, right? I can verify that there are a ton of records >in TimeEntry that have no corresponding record in LineItem. But when >I run the query above, it returns no records. > >Any idea? > >-C- > > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > From gustav at cactus.dk Wed Apr 21 03:19:20 2004 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 21 Apr 2004 10:19:20 +0200 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <20040420204838.HADS1779.imf21aec.mail.bellsouth.net@SUSANONE> References: <20040420204838.HADS1779.imf21aec.mail.bellsouth.net@SUSANONE> Message-ID: <655792989.20040421101920@cactus.dk> Hi Susan Well, I didn't try to prove an alternative method would be "easier", and you didn't specify that the report should be able to run without the form open; it sounded liked you opened the report from a button on the form after having selected a First-Day-Of-Week. I agree that for wild "applications" where users can do anything even having access to tables and report/form design you must take into account that this or that form may not be open or may have been closed by the user. There are many ways to handle these chaos scenarios, ranging from simple error traps and message boxes to, for this case, forcing the report to open the form if it is closed or closing the report on open if the form is not open. The missing selection of a First-Day-Of-Week on the form could be handled by setting a default value. For myself, I would probably apply the suggestion of Stuart, but I realize that static functions may fly above the head of the average user. /gustav > If the expression's in the query and you open the report without specifying > the value in the form, how would you prevent an error in the form? I suppose > I could just handle it and remind the user to open the form and choose the > first day of the week. > Right now, I've set the report to default to a value and since the > expression's in the report, it works whether you start from the form or just > open the report. You can't specify the grouping value when you open the > report that way, but at least there's no error -- which is a nice > alternative especially if the first day of the week seldom changes. That way > the user's not forced to go through the form every time. > I realize I sound really picky -- but these are the sort of nitpicky > problems I get from readers. These solutions have to be as universal as > possible or I get email. :) "It won't work if...." even when I've told them > clearly in the article that it won't work if... but somehow it's still the > article's shortcoming. It's always best if I can head them off. > Which reminds me -- can someone explain the vbUseSystem constant? There's > almost nothing about it on msdn. It's a system default, but there's not much > about it. Well, the serious search-challenged was unable to find anything on > it besides a vague reference -- no real explanation of the consequences. > Susan H. > Hi Susan > In the query you can pick the value from the form as an expression: > Select > ..., > [Forms].[frmSomeForm].[txtTextbox] As FirstDayOfWeek > From > ... > Is is recommendable also to specify this as a parameter to avoid type > mismatch errors, indeed if the textbox is unbound: > Parameters [Forms].[frmSomeForm].[txtTextbox] Byte; > I don't know what your module does, but basically the date of the first day > of the week of datDate can be found from this formula: > DateWeekFirst = > DateAdd("d", vbSunday - WeekDay(datDate, FirstDayOfWeek), datDate) > You would need to replace vbSunday with the actual value (1 for A97). > End Function > /gustav >> Let me rephrase that -- if I have to have a module, I don't think I >> really care what gets passed where -- my hope was to eliminate the >> module and do all the calculating in the query or the report and I >> thought I might be able to bypass the module using the openargs >> argument. Replacing the module I have for one that passes the value to >> a query really doesn't resolve the issue I had. >> Susan H. >> That's what I'd like to do -- and may do yet by passing the >> firstdayofweek value from the form to the query instead of the report. >> Truth is, I don't know how -- I can't remember ever passing a value to >> a query before and a parameter query is out. > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From gustav at cactus.dk Wed Apr 21 04:16:27 2004 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 21 Apr 2004 11:16:27 +0200 Subject: [AccessD] Create Junction Table From Existing Data In-Reply-To: References: Message-ID: <1139219717.20040421111627@cactus.dk> Hi Mark I would go with the union query as well. The ID can be added by a function like this: Public Function SequentialID( _ ByVal booReset As Boolean, _ Optional ByVal varDummy, _ Optional ByVal intIncrement As Integer = 1, _ Optional ByVal lngInitialID As Long) As Long ' Increments static variable lngCurrentID with intIncrement. ' Returns the new value of lngCurrentID. ' Parameter varDummy is used to force repeated calls of ' this function when used in a query. ' ' Reset to start counting from zero incrementing by one: ' Call SequentialID(True) ' Reset to start counting from 1000: ' Call SequentialID(True, Null, 1, 1000) ' Reset to start counting from zero incrementing by 2: ' Call SequentialID(True, Null, 2) ' Reset to start counting from -2000 incrementing by -8 ' and returning initial ID: ' lngID = SequentialID(True, Null, -8, -2000) ' ' Retrieve the current ID: ' lngID = SequentialID(False) ' Do a count by one and retrieve the current ID: ' lngID = SequentialID(False, Null, 1) ' Do a count by one in a query and retrieve the current ID: ' lngID = SequentialID(False, [fldAnyField], 1) ' Do a count by minus two and retrieve the current ID: ' lngID = SequentialID(False, varAny, -2) ' ' 2001-12-13. Cactus Data ApS, CPH. Static lngCurrentID As Long Dim intSgn As Integer If booReset = True Then ' Reset ID. lngCurrentID = lngInitialID ElseIf Not intIncrement = 0 Then intSgn = Sgn(intIncrement) If intSgn * lngCurrentID < intSgn * lngInitialID Then ' Reset ID. lngCurrentID = lngInitialID Else ' Increment ID. lngCurrentID = lngCurrentID + intIncrement End If End If SequentialID = lngCurrentID End Function Have fun! /gustav > How about something like: > SELECT CODE, SA > FROM T1 > WHERE SA NOT IS NULL > UNION > SELECT CODE, SAR > FROM T1 > WHERE SAR NOT IS NULL > UNION > SELECT CODE, SRD > FROM T1 > WHERE SRD NOT IS NULL; > Then you only need to get your PK right > If you really wnat the numbering as indicated you could pass the above query > to a table with a PK as autonumber > There must be a way to do this in the query, I have seen it somewhere, but > where? > Regards > Harry >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >>Mitsules, Mark S. (Newport News) >>Sent: Tuesday, April 20, 2004 10:08 PM >>To: 'Access Developers discussion and problem solving' >>Subject: RE: [AccessD] Create Junction Table From Existing Data >> >> >>I did just that to create the primary tables. But, since I've >>never had to >>do this on such a grand scale, I need assistance in generating >>the junction >>table. Here is pseudo data for clarification. I've placed dashes to >>maintain alignment. >> >>ID--CODE--SA--SAR--SRD >>1---EA1---SA--SAR--SRD >>2---EEY1--SA >>3---EEY2--SA--SAR--SRD >> >>...from the data above, I need: >>PK--CODE--TYPE >>1---EA1---SA >>2---EA1---SAR >>3---EA1---SRD >>4---EEY1--SA >>5---EEY2--SA >>6---EEY2--SAR >>7---EEY2--SRD >> >>Any suggestions? >> >>Mark >> >> >> >>> Is there a method to create a junction table from a non-normalized table? >>> I inherited a table that I now need to normalize into two primary tables and >>> a joining junction table. The primary tables were easy enough to create, >>> but how can I create the junction table? >>> >>> I want to take a records such as: >>> Fld1 Fld2 Fld3 Fld4 Fld5 <=Fields >>> Dat1 Fld2 Fld4 Fld5 <=Record >>> Dat2 Fld3 Fld4 <=Record >>> >>> And turn it into: >>> Fld1 FldID <=Fields >>> Dat1 Fld2 <=Record >>> Dat1 Fld4 <=Record >>> Dat1 Fld5 <=Record >>> Dat2 Fld3 <=Record >>> Dat2 Fld4 <=Record From Mark.Mitsules at ngc.com Wed Apr 21 06:48:01 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Wed, 21 Apr 2004 07:48:01 -0400 Subject: [AccessD] Create Junction Table From Existing Data Message-ID: Thank you so much for your combined suggestions. I too thought that this could somehow be completed using some sort of self-join or union type of query, but had no idea as to how to proceed. I will be digesting this today. Mark -----Original Message----- From: Harry Coenen [mailto:pharryecoenen at btinternet.com] Sent: Tuesday, April 20, 2004 5:36 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Create Junction Table From Existing Data Hi Mark How about something like: SELECT CODE, SA FROM T1 WHERE SA NOT IS NULL UNION SELECT CODE, SAR FROM T1 WHERE SAR NOT IS NULL UNION SELECT CODE, SRD FROM T1 WHERE SRD NOT IS NULL; Then you only need to get your PK right If you really wnat the numbering as indicated you could pass the above query to a table with a PK as autonumber There must be a way to do this in the query, I have seen it somewhere, but where? Regards Harry >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >Mitsules, Mark S. (Newport News) >Sent: Tuesday, April 20, 2004 10:08 PM >To: 'Access Developers discussion and problem solving' >Subject: RE: [AccessD] Create Junction Table From Existing Data > > >I did just that to create the primary tables. But, since I've >never had to >do this on such a grand scale, I need assistance in generating >the junction >table. Here is pseudo data for clarification. I've placed dashes to >maintain alignment. > >ID--CODE--SA--SAR--SRD >1---EA1---SA--SAR--SRD >2---EEY1--SA >3---EEY2--SA--SAR--SRD > >...from the data above, I need: >PK--CODE--TYPE >1---EA1---SA >2---EA1---SAR >3---EA1---SRD >4---EEY1--SA >5---EEY2--SA >6---EEY2--SAR >7---EEY2--SRD > >Any suggestions? > >Mark > > > >-----Original Message----- >From: William Hindman [mailto:wdhindman at bellsouth.net] >Sent: Tuesday, April 20, 2004 4:42 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Create Junction Table From Existing Data > > >...I know of no simple way to do this ...my approach has >always been to add >an ANPK to the original table and then to use that as the control to >populate the derivative tables through a series of queries ...but the >circumstances change so much from mdb to mdb that I've never >been able to >write code that ever worked for more than one situation. > >William Hindman >"Always code as if the person who is maintaining or testing >your code is >a violent psychopath who knows where you live." William Silverstein > > >----- Original Message ----- >From: "Mitsules, Mark S. (Newport News)" >To: "'[AccessD]'" >Sent: Tuesday, April 20, 2004 4:23 PM >Subject: [AccessD] Create Junction Table From Existing Data > > >> Group, >> >> Is there a method to create a junction table from a >non-normalized table? >I >> inherited a table that I now need to normalize into two >primary tables and >a >> joining junction table. The primary tables were easy enough >to create, >but >> how can I create the junction table? >> >> I want to take a records such as: >> Fld1 Fld2 Fld3 Fld4 Fld5 <=Fields >> Dat1 Fld2 Fld4 Fld5 <=Record >> Dat2 Fld3 Fld4 <=Record >> >> And turn it into: >> Fld1 FldID <=Fields >> Dat1 Fld2 <=Record >> Dat1 Fld4 <=Record >> Dat1 Fld5 <=Record >> Dat2 Fld3 <=Record >> Dat2 Fld4 <=Record >> >> >> 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 Mark.Mitsules at ngc.com Wed Apr 21 06:53:08 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Wed, 21 Apr 2004 07:53:08 -0400 Subject: [AccessD] Create Junction Table From Existing Data Message-ID: This is the approach I was leaning towards. I've parsed many a text file in my day and can definitely do this, but, being primarily self-taught in SQL, I thought perhaps I was missing something basic that would be considered common knowledge to most. Mark -----Original Message----- From: Stuart McLachlan [mailto:stuart at lexacorp.com.pg] Sent: Tuesday, April 20, 2004 7:23 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Create Junction Table From Existing Data On 20 Apr 2004 at 17:08, Mitsules, Mark S. (Newport Ne wrote: > I did just that to create the primary tables. But, since I've never had to > do this on such a grand scale, I need assistance in generating the junction > table. Here is pseudo data for clarification. I've placed dashes to > maintain alignment. > > ID--CODE--SA--SAR--SRD > 1---EA1---SA--SAR--SRD > 2---EEY1--SA > 3---EEY2--SA--SAR--SRD > > ...from the data above, I need: > PK--CODE--TYPE > 1---EA1---SA > 2---EA1---SAR > 3---EA1---SRD > 4---EEY1--SA > 5---EEY2--SA > 6---EEY2--SAR > 7---EEY2--SRD > > Any suggestions? > I'd do it in code. Open the old data set and step through it. For each record, step through the fields and create a new record in the new table where required. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. -- _______________________________________________ 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 Apr 21 07:02:45 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 21 Apr 2004 22:02:45 +1000 Subject: [AccessD] Create Junction Table From Existing Data In-Reply-To: Message-ID: <4086EF85.22013.7EAD090@localhost> On 21 Apr 2004 at 7:53, Mitsules, Mark S. (Newport Ne wrote: > This is the approach I was leaning towards. I've parsed many a text file in > my day and can definitely do this, but, being primarily self-taught in SQL, > I thought perhaps I was missing something basic that would be considered > common knowledge to most. > > I'd do it in code. > Open the old data set and step through it. > For each record, step through the fields and create a new record in > the new table where required. > Having seen a couple of other responses and thought about it a bit more, I wouldn't do it this way now. Using three UNIONed queries into an empty table with a predefinded Automnumber field is simpler. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From stuart at lexacorp.com.pg Wed Apr 21 07:02:45 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 21 Apr 2004 22:02:45 +1000 Subject: [AccessD] Create Junction Table From Existing Data In-Reply-To: Message-ID: <4086EF85.22013.7EAD090@localhost> On 21 Apr 2004 at 7:53, Mitsules, Mark S. (Newport Ne wrote: > This is the approach I was leaning towards. I've parsed many a text file in > my day and can definitely do this, but, being primarily self-taught in SQL, > I thought perhaps I was missing something basic that would be considered > common knowledge to most. > > I'd do it in code. > Open the old data set and step through it. > For each record, step through the fields and create a new record in > the new table where required. > Having seen a couple of other responses and thought about it a bit more, I wouldn't do it this way now. Using three UNIONed queries into an empty table with a predefinded Automnumber field is simpler. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From Mark.Mitsules at ngc.com Wed Apr 21 07:48:45 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Wed, 21 Apr 2004 08:48:45 -0400 Subject: [AccessD] Create Junction Table From Existing Data Message-ID: I have admittedly been using pseudo names for the actual data, there will be in fact, several more fields in this query resulting in a rather large union query. In the event that I run into problems, is there anyone who would volunteer to look over my actual query structure? Mark -----Original Message----- From: Stuart McLachlan [mailto:stuart at lexacorp.com.pg] Sent: Wednesday, April 21, 2004 8:03 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Create Junction Table From Existing Data On 21 Apr 2004 at 7:53, Mitsules, Mark S. (Newport Ne wrote: > This is the approach I was leaning towards. I've parsed many a text file in > my day and can definitely do this, but, being primarily self-taught in SQL, > I thought perhaps I was missing something basic that would be considered > common knowledge to most. > > I'd do it in code. > Open the old data set and step through it. > For each record, step through the fields and create a new record in > the new table where required. > Having seen a couple of other responses and thought about it a bit more, I wouldn't do it this way now. Using three UNIONed queries into an empty table with a predefinded Automnumber field is simpler. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. -- _______________________________________________ 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 Apr 21 08:58:37 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Wed, 21 Apr 2004 09:58:37 -0400 Subject: [AccessD] Create Junction Table From Existing Data *SOLVED* Message-ID: Although it seemed, at first, rather complicated, the union query worked great. My only thought was I wish there was a simpler way to turn a union query into a Make-Table query:( But we can't have everything, can we? Mark -----Original Message----- From: Gustav Brock [mailto:gustav at cactus.dk] Sent: Wednesday, April 21, 2004 5:16 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Create Junction Table From Existing Data Hi Mark I would go with the union query as well. The ID can be added by a function like this: Public Function SequentialID( _ ByVal booReset As Boolean, _ Optional ByVal varDummy, _ Optional ByVal intIncrement As Integer = 1, _ Optional ByVal lngInitialID As Long) As Long ' Increments static variable lngCurrentID with intIncrement. ' Returns the new value of lngCurrentID. ' Parameter varDummy is used to force repeated calls of ' this function when used in a query. ' ' Reset to start counting from zero incrementing by one: ' Call SequentialID(True) ' Reset to start counting from 1000: ' Call SequentialID(True, Null, 1, 1000) ' Reset to start counting from zero incrementing by 2: ' Call SequentialID(True, Null, 2) ' Reset to start counting from -2000 incrementing by -8 ' and returning initial ID: ' lngID = SequentialID(True, Null, -8, -2000) ' ' Retrieve the current ID: ' lngID = SequentialID(False) ' Do a count by one and retrieve the current ID: ' lngID = SequentialID(False, Null, 1) ' Do a count by one in a query and retrieve the current ID: ' lngID = SequentialID(False, [fldAnyField], 1) ' Do a count by minus two and retrieve the current ID: ' lngID = SequentialID(False, varAny, -2) ' ' 2001-12-13. Cactus Data ApS, CPH. Static lngCurrentID As Long Dim intSgn As Integer If booReset = True Then ' Reset ID. lngCurrentID = lngInitialID ElseIf Not intIncrement = 0 Then intSgn = Sgn(intIncrement) If intSgn * lngCurrentID < intSgn * lngInitialID Then ' Reset ID. lngCurrentID = lngInitialID Else ' Increment ID. lngCurrentID = lngCurrentID + intIncrement End If End If SequentialID = lngCurrentID End Function Have fun! /gustav > How about something like: > SELECT CODE, SA > FROM T1 > WHERE SA NOT IS NULL > UNION > SELECT CODE, SAR > FROM T1 > WHERE SAR NOT IS NULL > UNION > SELECT CODE, SRD > FROM T1 > WHERE SRD NOT IS NULL; > Then you only need to get your PK right > If you really wnat the numbering as indicated you could pass the above query > to a table with a PK as autonumber > There must be a way to do this in the query, I have seen it somewhere, but > where? > Regards > Harry >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >>Mitsules, Mark S. (Newport News) >>Sent: Tuesday, April 20, 2004 10:08 PM >>To: 'Access Developers discussion and problem solving' >>Subject: RE: [AccessD] Create Junction Table From Existing Data >> >> >>I did just that to create the primary tables. But, since I've >>never had to >>do this on such a grand scale, I need assistance in generating >>the junction >>table. Here is pseudo data for clarification. I've placed dashes to >>maintain alignment. >> >>ID--CODE--SA--SAR--SRD >>1---EA1---SA--SAR--SRD >>2---EEY1--SA >>3---EEY2--SA--SAR--SRD >> >>...from the data above, I need: >>PK--CODE--TYPE >>1---EA1---SA >>2---EA1---SAR >>3---EA1---SRD >>4---EEY1--SA >>5---EEY2--SA >>6---EEY2--SAR >>7---EEY2--SRD >> >>Any suggestions? >> >>Mark >> >> >> >>> Is there a method to create a junction table from a non-normalized table? >>> I inherited a table that I now need to normalize into two primary tables and >>> a joining junction table. The primary tables were easy enough to create, >>> but how can I create the junction table? >>> >>> I want to take a records such as: >>> Fld1 Fld2 Fld3 Fld4 Fld5 <=Fields >>> Dat1 Fld2 Fld4 Fld5 <=Record >>> Dat2 Fld3 Fld4 <=Record >>> >>> And turn it into: >>> Fld1 FldID <=Fields >>> Dat1 Fld2 <=Record >>> Dat1 Fld4 <=Record >>> Dat1 Fld5 <=Record >>> Dat2 Fld3 <=Record >>> Dat2 Fld4 <=Record -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Wed Apr 21 09:24:09 2004 From: gustav at cactus.dk (Gustav Brock) Date: Wed, 21 Apr 2004 16:24:09 +0200 Subject: [AccessD] Create Junction Table From Existing Data *SOLVED* In-Reply-To: References: Message-ID: <9527682034.20040421162409@cactus.dk> Hi Mark > Although it seemed, at first, rather complicated, the union query worked > great. My only thought was I wish there was a simpler way to turn a union > query into a Make-Table query:( But we can't have everything, can we? When I need that, I create the union query as a select query. Then I use that query as source in a new query (append or create) - that way you can keep the union query as simple as possible. /gustav > I would go with the union query as well. From KIsmert at TexasSystems.com Wed Apr 21 10:49:44 2004 From: KIsmert at TexasSystems.com (Ken Ismert) Date: Wed, 21 Apr 2004 10:49:44 -0500 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <20040420174912.DNB1728.imf24aec.mail.bellsouth.net@SUSANONE> Message-ID: <001a01c427b8$449dbb30$2a3ca8c0@TEXASSYSTEMS.COM> Have you tried an expression in your query like: GroupDay: (Weekday([DateField])+IIf(Weekday([DateField])<[FirstDayOfWeek],7,0)) For a FirstDayOfWeek = 4 (Wednesday), it would return the desired grouping order: WeekDay GroupDay 4 4 5 5 6 6 7 7 1 8 2 9 3 10 This way, you can avoid any function or calculated control on your report. You could replace [FirstDayOfWeek] with WeekDay(Date()), or source it from a form. -Ken -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Tuesday, April 20, 2004 12:49 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] custom sorts/groups in a report That's what I'd like to do -- and may do yet by passing the firstdayofweek value from the form to the query instead of the report. Truth is, I don't know how -- I can't remember ever passing a value to a query before and a parameter query is out. Susan H. Right. Except when I need to sort or group on an unbound control. That's when I have to add it to the query and bind the control to that field in the query. From adtp at touchtelindia.net Wed Apr 21 13:26:52 2004 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Wed, 21 Apr 2004 23:56:52 +0530 Subject: [AccessD] custom sorts/groups in a report References: <20040417224653.KZKB1818.imf25aec.mail.bellsouth.net@SUSANONE> Message-ID: <009601c427ce$7b629120$ef1865cb@winxp> Susan, For date field named CDate, in report named R_Sales, the following course of action should meet your needs - (a) In the sorting and grouping dialog box of the report, enter the following expression (pl watch for word wrap) as first item in first column - =Format([CDate],"yyyy") & Format(DatePart("ww",[CDate],Fn_WeekStart()),"00") Set the sort order to Ascending Set the group header property for this item to Yes. (b) Select CDate as the second item in sorting and grouping dialog box and set the sort order to Ascending (c) Put the following code in report's open event so as to initialize the global variable WkStart - Private Sub Report_Open(Cancel As Integer) WkStart = IIf(Len(Me.OpenArgs) > 0, Me.OpenArgs, 1) End Sub (d) In the form, put the following code in click event of the command button for opening the report - Private Sub CmdReport_Click() DoCmd.OpenReport "R_Sales", _ acViewPreview, , , , TxtWkStart End Sub ' Note - TxtWkStart is the text box where the user enters his choice of starting day of the week. Default value can be set as 1 (Sunday). Validation rule >= 1 And <= 7 (e) In the general module, code block given below may be put - Option Compare Database Option Explicit Public WkStart As Integer ' Global Variable. Public Function Fn_WeekStart() Fn_WeekStart = IIf(WkStart > 0, WkStart, 1) End Function With the above measures, dynamic manipulation of start day for weeks constituting group headers should proceed smoothly without unwanted error messages. Note - As an alternative, the global variable WkStart can be initialized directly from the click event of command button. In such a case the procedure in open event of the report (mentioned above) should be commented out. In fact this second alternative is considered preferable. Regards, A.D.Tejpal -------------- ----- Original Message ----- From: Susan Harkins To: 'Access Developers discussion and problem solving' Sent: Sunday, April 18, 2004 04:16 Subject: [AccessD] custom sorts/groups in a report I'm grouping and sorting a report on a date field. The grouping is by the week -- but I want it to handle a changing first day of the week variable. I can't get my head around it at all. Passing the first day of the week around is no problem -- I just can't seem to get Access to group by it. I've looked at CreateGroupLevel, but I don't see how that can help. I tried adding a DatePart expression to the Detail section and using the OpenArgs property to pass the first day of the week, and while the expression works, I can't group by it -- it's a calculated control. I don't want the users manipulating the underlying query either. They choose the first day of the week from a simple form and the rest needs to happen behind the scenes. Any suggestions? Susan H. From DMcAfee at haascnc.com Wed Apr 21 15:13:26 2004 From: DMcAfee at haascnc.com (David McAfee) Date: Wed, 21 Apr 2004 13:13:26 -0700 Subject: [AccessD] Query fails when using NOT IN ??? Message-ID: <657FB70438B7D311AF320090279C18010614418F@EXCHMAIL> Pinnacle's SQL Server Professional, February 2002 (Volume 8, Number 2), "Known Problems with IN/NOT IN()" This may only apply to SQL Server and not Access, but it has bit me in the a$$ before. The use of IN and NOT IN for a value list is still ok to use, but not for subqueries. I too, used it many times in Access, but then again, I also used the MAX statement through the QBE window, assuming that I was using it correctly, only to find out as I started using QA that I had been writing Max Statements incorrectly...but I digress...:S If you get your hands on that issue, also check out "The Rogue Delete": BEGIN TRANSACTION T1 SELECT COUNT (*) FROM TitleAuthor DELETE TitleAuthor WHERE au_id IN ( SELECT au_id FROM Publishers) SELECT COUNT (*) FROM TitleAuthor ROLLBACK T1 This deletes all rows in the TitleAuthor table, even though there is no au_id on the Publishers table :) Christopher Hawkins wrote: >A known issue? No kidding. I've been using the "IN (SELECT..." >statement for years and have never had a problem. > >Do you know of any MSDN or similar documentation of this issue? > >-Christopher- From ssharkins at bellsouth.net Wed Apr 21 16:30:30 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Wed, 21 Apr 2004 17:30:30 -0400 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <655792989.20040421101920@cactus.dk> Message-ID: <20040421213028.MYDD1832.imf22aec.mail.bellsouth.net@SUSANONE> The missing selection of a First-Day-Of-Week on the form could be handled by setting a default value. For myself, I would probably apply the suggestion of Stuart, but I realize that static functions may fly above the head of the average user. ========The static function isn't necessary -- it works fine without it. The open form first problem is resolved by setting a default for the report. That's what I plan to do. Susan H. From cfoust at infostatsystems.com Wed Apr 21 17:16:47 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Wed, 21 Apr 2004 15:16:47 -0700 Subject: [AccessD] custom sorts/groups in a report Message-ID: Susan, LOL *Access* flies over the head of the average user! Why should static functions make sense to them? Charlotte Foust -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Wednesday, April 21, 2004 1:31 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] custom sorts/groups in a report The missing selection of a First-Day-Of-Week on the form could be handled by setting a default value. For myself, I would probably apply the suggestion of Stuart, but I realize that static functions may fly above the head of the average user. ========The static function isn't necessary -- it works fine without it. The open form first problem is resolved by setting a default for the report. That's what I plan to do. Susan H. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Wed Apr 21 18:57:29 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Wed, 21 Apr 2004 19:57:29 -0400 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: Message-ID: <20040421235727.EEVD1714.imf16aec.mail.bellsouth.net@SUSANONE> My aim, as always is to make things work with the most normal tools I can -- because mostly, I write to the average user. Now, I can use other stuff as long as I'm very explicit. Why? Because it's a personal challenge I guess. ;) Susan H. Susan, LOL *Access* flies over the head of the average user! Why should static functions make sense to them? Charlotte Foust -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Wednesday, April 21, 2004 1:31 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] custom sorts/groups in a report The missing selection of a First-Day-Of-Week on the form could be handled by setting a default value. For myself, I would probably apply the suggestion of Stuart, but I realize that static functions may fly above the head of the average user. ========The static function isn't necessary -- it works fine without it. The open form first problem is resolved by setting a default for the report. That's what I plan to do. 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 jmhla at earthlink.net Wed Apr 21 21:10:53 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Wed, 21 Apr 2004 19:10:53 -0700 Subject: [AccessD] Hey John Colby Application Checklist Message-ID: <000a01c4280f$0db9d700$6501a8c0@delllaptop> In San Diego at the conference you spoke about some kind of checklist you were working on to set options for the application. Did that go anywhere? Is it publicly available? JOE HECHT LOS ANGELES CA From gustav at cactus.dk Thu Apr 22 01:27:18 2004 From: gustav at cactus.dk (Gustav Brock) Date: Thu, 22 Apr 2004 08:27:18 +0200 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <20040421235727.EEVD1714.imf16aec.mail.bellsouth.net@SUSANONE> References: <20040421235727.EEVD1714.imf16aec.mail.bellsouth.net@SUSANONE> Message-ID: <34826778.20040422082718@cactus.dk> Hi Susan Personal challenge? You are on a mission! /gustav > My aim, as always is to make things work with the most normal tools I can -- > because mostly, I write to the average user. Now, I can use other stuff as > long as I'm very explicit. Why? Because it's a personal challenge I guess. > ;) > Susan H. > Susan, > LOL > *Access* flies over the head of the average user! Why should static > functions make sense to them? > Charlotte Foust > -----Original Message----- > From: Susan Harkins [mailto:ssharkins at bellsouth.net] > Sent: Wednesday, April 21, 2004 1:31 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] custom sorts/groups in a report > The missing selection of a First-Day-Of-Week on the form could be > handled by setting a default value. > For myself, I would probably apply the suggestion of Stuart, but I > realize that static functions may fly above the head of the average > user. > ========The static function isn't necessary -- it works fine without it. > The open form first problem is resolved by setting a default for the > report. That's what I plan to do. > Susan H. From gustav at cactus.dk Thu Apr 22 02:00:18 2004 From: gustav at cactus.dk (Gustav Brock) Date: Thu, 22 Apr 2004 09:00:18 +0200 Subject: [AccessD] Query fails when using NOT IN ??? In-Reply-To: <657FB70438B7D311AF320090279C18010614418F@EXCHMAIL> References: <657FB70438B7D311AF320090279C18010614418F@EXCHMAIL> Message-ID: <322806795.20040422090018@cactus.dk> Hi David > Pinnacle's SQL Server Professional, February 2002 (Volume 8, Number 2), > "Known Problems with IN/NOT IN()" So which are those known problems? Susan described one only. > This may only apply to SQL Server and not Access, but it has bit me in > the a$$ before. The use of IN and NOT IN for a value list is still ok to > use, but not for subqueries. > I too, used it many times in Access, but then again, I also used the MAX > statement through the QBE window, assuming that I was using it > correctly, only to find out as I started using QA that I had been > writing Max Statements incorrectly...but I digress...:S How is MAX used incorrectly? I've never met any problems with MAX (not that I know of). > If you get your hands on that issue, also check out "The Rogue Delete": > BEGIN TRANSACTION T1 > SELECT COUNT (*) FROM TitleAuthor > DELETE TitleAuthor WHERE au_id IN ( SELECT au_id FROM Publishers) > SELECT COUNT (*) FROM TitleAuthor > ROLLBACK T1 > This deletes all rows in the TitleAuthor table, even though there is no > au_id on the Publishers table :) I can't recognize this; it behaves very politely. The syntax doesn't work in Jet SQL, but this does: DELETE FROM TitleAuthor WHERE au_id IN (SELECT au_id FROM Publishers) and it deletes zero records if Publishers is empty. If au_id doesn't exist as a field, Access asks for it as a parameter. So this is exactly as expected. Can you provide another example? Or are you talking about another SQL engine? /gustav > Christopher Hawkins wrote: >>A known issue? No kidding. I've been using the "IN (SELECT..." >>statement for years and have never had a problem. >> >>Do you know of any MSDN or similar documentation of this issue? >> >>-Christopher- From paul.hartland at fsmail.net Thu Apr 22 07:11:27 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 22 Apr 2004 14:11:27 +0200 (CEST) Subject: [AccessD] VB6 DLL Help Required Message-ID: <19983744.1082635887124.JavaMail.www@wwinf3003> To all, Been playing with creating my own DLL?s today using Visual Basic 6 and I eventually created one to send an email using the vbSendMail.dll which works a treat. But now I want to use the withevents part of the vbSendMail.dll which will return the following: Email Sent Ok Email Failed Email Staus Can I put a form inside a dll or do I somehow have to return the appropriate message to the calling application, if so how will I do this, has anyone any ideas on this? Paul Hartland Join the UK's number one for the internet www.freeserve.com/time From jwcolby at colbyconsulting.com Thu Apr 22 07:32:42 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Thu, 22 Apr 2004 08:32:42 -0400 Subject: [AccessD] VB6 DLL Help Required In-Reply-To: <19983744.1082635887124.JavaMail.www@wwinf3003> Message-ID: You must use a class to host withevents. Dim WithEvents the variable that references the dll. Then create the event stubs in the class. That's the gist of it. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of paul.hartland at fsmail.net Sent: Thursday, April 22, 2004 8:11 AM To: accessd Subject: [AccessD] VB6 DLL Help Required To all, Been playing with creating my own DLL?s today using Visual Basic 6 and I eventually created one to send an email using the vbSendMail.dll which works a treat. But now I want to use the withevents part of the vbSendMail.dll which will return the following: Email Sent Ok Email Failed Email Staus Can I put a form inside a dll or do I somehow have to return the appropriate message to the calling application, if so how will I do this, has anyone any ideas on this? Paul Hartland Join the UK's number one for the internet www.freeserve.com/time -- _______________________________________________ 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 Apr 22 08:15:14 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Thu, 22 Apr 2004 09:15:14 -0400 Subject: [AccessD] Data Input - Normalized Database Message-ID: We have a simple paper form that is used for data collection. For purposes of simplistic data entry, I would like to create an Access form that mimics the actual paper form. The underlying tables, however, are fully normalized including dependencies. The dependent fields are scattered throughout the existing paper form. Can I create a single bound form (subforms are ok) under these circumstances? If so, how? The examples that I have run across usually use multiple forms and pass the foreign keys. I can do this going unbound, but I'd rather not. Mark From Mark.Mitsules at ngc.com Thu Apr 22 08:29:36 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Thu, 22 Apr 2004 09:29:36 -0400 Subject: [AccessD] Data Input - Normalized Database Message-ID: We have a simple paper form that is used for data collection. For purposes of simplistic data entry, I would like to create an Access form that mimics the actual paper form. The underlying tables, however, are fully normalized including dependencies. The dependent fields are scattered throughout the existing paper form. Can I create a single bound form (subforms are ok) under these circumstances? If so, how? The examples that I have run across usually use multiple forms and pass the foreign keys. I can do this going unbound, but I'd rather not. Mark From bchacc at san.rr.com Thu Apr 22 08:52:21 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 22 Apr 2004 06:52:21 -0700 Subject: [AccessD] Data Input - Normalized Database References: Message-ID: <005901c42871$093dd840$6601a8c0@HAL9002> Mark: Can you base the form on a query which joins all of the tables? Or would it be too many tables. IIRC there's some limit of the number of tables in a query after which it's not updateable. Rocky Smolin Beach Access Software http://www.e-z-mrp.com ----- Original Message ----- From: "Mitsules, Mark S. (Newport News)" To: "'[AccessD]'" Sent: Thursday, April 22, 2004 6:15 AM Subject: [AccessD] Data Input - Normalized Database > We have a simple paper form that is used for data collection. For purposes > of simplistic data entry, I would like to create an Access form that mimics > the actual paper form. The underlying tables, however, are fully normalized > including dependencies. The dependent fields are scattered throughout the > existing paper form. Can I create a single bound form (subforms are ok) > under these circumstances? If so, how? The examples that I have run across > usually use multiple forms and pass the foreign keys. > > I can do this going unbound, but I'd rather not. > > > > Mark > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From HollisVJ at pgdp.usec.com Thu Apr 22 09:02:35 2004 From: HollisVJ at pgdp.usec.com (Hollis,Virginia) Date: Thu, 22 Apr 2004 09:02:35 -0500 Subject: [AccessD] Prevent Duplicates Message-ID: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D632@cntexchange.pgdp.usec.com> I need a way to check if a vendor number is a duplicate entry. On the AfterUpdate of VenNumber I placed the below code, but it produces an error about not finding the Automation Object and gives the entry I made in the VenNumber field. VenNumber is a text field - do I have the quotes or parenthesis wrong? Virginia ************************ If Not IsNull(VenNumber) Then If DCount("VenNumber", "tbl_Vendor", "VenNumber = " & [VenNumber]) > 0 Then MsgBox "You have entered a Vendor Number that already exists" VenNumber.SetFocus VenNumber.Undo End If End If From Mark.Mitsules at ngc.com Thu Apr 22 09:13:37 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Thu, 22 Apr 2004 10:13:37 -0400 Subject: [AccessD] Data Input - Normalized Database Message-ID: 11 tables...maximum of 2 levels of dependencies. But, forgive all these newbie questions, if I use a query, how do I populate the foreign keys? Mark -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Thursday, April 22, 2004 9:52 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Data Input - Normalized Database Mark: Can you base the form on a query which joins all of the tables? Or would it be too many tables. IIRC there's some limit of the number of tables in a query after which it's not updateable. Rocky Smolin Beach Access Software http://www.e-z-mrp.com ----- Original Message ----- From: "Mitsules, Mark S. (Newport News)" To: "'[AccessD]'" Sent: Thursday, April 22, 2004 6:15 AM Subject: [AccessD] Data Input - Normalized Database > We have a simple paper form that is used for data collection. For purposes > of simplistic data entry, I would like to create an Access form that mimics > the actual paper form. The underlying tables, however, are fully normalized > including dependencies. The dependent fields are scattered throughout the > existing paper form. Can I create a single bound form (subforms are ok) > under these circumstances? If so, how? The examples that I have run across > usually use multiple forms and pass the foreign keys. > > I can do this going unbound, but I'd rather not. > > > > 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 paul.hartland at fsmail.net Thu Apr 22 09:27:30 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 22 Apr 2004 16:27:30 +0200 (CEST) Subject: [AccessD] Prevent Duplicates Message-ID: <13468022.1082644050810.JavaMail.www@wwinf3002> Virginia, I think as your processing this on the AfterUpdate event you need to change the line to read If DCount("VenNumber", "tbl_Vendor", "VenNumber = " & [VenNumber]) > 1 Paul Message date : Apr 22 2004, 03:07 PM >From : "Hollis,Virginia" To : "'accessD at databaseadvisors.com'" Copy to : Subject : [AccessD] Prevent Duplicates I need a way to check if a vendor number is a duplicate entry. On the AfterUpdate of VenNumber I placed the below code, but it produces an error about not finding the Automation Object and gives the entry I made in the VenNumber field. VenNumber is a text field - do I have the quotes or parenthesis wrong? Virginia ************************ If Not IsNull(VenNumber) Then If DCount("VenNumber", "tbl_Vendor", "VenNumber = " & [VenNumber]) > 0 Then MsgBox "You have entered a Vendor Number that already exists" VenNumber.SetFocus VenNumber.Undo End If End If -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Join the UK's number one for the internet www.freeserve.com/time From ssharkins at bellsouth.net Thu Apr 22 09:38:19 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Thu, 22 Apr 2004 10:38:19 -0400 Subject: [AccessD] Data Input - Normalized Database In-Reply-To: Message-ID: <20040422143818.OLKR1714.imf16aec.mail.bellsouth.net@SUSANONE> You add them to the query, even though you don't need them in the form -- and 11 tables can still be updateable -- depends on the relationships between the tables. Susan H. 11 tables...maximum of 2 levels of dependencies. But, forgive all these newbie questions, if I use a query, how do I populate the foreign keys? From ssharkins at bellsouth.net Thu Apr 22 09:39:08 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Thu, 22 Apr 2004 10:39:08 -0400 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <34826778.20040422082718@cactus.dk> Message-ID: <20040422143907.OLYV1714.imf16aec.mail.bellsouth.net@SUSANONE> Personal challenges can be very distracting. :) Susan H. Hi Susan Personal challenge? You are on a mission! /gustav From Stephen.Pickering at caremark.com Thu Apr 22 09:46:23 2004 From: Stephen.Pickering at caremark.com (Pickering, Stephen) Date: Thu, 22 Apr 2004 09:46:23 -0500 Subject: [AccessD] Prevent Duplicates Message-ID: Virginia, I would set this in the properties of the field, not validate on a form, unless I had some compelling reason for allowing duplicates via some other process. If you still want to validate in the form, I would put your code in the BeforeUpdate event, not the AfterUpdate, and yes, you need the quotes. I would also change my control names from being the same as the field names. "ctlVenNumber" instead of "VenNumber" for the text box, for example. ************************ If Not IsNull(Me.ctlVenNumber) Then If DCount("VenNumber", "tbl_Vendor", "VenNumber = '" & me.ctlVenNumber & "'" & ) > 0 Then MsgBox "You have entered a Vendor Number that already exists" Me.ctlVenNumber.SetFocus Cancel = True End If End If ************************ HTH, Steve -----Virginia Hollis' Original Message----- I need a way to check if a vendor number is a duplicate entry. On the AfterUpdate of VenNumber I placed the below code, but it produces an error about not finding the Automation Object and gives the entry I made in the VenNumber field. VenNumber is a text field - do I have the quotes or parenthesis wrong? Virginia ************************ If Not IsNull(VenNumber) Then If DCount("VenNumber", "tbl_Vendor", "VenNumber = " & [VenNumber]) > 0 Then MsgBox "You have entered a Vendor Number that already exists" VenNumber.SetFocus VenNumber.Undo End If End If -- From Stephen.Pickering at caremark.com Thu Apr 22 09:49:46 2004 From: Stephen.Pickering at caremark.com (Pickering, Stephen) Date: Thu, 22 Apr 2004 09:49:46 -0500 Subject: [AccessD] Prevent Duplicates Message-ID: Oops, just read Paul's post. Missed the number. Paul is right on. ************************ If Not IsNull(Me.ctlVenNumber) Then If DCount("VenNumber", "tbl_Vendor", "VenNumber = '" & me.ctlVenNumber & "'" & ) > 1 Then MsgBox "You have entered a Vendor Number that already exists" Me.ctlVenNumber.SetFocus Cancel = True End If End If ************************ Steve -----Stephen Pickering's Original Message----- Virginia, I would set this in the properties of the field, not validate on a form, unless I had some compelling reason for allowing duplicates via some other process. If you still want to validate in the form, I would put your code in the BeforeUpdate event, not the AfterUpdate, and yes, you need the quotes. I would also change my control names from being the same as the field names. "ctlVenNumber" instead of "VenNumber" for the text box, for example. ************************ If Not IsNull(Me.ctlVenNumber) Then If DCount("VenNumber", "tbl_Vendor", "VenNumber = '" & me.ctlVenNumber & "'" & ) > 0 Then MsgBox "You have entered a Vendor Number that already exists" Me.ctlVenNumber.SetFocus Cancel = True End If End If ************************ HTH, Steve -----Virginia Hollis' Original Message----- I need a way to check if a vendor number is a duplicate entry. On the AfterUpdate of VenNumber I placed the below code, but it produces an error about not finding the Automation Object and gives the entry I made in the VenNumber field. VenNumber is a text field - do I have the quotes or parenthesis wrong? Virginia ************************ If Not IsNull(VenNumber) Then If DCount("VenNumber", "tbl_Vendor", "VenNumber = " & [VenNumber]) > 0 Then MsgBox "You have entered a Vendor Number that already exists" VenNumber.SetFocus VenNumber.Undo End If End If -- From paul.hartland at fsmail.net Thu Apr 22 09:56:27 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 22 Apr 2004 16:56:27 +0200 (CEST) Subject: [AccessD] Prevent Duplicates Message-ID: <31798765.1082645787203.JavaMail.www@wwinf3002> oh well, we got there between us in the end.... Message date : Apr 22 2004, 03:51 PM >From : "Pickering, Stephen" To : "'Access Developers discussion and problem solving'" Copy to : Subject : RE: [AccessD] Prevent Duplicates Oops, just read Paul's post. Missed the number. Paul is right on. ************************ If Not IsNull(Me.ctlVenNumber) Then If DCount("VenNumber", "tbl_Vendor", "VenNumber = '" & me.ctlVenNumber & "'" & ) > 1 Then MsgBox "You have entered a Vendor Number that already exists" Me.ctlVenNumber.SetFocus Cancel = True End If End If ************************ Steve -----Stephen Pickering's Original Message----- Virginia, I would set this in the properties of the field, not validate on a form, unless I had some compelling reason for allowing duplicates via some other process. If you still want to validate in the form, I would put your code in the BeforeUpdate event, not the AfterUpdate, and yes, you need the quotes. I would also change my control names from being the same as the field names. "ctlVenNumber" instead of "VenNumber" for the text box, for example. ************************ If Not IsNull(Me.ctlVenNumber) Then If DCount("VenNumber", "tbl_Vendor", "VenNumber = '" & me.ctlVenNumber & "'" & ) > 0 Then MsgBox "You have entered a Vendor Number that already exists" Me.ctlVenNumber.SetFocus Cancel = True End If End If ************************ HTH, Steve -----Virginia Hollis' Original Message----- I need a way to check if a vendor number is a duplicate entry. On the AfterUpdate of VenNumber I placed the below code, but it produces an error about not finding the Automation Object and gives the entry I made in the VenNumber field. VenNumber is a text field - do I have the quotes or parenthesis wrong? Virginia ************************ If Not IsNull(VenNumber) Then If DCount("VenNumber", "tbl_Vendor", "VenNumber = " & [VenNumber]) > 0 Then MsgBox "You have entered a Vendor Number that already exists" VenNumber.SetFocus VenNumber.Undo End If End If -- -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Join the UK's number one for the internet www.freeserve.com/time From bchacc at san.rr.com Thu Apr 22 10:06:59 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 22 Apr 2004 08:06:59 -0700 Subject: [AccessD] Prevent Duplicates References: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D632@cntexchange.pgdp.usec.com> Message-ID: <007701c4287b$763527a0$6601a8c0@HAL9002> Virginia: Does VenNumber contain a valid numeric value at that point? Rocky Smolin Beach Access Software http://www.e-z-mrp.com ----- Original Message ----- From: "Hollis,Virginia" To: Sent: Thursday, April 22, 2004 7:02 AM Subject: [AccessD] Prevent Duplicates > I need a way to check if a vendor number is a duplicate entry. On the > AfterUpdate of VenNumber I placed the below code, but it produces an error > about not finding the Automation Object and gives the entry I made in the > VenNumber field. VenNumber is a text field - do I have the quotes or > parenthesis wrong? > > Virginia > > ************************ > If Not IsNull(VenNumber) Then > If DCount("VenNumber", "tbl_Vendor", "VenNumber = " & [VenNumber]) > 0 > Then > MsgBox "You have entered a Vendor Number that already exists" > VenNumber.SetFocus > VenNumber.Undo > End If > End If > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From serbach at new.rr.com Thu Apr 22 10:06:18 2004 From: serbach at new.rr.com (Steven W. Erbach) Date: Thu, 22 Apr 2004 10:06:18 -0500 Subject: [AccessD] A2K: Shell 'discoveries' Message-ID: <20040422100618.1373059489.serbach@new.rr.com> Dear Group, In debugging the custom EDI application I'm writing for a client of mine, I "discovered" a thing or two about using the Shell command to run a DOS batch file. The purpose of using the DOS batch file is to start an FTP session and upload a bunch of files to the EDI mailbox. Then, when the batch file is finished, move the files that were uploaded into an archive folder on the server. I had tested the batch file from a command prompt and it works just dandy. The EDI documents show up as having been uploaded successfully. However when I used the Shell command in my application I wouldn't see any document names uploaded. Then I'd get the annoying e-mail the next day from the EDI service provider saying that the expected documents weren't received. I finally figured out the problem: Access doesn't wait for the batch file to finish. The Shell command just launches the external program, whatever it is, and goes on to the next task. In my case it was moving the EDI documents into an archive folder. Well, Access whisked those files out of the FTP folder so fast that by the time the FTP login was complete (user name, password, and account name) the files were no longer available for uploading. The FTP session didn't fail, as such, there just wasn't anything to send. So, I added a MsgBox asking the user to verify that the DOS session had ended before going on to archive the EDI files. Problem solved. Sorry if this is tediously obvious, but I haven't ever run a batch file from Access and I have nobody to bounce this stuff off of (nobody off of whom to bounce this stuff?). Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "Congress is as trustworthy with money as a crack addict who is experimenting with heroin." - Dave Barry "Giving money and power to the government is like giving whiskey and car keys to teenage boys." - P. J. O'Rourke "Be thankful we're not getting all the government we're paying for." - Will Rogers "It could probably be shown by facts and figures that there is no distinctly American criminal class except Congress." - Mark Twain From bchacc at san.rr.com Thu Apr 22 10:09:25 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 22 Apr 2004 08:09:25 -0700 Subject: [AccessD] Data Input - Normalized Database References: Message-ID: <008501c4287b$cd27e9d0$6601a8c0@HAL9002> Mark: I think the FKs need to be inserted through code. At least that's how I always did it. Rocky Smolin Beach Access Software http://www.e-z-mrp.com ----- Original Message ----- From: "Mitsules, Mark S. (Newport News)" To: "'Access Developers discussion and problem solving'" Sent: Thursday, April 22, 2004 7:13 AM Subject: RE: [AccessD] Data Input - Normalized Database > 11 tables...maximum of 2 levels of dependencies. But, forgive all these > newbie questions, if I use a query, how do I populate the foreign keys? > > > > Mark > > > -----Original Message----- > From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] > Sent: Thursday, April 22, 2004 9:52 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Data Input - Normalized Database > > > Mark: > > Can you base the form on a query which joins all of the tables? Or would > it be too many tables. IIRC there's some limit of the number of tables in a > query after which it's not updateable. > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > > > ----- Original Message ----- > From: "Mitsules, Mark S. (Newport News)" > To: "'[AccessD]'" > Sent: Thursday, April 22, 2004 6:15 AM > Subject: [AccessD] Data Input - Normalized Database > > > > We have a simple paper form that is used for data collection. For > purposes > > of simplistic data entry, I would like to create an Access form that > mimics > > the actual paper form. The underlying tables, however, are fully > normalized > > including dependencies. The dependent fields are scattered throughout the > > existing paper form. Can I create a single bound form (subforms are ok) > > under these circumstances? If so, how? The examples that I have run > across > > usually use multiple forms and pass the foreign keys. > > > > I can do this going unbound, but I'd rather not. > > > > > > > > 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 demulling at centurytel.net Thu Apr 22 10:51:51 2004 From: demulling at centurytel.net (Demulling Family) Date: Thu, 22 Apr 2004 10:51:51 -0500 Subject: [AccessD] A2K: Shell 'discoveries' In-Reply-To: <20040422100618.1373059489.serbach@new.rr.com> References: <20040422100618.1373059489.serbach@new.rr.com> Message-ID: <4087EA17.9080006@centurytel.net> Steven W. Erbach wrote: >Dear Group, > >In debugging the custom EDI application I'm writing for a client of mine, I "discovered" a thing or two about using the Shell command to run a DOS batch file. > >The purpose of using the DOS batch file is to start an FTP session and upload a bunch of files to the EDI mailbox. Then, when the batch file is finished, move the files that were uploaded into an archive folder on the server. > >I had tested the batch file from a command prompt and it works just dandy. The EDI documents show up as having been uploaded successfully. However when I used the Shell command in my application I wouldn't see any document names uploaded. Then I'd get the annoying e-mail the next day from the EDI service provider saying that the expected documents weren't received. > >I finally figured out the problem: Access doesn't wait for the batch file to finish. The Shell command just launches the external program, whatever it is, and goes on to the next task. In my case it was moving the EDI documents into an archive folder. Well, Access whisked those files out of the FTP folder so fast that by the time the FTP login was complete (user name, password, and account name) the files were no longer available for uploading. The FTP session didn't fail, as such, there just wasn't anything to send. > >So, I added a MsgBox asking the user to verify that the DOS session had ended before going on to archive the EDI files. Problem solved. > >Sorry if this is tediously obvious, but I haven't ever run a batch file from Access and I have nobody to bounce this stuff off of (nobody off of whom to bounce this stuff?). > >Regards, > >Steve Erbach >Scientific Marketing >Neenah, WI >920-969-0504 > >"Congress is as trustworthy with money as a crack addict who is experimenting with heroin." - Dave Barry > >"Giving money and power to the government is like giving whiskey and car keys to teenage boys." - P. J. O'Rourke > >"Be thankful we're not getting all the government we're paying for." - Will Rogers > >"It could probably be shown by facts and figures that there is no distinctly American criminal class except Congress." - Mark Twain > > > Steve, On Dev's site there is code for a Shell Wait function. You can you this to have access wait until the ftping is done. I would include some code but am at home today helping my wife cook for my daugther's festival of culture and grandparent's night at school. From Stephen.Pickering at caremark.com Thu Apr 22 10:52:19 2004 From: Stephen.Pickering at caremark.com (Pickering, Stephen) Date: Thu, 22 Apr 2004 10:52:19 -0500 Subject: [AccessD] Prevent Duplicates Message-ID: Here's to putting our heads together! :^) Steve -----Paul Hartland's Original Message----- oh well, we got there between us in the end.... From Mark.Mitsules at ngc.com Thu Apr 22 10:56:33 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Thu, 22 Apr 2004 11:56:33 -0400 Subject: [AccessD] Data Input - Normalized Database Message-ID: Susan, OK, I created the query... with all the fields. Next, I tried to do a simple autoform to see if it would work...NO controls showed up on the form:( In design view the controls exist, but in form view they do not. I'm open for suggestions as to why... Mark -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Thursday, April 22, 2004 10:38 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Data Input - Normalized Database You add them to the query, even though you don't need them in the form -- and 11 tables can still be updateable -- depends on the relationships between the tables. Susan H. 11 tables...maximum of 2 levels of dependencies. But, forgive all these newbie questions, if I use a query, how do I populate the foreign keys? -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Stephen.Pickering at caremark.com Thu Apr 22 11:23:05 2004 From: Stephen.Pickering at caremark.com (Pickering, Stephen) Date: Thu, 22 Apr 2004 11:23:05 -0500 Subject: [AccessD] Data Input - Normalized Database Message-ID: PMFJI. Is the query updateable? That's the first thing I'd check. It should be updateable as long as you include the Primary Key of each table in the query. Steve -----Mark S. Mitsules' Original Message----- Susan, OK, I created the query... with all the fields. Next, I tried to do a simple autoform to see if it would work...NO controls showed up on the form:( In design view the controls exist, but in form view they do not. I'm open for suggestions as to why... Mark From ssharkins at bellsouth.net Thu Apr 22 11:21:52 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Thu, 22 Apr 2004 12:21:52 -0400 Subject: [AccessD] Data Input - Normalized Database In-Reply-To: Message-ID: <20040422162151.WAFQ1728.imf24aec.mail.bellsouth.net@SUSANONE> Check out the query's datasheet -- is there a new row? If not, it isn't an updateable setup. Susan H. Susan, OK, I created the query... with all the fields. Next, I tried to do a simple autoform to see if it would work...NO controls showed up on the form:( In design view the controls exist, but in form view they do not. I'm open for suggestions as to why... Mark -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Thursday, April 22, 2004 10:38 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Data Input - Normalized Database You add them to the query, even though you don't need them in the form -- and 11 tables can still be updateable -- depends on the relationships between the tables. Susan H. 11 tables...maximum of 2 levels of dependencies. But, forgive all these newbie questions, if I use a query, how do I populate the foreign keys? -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Apr 22 11:24:07 2004 From: gustav at cactus.dk (Gustav Brock) Date: Thu, 22 Apr 2004 18:24:07 +0200 Subject: [AccessD] A2K: Shell 'discoveries' In-Reply-To: <20040422100618.1373059489.serbach@new.rr.com> References: <20040422100618.1373059489.serbach@new.rr.com> Message-ID: <9336635348.20040422182407@cactus.dk> Hi Steven Several will for sure post you the code variants for "ShellAndWait", "ShellWait" etc. which will solve your immediate problem. However, as this sounds as a serious application, I would strongly recommend you to spend the small money for a licens to 3D-FTP. This is an excellent multi-threaded FTP client which can be fully automated and controlled from within your app. I used it for a client who regularly uploads over 1000 files for a web site and it has never failed. In addition, the user (operator) has a nice status window visually indicating progress of the upload. I have no "ready-to-run" code as this will be very much individual, but if you wish, I can rip off the essential procedures which I'm sure you (as a skilled programmer) will be able to modify as to your needs. /gustav > Dear Group, > In debugging the custom EDI application I'm writing for a client of mine, I "discovered" a thing or two about using the Shell command to run a DOS batch file. > The purpose of using the DOS batch file is to start an FTP session and upload a bunch of files to the EDI mailbox. Then, when the batch file is finished, move the files that were uploaded into an > archive folder on the server. > I had tested the batch file from a command prompt and it works just dandy. The EDI documents show up as having been uploaded successfully. However when I used the Shell command in my application I > wouldn't see any document names uploaded. Then I'd get the annoying e-mail the next day from the EDI service provider saying that the expected documents weren't received. > I finally figured out the problem: Access doesn't wait for the batch file to finish. The Shell command just launches the external program, whatever it is, and goes on to the next task. In my case > it was moving the EDI documents into an archive folder. Well, Access whisked those files out of the FTP folder so fast that by the time the FTP login was complete (user name, password, and account > name) the files were no longer available for uploading. The FTP session didn't fail, as such, there just wasn't anything to send. > So, I added a MsgBox asking the user to verify that the DOS session had ended before going on to archive the EDI files. Problem solved. > Sorry if this is tediously obvious, but I haven't ever run a batch file from Access and I have nobody to bounce this stuff off of (nobody off of whom to bounce this stuff?). From andy at minstersystems.co.uk Thu Apr 22 11:29:55 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 22 Apr 2004 17:29:55 +0100 Subject: [AccessD] A2K: Shell 'discoveries' In-Reply-To: <20040422100618.1373059489.serbach@new.rr.com> Message-ID: <001501c42887$0b9b2730$b274d0d5@minster33c3r25> A suggestion Steven. How about creating a file before you Shell, and making the last line of the batch file delete the file. Then you can Shell followed by a Do While which checks if the file exists and comes out when it doesn't. You'd also need a DoEvents inside the loop so it lets the other processing get a look in. This way you wouldn't need to ask the user if the process had finished. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Steven W. Erbach > Sent: 22 April 2004 16:06 > To: Access Developers discussion and problem solving > Subject: [AccessD] A2K: Shell 'discoveries' > > > Dear Group, > > In debugging the custom EDI application I'm writing for a > client of mine, I "discovered" a thing or two about using the > Shell command to run a DOS batch file. > > The purpose of using the DOS batch file is to start an FTP > session and upload a bunch of files to the EDI mailbox. Then, > when the batch file is finished, move the files that were > uploaded into an archive folder on the server. > > I had tested the batch file from a command prompt and it > works just dandy. The EDI documents show up as having been > uploaded successfully. However when I used the Shell command > in my application I wouldn't see any document names uploaded. > Then I'd get the annoying e-mail the next day from the EDI > service provider saying that the expected documents weren't received. > > I finally figured out the problem: Access doesn't wait for > the batch file to finish. The Shell command just launches the > external program, whatever it is, and goes on to the next > task. In my case it was moving the EDI documents into an > archive folder. Well, Access whisked those files out of the > FTP folder so fast that by the time the FTP login was > complete (user name, password, and account name) the files > were no longer available for uploading. The FTP session > didn't fail, as such, there just wasn't anything to send. > > So, I added a MsgBox asking the user to verify that the DOS > session had ended before going on to archive the EDI files. > Problem solved. > > Sorry if this is tediously obvious, but I haven't ever run a > batch file from Access and I have nobody to bounce this stuff > off of (nobody off of whom to bounce this stuff?). > > Regards, > > Steve Erbach > Scientific Marketing > Neenah, WI > 920-969-0504 > > "Congress is as trustworthy with money as a crack addict who > is experimenting with heroin." - Dave Barry > > "Giving money and power to the government is like giving > whiskey and car keys to teenage boys." - P. J. O'Rourke > > "Be thankful we're not getting all the government we're > paying for." - Will Rogers > > "It could probably be shown by facts and figures that there > is no distinctly American criminal class except Congress." - > Mark Twain > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > From Mark.Mitsules at ngc.com Thu Apr 22 11:38:26 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Thu, 22 Apr 2004 12:38:26 -0400 Subject: [AccessD] Data Input - Normalized Database Message-ID: Nope it's not updateable... Anyone want to look at a screenshot of the relationships to see if they could tell why? I guess what I'm asking is, what is the limiting factor of a recordset being updatable or not? I'm guessing that it has to do with the 2 levels of dependency. Could that be it? Mark -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Thursday, April 22, 2004 12:22 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Data Input - Normalized Database Check out the query's datasheet -- is there a new row? If not, it isn't an updateable setup. Susan H. Susan, OK, I created the query... with all the fields. Next, I tried to do a simple autoform to see if it would work...NO controls showed up on the form:( In design view the controls exist, but in form view they do not. I'm open for suggestions as to why... Mark -----Original Message----- From: Susan Harkins [mailto:ssharkins at bellsouth.net] Sent: Thursday, April 22, 2004 10:38 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Data Input - Normalized Database You add them to the query, even though you don't need them in the form -- and 11 tables can still be updateable -- depends on the relationships between the tables. Susan H. 11 tables...maximum of 2 levels of dependencies. But, forgive all these newbie questions, if I use a query, how do I populate the foreign keys? -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Apr 22 11:39:08 2004 From: gustav at cactus.dk (Gustav Brock) Date: Thu, 22 Apr 2004 18:39:08 +0200 Subject: [AccessD] A2K: Shell 'discoveries' In-Reply-To: <20040422100618.1373059489.serbach@new.rr.com> References: <20040422100618.1373059489.serbach@new.rr.com> Message-ID: <9437536414.20040422183908@cactus.dk> Hi Steven Here's an example: Public Function ShellExecute( _ ByVal strPathname As String, _ Optional lngAppWinStyle As Long = vbHide) _ As Boolean ' Start other application and wait for it to finish. ' lngAppWinStyle: ' ' vbHide 0 ' vbNormalFocus 1 ' vbMinimizedFocus 2 ' vbMaximizedFocus 3 ' vbNormalNoFocus 4 ' vbMinimizedNoFocus 6 Const cbInheritHandles As Long = 1 Dim proc As PROCESS_INFORMATION Dim Start As STARTUPINFO Dim lngReturn As Long On Error GoTo Err_ShellExecute ' Initialize the STARTUPINFO structure: With Start .cb = Len(Start) .dwFlags = STARTF_USESHOWWINDOW .wShowWindow = lngAppWinStyle End With ' Load the shelled application. lngReturn = CreateProcessA(0, strPathname, 0, 0, cbInheritHandles, NORMAL_PRIORITY_CLASS, 0, 0, Start, proc) ' Wait for the shelled application to finish. lngReturn = WaitForSingleObject(proc.hProcess, INFINITE) With proc lngReturn = WaitForSingleObject(.hProcess, INFINITE) ' Close both Process and Thread to prevent memory leak. lngReturn = CloseHandle(.hProcess) And CloseHandle(.hThread) End With ShellExecute = True Exit_ShellExecute: Exit Function Err_ShellExecute: MsgBox "Shell Error: " & Err.Number & ". " & Err.Description, vbCritical, Err.Source Resume Exit_ShellExecute End Function Watch for line breaks. /gustav From ssharkins at bellsouth.net Thu Apr 22 11:53:51 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Thu, 22 Apr 2004 12:53:51 -0400 Subject: [AccessD] Data Input - Normalized Database In-Reply-To: Message-ID: <20040422165350.YZPR1778.imf18aec.mail.bellsouth.net@SUSANONE> Mark, you email address isn't showin gup in the message header. Send me a private at ssharkins at bellsouth.net and I'll send you a copy of an article I wrote about this. Susan H. Nope it's not updateable... Anyone want to look at a screenshot of the relationships to see if they could tell why? I guess what I'm asking is, what is the limiting factor of a recordset being updatable or not? I'm guessing that it has to do with the 2 levels of dependency. Could that be it? From jimdettman at earthlink.net Thu Apr 22 11:54:23 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Thu, 22 Apr 2004 12:54:23 -0400 Subject: [AccessD] A2K: Shell 'discoveries' In-Reply-To: <20040422100618.1373059489.serbach@new.rr.com> Message-ID: Steve, Besides the ShellWait function already mentioned, I would suggest a little more control over the FTP process. Gustav mentioned a 3rd party control, but Dev's site has a FTP class you can use for free. Might want to go the commercial route though if you want updates and support options. Jim Dettman President, Online Computer Services of WNY, Inc. (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Steven W. Erbach Sent: Thursday, April 22, 2004 11:06 AM To: Access Developers discussion and problem solving Subject: [AccessD] A2K: Shell 'discoveries' Dear Group, In debugging the custom EDI application I'm writing for a client of mine, I "discovered" a thing or two about using the Shell command to run a DOS batch file. The purpose of using the DOS batch file is to start an FTP session and upload a bunch of files to the EDI mailbox. Then, when the batch file is finished, move the files that were uploaded into an archive folder on the server. I had tested the batch file from a command prompt and it works just dandy. The EDI documents show up as having been uploaded successfully. However when I used the Shell command in my application I wouldn't see any document names uploaded. Then I'd get the annoying e-mail the next day from the EDI service provider saying that the expected documents weren't received. I finally figured out the problem: Access doesn't wait for the batch file to finish. The Shell command just launches the external program, whatever it is, and goes on to the next task. In my case it was moving the EDI documents into an archive folder. Well, Access whisked those files out of the FTP folder so fast that by the time the FTP login was complete (user name, password, and account name) the files were no longer available for uploading. The FTP session didn't fail, as such, there just wasn't anything to send. So, I added a MsgBox asking the user to verify that the DOS session had ended before going on to archive the EDI files. Problem solved. Sorry if this is tediously obvious, but I haven't ever run a batch file from Access and I have nobody to bounce this stuff off of (nobody off of whom to bounce this stuff?). Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "Congress is as trustworthy with money as a crack addict who is experimenting with heroin." - Dave Barry "Giving money and power to the government is like giving whiskey and car keys to teenage boys." - P. J. O'Rourke "Be thankful we're not getting all the government we're paying for." - Will Rogers "It could probably be shown by facts and figures that there is no distinctly American criminal class except Congress." - Mark Twain -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Stephen.Pickering at caremark.com Thu Apr 22 12:22:03 2004 From: Stephen.Pickering at caremark.com (Pickering, Stephen) Date: Thu, 22 Apr 2004 12:22:03 -0500 Subject: [AccessD] Data Input - Normalized Database Message-ID: Mark, Check to make sure that all of the Primary Keys for all of the tables are included in the SELECT clause. Steve -----Mark S. Mitsules' Original Message----- Nope it's not updateable... Anyone want to look at a screenshot of the relationships to see if they could tell why? I guess what I'm asking is, what is the limiting factor of a recordset being updatable or not? I'm guessing that it has to do with the 2 levels of dependency. Could that be it? Mark From Mark.Mitsules at ngc.com Thu Apr 22 12:39:01 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Thu, 22 Apr 2004 13:39:01 -0400 Subject: [AccessD] Data Input - Normalized Database Message-ID: The light came on! I started from scratch, building the query again, table by table. After each addition I checked the "updateable-ness";) The problem was caused by a single table that I SHOULD have added three times, but hadn't. It was a personnel table whose PK was used as a FK 3 times in another table. Access had automatically added the defined relationships. I needed to delete 2 of the 3 and add the table again to the query 2 more times. As soon as I fixed that oversight, the query worked. Now I just need to get a working form from all that. Thanks, Mark -----Original Message----- From: Pickering, Stephen [mailto:Stephen.Pickering at caremark.com] Sent: Thursday, April 22, 2004 1:22 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Data Input - Normalized Database Mark, Check to make sure that all of the Primary Keys for all of the tables are included in the SELECT clause. Steve -----Mark S. Mitsules' Original Message----- Nope it's not updateable... Anyone want to look at a screenshot of the relationships to see if they could tell why? I guess what I'm asking is, what is the limiting factor of a recordset being updatable or not? I'm guessing that it has to do with the 2 levels of dependency. Could that be it? Mark -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pedro at plex.nl Thu Apr 22 14:09:12 2004 From: pedro at plex.nl (Pedro Janssen) Date: Thu, 22 Apr 2004 21:09:12 +0200 Subject: [AccessD] first caracter as Uppercase Message-ID: <006101c4289e$fa188030$f2c581d5@pedro> Hello Group, i have a code (thanks to Brett Barabash and Mark A Matte) that sets all characters in all tables to Lowercase. What i also would like to see is each character at the beginning of a word (each word that is separated by a space) is set to Uppercase in all Tables by just one code. Is this possible. Who can help me with this? TIA Pedro Janssen From DWUTKA at marlow.com Thu Apr 22 14:34:17 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Thu, 22 Apr 2004 14:34:17 -0500 Subject: [AccessD] first caracter as Uppercase Message-ID: <2F8793082E00D4119A1700B0D0216BF802227B06@main2.marlow.com> StrConv("this is a test",vbProperCase) results in: This Is A Test Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Pedro Janssen Sent: Thursday, April 22, 2004 2:09 PM To: AccessD at databaseadvisors.com Subject: [AccessD] first caracter as Uppercase Hello Group, i have a code (thanks to Brett Barabash and Mark A Matte) that sets all characters in all tables to Lowercase. What i also would like to see is each character at the beginning of a word (each word that is separated by a space) is set to Uppercase in all Tables by just one code. Is this possible. Who can help me with this? TIA Pedro Janssen -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Stephen.Pickering at caremark.com Thu Apr 22 14:45:15 2004 From: Stephen.Pickering at caremark.com (Pickering, Stephen) Date: Thu, 22 Apr 2004 14:45:15 -0500 Subject: [AccessD] first caracter as Uppercase Message-ID: Pedro, StrConv("your string here", 3) HTH, Steve -----Pedro Janssen's Original Message----- Hello Group, i have a code (thanks to Brett Barabash and Mark A Matte) that sets all characters in all tables to Lowercase. What i also would like to see is each character at the beginning of a word (each word that is separated by a space) is set to Uppercase in all Tables by just one code. Is this possible. Who can help me with this? TIA Pedro Janssen -- From wdhindman at bellsouth.net Thu Apr 22 14:47:30 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Thu, 22 Apr 2004 15:47:30 -0400 Subject: [AccessD] Prevent Duplicates References: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D632@cntexchange.pgdp.usec.com> Message-ID: <001401c428a2$a5fbeba0$6101a8c0@dejpolsys> Virginia ...if you truly want to prevent duplicates, I'd just create an index on the table field set to no duplicates allowed and code for an error ...much more certain to catch dupes, requires less code, and far less processing. William Hindman "Always code as if the person who is maintaining or testing your code is a violent psychopath who knows where you live." William Silverstein ----- Original Message ----- From: "Hollis,Virginia" To: Sent: Thursday, April 22, 2004 10:02 AM Subject: [AccessD] Prevent Duplicates > I need a way to check if a vendor number is a duplicate entry. On the > AfterUpdate of VenNumber I placed the below code, but it produces an error > about not finding the Automation Object and gives the entry I made in the > VenNumber field. VenNumber is a text field - do I have the quotes or > parenthesis wrong? > > Virginia > > ************************ > If Not IsNull(VenNumber) Then > If DCount("VenNumber", "tbl_Vendor", "VenNumber = " & [VenNumber]) > 0 > Then > MsgBox "You have entered a Vendor Number that already exists" > VenNumber.SetFocus > VenNumber.Undo > End If > End If > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From wdhindman at bellsouth.net Thu Apr 22 15:03:08 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Thu, 22 Apr 2004 16:03:08 -0400 Subject: [AccessD] A2K: Shell 'discoveries' References: <20040422100618.1373059489.serbach@new.rr.com> Message-ID: <002301c428a4$d50b9470$6101a8c0@dejpolsys> ...why not do the ftp from within Access using the APIs ...if you'd like I can send you a sample mdb that's worked round the clock for years now. William Hindman "Always code as if the person who is maintaining or testing your code is a violent psychopath who knows where you live." William Silverstein ----- Original Message ----- From: "Steven W. Erbach" To: "Access Developers discussion and problem solving" Sent: Thursday, April 22, 2004 11:06 AM Subject: [AccessD] A2K: Shell 'discoveries' > Dear Group, > > In debugging the custom EDI application I'm writing for a client of mine, I "discovered" a thing or two about using the Shell command to run a DOS batch file. > > The purpose of using the DOS batch file is to start an FTP session and upload a bunch of files to the EDI mailbox. Then, when the batch file is finished, move the files that were uploaded into an archive folder on the server. > > I had tested the batch file from a command prompt and it works just dandy. The EDI documents show up as having been uploaded successfully. However when I used the Shell command in my application I wouldn't see any document names uploaded. Then I'd get the annoying e-mail the next day from the EDI service provider saying that the expected documents weren't received. > > I finally figured out the problem: Access doesn't wait for the batch file to finish. The Shell command just launches the external program, whatever it is, and goes on to the next task. In my case it was moving the EDI documents into an archive folder. Well, Access whisked those files out of the FTP folder so fast that by the time the FTP login was complete (user name, password, and account name) the files were no longer available for uploading. The FTP session didn't fail, as such, there just wasn't anything to send. > > So, I added a MsgBox asking the user to verify that the DOS session had ended before going on to archive the EDI files. Problem solved. > > Sorry if this is tediously obvious, but I haven't ever run a batch file from Access and I have nobody to bounce this stuff off of (nobody off of whom to bounce this stuff?). > > Regards, > > Steve Erbach > Scientific Marketing > Neenah, WI > 920-969-0504 > > "Congress is as trustworthy with money as a crack addict who is experimenting with heroin." - Dave Barry > > "Giving money and power to the government is like giving whiskey and car keys to teenage boys." - P. J. O'Rourke > > "Be thankful we're not getting all the government we're paying for." - Will Rogers > > "It could probably be shown by facts and figures that there is no distinctly American criminal class except Congress." - Mark Twain > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From my.lists at verizon.net Thu Apr 22 15:15:10 2004 From: my.lists at verizon.net (Francisco H Tapia) Date: Thu, 22 Apr 2004 13:15:10 -0700 Subject: [AccessD] Query fails when using NOT IN ??? In-Reply-To: <322806795.20040422090018@cactus.dk> References: <657FB70438B7D311AF320090279C18010614418F@EXCHMAIL> <322806795.20040422090018@cactus.dk> Message-ID: <408827CE.7060601@verizon.net> Gustav, David quoted an article for Sql Server in which this is 100% reproducable. I think he posted it here because of the initial posts of problems where the IN clause or rather (NOT IN) was not behaving as expected. for that manner I've also seen it do this, one major workaround is to explicitly point the inner quiery to that of the outer query. that way any possible errors will be trapped SUCH as DELETE FROM TitleAuthor WHERE au_id IN (SELECT au_id FROM Publishers WHERE Publishers.au_id=TitleAuthor.au_id) Gustav Brock said the following on 4/22/2004 12:00 AM: >>Pinnacle's SQL Server Professional, February 2002 (Volume 8, Number 2), >>"Known Problems with IN/NOT IN()" >> >> >I can't recognize this; it behaves very politely. >The syntax doesn't work in Jet SQL, but this does: > > DELETE FROM > TitleAuthor > WHERE > au_id IN (SELECT au_id FROM Publishers) > >and it deletes zero records if Publishers is empty. If au_id doesn't >exist as a field, Access asks for it as a parameter. >So this is exactly as expected. > >Can you provide another example? Or are you talking about another SQL >engine? > >/gustav > > > -- -Francisco From mwp.reid at qub.ac.uk Thu Apr 22 15:37:37 2004 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Thu, 22 Apr 2004 21:37:37 +0100 Subject: [AccessD] OT SQL Question References: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D632@cntexchange.pgdp.usec.com> Message-ID: <002501c428a9$a77fa140$1b02a8c0@MARTINREID> Tried the SQL Server list with this - no luck. Given a one to many relationship is it possible to produce this output using an SP without the use of cursors etc?? INPUT TABLE 1 1000 IT 1000 Databases 1000 VMS 1001 Spreadsheets 1001 GenStat 1002 Aquatic systems 1002 Research INPUT TABLE 2 1000 Smith 1001 Brown 1002 Foster OUTPUT REQUIRED 1000 Smith IT, Databases,VMS 1001 Brown Spreadsheets,GenStat 1002 Foster Aquatic Systems,Research Martin From mwhittinghill at symphonyinfo.com Thu Apr 22 16:17:03 2004 From: mwhittinghill at symphonyinfo.com (Mark Whittinghill) Date: Thu, 22 Apr 2004 16:17:03 -0500 Subject: [AccessD] Dual Install 97 and 2000 Message-ID: <000b01c428af$28bab8d0$2201a8c0@PASCAL> Hi all, I have 2000 on my machine, and would like to add 97. Can I just install 97 then fix the hatten.ttf problem, or do I need to uninstall 2000 first, install 97 then reinstall 2000? Mark Whittinghill Symphony Information Services 763-391-7400 mwhittinghill at symphonyinfo.com From pedro at plex.nl Thu Apr 22 14:29:20 2004 From: pedro at plex.nl (Pedro Janssen) Date: Thu, 22 Apr 2004 21:29:20 +0200 Subject: [AccessD] Form Opening Time References: Message-ID: <009101c428b3$b092e350$f2c581d5@pedro> Hello Bryan, can you give me some information about Jet's showplan in the registry. What does it do? I have a form that needs about 35 sec to open, So this could be a great help. Pedro Janssen ----- Original Message ----- From: "Bryan Carbonnell" To: Sent: Tuesday, April 20, 2004 9:31 PM Subject: Re: [AccessD] Form Opening Time > OOPS. > > A2K SP3 > > Bryan > > >>> Bryan_Carbonnell at cbc.ca 20-Apr-04 3:18:04 PM >>> > Access 2000 on Win 2K SP4 with Jet 4, SP8 > > Bryan Carbonnell > bryan_carbonnell at cbc.ca > > >>> gustav at cactus.dk 20-Apr-04 3:04:25 PM >>> > Hi Bryan > > Which version, please? > > /gustav > > > > Can anyone explain, or give a possible idea why Turning Jet's > SHOWPLAN > > on in the registry, will make a form open in 1/3 of the time it took > > prior to turning it on? > > > It now takes about 7 seconds to open, but before it was 22-24 > secords. > > > Any ideas? I had turned on SHOWPLAN to try and see if any of the > > queries were causing the slowdown in opening. > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From pedro at plex.nl Thu Apr 22 16:54:28 2004 From: pedro at plex.nl (Pedro Janssen) Date: Thu, 22 Apr 2004 23:54:28 +0200 Subject: [AccessD] first caracter as Uppercase References: <2F8793082E00D4119A1700B0D0216BF802227B06@main2.marlow.com> Message-ID: <00b601c428b4$8ca40400$f2c581d5@pedro> Hello Drew, how can i use this so that it sets all characters in all tables in a database? Pedro Janssen ----- Original Message ----- From: To: Sent: Thursday, April 22, 2004 9:34 PM Subject: RE: [AccessD] first caracter as Uppercase > StrConv("this is a test",vbProperCase) > > > results in: > > > This Is A Test > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Pedro Janssen > Sent: Thursday, April 22, 2004 2:09 PM > To: AccessD at databaseadvisors.com > Subject: [AccessD] first caracter as Uppercase > > > Hello Group, > > i have a code (thanks to Brett Barabash and Mark A Matte) that sets all > characters in all tables to Lowercase. > > What i also would like to see is each character at the beginning of a word > (each word that is separated by a space) is set to Uppercase in all Tables > by just one code. > Is this possible. Who can help me with this? > > TIA > > 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 carbonnb at sympatico.ca Thu Apr 22 17:07:52 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Thu, 22 Apr 2004 18:07:52 -0400 Subject: [AccessD] Form Opening Time In-Reply-To: <009101c428b3$b092e350$f2c581d5@pedro> Message-ID: <408809F8.16242.17B1F2@localhost> On 22 Apr 2004 at 21:29, Pedro Janssen wrote: > can you give me some information about Jet's showplan in the registry. > What does it do? I have a form that needs about 35 sec to open, So > this could be a great help. Pedro, There are others that can explain it better than I can, folks like Paul Litwin, Ken Getz, and Mike Gunderloy. You can find Chapter 15: Application Optimization of ADH2K2 at http://msdn.microsoft.com/library/default.asp?url=/library/en- us/dnacbk02/html/odc_4009c15.asp Watch for wrap. Basically what it does is dumps to a plain text file how the query is "run" and you can look for places that the whole table is being looked at, or missng indexes.... My problem turned out to not be quite that difficult. I had an A2K FE and an A97 BE. They don't play well together. :( My load time in now down to less than 1/2 a second from 20-25 seconds. It took me 2 days to figure that one out :( -- Bryan Carbonnell - carbonnb at sympatico.ca I don't approve of political jokes. I've seen too many of them get elected. From DWUTKA at marlow.com Thu Apr 22 17:32:46 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Thu, 22 Apr 2004 17:32:46 -0500 Subject: [AccessD] first caracter as Uppercase Message-ID: <2F8793082E00D4119A1700B0D0216BF802227B08@main2.marlow.com> How's this? Function SetAllDataToProperCase() Dim tbldef As TableDef Dim strSQL As String Dim rs As Recordset Dim i As Long Dim FieldCheck As Boolean For Each tbldef In CurrentDb.TableDefs If Left(tbldef.Name, 4) <> "MSys" Then 'Set a boolean to make sure we have fields to actually update FieldCheck = False strSQL = "UPDATE " & tbldef.Name & " SET " Set rs = CurrentDb.OpenRecordset(tbldef.Name, dbOpenTable) For i = 0 To rs.Fields.Count - 1 If rs.Fields(i).Type = 10 Or rs.Fields(i).Type = 12 Then 'we have a valid field FieldCheck = True strSQL = strSQL & "[" & rs.Fields(i).Name & "]=StrConv([" & rs.Fields(i).Name & "],3), " End If Next i If FieldCheck Then strSQL = Left(strSQL, Len(strSQL) - 2) CurrentDb.Execute strSQL End If End If Next MsgBox "Done" End Function That will change ALL text data in your database (text and memo fields) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Pedro Janssen Sent: Thursday, April 22, 2004 4:54 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] first caracter as Uppercase Hello Drew, how can i use this so that it sets all characters in all tables in a database? Pedro Janssen ----- Original Message ----- From: To: Sent: Thursday, April 22, 2004 9:34 PM Subject: RE: [AccessD] first caracter as Uppercase > StrConv("this is a test",vbProperCase) > > > results in: > > > This Is A Test > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Pedro Janssen > Sent: Thursday, April 22, 2004 2:09 PM > To: AccessD at databaseadvisors.com > Subject: [AccessD] first caracter as Uppercase > > > Hello Group, > > i have a code (thanks to Brett Barabash and Mark A Matte) that sets all > characters in all tables to Lowercase. > > What i also would like to see is each character at the beginning of a word > (each word that is separated by a space) is set to Uppercase in all Tables > by just one code. > Is this possible. Who can help me with this? > > TIA > > 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 cfoust at infostatsystems.com Thu Apr 22 17:46:38 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 22 Apr 2004 15:46:38 -0700 Subject: [AccessD] Dual Install 97 and 2000 Message-ID: You can install 97 after. Rename hatten.ttf before you try it, and you may have to reinstall 2000 afterward, retaining 97, to get the file type associations right. Charlotte Foust -----Original Message----- From: Mark Whittinghill [mailto:mwhittinghill at symphonyinfo.com] Sent: Thursday, April 22, 2004 1:17 PM To: accessd at databaseadvisors.com Subject: [AccessD] Dual Install 97 and 2000 Hi all, I have 2000 on my machine, and would like to add 97. Can I just install 97 then fix the hatten.ttf problem, or do I need to uninstall 2000 first, install 97 then reinstall 2000? 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 connie.kamrowski at agric.nsw.gov.au Thu Apr 22 18:22:04 2004 From: connie.kamrowski at agric.nsw.gov.au (connie.kamrowski at agric.nsw.gov.au) Date: Fri, 23 Apr 2004 09:22:04 +1000 Subject: [AccessD] Mail Merge form letters Message-ID: Hi, I have just tried searching the archive for info and have some but could use a few hints. I have just written a DB which keeps track of Exhibited animals in our state. The client needs tio be able to send licences to exhibit to each of his customers as they apply and are accepted or rejected. I have set up a mail merge template in word which gets data from the relevant query. Each copy of the document will be of varying content based on wether conditions are imposed or not. I have never done this before and so need some advise from those who have. How do I set this up to print a copy of the letter for every record in a range of records? if they have 200 new approvals I need to generate a letter for each of the approvals in a range entered. What is the best way to put this into the database and allow a user entered parameter for the range? All help appreciated Connie Kamrowski Analyst/Programmer Information Technology NSW Agriculture Orange This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient or received it in error, please delete the message and notify sender. Views expressed are those of the individual sender and are not necessarily the views of their organisation. From KIsmert at TexasSystems.com Thu Apr 22 18:45:45 2004 From: KIsmert at TexasSystems.com (Ken Ismert) Date: Thu, 22 Apr 2004 18:45:45 -0500 Subject: [AccessD] VB6 DLL Help Required In-Reply-To: <19983744.1082635887124.JavaMail.www@wwinf3003> Message-ID: <003001c428c3$eefe8d50$2a3ca8c0@TEXASSYSTEMS.COM> Paul, Are you using your DLL 'API-style' using Declare statements, or have you registered it as a COM component, and can create objects you have defined in your DLL? If the former, you are limited basically to return codes from your function call. If the latter, you could define your own events in your vbSendMail wrapper object to relay the vbSendMail events to your client. -Ken -----Original Message----- From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] Sent: Thursday, April 22, 2004 7:11 AM To: accessd Subject: [AccessD] VB6 DLL Help Required To all, Been playing with creating my own DLL?s today using Visual Basic 6 and I eventually created one to send an email using the vbSendMail.dll which works a treat. But now I want to use the withevents part of the vbSendMail.dll which will return the following: Email Sent Ok Email Failed Email Staus Can I put a form inside a dll or do I somehow have to return the appropriate message to the calling application, if so how will I do this, has anyone any ideas on this? Paul Hartland Join the UK's number one for the internet www.freeserve.com/time From martyconnelly at shaw.ca Thu Apr 22 18:51:50 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 22 Apr 2004 16:51:50 -0700 Subject: [AccessD] A2K: Shell 'discoveries' References: <20040422100618.1373059489.serbach@new.rr.com> Message-ID: <40885A96.1070909@shaw.ca> Here are a couple of other approaches FTP: Downloading Files via FTP with Progress Display Callback http://vbnet.mvps.org/code/internet/ftpdownloadcallback.htm Creating a Watched Folder with FindChangeNotification http://vbnet.mvps.org/code/fileapi/watchedfolder.htm Steven W. Erbach wrote: >Dear Group, > >In debugging the custom EDI application I'm writing for a client of mine, I "discovered" a thing or two about using the Shell command to run a DOS batch file. > >The purpose of using the DOS batch file is to start an FTP session and upload a bunch of files to the EDI mailbox. Then, when the batch file is finished, move the files that were uploaded into an archive folder on the server. > >I had tested the batch file from a command prompt and it works just dandy. The EDI documents show up as having been uploaded successfully. However when I used the Shell command in my application I wouldn't see any document names uploaded. Then I'd get the annoying e-mail the next day from the EDI service provider saying that the expected documents weren't received. > >I finally figured out the problem: Access doesn't wait for the batch file to finish. The Shell command just launches the external program, whatever it is, and goes on to the next task. In my case it was moving the EDI documents into an archive folder. Well, Access whisked those files out of the FTP folder so fast that by the time the FTP login was complete (user name, password, and account name) the files were no longer available for uploading. The FTP session didn't fail, as such, there just wasn't anything to send. > >So, I added a MsgBox asking the user to verify that the DOS session had ended before going on to archive the EDI files. Problem solved. > >Sorry if this is tediously obvious, but I haven't ever run a batch file from Access and I have nobody to bounce this stuff off of (nobody off of whom to bounce this stuff?). > >Regards, > >Steve Erbach >Scientific Marketing >Neenah, WI >920-969-0504 > >"Congress is as trustworthy with money as a crack addict who is experimenting with heroin." - Dave Barry > >"Giving money and power to the government is like giving whiskey and car keys to teenage boys." - P. J. O'Rourke > >"Be thankful we're not getting all the government we're paying for." - Will Rogers > >"It could probably be shown by facts and figures that there is no distinctly American criminal class except Congress." - Mark Twain > > > -- Marty Connelly Victoria, B.C. Canada From martyconnelly at shaw.ca Thu Apr 22 18:59:28 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 22 Apr 2004 16:59:28 -0700 Subject: [AccessD] Dual Install 97 and 2000 References: <000b01c428af$28bab8d0$2201a8c0@PASCAL> Message-ID: <40885C60.3080505@shaw.ca> It is always oldest first so you will have to uninstall 2000. It creates less possibility of errors. After each install go to officeupdates.microsoft.com to add patches. This site only checks office 2000 and up so you will have to find and download the Access 97 SP's from here seperately. Mark Whittinghill wrote: >Hi all, > > I have 2000 on my machine, and would like to add 97. Can I just install >97 then fix the hatten.ttf problem, or do I need to uninstall 2000 first, >install 97 then reinstall 2000? > >Mark Whittinghill >Symphony Information Services >763-391-7400 >mwhittinghill at symphonyinfo.com > > > > -- Marty Connelly Victoria, B.C. Canada From martyconnelly at shaw.ca Thu Apr 22 19:04:46 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 22 Apr 2004 17:04:46 -0700 Subject: [AccessD] Dual Install 97 and 2000 References: <000b01c428af$28bab8d0$2201a8c0@PASCAL> <40885C60.3080505@shaw.ca> Message-ID: <40885D9E.3020909@shaw.ca> That should be http://office.microsoft.com/officeupdate/ MartyConnelly wrote: > It is always oldest first so you will have to uninstall 2000. It > creates less possibility of errors. > After each install go to officeupdates.microsoft.com to add patches. > This site only checks office 2000 and up for upgrades > so you will have to find and download the Access 97 SP's from here > seperately. > > > Mark Whittinghill wrote: > >> Hi all, >> >> I have 2000 on my machine, and would like to add 97. Can I just >> install >> 97 then fix the hatten.ttf problem, or do I need to uninstall 2000 >> first, >> install 97 then reinstall 2000? >> >> Mark Whittinghill >> Symphony Information Services >> 763-391-7400 >> mwhittinghill at symphonyinfo.com >> >> >> >> > -- Marty Connelly Victoria, B.C. Canada From accessd at shaw.ca Thu Apr 22 19:38:34 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Thu, 22 Apr 2004 17:38:34 -0700 Subject: [AccessD] A2K: Shell 'discoveries' In-Reply-To: <20040422100618.1373059489.serbach@new.rr.com> Message-ID: Hi Steven: It has been some time ago but, I had a similar issue. The solution was to have Access simply save the files, that were to be uploaded and then add an event to the server's schedular...at 3:00AM every morning the server ran the scheduled process, that first checked to see if a file was in the upload queue...if there were it started an ftp session, transferred and received any files. The only time it did not work was when the remote ftp server was down. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Steven W. Erbach Sent: Thursday, April 22, 2004 8:06 AM To: Access Developers discussion and problem solving Subject: [AccessD] A2K: Shell 'discoveries' Dear Group, In debugging the custom EDI application I'm writing for a client of mine, I "discovered" a thing or two about using the Shell command to run a DOS batch file. The purpose of using the DOS batch file is to start an FTP session and upload a bunch of files to the EDI mailbox. Then, when the batch file is finished, move the files that were uploaded into an archive folder on the server. I had tested the batch file from a command prompt and it works just dandy. The EDI documents show up as having been uploaded successfully. However when I used the Shell command in my application I wouldn't see any document names uploaded. Then I'd get the annoying e-mail the next day from the EDI service provider saying that the expected documents weren't received. I finally figured out the problem: Access doesn't wait for the batch file to finish. The Shell command just launches the external program, whatever it is, and goes on to the next task. In my case it was moving the EDI documents into an archive folder. Well, Access whisked those files out of the FTP folder so fast that by the time the FTP login was complete (user name, password, and account name) the files were no longer available for uploading. The FTP session didn't fail, as such, there just wasn't anything to send. So, I added a MsgBox asking the user to verify that the DOS session had ended before going on to archive the EDI files. Problem solved. Sorry if this is tediously obvious, but I haven't ever run a batch file from Access and I have nobody to bounce this stuff off of (nobody off of whom to bounce this stuff?). Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "Congress is as trustworthy with money as a crack addict who is experimenting with heroin." - Dave Barry "Giving money and power to the government is like giving whiskey and car keys to teenage boys." - P. J. O'Rourke "Be thankful we're not getting all the government we're paying for." - Will Rogers "It could probably be shown by facts and figures that there is no distinctly American criminal class except Congress." - Mark Twain -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From KIsmert at TexasSystems.com Thu Apr 22 20:10:03 2004 From: KIsmert at TexasSystems.com (Ken Ismert) Date: Thu, 22 Apr 2004 20:10:03 -0500 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <009601c427ce$7b629120$ef1865cb@winxp> Message-ID: <003201c428cf$b5c90d10$2a3ca8c0@TEXASSYSTEMS.COM> Susan, You can do this using only a query, without any code, OpenArgs, or calculated controls on the report's part. You simply need a query with four variables: MajorInt - the major date interval MinorInt - the minor date interval CurInt - the current date's minor interval (1 - 7 for weekdays, etc) MaxInt - the number minor intervals in the major interval For the following Major/Minor groups, use these values: Group MajorInt MinorInt MaxInt CurInt ======================================================================= Week/Day "ww" "w" 7 DatePart("w", Date) Month/Day "m" "d" 31 DatePart("d", Date) Year/Day "yyyy" "y" 366 DatePart("y", Date) Year/Week "yyyy" "ww" 54 DatePart("ww", Date) This will group by MajorInt, then MinorInt, ordering the records starting with CurInt for each MajorInt. Sample Query: (For a report, replace the Parameters with Form control references, and replace the OrderBy with grouping by GroupMajor, GroupMinor) PARAMETERS MajorInt Text ( 255 ), MinorInt Text ( 255 ), CurInt Short, MaxInt Short; SELECT DatePart([MajorInt],[DateField]) AS GroupMajor, (DatePart([MinorInt],[DateField])+IIf(DatePart([MinorInt],[DateField])<[CurI nt],[MaxInt],0)) AS GroupMinor, tblDemo.DateID, Format([DateField],"yyyy") AS [Year], Format([DateField],"mmm") AS [Month], DatePart("ww",[DateField]) AS Week, DatePart("d",[DateField]) AS DayMonth, Format([DateField],"ddd") AS [Day] FROM tblDemo ORDER BY DatePart([MajorInt],[DateField]), (DatePart([MinorInt],[DateField])+IIf(DatePart([MinorInt],[DateField])<[CurI nt],[MaxInt],0)); -Ken ----- Original Message ----- From: Susan Harkins To: 'Access Developers discussion and problem solving' Sent: Sunday, April 18, 2004 04:16 Subject: [AccessD] custom sorts/groups in a report I'm grouping and sorting a report on a date field. The grouping is by the week -- but I want it to handle a changing first day of the week variable. I can't get my head around it at all. Passing the first day of the week around is no problem -- I just can't seem to get Access to group by it. I've looked at CreateGroupLevel, but I don't see how that can help. I tried adding a DatePart expression to the Detail section and using the OpenArgs property to pass the first day of the week, and while the expression works, I can't group by it -- it's a calculated control. I don't want the users manipulating the underlying query either. They choose the first day of the week from a simple form and the rest needs to happen behind the scenes. Any suggestions? Susan H. From martyconnelly at shaw.ca Fri Apr 23 00:30:20 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Thu, 22 Apr 2004 22:30:20 -0700 Subject: [AccessD] Mail Merge form letters References: Message-ID: <4088A9EC.6040903@shaw.ca> For examples see this site http://www.helenfeddema.com/access.htm Merging to Word from Linked Access Tables accarch44.zip 92. Mail Merge Mysteries accarch92.zip http://www.helenfeddema.com/CodeSamples.htm There are half a dozen samples here Merging to Word Four Ways 6/9/2002 Demonstrates four ways to merge Access data to Word documents ? Word document properties, bookmarks, the TypeText method and DDE mail merge. Both Access 97 and Access 2000 databases are provided; the Access 2000 database also works in Access 2002. code24.zip ---------------- Also note if using Word 2002 in Access 2002 that VBA Mail Merges using OpenDataSource and Connection (Name: Query...) which uses the old DDE technology, is broken. It was used in all previous versions of Access. Also, any DDE queries using the Connection method with (Name: Query...) also If any query parameters are required, or any calculations done, or anything special, done to the standard select query, Within WORD 2002, you CANNOT merge with a QUERY, unless you EXPORT the file from within Access and first, save the file as ?Microsoft Word Merge? file type For info if you use these methods with Word 2002, this may have been fixed with an SP I am not sure. http://www.engr.psu.edu/www/trg/isis/docs/Access2002-Merge-Datawarehouse-Notes-New.htm connie.kamrowski at agric.nsw.gov.au wrote: >Hi, > >I have just tried searching the archive for info and have some but could >use a few hints. > >I have just written a DB which keeps track of Exhibited animals in our >state. The client needs tio be able to send licences to exhibit to each of >his customers as they apply and are accepted or rejected. I have set up a >mail merge template in word which gets data from the relevant query. Each >copy of the document will be of varying content based on wether conditions >are imposed or not. > >I have never done this before and so need some advise from those who have. > >How do I set this up to print a copy of the letter for every record in a >range of records? if they have 200 new approvals I need to generate a >letter for each of the approvals in a range entered. What is the best way >to put this into the database and allow a user entered parameter for the >range? > >All help appreciated > >Connie Kamrowski > >Analyst/Programmer >Information Technology >NSW Agriculture >Orange > > > >This message is intended for the addressee named and may contain >confidential information. If you are not the intended recipient or received >it in error, please delete the message and notify sender. Views expressed >are those of the individual sender and are not necessarily the views of >their organisation. > > > > -- Marty Connelly Victoria, B.C. Canada From bchacc at san.rr.com Fri Apr 23 00:34:37 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Thu, 22 Apr 2004 22:34:37 -0700 Subject: [AccessD] Dual Install 97 and 2000 References: Message-ID: <01dd01c428f4$aac895a0$6601a8c0@HAL9002> And keep an eye on the target folder for the install. The default install folder name may be the same for both version. Rocky Smolin Beach Access Software http://www.e-z-mrp.com ----- Original Message ----- From: "Charlotte Foust" To: "Access Developers discussion and problem solving" Sent: Thursday, April 22, 2004 3:46 PM Subject: RE: [AccessD] Dual Install 97 and 2000 > You can install 97 after. Rename hatten.ttf before you try it, and you > may have to reinstall 2000 afterward, retaining 97, to get the file type > associations right. > > Charlotte Foust > > -----Original Message----- > From: Mark Whittinghill [mailto:mwhittinghill at symphonyinfo.com] > Sent: Thursday, April 22, 2004 1:17 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] Dual Install 97 and 2000 > > > Hi all, > > I have 2000 on my machine, and would like to add 97. Can I just > install 97 then fix the hatten.ttf problem, or do I need to uninstall > 2000 first, install 97 then reinstall 2000? > > 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 > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From lists at theopg.com Fri Apr 23 01:45:33 2004 From: lists at theopg.com (MarkH) Date: Fri, 23 Apr 2004 07:45:33 +0100 Subject: [AccessD] Access XP Runtime and Autocad In-Reply-To: <8614878414.20040413132824@cactus.dk> Message-ID: <000801c428fe$93ee03b0$0f0b6bd5@netboxxp> Hello All... We are using Access XP runtime on Windos XP and today a couple of machines completely failed to load any access database. In both cases Autocad 2002 had been installed this morning. You could get into simple databases, but as soon as you load a form that contains a list or tree control (mscomctl.ocx) access falls over offering to restart and send a message to Microsoft... Nothing usefull really. Anyone out there know what could be causing this problem? Cheers Mark From martyconnelly at shaw.ca Fri Apr 23 02:18:44 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 23 Apr 2004 00:18:44 -0700 Subject: [AccessD] Access XP Runtime and Autocad References: <000801c428fe$93ee03b0$0f0b6bd5@netboxxp> Message-ID: <4088C354.3060707@shaw.ca> I guess AutoCad install overwrote the control or reregistered their own version. Naughty, naughty. Office XP SP2 installs version 6.1.95.45 of mscomctl.ocx See DLL hell er help database. to check your present version number right click file in windows explorer for properties version. http://support.microsoft.com/default.aspx?scid=http%3a%2f%2fsupport.microsoft.com%2fservicedesks%2ffileversion%2fdllinfo.asp&fp=1 Also check your runtime is including that control with the packaging wizard MarkH wrote: >Hello All... > >We are using Access XP runtime on Windos XP and today a couple of >machines completely failed to load any access database. In both cases >Autocad 2002 had been installed this morning. You could get into simple >databases, but as soon as you load a form that contains a list or tree >control (mscomctl.ocx) access falls over offering to restart and send a >message to Microsoft... Nothing usefull really. > >Anyone out there know what could be causing this problem? > >Cheers > >Mark > > > -- Marty Connelly Victoria, B.C. Canada From paul.hartland at fsmail.net Fri Apr 23 03:02:32 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Fri, 23 Apr 2004 10:02:32 +0200 (CEST) Subject: [AccessD] VB6 DLL Help Required Message-ID: <28557687.1082707352738.JavaMail.www@wwinf3003> This is the code I used for my DLL (may not be what your expecting as this is my first ever DLL, and I use a reference to another DLL (vbSendMail) Public WithEvents poSendmail As vbSendMail.clsSendMail Function SendEmail(EmailFrom As String, EmailTo As String, EmailSub As String, EmailBody As String, EmailAtt As String) Set poSendmail = New clsSendMail With poSendmail .SMTPHost = "Primary" .From = EmailFrom .FromDisplayName = EmailFrom .ReplyToAddress = EmailFrom .Recipient = EmailTo .Subject = EmailSub .Message = EmailBody .Attachment = EmailAtt .Send End With Set poSendmail = Nothing End Function Private Sub poSendmail_SendSuccesful() MsgBox "Email has been sent", vbInformation, "**** Email Sent ****" End Sub Private Sub poSendmail_SendFailed(Explanation As String) MsgBox "Email has NOT been sent for the following reason:" & vbCrLf & vbCrLf & _ Explanation, vbInformation, "**** Email Failed ****" End Sub The msgbox's work to say if the email has been sent or not, but there is also a status event which really needs to be on a label, but I don't know how to show this to the user. Paul Message date : Apr 23 2004, 12:47 AM >From : "Ken Ismert" To : "'Access Developers discussion and problem solving'" Copy to : Subject : RE: [AccessD] VB6 DLL Help Required Paul, Are you using your DLL 'API-style' using Declare statements, or have you registered it as a COM component, and can create objects you have defined in your DLL? If the former, you are limited basically to return codes from your function call. If the latter, you could define your own events in your vbSendMail wrapper object to relay the vbSendMail events to your client. -Ken -----Original Message----- From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] Sent: Thursday, April 22, 2004 7:11 AM To: accessd Subject: [AccessD] VB6 DLL Help Required To all, Been playing with creating my own DLL?s today using Visual Basic 6 and I eventually created one to send an email using the vbSendMail.dll which works a treat. But now I want to use the withevents part of the vbSendMail.dll which will return the following: Email Sent Ok Email Failed Email Staus Can I put a form inside a dll or do I somehow have to return the appropriate message to the calling application, if so how will I do this, has anyone any ideas on this? Paul Hartland Join the UK's number one for the internet www.freeserve.com/time -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Join the UK's number one for the internet www.freeserve.com/time From accessd667 at yahoo.com Fri Apr 23 03:33:50 2004 From: accessd667 at yahoo.com (S D) Date: Fri, 23 Apr 2004 01:33:50 -0700 (PDT) Subject: [AccessD] MoveFile in Class -> Permission denied? Message-ID: <20040423083350.99802.qmail@web61108.mail.yahoo.com> hi group, I've got some code (think from internet) that moves a file. Works like a charm. However, I've created a method in a class called .MoveFile and added the 'move-file'-code to it. Now i get the following error: 70, permission denied. So when I call the code in a function it works When I call the code as a method in a class it doesn't work. How come? TIA Sander C O D E I N F O R M '--------------------------------------------------- 'M O V E F I L E '--------------------------------------------------- With cFile .DownloadDir = "D:\Temp Projecten\Access\Switch\Download\" .ImportDir = "D:\Temp Projecten\Access\Switch\44\" txtDownloadDir = .DownloadDir txtImportDir = .ImportDir Call .MoveFile(.DownloadDir, .ImportDir, GetNamePart(strFileName)) End With C O D E I N C L A S S 'Move a file if it exists Function MoveFile(strSourceDir As String, _ strDestinationDir As String, _ strFile As String) As Boolean Dim fso Dim file As String, sfol As String, dfol As String file = strFile ' "test.xls" ' change to match the file name sfol = strSourceDir ' "C:\" ' change to match the source folder path dfol = strDestinationDir ' "E:\" ' change to match the destination folder path Set fso = CreateObject("Scripting.FileSystemObject") If Not fso.FileExists(sfol & file) Then MsgBox sfol & file & " does not exist!", vbExclamation, "Source File Missing" ElseIf Not fso.FileExists(dfol & file) Then fso.MoveFile (sfol & file), dfol <<== ERROR OCCURS HERE?!! Else MsgBox dfol & file & " already exists!", vbExclamation, "Destination File Exists" End If End Function Public Property Get DownloadDir() As String DownloadDir = m_strDownloadDir End Property Public Property Let ImportDir(ByVal vData As String) m_strImportDir = vData End Property Public Property Get ImportDir() As String ImportDir = m_strImportDir End Property --------------------------------- Do you Yahoo!? Yahoo! Photos: High-quality 4x6 digital prints for 25? From accessd667 at yahoo.com Fri Apr 23 03:45:37 2004 From: accessd667 at yahoo.com (S D) Date: Fri, 23 Apr 2004 01:45:37 -0700 (PDT) Subject: [AccessD] OT SQL Question In-Reply-To: <002501c428a9$a77fa140$1b02a8c0@MARTINREID> Message-ID: <20040423084537.43405.qmail@web61105.mail.yahoo.com> Martin, can you please provide a little more info? WHY do you not want to use cursors? Where does the output have to go to? What format does it need to have? What's the layout of the tables? (Send me the create table scripts...) Sander Martin Reid wrote: Tried the SQL Server list with this - no luck. Given a one to many relationship is it possible to produce this output using an SP without the use of cursors etc?? INPUT TABLE 1 1000 IT 1000 Databases 1000 VMS 1001 Spreadsheets 1001 GenStat 1002 Aquatic systems 1002 Research INPUT TABLE 2 1000 Smith 1001 Brown 1002 Foster OUTPUT REQUIRED 1000 Smith IT, Databases,VMS 1001 Brown Spreadsheets,GenStat 1002 Foster Aquatic Systems,Research Martin -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Yahoo! Photos: High-quality 4x6 digital prints for 25? From gustav at cactus.dk Fri Apr 23 03:41:32 2004 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 23 Apr 2004 10:41:32 +0200 Subject: [AccessD] Query fails when using NOT IN ??? In-Reply-To: <408827CE.7060601@verizon.net> References: <657FB70438B7D311AF320090279C18010614418F@EXCHMAIL> <322806795.20040422090018@cactus.dk> <408827CE.7060601@verizon.net> Message-ID: <1387056546.20040423104132@cactus.dk> Hi Francisco > Gustav, > David quoted an article for Sql Server in which this is 100% > reproducable. I think he posted it here because of the initial posts of > problems where the IN clause or rather (NOT IN) was not behaving as > expected. for that manner I've also seen it do this, one major > workaround is to explicitly point the inner quiery to that of the outer > query. that way any possible errors will be trapped > SUCH as > DELETE FROM > TitleAuthor > WHERE > au_id IN (SELECT au_id FROM Publishers WHERE Publishers.au_id=TitleAuthor.au_id) But Christopher didn't refer to SQL Server, that's why I thought it would be more relevant to show that this bug is non-existing in Jet SQL. Further, I guess including the where clause will perform much slower? If you really need to do that, couldn't this do (I have no SQL Server to play with): au_id IN (SELECT au_id FROM Publishers WHERE Publishers.au_id Is Not Null) /gustav >>>Pinnacle's SQL Server Professional, February 2002 (Volume 8, Number 2), >>>"Known Problems with IN/NOT IN()" >>> >>> >>I can't recognize this; it behaves very politely. >>The syntax doesn't work in Jet SQL, but this does: >> >> DELETE FROM >> TitleAuthor >> WHERE >> au_id IN (SELECT au_id FROM Publishers) >> >>and it deletes zero records if Publishers is empty. If au_id doesn't >>exist as a field, Access asks for it as a parameter. >>So this is exactly as expected. >> >>Can you provide another example? Or are you talking about another SQL >>engine? From mwp.reid at queens-belfast.ac.uk Fri Apr 23 05:10:37 2004 From: mwp.reid at queens-belfast.ac.uk (Martin Reid) Date: Fri, 23 Apr 2004 11:10:37 +0100 (GMT Daylight Time) Subject: [AccessD] OT SQL Question In-Reply-To: <20040423084537.43405.qmail@web61105.mail.yahoo.com> Message-ID: Sander See inline Martin > Martin, > > can you please provide a little more info? > WHY do you not want to use cursors? No reason just wanted to try it using SQL but didnt seem possible without cursors. > Where does the output have to go to? Into a table > What format does it need to have? see above > What's the layout of the tables? (Send me the create table scripts...) No problem will email them of line later on. That OK? > > Sander > > Martin Reid wrote: > Tried the SQL Server list with this - no luck. > > > Given a one to many relationship is it possible to produce this output using > an SP without the use of cursors etc?? > > INPUT TABLE 1 > > 1000 > IT > > 1000 > Databases > > 1000 > VMS > > 1001 > Spreadsheets > > 1001 > GenStat > > 1002 > Aquatic systems > > 1002 > Research > > > > > INPUT TABLE 2 > > > > 1000 > Smith > > 1001 > Brown > > 1002 > Foster > > > > > OUTPUT REQUIRED > > 1000 > Smith > IT, Databases,VMS > > 1001 > Brown > Spreadsheets,GenStat > > 1002 > Foster > Aquatic Systems,Research > > > > > Martin > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > --------------------------------- > Do you Yahoo!? > Yahoo! Photos: High-quality 4x6 digital prints for 25? > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com Martin WP Reid Information Services Queens University Belfast Tel: (02890) 273750 ---------------------- From Jdemarco at hudsonhealthplan.org Fri Apr 23 07:45:59 2004 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Fri, 23 Apr 2004 08:45:59 -0400 Subject: [AccessD] VB6 DLL Help Required Message-ID: <22F1CCD5171D17419CB37FEEE09D5F9902E8058E@TTNEXCHSRV1.hshhp.com> Paul, I don't know the name of the status event you mention but you could do it a couple of ways. Yes you could have a form in your dll that appears when status changes (I'm guessing this is the status events use): Private Sub poSendMail_StatusChanged() frmStatus.Show End Sub Or you could add a Status property and an event to your DLL that wraps the vbSendMail status event. This way your app can do whatever it likes with the event Private m_strStatus As String Public Event EmailStatusChanged Public Property Get Status() As String Status = m_strStatus End Property Public Property Let Status(ByVal strStatus As String) m_strStatus = strStatus End Property Private Sub poSendMail_StatusChanged() m_strStatus = SomeValue 'set the Status property in the Changed event RaiseEvent EmailStatusChanged 'this is the event you'll trap in your client app End Sub Now you create an object of your class type in your client app WithEvents: Dim strStatus As String Private WithEvents myObject as MyDll.cMyClass private Sub myObject_EmailStatusChanged() strStatus = myObject.Status 'show the status to the user here End Sub HTH, Jim DeMarco Director Application Development Hudson Health Plan -----Original Message----- From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] Sent: Friday, April 23, 2004 4:03 AM To: Access Developers discussion and problem solving Subject: Re: RE: [AccessD] VB6 DLL Help Required This is the code I used for my DLL (may not be what your expecting as this is my first ever DLL, and I use a reference to another DLL (vbSendMail) Public WithEvents poSendmail As vbSendMail.clsSendMail Function SendEmail(EmailFrom As String, EmailTo As String, EmailSub As String, EmailBody As String, EmailAtt As String) Set poSendmail = New clsSendMail With poSendmail .SMTPHost = "Primary" .From = EmailFrom .FromDisplayName = EmailFrom .ReplyToAddress = EmailFrom .Recipient = EmailTo .Subject = EmailSub .Message = EmailBody .Attachment = EmailAtt .Send End With Set poSendmail = Nothing End Function Private Sub poSendmail_SendSuccesful() MsgBox "Email has been sent", vbInformation, "**** Email Sent ****" End Sub Private Sub poSendmail_SendFailed(Explanation As String) MsgBox "Email has NOT been sent for the following reason:" & vbCrLf & vbCrLf & _ Explanation, vbInformation, "**** Email Failed ****" End Sub The msgbox's work to say if the email has been sent or not, but there is also a status event which really needs to be on a label, but I don't know how to show this to the user. Paul Message date : Apr 23 2004, 12:47 AM >From : "Ken Ismert" To : "'Access Developers discussion and problem solving'" Copy to : Subject : RE: [AccessD] VB6 DLL Help Required Paul, Are you using your DLL 'API-style' using Declare statements, or have you registered it as a COM component, and can create objects you have defined in your DLL? If the former, you are limited basically to return codes from your function call. If the latter, you could define your own events in your vbSendMail wrapper object to relay the vbSendMail events to your client. -Ken -----Original Message----- From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] Sent: Thursday, April 22, 2004 7:11 AM To: accessd Subject: [AccessD] VB6 DLL Help Required To all, Been playing with creating my own DLL's today using Visual Basic 6 and I eventually created one to send an email using the vbSendMail.dll which works a treat. But now I want to use the withevents part of the vbSendMail.dll which will return the following: Email Sent Ok Email Failed Email Staus Can I put a form inside a dll or do I somehow have to return the appropriate message to the calling application, if so how will I do this, has anyone any ideas on this? Paul Hartland Join the UK's number one for the internet www.freeserve.com/time -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Join the UK's number one for the internet www.freeserve.com/time -- _______________________________________________ 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 ssharkins at bellsouth.net Fri Apr 23 08:08:37 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Fri, 23 Apr 2004 09:08:37 -0400 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <003201c428cf$b5c90d10$2a3ca8c0@TEXASSYSTEMS.COM> Message-ID: <20040423130836.OIAG1728.imf24aec.mail.bellsouth.net@SUSANONE> Thank you Ken. ;) My final solution is to refer to the form value in the query. This time around, I hid the report, forcing the user to use the form to open the report, but that isn't the best way to do it. Unfortunately, I didn't know how to ward off the dread parameter prompt when the user opens the report naturally instead of through the form. I've no problem setting a default for the sort, but couldn't stop that stupid prompt because it's coming from the query. :( Susan H. Susan, You can do this using only a query, without any code, OpenArgs, or calculated controls on the report's part. You simply need a query with four variables: MajorInt - the major date interval MinorInt - the minor date interval CurInt - the current date's minor interval (1 - 7 for weekdays, etc) MaxInt - the number minor intervals in the major interval For the following Major/Minor groups, use these values: Group MajorInt MinorInt MaxInt CurInt ======================================================================= Week/Day "ww" "w" 7 DatePart("w", Date) Month/Day "m" "d" 31 DatePart("d", Date) Year/Day "yyyy" "y" 366 DatePart("y", Date) Year/Week "yyyy" "ww" 54 DatePart("ww", Date) This will group by MajorInt, then MinorInt, ordering the records starting with CurInt for each MajorInt. Sample Query: (For a report, replace the Parameters with Form control references, and replace the OrderBy with grouping by GroupMajor, GroupMinor) PARAMETERS MajorInt Text ( 255 ), MinorInt Text ( 255 ), CurInt Short, MaxInt Short; SELECT DatePart([MajorInt],[DateField]) AS GroupMajor, (DatePart([MinorInt],[DateField])+IIf(DatePart([MinorInt],[DateField])<[CurI nt],[MaxInt],0)) AS GroupMinor, tblDemo.DateID, Format([DateField],"yyyy") AS [Year], Format([DateField],"mmm") AS [Month], DatePart("ww",[DateField]) AS Week, DatePart("d",[DateField]) AS DayMonth, Format([DateField],"ddd") AS [Day] FROM tblDemo ORDER BY DatePart([MajorInt],[DateField]), (DatePart([MinorInt],[DateField])+IIf(DatePart([MinorInt],[DateField])<[CurI nt],[MaxInt],0)); -Ken ----- Original Message ----- From: Susan Harkins To: 'Access Developers discussion and problem solving' Sent: Sunday, April 18, 2004 04:16 Subject: [AccessD] custom sorts/groups in a report I'm grouping and sorting a report on a date field. The grouping is by the week -- but I want it to handle a changing first day of the week variable. I can't get my head around it at all. Passing the first day of the week around is no problem -- I just can't seem to get Access to group by it. I've looked at CreateGroupLevel, but I don't see how that can help. I tried adding a DatePart expression to the Detail section and using the OpenArgs property to pass the first day of the week, and while the expression works, I can't group by it -- it's a calculated control. I don't want the users manipulating the underlying query either. They choose the first day of the week from a simple form and the rest needs to happen behind the scenes. Any suggestions? Susan H. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at earthlink.net Fri Apr 23 08:16:16 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Fri, 23 Apr 2004 09:16:16 -0400 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <20040423130836.OIAG1728.imf24aec.mail.bellsouth.net@SUSANONE> Message-ID: Susan, <> In the reports OnOpen event, you can check for the existence of the form and 1. Open it and switch focus to it. 2. Cancel the report with a message box to the user telling them that they need to open the report through the form. 3. Open the form hidden, stuff a default value, and then continue. or 4. Change the query to use a function to get the value for the parameter from a global variable, which could be set from the form or from the report's OnOpen event if the form is not open. Jim (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Susan Harkins Sent: Friday, April 23, 2004 9:09 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] custom sorts/groups in a report Thank you Ken. ;) My final solution is to refer to the form value in the query. This time around, I hid the report, forcing the user to use the form to open the report, but that isn't the best way to do it. Unfortunately, I didn't know how to ward off the dread parameter prompt when the user opens the report naturally instead of through the form. I've no problem setting a default for the sort, but couldn't stop that stupid prompt because it's coming from the query. :( Susan H. Susan, You can do this using only a query, without any code, OpenArgs, or calculated controls on the report's part. You simply need a query with four variables: MajorInt - the major date interval MinorInt - the minor date interval CurInt - the current date's minor interval (1 - 7 for weekdays, etc) MaxInt - the number minor intervals in the major interval For the following Major/Minor groups, use these values: Group MajorInt MinorInt MaxInt CurInt ======================================================================= Week/Day "ww" "w" 7 DatePart("w", Date) Month/Day "m" "d" 31 DatePart("d", Date) Year/Day "yyyy" "y" 366 DatePart("y", Date) Year/Week "yyyy" "ww" 54 DatePart("ww", Date) This will group by MajorInt, then MinorInt, ordering the records starting with CurInt for each MajorInt. Sample Query: (For a report, replace the Parameters with Form control references, and replace the OrderBy with grouping by GroupMajor, GroupMinor) PARAMETERS MajorInt Text ( 255 ), MinorInt Text ( 255 ), CurInt Short, MaxInt Short; SELECT DatePart([MajorInt],[DateField]) AS GroupMajor, (DatePart([MinorInt],[DateField])+IIf(DatePart([MinorInt],[DateField])<[CurI nt],[MaxInt],0)) AS GroupMinor, tblDemo.DateID, Format([DateField],"yyyy") AS [Year], Format([DateField],"mmm") AS [Month], DatePart("ww",[DateField]) AS Week, DatePart("d",[DateField]) AS DayMonth, Format([DateField],"ddd") AS [Day] FROM tblDemo ORDER BY DatePart([MajorInt],[DateField]), (DatePart([MinorInt],[DateField])+IIf(DatePart([MinorInt],[DateField])<[CurI nt],[MaxInt],0)); -Ken ----- Original Message ----- From: Susan Harkins To: 'Access Developers discussion and problem solving' Sent: Sunday, April 18, 2004 04:16 Subject: [AccessD] custom sorts/groups in a report I'm grouping and sorting a report on a date field. The grouping is by the week -- but I want it to handle a changing first day of the week variable. I can't get my head around it at all. Passing the first day of the week around is no problem -- I just can't seem to get Access to group by it. I've looked at CreateGroupLevel, but I don't see how that can help. I tried adding a DatePart expression to the Detail section and using the OpenArgs property to pass the first day of the week, and while the expression works, I can't group by it -- it's a calculated control. I don't want the users manipulating the underlying query either. They choose the first day of the week from a simple form and the rest needs to happen behind the scenes. Any suggestions? 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 gustav at cactus.dk Fri Apr 23 08:28:33 2004 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 23 Apr 2004 15:28:33 +0200 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <20040423130836.OIAG1728.imf24aec.mail.bellsouth.net@SUSANONE> References: <20040423130836.OIAG1728.imf24aec.mail.bellsouth.net@SUSANONE> Message-ID: <17524277599.20040423152833@cactus.dk> Hi Susan > My final solution is to refer to the form value in the query. This time > around, I hid the report, forcing the user to use the form to open the > report, but that isn't the best way to do it. Unfortunately, I didn't know > how to ward off the dread parameter prompt when the user opens the report > naturally instead of through the form. I've no problem setting a default for > the sort, but couldn't stop that stupid prompt because it's coming from the > query. :( If that was your only problem (of this thread, of course), you could replace the parameter lookup with a tiny public function performing the lookup: Function GetReportWeekday() As Byte Const cstrForm As String = "frmYourForm" ' Default first weekday. Const cbytWeekday As Byte = vbSunday Dim bytWeekday As Byte If IsFormOpen(cstrForm) Then bytWeekday = Val(Nz(Forms(cstrForm)!txtYourTextbox.Value, vbNullString)) EndIf If bytWeekday = 0 Then bytWeekday = cbytWeekday Endif GetReportWeekday = bytWeekday End Function /gustav From adtp at touchtelindia.net Fri Apr 23 08:44:29 2004 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Fri, 23 Apr 2004 19:14:29 +0530 Subject: [AccessD] custom sorts/groups in a report References: <20040423130836.OIAG1728.imf24aec.mail.bellsouth.net@SUSANONE> Message-ID: <005f01c42939$445e4540$cd1865cb@winxp> Susan, Did you happen to try out the solution given by me ? It makes use of the existing date field in report's record source and is not dependent upon the form having to remain open. No special alteration needed for the source query and no parameters to contend with. If due to any reason, the value of starting day of the week is not passed to report's OpenArgs, default value of 1 (Sunday) is assumed and there is no error situation. Regards, A.D.Tejpal -------------- ----- Original Message ----- From: Susan Harkins To: 'Access Developers discussion and problem solving' Sent: Friday, April 23, 2004 18:38 Subject: RE: [AccessD] custom sorts/groups in a report Thank you Ken. ;) My final solution is to refer to the form value in the query. This time around, I hid the report, forcing the user to use the form to open the report, but that isn't the best way to do it. Unfortunately, I didn't know how to ward off the dread parameter prompt when the user opens the report naturally instead of through the form. I've no problem setting a default for the sort, but couldn't stop that stupid prompt because it's coming from the query. :( Susan H. Susan, You can do this using only a query, without any code, OpenArgs, or calculated controls on the report's part. You simply need a query with four variables: MajorInt - the major date interval MinorInt - the minor date interval CurInt - the current date's minor interval (1 - 7 for weekdays, etc) MaxInt - the number minor intervals in the major interval For the following Major/Minor groups, use these values: Group MajorInt MinorInt MaxInt CurInt ======================================================================= Week/Day "ww" "w" 7 DatePart("w", Date) Month/Day "m" "d" 31 DatePart("d", Date) Year/Day "yyyy" "y" 366 DatePart("y", Date) Year/Week "yyyy" "ww" 54 DatePart("ww", Date) This will group by MajorInt, then MinorInt, ordering the records starting with CurInt for each MajorInt. Sample Query: (For a report, replace the Parameters with Form control references, and replace the OrderBy with grouping by GroupMajor, GroupMinor) PARAMETERS MajorInt Text ( 255 ), MinorInt Text ( 255 ), CurInt Short, MaxInt Short; SELECT DatePart([MajorInt],[DateField]) AS GroupMajor, (DatePart([MinorInt],[DateField])+IIf(DatePart([MinorInt],[DateField])<[CurI nt],[MaxInt],0)) AS GroupMinor, tblDemo.DateID, Format([DateField],"yyyy") AS [Year], Format([DateField],"mmm") AS [Month], DatePart("ww",[DateField]) AS Week, DatePart("d",[DateField]) AS DayMonth, Format([DateField],"ddd") AS [Day] FROM tblDemo ORDER BY DatePart([MajorInt],[DateField]), (DatePart([MinorInt],[DateField])+IIf(DatePart([MinorInt],[DateField])<[CurI nt],[MaxInt],0)); -Ken ----- Original Message ----- From: Susan Harkins To: 'Access Developers discussion and problem solving' Sent: Sunday, April 18, 2004 04:16 Subject: [AccessD] custom sorts/groups in a report I'm grouping and sorting a report on a date field. The grouping is by the week -- but I want it to handle a changing first day of the week variable. I can't get my head around it at all. Passing the first day of the week around is no problem -- I just can't seem to get Access to group by it. I've looked at CreateGroupLevel, but I don't see how that can help. I tried adding a DatePart expression to the Detail section and using the OpenArgs property to pass the first day of the week, and while the expression works, I can't group by it -- it's a calculated control. I don't want the users manipulating the underlying query either. They choose the first day of the week from a simple form and the rest needs to happen behind the scenes. Any suggestions? Susan H. From rbgajewski at adelphia.net Fri Apr 23 08:48:15 2004 From: rbgajewski at adelphia.net (Bob Gajewski) Date: Fri, 23 Apr 2004 09:48:15 -0400 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: Message-ID: Susan If you choose Option #2 ... (watch for line wraps) In the report's OnOpen event, place: ****************************************** Private Sub Report_Open(Cancel As Integer) Dim strFormName As String strFormName = "yourformname" If Not IsLoaded(strFormName) Then Dim strMsg As String, strResponse As String strMsg = "This report cannot be run directly. You must open the " & strFormName & " form." strResponse = MsgBox(strMsg) Cancel = True End If End Sub ****************************************** And in a module, place: ****************************************** Function IsLoaded(ByVal strFormName As String) As Boolean 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 ****************************************** Regards, Bob Gajewski -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Dettman Sent: Friday, April 23, 2004 09:16 To: Access Developers discussion and problem solving Subject: RE: [AccessD] custom sorts/groups in a report Susan, <> In the reports OnOpen event, you can check for the existence of the form and 1. Open it and switch focus to it. 2. Cancel the report with a message box to the user telling them that they need to open the report through the form. 3. Open the form hidden, stuff a default value, and then continue. or 4. Change the query to use a function to get the value for the parameter from a global variable, which could be set from the form or from the report's OnOpen event if the form is not open. Jim (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Susan Harkins Sent: Friday, April 23, 2004 9:09 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] custom sorts/groups in a report Thank you Ken. ;) My final solution is to refer to the form value in the query. This time around, I hid the report, forcing the user to use the form to open the report, but that isn't the best way to do it. Unfortunately, I didn't know how to ward off the dread parameter prompt when the user opens the report naturally instead of through the form. I've no problem setting a default for the sort, but couldn't stop that stupid prompt because it's coming from the query. :( Susan H. Susan, You can do this using only a query, without any code, OpenArgs, or calculated controls on the report's part. You simply need a query with four variables: MajorInt - the major date interval MinorInt - the minor date interval CurInt - the current date's minor interval (1 - 7 for weekdays, etc) MaxInt - the number minor intervals in the major interval For the following Major/Minor groups, use these values: Group MajorInt MinorInt MaxInt CurInt ======================================================================= Week/Day "ww" "w" 7 DatePart("w", Date) Month/Day "m" "d" 31 DatePart("d", Date) Year/Day "yyyy" "y" 366 DatePart("y", Date) Year/Week "yyyy" "ww" 54 DatePart("ww", Date) This will group by MajorInt, then MinorInt, ordering the records starting with CurInt for each MajorInt. Sample Query: (For a report, replace the Parameters with Form control references, and replace the OrderBy with grouping by GroupMajor, GroupMinor) PARAMETERS MajorInt Text ( 255 ), MinorInt Text ( 255 ), CurInt Short, MaxInt Short; SELECT DatePart([MajorInt],[DateField]) AS GroupMajor, (DatePart([MinorInt],[DateField])+IIf(DatePart([MinorInt],[DateField])<[CurI nt],[MaxInt],0)) AS GroupMinor, tblDemo.DateID, Format([DateField],"yyyy") AS [Year], Format([DateField],"mmm") AS [Month], DatePart("ww",[DateField]) AS Week, DatePart("d",[DateField]) AS DayMonth, Format([DateField],"ddd") AS [Day] FROM tblDemo ORDER BY DatePart([MajorInt],[DateField]), (DatePart([MinorInt],[DateField])+IIf(DatePart([MinorInt],[DateField])<[CurI nt],[MaxInt],0)); -Ken ----- Original Message ----- From: Susan Harkins To: 'Access Developers discussion and problem solving' Sent: Sunday, April 18, 2004 04:16 Subject: [AccessD] custom sorts/groups in a report I'm grouping and sorting a report on a date field. The grouping is by the week -- but I want it to handle a changing first day of the week variable. I can't get my head around it at all. Passing the first day of the week around is no problem -- I just can't seem to get Access to group by it. I've looked at CreateGroupLevel, but I don't see how that can help. I tried adding a DatePart expression to the Detail section and using the OpenArgs property to pass the first day of the week, and while the expression works, I can't group by it -- it's a calculated control. I don't want the users manipulating the underlying query either. They choose the first day of the week from a simple form and the rest needs to happen behind the scenes. Any suggestions? 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 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jdemarco at hudsonhealthplan.org Fri Apr 23 09:17:51 2004 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Fri, 23 Apr 2004 10:17:51 -0400 Subject: [AccessD] Quick A2K3 question Message-ID: <22F1CCD5171D17419CB37FEEE09D5F9902E80595@TTNEXCHSRV1.hshhp.com> Just a quick and easy question. What's new in advanced coding features in Access 2003? We have enums but can we raise events? Can we design and use a class as an Interface? Is there anything else from VB that might have been added? TIA, Jim DeMarco Director Application Development Hudson Health Plan *********************************************************************************** "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 Bryan_Carbonnell at cbc.ca Fri Apr 23 09:38:15 2004 From: Bryan_Carbonnell at cbc.ca (Bryan Carbonnell) Date: Fri, 23 Apr 2004 10:38:15 -0400 Subject: [AccessD] Quick A2K3 question Message-ID: Enums and RaiseEvents aren't new in A2K3. They were added in A2K. As for what's new in A2K3, I can't help. I don't have it. Bryan Carbonnell bryan_carbonnell at cbc.ca >>> Jdemarco at hudsonhealthplan.org 23-Apr-04 10:17:51 AM >>> Just a quick and easy question. What's new in advanced coding features in Access 2003? We have enums but can we raise events? Can we design and use a class as an Interface? Is there anything else from VB that might have been added? TIA, From ssharkins at bellsouth.net Fri Apr 23 09:40:33 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Fri, 23 Apr 2004 10:40:33 -0400 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: Message-ID: <20040423144032.SRAV1774.imf19aec.mail.bellsouth.net@SUSANONE> I considered the first, but skipped it because the article was already so long, but I didn't actually apply it. My reasons for wanting the report to open without error is so the user could avoid the form altogether and depend on defaults within the report itself when the form isn't present, but it wasn't worth the extra space for the current article. I started out with a function, but my goal was to do it with as few pieces as possible. Susan H. Susan, <> In the reports OnOpen event, you can check for the existence of the form and 1. Open it and switch focus to it. 2. Cancel the report with a message box to the user telling them that they need to open the report through the form. 3. Open the form hidden, stuff a default value, and then continue. or 4. Change the query to use a function to get the value for the parameter from a global variable, which could be set from the form or from the report's OnOpen event if the form is not open. Jim (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Susan Harkins Sent: Friday, April 23, 2004 9:09 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] custom sorts/groups in a report Thank you Ken. ;) My final solution is to refer to the form value in the query. This time around, I hid the report, forcing the user to use the form to open the report, but that isn't the best way to do it. Unfortunately, I didn't know how to ward off the dread parameter prompt when the user opens the report naturally instead of through the form. I've no problem setting a default for the sort, but couldn't stop that stupid prompt because it's coming from the query. :( Susan H. Susan, You can do this using only a query, without any code, OpenArgs, or calculated controls on the report's part. You simply need a query with four variables: MajorInt - the major date interval MinorInt - the minor date interval CurInt - the current date's minor interval (1 - 7 for weekdays, etc) MaxInt - the number minor intervals in the major interval For the following Major/Minor groups, use these values: Group MajorInt MinorInt MaxInt CurInt ======================================================================= Week/Day "ww" "w" 7 DatePart("w", Date) Month/Day "m" "d" 31 DatePart("d", Date) Year/Day "yyyy" "y" 366 DatePart("y", Date) Year/Week "yyyy" "ww" 54 DatePart("ww", Date) This will group by MajorInt, then MinorInt, ordering the records starting with CurInt for each MajorInt. Sample Query: (For a report, replace the Parameters with Form control references, and replace the OrderBy with grouping by GroupMajor, GroupMinor) PARAMETERS MajorInt Text ( 255 ), MinorInt Text ( 255 ), CurInt Short, MaxInt Short; SELECT DatePart([MajorInt],[DateField]) AS GroupMajor, (DatePart([MinorInt],[DateField])+IIf(DatePart([MinorInt],[DateField])<[CurI nt],[MaxInt],0)) AS GroupMinor, tblDemo.DateID, Format([DateField],"yyyy") AS [Year], Format([DateField],"mmm") AS [Month], DatePart("ww",[DateField]) AS Week, DatePart("d",[DateField]) AS DayMonth, Format([DateField],"ddd") AS [Day] FROM tblDemo ORDER BY DatePart([MajorInt],[DateField]), (DatePart([MinorInt],[DateField])+IIf(DatePart([MinorInt],[DateField])<[CurI nt],[MaxInt],0)); -Ken ----- Original Message ----- From: Susan Harkins To: 'Access Developers discussion and problem solving' Sent: Sunday, April 18, 2004 04:16 Subject: [AccessD] custom sorts/groups in a report I'm grouping and sorting a report on a date field. The grouping is by the week -- but I want it to handle a changing first day of the week variable. I can't get my head around it at all. Passing the first day of the week around is no problem -- I just can't seem to get Access to group by it. I've looked at CreateGroupLevel, but I don't see how that can help. I tried adding a DatePart expression to the Detail section and using the OpenArgs property to pass the first day of the week, and while the expression works, I can't group by it -- it's a calculated control. I don't want the users manipulating the underlying query either. They choose the first day of the week from a simple form and the rest needs to happen behind the scenes. Any suggestions? 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 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Fri Apr 23 09:41:23 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Fri, 23 Apr 2004 10:41:23 -0400 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <17524277599.20040423152833@cactus.dk> Message-ID: <20040423144121.SRVB1774.imf19aec.mail.bellsouth.net@SUSANONE> Back to the function though -- I wanted to avoid it. I plan to hock a follow-up. ;) Susan H. Hi Susan > My final solution is to refer to the form value in the query. This > time around, I hid the report, forcing the user to use the form to > open the report, but that isn't the best way to do it. Unfortunately, > I didn't know how to ward off the dread parameter prompt when the user > opens the report naturally instead of through the form. I've no > problem setting a default for the sort, but couldn't stop that stupid > prompt because it's coming from the query. :( If that was your only problem (of this thread, of course), you could replace the parameter lookup with a tiny public function performing the lookup: Function GetReportWeekday() As Byte Const cstrForm As String = "frmYourForm" ' Default first weekday. Const cbytWeekday As Byte = vbSunday Dim bytWeekday As Byte If IsFormOpen(cstrForm) Then bytWeekday = Val(Nz(Forms(cstrForm)!txtYourTextbox.Value, vbNullString)) EndIf If bytWeekday = 0 Then bytWeekday = cbytWeekday Endif GetReportWeekday = bytWeekday End Function /gustav -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at bellsouth.net Fri Apr 23 09:42:05 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Fri, 23 Apr 2004 10:42:05 -0400 Subject: [AccessD] custom sorts/groups in a report In-Reply-To: <005f01c42939$445e4540$cd1865cb@winxp> Message-ID: <20040423144203.SSGC1774.imf19aec.mail.bellsouth.net@SUSANONE> I don't really remember -- reviewed several though -- lots of interesting choices, that's for sure. :) Susan H. Susan, Did you happen to try out the solution given by me ? It makes use of the existing date field in report's record source and is not dependent upon the form having to remain open. No special alteration needed for the source query and no parameters to contend with. If due to any reason, the value of starting day of the week is not passed to report's OpenArgs, default value of 1 (Sunday) is assumed and there is no error situation. From lists at theopg.com Fri Apr 23 10:08:19 2004 From: lists at theopg.com (MarkH) Date: Fri, 23 Apr 2004 16:08:19 +0100 Subject: [AccessD] Access XP Runtime and Autocad In-Reply-To: <4088C354.3060707@shaw.ca> Message-ID: <000001c42944$cff34c80$0f0b6bd5@netboxxp> Cheers Marty... Will do Have a good weekend Mark -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: 23 April 2004 08:19 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access XP Runtime and Autocad I guess AutoCad install overwrote the control or reregistered their own version. Naughty, naughty. Office XP SP2 installs version 6.1.95.45 of mscomctl.ocx See DLL hell er help database. to check your present version number right click file in windows explorer for properties version. http://support.microsoft.com/default.aspx?scid=http%3a%2f%2fsupport.micr osoft.com%2fservicedesks%2ffileversion%2fdllinfo.asp&fp=1 Also check your runtime is including that control with the packaging wizard MarkH wrote: >Hello All... > >We are using Access XP runtime on Windos XP and today a couple of >machines completely failed to load any access database. In both cases >Autocad 2002 had been installed this morning. You could get into simple >databases, but as soon as you load a form that contains a list or tree >control (mscomctl.ocx) access falls over offering to restart and send a >message to Microsoft... Nothing usefull really. > >Anyone out there know what could be causing this problem? > >Cheers > >Mark > > > -- 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 cfoust at infostatsystems.com Fri Apr 23 10:30:48 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 23 Apr 2004 08:30:48 -0700 Subject: [AccessD] Quick A2K3 question Message-ID: I don't have it yet. My understanding is that there is almost nothing new in 2003, since it is still based on VBA6 and has no hooks to VB.net. Raising custom events came in with 2002. Charlotte Foust -----Original Message----- From: Jim DeMarco [mailto:Jdemarco at hudsonhealthplan.org] Sent: Friday, April 23, 2004 6:18 AM To: AccessD (E-mail) Subject: [AccessD] Quick A2K3 question Just a quick and easy question. What's new in advanced coding features in Access 2003? We have enums but can we raise events? Can we design and use a class as an Interface? Is there anything else from VB that might have been added? TIA, Jim DeMarco Director Application Development Hudson Health Plan ************************************************************************ *********** "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 From gustav at cactus.dk Fri Apr 23 10:49:13 2004 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 23 Apr 2004 17:49:13 +0200 Subject: [AccessD] Quick A2K3 question In-Reply-To: References: Message-ID: <3232717965.20040423174913@cactus.dk> Hi Charlotte and Jim Here's the blurb: http://www.microsoft.com/office/editions/prodinfo/compare.mspx For Access it pretty much comes down to Smart Tags ... /gustav > I don't have it yet. My understanding is that there is almost nothing > new in 2003, since it is still based on VBA6 and has no hooks to VB.net. > Raising custom events came in with 2002. > Charlotte Foust > -----Original Message----- > From: Jim DeMarco [mailto:Jdemarco at hudsonhealthplan.org] > Sent: Friday, April 23, 2004 6:18 AM > To: AccessD (E-mail) > Subject: [AccessD] Quick A2K3 question > Just a quick and easy question. What's new in advanced coding features > in Access 2003? We have enums but can we raise events? Can we design > and use a class as an Interface? Is there anything else from VB that > might have been added? > TIA, > Jim DeMarco > Director Application Development > Hudson Health Plan From mwhittinghill at symphonyinfo.com Fri Apr 23 11:01:17 2004 From: mwhittinghill at symphonyinfo.com (Mark Whittinghill) Date: Fri, 23 Apr 2004 11:01:17 -0500 Subject: [AccessD] Dual Install 97 and 2000 References: <01dd01c428f4$aac895a0$6601a8c0@HAL9002> Message-ID: <003001c4294c$36d99920$2201a8c0@PASCAL> Thanks for the replies. I've done dual installs before, but always earlier first. I was just hoping to save a little work, but I'll uninstall 2K and reinstall after 97. Mark Whittinghill Symphony Information Services 763-391-7400 mwhittinghill at symphonyinfo.com ----- Original Message ----- From: "Rocky Smolin - Beach Access Software" To: "Access Developers discussion and problem solving" Sent: Friday, April 23, 2004 12:34 AM Subject: Re: [AccessD] Dual Install 97 and 2000 > And keep an eye on the target folder for the install. The default install > folder name may be the same for both version. > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > > > ----- Original Message ----- > From: "Charlotte Foust" > To: "Access Developers discussion and problem solving" > > Sent: Thursday, April 22, 2004 3:46 PM > Subject: RE: [AccessD] Dual Install 97 and 2000 > > > > You can install 97 after. Rename hatten.ttf before you try it, and you > > may have to reinstall 2000 afterward, retaining 97, to get the file type > > associations right. > > > > Charlotte Foust > > > > -----Original Message----- > > From: Mark Whittinghill [mailto:mwhittinghill at symphonyinfo.com] > > Sent: Thursday, April 22, 2004 1:17 PM > > To: accessd at databaseadvisors.com > > Subject: [AccessD] Dual Install 97 and 2000 > > > > > > Hi all, > > > > I have 2000 on my machine, and would like to add 97. Can I just > > install 97 then fix the hatten.ttf problem, or do I need to uninstall > > 2000 first, install 97 then reinstall 2000? > > > > 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 > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > From chizotz at mchsi.com Fri Apr 23 11:28:36 2004 From: chizotz at mchsi.com (chizotz at mchsi.com) Date: Fri, 23 Apr 2004 16:28:36 +0000 Subject: [AccessD] OT: Extract Oracle Schema Information Message-ID: <042320041628.9114.4172@mchsi.com> I know this is pretty far afield, but I could sure use some help. Pointers to help would be great, no need for a big off-topic discussion here. Private emails also would be very welcome, either to chizotz at mchsi.com or rrallen at tribmail.com. I have a huge (ca. 400 table, 250 view) Oracle database with no schema information available. Is there a utility somewhere that can pull out the table names, datatypes, and relationships quickly for me? I've tried reverse engineering it with Visio 2003, which is great except that it is so huge that Visio just creates a very messy and densly packed mess that will still take me days or even weeks to sort out. I do _not_ have access to any Oracle tools and can not use SQL*Plus or anything like that. I can connect to this database via ODBC only. Thanks for any suggestions, Ron Allen Circulation Systems Administrator Columbia Daily Tribune 573-815-1604 rrallen at tribmail.com From Jdemarco at hudsonhealthplan.org Fri Apr 23 11:45:46 2004 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Fri, 23 Apr 2004 12:45:46 -0400 Subject: [AccessD] Quick A2K3 question Message-ID: <22F1CCD5171D17419CB37FEEE09D5F99030FE7E8@TTNEXCHSRV1.hshhp.com> Thanks. I probably should have added 2002 to my request (we're moving from A97 to 2003 shortly). Jim D. -----Original Message----- From: Charlotte Foust [mailto:cfoust at infostatsystems.com] Sent: Friday, April 23, 2004 11:31 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Quick A2K3 question I don't have it yet. My understanding is that there is almost nothing new in 2003, since it is still based on VBA6 and has no hooks to VB.net. Raising custom events came in with 2002. Charlotte Foust -----Original Message----- From: Jim DeMarco [mailto:Jdemarco at hudsonhealthplan.org] Sent: Friday, April 23, 2004 6:18 AM To: AccessD (E-mail) Subject: [AccessD] Quick A2K3 question Just a quick and easy question. What's new in advanced coding features in Access 2003? We have enums but can we raise events? Can we design and use a class as an Interface? Is there anything else from VB that might have been added? TIA, Jim DeMarco Director Application Development Hudson Health Plan ************************************************************************ *********** "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 -- _______________________________________________ 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 Patricia.O'Connor at dfa.state.ny.us Fri Apr 23 11:48:39 2004 From: Patricia.O'Connor at dfa.state.ny.us (O'Connor, Patricia ) Date: Fri, 23 Apr 2004 12:48:39 -0400 Subject: [AccessD] OT: Extract Oracle Schema Information Message-ID: Create an Access Passthru query to use the native oracle syntax for viewing Oracle database/table properties. http://tahiti.oracle.com/pls/db92/db92.drilldown?book=a96525&remark=doci ndex&expand_all=1 will give you the 9i documentation search engine - watch wrapping HTH Patti ****************************************************************** *Patricia O'Connor *Associate Computer Programmer Analyst *OTDA - BDMA *(W) mailto:Patricia.O'Connor at dfa.state.ny.us *(w) mailto:aa1160 at dfa.state.ny.us ****************************************************************** > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > chizotz at mchsi.com > Sent: Friday, April 23, 2004 12:29 PM > To: accessd at databaseadvisors.com > Subject: [AccessD] OT: Extract Oracle Schema Information > > I know this is pretty far afield, but I could sure use some > help. Pointers to help would be great, no need for a big > off-topic discussion here. Private emails also would be very > welcome, either to chizotz at mchsi.com or rrallen at tribmail.com. > > I have a huge (ca. 400 table, 250 view) Oracle database with > no schema information available. Is there a utility somewhere > that can pull out the table names, datatypes, and > relationships quickly for me? I've tried reverse engineering > it with Visio 2003, which is great except that it is so huge > that Visio just creates a very messy and densly packed mess > that will still take me days or even weeks to sort out. I do > _not_ have access to any Oracle tools and can not use > SQL*Plus or anything like that. I can connect to this > database via ODBC only. > > Thanks for any suggestions, > > Ron Allen > Circulation Systems Administrator > Columbia Daily Tribune > 573-815-1604 > rrallen at tribmail.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 Apr 23 11:48:07 2004 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 23 Apr 2004 18:48:07 +0200 Subject: [AccessD] OT: Extract Oracle Schema Information In-Reply-To: <042320041628.9114.4172@mchsi.com> References: <042320041628.9114.4172@mchsi.com> Message-ID: <3736252137.20040423184807@cactus.dk> Hi Ron Have a look at: http://www.thekompany.com/products/dataarchitect/ http://www.thekompany.com/products/dbradar/ and Dezign for databases: http://www.datanamic.com/ /gustav > I have a huge (ca. 400 table, 250 view) Oracle database with no schema > information available. Is there a utility somewhere that can pull out the > table names, datatypes, and relationships quickly for me? I've tried reverse > engineering it with Visio 2003, which is great except that it is so huge that > Visio just creates a very messy and densly packed mess that will still take me > days or even weeks to sort out. I do _not_ have access to any Oracle tools and > can not use SQL*Plus or anything like that. I can connect to this database via > ODBC only. > Thanks for any suggestions, > Ron Allen > Circulation Systems Administrator > Columbia Daily Tribune > 573-815-1604 > rrallen at tribmail.com From Patricia.O'Connor at dfa.state.ny.us Fri Apr 23 11:55:12 2004 From: Patricia.O'Connor at dfa.state.ny.us (O'Connor, Patricia ) Date: Fri, 23 Apr 2004 12:55:12 -0400 Subject: [AccessD] Quick A2K3 question Message-ID: Jim, I am in the same boat and have several A97 applications I have to bring up to 2003. I just got A2000 a little bit ago, so am upgrading them to that first. I did find that the first A97 one I tried to bring into 2003 will not even open. Keeps telling me the code is corrupt and I have decompiled and compiled the thing 3 times. My machine has A97 & 2000, So, they gave me a machine with 2000 and 2003 on it. Have NO idea what I may be missing So, let me know when you run into anything and I will gladly do the same if you would like. Patti ****************************************************************** *Patricia O'Connor *Associate Computer Programmer Analyst *OTDA - BDMA *(W) mailto:Patricia.O'Connor at dfa.state.ny.us *(w) mailto:aa1160 at dfa.state.ny.us ****************************************************************** > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco > Sent: Friday, April 23, 2004 12:46 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Quick A2K3 question > > Thanks. I probably should have added 2002 to my request > (we're moving from A97 to 2003 shortly). > > Jim D. > > -----Original Message----- > From: Charlotte Foust [mailto:cfoust at infostatsystems.com] > Sent: Friday, April 23, 2004 11:31 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Quick A2K3 question > > > I don't have it yet. My understanding is that there is > almost nothing new in 2003, since it is still based on VBA6 > and has no hooks to VB.net. > Raising custom events came in with 2002. > > Charlotte Foust > > -----Original Message----- > From: Jim DeMarco [mailto:Jdemarco at hudsonhealthplan.org] > Sent: Friday, April 23, 2004 6:18 AM > To: AccessD (E-mail) > Subject: [AccessD] Quick A2K3 question > > > Just a quick and easy question. What's new in advanced > coding features > in Access 2003? We have enums but can we raise events? Can we design > and use a class as an Interface? Is there anything else from VB that > might have been added? > > TIA, > > Jim DeMarco > Director Application Development > Hudson Health Plan > > > > > ************************************************************** > ********** > *********** > "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 > -- > _______________________________________________ > 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 > > From DWUTKA at marlow.com Fri Apr 23 12:07:33 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Fri, 23 Apr 2004 12:07:33 -0500 Subject: [AccessD] Accidentally Modified SYSTEM.MDA without Backup Message-ID: <2F8793082E00D4119A1700B0D0216BF802227B0A@main2.marlow.com> I'm sorry I didn't catch this before. There is no need to 'reinstall' your system.mdw. Click start-->Run then type wrkgadmn. That will bring up the work group administrator. Click the 'Create' button. Then simply make a new system.mdw. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Dick Abo Sent: Tuesday, April 20, 2004 1:29 PM To: accessd at databaseadvisors.com Cc: orthorabod at yahoo.com Subject: [AccessD] Accidentally Modified SYSTEM.MDA without Backup Hi All, While examining a file (chapter 14) from the CD in the Access97 ADH, I opened the change password form and although I did not enter or change passwords, I am no longer able to use any of my Access 2K files. (The old and new Passwords were blank in the dialog box.) I now get prompted with the Logon Dialog box that asks for the Administrator password, for every Access application that I attempt to use. Short of re-installing the SYSTEM.MDW from the installation CD, is there another quick way to rectify this problem? (I did not make a backup of the SYSTEM.MDW file but plan to do so from now on and my installation CD is currently unavailable.) I was previously not using the Security Workgroups feature of Access, but now it appears that I may have to.... Many thanks in advance. --------------------------------- Do you Yahoo!? Yahoo! Photos: High-quality 4x6 digital prints for 25? -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jdemarco at hudsonhealthplan.org Fri Apr 23 12:35:35 2004 From: Jdemarco at hudsonhealthplan.org (Jim DeMarco) Date: Fri, 23 Apr 2004 13:35:35 -0400 Subject: [AccessD] Quick A2K3 question Message-ID: <22F1CCD5171D17419CB37FEEE09D5F99030FE7E9@TTNEXCHSRV1.hshhp.com> Patti, Thanks. I'd be glad to keep everyone posted. So far the only issues we've had are with the security warnings ("unsafe expressions not blocked"). Jim D. -----Original Message----- From: O'Connor, Patricia [mailto:Patricia.O'Connor at dfa.state.ny.us] Sent: Friday, April 23, 2004 12:55 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Quick A2K3 question Jim, I am in the same boat and have several A97 applications I have to bring up to 2003. I just got A2000 a little bit ago, so am upgrading them to that first. I did find that the first A97 one I tried to bring into 2003 will not even open. Keeps telling me the code is corrupt and I have decompiled and compiled the thing 3 times. My machine has A97 & 2000, So, they gave me a machine with 2000 and 2003 on it. Have NO idea what I may be missing So, let me know when you run into anything and I will gladly do the same if you would like. Patti ****************************************************************** *Patricia O'Connor *Associate Computer Programmer Analyst *OTDA - BDMA *(W) mailto:Patricia.O'Connor at dfa.state.ny.us *(w) mailto:aa1160 at dfa.state.ny.us ****************************************************************** > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco > Sent: Friday, April 23, 2004 12:46 PM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Quick A2K3 question > > Thanks. I probably should have added 2002 to my request > (we're moving from A97 to 2003 shortly). > > Jim D. > > -----Original Message----- > From: Charlotte Foust [mailto:cfoust at infostatsystems.com] > Sent: Friday, April 23, 2004 11:31 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Quick A2K3 question > > > I don't have it yet. My understanding is that there is > almost nothing new in 2003, since it is still based on VBA6 > and has no hooks to VB.net. > Raising custom events came in with 2002. > > Charlotte Foust > > -----Original Message----- > From: Jim DeMarco [mailto:Jdemarco at hudsonhealthplan.org] > Sent: Friday, April 23, 2004 6:18 AM > To: AccessD (E-mail) > Subject: [AccessD] Quick A2K3 question > > > Just a quick and easy question. What's new in advanced > coding features > in Access 2003? We have enums but can we raise events? Can we design > and use a class as an Interface? Is there anything else from VB that > might have been added? > > TIA, > > Jim DeMarco > Director Application Development > Hudson Health Plan > > > > > ************************************************************** > ********** > *********** > "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 > -- > _______________________________________________ > 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 > > -- _______________________________________________ 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 martyconnelly at shaw.ca Fri Apr 23 13:06:49 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 23 Apr 2004 11:06:49 -0700 Subject: [AccessD] OT: Extract Oracle Schema Information References: <042320041628.9114.4172@mchsi.com> Message-ID: <40895B39.4030109@shaw.ca> You could try one of these UML modeling tools to reverse engineer Oracle, Does SQL and Access as well They both have 30 day trials and are reasonably priced under $500. I have used EA only for looks at large Access databases to workout ER diagrams Enterprise Architect http://www.sparxsystems.com.au/ea_faq.htm or Case Studio 2 http://www.casestudio.com/enu/ chizotz at mchsi.com wrote: >I know this is pretty far afield, but I could sure use some help. Pointers to >help would be great, no need for a big off-topic discussion here. Private >emails also would be very welcome, either to chizotz at mchsi.com or >rrallen at tribmail.com. > >I have a huge (ca. 400 table, 250 view) Oracle database with no schema >information available. Is there a utility somewhere that can pull out the >table names, datatypes, and relationships quickly for me? I've tried reverse >engineering it with Visio 2003, which is great except that it is so huge that >Visio just creates a very messy and densly packed mess that will still take me >days or even weeks to sort out. I do _not_ have access to any Oracle tools and >can not use SQL*Plus or anything like that. I can connect to this database via >ODBC only. > >Thanks for any suggestions, > >Ron Allen >Circulation Systems Administrator >Columbia Daily Tribune >573-815-1604 >rrallen at tribmail.com > > -- Marty Connelly Victoria, B.C. Canada From KIsmert at TexasSystems.com Fri Apr 23 13:23:17 2004 From: KIsmert at TexasSystems.com (Ken Ismert) Date: Fri, 23 Apr 2004 13:23:17 -0500 Subject: [AccessD] VB6 DLL Help Required In-Reply-To: <28557687.1082707352738.JavaMail.www@wwinf3003> Message-ID: <000001c42960$0d648ff0$2a3ca8c0@TEXASSYSTEMS.COM> > This is the code I used for my DLL OK, that looks good. But, how are you using your DLL on the client side? You can either use a Declare statement to define your SendMail call, or you can register your DLL as a COM component and use it as an object. For the latter to work, you will need to do one of two things: A. Define a callback interface to pass to your SendMail function. This would require a PublicNotCreatable class in your DLL that defines the 'events' you want to send back to the caller. B. Convert your SendMail function to a class with its own events. Your SendMail class would trap the vbSendMail events and re-raise them to your client. The client would create, use and destroy your SendMail object just like any other. Do either of these options appeal to you? -Ken From martyconnelly at shaw.ca Fri Apr 23 13:54:25 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 23 Apr 2004 11:54:25 -0700 Subject: [AccessD] Quick A2K3 question References: <22F1CCD5171D17419CB37FEEE09D5F99030FE7E9@TTNEXCHSRV1.hshhp.com> Message-ID: <40896661.9060509@shaw.ca> Some changes for Access 2003 to note Unsafe Expressions - Macro Security In Access 2003 Author: Garry Robinson Need for Jet SP 8 install especially for known security exploits. http://www.vb123.com/toolshed/03_access/unsafeExpressions.htm Best Practices When Using Microsoft Office Access 2003 in a Multi-user Environment http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odc_ac2003_ta/html/odc_acmultibest.asp Using the XML Features of the Microsoft Office Access 2003 and Microsoft Office Excel 2003 Object Models also covers Export an Access Report to XML using ReportML http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dno2k3ta/html/odc_acxlom.asp Importing and Exporting XSD Data in Microsoft Office Access 2003 http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odc_ac2003_ta/html/odc_acmultibest.asp Code Signing Office XP Visual Basic for Applications Macro Projects http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnoxpta/html/odc_dsvba.asp The Definitive "Hello World" Managed Smart Document Tutorial http://www.msdn.microsoft.com/library/default.asp?url=/library/en-us/dnofftalk/html/office09042003.asp Build with Access 2003 Developer Extensions Packaging Wizard http://msdn.microsoft.com/office/technologyinfo/devtools/accessextensions/default.aspx Office 2003 Security Enhancements http://www.microsoft.com/technet/prodtechnol/office/office2003/deploy/secdesn.mspx watch the little darlings out there don't start using this willy nilly Information Rights Management in Office Professional Edition 2003 http://www.microsoft.com/office/editions/prodinfo/technologies/irm.mspx Jim DeMarco wrote: >Patti, > >Thanks. I'd be glad to keep everyone posted. So far the only issues we've had are with the security warnings ("unsafe expressions not blocked"). > >Jim D. > >-----Original Message----- >From: O'Connor, Patricia [mailto:Patricia.O'Connor at dfa.state.ny.us] >Sent: Friday, April 23, 2004 12:55 PM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] Quick A2K3 question > > >Jim, > >I am in the same boat and have several A97 applications I have to bring >up to 2003. I just got A2000 a little bit ago, so am upgrading them to >that first. > >I did find that the first A97 one I tried to bring into 2003 will not >even open. Keeps telling me the code is corrupt and I have decompiled >and compiled the thing 3 times. My machine has A97 & 2000, So, they gave >me a machine with 2000 and 2003 on it. > >Have NO idea what I may be missing > >So, let me know when you run into anything and I will gladly do the same >if you would like. > >Patti > >****************************************************************** >*Patricia O'Connor >*Associate Computer Programmer Analyst >*OTDA - BDMA >*(W) mailto:Patricia.O'Connor at dfa.state.ny.us >*(w) mailto:aa1160 at dfa.state.ny.us >****************************************************************** > > > > >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco >>Sent: Friday, April 23, 2004 12:46 PM >>To: Access Developers discussion and problem solving >>Subject: RE: [AccessD] Quick A2K3 question >> >>Thanks. I probably should have added 2002 to my request >>(we're moving from A97 to 2003 shortly). >> >>Jim D. >> >>-----Original Message----- >>From: Charlotte Foust [mailto:cfoust at infostatsystems.com] >>Sent: Friday, April 23, 2004 11:31 AM >>To: Access Developers discussion and problem solving >>Subject: RE: [AccessD] Quick A2K3 question >> >> >>I don't have it yet. My understanding is that there is >>almost nothing new in 2003, since it is still based on VBA6 >>and has no hooks to VB.net. >>Raising custom events came in with 2002. >> >>Charlotte Foust >> >>-----Original Message----- >>From: Jim DeMarco [mailto:Jdemarco at hudsonhealthplan.org] >>Sent: Friday, April 23, 2004 6:18 AM >>To: AccessD (E-mail) >>Subject: [AccessD] Quick A2K3 question >> >> >>Just a quick and easy question. What's new in advanced >>coding features >>in Access 2003? We have enums but can we raise events? Can we design >>and use a class as an Interface? Is there anything else from VB that >>might have been added? >> >>TIA, >> >>Jim DeMarco >>Director Application Development >>Hudson Health Plan >> >> >> >> >>************************************************************** >>********** >>*********** >>"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 >>-- >>_______________________________________________ >>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 >> >> >> >> -- Marty Connelly Victoria, B.C. Canada From Developer at UltraDNT.com Fri Apr 23 14:09:55 2004 From: Developer at UltraDNT.com (Developer) Date: Fri, 23 Apr 2004 15:09:55 -0400 Subject: [AccessD] Quick A2K3 question In-Reply-To: <40896661.9060509@shaw.ca> Message-ID: <000a01c42966$93e8b140$6401a8c0@COA3> And on a lighter, but positive note, those of us nearing 40 appreciate that the font size in SQL view of the query designer is now adjustable to a larger size in 2k3. Steve -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Friday, April 23, 2004 2:54 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Quick A2K3 question Some changes for Access 2003 to note Unsafe Expressions - Macro Security In Access 2003 Author: Garry Robinson Need for Jet SP 8 install especially for known security exploits. http://www.vb123.com/toolshed/03_access/unsafeExpressions.htm Best Practices When Using Microsoft Office Access 2003 in a Multi-user Environment http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odc_ac2 003_ta/html/odc_acmultibest.asp Using the XML Features of the Microsoft Office Access 2003 and Microsoft Office Excel 2003 Object Models also covers Export an Access Report to XML using ReportML http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dno2k3t a/html/odc_acxlom.asp Importing and Exporting XSD Data in Microsoft Office Access 2003 http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odc_ac2 003_ta/html/odc_acmultibest.asp Code Signing Office XP Visual Basic for Applications Macro Projects http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnoxpta /html/odc_dsvba.asp The Definitive "Hello World" Managed Smart Document Tutorial http://www.msdn.microsoft.com/library/default.asp?url=/library/en-us/dno fftalk/html/office09042003.asp Build with Access 2003 Developer Extensions Packaging Wizard http://msdn.microsoft.com/office/technologyinfo/devtools/accessextension s/default.aspx Office 2003 Security Enhancements http://www.microsoft.com/technet/prodtechnol/office/office2003/deploy/se cdesn.mspx watch the little darlings out there don't start using this willy nilly Information Rights Management in Office Professional Edition 2003 http://www.microsoft.com/office/editions/prodinfo/technologies/irm.mspx Jim DeMarco wrote: >Patti, > >Thanks. I'd be glad to keep everyone posted. So far the only issues >we've had are with the security warnings ("unsafe expressions not >blocked"). > >Jim D. > >-----Original Message----- >From: O'Connor, Patricia [mailto:Patricia.O'Connor at dfa.state.ny.us] >Sent: Friday, April 23, 2004 12:55 PM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] Quick A2K3 question > > >Jim, > >I am in the same boat and have several A97 applications I have to bring >up to 2003. I just got A2000 a little bit ago, so am upgrading them to >that first. > >I did find that the first A97 one I tried to bring into 2003 will not >even open. Keeps telling me the code is corrupt and I have decompiled >and compiled the thing 3 times. My machine has A97 & 2000, So, they >gave me a machine with 2000 and 2003 on it. > >Have NO idea what I may be missing > >So, let me know when you run into anything and I will gladly do the >same if you would like. > >Patti > >****************************************************************** >*Patricia O'Connor >*Associate Computer Programmer Analyst >*OTDA - BDMA >*(W) mailto:Patricia.O'Connor at dfa.state.ny.us >*(w) mailto:aa1160 at dfa.state.ny.us >****************************************************************** > > > > >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim DeMarco >>Sent: Friday, April 23, 2004 12:46 PM >>To: Access Developers discussion and problem solving >>Subject: RE: [AccessD] Quick A2K3 question >> >>Thanks. I probably should have added 2002 to my request >>(we're moving from A97 to 2003 shortly). >> >>Jim D. >> >>-----Original Message----- >>From: Charlotte Foust [mailto:cfoust at infostatsystems.com] >>Sent: Friday, April 23, 2004 11:31 AM >>To: Access Developers discussion and problem solving >>Subject: RE: [AccessD] Quick A2K3 question >> >> >>I don't have it yet. My understanding is that there is >>almost nothing new in 2003, since it is still based on VBA6 >>and has no hooks to VB.net. >>Raising custom events came in with 2002. >> >>Charlotte Foust >> >>-----Original Message----- >>From: Jim DeMarco [mailto:Jdemarco at hudsonhealthplan.org] >>Sent: Friday, April 23, 2004 6:18 AM >>To: AccessD (E-mail) >>Subject: [AccessD] Quick A2K3 question >> >> >>Just a quick and easy question. What's new in advanced >>coding features >>in Access 2003? We have enums but can we raise events? Can we design >>and use a class as an Interface? Is there anything else from VB that >>might have been added? >> >>TIA, >> >>Jim DeMarco >>Director Application Development >>Hudson Health Plan >> >> >> >> >>************************************************************** >>********** >>*********** >>"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 >>-- >>_______________________________________________ >>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 >> >> >> >> -- 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 MarkBoyd at McBeeAssociates.com Fri Apr 23 14:55:44 2004 From: MarkBoyd at McBeeAssociates.com (Mark Boyd) Date: Fri, 23 Apr 2004 15:55:44 -0400 Subject: [AccessD] AfterUpdate not working Message-ID: This is very strange. I have code in the After_Update event of a text box. If I type something into the box, then tab out, the code does not fire. If I go back into the textbox and re-type something and tab, then code fires. But, if I put a breakpoint in the code, it hits it everytime. Any ideas? Thanks, Mark Boyd Sr. Systems Analyst McBee Associates, Inc. From Stephen.Pickering at caremark.com Fri Apr 23 15:48:21 2004 From: Stephen.Pickering at caremark.com (Pickering, Stephen) Date: Fri, 23 Apr 2004 15:48:21 -0500 Subject: [AccessD] AfterUpdate not working Message-ID: Are you using On Error Resume Next in your error handler? Just a thought.... Steve -----Mark Boyd's Original Message----- This is very strange. I have code in the After_Update event of a text box. If I type something into the box, then tab out, the code does not fire. If I go back into the textbox and re-type something and tab, then code fires. But, if I put a breakpoint in the code, it hits it everytime. Any ideas? Thanks, Mark Boyd Sr. Systems Analyst McBee Associates, Inc. From MarkBoyd at McBeeAssociates.com Fri Apr 23 15:52:02 2004 From: MarkBoyd at McBeeAssociates.com (Mark Boyd) Date: Fri, 23 Apr 2004 16:52:02 -0400 Subject: [AccessD] AfterUpdate not working Message-ID: No, its doesn't resume next. I think I'm gonna re-create the form. There may be something corrupt within it. Thanks, Mark -----Original Message----- From: Pickering, Stephen [mailto:Stephen.Pickering at caremark.com] Sent: Friday, April 23, 2004 4:48 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] AfterUpdate not working Are you using On Error Resume Next in your error handler? Just a thought.... Steve -----Mark Boyd's Original Message----- This is very strange. I have code in the After_Update event of a text box. If I type something into the box, then tab out, the code does not fire. If I go back into the textbox and re-type something and tab, then code fires. But, if I put a breakpoint in the code, it hits it everytime. Any ideas? Thanks, Mark Boyd Sr. Systems Analyst McBee Associates, Inc. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From bchacc at san.rr.com Sat Apr 24 00:58:47 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Fri, 23 Apr 2004 22:58:47 -0700 Subject: [AccessD] A2K MDE on A2002 Message-ID: <025d01c429c1$35f78f60$6601a8c0@HAL9002> Dear List: I had a client call this morning installing a system at a customer site. He took the mdb which was created in A2000, made an mde in A2000, then put that mde on the customer's machine which was running A2002. It failed on opening the first form with an error that indicated either a compile error or a missing reference. So I had him put the A2000 mdb on the A2002 machine. Compiled fine. No missing references. But the 'Make an MDE' button was grayed out. So I had him convert this A2000 MDB to A2003. Then he could make an MDE and it ran just fine. So is it the case that an A2000 MDE will not run on A2002 (or A2003)? MTIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com From gustav at cactus.dk Sat Apr 24 04:49:30 2004 From: gustav at cactus.dk (Gustav Brock) Date: Sat, 24 Apr 2004 11:49:30 +0200 Subject: [AccessD] Quick A2K3 question In-Reply-To: <000a01c42966$93e8b140$6401a8c0@COA3> References: <000a01c42966$93e8b140$6401a8c0@COA3> Message-ID: <1606658304.20040424114930@cactus.dk> Hi Steve > And on a lighter, but positive note, those of us nearing 40 appreciate > that the font size in SQL view of the query designer is now adjustable > to a larger size in 2k3. Strange, I can easily match that qualification, but I adjusted it down and to normal ... /gustav From mwp.reid at qub.ac.uk Sat Apr 24 06:24:54 2004 From: mwp.reid at qub.ac.uk (Martin Reid) Date: Sat, 24 Apr 2004 12:24:54 +0100 Subject: [AccessD] OT SQL Server References: <000a01c42966$93e8b140$6401a8c0@COA3> <1606658304.20040424114930@cactus.dk> Message-ID: <003301c429ee$c63df140$1b02a8c0@MARTINREID> This is going to make me look stupid again (<: Does a Unique Constraint equate to a non clustered index?? In the table properties for an upsized table the index property shows a unique constraint. When I get out the table using the following I get an indication of a non clustered index. DBCC TRACEON (3604) GO Declare @DBID Int, @TableID Int Select @DBID = db_id(), @TableID = object_id('testtable') DBCC ind(@DBID, @TableID, -1) GO All the documentation says a non clustered index is created. But if the wizard creates a unique constraint as opposed to a non clustered index this I need to know. Or is this the same thing??? Any comments appreciated. Martin From jwcolby at colbyconsulting.com Sat Apr 24 07:19:03 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sat, 24 Apr 2004 08:19:03 -0400 Subject: [AccessD] A2K MDE on A2002 In-Reply-To: <025d01c429c1$35f78f60$6601a8c0@HAL9002> Message-ID: Rocky, I think that this is exactly what is going on. I use a lib as you know. At one client I have a mix of systems running A2K, AXP and A2003. I develop in A2K. The non A2K systems REQUIRE a recompile of the lib AND the MDB that uses the lib before they will run. I get a page fault otherwise. I do know that AXP and above install a new version of VB6. It appears that this new DLL "breaks" the A2K apps. Recompiling with AXP uses that VB6 DLL and "fixes" whatever the problem is. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - Beach Access Software Sent: Saturday, April 24, 2004 1:59 AM To: AccessD at databaseadvisors.com Subject: [AccessD] A2K MDE on A2002 Dear List: I had a client call this morning installing a system at a customer site. He took the mdb which was created in A2000, made an mde in A2000, then put that mde on the customer's machine which was running A2002. It failed on opening the first form with an error that indicated either a compile error or a missing reference. So I had him put the A2000 mdb on the A2002 machine. Compiled fine. No missing references. But the 'Make an MDE' button was grayed out. So I had him convert this A2000 MDB to A2003. Then he could make an MDE and it ran just fine. So is it the case that an A2000 MDE will not run on A2002 (or A2003)? MTIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From HollisVJ at pgdp.usec.com Sat Apr 24 07:41:50 2004 From: HollisVJ at pgdp.usec.com (Hollis,Virginia) Date: Sat, 24 Apr 2004 07:41:50 -0500 Subject: [AccessD] Zip + 4 + foreign phones Message-ID: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D678@cntexchange.pgdp.usec.com> Does anyone have the Zip Codes with the + 4? I have a table with 54,000 zip codes - but the user wants the +4. Also, I know there has been a lot of messages over the years about foreign (other countries besides US) phone numbers. This is the first time I have had to use foreign numbers. How are they formatted? Oh, which makes me think - are foreign zip codes different too? Does anyone have a table with foreign zip codes too? Virginia From gustav at cactus.dk Sat Apr 24 07:51:27 2004 From: gustav at cactus.dk (Gustav Brock) Date: Sat, 24 Apr 2004 14:51:27 +0200 Subject: [AccessD] Zip + 4 + foreign phones In-Reply-To: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D678@cntexchange.pgdp.usec.com> References: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D678@cntexchange.pgdp.usec.com> Message-ID: <8317575291.20040424145127@cactus.dk> Hi Virginia Go to Graham Rhind's site and research the links: http://www.grcdi.nl/ This will easily keep you busy for a week or so! /gustav > Does anyone have the Zip Codes with the + 4? I have a table with 54,000 zip > codes - but the user wants the +4. > Also, I know there has been a lot of messages over the years about foreign > (other countries besides US) phone numbers. This is the first time I have > had to use foreign numbers. How are they formatted? > Oh, which makes me think - are foreign zip codes different too? Does anyone > have a table with foreign zip codes too? > Virginia From wdhindman at bellsouth.net Sat Apr 24 07:54:06 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Sat, 24 Apr 2004 08:54:06 -0400 Subject: [AccessD] Zip + 4 + foreign phones References: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D678@cntexchange.pgdp.usec.com> Message-ID: <001901c429fb$3a5bee90$6101a8c0@dejpolsys> ...foreign numbers and postal codes vary tremendously, often even within the same country ...the only solution I've found is to code for country/region individually. William Hindman "Always code as if the person who is maintaining or testing your code is a violent psychopath who knows where you live." William Silverstein ----- Original Message ----- From: "Hollis,Virginia" To: Sent: Saturday, April 24, 2004 8:41 AM Subject: [AccessD] Zip + 4 + foreign phones > Does anyone have the Zip Codes with the + 4? I have a table with 54,000 zip > codes - but the user wants the +4. > > Also, I know there has been a lot of messages over the years about foreign > (other countries besides US) phone numbers. This is the first time I have > had to use foreign numbers. How are they formatted? > > Oh, which makes me think - are foreign zip codes different too? Does anyone > have a table with foreign zip codes too? > > Virginia > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From billmorrill at comcast.net Sat Apr 24 08:42:36 2004 From: billmorrill at comcast.net (Bill Morrill) Date: Sat, 24 Apr 2004 07:42:36 -0600 Subject: [Accessd] Running a report each Wednesday at 10:00 am Message-ID: <000201c42a02$a90736e0$21170818@Morrill> Anybody point me in a direction here? How does one run an A2K report once a week -say on Wednesday at 10:00AM - without human intervention? Access will be up and running in a particular database, in a particular form when the time trigger is go off. Thank you. Bill From scapistrant at symphonyinfo.com Sat Apr 24 08:49:23 2004 From: scapistrant at symphonyinfo.com (Steve Capistrant) Date: Sat, 24 Apr 2004 08:49:23 -0500 Subject: [AccessD] Calendar Controls -- just for discussion In-Reply-To: <2F8793082E00D4119A1700B0D0216BF802227AE0@main2.marlow.com> Message-ID: Drew, is it still possible to get a copy of your OLD version in the meantime? Steve Capistrant Symphony Information Services scapistrant at symphonyinfo.com www.symphonyinfo.com Phone: 763-391-7400 7308 Aspen Lane North, Suite 132, Brooklyn Park, MN 55428 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DWUTKA at marlow.com Sent: Monday, April 19, 2004 9:48 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Calendar Controls -- just for discussion You're quite welcome. As soon as life settles down, I'll finish up the new version. Which is keyboard friendly too! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey Sent: Sunday, April 18, 2004 5:01 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Calendar Controls -- just for discussion > I use a modified version of Drew's old mini-calendar which is all VBA, dead reliable, and very fast. Ditto (and thanks to Drew) -- Andy Lacey http://www.minstersystems.co.uk From jmoss111 at bellsouth.net Sat Apr 24 09:43:25 2004 From: jmoss111 at bellsouth.net (JMoss) Date: Sat, 24 Apr 2004 09:43:25 -0500 Subject: [AccessD] Zip + 4 + foreign phones In-Reply-To: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D678@cntexchange.pgdp.usec.com> Message-ID: The USPS has the total database and you can subscribe to it. Several companies have such a US/CA product + address correction, FIPS codes and NCOA registry service, I'm not sure of the pricing but it's not cheap. I use to work for a CRM company and we used PostalSoft to aid in client's direct mail advertising. We didn't do anything but North American mailing, so I have no idea about vendors of foreign postal service software. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Hollis,Virginia Sent: Saturday, April 24, 2004 7:42 AM To: 'accessD at databaseadvisors.com' Subject: [AccessD] Zip + 4 + foreign phones Does anyone have the Zip Codes with the + 4? I have a table with 54,000 zip codes - but the user wants the +4. Also, I know there has been a lot of messages over the years about foreign (other countries besides US) phone numbers. This is the first time I have had to use foreign numbers. How are they formatted? Oh, which makes me think - are foreign zip codes different too? Does anyone have a table with foreign zip codes too? Virginia -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Sat Apr 24 10:13:04 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sat, 24 Apr 2004 11:13:04 -0400 Subject: [AccessD] Zip + 4 + foreign phones In-Reply-To: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D678@cntexchange.pgdp.usec.com> Message-ID: >This is the first time I have had to use foreign numbers. How are they formatted? Any way they want to! John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Hollis,Virginia Sent: Saturday, April 24, 2004 8:42 AM To: 'accessD at databaseadvisors.com' Subject: [AccessD] Zip + 4 + foreign phones Does anyone have the Zip Codes with the + 4? I have a table with 54,000 zip codes - but the user wants the +4. Also, I know there has been a lot of messages over the years about foreign (other countries besides US) phone numbers. This is the first time I have had to use foreign numbers. How are they formatted? Oh, which makes me think - are foreign zip codes different too? Does anyone have a table with foreign zip codes too? Virginia -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Sat Apr 24 11:07:20 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Sat, 24 Apr 2004 09:07:20 -0700 Subject: [AccessD] A2K MDE on A2002 In-Reply-To: <025d01c429c1$35f78f60$6601a8c0@HAL9002> Message-ID: Hi Rocky: I have found that you have to recompile and reattach the references so you can migrate an application to XP on XP O/S. That is why you have a number of computers in your shop all running different versions of Windows.... Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - Beach Access Software Sent: Friday, April 23, 2004 10:59 PM To: AccessD at databaseadvisors.com Subject: [AccessD] A2K MDE on A2002 Dear List: I had a client call this morning installing a system at a customer site. He took the mdb which was created in A2000, made an mde in A2000, then put that mde on the customer's machine which was running A2002. It failed on opening the first form with an error that indicated either a compile error or a missing reference. So I had him put the A2000 mdb on the A2002 machine. Compiled fine. No missing references. But the 'Make an MDE' button was grayed out. So I had him convert this A2000 MDB to A2003. Then he could make an MDE and it ran just fine. So is it the case that an A2000 MDE will not run on A2002 (or A2003)? MTIA Rocky Smolin Beach Access Software http://www.e-z-mrp.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 Sat Apr 24 11:16:44 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Sat, 24 Apr 2004 17:16:44 +0100 Subject: [AccessD] Zip + 4 + foreign phones In-Reply-To: Message-ID: <003601c42a17$890f1d20$b274d0d5@minster33c3r25> > Any way they want to! ROTFL And regarding: > are foreign zip codes different too Oddly enough Virginia all of us foreign countries haven't decided to adopt US zip code formats any more than we've come into line with US phone numbers. Damned inconsiderate I know but there are nearly 200 of us (countries that is) and it's a tad tricky getting agreement. ;-) In fact 'foreign zip codes' is a bit of an oxymoron because I don't know how many countries even use that term. I believe the generic term is postal code. -- Andy Lacey http://www.minstersystems.co.uk > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > John W. Colby > Sent: 24 April 2004 16:13 > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] Zip + 4 + foreign phones > > > >This is the first time I have had to use foreign numbers. > How are they > formatted? > > Any way they want to! > > John W. Colby > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of > Hollis,Virginia > Sent: Saturday, April 24, 2004 8:42 AM > To: 'accessD at databaseadvisors.com' > Subject: [AccessD] Zip + 4 + foreign phones > > > Does anyone have the Zip Codes with the + 4? I have a table > with 54,000 zip codes - but the user wants the +4. > > Also, I know there has been a lot of messages over the years > about foreign (other countries besides US) phone numbers. > This is the first time I have had to use foreign numbers. How > are they formatted? > > Oh, which makes me think - are foreign zip codes different > too? Does anyone have a table with foreign zip codes too? > > Virginia > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > > > -- > > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/a> ccessd > Website: > http://www.databaseadvisors.com > > From chizotz at mchsi.com Sat Apr 24 13:26:36 2004 From: chizotz at mchsi.com (Ron Allen) Date: Sat, 24 Apr 2004 13:26:36 -0500 Subject: [AccessD] OT: Extract Oracle Schema Information In-Reply-To: <40895B39.4030109@shaw.ca> References: <042320041628.9114.4172@mchsi.com> <40895B39.4030109@shaw.ca> Message-ID: <72800818.20040424132636@mchsi.com> Thanks Gustav, Patricai, and Marty. I'll look into your suggestions Monday :) Ron From Developer at UltraDNT.com Sat Apr 24 13:53:15 2004 From: Developer at UltraDNT.com (Developer) Date: Sat, 24 Apr 2004 14:53:15 -0400 Subject: [AccessD] Quick A2K3 question In-Reply-To: <1606658304.20040424114930@cactus.dk> Message-ID: <000201c42a2d$6f2a3af0$6401a8c0@COA3> Down? From 8 pts? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Saturday, April 24, 2004 5:50 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Quick A2K3 question Hi Steve > And on a lighter, but positive note, those of us nearing 40 appreciate > that the font size in SQL view of the query designer is now adjustable > to a larger size in 2k3. Strange, I can easily match that qualification, but I adjusted it down and to normal ... /gustav -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From gustav at cactus.dk Sat Apr 24 14:02:54 2004 From: gustav at cactus.dk (Gustav Brock) Date: Sat, 24 Apr 2004 21:02:54 +0200 Subject: [AccessD] Quick A2K3 question In-Reply-To: <000201c42a2d$6f2a3af0$6401a8c0@COA3> References: <000201c42a2d$6f2a3af0$6401a8c0@COA3> Message-ID: <14439861658.20040424210254@cactus.dk> Hi Steve > Down? From 8 pts? Ahh, no, down relative to the old fixed setting. /gustav > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Saturday, April 24, 2004 5:50 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Quick A2K3 question > Hi Steve >> And on a lighter, but positive note, those of us nearing 40 appreciate >> that the font size in SQL view of the query designer is now adjustable >> to a larger size in 2k3. > Strange, I can easily match that qualification, but I adjusted it down > and to normal ... From Developer at UltraDNT.com Sat Apr 24 14:23:50 2004 From: Developer at UltraDNT.com (Developer) Date: Sat, 24 Apr 2004 15:23:50 -0400 Subject: [AccessD] Quick A2K3 question In-Reply-To: <14439861658.20040424210254@cactus.dk> Message-ID: <000301c42a31$b7ce9630$6401a8c0@COA3> Hmmm.. You must be talking about 97's fixed size which was legible ... Take a look a 2k2's TINY sql view LOL -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Saturday, April 24, 2004 3:03 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Quick A2K3 question Hi Steve > Down? From 8 pts? Ahh, no, down relative to the old fixed setting. /gustav > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav > Brock > Sent: Saturday, April 24, 2004 5:50 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Quick A2K3 question > Hi Steve >> And on a lighter, but positive note, those of us nearing 40 >> appreciate >> that the font size in SQL view of the query designer is now >> adjustable >> to a larger size in 2k3. > Strange, I can easily match that qualification, but I adjusted it down > and to normal ... -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Sat Apr 24 18:35:45 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sun, 25 Apr 2004 09:35:45 +1000 Subject: [Accessd] Running a report each Wednesday at 10:00 am In-Reply-To: <000201c42a02$a90736e0$21170818@Morrill> Message-ID: <408B8671.31045.16737F@localhost> On 24 Apr 2004 at 7:42, Bill Morrill wrote: > Anybody point me in a direction here? How does one run an A2K report > once a week -say on Wednesday at 10:00AM - without human intervention? > Access will be up and running in a particular database, in a > particular form when the time trigger is go off. > The best way is to NOT rely on the Access application being up and running. (One day someone *will* close it down or it will crash). I have several Access apps which run unattended (they generate and email reports in the early hours of the morning). They way I do it is create a function in an mdb file to print the report(s), email it or whatever followed by a Quit command. Then I call that function as the argument of an Autoexec macro. FInally I use a task scheduler which opens the application at the appropriate time. (The built-in MS scheduler or the AT command works fine for this) -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From jmhla at earthlink.net Sat Apr 24 19:54:14 2004 From: jmhla at earthlink.net (Joe Hecht) Date: Sat, 24 Apr 2004 17:54:14 -0700 Subject: [AccessD] cbo after adding data question solved In-Reply-To: <20040420091903.C4D9D2537F4@smtp.nildram.co.uk> Message-ID: <000c01c42a5f$d47e6750$6501a8c0@delllaptop> It is the cbo.requery that I needed. Thanks JOE HECHT LOS ANGELES CA -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey Sent: Tuesday, April 20, 2004 3:19 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] cbo after adding data question Hi Joe If you have one or two places on the form which can add/alter records and therefore require the cbo to be requeried then just add: me!cboWhatever.Requery at the end of those routines. Alternatively, and as long as it doesn't cause too much of an overhead, you can place: me.ActiveControl.Requery in the OnGotFocus of the combo itself. You may do more requeries than are strictly necessary this way, but it pretty much ensures that the combo sees everything it should. -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: AccessD Subject: [AccessD] cbo after adding data question Date: 20/04/04 06:53 > > I have a combo box that pulls up matching records on a form. The data source > is a SQL statement not a query. > > > > After the record is entered where and how should I write the requry > statement to add the record to the combo box? > > > > JOE HECHT > > LOS ANGELES CA > > > > -- > _______________________________________________ > 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 jwcolby at colbyconsulting.com Sat Apr 24 20:20:19 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sat, 24 Apr 2004 21:20:19 -0400 Subject: [Accessd] Running a report each Wednesday at 10:00 am In-Reply-To: <408B8671.31045.16737F@localhost> Message-ID: Does the scheduler require a login? JWC -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stuart McLachlan Sent: Saturday, April 24, 2004 7:36 PM To: Access Developers discussion and problemsolving Subject: Re: [Accessd] Running a report each Wednesday at 10:00 am On 24 Apr 2004 at 7:42, Bill Morrill wrote: > Anybody point me in a direction here? How does one run an A2K report > once a week -say on Wednesday at 10:00AM - without human intervention? > Access will be up and running in a particular database, in a > particular form when the time trigger is go off. > The best way is to NOT rely on the Access application being up and running. (One day someone *will* close it down or it will crash). I have several Access apps which run unattended (they generate and email reports in the early hours of the morning). They way I do it is create a function in an mdb file to print the report(s), email it or whatever followed by a Quit command. Then I call that function as the argument of an Autoexec macro. FInally I use a task scheduler which opens the application at the appropriate time. (The built-in MS scheduler or the AT command works fine for this) -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From martyconnelly at shaw.ca Sun Apr 25 02:27:16 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Sun, 25 Apr 2004 00:27:16 -0700 Subject: [AccessD] Zip + 4 + foreign phones References: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D678@cntexchange.pgdp.usec.com> Message-ID: <408B6854.8080407@shaw.ca> Starting point for International Addressing http://www.upu.int/post_code/en/looking_information.html http://www.upu.int/post_code/en/international_addressing.shtml International Software 10 CD-ROMS http://www.addressdoctor.com/en/FrameFile.asp?2-3+products/developers.htm USPS online webService zip code lookup http://www.usps.com/webtools/htm/Address-Information.htm 'canada("H0H 0H0") 'Santa Claus' zipcode or H0H-0H0 'British Postal code similar but extra digit Function canada(txt) As Boolean 'verify Canada Postal Code also a couple of letters not used, first letter is Province V=BC Dim i As Integer Dim compare As Variant For i = 1 To Len(txt) - 6 compare = Mid(txt, i, 7) MsgBox compare If compare Like "*[a-z]#[a-z] #[a-z]#*" Then canada = True Else canada = False End If Next End Function Foriegn phone numbers generally are 1-3 digit country code then 1-4 digit city code (in US area code) then 4-6 digit number The US Canada country code just happens to be 1 extra prefix digits are added in each country to get an international line or extra city line Hollis,Virginia wrote: >Does anyone have the Zip Codes with the + 4? I have a table with 54,000 zip >codes - but the user wants the +4. > >Also, I know there has been a lot of messages over the years about foreign >(other countries besides US) phone numbers. This is the first time I have >had to use foreign numbers. How are they formatted? > >Oh, which makes me think - are foreign zip codes different too? Does anyone >have a table with foreign zip codes too? > >Virginia > > -- Marty Connelly Victoria, B.C. Canada From gustav at cactus.dk Sun Apr 25 02:44:56 2004 From: gustav at cactus.dk (Gustav Brock) Date: Sun, 25 Apr 2004 09:44:56 +0200 Subject: [AccessD] Quick A2K3 question In-Reply-To: <000301c42a31$b7ce9630$6401a8c0@COA3> References: <000301c42a31$b7ce9630$6401a8c0@COA3> Message-ID: <1076574273.20040425094456@cactus.dk> Hi Steve > Hmmm.. You must be talking about 97's fixed size which was legible ... Yes. > Take a look a 2k2's TINY sql view LOL In fact, that's what I prefer - except for the Courier font. /gustav >> Down? From 8 pts? > Ahh, no, down relative to the old fixed setting. > /gustav >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav >> Brock >> Sent: Saturday, April 24, 2004 5:50 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Quick A2K3 question >> Hi Steve >>> And on a lighter, but positive note, those of us nearing 40 >>> appreciate >>> that the font size in SQL view of the query designer is now >>> adjustable >>> to a larger size in 2k3. >> Strange, I can easily match that qualification, but I adjusted it down >> and to normal ... From pharryecoenen at btinternet.com Sun Apr 25 05:36:17 2004 From: pharryecoenen at btinternet.com (Harry Coenen) Date: Sun, 25 Apr 2004 11:36:17 +0100 Subject: [AccessD] Zip + 4 + foreign phones In-Reply-To: <408B6854.8080407@shaw.ca> Message-ID: Hi Gustav and Martin already pointed you to some fairly decent reference works on the subject Thanks for http://www.grcdi.nl/ Gustav. Postal codes: Learning something from big accounting packages I usually include the address as one big multiline field, used for address labels and two additional fields for the two parts of a postal code which (in most cases) make the code unique for a postal delivery point. You could use this as a lookup (e.g. for invoices) In the UK this would be: postal code, e.g. WC1A 2HQ (for somewhere in London Westminster) house number: 23 However, they still have the snobbish habit of quoting a building name instead of the number in the street, in which case you cannot validate on this. AFAIK this is the case in most of Europe. Validation of postal codes, is usually done by including the full tables of avialable codes (e.g. in student records systems in use at universities), though you can do something at your ow risk (like Martin did for Canada) for the UK this would be: AAnx nAA A = Alpha n = digit x = alpha/digit/nothing Phone numbers: Until looking at the above site I was sure that something like +ccc (r) nnnn NNNNNNN would do the trick where: + : indicates the number you have to dial for getting international access (00 in the UK) ccc : the country code (e.g. 1 for USA/Can or 44 for UK) (r) : the national access code for interlocal calls (you don't dial this when calling international or local, only national interlocal) nnnn: the local area code (e.g. 20 for London or 1392 for Exeter) NNNNNNN: the local phone number (you only dial this part when calling local) So 5 fields, where the first could be derived from the country settings of the machine, and the local area code for the machine should be stored if you want to use it for dialing (though it doesn't hurt dialing the full international number, the network understands it, but I am not sure if the networks billing software thus). The nnnnNNNNNNNN, actually cannot be more than 10 digits (some standardisation effort). The resulting number, e.g. +44(0)1234 123456 is fairly standard (at least in Europe), even my mobile knows what to do with it. Hope this is of any help Cheers Harry From papparuff at comcast.net Sun Apr 25 11:02:53 2004 From: papparuff at comcast.net (John Ruff) Date: Sun, 25 Apr 2004 09:02:53 -0700 Subject: [Accessd] Running a report each Wednesday at 10:00 am In-Reply-To: <000201c42a02$a90736e0$21170818@Morrill> Message-ID: <001601c42ade$c480d3e0$6401a8c0@papparuff> The Windows Task Scheduler is a great tool coupled with Access' startup command-line options ("Startup command-line options" in help) are perfect for what you want to do. The Task Scheduler is used to open the Access program that runs the report each Wed at 10:00 am and the command-line options tells the program to perform the task when the command-line option is invoked. When you start the task scheduler you will want to tell it where the MSAccess program is and what database do you want to start. Typically it will look something like this: (careful about wordwrap) "C:\Program Files\Microsoft Office\OFFICE11\MSACCESS.EXE" "\\Blv2-dmt\LeadGen\BZUSPSMTA01\Import_BZTables_Ver_11_XP.mdb" /cmd Autorun (In my sample line above I use the word Autorun as my command-line keyword but you can use any word you want) Next you will need to do some coding in your Access program to recognize the cmd Autorun command-line option. I typically use a hidden splash screen and in the form's OnLoad Event I would place the code that would print the report and then close the program once the printing is done. Private Sub Form_Load() Dim strDocName As String If Command = "Autorun" Then ' Print the document strDocName = "rpt_Metrics" DoCmd.OpenReport strDocName, acNormal ' Quit the program DoCmd.Quit End If End Sub John V. Ruff - The Eternal Optimist :-) "Commit to the Lord whatever you do, and your plans will succeed." Proverbs 16:3 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bill Morrill Sent: Saturday, April 24, 2004 6:43 AM To: AccessD at databaseadvisors.com Subject: [Accessd] Running a report each Wednesday at 10:00 am Anybody point me in a direction here? How does one run an A2K report once a week -say on Wednesday at 10:00AM - without human intervention? Access will be up and running in a particular database, in a particular form when the time trigger is go off. Thank you. Bill -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pharryecoenen at btinternet.com Sun Apr 25 12:43:57 2004 From: pharryecoenen at btinternet.com (Harry Coenen) Date: Sun, 25 Apr 2004 18:43:57 +0100 Subject: [AccessD] Zip + 4 + foreign phones In-Reply-To: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D678@cntexchange.pgdp.usec.com> Message-ID: Hi Virginia Just to show how "inconsiderate" we bloody foreigners sometimes are: 1. addressing formats differ e.g. in the UK: house number before street name in the Netherlands or Germany: street name followed by house number 2. postal codes differ national and international, e.g.: In the Netherlands they would use the local format: e.g. 1000 AE Amsterdam Internationally you would be advised to use: NL-1000 AE Amsterdam 3. postal code + place differ, e.g.: In the Netherlands: NL-1000 AE Amsterdam (on the same line) In the UK: (some hamlet), Exeter, Devon, EX? ??? (usually on four different lines, where the hamlet and county (Devon) may be omitted) 4. First name + Last name combinations differ, e.g.: in Northern America and Europe: First Name before Last Name in some Asian and Arabic countries the other way around. The question is if the "Western" concept of first+last name applies universally? 5. middle names differ, e.g.: In the Netherlands: "Van den Bergh" would be sorted on "B" (unless the person is of Anglo-American descent) In the UK the same name would be sorted on "V" 6. First name (calling name) is not necessarily the first of the forenames. This one is becoming more important recently, given more stringent visa checking and security checks at airports. 7. Titles used in mail addressing differ, e.g. a female academic professor mrs X with a PhD: in the UK academic professors prefer to be addressed as: Professor X in some other European countries they are more happy with: Prof. Dr. Mrs. X although they might differ on the dots (Prof. or Prof). In short: Name and Address probably should be treated as atomic attributes, only differentiating the bulk of the data based on the most relevant conventions and treating the rest as "non-standard". standard name/address -> split in the usual (local) attributes non-standard name/address -> no split but using the "addressing name"/full address Why should you care? It all depends, e.g. for judicial purposes you simply have to get it right according to the local judicial principles, otherwise they have lost the case before they even get to court for marketing purposes your client probably doesn't want to put customers of by wrong addressing, or even worse, by web forms that don't allow non-US address formats (e.g. allowing Andorra as a country, while still insisting on a US state as a required field) Thanks for the question, I really like these puzzles which can only be solved by some kind of a pragmatic choice. Cheers Harry From jwcolby at colbyconsulting.com Sun Apr 25 19:20:14 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sun, 25 Apr 2004 20:20:14 -0400 Subject: [AccessD] Zip + 4 + foreign phones In-Reply-To: Message-ID: Doesn't it just make you want to become part of the USA? John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Harry Coenen Sent: Sunday, April 25, 2004 1:44 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Zip + 4 + foreign phones Hi Virginia Just to show how "inconsiderate" we bloody foreigners sometimes are: 1. addressing formats differ e.g. in the UK: house number before street name in the Netherlands or Germany: street name followed by house number 2. postal codes differ national and international, e.g.: In the Netherlands they would use the local format: e.g. 1000 AE Amsterdam Internationally you would be advised to use: NL-1000 AE Amsterdam 3. postal code + place differ, e.g.: In the Netherlands: NL-1000 AE Amsterdam (on the same line) In the UK: (some hamlet), Exeter, Devon, EX? ??? (usually on four different lines, where the hamlet and county (Devon) may be omitted) 4. First name + Last name combinations differ, e.g.: in Northern America and Europe: First Name before Last Name in some Asian and Arabic countries the other way around. The question is if the "Western" concept of first+last name applies universally? 5. middle names differ, e.g.: In the Netherlands: "Van den Bergh" would be sorted on "B" (unless the person is of Anglo-American descent) In the UK the same name would be sorted on "V" 6. First name (calling name) is not necessarily the first of the forenames. This one is becoming more important recently, given more stringent visa checking and security checks at airports. 7. Titles used in mail addressing differ, e.g. a female academic professor mrs X with a PhD: in the UK academic professors prefer to be addressed as: Professor X in some other European countries they are more happy with: Prof. Dr. Mrs. X although they might differ on the dots (Prof. or Prof). In short: Name and Address probably should be treated as atomic attributes, only differentiating the bulk of the data based on the most relevant conventions and treating the rest as "non-standard". standard name/address -> split in the usual (local) attributes non-standard name/address -> no split but using the "addressing name"/full address Why should you care? It all depends, e.g. for judicial purposes you simply have to get it right according to the local judicial principles, otherwise they have lost the case before they even get to court for marketing purposes your client probably doesn't want to put customers of by wrong addressing, or even worse, by web forms that don't allow non-US address formats (e.g. allowing Andorra as a country, while still insisting on a US state as a required field) Thanks for the question, I really like these puzzles which can only be solved by some kind of a pragmatic choice. Cheers Harry -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From lmrazek at lcm-res.com Sun Apr 25 19:22:34 2004 From: lmrazek at lcm-res.com (Lawrence Mrazek) Date: Sun, 25 Apr 2004 19:22:34 -0500 Subject: [AccessD] Access XP, Dbase Import error In-Reply-To: Message-ID: <001801c42b24$92e47800$036fa8c0@DellLaptop> Hi: I'm getting the following error message when trying to import a dbase file. "The search key was not found in any record." This only happens in Access XP; for some reason, Access 97 imports the file without any problems. Has anyone encountered this error and if so, do you have any ideas on a workaround? Thanks in advance. Larry Mrazek LCM Research, Inc. ph. 314-432-5886 fx. 314-432-3304 lmrazek at lcm-res.com http://www.lcm-res.com From jwcolby at colbyconsulting.com Sun Apr 25 19:32:39 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Sun, 25 Apr 2004 20:32:39 -0400 Subject: [AccessD] Access XP, Dbase Import error In-Reply-To: <001801c42b24$92e47800$036fa8c0@DellLaptop> Message-ID: Workaround... Import it in A97. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lawrence Mrazek Sent: Sunday, April 25, 2004 8:23 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access XP, Dbase Import error Hi: I'm getting the following error message when trying to import a dbase file. "The search key was not found in any record." This only happens in Access XP; for some reason, Access 97 imports the file without any problems. Has anyone encountered this error and if so, do you have any ideas on a workaround? Thanks in advance. Larry Mrazek LCM Research, Inc. ph. 314-432-5886 fx. 314-432-3304 lmrazek at lcm-res.com http://www.lcm-res.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd667 at yahoo.com Mon Apr 26 00:22:49 2004 From: accessd667 at yahoo.com (S D) Date: Sun, 25 Apr 2004 22:22:49 -0700 (PDT) Subject: [AccessD] OT SQL Question In-Reply-To: Message-ID: <20040426052249.23200.qmail@web61108.mail.yahoo.com> Martin, I've checked it out during the weekend (for a short while...it IS a weekend he). I don't see how you could create this using SQL. PERHAPS, using COMPUTE?! I'm not very familiar with this keyword. To save a lot of time and (very) complex coding...just use a cursur. Add each value to a variable and use this in an insert statement. Regards, Sander PS: Oracle to retrieve SQL-Server data....oi Martin Reid wrote: Sander See inline Martin > Martin, > > can you please provide a little more info? > WHY do you not want to use cursors? No reason just wanted to try it using SQL but didnt seem possible without cursors. > Where does the output have to go to? Into a table > What format does it need to have? see above > What's the layout of the tables? (Send me the create table scripts...) No problem will email them of line later on. That OK? > > Sander > > Martin Reid wrote: > Tried the SQL Server list with this - no luck. > > > Given a one to many relationship is it possible to produce this output using > an SP without the use of cursors etc?? > > INPUT TABLE 1 > > 1000 > IT > > 1000 > Databases > > 1000 > VMS > > 1001 > Spreadsheets > > 1001 > GenStat > > 1002 > Aquatic systems > > 1002 > Research > > > > > INPUT TABLE 2 > > > > 1000 > Smith > > 1001 > Brown > > 1002 > Foster > > > > > OUTPUT REQUIRED > > 1000 > Smith > IT, Databases,VMS > > 1001 > Brown > Spreadsheets,GenStat > > 1002 > Foster > Aquatic Systems,Research > > > > > Martin > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > --------------------------------- > Do you Yahoo!? > Yahoo! Photos: High-quality 4x6 digital prints for 25? > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com Martin WP Reid Information Services Queens University Belfast Tel: (02890) 273750 ---------------------- -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com --------------------------------- Do you Yahoo!? Yahoo! Photos: High-quality 4x6 digital prints for 25? From pharryecoenen at btinternet.com Mon Apr 26 00:07:54 2004 From: pharryecoenen at btinternet.com (Harry Coenen) Date: Mon, 26 Apr 2004 06:07:54 +0100 Subject: [AccessD] Zip + 4 + foreign phones In-Reply-To: Message-ID: > >Doesn't it just make you want to become part of the USA? only if you (USA) accept ISO formats and ...eh ... human rights > > I agree on that one > >John W. Colby Harry From HollisVJ at pgdp.usec.com Mon Apr 26 06:21:39 2004 From: HollisVJ at pgdp.usec.com (Hollis,Virginia) Date: Mon, 26 Apr 2004 06:21:39 -0500 Subject: [AccessD] RE: Zip + 4 + foreign phones Message-ID: <618EB4D6DDCDD3119B0A00508B6FD37A0CB0D683@cntexchange.pgdp.usec.com> Thanks for all the suggestions - all I can say is Whew! > -----Original Message----- > From: Hollis,Virginia > Sent: Saturday, April 24, 2004 7:42 AM > To: 'accessD at databaseadvisors.com' > Subject: Zip + 4 + foreign phones > > Does anyone have the Zip Codes with the + 4? I have a table with 54,000 > zip codes - but the user wants the +4. > > Also, I know there has been a lot of messages over the years about foreign > (other countries besides US) phone numbers. This is the first time I have > had to use foreign numbers. How are they formatted? > > Oh, which makes me think - are foreign zip codes different too? Does > anyone have a table with foreign zip codes too? > > Virginia From john at winhaven.net Mon Apr 26 09:01:12 2004 From: john at winhaven.net (John Bartow) Date: Mon, 26 Apr 2004 09:01:12 -0500 Subject: [AccessD] OT jpeg lawsuit (was jpg Screen shot) In-Reply-To: <426071E0B0A6D311B3C0006008B0AB23AFE519@TAPPEEXCH01> Message-ID: Speak of the devil, we just might start seeing an increase in the use of the png format. These is a lawsuit concerning the jpeg patent rights and license fees (ala SCO UNIX code in Linux?): http://internetweek.com/e-business/showArticle.jhtml?articleID=19200171 John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Brett Barabash Sent: Friday, April 16, 2004 1:34 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] jpg Screen shot Most Windows programs support PNG (Adobe Photoshop, Microsoft Photo Editor, Internet Explorer, Irfanview, etc). It just hasn't made it to the industry standard realm the same way as other formats have. (Magazines asking for JPG files instead of PNGs for screenshots, for example). I think you'd be hard pressed to find a current graphics file viewer that doesn't support it. -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Friday, April 16, 2004 1:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] jpg Screen shot Brett: Would it be a problem if you wanted to send a file to someone? Is PNG format supported by Windows or any of the popular viewers? Rocky ----- Original Message ----- From: "Brett Barabash" To: "'Access Developers discussion and problem solving'" Sent: Friday, April 16, 2004 9:42 AM Subject: RE: [AccessD] jpg Screen shot > By far, the absolute best format for screenshots is PNG. Near-infinite > color range (handles 32-bit palettes with ease), lossless compression, and > tiny file size. > > Unfortunately, it is open-source based so it hasn't made it to the > mainstream like other more popular formats (GIF, JPG). > > I wrote a global error handler that automatically grabs a full screen shot > of the users' workstation upon app failure and stores it as a PNG on the > network. Files range between 8KB and 25KB! > > > -----Original Message----- > From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] > Sent: Friday, April 16, 2004 10:23 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] jpg Screen shot > > You should make this into an article. > > Thanks to everyone who helped. I eventually used Irfanview which looks like > a very complete program. Just got a note from the publisher - the jpg is > fine. Of course, in the magazine it's going to be probably no bigger than > 2" x 2" > > Regards, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > > > ----- Original Message ----- > From: "William Hindman" > To: "Access Developers discussion and problem solving" > > Sent: Thursday, April 15, 2004 4:18 PM > Subject: Re: [AccessD] jpg Screen shot > > > > ...don't use any program that initially captures your screen as a jpeg > ...I > > won't go into the details here but when you save an image as a jpeg you > are > > using a lossy algorithm that throws away portions of the graphic ...its > the > > nature of the beast ...in order to give them the high quality jpeg they > > need, start with a decent graphics program that lets you capture the image > > in a high quality, uncompressed format to begin with ...Photoshop and > > paintshoppro are the mainstream programs ...I personally use paintshoppro > > (www.jasc.com) ...set your screen resolution to the highest resolution > your > > graphics card can support and make sure your image capture area is clean > and > > clear at that resolution ...capture the image and save it into un > > uncompressed format, preferably the native format of your graphics program > > ...in paintshoppro that would give you an image with a .pspimage file tag > > ...using that image you can do all sorts of image enhancements to make > your > > saved image look better ...then resize it to 300dpi ...if you started at a > > much lower screen resolution you might wind up with too small an image at > > this point ...once the image is sized/cropped/enhanced just as you'd like > to > > see it, use your graphics program's feature that optimizes it and saves it > > as a jpeg ...use zero compression (even though the jpeg will still have > some > > inherent image quality loss) and make sure that you use the comparison > > feature to ensure minimal visible loss of image quality in the resulting > > file. > > > > ...now you have a decent sized jpeg at the desired dpi that is the best > that > > you can present ...hth :) > > > > William Hindman > > "Always code as if the person who is maintaining or testing your code is > > a violent psychopath who knows where you live." William Silverstein > > > > > > ----- Original Message ----- > > From: "Rocky Smolin - Beach Access Software" > > To: > > Sent: Thursday, April 15, 2004 4:30 PM > > Subject: [AccessD] jpg Screen shot > > > > > > Dear List: > > > > A magazine wants a screen shot from my software and they would like it to > be > > 300dpi. > > > > What's the best way to get that off the screen and into a jpg? > > > > MTIA, > > > > Rocky Smolin > > Beach Access Software > > http://www.e-z-mrp.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 > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.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 bheid at appdevgrp.com Mon Apr 26 09:09:21 2004 From: bheid at appdevgrp.com (Bobby Heid) Date: Mon, 26 Apr 2004 10:09:21 -0400 Subject: [AccessD] OT jpeg lawsuit (was jpg Screen shot) In-Reply-To: <916187228923D311A6FE00A0CC3FAA3082EECD@ADGSERVER> Message-ID: <916187228923D311A6FE00A0CC3FAA305BB47A@ADGSERVER> But, IIRC, the patent(s) run out near the end of 2004. So I guess we'll see. Either way, the suing company has a bunch of (place favorite expletives here) running it. Funny thing is, I thought the JPEG spec was designed (as is PNG) so as to not infringe on any patents. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Monday, April 26, 2004 10:01 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT jpeg lawsuit (was jpg Screen shot) Speak of the devil, we just might start seeing an increase in the use of the png format. These is a lawsuit concerning the jpeg patent rights and license fees (ala SCO UNIX code in Linux?): http://internetweek.com/e-business/showArticle.jhtml?articleID=19200171 John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Brett Barabash Sent: Friday, April 16, 2004 1:34 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] jpg Screen shot Most Windows programs support PNG (Adobe Photoshop, Microsoft Photo Editor, Internet Explorer, Irfanview, etc). It just hasn't made it to the industry standard realm the same way as other formats have. (Magazines asking for JPG files instead of PNGs for screenshots, for example). I think you'd be hard pressed to find a current graphics file viewer that doesn't support it. -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Friday, April 16, 2004 1:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] jpg Screen shot Brett: Would it be a problem if you wanted to send a file to someone? Is PNG format supported by Windows or any of the popular viewers? Rocky ----- Original Message ----- From: "Brett Barabash" To: "'Access Developers discussion and problem solving'" Sent: Friday, April 16, 2004 9:42 AM Subject: RE: [AccessD] jpg Screen shot > By far, the absolute best format for screenshots is PNG. > Near-infinite color range (handles 32-bit palettes with ease), > lossless compression, and tiny file size. > > Unfortunately, it is open-source based so it hasn't made it to the > mainstream like other more popular formats (GIF, JPG). > > I wrote a global error handler that automatically grabs a full screen > shot of the users' workstation upon app failure and stores it as a PNG > on the network. Files range between 8KB and 25KB! > > > -----Original Message----- > From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] > Sent: Friday, April 16, 2004 10:23 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] jpg Screen shot > > You should make this into an article. > > Thanks to everyone who helped. I eventually used Irfanview which > looks like > a very complete program. Just got a note from the publisher - the jpg > is fine. Of course, in the magazine it's going to be probably no > bigger than 2" x 2" > > Regards, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > > > ----- Original Message ----- > From: "William Hindman" > To: "Access Developers discussion and problem solving" > > Sent: Thursday, April 15, 2004 4:18 PM > Subject: Re: [AccessD] jpg Screen shot > > > > ...don't use any program that initially captures your screen as a > > jpeg > ...I > > won't go into the details here but when you save an image as a jpeg > > you > are > > using a lossy algorithm that throws away portions of the graphic > > ...its > the > > nature of the beast ...in order to give them the high quality jpeg > > they need, start with a decent graphics program that lets you > > capture the image > > in a high quality, uncompressed format to begin with ...Photoshop > > and paintshoppro are the mainstream programs ...I personally use paintshoppro > > (www.jasc.com) ...set your screen resolution to the highest > > resolution > your > > graphics card can support and make sure your image capture area is > > clean > and > > clear at that resolution ...capture the image and save it into un > > uncompressed format, preferably the native format of your graphics program > > ...in paintshoppro that would give you an image with a .pspimage > > file tag > > ...using that image you can do all sorts of image enhancements to > > make > your > > saved image look better ...then resize it to 300dpi ...if you > > started at a > > much lower screen resolution you might wind up with too small an > > image at > > this point ...once the image is sized/cropped/enhanced just as you'd like > to > > see it, use your graphics program's feature that optimizes it and > > saves it > > as a jpeg ...use zero compression (even though the jpeg will still > > have > some > > inherent image quality loss) and make sure that you use the > > comparison feature to ensure minimal visible loss of image quality > > in the resulting file. > > > > ...now you have a decent sized jpeg at the desired dpi that is the > > best > that > > you can present ...hth :) > > > > William Hindman > > "Always code as if the person who is maintaining or testing your > > code is a violent psychopath who knows where you live." William > > Silverstein > > > > > > ----- Original Message ----- > > From: "Rocky Smolin - Beach Access Software" > > To: > > Sent: Thursday, April 15, 2004 4:30 PM > > Subject: [AccessD] jpg Screen shot > > > > > > Dear List: > > > > A magazine wants a screen shot from my software and they would like > > it to > be > > 300dpi. > > > > What's the best way to get that off the screen and into a jpg? > > > > MTIA, > > > > Rocky Smolin > > Beach Access Software > > http://www.e-z-mrp.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 > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.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 -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Mon Apr 26 09:20:15 2004 From: john at winhaven.net (John Bartow) Date: Mon, 26 Apr 2004 09:20:15 -0500 Subject: [AccessD] OT jpeg lawsuit (was jpg Screen shot) In-Reply-To: <916187228923D311A6FE00A0CC3FAA305BB47A@ADGSERVER> Message-ID: That is what I thought too. Fuzzy memories or fuzzy law suit? ;o) John Funny thing is, I thought the JPEG spec was designed (as is PNG) so as to not infringe on any patents. Bobby From BBarabash at TappeConstruction.com Mon Apr 26 09:22:39 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Mon, 26 Apr 2004 09:22:39 -0500 Subject: [AccessD] OT jpeg lawsuit (was jpg Screen shot) Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE548@TAPPEEXCH01> I initially became interested in PNG after Unisys launched their LZW patents against software companies offering GIF support. I was under the mistaken impression the jpeg was an open standard. Guess not! IMHO, PNG is a poor substitute for JPEG, as its compression works best on images with large blocks of same colors (a la screenshots). Not very effective for photos. -----Original Message----- From: John Bartow [mailto:john at winhaven.net] Sent: Monday, April 26, 2004 9:01 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT jpeg lawsuit (was jpg Screen shot) Speak of the devil, we just might start seeing an increase in the use of the png format. These is a lawsuit concerning the jpeg patent rights and license fees (ala SCO UNIX code in Linux?): http://internetweek.com/e-business/showArticle.jhtml?articleID=19200171 John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Brett Barabash Sent: Friday, April 16, 2004 1:34 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] jpg Screen shot Most Windows programs support PNG (Adobe Photoshop, Microsoft Photo Editor, Internet Explorer, Irfanview, etc). It just hasn't made it to the industry standard realm the same way as other formats have. (Magazines asking for JPG files instead of PNGs for screenshots, for example). I think you'd be hard pressed to find a current graphics file viewer that doesn't support it. -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Friday, April 16, 2004 1:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] jpg Screen shot Brett: Would it be a problem if you wanted to send a file to someone? Is PNG format supported by Windows or any of the popular viewers? Rocky ----- Original Message ----- From: "Brett Barabash" To: "'Access Developers discussion and problem solving'" Sent: Friday, April 16, 2004 9:42 AM Subject: RE: [AccessD] jpg Screen shot > By far, the absolute best format for screenshots is PNG. Near-infinite > color range (handles 32-bit palettes with ease), lossless compression, and > tiny file size. > > Unfortunately, it is open-source based so it hasn't made it to the > mainstream like other more popular formats (GIF, JPG). > > I wrote a global error handler that automatically grabs a full screen shot > of the users' workstation upon app failure and stores it as a PNG on the > network. Files range between 8KB and 25KB! > > > -----Original Message----- > From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] > Sent: Friday, April 16, 2004 10:23 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] jpg Screen shot > > You should make this into an article. > > Thanks to everyone who helped. I eventually used Irfanview which looks like > a very complete program. Just got a note from the publisher - the jpg is > fine. Of course, in the magazine it's going to be probably no bigger than > 2" x 2" > > Regards, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > > > ----- Original Message ----- > From: "William Hindman" > To: "Access Developers discussion and problem solving" > > Sent: Thursday, April 15, 2004 4:18 PM > Subject: Re: [AccessD] jpg Screen shot > > > > ...don't use any program that initially captures your screen as a jpeg > ...I > > won't go into the details here but when you save an image as a jpeg you > are > > using a lossy algorithm that throws away portions of the graphic ...its > the > > nature of the beast ...in order to give them the high quality jpeg they > > need, start with a decent graphics program that lets you capture the image > > in a high quality, uncompressed format to begin with ...Photoshop and > > paintshoppro are the mainstream programs ...I personally use paintshoppro > > (www.jasc.com) ...set your screen resolution to the highest resolution > your > > graphics card can support and make sure your image capture area is clean > and > > clear at that resolution ...capture the image and save it into un > > uncompressed format, preferably the native format of your graphics program > > ...in paintshoppro that would give you an image with a .pspimage file tag > > ...using that image you can do all sorts of image enhancements to make > your > > saved image look better ...then resize it to 300dpi ...if you started at a > > much lower screen resolution you might wind up with too small an image at > > this point ...once the image is sized/cropped/enhanced just as you'd like > to > > see it, use your graphics program's feature that optimizes it and saves it > > as a jpeg ...use zero compression (even though the jpeg will still have > some > > inherent image quality loss) and make sure that you use the comparison > > feature to ensure minimal visible loss of image quality in the resulting > > file. > > > > ...now you have a decent sized jpeg at the desired dpi that is the best > that > > you can present ...hth :) > > > > William Hindman > > "Always code as if the person who is maintaining or testing your code is > > a violent psychopath who knows where you live." William Silverstein > > > > > > ----- Original Message ----- > > From: "Rocky Smolin - Beach Access Software" > > To: > > Sent: Thursday, April 15, 2004 4:30 PM > > Subject: [AccessD] jpg Screen shot > > > > > > Dear List: > > > > A magazine wants a screen shot from my software and they would like it to > be > > 300dpi. > > > > What's the best way to get that off the screen and into a jpg? > > > > MTIA, > > > > Rocky Smolin > > Beach Access Software > > http://www.e-z-mrp.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 > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.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 wdhindman at bellsouth.net Mon Apr 26 09:54:09 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Mon, 26 Apr 2004 10:54:09 -0400 Subject: [AccessD] OT jpeg lawsuit (was jpg Screen shot) References: <426071E0B0A6D311B3C0006008B0AB23AFE548@TAPPEEXCH01> Message-ID: <003f01c42b9e$546f6470$6101a8c0@dejpolsys> ...if there is any merit to this I'm hopeful that it will push earlier adoption of the SVG format ...SVG is an open-standard vector graphics language based on XML and has been developed by a working group of the W3C ...it produces readily scalable graphics with much smaller file size ...its wide adoption would significantly improve the net in many ways. :) William Hindman "Always code as if the person who is maintaining or testing your code is a violent psychopath who knows where you live." William Silverstein ----- Original Message ----- From: "Brett Barabash" To: "'Access Developers discussion and problem solving'" Sent: Monday, April 26, 2004 10:22 AM Subject: RE: [AccessD] OT jpeg lawsuit (was jpg Screen shot) > I initially became interested in PNG after Unisys launched their LZW patents > against software companies offering GIF support. I was under the mistaken > impression the jpeg was an open standard. Guess not! > > IMHO, PNG is a poor substitute for JPEG, as its compression works best on > images with large blocks of same colors (a la screenshots). Not very > effective for photos. > > > -----Original Message----- > From: John Bartow [mailto:john at winhaven.net] > Sent: Monday, April 26, 2004 9:01 AM > To: Access Developers discussion and problem solving > Subject: RE: [AccessD] OT jpeg lawsuit (was jpg Screen shot) > > Speak of the devil, we just might start seeing an increase in the use of the > png format. These is a lawsuit concerning the jpeg patent rights and license > fees (ala SCO UNIX code in Linux?): > > http://internetweek.com/e-business/showArticle.jhtml?articleID=19200171 > > John > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Brett Barabash > Sent: Friday, April 16, 2004 1:34 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] jpg Screen shot > > > Most Windows programs support PNG (Adobe Photoshop, Microsoft Photo Editor, > Internet Explorer, Irfanview, etc). It just hasn't made it to the industry > standard realm the same way as other formats have. (Magazines asking for > JPG files instead of PNGs for screenshots, for example). > > I think you'd be hard pressed to find a current graphics file viewer that > doesn't support it. > > > -----Original Message----- > From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] > Sent: Friday, April 16, 2004 1:28 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] jpg Screen shot > > Brett: > > Would it be a problem if you wanted to send a file to someone? Is PNG > format supported by Windows or any of the popular viewers? > > Rocky > > ----- Original Message ----- > From: "Brett Barabash" > To: "'Access Developers discussion and problem solving'" > > Sent: Friday, April 16, 2004 9:42 AM > Subject: RE: [AccessD] jpg Screen shot > > > > By far, the absolute best format for screenshots is PNG. Near-infinite > > color range (handles 32-bit palettes with ease), lossless compression, and > > tiny file size. > > > > Unfortunately, it is open-source based so it hasn't made it to the > > mainstream like other more popular formats (GIF, JPG). > > > > I wrote a global error handler that automatically grabs a full screen shot > > of the users' workstation upon app failure and stores it as a PNG on the > > network. Files range between 8KB and 25KB! > > > > > > -----Original Message----- > > From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] > > Sent: Friday, April 16, 2004 10:23 AM > > To: Access Developers discussion and problem solving > > Subject: Re: [AccessD] jpg Screen shot > > > > You should make this into an article. > > > > Thanks to everyone who helped. I eventually used Irfanview which looks > like > > a very complete program. Just got a note from the publisher - the jpg is > > fine. Of course, in the magazine it's going to be probably no bigger than > > 2" x 2" > > > > Regards, > > > > Rocky Smolin > > Beach Access Software > > http://www.e-z-mrp.com > > > > > > ----- Original Message ----- > > From: "William Hindman" > > To: "Access Developers discussion and problem solving" > > > > Sent: Thursday, April 15, 2004 4:18 PM > > Subject: Re: [AccessD] jpg Screen shot > > > > > > > ...don't use any program that initially captures your screen as a jpeg > > ...I > > > won't go into the details here but when you save an image as a jpeg you > > are > > > using a lossy algorithm that throws away portions of the graphic ...its > > the > > > nature of the beast ...in order to give them the high quality jpeg they > > > need, start with a decent graphics program that lets you capture the > image > > > in a high quality, uncompressed format to begin with ...Photoshop and > > > paintshoppro are the mainstream programs ...I personally use > paintshoppro > > > (www.jasc.com) ...set your screen resolution to the highest resolution > > your > > > graphics card can support and make sure your image capture area is clean > > and > > > clear at that resolution ...capture the image and save it into un > > > uncompressed format, preferably the native format of your graphics > program > > > ...in paintshoppro that would give you an image with a .pspimage file > tag > > > ...using that image you can do all sorts of image enhancements to make > > your > > > saved image look better ...then resize it to 300dpi ...if you started at > a > > > much lower screen resolution you might wind up with too small an image > at > > > this point ...once the image is sized/cropped/enhanced just as you'd > like > > to > > > see it, use your graphics program's feature that optimizes it and saves > it > > > as a jpeg ...use zero compression (even though the jpeg will still have > > some > > > inherent image quality loss) and make sure that you use the comparison > > > feature to ensure minimal visible loss of image quality in the resulting > > > file. > > > > > > ...now you have a decent sized jpeg at the desired dpi that is the best > > that > > > you can present ...hth :) > > > > > > William Hindman > > > "Always code as if the person who is maintaining or testing your code is > > > a violent psychopath who knows where you live." William Silverstein > > > > > > > > > ----- Original Message ----- > > > From: "Rocky Smolin - Beach Access Software" > > > To: > > > Sent: Thursday, April 15, 2004 4:30 PM > > > Subject: [AccessD] jpg Screen shot > > > > > > > > > Dear List: > > > > > > A magazine wants a screen shot from my software and they would like it > to > > be > > > 300dpi. > > > > > > What's the best way to get that off the screen and into a jpg? > > > > > > MTIA, > > > > > > Rocky Smolin > > > Beach Access Software > > > http://www.e-z-mrp.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 > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.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 accessd at shaw.ca Mon Apr 26 09:49:29 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Mon, 26 Apr 2004 07:49:29 -0700 Subject: [AccessD] OT jpeg lawsuit (was jpg Screen shot) In-Reply-To: <426071E0B0A6D311B3C0006008B0AB23AFE548@TAPPEEXCH01> Message-ID: PNG is suppose to be a replacement for GIF files not JPEG files. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Brett Barabash Sent: Monday, April 26, 2004 7:23 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] OT jpeg lawsuit (was jpg Screen shot) I initially became interested in PNG after Unisys launched their LZW patents against software companies offering GIF support. I was under the mistaken impression the jpeg was an open standard. Guess not! IMHO, PNG is a poor substitute for JPEG, as its compression works best on images with large blocks of same colors (a la screenshots). Not very effective for photos. -----Original Message----- From: John Bartow [mailto:john at winhaven.net] Sent: Monday, April 26, 2004 9:01 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] OT jpeg lawsuit (was jpg Screen shot) Speak of the devil, we just might start seeing an increase in the use of the png format. These is a lawsuit concerning the jpeg patent rights and license fees (ala SCO UNIX code in Linux?): http://internetweek.com/e-business/showArticle.jhtml?articleID=19200171 John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Brett Barabash Sent: Friday, April 16, 2004 1:34 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] jpg Screen shot Most Windows programs support PNG (Adobe Photoshop, Microsoft Photo Editor, Internet Explorer, Irfanview, etc). It just hasn't made it to the industry standard realm the same way as other formats have. (Magazines asking for JPG files instead of PNGs for screenshots, for example). I think you'd be hard pressed to find a current graphics file viewer that doesn't support it. -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Friday, April 16, 2004 1:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] jpg Screen shot Brett: Would it be a problem if you wanted to send a file to someone? Is PNG format supported by Windows or any of the popular viewers? Rocky ----- Original Message ----- From: "Brett Barabash" To: "'Access Developers discussion and problem solving'" Sent: Friday, April 16, 2004 9:42 AM Subject: RE: [AccessD] jpg Screen shot > By far, the absolute best format for screenshots is PNG. Near-infinite > color range (handles 32-bit palettes with ease), lossless compression, and > tiny file size. > > Unfortunately, it is open-source based so it hasn't made it to the > mainstream like other more popular formats (GIF, JPG). > > I wrote a global error handler that automatically grabs a full screen shot > of the users' workstation upon app failure and stores it as a PNG on the > network. Files range between 8KB and 25KB! > > > -----Original Message----- > From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] > Sent: Friday, April 16, 2004 10:23 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] jpg Screen shot > > You should make this into an article. > > Thanks to everyone who helped. I eventually used Irfanview which looks like > a very complete program. Just got a note from the publisher - the jpg is > fine. Of course, in the magazine it's going to be probably no bigger than > 2" x 2" > > Regards, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > > > ----- Original Message ----- > From: "William Hindman" > To: "Access Developers discussion and problem solving" > > Sent: Thursday, April 15, 2004 4:18 PM > Subject: Re: [AccessD] jpg Screen shot > > > > ...don't use any program that initially captures your screen as a jpeg > ...I > > won't go into the details here but when you save an image as a jpeg you > are > > using a lossy algorithm that throws away portions of the graphic ...its > the > > nature of the beast ...in order to give them the high quality jpeg they > > need, start with a decent graphics program that lets you capture the image > > in a high quality, uncompressed format to begin with ...Photoshop and > > paintshoppro are the mainstream programs ...I personally use paintshoppro > > (www.jasc.com) ...set your screen resolution to the highest resolution > your > > graphics card can support and make sure your image capture area is clean > and > > clear at that resolution ...capture the image and save it into un > > uncompressed format, preferably the native format of your graphics program > > ...in paintshoppro that would give you an image with a .pspimage file tag > > ...using that image you can do all sorts of image enhancements to make > your > > saved image look better ...then resize it to 300dpi ...if you started at a > > much lower screen resolution you might wind up with too small an image at > > this point ...once the image is sized/cropped/enhanced just as you'd like > to > > see it, use your graphics program's feature that optimizes it and saves it > > as a jpeg ...use zero compression (even though the jpeg will still have > some > > inherent image quality loss) and make sure that you use the comparison > > feature to ensure minimal visible loss of image quality in the resulting > > file. > > > > ...now you have a decent sized jpeg at the desired dpi that is the best > that > > you can present ...hth :) > > > > William Hindman > > "Always code as if the person who is maintaining or testing your code is > > a violent psychopath who knows where you live." William Silverstein > > > > > > ----- Original Message ----- > > From: "Rocky Smolin - Beach Access Software" > > To: > > Sent: Thursday, April 15, 2004 4:30 PM > > Subject: [AccessD] jpg Screen shot > > > > > > Dear List: > > > > A magazine wants a screen shot from my software and they would like it to > be > > 300dpi. > > > > What's the best way to get that off the screen and into a jpg? > > > > MTIA, > > > > Rocky Smolin > > Beach Access Software > > http://www.e-z-mrp.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 > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.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 greggs at msn.com Mon Apr 26 11:25:18 2004 From: greggs at msn.com (Gregg) Date: Mon, 26 Apr 2004 11:25:18 -0500 Subject: [AccessD] List Box does not show all In-Reply-To: Message-ID: What causes list boxes to no show the whole list? Seems to come and go. It shows up on all users so it must be either the link to the BE or the BE itself. Any ideas? Gregg Steinbrenner From Jim.Hale at FleetPride.com Mon Apr 26 12:09:41 2004 From: Jim.Hale at FleetPride.com (Hale, Jim) Date: Mon, 26 Apr 2004 12:09:41 -0500 Subject: [AccessD] Calendar Controls -- just for discussion Message-ID: <6A6AA9DF57E4F046BDA1E273BDDB677201ABB3@corp-es01.fleetpride.com> For anyone who needs to activate a calendar from Excel John Walkenbach has one of the most amazing calendars using a single array formula on p357 of his Excel 2000 formulas book. Since I often use Excel worksheets as simple interfaces to Access databases this native Excel calendar comes in very handy. Jim Hale -----Original Message----- From: Rocky Smolin - Beach Access Software [mailto:bchacc at san.rr.com] Sent: Sunday, April 18, 2004 2:49 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Calendar Controls -- just for discussion I use the ADH calendar and trigger it on the double-click of any date text box. So they can still hand enter the date if they want. Users seem to like the convention once they get used to it. Rocky Smolin Beach Access Software http://www.e-z-mrp.com > > ----- Original Message ----- > From: "Susan Harkins" > To: "'Access Developers discussion and problem solving'" > > Sent: Sunday, April 18, 2004 12:48 PM > Subject: RE: [AccessD] Calendar Controls -- just for discussion > > > > ...first ...I don't use the ODE Calendar Control because of a long history > > of versioning problems > > > > ===========I'm limited -- I write about what they want. :) So, when you > > complain of versioning problems, what do you mean? > > > > 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 > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rl_stewart at highstream.net Mon Apr 26 12:23:20 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Mon, 26 Apr 2004 12:23:20 -0500 Subject: [AccessD] Re: To Combine Child Records In-Reply-To: <200404261700.i3QH0dQ30045@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040426121936.02baee58@pop3.highstream.net> Actually, you can do this with 2 views combined in one and possible using a subquery. You can create a SQL Server function that can give you the following: 1001, "Spreadsheets,GenStat" Once you get that, it is a simple join to get the name added in. Robert P.S. I covered the function that was required to do this in my last Access developer's workshop. We did it in both Access and SQL Server. At 12:00 PM 4/26/2004 -0500, you wrote: >Date: Sun, 25 Apr 2004 22:22:49 -0700 (PDT) >From: S D >Subject: Re: [AccessD] OT SQL Question >To: Access Developers discussion and problem solving > >Message-ID: <20040426052249.23200.qmail at web61108.mail.yahoo.com> >Content-Type: text/plain; charset=us-ascii > >Martin, > >I've checked it out during the weekend (for a short while...it IS a >weekend he). I don't see how you could create this using SQL. PERHAPS, >using COMPUTE?! I'm not very familiar with this keyword. > >To save a lot of time and (very) complex coding...just use a cursur. Add >each value to a variable and use this in an insert statement. > >Regards, > >Sander > >PS: Oracle to retrieve SQL-Server data....oi > >Martin Reid wrote: >Sander > >See inline > >Martin > > > > > Martin, > > > > can you please provide a little more info? > > WHY do you not want to use cursors? > >No reason just wanted to try it using SQL but didnt seem >possible without cursors. > > > Where does the output have to go to? > >Into a table > > > What format does it need to have? > >see above > > > What's the layout of the tables? (Send me the create table scripts...) > >No problem will email them of line later on. That OK? > > > > > Sander > > > > Martin Reid wrote: > > Tried the SQL Server list with this - no luck. > > > > > > Given a one to many relationship is it possible to produce this output > using > > an SP without the use of cursors etc?? > > > > INPUT TABLE 1 > > > > 1000 > > IT > > > > 1000 > > Databases > > > > 1000 > > VMS > > > > 1001 > > Spreadsheets > > > > 1001 > > GenStat > > > > 1002 > > Aquatic systems > > > > 1002 > > Research > > > > > > > > > > INPUT TABLE 2 > > > > > > > > 1000 > > Smith > > > > 1001 > > Brown > > > > 1002 > > Foster > > > > > > > > > > OUTPUT REQUIRED > > > > 1000 > > Smith > > IT, Databases,VMS > > > > 1001 > > Brown > > Spreadsheets,GenStat > > > > 1002 > > Foster > > Aquatic Systems,Research > > > > > > > > > > Martin From rl_stewart at highstream.net Mon Apr 26 12:27:45 2004 From: rl_stewart at highstream.net (Robert L. Stewart) Date: Mon, 26 Apr 2004 12:27:45 -0500 Subject: [AccessD] Re: jpg Screen shot In-Reply-To: <200404261700.i3QH0dQ30045@databaseadvisors.com> Message-ID: <5.1.0.14.2.20040426122441.02acf750@pop3.highstream.net> Tiny file size my foot!!!! I had to convert all my PNG (Fireworks) files to GIF to get speed loading them as graphic buttons for a web site. 94k compared to 6k. PNG was not a viable choice. At 12:00 PM 4/26/2004 -0500, you wrote: >From: "Brett Barabash" >To: "'Access Developers discussion and problem solving'" > >Sent: Friday, April 16, 2004 9:42 AM >Subject: RE: [AccessD] jpg Screen shot > > > > By far, the absolute best format for screenshots is PNG. Near-infinite > > color range (handles 32-bit palettes with ease), lossless compression, and > > tiny file size. > > From Developer at UltraDNT.com Mon Apr 26 13:05:22 2004 From: Developer at UltraDNT.com (Developer) Date: Mon, 26 Apr 2004 14:05:22 -0400 Subject: [AccessD] PrtDevMode in MDE In-Reply-To: Message-ID: <000001c42bb9$14826310$6401a8c0@COA3> I am trying to force some values into prtdevmode in a report at runtime, but the code ive always used for this requires the report to be manipulated in design view, which wont work in an MDE. Specifically, there is a custom paper size on the pc (11 x 8.5) that I want to hard-code to the report Is there any way to do this in an MDE? From BBarabash at TappeConstruction.com Mon Apr 26 13:12:48 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Mon, 26 Apr 2004 13:12:48 -0500 Subject: [AccessD] RE: jpg Screen shot Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE54B@TAPPEEXCH01> Huh?! I was talking about screenshots, not website buttons. As I mentioned earlier, IMHO, 20-40 KB is tiny for a screenshot, considering it displays 100% of the original quality. I have yet to find another file format that can top this. Nevertheless, let's do a little test here. Using Microsoft PhotoDraw 2000 (tried it with MS Photo Editor as well with reasonably similar results): ----- Source: 66x109 pixel 24-bit photo bmp file (a poor choice for PNG compression) Original BMP: 21,854 bytes PNG (24-bit color): 10,128 bytes PNG (8-bit 256 color): 3,052 bytes GIF (8-bit 256 color): 3,118 bytes (both the 8 bit PNG and the 8 bit GIF looked awful i.e. loss of photo detail/color) ----- ----- Source: 61x41 pixel 16 color toolbar button (a perfect choice for PNG compression) Original BMP: 9,438 bytes PNG (24-bit color): 391 bytes PNG (8-bit 256 color): 1,084 bytes GIF (8-bit 256 color): 1,129 bytes (results were identical. In this case, the 24-bit pallette netted a smaller file size, since there were only 4 distinct colors in the photo. The 256 color pallette wasted the additional overhead). ----- Keep the following in mind: - Photos are poor candidates for PNG/zlib compression. PNG works best for files with large blocks of the same color (e.g. screenshots). - All programs are not created equally. Despite LIBPNG being offered to software vendors and the general public with a free no strings attached commercial license, there are several apps that do a half-assed job of handling PNG files *cough IE*. What program are you using to convert to PNG? -----Original Message----- From: Robert L. Stewart [mailto:rl_stewart at highstream.net] Sent: Monday, April 26, 2004 12:28 PM To: accessd at databaseadvisors.com Cc: BBarabash at tappeconstruction.com Subject: Re: jpg Screen shot Tiny file size my foot!!!! I had to convert all my PNG (Fireworks) files to GIF to get speed loading them as graphic buttons for a web site. 94k compared to 6k. PNG was not a viable choice. At 12:00 PM 4/26/2004 -0500, you wrote: >From: "Brett Barabash" >To: "'Access Developers discussion and problem solving'" > >Sent: Friday, April 16, 2004 9:42 AM >Subject: RE: [AccessD] jpg Screen shot > > > > By far, the absolute best format for screenshots is PNG. Near-infinite > > color range (handles 32-bit palettes with ease), lossless compression, and > > tiny file size. > > -------------------------------------------------------------------------------------------------------------------- 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 Bryan_Carbonnell at cbc.ca Mon Apr 26 13:19:04 2004 From: Bryan_Carbonnell at cbc.ca (Bryan Carbonnell) Date: Mon, 26 Apr 2004 14:19:04 -0400 Subject: [AccessD] RE: jpg Screen shot Message-ID: OK Folks. While all this talk of jpgs, pngs and image formats is interesting, it really belongs over on dba-tech http://databaseadvisors.com/mailman/listinfo/dba-tech if you aren't already subscribed to dba-tech. Bryan Carbonnell bryan_carbonnell at cbc.ca Coming to you from work From john at winhaven.net Mon Apr 26 13:22:13 2004 From: john at winhaven.net (John Bartow) Date: Mon, 26 Apr 2004 13:22:13 -0500 Subject: [AccessD] Re: jpg Screen shot In-Reply-To: <5.1.0.14.2.20040426122441.02acf750@pop3.highstream.net> Message-ID: I haven't seen that big of a difference in file size myself. I use Adobe products and the size is usually larger on average, by maybe 15%. It could be that your software isn't doing a good job of conversion or the settings are not quite right. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Robert L. Stewart Sent: Monday, April 26, 2004 12:28 PM To: accessd at databaseadvisors.com Cc: BBarabash at tappeconstruction.com Subject: [AccessD] Re: jpg Screen shot Tiny file size my foot!!!! I had to convert all my PNG (Fireworks) files to GIF to get speed loading them as graphic buttons for a web site. 94k compared to 6k. PNG was not a viable choice. At 12:00 PM 4/26/2004 -0500, you wrote: >From: "Brett Barabash" >To: "'Access Developers discussion and problem solving'" > >Sent: Friday, April 16, 2004 9:42 AM >Subject: RE: [AccessD] jpg Screen shot > > > > By far, the absolute best format for screenshots is PNG. Near-infinite > > color range (handles 32-bit palettes with ease), lossless compression, and > > tiny file size. > > -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Mon Apr 26 13:30:55 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 26 Apr 2004 13:30:55 -0500 Subject: [AccessD] Calendar Controls -- just for discussion Message-ID: <2F8793082E00D4119A1700B0D0216BF802227B16@main2.marlow.com> Yep, it's on my website. http://www.wolfwares.com Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Steve Capistrant Sent: Saturday, April 24, 2004 8:49 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Calendar Controls -- just for discussion Drew, is it still possible to get a copy of your OLD version in the meantime? Steve Capistrant Symphony Information Services scapistrant at symphonyinfo.com www.symphonyinfo.com Phone: 763-391-7400 7308 Aspen Lane North, Suite 132, Brooklyn Park, MN 55428 -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DWUTKA at marlow.com Sent: Monday, April 19, 2004 9:48 AM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Calendar Controls -- just for discussion You're quite welcome. As soon as life settles down, I'll finish up the new version. Which is keyboard friendly too! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Andy Lacey Sent: Sunday, April 18, 2004 5:01 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Calendar Controls -- just for discussion > I use a modified version of Drew's old mini-calendar which is all VBA, dead reliable, and very fast. Ditto (and thanks to Drew) -- 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 Rich_Lavsa at pghcorning.com Mon Apr 26 14:45:14 2004 From: Rich_Lavsa at pghcorning.com (Lavsa, Rich) Date: Mon, 26 Apr 2004 15:45:14 -0400 Subject: [AccessD] Calendar Controls AND TIME Controls Message-ID: <833956F5C117124A89417638FDB11290EBD156@goexchange.pghcorning.com> I always hear about Calendar Controls and have used a few of them. I was wondering if anyone out there has a Time control. I have a very time sensitive application where the technicians have to enter Date and Time on and Date and Time off. The time is essential to knowing how long the piece ran with or without defects in the product to know whether to fix it or use that mold as a template for others if it was working properly over a long period of time (long could be 16+ hours due to the harsh environment). Anyway, back to my question. I have a Date/Time field for ON and OFF, currently I have a text box that is populated with a pop up calendar or by typing in text, works great. I also have another unbound field that is used purely for Time entry, of which the user must type it in as ##:## AM/PM, then upon exit it concatenates that information with the Date information to make a complete Date/Time field.. Does anyone know of a Time control or a better way to achieve this type of functionality other then the Date and Time Active X control. Thanks in Advance, Rich From markamatte at hotmail.com Mon Apr 26 15:11:35 2004 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 26 Apr 2004 20:11:35 +0000 Subject: [AccessD] Help with locked table? Message-ID: Hello All, I have an A97 db that I cannot compact...message reads that either I or someone else is trying to edit the same data...I have isolated it to 1 table. I can copy the entire db...but I cannot import/copy/export...this one table without getting the same error. I ran the Repair successfully...and still have the issue... Any ideas/suggestions? Thanks, Mark A. Matte _________________________________________________________________ >From must-see cities to the best beaches, plan a getaway with the Spring Travel Guide! http://special.msn.com/local/springtravel.armx From DWUTKA at marlow.com Mon Apr 26 15:23:15 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 26 Apr 2004 15:23:15 -0500 Subject: [AccessD] Calendar Controls AND TIME Controls Message-ID: <2F8793082E00D4119A1700B0D0216BF802227B19@main2.marlow.com> Well if you can wait, the next item I'm adding to the beta version of my MiniCalendar is a time/clock portion. No idea when I'll have it done though...not very timely I guess! LOL Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lavsa, Rich Sent: Monday, April 26, 2004 2:45 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Calendar Controls AND TIME Controls I always hear about Calendar Controls and have used a few of them. I was wondering if anyone out there has a Time control. I have a very time sensitive application where the technicians have to enter Date and Time on and Date and Time off. The time is essential to knowing how long the piece ran with or without defects in the product to know whether to fix it or use that mold as a template for others if it was working properly over a long period of time (long could be 16+ hours due to the harsh environment). Anyway, back to my question. I have a Date/Time field for ON and OFF, currently I have a text box that is populated with a pop up calendar or by typing in text, works great. I also have another unbound field that is used purely for Time entry, of which the user must type it in as ##:## AM/PM, then upon exit it concatenates that information with the Date information to make a complete Date/Time field.. Does anyone know of a Time control or a better way to achieve this type of functionality other then the Date and Time Active X control. Thanks in Advance, Rich -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ranthony at wrsystems.com Mon Apr 26 15:24:56 2004 From: ranthony at wrsystems.com (ranthony at wrsystems.com) Date: Mon, 26 Apr 2004 16:24:56 -0400 Subject: [AccessD] Help with locked table? Message-ID: <5F21A4E8B8DD734992EF9E70AC9D3064128B9E@mail2.wrsystems.com> Mark, your problems may be exacerbated by using the A97 repair utility. Download the Jetcomp.exe utility by M$ and repair/compact with that. Worse case, you may have to use the /decompile switch. Randy -----Original Message----- From: Mark A Matte [mailto:markamatte at hotmail.com] Sent: Monday, April 26, 2004 4:12 PM To: accessd at databaseadvisors.com Subject: [AccessD] Help with locked table? Hello All, I have an A97 db that I cannot compact...message reads that either I or someone else is trying to edit the same data...I have isolated it to 1 table. I can copy the entire db...but I cannot import/copy/export...this one table without getting the same error. I ran the Repair successfully...and still have the issue... Any ideas/suggestions? Thanks, Mark A. Matte _________________________________________________________________ >From must-see cities to the best beaches, plan a getaway with the Spring Travel Guide! http://special.msn.com/local/springtravel.armx -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Stephen.Pickering at caremark.com Mon Apr 26 15:39:48 2004 From: Stephen.Pickering at caremark.com (Pickering, Stephen) Date: Mon, 26 Apr 2004 15:39:48 -0500 Subject: [AccessD] Help with locked table? Message-ID: Mark, Does the table have any OLE or Memo fields? If you look through the data, do you see any fields with "#Error" as the data? Steve -----Mark A Matte's Original Message----- Hello All, I have an A97 db that I cannot compact...message reads that either I or someone else is trying to edit the same data...I have isolated it to 1 table. I can copy the entire db...but I cannot import/copy/export...this one table without getting the same error. I ran the Repair successfully...and still have the issue... Any ideas/suggestions? Thanks, Mark A. Matte From tortise at paradise.net.nz Mon Apr 26 15:37:21 2004 From: tortise at paradise.net.nz (Tortise) Date: Tue, 27 Apr 2004 08:37:21 +1200 Subject: [AccessD] Help with locked table? References: Message-ID: <0d2201c42bce$466e7d40$1e00a8c0@cheqsoft.local> Dear Mark Out of interest does that table contain a memo field? The only one by chance? Kind regards David Hingston MB ChB MBA Director Chequers Software Ltd Wellington, New Zealand. http://www.cheqsoft.com CheqSoft is associated with the Technology Entrepreneur Centre Crafters of iconic system tray software: => Break Reminder - for safe and efficient PC use => TimesOwn - multi time zone clock and calculator => Clipboard Express - drag n drop database saves serious time => MP3Detective - MP3 player manager => Engines2go - faster Internet searching ____________________________________________________________ The information in this email and in any attachment (s) is confidential and may be legally privileged. If you are not the named addressee's) or if you receive this email in error then any distribution, copying or use of this communication or the information in it is strictly prohibited. Please notify the sender immediately by return email and then delete the message from your computer. Thank you for your assistance. ____________________________________________________________ ----- Original Message ----- From: Mark A Matte To: accessd at databaseadvisors.com Sent: Tuesday, April 27, 2004 8:11 AM Subject: [AccessD] Help with locked table? Hello All, I have an A97 db that I cannot compact...message reads that either I or someone else is trying to edit the same data...I have isolated it to 1 table. I can copy the entire db...but I cannot import/copy/export...this one table without getting the same error. I ran the Repair successfully...and still have the issue... Any ideas/suggestions? Thanks, Mark A. Matte _________________________________________________________________ >From must-see cities to the best beaches, plan a getaway with the Spring Travel Guide! http://special.msn.com/local/springtravel.armx -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pedro at plex.nl Mon Apr 26 16:07:19 2004 From: pedro at plex.nl (Pedro Janssen) Date: Mon, 26 Apr 2004 23:07:19 +0200 Subject: [AccessD] first caracter as Uppercase References: <2F8793082E00D4119A1700B0D0216BF802227B08@main2.marlow.com> Message-ID: <000701c42bd3$948451d0$f4c581d5@pedro> Hello Drew, thanks for your help. After changing: Dim rs As Recordset to Dim rs As DAO.Recordset everything worked perfect. Pedro Janssen ----- Original Message ----- From: To: Sent: Friday, April 23, 2004 12:32 AM Subject: RE: [AccessD] first caracter as Uppercase > How's this? > > Function SetAllDataToProperCase() > Dim tbldef As TableDef > Dim strSQL As String > Dim rs As Recordset > Dim i As Long > Dim FieldCheck As Boolean > For Each tbldef In CurrentDb.TableDefs > If Left(tbldef.Name, 4) <> "MSys" Then > 'Set a boolean to make sure we have fields to actually update > FieldCheck = False > strSQL = "UPDATE " & tbldef.Name & " SET " > Set rs = CurrentDb.OpenRecordset(tbldef.Name, dbOpenTable) > For i = 0 To rs.Fields.Count - 1 > If rs.Fields(i).Type = 10 Or rs.Fields(i).Type = 12 Then > 'we have a valid field > FieldCheck = True > strSQL = strSQL & "[" & rs.Fields(i).Name & "]=StrConv([" & > rs.Fields(i).Name & "],3), " > End If > Next i > If FieldCheck Then > strSQL = Left(strSQL, Len(strSQL) - 2) > CurrentDb.Execute strSQL > End If > End If > Next > MsgBox "Done" > End Function > > That will change ALL text data in your database (text and memo fields) > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Pedro Janssen > Sent: Thursday, April 22, 2004 4:54 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] first caracter as Uppercase > > > Hello Drew, > > how can i use this so that it sets all characters in all tables in a > database? > > Pedro Janssen > > > > > ----- Original Message ----- > From: > To: > Sent: Thursday, April 22, 2004 9:34 PM > Subject: RE: [AccessD] first caracter as Uppercase > > > > StrConv("this is a test",vbProperCase) > > > > > > results in: > > > > > > This Is A Test > > > > Drew > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Pedro Janssen > > Sent: Thursday, April 22, 2004 2:09 PM > > To: AccessD at databaseadvisors.com > > Subject: [AccessD] first caracter as Uppercase > > > > > > Hello Group, > > > > i have a code (thanks to Brett Barabash and Mark A Matte) that sets all > > characters in all tables to Lowercase. > > > > What i also would like to see is each character at the beginning of a word > > (each word that is separated by a space) is set to Uppercase in all Tables > > by just one code. > > Is this possible. Who can help me with this? > > > > TIA > > > > 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 DWUTKA at marlow.com Mon Apr 26 16:30:19 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Mon, 26 Apr 2004 16:30:19 -0500 Subject: [AccessD] first caracter as Uppercase Message-ID: <2F8793082E00D4119A1700B0D0216BF802227B1B@main2.marlow.com> Sorry, wrote it in 97....and on the fly, so I wasn't as careful as I should have been. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Pedro Janssen Sent: Monday, April 26, 2004 4:07 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] first caracter as Uppercase Hello Drew, thanks for your help. After changing: Dim rs As Recordset to Dim rs As DAO.Recordset everything worked perfect. Pedro Janssen ----- Original Message ----- From: To: Sent: Friday, April 23, 2004 12:32 AM Subject: RE: [AccessD] first caracter as Uppercase > How's this? > > Function SetAllDataToProperCase() > Dim tbldef As TableDef > Dim strSQL As String > Dim rs As Recordset > Dim i As Long > Dim FieldCheck As Boolean > For Each tbldef In CurrentDb.TableDefs > If Left(tbldef.Name, 4) <> "MSys" Then > 'Set a boolean to make sure we have fields to actually update > FieldCheck = False > strSQL = "UPDATE " & tbldef.Name & " SET " > Set rs = CurrentDb.OpenRecordset(tbldef.Name, dbOpenTable) > For i = 0 To rs.Fields.Count - 1 > If rs.Fields(i).Type = 10 Or rs.Fields(i).Type = 12 Then > 'we have a valid field > FieldCheck = True > strSQL = strSQL & "[" & rs.Fields(i).Name & "]=StrConv([" & > rs.Fields(i).Name & "],3), " > End If > Next i > If FieldCheck Then > strSQL = Left(strSQL, Len(strSQL) - 2) > CurrentDb.Execute strSQL > End If > End If > Next > MsgBox "Done" > End Function > > That will change ALL text data in your database (text and memo fields) > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Pedro Janssen > Sent: Thursday, April 22, 2004 4:54 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] first caracter as Uppercase > > > Hello Drew, > > how can i use this so that it sets all characters in all tables in a > database? > > Pedro Janssen > > > > > ----- Original Message ----- > From: > To: > Sent: Thursday, April 22, 2004 9:34 PM > Subject: RE: [AccessD] first caracter as Uppercase > > > > StrConv("this is a test",vbProperCase) > > > > > > results in: > > > > > > This Is A Test > > > > Drew > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Pedro Janssen > > Sent: Thursday, April 22, 2004 2:09 PM > > To: AccessD at databaseadvisors.com > > Subject: [AccessD] first caracter as Uppercase > > > > > > Hello Group, > > > > i have a code (thanks to Brett Barabash and Mark A Matte) that sets all > > characters in all tables to Lowercase. > > > > What i also would like to see is each character at the beginning of a word > > (each word that is separated by a space) is set to Uppercase in all Tables > > by just one code. > > Is this possible. Who can help me with this? > > > > TIA > > > > 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 martyconnelly at shaw.ca Mon Apr 26 16:15:16 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Mon, 26 Apr 2004 14:15:16 -0700 Subject: [AccessD] PrtDevMode in MDE References: <000001c42bb9$14826310$6401a8c0@COA3> Message-ID: <408D7BE4.8020002@shaw.ca> You might have a look at On the Fly Printing for Access from Attac Software http://ourworld.compuserve.com/homepages/attac-cg/acgsoft.htm Developer wrote: >I am trying to force some values into prtdevmode in a report at >runtime, but the code ive always used for this requires the report to be >manipulated in design view, which wont work in an MDE. >Specifically, there is a custom paper size on the pc (11 x 8.5) that I >want to hard-code to the report >Is there any way to do this in an MDE? > > > -- Marty Connelly Victoria, B.C. Canada From cfoust at infostatsystems.com Mon Apr 26 17:35:49 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 26 Apr 2004 15:35:49 -0700 Subject: [AccessD] List Box does not show all Message-ID: How many rows are you trying to display? Are you pushing the maximum that a listbox will display? Does it fix itself or does the user have to reconnect to the BE? I've seen odd behavior like that over a network with a flaky card in one machine, but I've also seen it when the machines had different service packs of Jet installed. Charlotte Foust -----Original Message----- From: Gregg [mailto:greggs at msn.com] Sent: Monday, April 26, 2004 8:25 AM To: Access Developers discussion and problem solving Subject: [AccessD] List Box does not show all What causes list boxes to no show the whole list? Seems to come and go. It shows up on all users so it must be either the link to the BE or the BE itself. Any ideas? Gregg Steinbrenner -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Mon Apr 26 19:55:53 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Mon, 26 Apr 2004 17:55:53 -0700 Subject: [AccessD] RE: jpg Screen shot In-Reply-To: <426071E0B0A6D311B3C0006008B0AB23AFE54B@TAPPEEXCH01> Message-ID: I have found that GIF and PNG files are virtually identical in compression size. I used Fireworks to compress files and had little difference in size or quality but...If you have to use screen shots, that have many tonal colours GIF/PNG files are not the correct format. The method that I use rendering large graphics objects smaller is: 1. Acquire all pictures at the largest format possible, in the best standard available, say in TIFF. 2. Never reduce greater than 50% without applying the 'Unsharp Mask'. 3. Reduce more, apply the mask and so on until the graphic is the right size. 4. Translate the object to either GIF or JPEG. I use Fireworks but I understand that ImageReady is equally as good. FW has a great export wizard, for optimizing the graphics for web use and I can see both the JPEG, GIF PNG results, side by side. The end result byte size can be preselected, the displayed images can be zoomed in and carefully checked and different what-if scenarios can be viewed, picking the number of colours, anti-aliasing, optimization, sharping, unused color removal, compression, adaptive colouring etc... I am still learning but the results are getting better all the time. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Brett Barabash Sent: Monday, April 26, 2004 11:13 AM To: accessd at databaseadvisors.com Subject: [AccessD] RE: jpg Screen shot Huh?! I was talking about screenshots, not website buttons. As I mentioned earlier, IMHO, 20-40 KB is tiny for a screenshot, considering it displays 100% of the original quality. I have yet to find another file format that can top this. Nevertheless, let's do a little test here. Using Microsoft PhotoDraw 2000 (tried it with MS Photo Editor as well with reasonably similar results): ----- Source: 66x109 pixel 24-bit photo bmp file (a poor choice for PNG compression) Original BMP: 21,854 bytes PNG (24-bit color): 10,128 bytes PNG (8-bit 256 color): 3,052 bytes GIF (8-bit 256 color): 3,118 bytes (both the 8 bit PNG and the 8 bit GIF looked awful i.e. loss of photo detail/color) ----- ----- Source: 61x41 pixel 16 color toolbar button (a perfect choice for PNG compression) Original BMP: 9,438 bytes PNG (24-bit color): 391 bytes PNG (8-bit 256 color): 1,084 bytes GIF (8-bit 256 color): 1,129 bytes (results were identical. In this case, the 24-bit pallette netted a smaller file size, since there were only 4 distinct colors in the photo. The 256 color pallette wasted the additional overhead). ----- Keep the following in mind: - Photos are poor candidates for PNG/zlib compression. PNG works best for files with large blocks of the same color (e.g. screenshots). - All programs are not created equally. Despite LIBPNG being offered to software vendors and the general public with a free no strings attached commercial license, there are several apps that do a half-assed job of handling PNG files *cough IE*. What program are you using to convert to PNG? -----Original Message----- From: Robert L. Stewart [mailto:rl_stewart at highstream.net] Sent: Monday, April 26, 2004 12:28 PM To: accessd at databaseadvisors.com Cc: BBarabash at tappeconstruction.com Subject: Re: jpg Screen shot Tiny file size my foot!!!! I had to convert all my PNG (Fireworks) files to GIF to get speed loading them as graphic buttons for a web site. 94k compared to 6k. PNG was not a viable choice. At 12:00 PM 4/26/2004 -0500, you wrote: >From: "Brett Barabash" >To: "'Access Developers discussion and problem solving'" > >Sent: Friday, April 16, 2004 9:42 AM >Subject: RE: [AccessD] jpg Screen shot > > > > By far, the absolute best format for screenshots is PNG. Near-infinite > > color range (handles 32-bit palettes with ease), lossless compression, and > > tiny file size. > > ---------------------------------------------------------------------------- ---------------------------------------- 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 Developer at UltraDNT.com Mon Apr 26 21:20:54 2004 From: Developer at UltraDNT.com (Developer) Date: Mon, 26 Apr 2004 22:20:54 -0400 Subject: [AccessD] PrtDevMode in MDE In-Reply-To: <408D7BE4.8020002@shaw.ca> Message-ID: <001b01c42bfe$48196d50$6401a8c0@COA3> Thanks, Marty. Being that this project is in A2k2 I was able to use the Report's Printers collection and properties. This article was a project-saver: http://msdn.microsoft.com/office/understanding/access/codesamples/defaul t.aspx?pull=/library/en-us/dnacc2k2/html/odc_acc10_printers.asp Steve -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MartyConnelly Sent: Monday, April 26, 2004 5:15 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] PrtDevMode in MDE You might have a look at On the Fly Printing for Access from Attac Software http://ourworld.compuserve.com/homepages/attac-cg/acgsoft.htm Developer wrote: >I am trying to force some values into prtdevmode in a report at >runtime, but the code ive always used for this requires the report to >be manipulated in design view, which wont work in an MDE. Specifically, >there is a custom paper size on the pc (11 x 8.5) that I want to >hard-code to the report Is there any way to do this in an MDE? > > > -- 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 bchacc at san.rr.com Tue Apr 27 00:08:28 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Mon, 26 Apr 2004 22:08:28 -0700 Subject: [AccessD] A2K MDE on A2002 References: Message-ID: <031b01c42c15$ae162a00$6601a8c0@HAL9002> John: Thanks. Will forward to my client so he can be aware of this problem. Regards, Rocky Smolin Beach Access Software http://www.e-z-mrp.com ----- Original Message ----- From: "John W. Colby" To: "Access Developers discussion and problem solving" Sent: Saturday, April 24, 2004 5:19 AM Subject: RE: [AccessD] A2K MDE on A2002 > Rocky, > > I think that this is exactly what is going on. I use a lib as you know. At > one client I have a mix of systems running A2K, AXP and A2003. I develop in > A2K. The non A2K systems REQUIRE a recompile of the lib AND the MDB that > uses the lib before they will run. I get a page fault otherwise. > > I do know that AXP and above install a new version of VB6. It appears that > this new DLL "breaks" the A2K apps. Recompiling with AXP uses that VB6 DLL > and "fixes" whatever the problem is. > > John W. Colby > www.ColbyConsulting.com > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - > Beach Access Software > Sent: Saturday, April 24, 2004 1:59 AM > To: AccessD at databaseadvisors.com > Subject: [AccessD] A2K MDE on A2002 > > > Dear List: > > I had a client call this morning installing a system at a customer site. He > took the mdb which was created in A2000, made an mde in A2000, then put that > mde on the customer's machine which was running A2002. It failed on opening > the first form with an error that indicated either a compile error or a > missing reference. > > So I had him put the A2000 mdb on the A2002 machine. Compiled fine. No > missing references. But the 'Make an MDE' button was grayed out. So I had > him convert this A2000 MDB to A2003. Then he could make an MDE and it ran > just fine. > > So is it the case that an A2000 MDE will not run on A2002 (or A2003)? > > MTIA > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Apr 26 23:36:04 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Tue, 27 Apr 2004 14:36:04 +1000 Subject: [AccessD] A2K: Getting incorrect date Message-ID: <01cb01c42c11$2682f7c0$48619a89@DDICK> Hello all Can anyone tell me why dtTimeElapsed is returning a crap date around 1900 or so? dtStartDate returns the expected date as does dtTodaysDate Many thanks Darren Dim dtStartDate As Date Dim dtTodaysDate As Date Dim dtTimeElapsed As Date dtStartDate = DLookup("[EnrolmentDate]", "tblStudentAwardAllocations", "[AwardID] = " _ & Forms!frmStudents!cmbAwards) dtTodaysDate = Date dtTimeElapsed = Format(DateDiff("y", [dtTodaysDate], [dtStartDate]), "m") MsgBox "EnrolDate = " & dtStartDate & vbCrLf _ & "Today = " & dtTodaysDate & vbCrLf _ & "elapsed = " & dtTimeElapsed From paul.hartland at fsmail.net Tue Apr 27 03:28:47 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 27 Apr 2004 10:28:47 +0200 (CEST) Subject: [AccessD] OT - ASP & HTML Logon Message-ID: <16160288.1083054527817.JavaMail.www@wwinf3004> To all, Really sorry for the OT but don?t know any good ASP/HTML lists. I am starting to get into writing HTML & ASP (gulp), I have created a HTML logon page (very very very basic) which when you click the Submit button calls an ASP page called CheckLogin.asp (see HTML code below): Orridge Reporting Logon
Username:

Password:

The problem being that when the submit button is pressed it tries to download the page instead of checking the username against my database. Does anyone know what the problem could be ? Thanks in advance for any help on this. Paul Hartland Database Designer/Developer (and a total novice in WEB development). Join the UK's number one for the internet www.freeserve.com/time From gustav at cactus.dk Tue Apr 27 03:52:22 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 27 Apr 2004 10:52:22 +0200 Subject: [AccessD] A2K: Getting incorrect date In-Reply-To: <01cb01c42c11$2682f7c0$48619a89@DDICK> References: <01cb01c42c11$2682f7c0$48619a89@DDICK> Message-ID: <7910230741.20040427105222@cactus.dk> Hi Darren DateDiff("y", ..) - or rather DateDiff("d", ..) - returns a number of days. That is not a date. If you wish a difference in months, use DateDiff("m", ..). However, that will return one month even if the first date is the last day of one month and the second date is the first day of the next month. If you need the count of full months, I have a function which does that. /gustav > Can anyone tell me why dtTimeElapsed is returning a crap date around 1900 or so? > dtStartDate returns the expected date as does dtTodaysDate > Many thanks > Darren > Dim dtStartDate As Date > Dim dtTodaysDate As Date > Dim dtTimeElapsed As Date > dtStartDate = DLookup("[EnrolmentDate]", "tblStudentAwardAllocations", "[AwardID] = " _ > & Forms!frmStudents!cmbAwards) > dtTodaysDate = Date > dtTimeElapsed = Format(DateDiff("y", [dtTodaysDate], [dtStartDate]), "m") > MsgBox "EnrolDate = " & dtStartDate & vbCrLf _ > & "Today = " & dtTodaysDate & vbCrLf _ > & "elapsed = " & dtTimeElapsed From stuart at lexacorp.com.pg Tue Apr 27 05:29:58 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 27 Apr 2004 20:29:58 +1000 Subject: [AccessD] A2K: Getting incorrect date In-Reply-To: <01cb01c42c11$2682f7c0$48619a89@DDICK> Message-ID: <408EC2C6.4554.2E3D660@localhost> On 27 Apr 2004 at 14:36, Darren DICK wrote: > Hello all > Can anyone tell me why dtTimeElapsed is returning a crap date around 1900 or so? > dtStartDate returns the expected date as does dtTodaysDate > Many thanks > > > Dim dtStartDate As Date > Dim dtTodaysDate As Date > Dim dtTimeElapsed As Date > Because an elapsed period is not a date. It is a number. DateDiff() returns *number* of time periods Dim dtTimeElapsed as a long to get the number of the time periods specified by the first paramter of DateDiff. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From wdhindman at bellsouth.net Tue Apr 27 05:51:39 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Tue, 27 Apr 2004 06:51:39 -0400 Subject: [AccessD] Access Address to Map in Browser References: <408EC2C6.4554.2E3D660@localhost> Message-ID: <000b01c42c45$9ea3d880$6101a8c0@dejpolsys> Group ...in Outlook, I can open a map of a contact's address in a browser directly from Outlook as follows: a) select Contacts on the Outlook Bar or in the folder list. b) select contact whose address I want to locate. c) File/Open/Selected Items. d) Under the Address button, click the arrow, and then click the type of address I want to find on the map (Business/Home/Other). e) Actions/Display Map of Address. ...my browser opens to Find a Map at mappoint.msn.com with a push-pin marking the location of the address. ...has anyone done anything like this via code from Access? ...without using Outlook? William Hindman "Always code as if the person who is maintaining or testing your code is a violent psychopath who knows where you live." William Silverstein From rbgajewski at adelphia.net Tue Apr 27 07:16:41 2004 From: rbgajewski at adelphia.net (Bob Gajewski) Date: Tue, 27 Apr 2004 08:16:41 -0400 Subject: [AccessD] Access Address to Map in Browser In-Reply-To: <000b01c42c45$9ea3d880$6101a8c0@dejpolsys> Message-ID: William I have a jobs database that creates automatic hyperlinked command buttons with specific labels that can go to a map system (I think it's Yahoo, not Mapquest, but the theory is the same) and to the local weather for that address. I will post the code in about an hour or so, after my client meeting this morning. Regards, Bob Gajewski -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of William Hindman Sent: Tuesday, April 27, 2004 06:52 To: Access Developers discussion and problem solving Subject: [AccessD] Access Address to Map in Browser Group ...in Outlook, I can open a map of a contact's address in a browser directly from Outlook as follows: a) select Contacts on the Outlook Bar or in the folder list. b) select contact whose address I want to locate. c) File/Open/Selected Items. d) Under the Address button, click the arrow, and then click the type of address I want to find on the map (Business/Home/Other). e) Actions/Display Map of Address. ...my browser opens to Find a Map at mappoint.msn.com with a push-pin marking the location of the address. ...has anyone done anything like this via code from Access? ...without using Outlook? William Hindman "Always code as if the person who is maintaining or testing your code is a violent psychopath who knows where you live." William Silverstein -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From michael.broesdorf at web.de Tue Apr 27 07:33:01 2004 From: michael.broesdorf at web.de (=?iso-8859-1?Q?Michael_Br=F6sdorf?=) Date: Tue, 27 Apr 2004 14:33:01 +0200 Subject: [AccessD] Strange problem with reports In-Reply-To: Message-ID: Hi all, I am having a strange problem with reports in an Access 2003 application: The app is running on a Citrix Metaframe XP server. The report is opened in print preview. If I change something in the page setup (e.g. paper size or margins), an error message shows up when the report is closed or saves (CTRL-S): 'You can't set the Event Proc Prefix property in print preview or after printing has started. Try setting this property in the OnOpen event.' None of my code tries to change that property. What could that be? Michael From andy at minstersystems.co.uk Tue Apr 27 08:49:53 2004 From: andy at minstersystems.co.uk (Andy Lacey) Date: Tue, 27 Apr 2004 13:49:53 +0000 Subject: [AccessD] Access Address to Map in Browser Message-ID: <20040427124951.1F9BD25362F@smtp.nildram.co.uk> Yep, but I'm afraid it uses the Map24.Com website which is good for Europe but not the US. I have a country table which holds the Map24 country code (some differ from mine) in CT_MAPCODE. So I pass the routine my country code and the Postal Code and, optionally, a description (eg company name) which appears at the top of the map. It then plugs this info into the Map24 plotting URL and bob's your uncle. FWIW here's the function (watch the wrapping): Function MapIt(strCountry As String, varPcode As Variant, Optional varDesc As String) Dim varMapCode As Variant Dim strLink As String If Not IsNull(varPcode) Then varMapCode = DLookup("CT_MAPCODE", "CTRY", "CT_CODE='" & strCountry & "'") If Not IsNull(varMapCode) Then strLink = "http://link2.map24.com/?lid=0cb4a937&maptype=JAVA&street0=&zip0=" & varPcode & "&city0=&country0=" & varMapCode & "&description0=" & varDesc & "&lang=en" Call RunApp(strLink, 1) End If End If End Function -- Andy Lacey http://www.minstersystems.co.uk --------- Original Message -------- From: Access Developers discussion and problem solving To: Access Developers discussion and problem solving Subject: [AccessD] Access Address to Map in Browser Date: 27/04/04 10:53 > > Group > > ....in Outlook, I can open a map of a contact's address in a browser > directly from Outlook as follows: > > a) select Contacts on the Outlook Bar or in the folder list. > b) select contact whose address I want to locate. > c) File/Open/Selected Items. > d) Under the Address button, click the arrow, and then click the type of > address I want to find on the map (Business/Home/Other). > e) Actions/Display Map of Address. > > ....my browser opens to Find a Map at mappoint.msn.com with a push-pin > marking the location of the address. > > ....has anyone done anything like this via code from Access? ...without using > Outlook? > > William Hindman > "Always code as if the person who is maintaining or testing your code is > a violent psychopath who knows where you live." William Silverstein > > > -- > _______________________________________________ > 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 Lambert.Heenan at AIG.com Tue Apr 27 08:58:14 2004 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 27 Apr 2004 09:58:14 -0400 Subject: [AccessD] Strange problem with reports Message-ID: <8B98F8EA48F8BA47A2F24E0D0AF40CF407AD8231@xlivmbx12.aig.com> When weird stuff like that starts happening I say, back up the database and then decompile it. If that does not solve the problem then it's probably time to start a new database and import all the objects in you problem database. The report in question may be corrupt and so may not import. It will have to be rebuilt from scratch. FWIW Lambert > -----Original Message----- > From: Michael Br?sdorf [SMTP:michael.broesdorf at web.de] > Sent: Tuesday, April 27, 2004 8:33 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Strange problem with reports > > Hi all, > > I am having a strange problem with reports in an Access 2003 application: > > The app is running on a Citrix Metaframe XP server. The report is opened > in > print preview. If I change something in the page setup (e.g. paper size or > margins), an error message shows up when the report is closed or saves > (CTRL-S): > > 'You can't set the Event Proc Prefix property in print preview or after > printing has started. > Try setting this property in the OnOpen event.' > > None of my code tries to change that property. > > What could that be? > > Michael > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From greggs at msn.com Tue Apr 27 09:25:01 2004 From: greggs at msn.com (Gregg) Date: Tue, 27 Apr 2004 09:25:01 -0500 Subject: [AccessD] List Box does not show all In-Reply-To: Message-ID: The list box is trying to display 36 rows but only shows 23. The query behind the list is showing 36. It's seven columns wide. I thinks all users are using the same version of A97. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Monday, April 26, 2004 5:36 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] List Box does not show all How many rows are you trying to display? Are you pushing the maximum that a listbox will display? Does it fix itself or does the user have to reconnect to the BE? I've seen odd behavior like that over a network with a flaky card in one machine, but I've also seen it when the machines had different service packs of Jet installed. Charlotte Foust -----Original Message----- From: Gregg [mailto:greggs at msn.com] Sent: Monday, April 26, 2004 8:25 AM To: Access Developers discussion and problem solving Subject: [AccessD] List Box does not show all What causes list boxes to no show the whole list? Seems to come and go. It shows up on all users so it must be either the link to the BE or the BE itself. Any ideas? Gregg Steinbrenner -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Tue Apr 27 09:22:44 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Tue, 27 Apr 2004 10:22:44 -0400 Subject: [AccessD] List Box does not show all In-Reply-To: Message-ID: <20040427142244.ZPSR1773.imf22aec.mail.bellsouth.net@SUSANONE> Where are the list items coming from? Sounds like you're using a Table/Query list, so this wouldn't be the problem, but a Value list is limited in the number of characters, and with 7 columns, you might have reached it -- if you're using a Value list. Susan H. The list box is trying to display 36 rows but only shows 23. The query behind the list is showing 36. It's seven columns wide. I thinks all users are using the same version of A97. From accessd at shaw.ca Tue Apr 27 09:50:07 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Tue, 27 Apr 2004 07:50:07 -0700 Subject: [AccessD] OT - ASP & HTML Logon In-Reply-To: <16160288.1083054527817.JavaMail.www@wwinf3004> Message-ID: Hi Paul: There is so much to say I do not know where to start. If your questions have not been answered today I will take a closer look this evening. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of paul.hartland at fsmail.net Sent: Tuesday, April 27, 2004 1:29 AM To: accessd Subject: [AccessD] OT - ASP & HTML Logon To all, Really sorry for the OT but don?t know any good ASP/HTML lists. I am starting to get into writing HTML & ASP (gulp), I have created a HTML logon page (very very very basic) which when you click the Submit button calls an ASP page called CheckLogin.asp (see HTML code below): Orridge Reporting Logon
Username:

Password:

The problem being that when the submit button is pressed it tries to download the page instead of checking the username against my database. Does anyone know what the problem could be ? Thanks in advance for any help on this. Paul Hartland Database Designer/Developer (and a total novice in WEB development). Join the UK's number one for the internet www.freeserve.com/time -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From paul.hartland at fsmail.net Tue Apr 27 10:05:23 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 27 Apr 2004 17:05:23 +0200 (CEST) Subject: [AccessD] OT - ASP & HTML Logon Message-ID: <14186419.1083078323359.JavaMail.www@wwinf3002> Jim, Still waiting thanks Paul Message date : Apr 27 2004, 04:01 PM >From : "Jim Lawrence (AccessD)" To : "Access Developers discussion and problem solving" Copy to : Subject : RE: [AccessD] OT - ASP & HTML Logon Hi Paul: There is so much to say I do not know where to start. If your questions have not been answered today I will take a closer look this evening. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of paul.hartland at fsmail.net Sent: Tuesday, April 27, 2004 1:29 AM To: accessd Subject: [AccessD] OT - ASP & HTML Logon To all, Really sorry for the OT but don?t know any good ASP/HTML lists. I am starting to get into writing HTML & ASP (gulp), I have created a HTML logon page (very very very basic) which when you click the Submit button calls an ASP page called CheckLogin.asp (see HTML code below): Username: Password: The problem being that when the submit button is pressed it tries to download the page instead of checking the username against my database. Does anyone know what the problem could be ? Thanks in advance for any help on this. Paul Hartland Database Designer/Developer (and a total novice in WEB development). Join the UK's number one for the internet www.freeserve.com/time -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com Join the UK's number one for the internet www.freeserve.com/time From rbgajewski at adelphia.net Tue Apr 27 10:47:16 2004 From: rbgajewski at adelphia.net (Bob Gajewski) Date: Tue, 27 Apr 2004 11:47:16 -0400 Subject: [AccessD] Access Address to Map in Browser - LENGTHY REPLY In-Reply-To: <000b01c42c45$9ea3d880$6101a8c0@dejpolsys> Message-ID: William: I placed two command buttons (cmdMap and cmdWeather) on my form and controlled their value, caption and enabled state through code. This also uses a US zip code database to automatically populate the Municipality and StateCode fields. ********************************************* Private Sub Form_Current() If IsNull([txtJobMunicipalityName]) Or _ IsNull([txtJobStateCode]) Or _ IsNull([txtJobZipCode]) Or _ [txtJobMunicipalityName] = "" Or _ [txtJobStateCode] = "" Or _ [txtJobZipCode] = "" Then cmdMap.Enabled = False cmdMap.Caption = "Local map not available - address incomplete" cmdWeather.Enabled = False cmdWeather.Caption = "Local weather not available - address incomplete" Else cmdMap.Enabled = True cmdWeather.Enabled = True End If If Not IsNull([txtJobZipCode]) And [txtJobZipCode] <> "" Then cmdMap.HyperlinkAddress = "http://www.mapquest.com/maps/map.adp?country=US&addtohistory=&address=" & [txtJobAddress] & "&city=" & [txtJobMunicipalityName] & "&state=" & [txtJobStateCode] & "&zipcode=" & [txtJobZipCode] & "&homesubmit.x=30&homesubmit.y=14" cmdMap.Caption = "View local map for " & [txtJobMunicipalityName] & ", " & [txtJobStateCode] cmdWeather.HyperlinkAddress = "http://www.weather.com/weather/local/" & [txtJobZipCode] & "?whatprefs=" cmdWeather.Caption = "Check local weather in " & [txtJobMunicipalityName] & ", " & [txtJobStateCode] End If End Sub ********************************************* Private Sub txtJobMunicipalityName_AfterUpdate() If IsNull([txtJobStateCode]) Or [txtJobStateCode] = "" Then Me.txtJobStateCode.SetFocus End If If IsNull([txtJobMunicipalityName]) Or _ IsNull([txtJobStateCode]) Or _ IsNull([txtJobZipCode]) Or _ [txtJobMunicipalityName] = "" Or _ [txtJobStateCode] = "" Or _ [txtJobZipCode] = "" Then cmdMap.Enabled = False cmdMap.Caption = "Local map not available - address incomplete" cmdWeather.Enabled = False cmdWeather.Caption = "Local weather not available - address incomplete" Else cmdMap.Enabled = True cmdWeather.Enabled = True End If End Sub ********************************************* Private Sub txtJobStateCode_AfterUpdate() If IsNull([txtJobMunicipalityName]) Or _ IsNull([txtJobStateCode]) Or _ IsNull([txtJobZipCode]) Or _ [txtJobMunicipalityName] = "" Or _ [txtJobStateCode] = "" Or _ [txtJobZipCode] = "" Then cmdMap.Enabled = False cmdMap.Caption = "Local map not available - address incomplete" cmdWeather.Enabled = False cmdWeather.Caption = "Local weather not available - address incomplete" Else cmdMap.Enabled = True cmdWeather.Enabled = True End If End Sub ********************************************* Private Sub txtJobZipCode_AfterUpdate() Dim varCMN, varCSC varCMN = DLookup("[txtMunicipalityName]", "tblZipCodes", "[tblZipCodes].[txtZipCode] = '" & [txtJobZipCode] & "'") varCSC = DLookup("[txtStateCode]", "tblZipCodes", "[tblZipCodes].[txtZipCode] = '" & [txtJobZipCode] & "'") If Not IsNull(varCMN) Then Me.txtJobMunicipalityName = varCMN Me.txtJobStateCode = varCSC Else MsgBox "The zip code entered is not on file. Input the municipality name and select the state." Me.txtJobMunicipalityName = Null Me.txtJobStateCode = Null Me.txtJobMunicipalityName.SetFocus End If If IsNull([txtJobMunicipalityName]) Or _ IsNull([txtJobStateCode]) Or _ IsNull([txtJobZipCode]) Or _ [txtJobMunicipalityName] = "" Or _ [txtJobStateCode] = "" Or _ [txtJobZipCode] = "" Then cmdMap.Enabled = False cmdMap.Caption = "Local map not available - address incomplete" cmdWeather.Enabled = False cmdWeather.Caption = "Local weather not available - address incomplete" Else cmdMap.Enabled = True cmdWeather.Enabled = True End If If Not IsNull([txtJobZipCode]) And [txtJobZipCode] <> "" Then cmdMap.HyperlinkAddress = "http://www.mapquest.com/maps/map.adp?country=US&addtohistory=&address=" & [txtJobAddress] & "&city=" & [txtJobMunicipalityName] & "&state=" & [txtJobStateCode] & "&zipcode=" & [txtJobZipCode] & "&homesubmit.x=30&homesubmit.y=14" cmdMap.Caption = "View local map for " & [txtJobMunicipalityName] & ", " & [txtJobStateCode] cmdWeather.HyperlinkAddress = "http://www.weather.com/weather/local/" & [txtJobZipCode] & "?whatprefs=" cmdWeather.Caption = "Check local weather in " & [txtJobMunicipalityName] & ", " & [txtJobStateCode] End If End Sub ********************************************* -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of William Hindman Sent: Tuesday, April 27, 2004 06:52 To: Access Developers discussion and problem solving Subject: [AccessD] Access Address to Map in Browser Group ...in Outlook, I can open a map of a contact's address in a browser directly from Outlook as follows: a) select Contacts on the Outlook Bar or in the folder list. b) select contact whose address I want to locate. c) File/Open/Selected Items. d) Under the Address button, click the arrow, and then click the type of address I want to find on the map (Business/Home/Other). e) Actions/Display Map of Address. ...my browser opens to Find a Map at mappoint.msn.com with a push-pin marking the location of the address. ...has anyone done anything like this via code from Access? ...without using Outlook? William Hindman "Always code as if the person who is maintaining or testing your code is a violent psychopath who knows where you live." William Silverstein -- _______________________________________________ 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 Apr 27 11:19:34 2004 From: dw-murphy at cox.net (Doug Murphy) Date: Tue, 27 Apr 2004 09:19:34 -0700 Subject: [AccessD] OT - ASP & HTML Logon In-Reply-To: <16160288.1083054527817.JavaMail.www@wwinf3004> Message-ID: <001301c42c73$6d7c9980$8500a8c0@CX615377a> One good resource is http://www.4guysfromrolla.com/. Doug Douglas Murphy Murphy's Creativity (619) 334-5121 doug at murphyscreativity.com www.murphyscreativity.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of paul.hartland at fsmail.net Sent: Tuesday, April 27, 2004 1:29 AM To: accessd Subject: [AccessD] OT - ASP & HTML Logon To all, Really sorry for the OT but don't know any good ASP/HTML lists. I am starting to get into writing HTML & ASP (gulp), I have created a HTML logon page (very very very basic) which when you click the Submit button calls an ASP page called CheckLogin.asp (see HTML code below): Orridge Reporting Logon
Username:

Password:

The problem being that when the submit button is pressed it tries to download the page instead of checking the username against my database. Does anyone know what the problem could be ? Thanks in advance for any help on this. Paul Hartland Database Designer/Developer (and a total novice in WEB development). Join the UK's number one for the internet www.freeserve.com/time -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From lister at actuarial-files.com Tue Apr 27 11:21:59 2004 From: lister at actuarial-files.com (Ralf Lister) Date: Tue, 27 Apr 2004 12:21:59 -0400 Subject: [AccessD] OT - ASP & HTML Logon References: <16160288.1083054527817.JavaMail.www@wwinf3004> Message-ID: <006e01c42c73$db2ee000$13976bce@ralf> Dear Paul, sorry I'm a little bit late (as always). All seems that the code you have given, you saved as ASP-Page. Save it as HTML-Page. Then it'll work (I tried it on my PWS). However, it'll not redirect to any other page, it just takes the Username and Password. For going to another page after the login (to test if you are authorized), you have to add: <% response.redirect "The_next_page.asp" %> BTW, ASP-Pages don't run without server! HTH Ralf Saludos de un Bolivia en peligro ----- Original Message ----- From: To: "accessd" Sent: Tuesday, April 27, 2004 4:28 AM Subject: [AccessD] OT - ASP & HTML Logon To all, Really sorry for the OT but don't know any good ASP/HTML lists. I am starting to get into writing HTML & ASP (gulp), I have created a HTML logon page (very very very basic) which when you click the Submit button calls an ASP page called CheckLogin.asp (see HTML code below): Orridge Reporting Logon
Username:

Password:

The problem being that when the submit button is pressed it tries to download the page instead of checking the username against my database. Does anyone know what the problem could be ? Thanks in advance for any help on this. Paul Hartland Database Designer/Developer (and a total novice in WEB development). Join the UK's number one for the internet www.freeserve.com/time -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From greggs at msn.com Tue Apr 27 12:12:55 2004 From: greggs at msn.com (Gregg) Date: Tue, 27 Apr 2004 12:12:55 -0500 Subject: [AccessD] List Box does not show all In-Reply-To: <20040427142244.ZPSR1773.imf22aec.mail.bellsouth.net@SUSANONE> Message-ID: Susan, It's a table... here's the source... SELECT DISTINCTROW [PLastName]+", "+[PFirstName] AS PatientName, PatientTbl.Address, PatientTbl.City, PatientTbl.Zip, PatientTbl.Phone, PatientTbl.AdmittingNurse, DateDiff("h",Format([ReferralDate],"mm/dd/yy") & " " & Format([HourOfReferal],"hh:nn:ss"),Format(Now(),"mm/dd/yy hh:nn:ss")) AS HoursSinceReferral, PatientTbl.PatientID FROM PatientTbl WHERE ((([PLastName]+", "+[PFirstName]) Is Not Null) AND ((PatientTbl.DenialReason) Is Null) AND ((PatientTbl.dateServiceStart) Is Null)); -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Susan Harkins Sent: Tuesday, April 27, 2004 9:23 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] List Box does not show all Where are the list items coming from? Sounds like you're using a Table/Query list, so this wouldn't be the problem, but a Value list is limited in the number of characters, and with 7 columns, you might have reached it -- if you're using a Value list. Susan H. The list box is trying to display 36 rows but only shows 23. The query behind the list is showing 36. It's seven columns wide. I thinks all users are using the same version of A97. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Tue Apr 27 12:41:45 2004 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 27 Apr 2004 10:41:45 -0700 Subject: [AccessD] List Box does not show all Message-ID: So if you paste that SQL into a query, you get a different number of row than what shows in the combo? Charlotte Foust -----Original Message----- From: Gregg [mailto:greggs at msn.com] Sent: Tuesday, April 27, 2004 9:13 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] List Box does not show all Susan, It's a table... here's the source... SELECT DISTINCTROW [PLastName]+", "+[PFirstName] AS PatientName, PatientTbl.Address, PatientTbl.City, PatientTbl.Zip, PatientTbl.Phone, PatientTbl.AdmittingNurse, DateDiff("h",Format([ReferralDate],"mm/dd/yy") & " " & Format([HourOfReferal],"hh:nn:ss"),Format(Now(),"mm/dd/yy hh:nn:ss")) AS HoursSinceReferral, PatientTbl.PatientID FROM PatientTbl WHERE ((([PLastName]+", "+[PFirstName]) Is Not Null) AND ((PatientTbl.DenialReason) Is Null) AND ((PatientTbl.dateServiceStart) Is Null)); -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Susan Harkins Sent: Tuesday, April 27, 2004 9:23 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] List Box does not show all Where are the list items coming from? Sounds like you're using a Table/Query list, so this wouldn't be the problem, but a Value list is limited in the number of characters, and with 7 columns, you might have reached it -- if you're using a Value list. Susan H. The list box is trying to display 36 rows but only shows 23. The query behind the list is showing 36. It's seven columns wide. I thinks all users are using the same version of A97. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From my.lists at verizon.net Tue Apr 27 12:49:25 2004 From: my.lists at verizon.net (Francisco H Tapia) Date: Tue, 27 Apr 2004 10:49:25 -0700 Subject: [AccessD] Query fails when using NOT IN ??? In-Reply-To: <1387056546.20040423104132@cactus.dk> References: <657FB70438B7D311AF320090279C18010614418F@EXCHMAIL> <322806795.20040422090018@cactus.dk> <408827CE.7060601@verizon.net> <1387056546.20040423104132@cactus.dk> Message-ID: <408E9D25.8090609@verizon.net> Gustav Brock said the following on 4/23/2004 1:41 AM: >But Christopher didn't refer to SQL Server, that's why I thought it >would be more relevant to show that this bug is non-existing in Jet SQL. > > The reason this is even mentioned is because the IN bug is not a SQL Server bug at all but an ANSI SQL standard behavior and is even mentioned in a KB article here http://support.microsoft.com/default.aspx?scid=kb;en-us;298674 or (http://tinyurl.com/35zgr) >Further, I guess including the where clause will perform much slower? >If you really need to do that, couldn't this do (I have no SQL Server >to play with): > > au_id IN > (SELECT au_id FROM Publishers WHERE Publishers.au_id Is Not Null) > >/gustav > > > > also accoring to the article fully qualifying the column name clears this problem up, which I tested and confirmed. -- -Francisco From gustav at cactus.dk Tue Apr 27 14:34:10 2004 From: gustav at cactus.dk (Gustav Brock) Date: Tue, 27 Apr 2004 21:34:10 +0200 Subject: [AccessD] Query fails when using NOT IN ??? In-Reply-To: <408E9D25.8090609@verizon.net> References: <657FB70438B7D311AF320090279C18010614418F@EXCHMAIL> <322806795.20040422090018@cactus.dk> <408827CE.7060601@verizon.net> <1387056546.20040423104132@cactus.dk> <408E9D25.8090609@verizon.net> Message-ID: <1448738802.20040427213410@cactus.dk> Hi Francisco OK, thanks for the clarification. /gustav >>But Christopher didn't refer to SQL Server, that's why I thought it >>would be more relevant to show that this bug is non-existing in Jet SQL. >> >> > The reason this is even mentioned is because the IN bug is not a SQL > Server bug at all but an ANSI SQL standard behavior and is even > mentioned in a KB article here > http://support.microsoft.com/default.aspx?scid=kb;en-us;298674 > or (http://tinyurl.com/35zgr) >>Further, I guess including the where clause will perform much slower? >>If you really need to do that, couldn't this do (I have no SQL Server >>to play with): >> >> au_id IN >> (SELECT au_id FROM Publishers WHERE Publishers.au_id Is Not Null) >> >>/gustav >> >> >> >> > also accoring to the article fully qualifying the column name clears > this problem up, which I tested and confirmed. > -- > -Francisco From greggs at msn.com Tue Apr 27 15:04:15 2004 From: greggs at msn.com (Gregg) Date: Tue, 27 Apr 2004 15:04:15 -0500 Subject: [AccessD] List Box does not show all In-Reply-To: Message-ID: Yes... that's true. Here's a recap of the facts. 1. The problem comes and goes. It happened a couple of weeks ago but by the time they went to show it to me it was gone. I didn't believe them of course until it happened again this week and I could see it. I fooled with it and it went away but when I undid my changes it didn't come back... very weird. I've seen this before at another customer using A97 where the list would go from say "A" to "M" and that's all. That was a much longer list but only 2 columns wide. 2. When it happens it happens everywhere -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Tuesday, April 27, 2004 12:42 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] List Box does not show all So if you paste that SQL into a query, you get a different number of row than what shows in the combo? Charlotte Foust -----Original Message----- From: Gregg [mailto:greggs at msn.com] Sent: Tuesday, April 27, 2004 9:13 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] List Box does not show all Susan, It's a table... here's the source... SELECT DISTINCTROW [PLastName]+", "+[PFirstName] AS PatientName, PatientTbl.Address, PatientTbl.City, PatientTbl.Zip, PatientTbl.Phone, PatientTbl.AdmittingNurse, DateDiff("h",Format([ReferralDate],"mm/dd/yy") & " " & Format([HourOfReferal],"hh:nn:ss"),Format(Now(),"mm/dd/yy hh:nn:ss")) AS HoursSinceReferral, PatientTbl.PatientID FROM PatientTbl WHERE ((([PLastName]+", "+[PFirstName]) Is Not Null) AND ((PatientTbl.DenialReason) Is Null) AND ((PatientTbl.dateServiceStart) Is Null)); -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Susan Harkins Sent: Tuesday, April 27, 2004 9:23 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] List Box does not show all Where are the list items coming from? Sounds like you're using a Table/Query list, so this wouldn't be the problem, but a Value list is limited in the number of characters, and with 7 columns, you might have reached it -- if you're using a Value list. Susan H. The list box is trying to display 36 rows but only shows 23. The query behind the list is showing 36. It's seven columns wide. I thinks all users are using the same version of A97. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at bellsouth.net Tue Apr 27 16:09:56 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Tue, 27 Apr 2004 17:09:56 -0400 Subject: [AccessD] Access Address to Map in Browser - LENGTHY REPLY References: Message-ID: <000801c42c9c$12ae2720$6101a8c0@dejpolsys> ...terrific Bob! ...between you and Andy I've got exactly what I need ...AccessD rules! :))))))) William Hindman "Always code as if the person who is maintaining or testing your code is a violent psychopath who knows where you live." William Silverstein ----- Original Message ----- From: "Bob Gajewski" To: "Access Developers discussion and problem solving" Sent: Tuesday, April 27, 2004 11:47 AM Subject: RE: [AccessD] Access Address to Map in Browser - LENGTHY REPLY > William: > > I placed two command buttons (cmdMap and cmdWeather) on my form and > controlled their value, caption and enabled state through code. This also > uses a US zip code database to automatically populate the Municipality and > StateCode fields. > > > ********************************************* > Private Sub Form_Current() > If IsNull([txtJobMunicipalityName]) Or _ > IsNull([txtJobStateCode]) Or _ > IsNull([txtJobZipCode]) Or _ > [txtJobMunicipalityName] = "" Or _ > [txtJobStateCode] = "" Or _ > [txtJobZipCode] = "" Then > cmdMap.Enabled = False > cmdMap.Caption = "Local map not available - address incomplete" > cmdWeather.Enabled = False > cmdWeather.Caption = "Local weather not available - address incomplete" > Else > cmdMap.Enabled = True > cmdWeather.Enabled = True > End If > > If Not IsNull([txtJobZipCode]) And [txtJobZipCode] <> "" Then > cmdMap.HyperlinkAddress = > "http://www.mapquest.com/maps/map.adp?country=US&addtohistory=&address=" & > [txtJobAddress] & "&city=" & [txtJobMunicipalityName] & "&state=" & > [txtJobStateCode] & "&zipcode=" & [txtJobZipCode] & > "&homesubmit.x=30&homesubmit.y=14" > cmdMap.Caption = "View local map for " & [txtJobMunicipalityName] & ", " > & [txtJobStateCode] > cmdWeather.HyperlinkAddress = "http://www.weather.com/weather/local/" & > [txtJobZipCode] & "?whatprefs=" > cmdWeather.Caption = "Check local weather in " & > [txtJobMunicipalityName] & ", " & [txtJobStateCode] > End If > End Sub > ********************************************* > Private Sub txtJobMunicipalityName_AfterUpdate() > If IsNull([txtJobStateCode]) Or [txtJobStateCode] = "" Then > Me.txtJobStateCode.SetFocus > End If > If IsNull([txtJobMunicipalityName]) Or _ > IsNull([txtJobStateCode]) Or _ > IsNull([txtJobZipCode]) Or _ > [txtJobMunicipalityName] = "" Or _ > [txtJobStateCode] = "" Or _ > [txtJobZipCode] = "" Then > cmdMap.Enabled = False > cmdMap.Caption = "Local map not available - address incomplete" > cmdWeather.Enabled = False > cmdWeather.Caption = "Local weather not available - address incomplete" > Else > cmdMap.Enabled = True > cmdWeather.Enabled = True > End If > End Sub > ********************************************* > Private Sub txtJobStateCode_AfterUpdate() > If IsNull([txtJobMunicipalityName]) Or _ > IsNull([txtJobStateCode]) Or _ > IsNull([txtJobZipCode]) Or _ > [txtJobMunicipalityName] = "" Or _ > [txtJobStateCode] = "" Or _ > [txtJobZipCode] = "" Then > cmdMap.Enabled = False > cmdMap.Caption = "Local map not available - address incomplete" > cmdWeather.Enabled = False > cmdWeather.Caption = "Local weather not available - address incomplete" > Else > cmdMap.Enabled = True > cmdWeather.Enabled = True > End If > End Sub > ********************************************* > Private Sub txtJobZipCode_AfterUpdate() > Dim varCMN, varCSC > varCMN = DLookup("[txtMunicipalityName]", "tblZipCodes", > "[tblZipCodes].[txtZipCode] = '" & [txtJobZipCode] & "'") > varCSC = DLookup("[txtStateCode]", "tblZipCodes", > "[tblZipCodes].[txtZipCode] = '" & [txtJobZipCode] & "'") > If Not IsNull(varCMN) Then > Me.txtJobMunicipalityName = varCMN > Me.txtJobStateCode = varCSC > Else > MsgBox "The zip code entered is not on file. Input the municipality name > and select the state." > Me.txtJobMunicipalityName = Null > Me.txtJobStateCode = Null > Me.txtJobMunicipalityName.SetFocus > End If > If IsNull([txtJobMunicipalityName]) Or _ > IsNull([txtJobStateCode]) Or _ > IsNull([txtJobZipCode]) Or _ > [txtJobMunicipalityName] = "" Or _ > [txtJobStateCode] = "" Or _ > [txtJobZipCode] = "" Then > cmdMap.Enabled = False > cmdMap.Caption = "Local map not available - address incomplete" > cmdWeather.Enabled = False > cmdWeather.Caption = "Local weather not available - address incomplete" > Else > cmdMap.Enabled = True > cmdWeather.Enabled = True > End If > If Not IsNull([txtJobZipCode]) And [txtJobZipCode] <> "" Then > cmdMap.HyperlinkAddress = > "http://www.mapquest.com/maps/map.adp?country=US&addtohistory=&address=" & > [txtJobAddress] & "&city=" & [txtJobMunicipalityName] & "&state=" & > [txtJobStateCode] & "&zipcode=" & [txtJobZipCode] & > "&homesubmit.x=30&homesubmit.y=14" > cmdMap.Caption = "View local map for " & [txtJobMunicipalityName] & ", " > & [txtJobStateCode] > cmdWeather.HyperlinkAddress = "http://www.weather.com/weather/local/" & > [txtJobZipCode] & "?whatprefs=" > cmdWeather.Caption = "Check local weather in " & > [txtJobMunicipalityName] & ", " & [txtJobStateCode] > End If > End Sub > ********************************************* > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of William > Hindman > Sent: Tuesday, April 27, 2004 06:52 > To: Access Developers discussion and problem solving > Subject: [AccessD] Access Address to Map in Browser > > > Group > > ...in Outlook, I can open a map of a contact's address in a browser > directly from Outlook as follows: > > a) select Contacts on the Outlook Bar or in the folder list. > b) select contact whose address I want to locate. > c) File/Open/Selected Items. > d) Under the Address button, click the arrow, and then click the type of > address I want to find on the map (Business/Home/Other). > e) Actions/Display Map of Address. > > ...my browser opens to Find a Map at mappoint.msn.com with a push-pin > marking the location of the address. > > ...has anyone done anything like this via code from Access? ...without using > Outlook? > > William Hindman > "Always code as if the person who is maintaining or testing your code is > a violent psychopath who knows where you live." William Silverstein > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rbgajewski at adelphia.net Tue Apr 27 16:15:19 2004 From: rbgajewski at adelphia.net (Bob Gajewski) Date: Tue, 27 Apr 2004 17:15:19 -0400 Subject: [AccessD] Access Address to Map in Browser - LENGTHY REPLY In-Reply-To: <000801c42c9c$12ae2720$6101a8c0@dejpolsys> Message-ID: William Always glad to help! Believe me - you have helped me more times than you know, with your answers to others! Let me know if you also want the US zip code database; I can send it offline (to anyone). Regards, Bob -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of William Hindman Sent: Tuesday, April 27, 2004 17:10 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access Address to Map in Browser - LENGTHY REPLY ...terrific Bob! ...between you and Andy I've got exactly what I need ...AccessD rules! :))))))) William Hindman "Always code as if the person who is maintaining or testing your code is a violent psychopath who knows where you live." William Silverstein From connie.kamrowski at agric.nsw.gov.au Tue Apr 27 18:20:06 2004 From: connie.kamrowski at agric.nsw.gov.au (connie.kamrowski at agric.nsw.gov.au) Date: Wed, 28 Apr 2004 09:20:06 +1000 Subject: [AccessD] Re:Mail Merge form letters Message-ID: Thanks Marty The pages on mail merge were very informative. I guess sometimes you just have to know where to look :) Connie Kamrowski Analyst/Programmer Information Technology NSW Agriculture Orange This message is intended for the addressee named and may contain confidential information. If you are not the intended recipient or received it in error, please delete the message and notify sender. Views expressed are those of the individual sender and are not necessarily the views of their organisation. From jwcolby at colbyconsulting.com Tue Apr 27 19:34:31 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Tue, 27 Apr 2004 20:34:31 -0400 Subject: [AccessD] List Box does not show all In-Reply-To: Message-ID: I have seen this too. It had to do with the wrong number of columns in the combo's column property vs the number in the sql statement. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gregg Sent: Tuesday, April 27, 2004 4:04 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] List Box does not show all Yes... that's true. Here's a recap of the facts. 1. The problem comes and goes. It happened a couple of weeks ago but by the time they went to show it to me it was gone. I didn't believe them of course until it happened again this week and I could see it. I fooled with it and it went away but when I undid my changes it didn't come back... very weird. I've seen this before at another customer using A97 where the list would go from say "A" to "M" and that's all. That was a much longer list but only 2 columns wide. 2. When it happens it happens everywhere -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Tuesday, April 27, 2004 12:42 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] List Box does not show all So if you paste that SQL into a query, you get a different number of row than what shows in the combo? Charlotte Foust -----Original Message----- From: Gregg [mailto:greggs at msn.com] Sent: Tuesday, April 27, 2004 9:13 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] List Box does not show all Susan, It's a table... here's the source... SELECT DISTINCTROW [PLastName]+", "+[PFirstName] AS PatientName, PatientTbl.Address, PatientTbl.City, PatientTbl.Zip, PatientTbl.Phone, PatientTbl.AdmittingNurse, DateDiff("h",Format([ReferralDate],"mm/dd/yy") & " " & Format([HourOfReferal],"hh:nn:ss"),Format(Now(),"mm/dd/yy hh:nn:ss")) AS HoursSinceReferral, PatientTbl.PatientID FROM PatientTbl WHERE ((([PLastName]+", "+[PFirstName]) Is Not Null) AND ((PatientTbl.DenialReason) Is Null) AND ((PatientTbl.dateServiceStart) Is Null)); -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Susan Harkins Sent: Tuesday, April 27, 2004 9:23 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] List Box does not show all Where are the list items coming from? Sounds like you're using a Table/Query list, so this wouldn't be the problem, but a Value list is limited in the number of characters, and with 7 columns, you might have reached it -- if you're using a Value list. Susan H. The list box is trying to display 36 rows but only shows 23. The query behind the list is showing 36. It's seven columns wide. I thinks all users are using the same version of A97. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From sgoodhall at comcast.net Tue Apr 27 20:24:05 2004 From: sgoodhall at comcast.net (Steve Goodhall) Date: Tue, 27 Apr 2004 21:24:05 -0400 Subject: [AccessD] UNION Queries In-Reply-To: Message-ID: Has anybody had any weird problems with UNION queries. I have a UNION of 4 SELECTS that returns 257 records when opened in the query tool, but only 18 when processed as a recordset. Running in A2K. Any thoughts? Thanks Steve Goodhall From stuart at lexacorp.com.pg Tue Apr 27 21:29:28 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 28 Apr 2004 12:29:28 +1000 Subject: [AccessD] UNION Queries In-Reply-To: References: Message-ID: <408FA3A8.30339.1042F4C@localhost> On 27 Apr 2004 at 21:24, Steve Goodhall wrote: > Has anybody had any weird problems with UNION queries. I have a UNION of 4 > SELECTS that returns 257 records when opened in the query tool, but only 18 > when processed as a recordset. Running in A2K. Any thoughts? > Are all 257 different? I'd guess that the Query will have the UniqueRecords property set to No. Try using UNION ALL in the recordset. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From terry.mace at baesystems.com Tue Apr 27 21:53:58 2004 From: terry.mace at baesystems.com (MACE, Terry) Date: Wed, 28 Apr 2004 12:23:58 +0930 Subject: [AccessD] User Defined Properties A97 Message-ID: I'm trying to use a custom property to store some changing information, which works fine, but when I try to read it, it only returns the value that was present when the database was opened. Is this the way it works or can I read the changed info. I'm using the following code to read the property 'Reference': DBEngine(0)(0).Containers("Databases").Documents("UserDefined").Properties(" reference") Terry Mace From d.dick at uws.edu.au Wed Apr 28 01:26:39 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Wed, 28 Apr 2004 16:26:39 +1000 Subject: [AccessD] A2K: Getting incorrect date References: <408EC2C6.4554.2E3D660@localhost> Message-ID: <002701c42ce9$c4074770$48619a89@DDICK> Thanks Stuart Exactly what i needed Darren ----- Original Message ----- From: "Stuart McLachlan" To: "Darren DICK" ; "Access Developers discussion and problemsolving" Sent: Tuesday, April 27, 2004 8:29 PM Subject: Re: [AccessD] A2K: Getting incorrect date > On 27 Apr 2004 at 14:36, Darren DICK wrote: > > > Hello all > > Can anyone tell me why dtTimeElapsed is returning a crap date around 1900 or so? > > dtStartDate returns the expected date as does dtTodaysDate > > Many thanks > > > > > > Dim dtStartDate As Date > > Dim dtTodaysDate As Date > > Dim dtTimeElapsed As Date > > > > Because an elapsed period is not a date. It is a number. DateDiff() returns *number* of time periods > Dim dtTimeElapsed as a long to get the number of the time periods specified by the first paramter of DateDiff. > > > > -- > Lexacorp Ltd > http://www.lexacorp.com.pg > Information Technology Consultancy, Software Development,System Support. > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From mwp.reid at queens-belfast.ac.uk Wed Apr 28 05:49:12 2004 From: mwp.reid at queens-belfast.ac.uk (Martin Reid) Date: Wed, 28 Apr 2004 11:49:12 +0100 (GMT Daylight Time) Subject: [AccessD] OT Ignore In-Reply-To: Message-ID: Test 11.40am Martin WP Reid Information Services Queens University Belfast Tel: (02890) 273750 ---------------------- From BarbaraRyan at cox.net Wed Apr 28 07:17:47 2004 From: BarbaraRyan at cox.net (Barbara Ryan) Date: Wed, 28 Apr 2004 08:17:47 -0400 Subject: [AccessD] Capture value when deleting a a record Message-ID: <005001c42d1a$d1902160$0a00a8c0@cx470148a> In an Access 97 application, I have a form that displays records from a table. When a user deletes a record, I want to first capture the value in the key field and store it in a variable. However, when the OnDelete event occurs, the record has already been deleted to a buffer. I've also tried Form_Current but it's not available there either. Aside from capturing all the possible keystrokes (that will delete a reord) in KeyDown, how can I capture a field value on a delete? Thanks, Barb Ryan From stuart at lexacorp.com.pg Wed Apr 28 07:47:25 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Wed, 28 Apr 2004 22:47:25 +1000 Subject: [AccessD] Capture value when deleting a a record In-Reply-To: <005001c42d1a$d1902160$0a00a8c0@cx470148a> Message-ID: <4090347D.26259.339EB8C@localhost> On 28 Apr 2004 at 8:17, Barbara Ryan wrote: > In an Access 97 application, I have a form that displays records from > a table. When a user deletes a record, I want to first capture the > value in the key field and store it in a variable. However, when the > OnDelete event occurs, the record has already been deleted to a > buffer. No it isn't. It does not get deleted until after the OnDelete and before the DeleteConfirm. You *can* store the current Key in the OnDelete into a form or global variable. I do it frequently. >I've also tried Form_Current but it's not available there > either. You must be doing something else wrong. It is also available there (I capture it at that point on occasions as well) How about posting your form's code to see what is happening? -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From jwcolby at colbyconsulting.com Wed Apr 28 07:51:59 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 28 Apr 2004 08:51:59 -0400 Subject: [AccessD] Capture value when deleting a a record In-Reply-To: <005001c42d1a$d1902160$0a00a8c0@cx470148a> Message-ID: Capture it in OnCurrent (as you move to the record). That way you already have it when the delete occurs. When you sense the delete, store that already captured value. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Barbara Ryan Sent: Wednesday, April 28, 2004 8:18 AM To: Access List Subject: [AccessD] Capture value when deleting a a record In an Access 97 application, I have a form that displays records from a table. When a user deletes a record, I want to first capture the value in the key field and store it in a variable. However, when the OnDelete event occurs, the record has already been deleted to a buffer. I've also tried Form_Current but it's not available there either. Aside from capturing all the possible keystrokes (that will delete a reord) in KeyDown, how can I capture a field value on a delete? Thanks, Barb Ryan -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BarbaraRyan at cox.net Wed Apr 28 07:59:23 2004 From: BarbaraRyan at cox.net (Barbara Ryan) Date: Wed, 28 Apr 2004 08:59:23 -0400 Subject: [AccessD] Capture value when deleting a a record References: <4090347D.26259.339EB8C@localhost> Message-ID: <007101c42d20$a160de20$0a00a8c0@cx470148a> I will look at my code again and try to see what the heck I'm doing! Thanks ----- Original Message ----- From: "Stuart McLachlan" To: "Access Developers discussion and problemsolving" Sent: Wednesday, April 28, 2004 8:47 AM Subject: Re: [AccessD] Capture value when deleting a a record > On 28 Apr 2004 at 8:17, Barbara Ryan wrote: > > > In an Access 97 application, I have a form that displays records from > > a table. When a user deletes a record, I want to first capture the > > value in the key field and store it in a variable. However, when the > > OnDelete event occurs, the record has already been deleted to a > > buffer. > > No it isn't. It does not get deleted until after the OnDelete and > before the DeleteConfirm. > > You *can* store the current Key in the OnDelete into a form or global > variable. I do it frequently. > > >I've also tried Form_Current but it's not available there > > either. > > You must be doing something else wrong. It is also available there (I > capture it at that point on occasions as well) > > How about posting your form's code to see what is happening? > > > > > -- > Lexacorp Ltd > http://www.lexacorp.com.pg > Information Technology Consultancy, Software Development,System > Support. > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From susanj at sgmeet.com Wed Apr 28 10:13:19 2004 From: susanj at sgmeet.com (Susan Jones) Date: Wed, 28 Apr 2004 10:13:19 -0500 Subject: [AccessD] TIMS In-Reply-To: <007101c42d20$a160de20$0a00a8c0@cx470148a> References: <4090347D.26259.339EB8C@localhost> <007101c42d20$a160de20$0a00a8c0@cx470148a> Message-ID: <6.0.1.1.2.20040428100131.03cbdc88@mail.sgmeet.com> Has anyone heard of or used a product from TIMS for online data management (shopping cart kind of set-up)? I'm searching Google and haven't been able to bring up an actual company. We've been asked to submit a bid for data management and, per their letter, the system currently used is "a fairly new product they purchased from TIMS." Thanks, Susan From EdTesiny at oasas.state.ny.us Wed Apr 28 10:23:13 2004 From: EdTesiny at oasas.state.ny.us (Tesiny, Ed) Date: Wed, 28 Apr 2004 11:23:13 -0400 Subject: [AccessD] TIMS Message-ID: Found this at http://www.software-x.com/software/storage-management.html TIMS Inc Producers of SAPERION, a comprehensive solution for imaging, document management, storage management, COLD, and scripting workflow. SAPERION(r) is an " All in One, Ready to Run" integrated knowledge management and eBusiness software solution for capturing, imaging, COLD, digital signatures, DMS, storage & archiving and workflow. Ed Tesiny EdTesiny at oasas.state.ny.us -----Original Message----- From: Susan Jones [mailto:susanj at sgmeet.com] Sent: Wednesday, April 28, 2004 11:13 AM To: accessd at databaseadvisors.com Subject: [AccessD] TIMS Has anyone heard of or used a product from TIMS for online data management (shopping cart kind of set-up)? I'm searching Google and haven't been able to bring up an actual company. We've been asked to submit a bid for data management and, per their letter, the system currently used is "a fairly new product they purchased from TIMS." Thanks, Susan -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From PBudge at cbsol.com Wed Apr 28 10:46:33 2004 From: PBudge at cbsol.com (PBudge at cbsol.com) Date: Wed, 28 Apr 2004 10:46:33 -0500 Subject: [AccessD] TIMS Message-ID: http://www.timstech.com/tech/ Pamela G. Budge PBudge at cbsol.com Creative Business Solutions Susan Jones To: accessd at databaseadvisors.com Sent by: cc: accessd-bounces at databasea Subject: [AccessD] TIMS dvisors.com 04/28/2004 10:13 AM Please respond to Access Developers discussion and problem solving Has anyone heard of or used a product from TIMS for online data management (shopping cart kind of set-up)? I'm searching Google and haven't been able to bring up an actual company. We've been asked to submit a bid for data management and, per their letter, the system currently used is "a fairly new product they purchased from TIMS." Thanks, Susan -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jmoss111 at bellsouth.net Wed Apr 28 10:40:53 2004 From: jmoss111 at bellsouth.net (JMoss) Date: Wed, 28 Apr 2004 10:40:53 -0500 Subject: [AccessD] TIMS In-Reply-To: <6.0.1.1.2.20040428100131.03cbdc88@mail.sgmeet.com> Message-ID: The link below to a company named TIMS doesn't mention a shopping cart but it does mention data management. http://www.timsinc.com/index.html -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Susan Jones Sent: Wednesday, April 28, 2004 10:13 AM To: accessd at databaseadvisors.com Subject: [AccessD] TIMS Has anyone heard of or used a product from TIMS for online data management (shopping cart kind of set-up)? I'm searching Google and haven't been able to bring up an actual company. We've been asked to submit a bid for data management and, per their letter, the system currently used is "a fairly new product they purchased from TIMS." Thanks, Susan -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From doug at starntech.com Wed Apr 28 11:03:41 2004 From: doug at starntech.com (Douglas Barnes) Date: Wed, 28 Apr 2004 12:03:41 -0400 Subject: [AccessD] Subform to Subform Updating Message-ID: I have a main form with 2 subforms (sub1, sub2). I can add records to sub1 as it is related to the main form. I can't seem to add records to sub2, which is related to sub1. Any insight on this would be appreciated. Douglas Barnes Starn Technical Services P. O. 1172 Meadville, PA 16335 814.724.1045 doug at starntech.com www.starntech.com From susanj at sgmeet.com Wed Apr 28 11:20:10 2004 From: susanj at sgmeet.com (Susan Jones) Date: Wed, 28 Apr 2004 11:20:10 -0500 Subject: [AccessD] TIMS In-Reply-To: References: Message-ID: <6.0.1.1.2.20040428111945.03c13ce0@mail.sgmeet.com> Thank you all! At least I have a couple of places to start now! Susan From michael.broesdorf at web.de Wed Apr 28 11:31:14 2004 From: michael.broesdorf at web.de (=?iso-8859-1?Q?Michael_Br=F6sdorf?=) Date: Wed, 28 Apr 2004 18:31:14 +0200 Subject: AW: [AccessD] Subform to Subform Updating In-Reply-To: Message-ID: If sub2 is a subform of the main form (i.e. not a subform of sub1), sub2 does not 'see' anything entered in sub1 since it is linked to the main form. However, if you put an (invisible) textbox on the main form, that contains the primary key of sub1, you can link sub2 to that textbox on the main form. If you now select a record in sub1, it's primary key will show up in the textbox. Sub2 will then in turn related data. HTH, Michael -----Urspr?ngliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von Douglas Barnes Gesendet: Mittwoch, 28. April 2004 18:04 An: AccessD at databaseadvisors.com Betreff: [AccessD] Subform to Subform Updating I have a main form with 2 subforms (sub1, sub2). I can add records to sub1 as it is related to the main form. I can't seem to add records to sub2, which is related to sub1. Any insight on this would be appreciated. Douglas Barnes Starn Technical Services P. O. 1172 Meadville, PA 16335 814.724.1045 doug at starntech.com www.starntech.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From doug at starntech.com Wed Apr 28 13:16:14 2004 From: doug at starntech.com (Douglas Barnes) Date: Wed, 28 Apr 2004 14:16:14 -0400 Subject: [AccessD] Subform to Subform Updating In-Reply-To: Message-ID: I have the hidden control on the main form, sorry 'bout that. sub2 does indeed return the correct data. Problem arises when i try to add another record in sub2. Douglas Barnes Starn Technical Services P. O. 1172 Meadville, PA 16335 814.724.1045 doug at starntech.com www.starntech.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Michael Br?sdorf Sent: April 28, 2004 12:31 PM To: Access Developers discussion and problem solving Subject: AW: [AccessD] Subform to Subform Updating If sub2 is a subform of the main form (i.e. not a subform of sub1), sub2 does not 'see' anything entered in sub1 since it is linked to the main form. However, if you put an (invisible) textbox on the main form, that contains the primary key of sub1, you can link sub2 to that textbox on the main form. If you now select a record in sub1, it's primary key will show up in the textbox. Sub2 will then in turn related data. HTH, Michael -----Urspr?ngliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von Douglas Barnes Gesendet: Mittwoch, 28. April 2004 18:04 An: AccessD at databaseadvisors.com Betreff: [AccessD] Subform to Subform Updating I have a main form with 2 subforms (sub1, sub2). I can add records to sub1 as it is related to the main form. I can't seem to add records to sub2, which is related to sub1. Any insight on this would be appreciated. Douglas Barnes Starn Technical Services P. O. 1172 Meadville, PA 16335 814.724.1045 doug at starntech.com www.starntech.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Wed Apr 28 14:10:08 2004 From: greggs at msn.com (Gregg) Date: Wed, 28 Apr 2004 14:10:08 -0500 Subject: [AccessD] List Box does not show all In-Reply-To: Message-ID: That sounds like something I would do but I didn't on this one. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of John W. Colby Sent: Tuesday, April 27, 2004 7:35 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] List Box does not show all I have seen this too. It had to do with the wrong number of columns in the combo's column property vs the number in the sql statement. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gregg Sent: Tuesday, April 27, 2004 4:04 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] List Box does not show all Yes... that's true. Here's a recap of the facts. 1. The problem comes and goes. It happened a couple of weeks ago but by the time they went to show it to me it was gone. I didn't believe them of course until it happened again this week and I could see it. I fooled with it and it went away but when I undid my changes it didn't come back... very weird. I've seen this before at another customer using A97 where the list would go from say "A" to "M" and that's all. That was a much longer list but only 2 columns wide. 2. When it happens it happens everywhere -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Charlotte Foust Sent: Tuesday, April 27, 2004 12:42 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] List Box does not show all So if you paste that SQL into a query, you get a different number of row than what shows in the combo? Charlotte Foust -----Original Message----- From: Gregg [mailto:greggs at msn.com] Sent: Tuesday, April 27, 2004 9:13 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] List Box does not show all Susan, It's a table... here's the source... SELECT DISTINCTROW [PLastName]+", "+[PFirstName] AS PatientName, PatientTbl.Address, PatientTbl.City, PatientTbl.Zip, PatientTbl.Phone, PatientTbl.AdmittingNurse, DateDiff("h",Format([ReferralDate],"mm/dd/yy") & " " & Format([HourOfReferal],"hh:nn:ss"),Format(Now(),"mm/dd/yy hh:nn:ss")) AS HoursSinceReferral, PatientTbl.PatientID FROM PatientTbl WHERE ((([PLastName]+", "+[PFirstName]) Is Not Null) AND ((PatientTbl.DenialReason) Is Null) AND ((PatientTbl.dateServiceStart) Is Null)); -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Susan Harkins Sent: Tuesday, April 27, 2004 9:23 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] List Box does not show all Where are the list items coming from? Sounds like you're using a Table/Query list, so this wouldn't be the problem, but a Value list is limited in the number of characters, and with 7 columns, you might have reached it -- if you're using a Value list. Susan H. The list box is trying to display 36 rows but only shows 23. The query behind the list is showing 36. It's seven columns wide. I thinks all users are using the same version of A97. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Rich_Lavsa at pghcorning.com Wed Apr 28 14:00:31 2004 From: Rich_Lavsa at pghcorning.com (Lavsa, Rich) Date: Wed, 28 Apr 2004 15:00:31 -0400 Subject: [AccessD] Calendar Controls AND TIME Controls Message-ID: <833956F5C117124A89417638FDB11290EBD159@goexchange.pghcorning.com> Whenever you get it done let me know or post it to the list. I'll gladly be a BETA tester... Rich -----Original Message----- From: DWUTKA at marlow.com [mailto:DWUTKA at marlow.com] Sent: Monday, April 26, 2004 4:23 PM To: accessd at databaseadvisors.com Subject: RE: [AccessD] Calendar Controls AND TIME Controls Well if you can wait, the next item I'm adding to the beta version of my MiniCalendar is a time/clock portion. No idea when I'll have it done though...not very timely I guess! LOL Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Lavsa, Rich Sent: Monday, April 26, 2004 2:45 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Calendar Controls AND TIME Controls I always hear about Calendar Controls and have used a few of them. I was wondering if anyone out there has a Time control. I have a very time sensitive application where the technicians have to enter Date and Time on and Date and Time off. The time is essential to knowing how long the piece ran with or without defects in the product to know whether to fix it or use that mold as a template for others if it was working properly over a long period of time (long could be 16+ hours due to the harsh environment). Anyway, back to my question. I have a Date/Time field for ON and OFF, currently I have a text box that is populated with a pop up calendar or by typing in text, works great. I also have another unbound field that is used purely for Time entry, of which the user must type it in as ##:## AM/PM, then upon exit it concatenates that information with the Date information to make a complete Date/Time field.. Does anyone know of a Time control or a better way to achieve this type of functionality other then the Date and Time Active X control. Thanks in Advance, Rich -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Apr 28 15:22:32 2004 From: Jeff at OUTBAKTech.com (Jeff Barrows) Date: Wed, 28 Apr 2004 15:22:32 -0500 Subject: [AccessD] Memo Fields and Reports in Access 97 Message-ID: <8DA8776D2F418E46A2A464AC6CE63050032673@outbaksrv1.outbaktech.com> It has been a while since I needed to add a memo field to a report and I cannot seem to remember, is the memo field limited to 255 char. on the report? And if so, could it then limit my memo field to the same 255 chars? TIA Jeff Barrows From EdTesiny at oasas.state.ny.us Wed Apr 28 15:27:05 2004 From: EdTesiny at oasas.state.ny.us (Tesiny, Ed) Date: Wed, 28 Apr 2004 16:27:05 -0400 Subject: [AccessD] Memo Fields and Reports in Access 97 Message-ID: For memo fields the max. number of characters is 64,000. Ed Tesiny EdTesiny at oasas.state.ny.us -----Original Message----- From: Jeff Barrows [mailto:Jeff at OUTBAKTech.com] Sent: Wednesday, April 28, 2004 4:23 PM To: AccessD Subject: [AccessD] Memo Fields and Reports in Access 97 It has been a while since I needed to add a memo field to a report and I cannot seem to remember, is the memo field limited to 255 char. on the report? And if so, could it then limit my memo field to the same 255 chars? TIA Jeff Barrows -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DElam at jenkens.com Wed Apr 28 15:28:23 2004 From: DElam at jenkens.com (Elam, Debbie) Date: Wed, 28 Apr 2004 15:28:23 -0500 Subject: [AccessD] Memo Fields and Reports in Access 97 Message-ID: <7B1961ED924D1A459E378C9B1BB22B4C0106BE64@natexch.jenkens.com> The text field is limited to 255 characters. If you do not need more than this use the text field. The memo field is more prone to corruption. You can limit the number of characters on the report by using the LEFT$ function, if you want to do that. Debbie -----Original Message----- From: Jeff Barrows [mailto:Jeff at outbaktech.com] Sent: Wednesday, April 28, 2004 3:23 PM To: AccessD Subject: [AccessD] Memo Fields and Reports in Access 97 It has been a while since I needed to add a memo field to a report and I cannot seem to remember, is the memo field limited to 255 char. on the report? And if so, could it then limit my memo field to the same 255 chars? TIA Jeff Barrows -- _______________________________________________ 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 CMackin at Quiznos.com Wed Apr 28 15:40:50 2004 From: CMackin at Quiznos.com (Mackin, Christopher) Date: Wed, 28 Apr 2004 14:40:50 -0600 Subject: [AccessD] Memo Fields and Reports in Access 97 Message-ID: <19F28F0B4284C04FB90CAA380451FFD9412722@bross.quiznos.net> It's limited when used with a GROUP BY or DISTINCT SQL statement as the recordsource. All you need to do is, if you require DISTINCT OR GROUP BY, leave the PK to the Memo field in that query, then, at the highlest level of your query link back to the Memo field and grab it there. Chris Mackin -----Original Message----- From: Jeff Barrows [mailto:Jeff at outbaktech.com] Sent: Wednesday, April 28, 2004 2:23 PM To: AccessD Subject: [AccessD] Memo Fields and Reports in Access 97 It has been a while since I needed to add a memo field to a report and I cannot seem to remember, is the memo field limited to 255 char. on the report? And if so, could it then limit my memo field to the same 255 chars? TIA Jeff Barrows -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Jeff at OUTBAKTech.com Wed Apr 28 15:43:11 2004 From: Jeff at OUTBAKTech.com (Jeff Barrows) Date: Wed, 28 Apr 2004 15:43:11 -0500 Subject: [AccessD] Memo Fields and Reports in Access 97 Message-ID: <8DA8776D2F418E46A2A464AC6CE63050032674@outbaksrv1.outbaktech.com> OK, I stated my question wrong. I have a report in access 97 that needs to display the contents of a memo field. How can I do this without some (most) of my data being dropped? -----Original Message----- From: Tesiny, Ed [mailto:EdTesiny at oasas.state.ny.us] Sent: Wed 4/28/2004 3:27 PM To: Access Developers discussion and problem solving Cc: Subject: RE: [AccessD] Memo Fields and Reports in Access 97 For memo fields the max. number of characters is 64,000. Ed Tesiny EdTesiny at oasas.state.ny.us -----Original Message----- From: Jeff Barrows [mailto:Jeff at OUTBAKTech.com] Sent: Wednesday, April 28, 2004 4:23 PM To: AccessD Subject: [AccessD] Memo Fields and Reports in Access 97 It has been a while since I needed to add a memo field to a report and I cannot seem to remember, is the memo field limited to 255 char. on the report? And if so, could it then limit my memo field to the same 255 chars? TIA Jeff Barrows -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DElam at jenkens.com Wed Apr 28 15:52:13 2004 From: DElam at jenkens.com (Elam, Debbie) Date: Wed, 28 Apr 2004 15:52:13 -0500 Subject: [AccessD] Memo Fields and Reports in Access 97 Message-ID: <7B1961ED924D1A459E378C9B1BB22B4C0106BE65@natexch.jenkens.com> Set the field to be able to grow. It will expand to fit everything. Debbie -----Original Message----- From: Jeff Barrows [mailto:Jeff at outbaktech.com] Sent: Wednesday, April 28, 2004 3:43 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Memo Fields and Reports in Access 97 OK, I stated my question wrong. I have a report in access 97 that needs to display the contents of a memo field. How can I do this without some (most) of my data being dropped? -----Original Message----- From: Tesiny, Ed [mailto:EdTesiny at oasas.state.ny.us] Sent: Wed 4/28/2004 3:27 PM To: Access Developers discussion and problem solving Cc: Subject: RE: [AccessD] Memo Fields and Reports in Access 97 For memo fields the max. number of characters is 64,000. Ed Tesiny EdTesiny at oasas.state.ny.us -----Original Message----- From: Jeff Barrows [mailto:Jeff at OUTBAKTech.com] Sent: Wednesday, April 28, 2004 4:23 PM To: AccessD Subject: [AccessD] Memo Fields and Reports in Access 97 It has been a while since I needed to add a memo field to a report and I cannot seem to remember, is the memo field limited to 255 char. on the report? And if so, could it then limit my memo field to the same 255 chars? TIA Jeff Barrows -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 JHewson at karta.com Wed Apr 28 17:19:27 2004 From: JHewson at karta.com (Jim Hewson) Date: Wed, 28 Apr 2004 17:19:27 -0500 Subject: [AccessD] Memo Fields and Reports in Access 97 Message-ID: <9C382E065F54AE48BC3AA7925DCBB01C138393@karta-exc-int.Karta.com> The memo fields do work in reports. Two things to keep in mind. 1. "Can Grow" is true. 2. Remember each report section has a 22 inch Max length. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jeff Barrows Sent: Wednesday, April 28, 2004 3:23 PM To: AccessD Subject: [AccessD] Memo Fields and Reports in Access 97 It has been a while since I needed to add a memo field to a report and I cannot seem to remember, is the memo field limited to 255 char. on the report? And if so, could it then limit my memo field to the same 255 chars? TIA Jeff Barrows -- _______________________________________________ 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 Apr 28 18:44:30 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Thu, 29 Apr 2004 09:44:30 +1000 Subject: [AccessD] A2K:Free Clock dB to good home Message-ID: <008101c42d7a$c05c48f0$48619a89@DDICK> Hello all A long time a go I wrote a very buggy, cartoonish and very amateur 'clock' for entering in start and end times for timesheets. It's from one of my very early dB's. But it looks kinda cool. I found it just the other day. So...anyone want a copy? It's 158 kb Zipped If so, all me too's must be addressed to d.dick at uws.edu.au Keep the subject line A2K: Free Clock dB to good home Any me too's to the list will be ignored. Any offenders will be flagged for alien abduction. See y'all Darren From carbonnb at sympatico.ca Wed Apr 28 19:18:28 2004 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Wed, 28 Apr 2004 20:18:28 -0400 Subject: [AccessD] A2K:Free Clock dB to good home In-Reply-To: <008101c42d7a$c05c48f0$48619a89@DDICK> Message-ID: <40901194.18058.1064671@localhost> On 29 Apr 2004 at 9:44, Darren DICK wrote: > Keep the subject line A2K: Free Clock dB to good home > Any me too's to the list will be ignored. Any offenders will be > flagged for alien abduction. OH. Better yet, we can make them deal with the spam that hits the list srever :-) And THEN be flagged for alien abduction :-) -- Bryan Carbonnell - carbonnb at sympatico.ca I am a nobody, and nobody is perfect; therefore, I am perfect. From jwcolby at colbyconsulting.com Wed Apr 28 20:20:45 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 28 Apr 2004 21:20:45 -0400 Subject: [AccessD] A2K:Free Clock dB to good home In-Reply-To: <40901194.18058.1064671@localhost> Message-ID: You are not THE nobody and only THE nobody is perfect, therefore you are NOT perfect! ;-) John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Bryan Carbonnell Sent: Wednesday, April 28, 2004 8:18 PM To: Access Developers discussion and problemsolving Subject: Re: [AccessD] A2K:Free Clock dB to good home On 29 Apr 2004 at 9:44, Darren DICK wrote: > Keep the subject line A2K: Free Clock dB to good home > Any me too's to the list will be ignored. Any offenders will be > flagged for alien abduction. OH. Better yet, we can make them deal with the spam that hits the list srever :-) And THEN be flagged for alien abduction :-) -- Bryan Carbonnell - carbonnb at sympatico.ca I am a nobody, and nobody is perfect; therefore, I am perfect. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Wed Apr 28 20:20:45 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 28 Apr 2004 21:20:45 -0400 Subject: [AccessD] Digital Shakespeare Message-ID: 2b + (NOT 2b) John W. Colby www.ColbyConsulting.com From ssharkins at bellsouth.net Wed Apr 28 20:23:35 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Wed, 28 Apr 2004 21:23:35 -0400 Subject: [AccessD] Digital Shakespeare In-Reply-To: Message-ID: <20040429012334.LRFN1702.imf20aec.mail.bellsouth.net@SUSANONE> But can you build a framework for it??????????? AHAHAHAHAHAHAHAHA Susan H. 2b + (NOT 2b) John W. Colby www.ColbyConsulting.com From jwcolby at colbyconsulting.com Wed Apr 28 20:36:29 2004 From: jwcolby at colbyconsulting.com (John W. Colby) Date: Wed, 28 Apr 2004 21:36:29 -0400 Subject: [AccessD] Digital Shakespeare In-Reply-To: <20040429012334.LRFN1702.imf20aec.mail.bellsouth.net@SUSANONE> Message-ID: ROTFL. I'm starting to move pieces to VB.Net, starting with SysVars. This is going to be fun! John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Susan Harkins Sent: Wednesday, April 28, 2004 9:24 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Digital Shakespeare But can you build a framework for it??????????? AHAHAHAHAHAHAHAHA Susan H. 2b + (NOT 2b) 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 bruce_bruen at mlc.com.au Wed Apr 28 20:35:07 2004 From: bruce_bruen at mlc.com.au (bruce_bruen at mlc.com.au) Date: Thu, 29 Apr 2004 11:35:07 +1000 Subject: [AccessD] Digital Shakespeare Message-ID: Surely or(2B,!2B) "Susan Harkins" To: "'Access Developers discussion and problem solving'" Sent by: accessd-bounces at databasea cc: dvisors.com Subject: RE: [AccessD] Digital Shakespeare 29/04/2004 11:23 Please respond to Access Developers discussion and problem solving But can you build a framework for it??????????? AHAHAHAHAHAHAHAHA Susan H. 2b + (NOT 2b) 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 bruce_bruen at mlc.com.au Wed Apr 28 20:40:17 2004 From: bruce_bruen at mlc.com.au (bruce_bruen at mlc.com.au) Date: Thu, 29 Apr 2004 11:40:17 +1000 Subject: [AccessD] Digital Shakespeare Message-ID: Or if you want a clue as to where I've been: private void Surely { theQuestion = or(2B,!2B); } B "Susan Harkins" To: "'Access Developers discussion and problem solving'" Sent by: accessd-bounces at databasea cc: dvisors.com Subject: RE: [AccessD] Digital Shakespeare 29/04/2004 11:23 Please respond to Access Developers discussion and problem solving But can you build a framework for it??????????? AHAHAHAHAHAHAHAHA Susan H. 2b + (NOT 2b) 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 ssharkins at bellsouth.net Wed Apr 28 21:14:50 2004 From: ssharkins at bellsouth.net (Susan Harkins) Date: Wed, 28 Apr 2004 22:14:50 -0400 Subject: [AccessD] Digital Shakespeare In-Reply-To: Message-ID: <20040429021450.MRLT1702.imf20aec.mail.bellsouth.net@SUSANONE> Shakespeare always gets a little lost in the translation. ;) Susan H. Surely or(2B,!2B) From adtp at touchtelindia.net Wed Apr 28 22:56:52 2004 From: adtp at touchtelindia.net (A.D.Tejpal) Date: Thu, 29 Apr 2004 09:26:52 +0530 Subject: [AccessD] Memo Fields and Reports in Access 97 References: <7B1961ED924D1A459E378C9B1BB22B4C0106BE65@natexch.jenkens.com> Message-ID: <007c01c42d9e$33a5c0c0$fc1865cb@winxp> On the subject of memo fields in reports, another interesting feature is pertinent - If the field content is larger than one page, and 'Keep Together' property of Detail section is set as 'Yes', the Report Formatting process is prone to hang up Indefinitely. Conclusion - For large Memo Fields in a report, set the 'Keep Together' property of Detail section as 'No' A.D.Tejpal -------------- ----- Original Message ----- From: Elam, Debbie To: 'Access Developers discussion and problem solving' Sent: Thursday, April 29, 2004 02:22 Subject: RE: [AccessD] Memo Fields and Reports in Access 97 Set the field to be able to grow. It will expand to fit everything. Debbie -----Original Message----- From: Jeff Barrows [mailto:Jeff at outbaktech.com] Sent: Wednesday, April 28, 2004 3:43 PM To: Access Developers discussion and problem solving Subject: RE: [AccessD] Memo Fields and Reports in Access 97 OK, I stated my question wrong. I have a report in access 97 that needs to display the contents of a memo field. How can I do this without some (most) of my data being dropped? -----Original Message----- From: Tesiny, Ed [mailto:EdTesiny at oasas.state.ny.us] Sent: Wed 4/28/2004 3:27 PM To: Access Developers discussion and problem solving Cc: Subject: RE: [AccessD] Memo Fields and Reports in Access 97 For memo fields the max. number of characters is 64,000. Ed Tesiny EdTesiny at oasas.state.ny.us -----Original Message----- From: Jeff Barrows [mailto:Jeff at OUTBAKTech.com] Sent: Wednesday, April 28, 2004 4:23 PM To: AccessD Subject: [AccessD] Memo Fields and Reports in Access 97 It has been a while since I needed to add a memo field to a report and I cannot seem to remember, is the memo field limited to 255 char. on the report? And if so, could it then limit my memo field to the same 255 chars? TIA Jeff Barrows From gustav at cactus.dk Thu Apr 29 02:51:55 2004 From: gustav at cactus.dk (Gustav Brock) Date: Thu, 29 Apr 2004 09:51:55 +0200 Subject: [AccessD] Memo Fields and Reports in Access 97 In-Reply-To: <8DA8776D2F418E46A2A464AC6CE63050032673@outbaksrv1.outbaktech.com> References: <8DA8776D2F418E46A2A464AC6CE63050032673@outbaksrv1.outbaktech.com> Message-ID: <945722037.20040429095155@cactus.dk> Hi Jeff > It has been a while since I needed to add a memo field to a report and I cannot seem to remember, is the memo field limited to 255 char. on the report? And if so, could it then limit my memo field > to the same 255 chars? You may encounter an issue where the last line of the memo is chopped when printed. That can be prevented by appending to the memo field two or four line feeds: Chr(13) & Chr(10). /gustav From pedro at plex.nl Thu Apr 29 12:15:08 2004 From: pedro at plex.nl (pedro at plex.nl) Date: Thu, 29 Apr 2004 12:15:08 (MET DST) Subject: [AccessD] replace in blank (is Null) Field Message-ID: <200404291015.i3TAF8T0002593@mailhostC.plex.net> Hello Group, i want to use the replace in fields that contain no data (is Null). The help function gives as solution to use find and then replace manually. Is there another option? Pedro Janssen From paul.hartland at fsmail.net Thu Apr 29 05:43:20 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 29 Apr 2004 12:43:20 +0200 (CEST) Subject: [AccessD] replace in blank (is Null) Field Message-ID: <19427990.1083235400290.JavaMail.www@wwinf3004> Pedro, Can't you use Replace(YourField,"",WhatYouWantToReplaceItWith) in a loop Paul Message date : Apr 29 2004, 11:17 AM >From : pedro at plex.nl To : AccessD at databaseadvisors.com Copy to : Subject : [AccessD] replace in blank (is Null) Field Hello Group, i want to use the replace in fields that contain no data (is Null). The help function gives as solution to use find and then replace manually. Is there another option? Pedro Janssen -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- Whatever you Wanadoo: http://www.wanadoo.co.uk/time/ This email has been checked for most known viruses - find out more at: http://www.wanadoo.co.uk/help/id/7098.htm From Bryan_Carbonnell at cbc.ca Thu Apr 29 06:56:20 2004 From: Bryan_Carbonnell at cbc.ca (Bryan Carbonnell) Date: Thu, 29 Apr 2004 07:56:20 -0400 Subject: [AccessD] replace in blank (is Null) Field Message-ID: Pedro, Use an Update Query UPDATE YourTable SET YourTable.YourField = "The Updated Value" WHERE (((YourTable.YourField) Is Null)); Bryan Carbonnell bryan_carbonnell at cbc.ca >>> pedro at plex.nl 29-Apr-04 12:15:08 PM >>> Hello Group, i want to use the replace in fields that contain no data (is Null). The help function gives as solution to use find and then replace manually. Is there another option? Pedro Janssen From stuart at lexacorp.com.pg Thu Apr 29 07:03:56 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 29 Apr 2004 22:03:56 +1000 Subject: [AccessD] replace in blank (is Null) Field In-Reply-To: <19427990.1083235400290.JavaMail.www@wwinf3004> Message-ID: <40917BCC.8273.339BDF4@localhost> On 29 Apr 2004 at 12:43, paul.hartland at fsmail.net wrote: > Pedro, > Can't you use Replace(YourField,"",WhatYouWantToReplaceItWith) in a loop > Paul > Unfortunately, "" ( a zero length string) is not the same thing as a Null. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From paul.hartland at fsmail.net Thu Apr 29 07:13:47 2004 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 29 Apr 2004 14:13:47 +0200 (CEST) Subject: [AccessD] replace in blank (is Null) Field Message-ID: <30224847.1083240827610.JavaMail.www@wwinf3004> yeah, sorry about that....realised as soon as I pressed the Send Message date : Apr 29 2004, 01:07 PM >From : "Stuart McLachlan" To : "Access Developers discussion and problem solving" Copy to : Subject : Re: [AccessD] replace in blank (is Null) Field On 29 Apr 2004 at 12:43, paul.hartland at fsmail.net wrote: > Pedro, > Can't you use Replace(YourField,"",WhatYouWantToReplaceItWith) in a loop > Paul > Unfortunately, "" ( a zero length string) is not the same thing as a Null. -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- Whatever you Wanadoo: http://www.wanadoo.co.uk/time/ This email has been checked for most known viruses - find out more at: http://www.wanadoo.co.uk/help/id/7098.htm From michael.broesdorf at web.de Thu Apr 29 07:38:29 2004 From: michael.broesdorf at web.de (=?iso-8859-1?Q?Michael_Br=F6sdorf?=) Date: Thu, 29 Apr 2004 14:38:29 +0200 Subject: AW: [AccessD] Subform to Subform Updating In-Reply-To: Message-ID: Hm, to make any statement I would need more information about your data structure. If you want you can send me a sample app and I will take a look at it. Michael -----Urspr?ngliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von Douglas Barnes Gesendet: Mittwoch, 28. April 2004 20:16 An: Access Developers discussion and problem solving Betreff: RE: [AccessD] Subform to Subform Updating I have the hidden control on the main form, sorry 'bout that. sub2 does indeed return the correct data. Problem arises when i try to add another record in sub2. Douglas Barnes Starn Technical Services P. O. 1172 Meadville, PA 16335 814.724.1045 doug at starntech.com www.starntech.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Michael Br?sdorf Sent: April 28, 2004 12:31 PM To: Access Developers discussion and problem solving Subject: AW: [AccessD] Subform to Subform Updating If sub2 is a subform of the main form (i.e. not a subform of sub1), sub2 does not 'see' anything entered in sub1 since it is linked to the main form. However, if you put an (invisible) textbox on the main form, that contains the primary key of sub1, you can link sub2 to that textbox on the main form. If you now select a record in sub1, it's primary key will show up in the textbox. Sub2 will then in turn related data. HTH, Michael -----Urspr?ngliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von Douglas Barnes Gesendet: Mittwoch, 28. April 2004 18:04 An: AccessD at databaseadvisors.com Betreff: [AccessD] Subform to Subform Updating I have a main form with 2 subforms (sub1, sub2). I can add records to sub1 as it is related to the main form. I can't seem to add records to sub2, which is related to sub1. Any insight on this would be appreciated. Douglas Barnes Starn Technical Services P. O. 1172 Meadville, PA 16335 814.724.1045 doug at starntech.com www.starntech.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Thu Apr 29 08:44:12 2004 From: Developer at UltraDNT.com (Developer) Date: Thu, 29 Apr 2004 09:44:12 -0400 Subject: [AccessD] OT Digital Shakespeare In-Reply-To: <20040429021450.MRLT1702.imf20aec.mail.bellsouth.net@SUSANONE> Message-ID: <000801c42df0$11a58e40$6401a8c0@COA3> This is more like a Friday thread, but the 2b thing reminded me of this. Theres a lot of t-shirts and other items with these types of sayings in a catalog called "Computer Gear" (no affiliation). My fave t-shirt is: SELECT * FROM users WHERE clue=true 0 Rows Returned There's also an "RTFM" shirt, and one that says "There are 10 kinds of people in this world, those who understand binary, and those who don't". Steve -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, April 28, 2004 10:15 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Digital Shakespeare Shakespeare always gets a little lost in the translation. ;) Susan H. Surely or(2B,!2B) -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From kaupca at chevrontexaco.com Thu Apr 29 08:56:22 2004 From: kaupca at chevrontexaco.com (Kaup, Chester A) Date: Thu, 29 Apr 2004 08:56:22 -0500 Subject: [AccessD] Query results display problem Message-ID: <193572B4E0FC1744BEDFEE63F82CEC9E0F978B@bocnte2k4.boc.chevrontexaco.net> I have a query that returns a 7 day average of some numbers and the 7 day average divided by 1000. The regular 7 day average display fine but the 7 day average divided by 7 displays no decimal places. For example 7 day average is 1027.28571429 but the seven day average divided by seven displays 1. I tried setting properties to fixed and 2 decimal places and got 1.00. Why does it display this way? Thanks. SQL if someone wants to look at it. SELECT Avg([qry Sandhills Oil].SumOfTOTOILPROD) AS AvgOfSumOfTOTOILPROD, Avg(([SumOfTOTOILPROD])/1000) AS OIL FROM [qry Sandhills Gas] INNER JOIN [qry Sandhills Oil] ON [qry Sandhills Gas].ACTVDATE = [qry Sandhills Oil].ACTVDATE WHERE ((([qry Sandhills Gas].ACTVDATE) Between Date()-8 And Date()-2)); Chester Kaup Technical Assistant Texas Gas Team/MidContinent Business Unit CTN 8-687-7415 Outside 432-687-7414 No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced. From gustav at cactus.dk Thu Apr 29 09:15:29 2004 From: gustav at cactus.dk (Gustav Brock) Date: Thu, 29 Apr 2004 16:15:29 +0200 Subject: [AccessD] Query results display problem In-Reply-To: <193572B4E0FC1744BEDFEE63F82CEC9E0F978B@bocnte2k4.boc.chevrontexaco.net> References: <193572B4E0FC1744BEDFEE63F82CEC9E0F978B@bocnte2k4.boc.chevrontexaco.net> Message-ID: <12828735359.20040429161529@cactus.dk> Hi Chester Have you tried: Avg(CDbl([SumOfTOTOILPROD])/1000) AS OIL /gustav > I have a query that returns a 7 day average of some numbers and the 7 > day average divided by 1000. The regular 7 day average display fine but > the 7 day average divided by 7 displays no decimal places. For example 7 > day average is 1027.28571429 but the seven day average divided by seven > displays 1. I tried setting properties to fixed and 2 decimal places and > got 1.00. Why does it display this way? Thanks. SQL if someone wants to > look at it. > SELECT Avg([qry Sandhills Oil].SumOfTOTOILPROD) AS AvgOfSumOfTOTOILPROD, > Avg(([SumOfTOTOILPROD])/1000) AS OIL > FROM [qry Sandhills Gas] INNER JOIN [qry Sandhills Oil] ON [qry > Sandhills Gas].ACTVDATE = [qry Sandhills Oil].ACTVDATE > WHERE ((([qry Sandhills Gas].ACTVDATE) Between Date()-8 And Date()-2)); From john at winhaven.net Thu Apr 29 09:20:33 2004 From: john at winhaven.net (John Bartow) Date: Thu, 29 Apr 2004 09:20:33 -0500 Subject: [AccessD] User Defined Properties A97 In-Reply-To: Message-ID: Terry, I haven't seen anyone answer this question yet so here goes... First off, I wouldn't recommend using reserved words for a user defined "anything". Here is a cutdown, basic function to recall a property: Public Function ReadMyProp() As Variant ' Comments : Returns the database user defined property: UDPrp ' Returns : Variant On Error GoTo Error_Proc Dim db As DAO.Database Dim prp As DAO.Property Set db = CurrentDb Set prp = db.Properties("UDPrp") ReadMyProp = prp Exit_Proc: Set prp = Nothing Set db = Nothing Exit Function Error_Proc: If Err = 3270 Then 'Error 3270 means that the property was not found. Else 'Add additional Error Handling here End If GoTo Exit_Proc End Function HTH John R. Bartow WinHaven LLC PO Box 130 Winneconne, WI 54986 920-582-7574 john at winhaven.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MACE, Terry Sent: Tuesday, April 27, 2004 9:54 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] User Defined Properties A97 I'm trying to use a custom property to store some changing information, which works fine, but when I try to read it, it only returns the value that was present when the database was opened. Is this the way it works or can I read the changed info. I'm using the following code to read the property 'Reference': DBEngine(0)(0).Containers("Databases").Documents("UserDefined").Properties(" reference") Terry Mace -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From kaupca at chevrontexaco.com Thu Apr 29 09:33:49 2004 From: kaupca at chevrontexaco.com (Kaup, Chester A) Date: Thu, 29 Apr 2004 09:33:49 -0500 Subject: [AccessD] Query results display problem Message-ID: <193572B4E0FC1744BEDFEE63F82CEC9E0273946C@bocnte2k4.boc.chevrontexaco.net> That got it. Thanks. Chester Kaup Technical Assistant Texas Gas Team/MidContinent Business Unit CTN 8-687-7415 Outside 432-687-7414 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: Thursday, April 29, 2004 9:15 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Query results display problem Hi Chester Have you tried: Avg(CDbl([SumOfTOTOILPROD])/1000) AS OIL /gustav > I have a query that returns a 7 day average of some numbers and the 7 > day average divided by 1000. The regular 7 day average display fine > but the 7 day average divided by 7 displays no decimal places. For > example 7 day average is 1027.28571429 but the seven day average > divided by seven displays 1. I tried setting properties to fixed and 2 > decimal places and got 1.00. Why does it display this way? Thanks. SQL > if someone wants to look at it. > SELECT Avg([qry Sandhills Oil].SumOfTOTOILPROD) AS > AvgOfSumOfTOTOILPROD, > Avg(([SumOfTOTOILPROD])/1000) AS OIL > FROM [qry Sandhills Gas] INNER JOIN [qry Sandhills Oil] ON [qry > Sandhills Gas].ACTVDATE = [qry Sandhills Oil].ACTVDATE > WHERE ((([qry Sandhills Gas].ACTVDATE) Between Date()-8 And Date()-2)); -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From serbach at new.rr.com Thu Apr 29 09:52:07 2004 From: serbach at new.rr.com (Steven W. Erbach) Date: Thu, 29 Apr 2004 09:52:07 -0500 Subject: [AccessD] A2K: Using the shell() function Message-ID: <20040429095207.264583357.serbach@new.rr.com> Dear Group, I'm in the thick of writing a custom EDI purchase order processing application in Access 2000. The 850 purchase orders are downloaded from the VAN (Value Added Network) mailbox using Windows FTP commands in a DOS batch file, and the additional documents (855 PO Acknowledgment, 856 Advance Ship Notice, 810 Invoice, and 997 Functional Acknowledgment) are uploaded to the mailbox with another DOS batch file using Windows FTP commands. The process works, but I've had to insert MsgBox statements in the Access code alerting the user that he should wait until the DOS batch file has completed processing the FTP commands and is closed before continuing with the Access stuff. My question is this: do any of you lot have any techniques for 1) determining when a DOS batch file has finished (that is, the title bar of the DOS window says "Finished"); and 2) closing those windows without user intervention? I'm just about ready to tell my client that he should buy WS_FTP Pro so that we can set up a macro or whatever you do in WS_FTP to automagically download and upload and close the WS_FTP program. I'm still not sure about what to do in Access so that it knows that an external application has completed its operations. Is this a DDE thing? I've been experimenting with the FMS Total Visual Sourcebook that I bought some time ago. It has a class library and some sample code for logging into an FTP site and selecting and downloading files. I just know, however, that my client will balk at the additional delay while I figure out an Access-only method for getting and sending EDI documents. The DOS batch thing works but there are the additional clicks involved with closing the DOS window and then clicking the MsgBox OK button to continue processing. Any ideas? Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "One of the differences in the two parties is that the Republicans always have problems filling many of the offices that are political, because most competent people would rather do something other than work for the government..." - Jerry Pournelle From jeffrey.demulling at usbank.com Thu Apr 29 10:00:27 2004 From: jeffrey.demulling at usbank.com (jeffrey.demulling at usbank.com) Date: Thu, 29 Apr 2004 10:00:27 -0500 Subject: [AccessD] A2K: Using the shell() function Message-ID: Here is code that I use: Sub runftp() Dim db As Database Dim Mytitle Dim ReturnValue Dim myFTPDir As String Dim strSQL As String Dim qdf As QueryDef Dim myfilenumber As String Dim myfiledate As String Dim myexportfile As String Dim saveasname As String Dim rst_Databases As Recordset Dim rst_reports As Recordset Dim myReportName As String Dim mySaveName As String Dim myftpfilename As String Dim mylocation As String Dim myfile As String Dim mysection As String Dim mykey As String Dim myname As String Dim sSetting Dim mydatafile As String Dim mymessage As String Dim SearchPath As String Dim FindStr As String Dim NumFiles As Integer Dim NumDirs As Integer Dim FileSize As Long Dim FileNum As Integer Dim mytext As String 'Create the Batch File for FTPing SearchPath = CurrentDBDir FindStr = "ftpbm.bat" FileSize = FindFilesAPI(SearchPath, FindStr, NumFiles, NumDirs) If NumFiles <> 0 Then Kill SearchPath & FindStr End If FileNum = FreeFile Open SearchPath & "ftpbm.bat" For Output As #FileNum 'SearchPath & FindStr For Input As #1 mytext = "@Echo Off" Print #FileNum, mytext mytext = "TITLE FTP BONDMASTER FILES" Print #FileNum, mytext mytext = "Echo OFF" Print #FileNum, mytext mytext = "CLS" Print #FileNum, mytext mytext = "@ECHO FTPing BondMaster Data..." Print #FileNum, mytext mytext = "ftp -s:" & SearchPath & "bmftp.txt" Print #FileNum, mytext ' Close before reopening in another mode. Close #FileNum 'Create FTP Script File SearchPath = CurrentDBDir FindStr = "bmftp.txt" FileSize = FindFilesAPI(SearchPath, FindStr, NumFiles, NumDirs) If NumFiles <> 0 Then Kill SearchPath & FindStr End If FileNum = FreeFile Open SearchPath & "bmftp.txt" For Output As #FileNum 'SearchPath & FindStr For Input As #1 mytext = "open bmprod1.int.usbc.com" Print #FileNum, mytext mytext = "ftc_ftp" Print #FileNum, mytext mytext = "transfer" Print #FileNum, mytext Set db = DBEngine(0)(0) 'If there is a record for the Operators Report create strings for FTP here Set rst_reports = db.OpenRecordset("tblErrors") Set rst_Databases = db.OpenRecordset("tblDataBaseNames") If rst_reports.recordcount <> 0 Then rst_reports.MoveFirst Do Until rst_reports.EOF If InStr(1, rst_reports.Fields("Error"), "TAPEPBPASSWD") <> 0 Then rst_Databases.MoveFirst Do Until rst_Databases.EOF If rst_reports.Fields("DataBase") = rst_Databases.Fields("DataBaseLongName") Then myFTPDir = rst_Databases.Fields ("DataBaseFTPAddressTapeFiles") myReportName = right(rst_reports.Fields("Error"), 30) mySaveName = "BMOperators.txt" mytext = "cd " & myFTPDir Print #FileNum, mytext mytext = "get " & myReportName & " " & Me.txtSavedDataLocation & mySaveName Print #FileNum, mytext End If rst_Databases.MoveNext Loop End If rst_reports.MoveNext Loop End If 'If there is a record for the Loan Bal Info Reports create strings for FTP here Set rst_reports = db.OpenRecordset("tempreport") Set rst_Databases = db.OpenRecordset("tblDataBaseNames") If rst_reports.recordcount <> 0 Then rst_reports.MoveFirst Do Until rst_reports.EOF rst_Databases.MoveFirst Do Until rst_Databases.EOF If rst_reports.Fields("dbName") = rst_Databases.Fields ("DataBaseLongName") Then myFTPDir = rst_Databases.Fields ("DataBaseFTPAddressTapeFiles") myReportName = rst_reports.Fields("txtReport") mySaveName = "LoanBalInfo-" & rst_Databases.Fields ("DataBaseLongName") & ".txt" mytext = "cd " & myFTPDir Print #FileNum, mytext mytext = "get " & myReportName & " " & Me.txtSavedDataLocation & mySaveName Print #FileNum, mytext End If rst_Databases.MoveNext Loop rst_reports.MoveNext Loop End If mytext = "disconnect" Print #FileNum, mytext mytext = "close" Print #FileNum, mytext ' Close before reopening in another mode. Close #FileNum '***** This is the command to use when ftping so do not need message box myftpfilename = CurrentDBDir & "ftpbm.bat" Call ShellWait(myftpfilename, 1) Set rst_Databases = Nothing Set rst_reports = Nothing Set db = Nothing End Sub THIS CODE IS IN ITS OWN MODULE Option Compare Database Option Explicit '***************** Code Start ****************** 'This code was originally written by Terry Kreft. 'It is not to be altered or distributed, 'except as part of an application. 'You are free to use it in any application, 'provided the copyright notice is left unchanged. ' 'Code Courtesy of 'Terry Kreft Private Const STARTF_USESHOWWINDOW& = &H1 Private Const NORMAL_PRIORITY_CLASS = &H20& Private Const INFINITE = -1& Private Type STARTUPINFO cb As Long lpReserved As String lpDesktop As String lpTitle As String dwX As Long dwY As Long dwXSize As Long dwYSize As Long dwXCountChars As Long dwYCountChars As Long dwFillAttribute As Long dwFlags As Long wShowWindow As Integer cbReserved2 As Integer lpReserved2 As Long hStdInput As Long hStdOutput As Long hStdError As Long End Type Private Type PROCESS_INFORMATION hProcess As Long hThread As Long dwProcessID As Long dwThreadID As Long End Type Private Declare Function WaitForSingleObject Lib "kernel32" (ByVal _ hHandle As Long, ByVal dwMilliseconds As Long) As Long Private Declare Function CreateProcessA Lib "kernel32" (ByVal _ lpApplicationName As Long, ByVal lpCommandLine As String, ByVal _ lpProcessAttributes As Long, ByVal lpThreadAttributes As Long, _ ByVal bInheritHandles As Long, ByVal dwCreationFlags As Long, _ ByVal lpEnvironment As Long, ByVal lpCurrentDirectory As Long, _ lpStartupInfo As STARTUPINFO, lpProcessInformation As _ PROCESS_INFORMATION) As Long Private Declare Function CloseHandle Lib "kernel32" (ByVal _ hObject As Long) As Long Public Sub ShellWait(Pathname As String, Optional WindowStyle As Long) Dim proc As PROCESS_INFORMATION Dim start As STARTUPINFO Dim ret As Long ' Initialize the STARTUPINFO structure: With start .cb = Len(start) If Not IsMissing(WindowStyle) Then .dwFlags = STARTF_USESHOWWINDOW .wShowWindow = WindowStyle End If End With ' Start the shelled application: ret& = CreateProcessA(0&, Pathname, 0&, 0&, 1&, _ NORMAL_PRIORITY_CLASS, 0&, 0&, start, proc) ' Wait for the shelled application to finish: ret& = WaitForSingleObject(proc.hProcess, INFINITE) ret& = CloseHandle(proc.hProcess) End Sub '***************** Code End **************** "Steven W. Erbach" To: "Access Developers discussion and problem solving" Sent by: accessd-bounces at databasea cc: dvisors.com Subject: [AccessD] A2K: Using the shell() function 04/29/2004 09:52 AM Please respond to "Access Developers discussion and problem solving" Dear Group, I'm in the thick of writing a custom EDI purchase order processing application in Access 2000. The 850 purchase orders are downloaded from the VAN (Value Added Network) mailbox using Windows FTP commands in a DOS batch file, and the additional documents (855 PO Acknowledgment, 856 Advance Ship Notice, 810 Invoice, and 997 Functional Acknowledgment) are uploaded to the mailbox with another DOS batch file using Windows FTP commands. The process works, but I've had to insert MsgBox statements in the Access code alerting the user that he should wait until the DOS batch file has completed processing the FTP commands and is closed before continuing with the Access stuff. My question is this: do any of you lot have any techniques for 1) determining when a DOS batch file has finished (that is, the title bar of the DOS window says "Finished"); and 2) closing those windows without user intervention? I'm just about ready to tell my client that he should buy WS_FTP Pro so that we can set up a macro or whatever you do in WS_FTP to automagically download and upload and close the WS_FTP program. I'm still not sure about what to do in Access so that it knows that an external application has completed its operations. Is this a DDE thing? I've been experimenting with the FMS Total Visual Sourcebook that I bought some time ago. It has a class library and some sample code for logging into an FTP site and selecting and downloading files. I just know, however, that my client will balk at the additional delay while I figure out an Access-only method for getting and sending EDI documents. The DOS batch thing works but there are the additional clicks involved with closing the DOS window and then clicking the MsgBox OK button to continue processing. Any ideas? Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "One of the differences in the two parties is that the Republicans always have problems filling many of the offices that are political, because most competent people would rather do something other than work for the government..." - Jerry Pournelle -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From greggs at msn.com Thu Apr 29 10:20:15 2004 From: greggs at msn.com (Gregg) Date: Thu, 29 Apr 2004 10:20:15 -0500 Subject: [AccessD] A2K Repair In-Reply-To: <12828735359.20040429161529@cactus.dk> Message-ID: I have a database that won't repair. It is password protected and the first time I tried it, it would ask for the password, say it needs to be repaired, then say the password was invalid. Loading SP3 got me past the invalid password issue. Then the repair would go half way and stop. When I used jetcomp on it, it went half way and closed creating the new database. When I try to open the new database I get the message "Could not create... no modify design permission for table or query msysaccessobjects." I also tried to upgrade it to 2003, got the repair message , then said it couldn't. Everything I have read says it's toast. Is that True? There are no backups for at least a month. Any way to get the data back? Thanks! Gregg Steinbrenner From gustav at cactus.dk Thu Apr 29 10:24:18 2004 From: gustav at cactus.dk (Gustav Brock) Date: Thu, 29 Apr 2004 17:24:18 +0200 Subject: [AccessD] A2K: Using the shell() function In-Reply-To: <20040429095207.264583357.serbach@new.rr.com> References: <20040429095207.264583357.serbach@new.rr.com> Message-ID: <1132863725.20040429172418@cactus.dk> Hi Steven I hate to repeat myself, but having had a similar experience, I would recommend to use the 3D-FTP engine which works extremely reliable: http://www.3dftp.com and the API guide: http://www.3dftp.com/api.htm As it runs multi-threaded uploads are very fast. However, if USD 40 is too much, go and get the free wcl_ftp14 at: http://www.pacific.net/~ken/software/ Note the link to a ready-to-use Access 2000 module some nice guy has contributed. It is not as versatile as 3D-FTP (which I can offer you a code snippet for) but it does feature a visual indication which is what the users request for large batch uploads. /gustav > I'm in the thick of writing a custom EDI purchase order processing application in Access 2000. The 850 purchase orders are downloaded from the VAN (Value Added Network) mailbox using Windows FTP > commands in a DOS batch file, and the additional documents (855 PO Acknowledgment, 856 Advance Ship Notice, 810 Invoice, and 997 Functional Acknowledgment) are uploaded to the mailbox with another > DOS batch file using Windows FTP commands. > The process works, but I've had to insert MsgBox statements in the Access code alerting the user that he should wait until the DOS batch file has completed processing the FTP commands and is closed > before continuing with the Access stuff. > My question is this: do any of you lot have any techniques for 1) determining when a DOS batch file has finished (that is, the title bar of the DOS window says "Finished"); and 2) closing those > windows without user intervention? > I'm just about ready to tell my client that he should buy WS_FTP Pro so that we can set up a macro or whatever you do in WS_FTP to automagically download and upload and close the WS_FTP program. > I'm still not sure about what to do in Access so that it knows that an external application has completed its operations. Is this a DDE thing? > I've been experimenting with the FMS Total Visual Sourcebook that I bought some time ago. It has a class library and some sample code for logging into an FTP site and selecting and downloading > files. I just know, however, that my client will balk at the additional delay while I figure out an Access-only method for getting and sending EDI documents. > The DOS batch thing works but there are the additional clicks involved with closing the DOS window and then clicking the MsgBox OK button to continue processing. Any ideas? From serbach at new.rr.com Thu Apr 29 11:00:01 2004 From: serbach at new.rr.com (Steven W. Erbach) Date: Thu, 29 Apr 2004 11:00:01 -0500 Subject: [AccessD] A2K: Using the shell() function Message-ID: <20040429110001.206625495.serbach@new.rr.com> Gustav, >> I hate to repeat myself << I hope that you're referring to the world at large and not to me specifically, as I don't remember reading any reference to another FTP program. But then again I don't read every AccessD message. I'm not opposed to spending money for a decent program. I purchased WS_FTP Pro. What's different about 3D-FTP? Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 Security and Virus information: http://www.swerbach.com/security From michael.broesdorf at web.de Thu Apr 29 11:37:15 2004 From: michael.broesdorf at web.de (=?iso-8859-1?Q?Michael_Br=F6sdorf?=) Date: Thu, 29 Apr 2004 18:37:15 +0200 Subject: Solved: [AccessD] Strange problem with reports In-Reply-To: <8B98F8EA48F8BA47A2F24E0D0AF40CF407AD8231@xlivmbx12.aig.com> Message-ID: The database was in Access 2000 format and the problem occured if it was run under Access 2003 only. Converting the file to the Access 2002/2003 format solved the problem. Thanks for your suggestions! Michael -----Urspr?ngliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von Heenan, Lambert Gesendet: Dienstag, 27. April 2004 15:58 An: 'Access Developers discussion and problem solving' Betreff: RE: [AccessD] Strange problem with reports When weird stuff like that starts happening I say, back up the database and then decompile it. If that does not solve the problem then it's probably time to start a new database and import all the objects in you problem database. The report in question may be corrupt and so may not import. It will have to be rebuilt from scratch. FWIW Lambert > -----Original Message----- > From: Michael Br?sdorf [SMTP:michael.broesdorf at web.de] > Sent: Tuesday, April 27, 2004 8:33 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] Strange problem with reports > > Hi all, > > I am having a strange problem with reports in an Access 2003 application: > > The app is running on a Citrix Metaframe XP server. The report is opened > in > print preview. If I change something in the page setup (e.g. paper size or > margins), an error message shows up when the report is closed or saves > (CTRL-S): > > 'You can't set the Event Proc Prefix property in print preview or after > printing has started. > Try setting this property in the OnOpen event.' > > None of my code tries to change that property. > > What could that be? > > Michael > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Apr 29 11:39:08 2004 From: gustav at cactus.dk (Gustav Brock) Date: Thu, 29 Apr 2004 18:39:08 +0200 Subject: [AccessD] A2K: Using the shell() function In-Reply-To: <20040429110001.206625495.serbach@new.rr.com> References: <20040429110001.206625495.serbach@new.rr.com> Message-ID: <10037353811.20040429183908@cactus.dk> Hi Steven >>> I hate to repeat myself << > I hope that you're referring to the world at large and not to me > specifically, as I don't remember reading any reference to another > FTP program. But then again I don't read every AccessD message. Well, that explains - I did mail a message 2004-04-22 on this when you complained the first time. Anyway ... > I'm not opposed to spending money for a decent program. I purchased > WS_FTP Pro. What's different about 3D-FTP? It features an API which allow you to automate it. There is a very simple example on their site but in practice you have to do a lot of checking (paths, files, etc.) before you have a robust routine. You can download everything for free for evaluation, so you can easily check it out. It has run in version 4 at one of our clients for several years without a single problem where they upload over thousand picture files per run for a web site. As hosting companies' ftp servers are quite capable, 3D-FTP can stress these to their limits which results in very fast upload sessions. If you like, you can get my module which, of course, is heavily customized but I'm convinced you can easily extract what you need and modify it. A note: wcl_ftp is mainly for transfer of one file per session, thus I use it for situations where only, say, a backup cab-file is to be uploaded. /gustav From John.Clark at niagaracounty.com Thu Apr 29 12:00:16 2004 From: John.Clark at niagaracounty.com (John Clark) Date: Thu, 29 Apr 2004 13:00:16 -0400 Subject: [AccessD] OT Digital Shakespeare Message-ID: Yeah, I got both these sayings from another site called "ThinkGeek.com", and they have been hanging in my office for the past couple of years. Actually, they had been written on my whiteboard--for so long that the shadow will remain forever--but I've been thinking of making a nice sign with these sayings. The SQL statement is actually my favorite, and it has become sort of a theme. I can have it hanging in plain sight, and my users don't get it...sort of like when I tell them they are experiencing an "i-D-10-t" problem, which is more effective verbally. >>> Developer at ultradnt.com 4/29/2004 9:44:12 AM >>> This is more like a Friday thread, but the 2b thing reminded me of this. Theres a lot of t-shirts and other items with these types of sayings in a catalog called "Computer Gear" (no affiliation). My fave t-shirt is: SELECT * FROM users WHERE clue=true 0 Rows Returned There's also an "RTFM" shirt, and one that says "There are 10 kinds of people in this world, those who understand binary, and those who don't". Steve -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, April 28, 2004 10:15 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Digital Shakespeare Shakespeare always gets a little lost in the translation. ;) Susan H. Surely or(2B,!2B) -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From donald.a.Mcgillivray at mail.sprint.com Thu Apr 29 12:14:21 2004 From: donald.a.Mcgillivray at mail.sprint.com (Mcgillivray, Donald [ITS]) Date: Thu, 29 Apr 2004 12:14:21 -0500 Subject: [AccessD] A2K: Using the shell() function Message-ID: <6FC1C7A6E7BD5540AB0A8436713C43BF084AD6CF@PKDWB01C.ad.sprint.com> Steve, I don't know if what I'm doing is similar to what you need to accomplish, but I've been working on a project that requires data capture via FTP. I found a nifty program called WebDrive (http://www.webdrive.com) that allows you to map FTP sites as drives. In my db, I'm using a combination of VBA file manipulation functions (Dir, FileCopy, etc.) and Scripting FSO functionality to get and read text files via FTP. You can refer to WebDrives using UNC or specific drive letters, and user names and passwords can be saved with the mappings so that they reconnect automatically upon system startup. Best $40 I've spent in the last month or so . . . Hope this helps. Don McGillivray -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steven W. Erbach Sent: Thursday, April 29, 2004 7:52 AM To: Access Developers discussion and problem solving Subject: [AccessD] A2K: Using the shell() function Dear Group, I'm in the thick of writing a custom EDI purchase order processing application in Access 2000. The 850 purchase orders are downloaded from the VAN (Value Added Network) mailbox using Windows FTP commands in a DOS batch file, and the additional documents (855 PO Acknowledgment, 856 Advance Ship Notice, 810 Invoice, and 997 Functional Acknowledgment) are uploaded to the mailbox with another DOS batch file using Windows FTP commands. The process works, but I've had to insert MsgBox statements in the Access code alerting the user that he should wait until the DOS batch file has completed processing the FTP commands and is closed before continuing with the Access stuff. My question is this: do any of you lot have any techniques for 1) determining when a DOS batch file has finished (that is, the title bar of the DOS window says "Finished"); and 2) closing those windows without user intervention? I'm just about ready to tell my client that he should buy WS_FTP Pro so that we can set up a macro or whatever you do in WS_FTP to automagically download and upload and close the WS_FTP program. I'm still not sure about what to do in Access so that it knows that an external application has completed its operations. Is this a DDE thing? I've been experimenting with the FMS Total Visual Sourcebook that I bought some time ago. It has a class library and some sample code for logging into an FTP site and selecting and downloading files. I just know, however, that my client will balk at the additional delay while I figure out an Access-only method for getting and sending EDI documents. The DOS batch thing works but there are the additional clicks involved with closing the DOS window and then clicking the MsgBox OK button to continue processing. Any ideas? Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "One of the differences in the two parties is that the Republicans always have problems filling many of the offices that are political, because most competent people would rather do something other than work for the government..." - Jerry Pournelle -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From serbach at new.rr.com Thu Apr 29 12:16:42 2004 From: serbach at new.rr.com (Steven W. Erbach) Date: Thu, 29 Apr 2004 12:16:42 -0500 Subject: [AccessD] A2K: Shell 'discoveries' Message-ID: <20040429121642.1497583085.serbach@new.rr.com> Jim, Marty, William, Jim D., Gustav, Andy, and Jeffrey, I'm embarrassed to say that I didn't check back with this thread until today. When I wrote my message I didn't expect any responses since it was pretty much a report, not a question. Thank you for your input on this. Since the application currently requires multiple clicks of the mouse to download EDI documents and upload 997 acknowledgments, I think my customer will appreciate anything that can reduce the chance for "mousal tunnel". Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "Let every nation know, whether it wishes us well or ill, that we shall pay any price, bear any burden, meet any hardship, support any friend, oppose any foe, in order to assure the survival and the success of liberty." - John F. Kennedy, 1961 From serbach at new.rr.com Thu Apr 29 12:17:07 2004 From: serbach at new.rr.com (Steven W. Erbach) Date: Thu, 29 Apr 2004 12:17:07 -0500 Subject: [AccessD] A2K: Using the shell() function Message-ID: <20040429121707.1417978362.serbach@new.rr.com> Gustav, >> Well, that explains - I did mail a message 2004-04-22 on this when you complained the first time. << You know, when I wrote that I didn't really think that anyone would comment since I was just "complaining", as you said. I just went back to look and voila! All sorts of responses. I'm sorry. I wasn't paying attention. Good grief! There was all kinds of good stuff in those replies. >> If you like, you can get my module which, of course, is heavily customized but I'm convinced you can easily extract what you need and modify it. << Of course I would like that. What do I need to do? Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "If you can't say anything nice, run for President." - Argus Hamilton From slee at asu.edu Thu Apr 29 12:20:59 2004 From: slee at asu.edu (S Lee) Date: Thu, 29 Apr 2004 10:20:59 -0700 Subject: [AccessD] A2K: Using the shell() function Message-ID: I would like the module also, please. Thanks slee at asu.edu >> If you like, you can get my module which, of course, is heavily customized but I'm convinced you can easily extract what you need and modify it. << Of course I would like that. What do I need to do? Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 "If you can't say anything nice, run for President." - Argus Hamilton -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at bellsouth.net Thu Apr 29 12:23:59 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Thu, 29 Apr 2004 13:23:59 -0400 Subject: [AccessD] A2K: Using the shell() function References: <20040429110001.206625495.serbach@new.rr.com> Message-ID: <003b01c42e0e$c21125a0$6101a8c0@dejpolsys> ...you need to go back and read the archives Steve :( William Hindman "The world's becoming a museum of socialist failures." John Dos Passos ----- Original Message ----- From: "Steven W. Erbach" To: "Access Developers discussion and problem solving" Sent: Thursday, April 29, 2004 12:00 PM Subject: Re: [AccessD] A2K: Using the shell() function > Gustav, > > >> I hate to repeat myself << > > I hope that you're referring to the world at large and not to me specifically, as I don't remember reading any reference to another FTP program. But then again I don't read every AccessD message. > > I'm not opposed to spending money for a decent program. I purchased WS_FTP Pro. What's different about 3D-FTP? > > Regards, > > Steve Erbach > Scientific Marketing > Neenah, WI > 920-969-0504 > > Security and Virus information: > http://www.swerbach.com/security > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From serbach at new.rr.com Thu Apr 29 12:37:44 2004 From: serbach at new.rr.com (Steven W. Erbach) Date: Thu, 29 Apr 2004 12:37:44 -0500 Subject: [AccessD] A2K: Using the shell() function Message-ID: <20040429123744.107487292.serbach@new.rr.com> William, >> ...you need to go back and read the archives Steve :( << You're right, of course. I've been working on this thing for a while and posting that message last Thursday was more a "here's what I found/did, for what it's worth" kind of message. I didn't come back to AccessD until today when I was looking for additional information. Last week you wrote that you had a sample mdb "that's worked round the clock for years now." Any chance I might download it or get you to e-mail it to me? Sincerely, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 http://www.swerbach.com/security From serbach at new.rr.com Thu Apr 29 12:40:33 2004 From: serbach at new.rr.com (Steven W. Erbach) Date: Thu, 29 Apr 2004 12:40:33 -0500 Subject: [AccessD] A2K: Using the shell() function Message-ID: <20040429124033.736785068.serbach@new.rr.com> Don, >> You can refer to WebDrives using UNC or specific drive letters, and user names and passwords can be saved with the mappings so that they reconnect automatically upon system startup. << That made me think of another long-standing problem I've been wrestling with: Access replication. Internet/Indirect replication requires drive letters...maybe this product can help me kill that second bird, too! Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 RUSH LIMBAUGH: After Pearl Harbor, we didn't do the Pearl Harbor committee investigation until after the war was over. KAREN HUGHES: And no one suggested that the president should apologize for the Japanese attack on our country. From lists at theopg.com Thu Apr 29 12:54:20 2004 From: lists at theopg.com (MarkH) Date: Thu, 29 Apr 2004 18:54:20 +0100 Subject: [AccessD] AXP and copying records in table view shuts Access In-Reply-To: <945722037.20040429095155@cactus.dk> Message-ID: <000201c42e12$ffed5750$8f0d6bd5@netboxxp> Hello All I am using Access XP on Windows XP on several different machines. Every now and then, when in a table and copying records (either from the menu or by using CTRL+C) Access just shuts down, sometimes with an unhandled error, sometimes it just vanishes. The problem is not limited to a particular mdb or computer. I'm not sure yet (this may be a coincidence) but it seems to happen on tables with a few yes/no columns... Also, maybe another coincidence) it doesn't seem to happen when I view the records through a query. Anyone come across this or have any idea what the solution is? Cheers Mark From michael.broesdorf at web.de Thu Apr 29 12:51:35 2004 From: michael.broesdorf at web.de (=?us-ascii?Q?Michael_Brosdorf?=) Date: Thu, 29 Apr 2004 19:51:35 +0200 Subject: AW: [AccessD] OT Digital Shakespeare In-Reply-To: Message-ID: I don't get it: what is an 'i-D-10-t' problem?? Michael -----Ursprungliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von John Clark Gesendet: Donnerstag, 29. April 2004 19:00 An: accessd at databaseadvisors.com Betreff: RE: [AccessD] OT Digital Shakespeare Yeah, I got both these sayings from another site called "ThinkGeek.com", and they have been hanging in my office for the past couple of years. Actually, they had been written on my whiteboard--for so long that the shadow will remain forever--but I've been thinking of making a nice sign with these sayings. The SQL statement is actually my favorite, and it has become sort of a theme. I can have it hanging in plain sight, and my users don't get it...sort of like when I tell them they are experiencing an "i-D-10-t" problem, which is more effective verbally. >>> Developer at ultradnt.com 4/29/2004 9:44:12 AM >>> This is more like a Friday thread, but the 2b thing reminded me of this. Theres a lot of t-shirts and other items with these types of sayings in a catalog called "Computer Gear" (no affiliation). My fave t-shirt is: SELECT * FROM users WHERE clue=true 0 Rows Returned There's also an "RTFM" shirt, and one that says "There are 10 kinds of people in this world, those who understand binary, and those who don't". Steve -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, April 28, 2004 10:15 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Digital Shakespeare Shakespeare always gets a little lost in the translation. ;) Susan H. Surely or(2B,!2B) -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Thu Apr 29 12:59:48 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Thu, 29 Apr 2004 12:59:48 -0500 Subject: [AccessD] TransferText working sporadically. Message-ID: <2F8793082E00D4119A1700B0D0216BF802227B38@main2.marlow.com> Our Payroll guy has an Access .mdb which imports data from our Hours program (written in DataPoint), into Abra, our Payroll/HR package. A few weeks ago, that database stopped working, and it is failing on a line of code that is DoCmd.TransferText. It says it is unable to write to the database. It works from my machine (Windows 2000, running Access 97), but not the payroll guy's machine, (NT 4.0 workstation, access 97). Both have the same service packs, etc. Any thoughts? Drew From wdhindman at bellsouth.net Thu Apr 29 13:05:32 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Thu, 29 Apr 2004 14:05:32 -0400 Subject: [AccessD] OT Digital Shakespeare References: Message-ID: <004201c42e14$909194a0$6101a8c0@dejpolsys> ...whooossssssshhhhhhhhh!!!! William Hindman "The world's becoming a museum of socialist failures." John Dos Passos ----- Original Message ----- From: "Michael Brosdorf" To: "Access Developers discussion and problem solving" Sent: Thursday, April 29, 2004 1:51 PM Subject: AW: [AccessD] OT Digital Shakespeare > I don't get it: what is an 'i-D-10-t' problem?? > > Michael > > -----Ursprungliche Nachricht----- > Von: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von John Clark > Gesendet: Donnerstag, 29. April 2004 19:00 > An: accessd at databaseadvisors.com > Betreff: RE: [AccessD] OT Digital Shakespeare > > > Yeah, I got both these sayings from another site called "ThinkGeek.com", > and they have been hanging in my office for the past couple of years. > Actually, they had been written on my whiteboard--for so long that the > shadow will remain forever--but I've been thinking of making a nice sign > with these sayings. The SQL statement is actually my favorite, and it > has become sort of a theme. I can have it hanging in plain sight, and my > users don't get it...sort of like when I tell them they are experiencing > an "i-D-10-t" problem, which is more effective verbally. > > >>> Developer at ultradnt.com 4/29/2004 9:44:12 AM >>> > This is more like a Friday thread, but the 2b thing reminded me of > this. > Theres a lot of t-shirts and other items with these types of sayings > in > a catalog called "Computer Gear" (no affiliation). > My fave t-shirt is: > > SELECT * FROM users WHERE clue=true > 0 Rows Returned > > > There's also an "RTFM" shirt, and one that says "There are 10 kinds of > people in this world, those who understand binary, and those who > don't". > > > Steve > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan > Harkins > Sent: Wednesday, April 28, 2004 10:15 PM > To: 'Access Developers discussion and problem solving' > Subject: RE: [AccessD] Digital Shakespeare > > > Shakespeare always gets a little lost in the translation. ;) > > Susan H. > > Surely > > or(2B,!2B) > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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.Clark at niagaracounty.com Thu Apr 29 13:06:48 2004 From: John.Clark at niagaracounty.com (John Clark) Date: Thu, 29 Apr 2004 14:06:48 -0400 Subject: AW: [AccessD] OT Digital Shakespeare Message-ID: I wrote it the way that you say it, but if you put it together...iD10t...or...idiot John W Clark >>> michael.broesdorf at web.de 4/29/2004 1:51:35 PM >>> I don't get it: what is an 'i-D-10-t' problem?? Michael -----Ursprungliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von John Clark Gesendet: Donnerstag, 29. April 2004 19:00 An: accessd at databaseadvisors.com Betreff: RE: [AccessD] OT Digital Shakespeare Yeah, I got both these sayings from another site called "ThinkGeek.com", and they have been hanging in my office for the past couple of years. Actually, they had been written on my whiteboard--for so long that the shadow will remain forever--but I've been thinking of making a nice sign with these sayings. The SQL statement is actually my favorite, and it has become sort of a theme. I can have it hanging in plain sight, and my users don't get it...sort of like when I tell them they are experiencing an "i-D-10-t" problem, which is more effective verbally. >>> Developer at ultradnt.com 4/29/2004 9:44:12 AM >>> This is more like a Friday thread, but the 2b thing reminded me of this. Theres a lot of t-shirts and other items with these types of sayings in a catalog called "Computer Gear" (no affiliation). My fave t-shirt is: SELECT * FROM users WHERE clue=true 0 Rows Returned There's also an "RTFM" shirt, and one that says "There are 10 kinds of people in this world, those who understand binary, and those who don't". Steve -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, April 28, 2004 10:15 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Digital Shakespeare Shakespeare always gets a little lost in the translation. ;) Susan H. Surely or(2B,!2B) -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jeffrey.demulling at usbank.com Thu Apr 29 13:12:22 2004 From: jeffrey.demulling at usbank.com (jeffrey.demulling at usbank.com) Date: Thu, 29 Apr 2004 13:12:22 -0500 Subject: [AccessD] TransferText working sporadically. Message-ID: Do you both have the same rights to the target directory? DWUTKA at marlow.com Sent by: To: AccessD at databaseadvisors.com accessd-bounces at databasea cc: dvisors.com Subject: [AccessD] TransferText working sporadically. 04/29/2004 12:59 PM Please respond to "Access Developers discussion and problem solving" Our Payroll guy has an Access .mdb which imports data from our Hours program (written in DataPoint), into Abra, our Payroll/HR package. A few weeks ago, that database stopped working, and it is failing on a line of code that is DoCmd.TransferText. It says it is unable to write to the database. It works from my machine (Windows 2000, running Access 97), but not the payroll guy's machine, (NT 4.0 workstation, access 97). Both have the same service packs, etc. Any thoughts? Drew -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Lambert.Heenan at AIG.com Thu Apr 29 14:36:55 2004 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Thu, 29 Apr 2004 15:36:55 -0400 Subject: [AccessD] A2K: Using the shell() function Message-ID: <8B98F8EA48F8BA47A2F24E0D0AF40CF407AD8255@xlivmbx12.aig.com> I deal with this probelm simply by having the batch file create an emptry folder. Then it goes on and does whatever else it need to do. Meanwhile the VBA code looks for the folder and keeps looping while it sees the folder. At the end of the batch file I delete the sentinel folder and that then allows the VBA code to proceed. The DOS Box closes automatically at the termination of the batch file. Here's the code I use as an example... Sub CreateFileInventory(ByVal sRootFolder As String) ' This sub creates and runs a batch file which builds a list of all the files in all the subfolders ' of the root folder defined in sRootFolder. This is stored in a text file for further processing Const BATCHFILE = "C:\LSFINV.BAT" Dim strComLine As String Dim strCommand As String Dim fHandle As Long DoCmd.Hourglass True fHandle = FreeFile Open BATCHFILE For Output As #fHandle strComLine = "DIR " & quote(sRootFolder & "*.*") & " /s /b > C:\LSDOC.LST" Print #fHandle, "c:" Print #fHandle, "CD \" Print #fHandle, "MD LSFinv" Print #fHandle, strComLine Print #fHandle, "rd LSFinv" Close #fHandle strCommand = Environ("COMSPEC") & " /c " & BATCHFILE Shell strCommand, vbMinimizedNoFocus sSleep 1000 ' pause long enough to have the flag folder created While FileExists("C:\LSFinv") DoEvents Wend DoCmd.Hourglass False Kill BATCHFILE End Sub ... and here are the three small helper routines that it uses... ''''''''''''''''''''''''''''''''''''''''''' Function Quote(aString) As String Quote = """" & aString & """" End Function ''''''''''''''''''''''''''''''''''''''''''' Private Declare Sub sapiSleep Lib "Kernel32" _ Alias "Sleep" _ (ByVal dwMilliseconds As Long) Sub sSleep(lngMilliSec As Long) If lngMilliSec > 0 Then Call sapiSleep(lngMilliSec) End If End Sub ''''''''''''''''''''''''''''''''''''''''''' Function FileExists(strFile As String) As Boolean ' Comments : Determines if the file exists ' Works for hidden files and folders ' Parameters: strFile - file to check ' Returns : True if the file exists, otherwise false Dim intAttr As Integer On Error Resume Next intAttr = GetAttr(strFile) FileExists = (Err.Number = 0) End Function HTH Lambert > -----Original Message----- > From: Steven W. Erbach [SMTP:serbach at new.rr.com ] > Sent: Thursday, April 29, 2004 10:52 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] A2K: Using the shell() function > > Dear Group, > > I'm in the thick of writing a custom EDI purchase order processing > application in Access 2000. The 850 purchase orders are downloaded from > the VAN (Value Added Network) mailbox using Windows FTP commands in a DOS > batch file, and the additional documents (855 PO Acknowledgment, 856 > Advance Ship Notice, 810 Invoice, and 997 Functional Acknowledgment) are > uploaded to the mailbox with another DOS batch file using Windows FTP > commands. > > The process works, but I've had to insert MsgBox statements in the Access > code alerting the user that he should wait until the DOS batch file has > completed processing the FTP commands and is closed before continuing with > the Access stuff. > > My question is this: do any of you lot have any techniques for 1) > determining when a DOS batch file has finished (that is, the title bar of > the DOS window says "Finished"); and 2) closing those windows without user > intervention? > > I'm just about ready to tell my client that he should buy WS_FTP Pro so > that we can set up a macro or whatever you do in WS_FTP to automagically > download and upload and close the WS_FTP program. I'm still not sure about > what to do in Access so that it knows that an external application has > completed its operations. Is this a DDE thing? > > I've been experimenting with the FMS Total Visual Sourcebook that I bought > some time ago. It has a class library and some sample code for logging > into an FTP site and selecting and downloading files. I just know, > however, that my client will balk at the additional delay while I figure > out an Access-only method for getting and sending EDI documents. > > The DOS batch thing works but there are the additional clicks involved > with closing the DOS window and then clicking the MsgBox OK button to > continue processing. Any ideas? > > Regards, > > Steve Erbach > Scientific Marketing > Neenah, WI > 920-969-0504 > > "One of the differences in the two parties is that the Republicans always > have problems filling many of the offices that are political, because most > competent people would rather do something other than work for the > government..." - Jerry Pournelle > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From mike.tope at dsl.pipex.com Thu Apr 29 16:05:36 2004 From: mike.tope at dsl.pipex.com (Mike Tope) Date: Thu, 29 Apr 2004 22:05:36 +0100 Subject: [AccessD] TransferText working sporadically. References: <2F8793082E00D4119A1700B0D0216BF802227B38@main2.marlow.com> Message-ID: <001201c42e2d$baab21c0$0207a8c0@TopEnergy> Drew Is the message really "Object is read-only" ? File extension has to be .txt. You may have set your machine years ago to get around it. There were ways. Mike Tope ----- Original Message ----- From: To: Sent: 29 April 2004 18:59 Subject: [AccessD] TransferText working sporadically. > Our Payroll guy has an Access .mdb which imports data from our Hours program > (written in DataPoint), into Abra, our Payroll/HR package. A few weeks ago, > that database stopped working, and it is failing on a line of code that is > DoCmd.TransferText. It says it is unable to write to the database. > > It works from my machine (Windows 2000, running Access 97), but not the > payroll guy's machine, (NT 4.0 workstation, access 97). > > Both have the same service packs, etc. > > Any thoughts? > > Drew From Lambert.Heenan at AIG.com Thu Apr 29 16:27:36 2004 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Thu, 29 Apr 2004 17:27:36 -0400 Subject: [AccessD] A2K Repair Message-ID: <8B98F8EA48F8BA47A2F24E0D0AF40CF407AD8264@xlivmbx12.aig.com> Not much hope, but try importing all the objects in the database into a new, empty database. Lambert > -----Original Message----- > From: Gregg [SMTP:greggs at msn.com] > Sent: Thursday, April 29, 2004 11:20 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] A2K Repair > > I have a database that won't repair. It is password protected and the > first > time I tried it, it would ask for the password, say it needs to be > repaired, > then say the password was invalid. Loading SP3 got me past the invalid > password issue. Then the repair would go half way and stop. When I used > jetcomp on it, it went half way and closed creating the new database. > When > I try to open the new database I get the message "Could not create... no > modify design permission for table or query msysaccessobjects." I also > tried to upgrade it to 2003, got the repair message , then said it > couldn't. > > Everything I have read says it's toast. Is that True? There are no > backups > for at least a month. Any way to get the data back? > > Thanks! > > Gregg Steinbrenner > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Thu Apr 29 16:56:01 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Thu, 29 Apr 2004 16:56:01 -0500 Subject: [AccessD] TransferText working sporadically. Message-ID: <2F8793082E00D4119A1700B0D0216BF802227B40@main2.marlow.com> Oh ya, forgot to mention. From my machine it worked as me logged in, from his machine, it gave the same error no matter who was logged in. (And I'm a domain admin). Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of jeffrey.demulling at usbank.com Sent: Thursday, April 29, 2004 1:12 PM To: Access Developers discussion and problem solving Cc: AccessD at databaseadvisors.com; accessd-bounces at databaseadvisors.com Subject: Re: [AccessD] TransferText working sporadically. Do you both have the same rights to the target directory? DWUTKA at marlow.com Sent by: To: AccessD at databaseadvisors.com accessd-bounces at databasea cc: dvisors.com Subject: [AccessD] TransferText working sporadically. 04/29/2004 12:59 PM Please respond to "Access Developers discussion and problem solving" Our Payroll guy has an Access .mdb which imports data from our Hours program (written in DataPoint), into Abra, our Payroll/HR package. A few weeks ago, that database stopped working, and it is failing on a line of code that is DoCmd.TransferText. It says it is unable to write to the database. It works from my machine (Windows 2000, running Access 97), but not the payroll guy's machine, (NT 4.0 workstation, access 97). Both have the same service packs, etc. Any thoughts? Drew -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at marlow.com Thu Apr 29 16:59:46 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Thu, 29 Apr 2004 16:59:46 -0500 Subject: [AccessD] TransferText working sporadically. Message-ID: <2F8793082E00D4119A1700B0D0216BF802227B41@main2.marlow.com> Actually, the extension is .dat. And my machine is a brand new installation (I had to rebuild it about a month ago. That is a VERY good point though. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mike Tope Sent: Thursday, April 29, 2004 4:06 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] TransferText working sporadically. Drew Is the message really "Object is read-only" ? File extension has to be .txt. You may have set your machine years ago to get around it. There were ways. Mike Tope ----- Original Message ----- From: To: Sent: 29 April 2004 18:59 Subject: [AccessD] TransferText working sporadically. > Our Payroll guy has an Access .mdb which imports data from our Hours program > (written in DataPoint), into Abra, our Payroll/HR package. A few weeks ago, > that database stopped working, and it is failing on a line of code that is > DoCmd.TransferText. It says it is unable to write to the database. > > It works from my machine (Windows 2000, running Access 97), but not the > payroll guy's machine, (NT 4.0 workstation, access 97). > > Both have the same service packs, etc. > > Any thoughts? > > Drew -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From demulling at centurytel.net Thu Apr 29 17:26:00 2004 From: demulling at centurytel.net (Demulling Family) Date: Thu, 29 Apr 2004 17:26:00 -0500 Subject: [AccessD] TransferText working sporadically. In-Reply-To: <2F8793082E00D4119A1700B0D0216BF802227B40@main2.marlow.com> References: <2F8793082E00D4119A1700B0D0216BF802227B40@main2.marlow.com> Message-ID: <409180F8.6090504@centurytel.net> DWUTKA at marlow.com wrote: >Oh ya, forgot to mention. From my machine it worked as me logged in, from >his machine, it gave the same error no matter who was logged in. (And I'm a >domain admin). > >Well, it was worth asking, had a problem similar about a month ago and it was the user's rights to the network, not the case here. Have you tried reinstalling Access on the machine? Might work... > > > > > > From stuart at lexacorp.com.pg Thu Apr 29 17:29:22 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 30 Apr 2004 08:29:22 +1000 Subject: AW: [AccessD] OT Digital Shakespeare In-Reply-To: References: Message-ID: <40920E62.25988.351338@localhost> On 29 Apr 2004 at 19:51, Michael Brosdorf wrote: > I don't get it: what is an 'i-D-10-t' problem?? > Similar to a PEBCAK fault. ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... Problem Exists Between Chair and Keyboard :-) -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support. From jwelz at hotmail.com Thu Apr 29 18:00:25 2004 From: jwelz at hotmail.com (Jürgen Welz) Date: Thu, 29 Apr 2004 17:00:25 -0600 Subject: [AccessD] User Defined Properties A97 Message-ID: Just guessing but I suspect that the problem is that DBEngine(0)(0) is only going to see the collections as at the time the database was opened or the last time CurrentDb was called. If you replace DBEngine(0)(0) with CurrentDb, I suspect you will see the current property value. Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MACE, Terry >Sent: Tuesday, April 27, 2004 9:54 PM >To: 'Access Developers discussion and problem solving' >Subject: [AccessD] User Defined Properties A97 > > >I'm trying to use a custom property to store some changing information, >which works fine, but when I try to read it, it only returns the value that >was present when the database was opened. > >Is this the way it works or can I read the changed info. I'm using the >following code to read the property 'Reference': > >DBEngine(0)(0).Containers("Databases").Documents("UserDefined").Properties(" >reference") > >Terry Mace >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN Premium http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines From lists at theopg.com Thu Apr 22 12:23:57 2004 From: lists at theopg.com (MarkH) Date: Thu, 22 Apr 2004 18:23:57 +0100 Subject: [AccessD] Access XP Runtime and Autocad In-Reply-To: <8614878414.20040413132824@cactus.dk> Message-ID: <000201c4288e$a5634530$0f0b6bd5@netboxxp> Hello All... We are using Access XP runtime on Windos XP and today a couple of machines completely failed to load any access database. In both cases Autocad 2002 had been installed this morning. You could get into simple databases, but as soon as you load a form that contains a list or tree control (mscomctl.ocx) access falls over offering to restart and send a message to Microsoft... Nothing usefull really. Anyone out there know what could be causing this problem? Cheers Mark From wdhindman at bellsouth.net Thu Apr 29 20:13:44 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Thu, 29 Apr 2004 21:13:44 -0400 Subject: [AccessD] Access XP Runtime and Autocad References: <000201c4288e$a5634530$0f0b6bd5@netboxxp> Message-ID: <000801c42e50$61dcacd0$6101a8c0@dejpolsys> ...I'd try reapplying SP3 for the AXP runtime first ...if AutoCad replaced it, the SP3 contains the current version ...that's assuming of course that AutoCad didn't make the crc and version id exactly the same as the MS version ...I remember the chaos AOL caused when they did something similar with a number of files in their version 5. ...if the SP3 doesn't fix the problem I'd drop to DOS and delete the mscomctl.ocx and then try SP3 again. ...if that doesn't work, its time for System Restore ...hth :) William Hindman "The world's becoming a museum of socialist failures." John Dos Passos ----- Original Message ----- From: "MarkH" To: "'Access Developers discussion and problem solving'" Sent: Thursday, April 22, 2004 1:23 PM Subject: [AccessD] Access XP Runtime and Autocad > Hello All... > > We are using Access XP runtime on Windos XP and today a couple of > machines completely failed to load any access database. In both cases > Autocad 2002 had been installed this morning. You could get into simple > databases, but as soon as you load a form that contains a list or tree > control (mscomctl.ocx) access falls over offering to restart and send a > message to Microsoft... Nothing usefull really. > > Anyone out there know what could be causing this problem? > > Cheers > > Mark > > -- > _______________________________________________ > 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 Apr 29 22:54:52 2004 From: d.dick at uws.edu.au (Darren DICK) Date: Fri, 30 Apr 2004 13:54:52 +1000 Subject: [AccessD] A2K: Rich Text Stuff I suppose Message-ID: <011401c42e66$e43ab0d0$48619a89@DDICK> Hello all Can anyone point me to some good examples of using rich text boxes? Then have the result viewable on a report? What I want is for the user to create a standard welcome letter for any new customers added to the dB EG I Want the user to be able to do a basic kind of merge, something like... Hi <> Welcome to the mailing list for <>. We here at all MsDatabasesR4U are happy to have you aboard. And have say...the word "MsDatabasesR4U" in bold for example I have code for getting data into the tags eg <> and <> But what I want is the ability for my data entry people to create such text in some sort of RTBox bound to a memo field somewhere in a table. Then produce a report bound to the same memo field and have the same formatting eg "MsDatabasesR4U" in bold - on this report with my data filling in the tags. Sorry for the long post Any suggestions or pointers? Many thanks in advance Darren From greggs at msn.com Thu Apr 29 23:45:43 2004 From: greggs at msn.com (Gregg) Date: Thu, 29 Apr 2004 23:45:43 -0500 Subject: [AccessD] A2K Repair In-Reply-To: <8B98F8EA48F8BA47A2F24E0D0AF40CF407AD8264@xlivmbx12.aig.com> Message-ID: Tried that... get the "Not a database message" But Thanks! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Heenan, Lambert Sent: Thursday, April 29, 2004 4:28 PM To: 'Access Developers discussion and problem solving' Cc: 'greggs at msn.com' Subject: RE: [AccessD] A2K Repair Not much hope, but try importing all the objects in the database into a new, empty database. Lambert > -----Original Message----- > From: Gregg [SMTP:greggs at msn.com] > Sent: Thursday, April 29, 2004 11:20 AM > To: Access Developers discussion and problem solving > Subject: [AccessD] A2K Repair > > I have a database that won't repair. It is password protected and the > first > time I tried it, it would ask for the password, say it needs to be > repaired, > then say the password was invalid. Loading SP3 got me past the invalid > password issue. Then the repair would go half way and stop. When I used > jetcomp on it, it went half way and closed creating the new database. > When > I try to open the new database I get the message "Could not create... no > modify design permission for table or query msysaccessobjects." I also > tried to upgrade it to 2003, got the repair message , then said it > couldn't. > > Everything I have read says it's toast. Is that True? There are no > backups > for at least a month. Any way to get the data back? > > Thanks! > > Gregg Steinbrenner > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From michael.broesdorf at web.de Fri Apr 30 01:57:25 2004 From: michael.broesdorf at web.de (=?us-ascii?Q?Michael_Brosdorf?=) Date: Fri, 30 Apr 2004 08:57:25 +0200 Subject: AW: AW: [AccessD] OT Digital Shakespeare In-Reply-To: Message-ID: I guess I should'nt have asked... :-)) Michael -----Ursprungliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von John Clark Gesendet: Donnerstag, 29. April 2004 20:07 An: accessd at databaseadvisors.com Betreff: Re: AW: [AccessD] OT Digital Shakespeare I wrote it the way that you say it, but if you put it together...iD10t...or...idiot John W Clark >>> michael.broesdorf at web.de 4/29/2004 1:51:35 PM >>> I don't get it: what is an 'i-D-10-t' problem?? Michael -----Ursprungliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von John Clark Gesendet: Donnerstag, 29. April 2004 19:00 An: accessd at databaseadvisors.com Betreff: RE: [AccessD] OT Digital Shakespeare Yeah, I got both these sayings from another site called "ThinkGeek.com", and they have been hanging in my office for the past couple of years. Actually, they had been written on my whiteboard--for so long that the shadow will remain forever--but I've been thinking of making a nice sign with these sayings. The SQL statement is actually my favorite, and it has become sort of a theme. I can have it hanging in plain sight, and my users don't get it...sort of like when I tell them they are experiencing an "i-D-10-t" problem, which is more effective verbally. >>> Developer at ultradnt.com 4/29/2004 9:44:12 AM >>> This is more like a Friday thread, but the 2b thing reminded me of this. Theres a lot of t-shirts and other items with these types of sayings in a catalog called "Computer Gear" (no affiliation). My fave t-shirt is: SELECT * FROM users WHERE clue=true 0 Rows Returned There's also an "RTFM" shirt, and one that says "There are 10 kinds of people in this world, those who understand binary, and those who don't". Steve -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, April 28, 2004 10:15 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Digital Shakespeare Shakespeare always gets a little lost in the translation. ;) Susan H. Surely or(2B,!2B) -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Apr 30 03:10:44 2004 From: lists at theopg.com (MarkH) Date: Fri, 30 Apr 2004 09:10:44 +0100 Subject: [AccessD] Access XP Runtime and Autocad In-Reply-To: <000801c42e50$61dcacd0$6101a8c0@dejpolsys> Message-ID: <000001c42e8a$a3396a30$8f0d6bd5@netboxxp> Thanks William Will have a go on Tuesday... Mark -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: 30 April 2004 02:14 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access XP Runtime and Autocad ...I'd try reapplying SP3 for the AXP runtime first ...if AutoCad replaced it, the SP3 contains the current version ...that's assuming of course that AutoCad didn't make the crc and version id exactly the same as the MS version ...I remember the chaos AOL caused when they did something similar with a number of files in their version 5. ...if the SP3 doesn't fix the problem I'd drop to DOS and delete the mscomctl.ocx and then try SP3 again. ...if that doesn't work, its time for System Restore ...hth :) William Hindman "The world's becoming a museum of socialist failures." John Dos Passos ----- Original Message ----- From: "MarkH" To: "'Access Developers discussion and problem solving'" Sent: Thursday, April 22, 2004 1:23 PM Subject: [AccessD] Access XP Runtime and Autocad > Hello All... > > We are using Access XP runtime on Windos XP and today a couple of > machines completely failed to load any access database. In both cases > Autocad 2002 had been installed this morning. You could get into > simple databases, but as soon as you load a form that contains a list > or tree control (mscomctl.ocx) access falls over offering to restart > and send a message to Microsoft... Nothing usefull really. > > Anyone out there know what could be causing this problem? > > Cheers > > 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 viner at eunet.yu Fri Apr 30 04:36:18 2004 From: viner at eunet.yu (Ervin Brindza) Date: Fri, 30 Apr 2004 11:36:18 +0200 Subject: [AccessD] OT: Quick view of ico files Message-ID: <000c01c42e96$d41c19c0$0100a8c0@razvoj> I just downloaded from http://www.mvp-access.com/rubenvigon/recursos.htm over 11Mb of .ico and .avi files. Are there any way to browse them quickly? TIA, Ervin From wdhindman at bellsouth.net Fri Apr 30 05:49:23 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Fri, 30 Apr 2004 06:49:23 -0400 Subject: [AccessD] OT: Quick view of ico files References: <000c01c42e96$d41c19c0$0100a8c0@razvoj> Message-ID: <000801c42ea0$ccdb36a0$6101a8c0@dejpolsys> ...in XP, you can just open them in explorer ...it will display the avis in media player and use the MS Picture viewer to show the icons although, if your explorer is configured properly, each icon will be shown in the pane next to its file. ...don't much care for the avis but there are a number of well done and useful icons in there ...thanks for the link :) ...there is some code available for browsing/viewing the bitmapped files from within Access but I've not used it myself ...if that's what you were looking for I can e you a sample mdb. William Hindman "The world's becoming a museum of socialist failures." John Dos Passos ----- Original Message ----- From: "Ervin Brindza" To: Sent: Friday, April 30, 2004 5:36 AM Subject: [AccessD] OT: Quick view of ico files I just downloaded from http://www.mvp-access.com/rubenvigon/recursos.htm over 11Mb of .ico and .avi files. Are there any way to browse them quickly? TIA, Ervin -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From serbach at new.rr.com Fri Apr 30 06:15:18 2004 From: serbach at new.rr.com (Steven W. Erbach) Date: Fri, 30 Apr 2004 06:15:18 -0500 Subject: [AccessD] A2K Repair Message-ID: <20040430061518.1467466482.serbach@new.rr.com> Gregg, The only other thing to try is to open it with the /decompile switch on the command line. Sorry. Regards, Steve Erbach Scientific Marketing Neenah, WI 920-969-0504 Message created with Bloomba Disclaimer: No tree was killed in the transmission of this message. However, several coulombs of electrons were temporarily inconvenienced. From serbach at new.rr.com Fri Apr 30 06:17:22 2004 From: serbach at new.rr.com (Steven W. Erbach) Date: Fri, 30 Apr 2004 06:17:22 -0500 Subject: AW: [AccessD] OT Digital Shakespeare Message-ID: <20040430061722.2016038329.serbach@new.rr.com> Stuart, Or the NLIOC error: Nut Loose In Operator's Chair. Regards, Steve Erbach Scientific Marketing Neenah, WI "You must be an intellectual. No normal person would say a thing like that." - George Orwell From viner at eunet.yu Fri Apr 30 06:35:15 2004 From: viner at eunet.yu (Ervin Brindza) Date: Fri, 30 Apr 2004 13:35:15 +0200 Subject: [AccessD] OT: Quick view of ico files References: <000c01c42e96$d41c19c0$0100a8c0@razvoj> <000801c42ea0$ccdb36a0$6101a8c0@dejpolsys> Message-ID: <003501c42ea7$5aba6e40$0100a8c0@razvoj> > ...there is some code available for browsing/viewing the bitmapped files > from within Access but I've not used it myself ...if that's what you were > looking for I can e you a sample mdb. > Yes, yes! I want to take as quick look as I can, because there are more than 12k files, and in Win98/Windows Explorer it is hard to watch all those little file icons... Send me the sample, please! TIA, Ervin From Susan.Klos at fldoe.org Fri Apr 30 06:38:12 2004 From: Susan.Klos at fldoe.org (Klos, Susan) Date: Fri, 30 Apr 2004 07:38:12 -0400 Subject: [AccessD] How to create a 2 year multimonth report Message-ID: <01B619CB8F6C8C478EDAC39191AEC51EE73612@DOESEFPEML02.EUS.FLDOE.INT> I have to create a summary report which has to include this year's data and last year's data. It is to look something like this: Item Jan 04 Jan 03 Feb 04 Feb 03 Mar 04 Mar 03 Meals 200 198 210 209 185 190 Rooms 30 28 34 34 29 31 I can do the summary for 04 and 03 but I can't figure out how to get the months together like above. Susan Klos Senior Database Analyst Evaluation and Reporting Florida Department of Education 850-245-0708 sc 205-0708 From bchacc at san.rr.com Fri Apr 30 08:45:53 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Fri, 30 Apr 2004 06:45:53 -0700 Subject: [AccessD] Chinese Language Message-ID: <005201c42eb9$750c3be0$6601a8c0@HAL9002> Dear List: I am trying to create a Chinese language version of my product with the help of a contact in Taiwan. As an initial test she translated the captions on the Main Menu. I created a front-end language file table to hold the two forms of Chinese (simple and complex) and can add fields as I add languages. I sent her the table but she sent back an excel file of the table with the translations. When I open the Excel file the Chinese characters display correctly (of course, how would I know?). But when I copy one of these strings from the Excel cell into the language table in Access it shows as squares - undisplayable character, I assume. So Excel displays the Chinese but not my Access. I'm stating down the Access Help route but if anyone knows how to get Access to display foreign characters can you give me a lead? MTIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com From rbgajewski at adelphia.net Fri Apr 30 08:52:53 2004 From: rbgajewski at adelphia.net (Bob Gajewski) Date: Fri, 30 Apr 2004 09:52:53 -0400 Subject: [AccessD] Chinese Language In-Reply-To: <005201c42eb9$750c3be0$6601a8c0@HAL9002> Message-ID: Rocky Odds are real strong that you simply don't have the font installed that she used. Bob Gajewski -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - Beach Access Software Sent: Friday, April 30, 2004 09:46 To: AccessD at databaseadvisors.com Subject: [AccessD] Chinese Language Dear List: I am trying to create a Chinese language version of my product with the help of a contact in Taiwan. As an initial test she translated the captions on the Main Menu. I created a front-end language file table to hold the two forms of Chinese (simple and complex) and can add fields as I add languages. I sent her the table but she sent back an excel file of the table with the translations. When I open the Excel file the Chinese characters display correctly (of course, how would I know?). But when I copy one of these strings from the Excel cell into the language table in Access it shows as squares - undisplayable character, I assume. So Excel displays the Chinese but not my Access. I'm stating down the Access Help route but if anyone knows how to get Access to display foreign characters can you give me a lead? MTIA Rocky Smolin Beach Access Software http://www.e-z-mrp.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 Apr 30 03:50:13 2004 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 30 Apr 2004 10:50:13 +0200 Subject: [AccessD] A2K: Using the shell() function In-Reply-To: <6FC1C7A6E7BD5540AB0A8436713C43BF084AD6CF@PKDWB01C.ad.sprint.com> References: <6FC1C7A6E7BD5540AB0A8436713C43BF084AD6CF@PKDWB01C.ad.sprint.com> Message-ID: <767733890.20040430105013@cactus.dk> Hi Donald Interesting approach! /gustav > Steve, > I don't know if what I'm doing is similar to what you need to > accomplish, but I've been working on a project that requires data > capture via FTP. I found a nifty program called WebDrive > (http://www.webdrive.com) that allows you to map FTP sites as drives. > In my db, I'm using a combination of VBA file manipulation functions > (Dir, FileCopy, etc.) and Scripting FSO functionality to get and read > text files via FTP. You can refer to WebDrives using UNC or specific > drive letters, and user names and passwords can be saved with the > mappings so that they reconnect automatically upon system startup. Best > $40 I've spent in the last month or so . . . > Hope this helps. > Don McGillivray From gustav at cactus.dk Fri Apr 30 03:30:21 2004 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 30 Apr 2004 10:30:21 +0200 Subject: [AccessD] User Defined Properties A97 In-Reply-To: References: Message-ID: <706541426.20040430103021@cactus.dk> Hi Terry I think J?rgen caught this one. However, you should also be able to do a DBEngine(0)(0).Refresh to view any changes. /gustav > Just guessing but I suspect that the problem is that DBEngine(0)(0) is only > going to see the collections as at the time the database was opened or the > last time CurrentDb was called. If you replace DBEngine(0)(0) with > CurrentDb, I suspect you will see the current property value. > Ciao > J?rgen Welz > Edmonton, Alberta > jwelz at hotmail.com >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MACE, Terry >>Sent: Tuesday, April 27, 2004 9:54 PM >>To: 'Access Developers discussion and problem solving' >>Subject: [AccessD] User Defined Properties A97 >> >> >>I'm trying to use a custom property to store some changing information, >>which works fine, but when I try to read it, it only returns the value that >>was present when the database was opened. >> >>Is this the way it works or can I read the changed info. I'm using the >>following code to read the property 'Reference': >> >>DBEngine(0)(0).Containers("Databases").Documents("UserDefined").Properties(" >>reference") >> >>Terry Mace From bchacc at san.rr.com Fri Apr 30 09:11:27 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Fri, 30 Apr 2004 07:11:27 -0700 Subject: [AccessD] Chinese Language References: <005201c42eb9$750c3be0$6601a8c0@HAL9002> Message-ID: <007001c42ebd$0704fac0$6601a8c0@HAL9002> Dear List: OK. I'm making some progress. I changed the font on one of the labels to Unicode MS copied the Chinese characters from the Excel spreadsheet to the Caption in the property sheet for the control, and viola! it displays Chinese! When I look in my Access Language table, however, I still have little boxes. The caption also shows as little boxes in the property sheet of the control. I haven't written the public function yet to take the Chinese from the table and put it into the caption (the function will also, I guess, have to change the font to Arial Unicode MS), but I'm concerned that it may show boxes. Maybe I should stop bothering you all and see how far I can get on this by myself. But I have to tell you it's very exciting. In the old DOS days I did a Chinese language version of this product with this woman in Taiwan and I remember the thrill the first time my Main Menu came up in Chinese. Still, if anybody has any advice for me, it's appreciated. Regards, Rocky Smolin Beach Access Software http://www.e-z-mrp.com ----- Original Message ----- From: "Rocky Smolin - Beach Access Software" To: Sent: Friday, April 30, 2004 6:45 AM Subject: [AccessD] Chinese Language Dear List: I am trying to create a Chinese language version of my product with the help of a contact in Taiwan. As an initial test she translated the captions on the Main Menu. I created a front-end language file table to hold the two forms of Chinese (simple and complex) and can add fields as I add languages. I sent her the table but she sent back an excel file of the table with the translations. When I open the Excel file the Chinese characters display correctly (of course, how would I know?). But when I copy one of these strings from the Excel cell into the language table in Access it shows as squares - undisplayable character, I assume. So Excel displays the Chinese but not my Access. I'm stating down the Access Help route but if anyone knows how to get Access to display foreign characters can you give me a lead? MTIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at bellsouth.net Fri Apr 30 09:17:19 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Fri, 30 Apr 2004 10:17:19 -0400 Subject: [AccessD] Chinese Language References: Message-ID: <004201c42ebd$d9434e60$6101a8c0@dejpolsys> ...besides the font, you might want to check your Jet SPs ...earlier versions of Jet4 had a number of problems with DBCS languages ...I needed to use a Thai set on an mdb and even though the correct font was installed I got a lot of extended characters instead and queries on that data would not work either ...a Jet update cured the problem. William Hindman "The world's becoming a museum of socialist failures." John Dos Passos ----- Original Message ----- From: "Bob Gajewski" To: "Access Developers discussion and problem solving" Sent: Friday, April 30, 2004 9:52 AM Subject: RE: [AccessD] Chinese Language > Rocky > > Odds are real strong that you simply don't have the font installed that she > used. > > Bob Gajewski > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - > Beach Access Software > Sent: Friday, April 30, 2004 09:46 > To: AccessD at databaseadvisors.com > Subject: [AccessD] Chinese Language > > > Dear List: > > I am trying to create a Chinese language version of my product with the help > of a contact in Taiwan. > > As an initial test she translated the captions on the Main Menu. I created > a front-end language file table to hold the two forms of Chinese (simple and > complex) and can add fields as I add languages. > > I sent her the table but she sent back an excel file of the table with the > translations. When I open the Excel file the Chinese characters display > correctly (of course, how would I know?). > > But when I copy one of these strings from the Excel cell into the language > table in Access it shows as squares - undisplayable character, I assume. So > Excel displays the Chinese but not my Access. > > I'm stating down the Access Help route but if anyone knows how to get Access > to display foreign characters can you give me a lead? > > MTIA > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Fri Apr 30 09:37:17 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Fri, 30 Apr 2004 07:37:17 -0700 Subject: [AccessD] Chinese Language References: <004201c42ebd$d9434e60$6101a8c0@dejpolsys> Message-ID: <007c01c42ec0$a3735660$6601a8c0@HAL9002> William: Which SP did you have to get to fix the problem? At the moment I'm just working with captions and labels. But when they start putting in data and I'm operating onthe data, they might run into the problem. Rocky ----- Original Message ----- From: "William Hindman" To: "Access Developers discussion and problem solving" Sent: Friday, April 30, 2004 7:17 AM Subject: Re: [AccessD] Chinese Language > ...besides the font, you might want to check your Jet SPs ...earlier > versions of Jet4 had a number of problems with DBCS languages ...I needed to > use a Thai set on an mdb and even though the correct font was installed I > got a lot of extended characters instead and queries on that data would not > work either ...a Jet update cured the problem. > > William Hindman > "The world's becoming a museum of socialist failures." John Dos Passos > > > ----- Original Message ----- > From: "Bob Gajewski" > To: "Access Developers discussion and problem solving" > > Sent: Friday, April 30, 2004 9:52 AM > Subject: RE: [AccessD] Chinese Language > > > > Rocky > > > > Odds are real strong that you simply don't have the font installed that > she > > used. > > > > Bob Gajewski > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - > > Beach Access Software > > Sent: Friday, April 30, 2004 09:46 > > To: AccessD at databaseadvisors.com > > Subject: [AccessD] Chinese Language > > > > > > Dear List: > > > > I am trying to create a Chinese language version of my product with the > help > > of a contact in Taiwan. > > > > As an initial test she translated the captions on the Main Menu. I > created > > a front-end language file table to hold the two forms of Chinese (simple > and > > complex) and can add fields as I add languages. > > > > I sent her the table but she sent back an excel file of the table with the > > translations. When I open the Excel file the Chinese characters display > > correctly (of course, how would I know?). > > > > But when I copy one of these strings from the Excel cell into the language > > table in Access it shows as squares - undisplayable character, I assume. > So > > Excel displays the Chinese but not my Access. > > > > I'm stating down the Access Help route but if anyone knows how to get > Access > > to display foreign characters can you give me a lead? > > > > MTIA > > > > Rocky Smolin > > Beach Access Software > > http://www.e-z-mrp.com > > > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > 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 Fri Apr 30 09:47:14 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Fri, 30 Apr 2004 07:47:14 -0700 Subject: [AccessD] Chinese Language References: <005201c42eb9$750c3be0$6601a8c0@HAL9002> <007001c42ebd$0704fac0$6601a8c0@HAL9002> Message-ID: <008401c42ec2$07136060$6601a8c0@HAL9002> Dear List: It seems that I can change the caption of a control through code: ctl.Caption = rs(gstrLanguage) ' Where gstrLanguage is the field name in the language table of the language selected by the user but I can't change the font: If InStr(1, gstrLanguage, "Chinese") <> 0 Then ctl.font = "Arial Unicode MS" gives me 'object soesn't support this property or method'. Is there a way to change the font of a control? This code will be running in an mde so opening the form in design mode isn't an option. MTIA Rocky Smolin Beach Access Software http://www.e-z-mrp.com ----- Original Message ----- From: "Rocky Smolin - Beach Access Software" To: "Access Developers discussion and problem solving" Sent: Friday, April 30, 2004 7:11 AM Subject: Re: [AccessD] Chinese Language > Dear List: > > OK. I'm making some progress. I changed the font on one of the labels to > Unicode MS copied the Chinese characters from the Excel spreadsheet to the > Caption in the property sheet for the control, and viola! it displays > Chinese! When I look in my Access Language table, however, I still have > little boxes. The caption also shows as little boxes in the property sheet > of the control. > > I haven't written the public function yet to take the Chinese from the table > and put it into the caption (the function will also, I guess, have to change > the font to Arial Unicode MS), but I'm concerned that it may show boxes. > > Maybe I should stop bothering you all and see how far I can get on this by > myself. > > But I have to tell you it's very exciting. In the old DOS days I did a > Chinese language version of this product with this woman in Taiwan and I > remember the thrill the first time my Main Menu came up in Chinese. > > Still, if anybody has any advice for me, it's appreciated. > > Regards, > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > > > > ----- Original Message ----- > From: "Rocky Smolin - Beach Access Software" > To: > Sent: Friday, April 30, 2004 6:45 AM > Subject: [AccessD] Chinese Language > > > Dear List: > > I am trying to create a Chinese language version of my product with the help > of a contact in Taiwan. > > As an initial test she translated the captions on the Main Menu. I created > a front-end language file table to hold the two forms of Chinese (simple and > complex) and can add fields as I add languages. > > I sent her the table but she sent back an excel file of the table with the > translations. When I open the Excel file the Chinese characters display > correctly (of course, how would I know?). > > But when I copy one of these strings from the Excel cell into the language > table in Access it shows as squares - undisplayable character, I assume. So > Excel displays the Chinese but not my Access. > > I'm stating down the Access Help route but if anyone knows how to get Access > to display foreign characters can you give me a lead? > > MTIA > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Apr 30 10:17:37 2004 From: gustav at cactus.dk (Gustav Brock) Date: Fri, 30 Apr 2004 17:17:37 +0200 Subject: [AccessD] Chinese Language In-Reply-To: <008401c42ec2$07136060$6601a8c0@HAL9002> References: <005201c42eb9$750c3be0$6601a8c0@HAL9002> <007001c42ebd$0704fac0$6601a8c0@HAL9002> <008401c42ec2$07136060$6601a8c0@HAL9002> Message-ID: <10330977683.20040430171737@cactus.dk> Hi Rocky Try with .FontName /gustav > It seems that I can change the caption of a control through code: > ctl.Caption = rs(gstrLanguage) > ' Where gstrLanguage is the field name in the language table of the language > selected by the user > but I can't change the font: > If InStr(1, gstrLanguage, "Chinese") <> 0 Then ctl.font = "Arial Unicode MS" > gives me 'object soesn't support this property or method'. From accessd at shaw.ca Fri Apr 30 10:36:18 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Fri, 30 Apr 2004 08:36:18 -0700 Subject: [AccessD] Subform to Subform Updating In-Reply-To: Message-ID: Hi Douglas: Have you checked this page out yet? http://www.databaseadvisors.com/newletters/newsletter032004/0310ReferenceGui de/SyntaxForSubs.htm (Watch for wrap) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Douglas Barnes Sent: Wednesday, April 28, 2004 9:04 AM To: AccessD at databaseadvisors.com Subject: [AccessD] Subform to Subform Updating I have a main form with 2 subforms (sub1, sub2). I can add records to sub1 as it is related to the main form. I can't seem to add records to sub2, which is related to sub1. Any insight on this would be appreciated. Douglas Barnes Starn Technical Services P. O. 1172 Meadville, PA 16335 814.724.1045 doug at starntech.com www.starntech.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 Fri Apr 30 10:41:02 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Fri, 30 Apr 2004 08:41:02 -0700 Subject: [AccessD] Chinese Language References: <005201c42eb9$750c3be0$6601a8c0@HAL9002> <007001c42ebd$0704fac0$6601a8c0@HAL9002> <008401c42ec2$07136060$6601a8c0@HAL9002> <10330977683.20040430171737@cactus.dk> Message-ID: <00fe01c42ec9$8b350b30$6601a8c0@HAL9002> Gustav: Thanks you!!! Forgot about that 'name' thing. It worked perfectly. The E-Z-MRP Main Menu displays in Chinese! Best, Rocky Smolin Beach Access Software http://www.e-z-mrp.com ----- Original Message ----- From: "Gustav Brock" To: "Access Developers discussion and problem solving" Sent: Friday, April 30, 2004 8:17 AM Subject: Re: [AccessD] Chinese Language > Hi Rocky > > Try with .FontName > > /gustav > > > > It seems that I can change the caption of a control through code: > > > ctl.Caption = rs(gstrLanguage) > > > ' Where gstrLanguage is the field name in the language table of the language > > selected by the user > > > but I can't change the font: > > > If InStr(1, gstrLanguage, "Chinese") <> 0 Then ctl.font = "Arial Unicode MS" > > > gives me 'object soesn't support this property or method'. > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From wdhindman at bellsouth.net Fri Apr 30 10:44:54 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Fri, 30 Apr 2004 11:44:54 -0400 Subject: [AccessD] Chinese Language References: <004201c42ebd$d9434e60$6101a8c0@dejpolsys> <007c01c42ec0$a3735660$6601a8c0@HAL9002> Message-ID: <00ec01c42eca$1704d280$6101a8c0@dejpolsys> ...was a while back Rocky ...well before 8 so if you (and your client) have the latest you should be ok ...I'm assuming that you're using A2K or AXP in a W2K or WXP environment. William Hindman "The world's becoming a museum of socialist failures." John Dos Passos ----- Original Message ----- From: "Rocky Smolin - Beach Access Software" To: "Access Developers discussion and problem solving" Sent: Friday, April 30, 2004 10:37 AM Subject: Re: [AccessD] Chinese Language > William: > > Which SP did you have to get to fix the problem? > > At the moment I'm just working with captions and labels. But when they > start putting in data and I'm operating onthe data, they might run into the > problem. > > > Rocky > > ----- Original Message ----- > From: "William Hindman" > To: "Access Developers discussion and problem solving" > > Sent: Friday, April 30, 2004 7:17 AM > Subject: Re: [AccessD] Chinese Language > > > > ...besides the font, you might want to check your Jet SPs ...earlier > > versions of Jet4 had a number of problems with DBCS languages ...I needed > to > > use a Thai set on an mdb and even though the correct font was installed I > > got a lot of extended characters instead and queries on that data would > not > > work either ...a Jet update cured the problem. > > > > William Hindman > > "The world's becoming a museum of socialist failures." John Dos Passos > > > > > > ----- Original Message ----- > > From: "Bob Gajewski" > > To: "Access Developers discussion and problem solving" > > > > Sent: Friday, April 30, 2004 9:52 AM > > Subject: RE: [AccessD] Chinese Language > > > > > > > Rocky > > > > > > Odds are real strong that you simply don't have the font installed that > > she > > > used. > > > > > > Bob Gajewski > > > > > > > > > -----Original Message----- > > > From: accessd-bounces at databaseadvisors.com > > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - > > > Beach Access Software > > > Sent: Friday, April 30, 2004 09:46 > > > To: AccessD at databaseadvisors.com > > > Subject: [AccessD] Chinese Language > > > > > > > > > Dear List: > > > > > > I am trying to create a Chinese language version of my product with the > > help > > > of a contact in Taiwan. > > > > > > As an initial test she translated the captions on the Main Menu. I > > created > > > a front-end language file table to hold the two forms of Chinese (simple > > and > > > complex) and can add fields as I add languages. > > > > > > I sent her the table but she sent back an excel file of the table with > the > > > translations. When I open the Excel file the Chinese characters display > > > correctly (of course, how would I know?). > > > > > > But when I copy one of these strings from the Excel cell into the > language > > > table in Access it shows as squares - undisplayable character, I assume. > > So > > > Excel displays the Chinese but not my Access. > > > > > > I'm stating down the Access Help route but if anyone knows how to get > > Access > > > to display foreign characters can you give me a lead? > > > > > > MTIA > > > > > > Rocky Smolin > > > Beach Access Software > > > http://www.e-z-mrp.com > > > > > > -- > > > _______________________________________________ > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > > > > -- > > > _______________________________________________ > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > > > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > 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 Apr 30 10:53:51 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Fri, 30 Apr 2004 08:53:51 -0700 Subject: [AccessD] New Officers for the DBA In-Reply-To: <20040429110001.206625495.serbach@new.rr.com> Message-ID: Hi All: Congratulations to our new elected board members. Elections were concluded Wednesday, 28 of April 2004. We have a new President, Vice-president and Secretary. Other board members remained in their current positions. A heart felt thanks to our retiring board members. Their contribution and hard work was very much appreciated. Thank you all. The results have been posted at http://www.databaseadvisors.com/ Jim From bchacc at san.rr.com Fri Apr 30 11:02:12 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Fri, 30 Apr 2004 09:02:12 -0700 Subject: [AccessD] Chinese Language References: <004201c42ebd$d9434e60$6101a8c0@dejpolsys> <007c01c42ec0$a3735660$6601a8c0@HAL9002> <00ec01c42eca$1704d280$6101a8c0@dejpolsys> Message-ID: <011801c42ecc$7fe35ef0$6601a8c0@HAL9002> Yeah it's A2K and it's working beautiful right now. But that's just label and command button caption. We'll see once they put in some data. Rocky ----- Original Message ----- From: "William Hindman" To: "Access Developers discussion and problem solving" Sent: Friday, April 30, 2004 8:44 AM Subject: Re: [AccessD] Chinese Language > ...was a while back Rocky ...well before 8 so if you (and your client) have > the latest you should be ok ...I'm assuming that you're using A2K or AXP in > a W2K or WXP environment. > > William Hindman > "The world's becoming a museum of socialist failures." John Dos Passos > > > ----- Original Message ----- > From: "Rocky Smolin - Beach Access Software" > To: "Access Developers discussion and problem solving" > > Sent: Friday, April 30, 2004 10:37 AM > Subject: Re: [AccessD] Chinese Language > > > > William: > > > > Which SP did you have to get to fix the problem? > > > > At the moment I'm just working with captions and labels. But when they > > start putting in data and I'm operating onthe data, they might run into > the > > problem. > > > > > > Rocky > > > > ----- Original Message ----- > > From: "William Hindman" > > To: "Access Developers discussion and problem solving" > > > > Sent: Friday, April 30, 2004 7:17 AM > > Subject: Re: [AccessD] Chinese Language > > > > > > > ...besides the font, you might want to check your Jet SPs ...earlier > > > versions of Jet4 had a number of problems with DBCS languages ...I > needed > > to > > > use a Thai set on an mdb and even though the correct font was installed > I > > > got a lot of extended characters instead and queries on that data would > > not > > > work either ...a Jet update cured the problem. > > > > > > William Hindman > > > "The world's becoming a museum of socialist failures." John Dos Passos > > > > > > > > > ----- Original Message ----- > > > From: "Bob Gajewski" > > > To: "Access Developers discussion and problem solving" > > > > > > Sent: Friday, April 30, 2004 9:52 AM > > > Subject: RE: [AccessD] Chinese Language > > > > > > > > > > Rocky > > > > > > > > Odds are real strong that you simply don't have the font installed > that > > > she > > > > used. > > > > > > > > Bob Gajewski > > > > > > > > > > > > -----Original Message----- > > > > From: accessd-bounces at databaseadvisors.com > > > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky > Smolin - > > > > Beach Access Software > > > > Sent: Friday, April 30, 2004 09:46 > > > > To: AccessD at databaseadvisors.com > > > > Subject: [AccessD] Chinese Language > > > > > > > > > > > > Dear List: > > > > > > > > I am trying to create a Chinese language version of my product with > the > > > help > > > > of a contact in Taiwan. > > > > > > > > As an initial test she translated the captions on the Main Menu. I > > > created > > > > a front-end language file table to hold the two forms of Chinese > (simple > > > and > > > > complex) and can add fields as I add languages. > > > > > > > > I sent her the table but she sent back an excel file of the table with > > the > > > > translations. When I open the Excel file the Chinese characters > display > > > > correctly (of course, how would I know?). > > > > > > > > But when I copy one of these strings from the Excel cell into the > > language > > > > table in Access it shows as squares - undisplayable character, I > assume. > > > So > > > > Excel displays the Chinese but not my Access. > > > > > > > > I'm stating down the Access Help route but if anyone knows how to get > > > Access > > > > to display foreign characters can you give me a lead? > > > > > > > > MTIA > > > > > > > > Rocky Smolin > > > > Beach Access Software > > > > http://www.e-z-mrp.com > > > > > > > > -- > > > > _______________________________________________ > > > > AccessD mailing list > > > > AccessD at databaseadvisors.com > > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > > Website: http://www.databaseadvisors.com > > > > > > > > > > > > -- > > > > _______________________________________________ > > > > AccessD mailing list > > > > AccessD at databaseadvisors.com > > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > > Website: http://www.databaseadvisors.com > > > > > > > > > > > > > -- > > > _______________________________________________ > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > 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 Apr 30 11:24:07 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Fri, 30 Apr 2004 09:24:07 -0700 Subject: [AccessD] TransferText working sporadically. In-Reply-To: <2F8793082E00D4119A1700B0D0216BF802227B38@main2.marlow.com> Message-ID: Hi Drew: I have no specific knowledge of your site but as an outside observer this would be my approach: If it was a user I would ask (suspiciously, I might add) has there been any recent upgrades to the computers in question. (The answer is of course always, NO.) The problem might be with Abra...has it reach the 2 GB limit? (A lot of older databases had that limitation not just Access) If your accessing works fine maybe the Payroll guy is running some procedures that you are not? Is the Payroll guy using a different FE? if so maybe an update is warranted. This is a few of the questions I would check out. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DWUTKA at marlow.com Sent: Thursday, April 29, 2004 11:00 AM To: AccessD at databaseadvisors.com Subject: [AccessD] TransferText working sporadically. Our Payroll guy has an Access .mdb which imports data from our Hours program (written in DataPoint), into Abra, our Payroll/HR package. A few weeks ago, that database stopped working, and it is failing on a line of code that is DoCmd.TransferText. It says it is unable to write to the database. It works from my machine (Windows 2000, running Access 97), but not the payroll guy's machine, (NT 4.0 workstation, access 97). Both have the same service packs, etc. Any thoughts? Drew -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From wdhindman at bellsouth.net Fri Apr 30 11:23:48 2004 From: wdhindman at bellsouth.net (William Hindman) Date: Fri, 30 Apr 2004 12:23:48 -0400 Subject: [AccessD] Chinese Language References: <004201c42ebd$d9434e60$6101a8c0@dejpolsys><007c01c42ec0$a3735660$6601a8c0@HAL9002><00ec01c42eca$1704d280$6101a8c0@dejpolsys> <011801c42ecc$7fe35ef0$6601a8c0@HAL9002> Message-ID: <001401c42ecf$849ce800$6101a8c0@dejpolsys> ...I'd think that data sorts could be a problem ...it is with Thai ...you'll want your translator to test that pretty thoroughly. ...the other thing I ran into was a number of burps when the user had a full Thai version of Access installed rather than my runtime. William Hindman "The world's becoming a museum of socialist failures." John Dos Passos ----- Original Message ----- From: "Rocky Smolin - Beach Access Software" To: "Access Developers discussion and problem solving" Sent: Friday, April 30, 2004 12:02 PM Subject: Re: [AccessD] Chinese Language > Yeah it's A2K and it's working beautiful right now. But that's just label > and command button caption. We'll see once they put in some data. > > Rocky > > ----- Original Message ----- > From: "William Hindman" > To: "Access Developers discussion and problem solving" > > Sent: Friday, April 30, 2004 8:44 AM > Subject: Re: [AccessD] Chinese Language > > > > ...was a while back Rocky ...well before 8 so if you (and your client) > have > > the latest you should be ok ...I'm assuming that you're using A2K or AXP > in > > a W2K or WXP environment. > > > > William Hindman > > "The world's becoming a museum of socialist failures." John Dos Passos > > > > > > ----- Original Message ----- > > From: "Rocky Smolin - Beach Access Software" > > To: "Access Developers discussion and problem solving" > > > > Sent: Friday, April 30, 2004 10:37 AM > > Subject: Re: [AccessD] Chinese Language > > > > > > > William: > > > > > > Which SP did you have to get to fix the problem? > > > > > > At the moment I'm just working with captions and labels. But when they > > > start putting in data and I'm operating onthe data, they might run into > > the > > > problem. > > > > > > > > > Rocky > > > > > > ----- Original Message ----- > > > From: "William Hindman" > > > To: "Access Developers discussion and problem solving" > > > > > > Sent: Friday, April 30, 2004 7:17 AM > > > Subject: Re: [AccessD] Chinese Language > > > > > > > > > > ...besides the font, you might want to check your Jet SPs ...earlier > > > > versions of Jet4 had a number of problems with DBCS languages ...I > > needed > > > to > > > > use a Thai set on an mdb and even though the correct font was > installed > > I > > > > got a lot of extended characters instead and queries on that data > would > > > not > > > > work either ...a Jet update cured the problem. > > > > > > > > William Hindman > > > > "The world's becoming a museum of socialist failures." John Dos Passos > > > > > > > > > > > > ----- Original Message ----- > > > > From: "Bob Gajewski" > > > > To: "Access Developers discussion and problem solving" > > > > > > > > Sent: Friday, April 30, 2004 9:52 AM > > > > Subject: RE: [AccessD] Chinese Language > > > > > > > > > > > > > Rocky > > > > > > > > > > Odds are real strong that you simply don't have the font installed > > that > > > > she > > > > > used. > > > > > > > > > > Bob Gajewski > > > > > > > > > > > > > > > -----Original Message----- > > > > > From: accessd-bounces at databaseadvisors.com > > > > > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky > > Smolin - > > > > > Beach Access Software > > > > > Sent: Friday, April 30, 2004 09:46 > > > > > To: AccessD at databaseadvisors.com > > > > > Subject: [AccessD] Chinese Language > > > > > > > > > > > > > > > Dear List: > > > > > > > > > > I am trying to create a Chinese language version of my product with > > the > > > > help > > > > > of a contact in Taiwan. > > > > > > > > > > As an initial test she translated the captions on the Main Menu. I > > > > created > > > > > a front-end language file table to hold the two forms of Chinese > > (simple > > > > and > > > > > complex) and can add fields as I add languages. > > > > > > > > > > I sent her the table but she sent back an excel file of the table > with > > > the > > > > > translations. When I open the Excel file the Chinese characters > > display > > > > > correctly (of course, how would I know?). > > > > > > > > > > But when I copy one of these strings from the Excel cell into the > > > language > > > > > table in Access it shows as squares - undisplayable character, I > > assume. > > > > So > > > > > Excel displays the Chinese but not my Access. > > > > > > > > > > I'm stating down the Access Help route but if anyone knows how to > get > > > > Access > > > > > to display foreign characters can you give me a lead? > > > > > > > > > > MTIA > > > > > > > > > > Rocky Smolin > > > > > Beach Access Software > > > > > http://www.e-z-mrp.com > > > > > > > > > > -- > > > > > _______________________________________________ > > > > > AccessD mailing list > > > > > AccessD at databaseadvisors.com > > > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > > > Website: http://www.databaseadvisors.com > > > > > > > > > > > > > > > -- > > > > > _______________________________________________ > > > > > AccessD mailing list > > > > > AccessD at databaseadvisors.com > > > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > > > Website: http://www.databaseadvisors.com > > > > > > > > > > > > > > > > > -- > > > > _______________________________________________ > > > > AccessD mailing list > > > > AccessD at databaseadvisors.com > > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > > Website: http://www.databaseadvisors.com > > > > > > -- > > > _______________________________________________ > > > AccessD mailing list > > > AccessD at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/accessd > > > Website: http://www.databaseadvisors.com > > > > > > -- > > _______________________________________________ > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From DWUTKA at marlow.com Fri Apr 30 11:31:17 2004 From: DWUTKA at marlow.com (DWUTKA at marlow.com) Date: Fri, 30 Apr 2004 11:31:17 -0500 Subject: [AccessD] TransferText working sporadically. Message-ID: <2F8793082E00D4119A1700B0D0216BF802227B4E@main2.marlow.com> Abra was upgraded to a newer version of Foxpro. but I don't see how that would affect the TransferText funtion from importing a text file into Abra. He is going to try it from a Windows 2000 machine, to see if it's a quirk with NT 4.0. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Lawrence (AccessD) Sent: Friday, April 30, 2004 11:24 AM To: Access Developers discussion and problem solving Subject: RE: [AccessD] TransferText working sporadically. Hi Drew: I have no specific knowledge of your site but as an outside observer this would be my approach: If it was a user I would ask (suspiciously, I might add) has there been any recent upgrades to the computers in question. (The answer is of course always, NO.) The problem might be with Abra...has it reach the 2 GB limit? (A lot of older databases had that limitation not just Access) If your accessing works fine maybe the Payroll guy is running some procedures that you are not? Is the Payroll guy using a different FE? if so maybe an update is warranted. This is a few of the questions I would check out. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of DWUTKA at marlow.com Sent: Thursday, April 29, 2004 11:00 AM To: AccessD at databaseadvisors.com Subject: [AccessD] TransferText working sporadically. Our Payroll guy has an Access .mdb which imports data from our Hours program (written in DataPoint), into Abra, our Payroll/HR package. A few weeks ago, that database stopped working, and it is failing on a line of code that is DoCmd.TransferText. It says it is unable to write to the database. It works from my machine (Windows 2000, running Access 97), but not the payroll guy's machine, (NT 4.0 workstation, access 97). Both have the same service packs, etc. Any thoughts? Drew -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Apr 30 11:41:46 2004 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Fri, 30 Apr 2004 09:41:46 -0700 Subject: [AccessD] Chinese Language In-Reply-To: <005201c42eb9$750c3be0$6601a8c0@HAL9002> Message-ID: Hi Rocky: Check the Excel spread sheet that was sent to you and you will find the name of the font, probably 'msp mincho', imbedded in the sheet. If you save the sheet as a web page the imbedded font will show up in the resulting html code header. The computer using the program will probably have to be setup to uses the character set in question, See: http://support.microsoft.com/default.aspx?scid=kb;en-us;225865 for further details. HTH Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - Beach Access Software Sent: Friday, April 30, 2004 6:46 AM To: AccessD at databaseadvisors.com Subject: [AccessD] Chinese Language Dear List: I am trying to create a Chinese language version of my product with the help of a contact in Taiwan. As an initial test she translated the captions on the Main Menu. I created a front-end language file table to hold the two forms of Chinese (simple and complex) and can add fields as I add languages. I sent her the table but she sent back an excel file of the table with the translations. When I open the Excel file the Chinese characters display correctly (of course, how would I know?). But when I copy one of these strings from the Excel cell into the language table in Access it shows as squares - undisplayable character, I assume. So Excel displays the Chinese but not my Access. I'm stating down the Access Help route but if anyone knows how to get Access to display foreign characters can you give me a lead? MTIA Rocky Smolin Beach Access Software http://www.e-z-mrp.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 Apr 30 12:15:47 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 30 Apr 2004 10:15:47 -0700 Subject: [AccessD] TransferText working sporadically. References: <2F8793082E00D4119A1700B0D0216BF802227B4E@main2.marlow.com> Message-ID: <409289C3.5000503@shaw.ca> ACC2000: How to Import a Text File That Has an Extension That Access Does Not Recognize http://support.microsoft.com/default.aspx?scid=kb;en-us;306144&Product=acc Also check the registry key for disabled extensions on both machines as per above DWUTKA at marlow.com wrote: >Abra was upgraded to a newer version of Foxpro. but I don't see how that >would affect the TransferText funtion from importing a text file into Abra. >He is going to try it from a Windows 2000 machine, to see if it's a quirk >with NT 4.0. > >Drew > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jim Lawrence >(AccessD) >Sent: Friday, April 30, 2004 11:24 AM >To: Access Developers discussion and problem solving >Subject: RE: [AccessD] TransferText working sporadically. > > >Hi Drew: > >I have no specific knowledge of your site but as an outside observer this >would be my approach: > >If it was a user I would ask (suspiciously, I might add) has there been any >recent upgrades to the computers in question. (The answer is of course >always, NO.) > >The problem might be with Abra...has it reach the 2 GB limit? (A lot of >older databases had that limitation not just Access) > >If your accessing works fine maybe the Payroll guy is running some >procedures that you are not? > >Is the Payroll guy using a different FE? if so maybe an update is warranted. > >This is a few of the questions I would check out. > >HTH >Jim > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of >DWUTKA at marlow.com >Sent: Thursday, April 29, 2004 11:00 AM >To: AccessD at databaseadvisors.com >Subject: [AccessD] TransferText working sporadically. > > >Our Payroll guy has an Access .mdb which imports data from our Hours program >(written in DataPoint), into Abra, our Payroll/HR package. A few weeks ago, >that database stopped working, and it is failing on a line of code that is >DoCmd.TransferText. It says it is unable to write to the database. > >It works from my machine (Windows 2000, running Access 97), but not the >payroll guy's machine, (NT 4.0 workstation, access 97). > >Both have the same service packs, etc. > >Any thoughts? > >Drew >-- >_______________________________________________ >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 garykjos at hotmail.com Fri Apr 30 12:50:39 2004 From: garykjos at hotmail.com (Gary Kjos) Date: Fri, 30 Apr 2004 12:50:39 -0500 Subject: [AccessD] New Officers for the DBA Message-ID: Yes, congratulations to the new officers, John, Reuben and Susan and thaink you for volunteering your time and energy. And many thanks to Lembit, Donna and Patty for all the work you have put in over the past year. Gary Kjos garykjos at hotmail.com >From: "Jim Lawrence (AccessD)" >Reply-To: Access Developers discussion and problem >solving >To: Access Developers discussion and problem >solving >Subject: [AccessD] New Officers for the DBA >Date: Fri, 30 Apr 2004 08:53:51 -0700 > >Hi All: > >Congratulations to our new elected board members. Elections were concluded >Wednesday, 28 of April 2004. We have a new President, Vice-president and >Secretary. Other board members remained in their current positions. > >A heart felt thanks to our retiring board members. Their contribution and >hard work was very much appreciated. Thank you all. > >The results have been posted at http://www.databaseadvisors.com/ > >Jim > >-- >_______________________________________________ >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com _________________________________________________________________ Stop worrying about overloading your inbox - get MSN Hotmail Extra Storage! http://join.msn.com/?pgmarket=en-us&page=hotmail/es2&ST=1/go/onm00200362ave/direct/01/ From martyconnelly at shaw.ca Fri Apr 30 13:45:08 2004 From: martyconnelly at shaw.ca (MartyConnelly) Date: Fri, 30 Apr 2004 11:45:08 -0700 Subject: [AccessD] Chinese Language References: <004201c42ebd$d9434e60$6101a8c0@dejpolsys> <007c01c42ec0$a3735660$6601a8c0@HAL9002> <00ec01c42eca$1704d280$6101a8c0@dejpolsys> <011801c42ecc$7fe35ef0$6601a8c0@HAL9002> Message-ID: <40929EB4.2020403@shaw.ca> You might want to pick up a used copy of this book on amazon or ebay It is selling for anywhere between about $50 and $200 used (out of print) The book rambles a bit and has been panned because it assumes a lot of OS and VB knowledge. But should help you out with Jet collation problems in other languages, codepages and IME's. It doesn't cover the MS OS above Win 2000. Internationalization With Visual Basic Author: Michael Kaplan Publisher: Macmillan Computer Pub ISBN: 0672319772 Publication Year: 2000 Chapters from book http://www.i18nwithvb.com/chapters/ In (simplified chinese) for your Chinese compatriots ANSI or Unicode? http://www.i18nwithvb.com/chapters/Chapter16_sc.htm Testing International Software http://www.i18nwithvb.com/chapters/Chapter06_sc.htm i18N = Internationalization (or Globalization): mainly a program able to manage in any locale the locale language and settings. M18N = Multinationalization: mainly a program able to manage (display and input) several languages in any locale. L10N = Localization: mainly a program able to display its translated and adapted version to several locales. Rocky Smolin - Beach Access Software wrote: >Yeah it's A2K and it's working beautiful right now. But that's just label >and command button caption. We'll see once they put in some data. > >Rocky > >----- Original Message ----- >From: "William Hindman" >To: "Access Developers discussion and problem solving" > >Sent: Friday, April 30, 2004 8:44 AM >Subject: Re: [AccessD] Chinese Language > > > > >>...was a while back Rocky ...well before 8 so if you (and your client) >> >> >have > > >>the latest you should be ok ...I'm assuming that you're using A2K or AXP >> >> >in > > >>a W2K or WXP environment. >> >>William Hindman >>"The world's becoming a museum of socialist failures." John Dos Passos >> >> >>----- Original Message ----- >>From: "Rocky Smolin - Beach Access Software" >>To: "Access Developers discussion and problem solving" >> >>Sent: Friday, April 30, 2004 10:37 AM >>Subject: Re: [AccessD] Chinese Language >> >> >> >> >>>William: >>> >>>Which SP did you have to get to fix the problem? >>> >>>At the moment I'm just working with captions and labels. But when they >>>start putting in data and I'm operating onthe data, they might run into >>> >>> >>the >> >> >>>problem. >>> >>> >>>Rocky >>> >>>----- Original Message ----- >>>From: "William Hindman" >>>To: "Access Developers discussion and problem solving" >>> >>>Sent: Friday, April 30, 2004 7:17 AM >>>Subject: Re: [AccessD] Chinese Language >>> >>> >>> >>> >>>>...besides the font, you might want to check your Jet SPs ...earlier >>>>versions of Jet4 had a number of problems with DBCS languages ...I >>>> >>>> >>needed >> >> >>>to >>> >>> >>>>use a Thai set on an mdb and even though the correct font was >>>> >>>> >installed > > >>I >> >> >>>>got a lot of extended characters instead and queries on that data >>>> >>>> >would > > >>>not >>> >>> >>>>work either ...a Jet update cured the problem. >>>> >>>>William Hindman >>>>"The world's becoming a museum of socialist failures." John Dos Passos >>>> >>>> >>>>----- Original Message ----- >>>>From: "Bob Gajewski" >>>>To: "Access Developers discussion and problem solving" >>>> >>>>Sent: Friday, April 30, 2004 9:52 AM >>>>Subject: RE: [AccessD] Chinese Language >>>> >>>> >>>> >>>> >>>>>Rocky >>>>> >>>>>Odds are real strong that you simply don't have the font installed >>>>> >>>>> >>that >> >> >>>>she >>>> >>>> >>>>>used. >>>>> >>>>>Bob Gajewski >>>>> >>>>> >>>>>-----Original Message----- >>>>>From: accessd-bounces at databaseadvisors.com >>>>>[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky >>>>> >>>>> >>Smolin - >> >> >>>>>Beach Access Software >>>>>Sent: Friday, April 30, 2004 09:46 >>>>>To: AccessD at databaseadvisors.com >>>>>Subject: [AccessD] Chinese Language >>>>> >>>>> >>>>>Dear List: >>>>> >>>>>I am trying to create a Chinese language version of my product with >>>>> >>>>> >>the >> >> >>>>help >>>> >>>> >>>>>of a contact in Taiwan. >>>>> >>>>>As an initial test she translated the captions on the Main Menu. I >>>>> >>>>> >>>>created >>>> >>>> >>>>>a front-end language file table to hold the two forms of Chinese >>>>> >>>>> >>(simple >> >> >>>>and >>>> >>>> >>>>>complex) and can add fields as I add languages. >>>>> >>>>>I sent her the table but she sent back an excel file of the table >>>>> >>>>> >with > > >>>the >>> >>> >>>>>translations. When I open the Excel file the Chinese characters >>>>> >>>>> >>display >> >> >>>>>correctly (of course, how would I know?). >>>>> >>>>>But when I copy one of these strings from the Excel cell into the >>>>> >>>>> >>>language >>> >>> >>>>>table in Access it shows as squares - undisplayable character, I >>>>> >>>>> >>assume. >> >> >>>>So >>>> >>>> >>>>>Excel displays the Chinese but not my Access. >>>>> >>>>>I'm stating down the Access Help route but if anyone knows how to >>>>> >>>>> >get > > >>>>Access >>>> >>>> >>>>>to display foreign characters can you give me a lead? >>>>> >>>>>MTIA >>>>> >>>>>Rocky Smolin >>>>>Beach Access Software >>>>>http://www.e-z-mrp.com >>>>> >>>>>-- >>>>>_______________________________________________ >>>>>AccessD mailing list >>>>>AccessD at databaseadvisors.com >>>>>http://databaseadvisors.com/mailman/listinfo/accessd >>>>>Website: http://www.databaseadvisors.com >>>>> >>>>> >>>>>-- >>>>>_______________________________________________ >>>>>AccessD mailing list >>>>>AccessD at databaseadvisors.com >>>>>http://databaseadvisors.com/mailman/listinfo/accessd >>>>>Website: http://www.databaseadvisors.com >>>>> >>>>> >>>>> >>>>-- >>>>_______________________________________________ >>>>AccessD mailing list >>>>AccessD at databaseadvisors.com >>>>http://databaseadvisors.com/mailman/listinfo/accessd >>>>Website: http://www.databaseadvisors.com >>>> >>>> >>>-- >>>_______________________________________________ >>>AccessD mailing list >>>AccessD at databaseadvisors.com >>>http://databaseadvisors.com/mailman/listinfo/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 bchacc at san.rr.com Fri Apr 30 13:56:09 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Fri, 30 Apr 2004 11:56:09 -0700 Subject: [AccessD] Chinese Language References: Message-ID: <019901c42ee4$cd1393d0$6601a8c0@HAL9002> Jim: Well I did that but the html source was singularly uninformative. Nevertheless, I've got the Chinese display working and it's lovely. Now if I can get her to do the rest of the translation and take it to mainland China, I'll be a billionaire. :) Rocky ----- Original Message ----- From: "Jim Lawrence (AccessD)" To: "Access Developers discussion and problem solving" Sent: Friday, April 30, 2004 9:41 AM Subject: RE: [AccessD] Chinese Language > Hi Rocky: > > Check the Excel spread sheet that was sent to you and you will find the name > of the font, probably 'msp mincho', imbedded in the sheet. If you save the > sheet as a web page the imbedded font will show up in the resulting html > code header. The computer using the program will probably have to be setup > to uses the character set in question, See: > http://support.microsoft.com/default.aspx?scid=kb;en-us;225865 for further > details. > > HTH > Jim > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin - > Beach Access Software > Sent: Friday, April 30, 2004 6:46 AM > To: AccessD at databaseadvisors.com > Subject: [AccessD] Chinese Language > > > Dear List: > > I am trying to create a Chinese language version of my product with the help > of a contact in Taiwan. > > As an initial test she translated the captions on the Main Menu. I created > a front-end language file table to hold the two forms of Chinese (simple and > complex) and can add fields as I add languages. > > I sent her the table but she sent back an excel file of the table with the > translations. When I open the Excel file the Chinese characters display > correctly (of course, how would I know?). > > But when I copy one of these strings from the Excel cell into the language > table in Access it shows as squares - undisplayable character, I assume. So > Excel displays the Chinese but not my Access. > > I'm stating down the Access Help route but if anyone knows how to get Access > to display foreign characters can you give me a lead? > > MTIA > > Rocky Smolin > Beach Access Software > http://www.e-z-mrp.com > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Fri Apr 30 13:58:37 2004 From: bchacc at san.rr.com (Rocky Smolin - Beach Access Software) Date: Fri, 30 Apr 2004 11:58:37 -0700 Subject: [AccessD] Chinese Language References: <004201c42ebd$d9434e60$6101a8c0@dejpolsys> <007c01c42ec0$a3735660$6601a8c0@HAL9002> <00ec01c42eca$1704d280$6101a8c0@dejpolsys> <011801c42ecc$7fe35ef0$6601a8c0@HAL9002> <40929EB4.2020403@shaw.ca> Message-ID: <01a301c42ee5$24d824f0$6601a8c0@HAL9002> Marty: That looks very useful. Thanks. Rocky Smolin Beach Access Software http://www.e-z-mrp.com ----- Original Message ----- From: "MartyConnelly" To: "Access Developers discussion and problem solving" Sent: Friday, April 30, 2004 11:45 AM Subject: Re: [AccessD] Chinese Language > You might want to pick up a used copy of this book on amazon or ebay > It is selling for anywhere between about $50 and $200 used (out of print) > The book rambles a bit and has been panned because it assumes a lot of > OS and VB knowledge. > But should help you out with Jet collation problems in other languages, > codepages and IME's. > It doesn't cover the MS OS above Win 2000. > > Internationalization With Visual Basic > > Author: Michael Kaplan > Publisher: Macmillan Computer Pub > ISBN: 0672319772 > Publication Year: 2000 > > Chapters from book > http://www.i18nwithvb.com/chapters/ > > In (simplified chinese) for your Chinese compatriots > ANSI or Unicode? > http://www.i18nwithvb.com/chapters/Chapter16_sc.htm > Testing International Software > http://www.i18nwithvb.com/chapters/Chapter06_sc.htm > > i18N = Internationalization (or Globalization): mainly a program able to > manage in any locale the locale language and settings. > > M18N = Multinationalization: mainly a program able to manage (display > and input) several languages in any locale. > > L10N = Localization: mainly a program able to display its translated and > adapted version to several locales. > > > Rocky Smolin - Beach Access Software wrote: > > >Yeah it's A2K and it's working beautiful right now. But that's just label > >and command button caption. We'll see once they put in some data. > > > >Rocky > > > >----- Original Message ----- > >From: "William Hindman" > >To: "Access Developers discussion and problem solving" > > > >Sent: Friday, April 30, 2004 8:44 AM > >Subject: Re: [AccessD] Chinese Language > > > > > > > > > >>...was a while back Rocky ...well before 8 so if you (and your client) > >> > >> > >have > > > > > >>the latest you should be ok ...I'm assuming that you're using A2K or AXP > >> > >> > >in > > > > > >>a W2K or WXP environment. > >> > >>William Hindman > >>"The world's becoming a museum of socialist failures." John Dos Passos > >> > >> > >>----- Original Message ----- > >>From: "Rocky Smolin - Beach Access Software" > >>To: "Access Developers discussion and problem solving" > >> > >>Sent: Friday, April 30, 2004 10:37 AM > >>Subject: Re: [AccessD] Chinese Language > >> > >> > >> > >> > >>>William: > >>> > >>>Which SP did you have to get to fix the problem? > >>> > >>>At the moment I'm just working with captions and labels. But when they > >>>start putting in data and I'm operating onthe data, they might run into > >>> > >>> > >>the > >> > >> > >>>problem. > >>> > >>> > >>>Rocky > >>> > >>>----- Original Message ----- > >>>From: "William Hindman" > >>>To: "Access Developers discussion and problem solving" > >>> > >>>Sent: Friday, April 30, 2004 7:17 AM > >>>Subject: Re: [AccessD] Chinese Language > >>> > >>> > >>> > >>> > >>>>...besides the font, you might want to check your Jet SPs ...earlier > >>>>versions of Jet4 had a number of problems with DBCS languages ...I > >>>> > >>>> > >>needed > >> > >> > >>>to > >>> > >>> > >>>>use a Thai set on an mdb and even though the correct font was > >>>> > >>>> > >installed > > > > > >>I > >> > >> > >>>>got a lot of extended characters instead and queries on that data > >>>> > >>>> > >would > > > > > >>>not > >>> > >>> > >>>>work either ...a Jet update cured the problem. > >>>> > >>>>William Hindman > >>>>"The world's becoming a museum of socialist failures." John Dos Passos > >>>> > >>>> > >>>>----- Original Message ----- > >>>>From: "Bob Gajewski" > >>>>To: "Access Developers discussion and problem solving" > >>>> > >>>>Sent: Friday, April 30, 2004 9:52 AM > >>>>Subject: RE: [AccessD] Chinese Language > >>>> > >>>> > >>>> > >>>> > >>>>>Rocky > >>>>> > >>>>>Odds are real strong that you simply don't have the font installed > >>>>> > >>>>> > >>that > >> > >> > >>>>she > >>>> > >>>> > >>>>>used. > >>>>> > >>>>>Bob Gajewski > >>>>> > >>>>> > >>>>>-----Original Message----- > >>>>>From: accessd-bounces at databaseadvisors.com > >>>>>[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky > >>>>> > >>>>> > >>Smolin - > >> > >> > >>>>>Beach Access Software > >>>>>Sent: Friday, April 30, 2004 09:46 > >>>>>To: AccessD at databaseadvisors.com > >>>>>Subject: [AccessD] Chinese Language > >>>>> > >>>>> > >>>>>Dear List: > >>>>> > >>>>>I am trying to create a Chinese language version of my product with > >>>>> > >>>>> > >>the > >> > >> > >>>>help > >>>> > >>>> > >>>>>of a contact in Taiwan. > >>>>> > >>>>>As an initial test she translated the captions on the Main Menu. I > >>>>> > >>>>> > >>>>created > >>>> > >>>> > >>>>>a front-end language file table to hold the two forms of Chinese > >>>>> > >>>>> > >>(simple > >> > >> > >>>>and > >>>> > >>>> > >>>>>complex) and can add fields as I add languages. > >>>>> > >>>>>I sent her the table but she sent back an excel file of the table > >>>>> > >>>>> > >with > > > > > >>>the > >>> > >>> > >>>>>translations. When I open the Excel file the Chinese characters > >>>>> > >>>>> > >>display > >> > >> > >>>>>correctly (of course, how would I know?). > >>>>> > >>>>>But when I copy one of these strings from the Excel cell into the > >>>>> > >>>>> > >>>language > >>> > >>> > >>>>>table in Access it shows as squares - undisplayable character, I > >>>>> > >>>>> > >>assume. > >> > >> > >>>>So > >>>> > >>>> > >>>>>Excel displays the Chinese but not my Access. > >>>>> > >>>>>I'm stating down the Access Help route but if anyone knows how to > >>>>> > >>>>> > >get > > > > > >>>>Access > >>>> > >>>> > >>>>>to display foreign characters can you give me a lead? > >>>>> > >>>>>MTIA > >>>>> > >>>>>Rocky Smolin > >>>>>Beach Access Software > >>>>>http://www.e-z-mrp.com > >>>>> > >>>>>-- > >>>>>_______________________________________________ > >>>>>AccessD mailing list > >>>>>AccessD at databaseadvisors.com > >>>>>http://databaseadvisors.com/mailman/listinfo/accessd > >>>>>Website: http://www.databaseadvisors.com > >>>>> > >>>>> > >>>>>-- > >>>>>_______________________________________________ > >>>>>AccessD mailing list > >>>>>AccessD at databaseadvisors.com > >>>>>http://databaseadvisors.com/mailman/listinfo/accessd > >>>>>Website: http://www.databaseadvisors.com > >>>>> > >>>>> > >>>>> > >>>>-- > >>>>_______________________________________________ > >>>>AccessD mailing list > >>>>AccessD at databaseadvisors.com > >>>>http://databaseadvisors.com/mailman/listinfo/accessd > >>>>Website: http://www.databaseadvisors.com > >>>> > >>>> > >>>-- > >>>_______________________________________________ > >>>AccessD mailing list > >>>AccessD at databaseadvisors.com > >>>http://databaseadvisors.com/mailman/listinfo/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 > > > > -- > _______________________________________________ > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From lists at theopg.com Fri Apr 30 14:22:32 2004 From: lists at theopg.com (MarkH) Date: Fri, 30 Apr 2004 20:22:32 +0100 Subject: [AccessD] Sub form updates not immediately visible to parent In-Reply-To: <409289C3.5000503@shaw.ca> Message-ID: <007001c42ee8$7c8fdd70$8f0d6bd5@netboxxp> Hi all Using AXP in WinXP I have a very complex form and subform where the parent performs calculations based, partly on, records accessed through the subform. Inclusion of the subform records in the calcs is dependant on a yes/no field being set to yes. On the parent is a button which refreshes the calcs. If I change the subforms yes/no value and then click the refresh button on the parent straight away, the change is not always reflected in the calculations. If I wait 5 or 6 seconds (working on a local backend) then everything is fine. I have spent a lot of time trying to simplify the code (the refresh button being a result) but no matter what there is still a delay resulting in the calcs not always being refreshed properly. I tried requerying and saving in the subform both after the edit and when the refresh button is clicked but I still get the same problem. Any one got any pointers, I'd be real greatful. Thanks and have a good weekend (I'm off at last) Mark From Mark.Mitsules at ngc.com Fri Apr 30 15:48:18 2004 From: Mark.Mitsules at ngc.com (Mitsules, Mark S. (Newport News)) Date: Fri, 30 Apr 2004 16:48:18 -0400 Subject: [AccessD] Deployment Woes Message-ID: I need the weekend to think this over, but I'm open for suggestions. Our department currently utilizes an existing database which is not split. There are an estimated 100 shortcuts to this database littered throughout the department. Do to a rising concern in "concurrency issues", I need to split this db. With such an ingrained dependency on the existing shortcut, it was suggested that I utilize the existing db as nothing more than a glorified .bat file starter to distribute the new FE and subsequently check revision status. This seems like an awful lot of overhead in order to placate the existing user base, and obviously would increase start-up times. What do you think? Mark From jimdettman at earthlink.net Fri Apr 30 15:51:22 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Fri, 30 Apr 2004 16:51:22 -0400 Subject: [AccessD] Sub form updates not immediately visible to parent In-Reply-To: <007001c42ee8$7c8fdd70$8f0d6bd5@netboxxp> Message-ID: Mark, Add a dbEngine.Idle after refreshing the subform records and just before you do the calculations. This will force JET to finish up it's background tasks before continuing with code execution. Jim (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of MarkH Sent: Friday, April 30, 2004 3:23 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Sub form updates not immediately visible to parent Hi all Using AXP in WinXP I have a very complex form and subform where the parent performs calculations based, partly on, records accessed through the subform. Inclusion of the subform records in the calcs is dependant on a yes/no field being set to yes. On the parent is a button which refreshes the calcs. If I change the subforms yes/no value and then click the refresh button on the parent straight away, the change is not always reflected in the calculations. If I wait 5 or 6 seconds (working on a local backend) then everything is fine. I have spent a lot of time trying to simplify the code (the refresh button being a result) but no matter what there is still a delay resulting in the calcs not always being refreshed properly. I tried requerying and saving in the subform both after the edit and when the refresh button is clicked but I still get the same problem. Any one got any pointers, I'd be real greatful. Thanks and have a good weekend (I'm off at last) Mark -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at earthlink.net Fri Apr 30 16:06:45 2004 From: jimdettman at earthlink.net (Jim Dettman) Date: Fri, 30 Apr 2004 17:06:45 -0400 Subject: [AccessD] Deployment Woes In-Reply-To: Message-ID: Mark, I've seen it done both ways; A "launcher" app as you outlined and a FE which does it's version checks on it's own. The existing short cuts though are not really a big issue. You can easily have the existing app call a bat file which: 1. Deletes the existing shortcut. 2. Creates the directory structure on the client required for the local FE. 3. Copies down the new FE and supporting files. 4. Creates a new shortcut on the desktop to point to the local FE. 5. Creates a shortcut on the desktop to point to a bat file on the server to use for future updates. I do my distribution sets in the latter mode and do a batch file as outlined above. The FE at startup compares an local table to the same table that's in a the FE on the server. If the two don't match versions (I placed an new FE on the server), the app tells the user to update and quits. The update is nothing more then executing the bat file on the server, which works as outlined as above. Personally I think it's a six one way half a dozen another type of thing. Jim (315) 699-3443 jimdettman at earthlink.net -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mitsules, Mark S. (Newport News) Sent: Friday, April 30, 2004 4:48 PM To: '[AccessD]' Subject: [AccessD] Deployment Woes I need the weekend to think this over, but I'm open for suggestions. Our department currently utilizes an existing database which is not split. There are an estimated 100 shortcuts to this database littered throughout the department. Do to a rising concern in "concurrency issues", I need to split this db. With such an ingrained dependency on the existing shortcut, it was suggested that I utilize the existing db as nothing more than a glorified .bat file starter to distribute the new FE and subsequently check revision status. This seems like an awful lot of overhead in order to placate the existing user base, and obviously would increase start-up times. What do you think? Mark -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From BBarabash at TappeConstruction.com Fri Apr 30 16:14:05 2004 From: BBarabash at TappeConstruction.com (Brett Barabash) Date: Fri, 30 Apr 2004 16:14:05 -0500 Subject: [AccessD] Deployment Woes Message-ID: <426071E0B0A6D311B3C0006008B0AB23AFE576@TAPPEEXCH01> Mark, I do that for all of my distributed apps. Adds half a second to the startup time of an application (unless, of course, it has to copy a new version of the FE to their workstation.) Don't know how using a batch file would add to the overhead. Can you elaborate? Oh yeah, here is a sample of my batch file. - In our office, all users have the Access 2000 runtime installed on their machines, and we use server-based start menu profiles. - Installing new apps on their workstation is as simple as dropping a shortcut to the batch file in their start menu directory. - I created an app shortcut called Launcher, that has the command line to start the app. It is located in the same server directory as the batch file, and is executed at the end of the batch file processing. Well, here it is! ---------- @echo off rem ** Change this variable with each new version release set verfile=123.ver rem ** Create directory if necessary if exist c:\myappdir\nul goto app mkdir c:\myappdir :app rem ** Copy the newest application file from server if it is newer version if exist c:\myappdir\%verfile% goto end echo Updating application files. Please Wait... copy h:\myappdir\myfrontend.mdb c:\myappdir /y > nul rem ** Delete the existing version file, and create a new one if exist c:\myappdir\*.ver del c:\myappdir\*.ver type nul > c:\myappdir\%verfile% :end rem ** Run the application using Access Runtime start Launcher ---------- -----Original Message----- From: Mitsules, Mark S. (Newport News) [mailto:Mark.Mitsules at ngc.com] Sent: Friday, April 30, 2004 3:48 PM To: '[AccessD]' Subject: [AccessD] Deployment Woes I need the weekend to think this over, but I'm open for suggestions. Our department currently utilizes an existing database which is not split. There are an estimated 100 shortcuts to this database littered throughout the department. Do to a rising concern in "concurrency issues", I need to split this db. With such an ingrained dependency on the existing shortcut, it was suggested that I utilize the existing db as nothing more than a glorified .bat file starter to distribute the new FE and subsequently check revision status. This seems like an awful lot of overhead in order to placate the existing user base, and obviously would increase start-up times. What do you think? Mark -- -------------------------------------------------------------------------------------------------------------------- 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 stuart at lexacorp.com.pg Fri Apr 30 19:30:57 2004 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 01 May 2004 10:30:57 +1000 Subject: [AccessD] OT: Quick view of ico files In-Reply-To: <000c01c42e96$d41c19c0$0100a8c0@razvoj> Message-ID: <40937C61.12204.1B0E35@localhost> On 30 Apr 2004 at 11:36, Ervin Brindza wrote: > I just downloaded from http://www.mvp-access.com/rubenvigon/recursos.htm over 11Mb of .ico and .avi files. Are there any way to browse them quickly? > TIA, > Ervin Irfanview. http://www.irfanview.com -- Lexacorp Ltd http://www.lexacorp.com.pg Information Technology Consultancy, Software Development,System Support.