From ab-mi at post3.tele.dk Sun Jun 1 17:18:06 2008 From: ab-mi at post3.tele.dk (Asger Blond) Date: Mon, 2 Jun 2008 00:18:06 +0200 Subject: [AccessD] Rounding with CCur conversion In-Reply-To: <000301c8c375$23a56150$6af023f0$@rr.com> Message-ID: <000801c8c435$72a4e8a0$2101a8c0@AB> Hi Bobby, I'm aware that currency rounds to 4 decimal. My question last month was: what kind of rounding? Try this: ?Round(1.11125,4) --> 1.1112 (Banker's rounding) ?CCur(1.11125) --> 1.1113 (Arithmetic rounding) ?CCur(111.11115) --> 111.1111 (for sure neither Banker's nor Arithmetic, so what beast is this, if not a bug?) Also, I'm astonished to note the lack of standards for financial roundings between programming languages. I would expect T-SQL (MS SQL Server) to use Banker's rounding for the money data type. But in fact it uses Arithmetic rounding: SELECT CAST('1.11125' AS money) --> 1.1113 Doesn't this long aged capitalistic world have some kind of standard (ANSI/ISO) for financial rounding of the 4th decimal? If not, I finally got an explanation why my bank account is so unpredictable... Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Bobby Heid Sendt: 1. juni 2008 01:22 Til: 'Access Developers discussion and problem solving' Emne: Re: [AccessD] Rounding with CCur conversion Asger, The currency type rounds to 4 decimal places. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Asger Blond Sent: Thursday, May 01, 2008 7:55 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Rounding with CCur conversion Hi group, I just noticed that the algorithm in VB for rounding seems to be different for the Round-function and the CCur-function. The Round-function use "Banker's rounding", also known as "Dutch rounding". The CCur-function behaves differently: Round(1.11115,4) --> 1.1112 Round(11.11115,4) --> 11.1112 Round(111.11115,4) --> 111.1112 CCur(1.11115) --> 1.1112 CCur(11.11115) --> 11.1112 CCur(111.11115) --> 111.1111 ?!! What's going on in the last conversion? Is this a bug or does the CCur-function have a special algorithm? TIA Asger -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Sun Jun 1 17:21:42 2008 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 02 Jun 2008 08:21:42 +1000 Subject: [AccessD] A better picture? In-Reply-To: <49DFE57FB126044B8A8B934E7AEA09ED09FD7479@WPEXCH05.colesmyer.ad.cmltd.net.au> References: <49DFE57FB126044B8A8B934E7AEA09ED09FD7479@WPEXCH05.colesmyer.ad.cmltd.net.au> Message-ID: <4843AD96.2516.4623554E@stuart.lexacorp.com.pg> If it's a "real" DLL that doesn't need registering, try putting it: a. Anywhere in your "PATH" b. In the same directory as your MSACCESS.EXE. On 1 Jun 2008 at 12:13, Darryl Collins wrote: > > Gustav, > > No I haven't, but I like the sound of that a lot. will give that a try later and let you know how it goes. > > Thanks for the concept. If it works I will name it "gustav's law of reference". hehehehe. nice! > > cheers > Darryl > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock > Sent: Friday, 30 May 2008 5:15 PM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] A better picture? > > > Hi Darry > > Ah, ahem, have to accept that .. that's the cost for not registering the dll. > However, have you tried registering it in another location? Perhaps that is possible? > > /gustav > > >>> Darryl.Collins at coles.com.au 30-05-2008 08:55 >>> > > Mr Lebans... > > '--------------------------------------------------------------------- > "LoadSaveJpeg - Version 1 > Copyright Lebans Holdings 1999 Ltd > > Developed and tested under Access 97. > > You must copy the Intel Jpeg Library file named "ijl15.dll" into the System folder on your computer. You do not have to register it just copy it from the archive you downloaded." > '--------------------------------------------------------------------- > > Although some of the other dll files (such as print to PDF) work so long as the are in the same folder, it seems this one doesn't. I tried to poke around in the code to see if I could change the path, but in the short time I looked I didn't see anything obvious. That said, I didn't look awfully hard either. > > open to any ideas on this I can tell you :) I love a dodgy workaround, especially if I can get one over the IT gatekeepers. > > cheers > Darryl. > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock > Sent: Friday, 30 May 2008 4:49 PM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] A better picture? > > > Hi Darryl > > > .. the dll file needs to be placed in the system folder .. > > Who says so? > > >>> Darryl.Collins at coles.com.au 30-05-2008 05:28 >>> > > bah humbug. This is not going to work as the dll file needs to be placed in the system folder and I cannot get access to anything close to that on any of the corporate PC fleet. Might have to try another approach. > > :-/ > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From Darryl.Collins at coles.com.au Sun Jun 1 17:23:19 2008 From: Darryl.Collins at coles.com.au (Darryl Collins) Date: Mon, 2 Jun 2008 08:23:19 +1000 Subject: [AccessD] Hamachi as service Message-ID: <49DFE57FB126044B8A8B934E7AEA09ED09FD747D@WPEXCH05.colesmyer.ad.cmltd.net.au> For a simple and free solution for remote access I use "LogMeIn" (www.logmein.com). It comes in plenty of flavors, but for me the free version does most of what I need to do. Recommended as well. Especially handy when playing IT Helpdesk to your parents who live 850 Kms away! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of jwcolby Sent: Saturday, 31 May 2008 10:38 PM To: Access Developers discussion and problem solving; Discussion of Hardware and Software issues Subject: [AccessD] Hamachi as service For all of you who run the excellent Hamachi VPN networking, check this out. http://serviceex.com/HServiceSetup/ Click the DOWNLOAD link to get it. I have Hamachi running on all of my systems, and even my virtual machines. Using Hamachi I can tunnel in to my systems at home when I am on the road (not that often), run remote desktop on them, pull or push files between drives etc. Hamachi also allows me to use Remote Desktop on all of my network machines without having to futz with the registry and port forwarding on the router. With this it runs as a service and can even be set to automatically restart if the little applet is closed. Recommended. -- John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. From bheid at sc.rr.com Sun Jun 1 17:48:07 2008 From: bheid at sc.rr.com (Bobby Heid) Date: Sun, 1 Jun 2008 18:48:07 -0400 Subject: [AccessD] Rounding with CCur conversion In-Reply-To: <000801c8c435$72a4e8a0$2101a8c0@AB> References: <000301c8c375$23a56150$6af023f0$@rr.com> <000801c8c435$72a4e8a0$2101a8c0@AB> Message-ID: <000a01c8c439$8f5f8140$ae1e83c0$@rr.com> Ahhh, sorry, I did not catch the "Type" of rounding part of the question. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Asger Blond Sent: Sunday, June 01, 2008 6:18 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Rounding with CCur conversion Hi Bobby, I'm aware that currency rounds to 4 decimal. My question last month was: what kind of rounding? Try this: ?Round(1.11125,4) --> 1.1112 (Banker's rounding) ?CCur(1.11125) --> 1.1113 (Arithmetic rounding) ?CCur(111.11115) --> 111.1111 (for sure neither Banker's nor Arithmetic, so what beast is this, if not a bug?) Also, I'm astonished to note the lack of standards for financial roundings between programming languages. I would expect T-SQL (MS SQL Server) to use Banker's rounding for the money data type. But in fact it uses Arithmetic rounding: SELECT CAST('1.11125' AS money) --> 1.1113 Doesn't this long aged capitalistic world have some kind of standard (ANSI/ISO) for financial rounding of the 4th decimal? If not, I finally got an explanation why my bank account is so unpredictable... Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Bobby Heid Sendt: 1. juni 2008 01:22 Til: 'Access Developers discussion and problem solving' Emne: Re: [AccessD] Rounding with CCur conversion Asger, The currency type rounds to 4 decimal places. Bobby -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Asger Blond Sent: Thursday, May 01, 2008 7:55 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Rounding with CCur conversion Hi group, I just noticed that the algorithm in VB for rounding seems to be different for the Round-function and the CCur-function. The Round-function use "Banker's rounding", also known as "Dutch rounding". The CCur-function behaves differently: Round(1.11115,4) --> 1.1112 Round(11.11115,4) --> 11.1112 Round(111.11115,4) --> 111.1112 CCur(1.11115) --> 1.1112 CCur(11.11115) --> 11.1112 CCur(111.11115) --> 111.1111 ?!! What's going on in the last conversion? Is this a bug or does the CCur-function have a special algorithm? TIA Asger From Darryl.Collins at coles.com.au Sun Jun 1 19:12:38 2008 From: Darryl.Collins at coles.com.au (Darryl Collins) Date: Mon, 2 Jun 2008 10:12:38 +1000 Subject: [AccessD] A better picture? Message-ID: <49DFE57FB126044B8A8B934E7AEA09ED09FD7481@WPEXCH05.colesmyer.ad.cmltd.net.au> Jenny, Thanks so much for this. I agree 100% on washing it all thru Excel, indeed I already do this path when making a JPG of an org chart as Excel does this with much more ease and flexibility than Access (or at least it does for me). I try not to use PowerPoint too much, but a lot of folks at work are married to it. Once again, many thanks. warm regards Darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jennifer Gross Sent: Saturday, 31 May 2008 9:46 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] A better picture? Hi Darryl, Below is my procedure code. You have to have opened a PowerPoint Presentation and an Excel Workbook. Dealing with this over many years and many different versions of Office/Access combinations I found it easiest to open a hidden instance of Excel, create the chart in Excel and then copy and paste into PowerPoint. It was easier and more reliable to base the chart on values in Excel cells than to try to populate the chart's datasheet directly in PP. You need to makes sure you have references to PowerPoint, Excel and MS Graph. I also wanted control over the color of the pie slices so I set up a global ColorArray() with the numerical values for the colors I wanted. This was important because in my application there were many charts going to a single PP and the user always wanted the slice for say 'apples' to be the same color in all of the charts. This is part of creating a PP with charts interspersed between slides with bullet points, that is why I need to know what slide we are on and I use a new worksheet in Excel for creating each graph. Once the PP is created I close out Excel and the user never knows that is what was used. A lot of the formatting is client preference - so do with it what you will. Please watch the word wrap. Jennifer Sub CreateChart(pptPres As PowerPoint.Presentation, pptSlideNumber As Integer, TitleMsg As Long, _ exlwbk As Excel.Workbook, SheetNo As Integer, rsName As String, txtFld As String, numFld As String, _ txtSortFld As String) On Error GoTo ErrorHandler Dim strErrMsg As String 'for Error Handling Dim pptslide As PowerPoint.Slide Dim db As DAO.Database Dim rs As DAO.Recordset Dim rsSorted As DAO.Recordset Dim ndxColumn As Integer Dim ndxRow As Integer Dim SliceCount As Integer Dim exlRange As Excel.Range Dim ch As ChartObject Dim x As Integer Set db = CurrentDb Set rs = db.OpenRecordset(rsName, dbOpenDynaset) rs.Sort = txtSortFld Set rsSorted = rs.OpenRecordset If Not rsSorted.EOF And Not rsSorted.BOF Then exlwbk.Worksheets(SheetNo).Activate ndxColumn = 1 ndxRow = 1 SliceCount = 0 rsSorted.MoveFirst Do While Not rsSorted.EOF If rsSorted(numFld) > 1 Then exlwbk.Sheets(SheetNo).Cells(ndxRow, ndxColumn) = rsSorted(txtFld) exlwbk.Sheets(SheetNo).Cells(ndxRow, ndxColumn + 1) = CLng(rsSorted(numFld)) ndxRow = ndxRow + 1 SliceCount = SliceCount + 1 End If rsSorted.MoveNext Loop Set exlRange = exlwbk.Worksheets(SheetNo).Range("A1:B" & SliceCount) Set ch = exlwbk.Worksheets(SheetNo).ChartObjects.Add(100, 30, 400, 250) ch.Chart.ChartWizard Source:=exlRange, PlotBy:=xlRows, SeriesLabels:=1 With ch.Chart .ChartType = xl3DPie .Legend.Position = xlLegendPositionBottom .Legend.Font.Name = "Arial" .Legend.Font.Size = 12 .Legend.Left = 10 .Legend.Width = 650 .Legend.Top = 420 .Legend.Height = 200 .Legend.Font.Color = ColorArray(7) .Legend.Fill.Visible = msoFalse .ChartArea.Border.LineStyle = xlLineStyleNone .PlotArea.Border.LineStyle = xlLineStyleNone .ChartArea.Width = 620 .Rotation = 90 .Elevation = 0 .Axes(xlSeriesAxis).TickLabels.Delete .Walls.Interior.Color = rgb(255, 255, 255) .Floor.Interior.Color = rgb(255, 255, 255) .SeriesCollection(1).HasDataLabels = msoFalse For x = 1 To SliceCount .SeriesCollection(1).Points(x).Interior.Color = ColorArray(x) .SeriesCollection(x).Interior.Color = ColorArray(x) .Axes(xlCategory).TickLabels.Delete Next x If SliceCount < 4 Then For x = 5 To SliceCount + 2 Step -1 .DataTable.Columns(x).Delete Next x End If 'delete rows that are causing bars to be thin For x = 3 To 10 Step 1 .DataTable.Rows(3).Delete Next x .Refresh '.Application.Quit ch.Select ch.Copy End With Set pptslide = pptPres.Slides.Add(pptPres.Slides.Count + 1, ppLayoutChart) pptslide.Shapes.Title.TextFrame.TextRange.Text = TitleMsg pptslide.Shapes(2).Delete pptslide.Shapes.Paste With pptslide.Shapes(2) .Left = 25 .Top = 55 .Width = 500 .Height = 425 End With End If ExitHere: DoCmd.SetWarnings True rs.Close rsSorted.Close Set db = Nothing Exit Sub ErrorHandler: Select Case Err Case 91 'do nothing - object never opened err.clear Resume Next Case 1004 Resume Next Case Else strErrMsg = "An error occurred in " & "CreateChart" & vbCrLf & vbCrLf & vbCrLf strErrMsg = strErrMsg & "Error #: " & Format$(Err.Number) & vbCrLf & vbCrLf strErrMsg = strErrMsg & "Error Description: " & Err.Description MsgBox strErrMsg, vbInformation, "CreateChart" Resume ExitHere End Select End Sub -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Thursday, May 29, 2008 2:37 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A better picture? aaaaah, Lebans, I should have guessed. Will also have a look at this option, although I also like the sound of Jennifer's approach. many thanks Darryl -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of William Hindman Sent: Thursday, 29 May 2008 5:30 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A better picture? http://www.lebans.com/loadsavejpeg.htm ...he uses the intel jpeg library to allow Access to use much larger jpegs in the image control ...should in turn give you a much cleaner pdf graphic output ...he also has a report converter to word that manages large embedded graphics ...I use it regularly with clients rather than snapshot. William "The truth is incontrovertible, malice may attack it, ignorance may deride it, but in the end; there it is." -------------------------------------------------- From: "Darryl Collins" Sent: Thursday, May 29, 2008 12:45 AM To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] A better picture? > > > aaah, seems like snapshot is the only option. i have added an "Export..." > button to the custom toolbar to allow the users to do this. If anyone > has a better suggestion I am all ears. > > :) > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Darryl > Collins > Sent: Thursday, 29 May 2008 2:26 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] A better picture? > > > > Hi People, > > I have a button to create a PDF from a report. Then my ever so > creative users are taking a copy of the PDF and putting it into power > point. Of course by this stage (3rd generation of mushy PeeCee > Graphic conversion) the image is softer than grandma's feather bed and much less comfy. > > Is there anyway of turning the Access report immediately into a JPG > instead of using snapshot? > > As usual, I know you can do this in Excel with charts and the like, ' > ---------------------------- Dim Chart1 As Chart Set mychart = > Sheets("MySheet").ChartObjects(1).Chart > mychart.Export Filename:="C:\CopyOfMyChart.jpg", FilterName:="jpg" > ' ---------------------------- > > or any part of a workbook using code such as:\ Selection.CopyPicture > Appearance:=xlScreen, Format:=xlPicture" > > Is this possible to do in VBA Access? > > regards > Darryl. > > This email and any attachments may contain privileged and confidential > information and are intended for the named addressee only. If you have > received this e-mail in error, please notify the sender and delete > this e-mail immediately. Any confidentiality, privilege or copyright > is not waived or lost because this e-mail has been sent to you in > error. It is your responsibility to check this e-mail and any attachments for viruses. > No warranty is made that this material is free from computer virus or > any other defect or error. Any loss/damage incurred by using this > material is not the sender's responsibility. The sender's entire > liability will be limited to resupplying the material. > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > This email and any attachments may contain privileged and confidential > information and are intended for the named addressee only. If you have > received this e-mail in error, please notify the sender and delete > this e-mail immediately. Any confidentiality, privilege or copyright > is not waived or lost because this e-mail has been sent to you in > error. It is your responsibility to check this e-mail and any attachments for viruses. > No warranty is made that this material is free from computer virus or > any other defect or error. Any loss/damage incurred by using this > material is not the sender's responsibility. The sender's entire > liability will be limited to resupplying the material. > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. From Darryl.Collins at coles.com.au Sun Jun 1 20:40:14 2008 From: Darryl.Collins at coles.com.au (Darryl Collins) Date: Mon, 2 Jun 2008 11:40:14 +1000 Subject: [AccessD] Label vs text box and carriage return issue. Message-ID: <49DFE57FB126044B8A8B934E7AEA09ED0B27027C@WPEXCH05.colesmyer.ad.cmltd.net.au> Hey guys and gals. Whilst most of you are mooching about on Sunday, it is Monday here in Deep South Oz (urrrrgh) and I am trying to get a report to behave. I am using Labels which I want to populate with a list returned from a query. Now I have the query working great, and I have the data being populated into the labels, but I cannot get the damn carriage return working correctly. I have tried Chr(10), vbCr and vbLf. All work in that they put in a Carriage return character, but it doesn't actually write to the label with carriage returns functioning - still write the data in a single line. I want: Alpha Beta Gamma Delta NOT: "Alpha Beta Gamma Delta" (with the carriage return char showing in the spaces). ' ------------- Code Start ------------------- ... yada yada yadah... If (rsActClone.RecordCount) > 0 Then sProgText = "" Do While Not rsActClone.EOF n = n + 1 If n > rsActClone.RecordCount Then Exit Do End If sProgText = rsActClone!ProgName.Value sANS = sANS & sProgText & vbLf '<-- THIS BIT HERE IS BOTHERSOME rsActClone.MoveNext Loop End If End If ... and so on.... ' ------------ End Code ---------------------- This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. From Darryl.Collins at coles.com.au Sun Jun 1 20:44:33 2008 From: Darryl.Collins at coles.com.au (Darryl Collins) Date: Mon, 2 Jun 2008 11:44:33 +1000 Subject: [AccessD] Momentary Adieu Message-ID: <49DFE57FB126044B8A8B934E7AEA09ED09FD7487@WPEXCH05.colesmyer.ad.cmltd.net.au> Arthur: Good luck, sounds like a great job. Shamil: Move to Australia - it is nice and warm here for most of the time, and our winters would be pretty nice compared to yours I suspect ;) Oh and "safe and smooth transition" is perfect english. cheers Darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Shamil Salakhetdinov Sent: Saturday, 31 May 2008 6:08 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Momentary Adieu Hi Arthur, Good Luck there on Bermuda! Keep in touch with us... If you'll get known there are vacant positions there for contractual MS Access/MS Office/MS SQL/.NET/ASP.NET etc. developers then I think I'd not mind to come there to try :) Not kidding, looking for projects these days and in this country advanced developers/analysts are in demand currently but the rates are not good enough to keep my family living on good level... I must say I'm also starting to think that it's time to move somewhere working and living in more warn places than St.Petersburg, Russia, at least for the most cold seasons of the year: I thought Canary Islands would be good for that or Seyshells (http://home.hccnet.nl/g.jacobs/) :) But Bermuda should be good also: I like to play tennis and go swimming in my spare time - Bermuda should be a paradise place for such activities... I wish you safe and smooth (is that correct English?) transition to Bermuda, and quick adaptation there, and to get back in touch with all of us here ASAP... Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, May 30, 2008 10:48 PM To: Access Developers discussion and problem solving; Discussion concerning MS SQL Server; Discussion of Hardware and Software issues Subject: [AccessD] Momentary Adieu Sorry for the Cross-post, but I wanted to ensure that I touch all my friends on these lists. On Sunday morning I am moving to Bermuda to take a job as a SQL developer. It's a dream job and the money is excellent and the people are all really smart and the dress-code is very casual (tee shirt and shorts and sandals), and there is neither snow nor taxes. Where's the down side? So, consider this official notice of the creation of the Bermuda chapter of our group. My email will remain the same, so I won't lose touch, but it may take me a few days to get the Internet etc. installed. But fair warning, I'll be back in your faces within a few days. And we could always plan an dbAdvisor's conference in Bermuda, although the hotel prices are rather steep. Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. From jwcolby at colbyconsulting.com Sun Jun 1 20:48:46 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 01 Jun 2008 21:48:46 -0400 Subject: [AccessD] Hamachi as service In-Reply-To: <49DFE57FB126044B8A8B934E7AEA09ED09FD747D@WPEXCH05.colesmyer.ad.cmltd.net.au> References: <49DFE57FB126044B8A8B934E7AEA09ED09FD747D@WPEXCH05.colesmyer.ad.cmltd.net.au> Message-ID: <4843517E.1060109@colbyconsulting.com> Logmein actually purchased Hamachi from the original developers. Logmein is a remote access solution, but it is fundamentally different from Hamachi, and they are used for different things. Hamachi is a VPN (Virtual Private Network) which can include computers all over the world if you so desire. People use it to set up game networks where gamers sit in their own home, and "log in" to a network created using Hamachi. Hamachi is NOT the remote access portion of the picture, it is a "virtual network" solution, networking 2 or more computers together, USUALLY across the internet. If you have a network, it is often useful to use Remote Desktop to control (for example) the wife's or the son's computer downstairs from your own computer upstairs. Or in a business you might want to log in to the server in another building from your own desktop, or just remote into another user's machine. As you probably know, NAT (Network Address Translation) causes each computer within your network to be assigned an IP Address, usually in the range of 192.168.x.x. The problem with NAT addresses is that they "interfere" with remote desktop, particularly coming in from the outside through a router. By default, Remote Desktop uses port 3398 as the remote access port. In order to come in through the router, each machine has to be assigned a static IP address by the router, and then port forwarding turned on, and "ports" forwarded to specific IP addresses. It just becomes messy. I use Hamachi to set up a network within my own network, which can then be accessed from outside of my network. Hamachi assigns a "real" unique IP address to each computer in the network. That IP is visible in the little Hamachi screen, and that IP can be directly addressed for Remote desktop or VNC. You can also directly browse shares on remote machines, drag and drop files from remote shares onto your machine and vice versa. Because I run only Windows XP Pro or Windows 2003, both of which contain Remote Desktop built in, I can then use remote desktop from my laptop to control any of the computers in my Hamachi network. Remote desktop is extremely fast in painting the screen of the remote computer, i.e. it is "responsive", making it seem as if you are sitting right there at the remote computer. Furthermore it is free and it is EXACTLY like I am there. But the "remote access" server has to be running on the remote machine, whether VNC or Remote Desktop. I am not proposing Hamachi over something like LogMeIn, I am just discussing the differences between them and what Hamachi does. Hamachi is by definition a NETWORK, not remote access per se. LogMeIn is probably a BETTER solution in many instances. For example I am finding myself providing technical assistance to friends and family. LogMeIn is designed expressly for that. You do not need to install VNC or have a version of windows which supports the Remote Desktop server (XP Pro or 2003 server etc.). For those situations, LogMeIn would allow direct computer to computer connection. That said, I find Hamachi and Remote Desktop fits my purposes when I want to be able to jump around an entire network of my machines. However I will definitely be looking in to LogmeIn for my "friend support" platform. John W. Colby www.ColbyConsulting.com Darryl Collins wrote: > > For a simple and free solution for remote access I use "LogMeIn" (www.logmein.com). It comes in plenty of flavors, but for me the free version does most of what I need to do. Recommended as well. Especially handy when playing IT Helpdesk to your parents who live 850 Kms away! From stuart at lexacorp.com.pg Sun Jun 1 20:53:36 2008 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 02 Jun 2008 11:53:36 +1000 Subject: [AccessD] Label vs text box and carriage return issue. In-Reply-To: <49DFE57FB126044B8A8B934E7AEA09ED0B27027C@WPEXCH05.colesmyer.ad.cmltd.net.au> References: <49DFE57FB126044B8A8B934E7AEA09ED0B27027C@WPEXCH05.colesmyer.ad.cmltd.net.au> Message-ID: <4843DF40.11686.46E554B2@stuart.lexacorp.com.pg> Cr and LF are two different characters. You need them both to throw a line the text box. Use either vbCRLF or Chr$(13) & CHR$(10) -- Stuart On 2 Jun 2008 at 11:40, Darryl Collins wrote: > > > Hey guys and gals. > > Whilst most of you are mooching about on Sunday, it is Monday here in > Deep South Oz (urrrrgh) and I am trying to get a report to behave. > > I am using Labels which I want to populate with a list returned from a > query. Now I have the query working great, and I have the data being > populated into the labels, but I cannot get the damn carriage return > working correctly. I have tried Chr(10), vbCr and vbLf. All work in > that they put in a Carriage return character, but it doesn't actually > write to the label with carriage returns functioning - still write the > data in a single line. > > I want: > Alpha > Beta > Gamma > Delta > > NOT: > "Alpha Beta Gamma Delta" (with the carriage return char showing in the spaces). > > ' ------------- Code Start ------------------- > > ... yada yada yadah... > > If (rsActClone.RecordCount) > 0 Then > sProgText = "" > Do While Not rsActClone.EOF > n = n + 1 > If n > rsActClone.RecordCount Then > Exit Do > End If > > sProgText = rsActClone!ProgName.Value > sANS = sANS & sProgText & vbLf '<-- THIS BIT HERE IS BOTHERSOME > rsActClone.MoveNext > Loop > End If > End If > > ... and so on.... > > ' ------------ End Code ---------------------- > > This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From Darryl.Collins at coles.com.au Sun Jun 1 20:59:07 2008 From: Darryl.Collins at coles.com.au (Darryl Collins) Date: Mon, 2 Jun 2008 11:59:07 +1000 Subject: [AccessD] Label vs text box and carriage return issue. Message-ID: <49DFE57FB126044B8A8B934E7AEA09ED09FD7488@WPEXCH05.colesmyer.ad.cmltd.net.au> Stuart, Next time I fly north to Asia I will try and get the pilot to drop out a case of whatever you like over PNG with a thank you card attached! Pity I don't work with Exxon anymore, otherwise I may have been able to scam a work excursion and deliver it personally. many thanks, a simple solution and works perfectly. regards Darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stuart McLachlan Sent: Monday, 2 June 2008 11:54 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Label vs text box and carriage return issue. Cr and LF are two different characters. You need them both to throw a line the text box. Use either vbCRLF or Chr$(13) & CHR$(10) -- Stuart On 2 Jun 2008 at 11:40, Darryl Collins wrote: > > > Hey guys and gals. > > Whilst most of you are mooching about on Sunday, it is Monday here in > Deep South Oz (urrrrgh) and I am trying to get a report to behave. > > I am using Labels which I want to populate with a list returned from a > query. Now I have the query working great, and I have the data being > populated into the labels, but I cannot get the damn carriage return > working correctly. I have tried Chr(10), vbCr and vbLf. All work in > that they put in a Carriage return character, but it doesn't actually > write to the label with carriage returns functioning - still write the > data in a single line. > > I want: > Alpha > Beta > Gamma > Delta > > NOT: > "Alpha Beta Gamma Delta" (with the carriage return char showing in the spaces). > > ' ------------- Code Start ------------------- > > ... yada yada yadah... > > If (rsActClone.RecordCount) > 0 Then > sProgText = "" > Do While Not rsActClone.EOF > n = n + 1 > If n > rsActClone.RecordCount Then > Exit Do > End If > > sProgText = rsActClone!ProgName.Value > sANS = sANS & sProgText & vbLf '<-- THIS BIT HERE IS BOTHERSOME > rsActClone.MoveNext > Loop > End If > End If > > ... and so on.... > > ' ------------ End Code ---------------------- > > This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. From stuart at lexacorp.com.pg Sun Jun 1 21:35:09 2008 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 02 Jun 2008 12:35:09 +1000 Subject: [AccessD] Hamachi as service In-Reply-To: <4843517E.1060109@colbyconsulting.com> References: <49DFE57FB126044B8A8B934E7AEA09ED09FD747D@WPEXCH05.colesmyer.ad.cmltd.net.au>, <4843517E.1060109@colbyconsulting.com> Message-ID: <4843E8FD.27166.470B612D@stuart.lexacorp.com.pg> You're mixing up and combining two things there, DHCP and NAT. NAT doesn't assign addresses. DHCP (Dynamic Host Configuration Protocol) does that. Each computer in your private network has to have a separate IP Address. That address can either be fixed (you enter it into the network configuration window) or assigned from a pool by a DHCP server each time the computer is switched on and connects to your local network. Your private network uses one of three "non-routable" address ranges. (10.*.*.* , 172.16.*.*. - 172.31.*.* or 192.168.*.*) Your Internet Router has one address in this range on the "inside" and one or more separate public, "routable" addresses on the outside. Assume your Router's internal address is 192.168.1.254. Your workstation will be configured with an address such as 192.168.1.3, a mask of 255.255.255.0 and a Gateway of 192.168.1.254. Because of the mask, if you try to communicate with any computer in the 192.168.1.* range, you will talk directly to that machine. If you try to access any address outside of that range, the packets will be sent to the Gateway/Router on 192.168.1.254. The router will then send your packets to the destination computer. That destination computer will then send it's reply back to the external address of the router. Once the router receives the reply back it will send it on to your computer 192.168.1.3. Note that the destination computer doesn't know that the request has come from your workstation at 192.168.1.3, it thinks it has come from the external address of your router. NAT is the process of the router accepting packets from you, translating your network address into the routers own external address and translating it's external address back to your network address on the reply packets. The NAT software basically keeps track of all of the outbound packets from each of the computers on your internal network and redirect incoming packets to the correct originator. This can only work for messages which originate within your network. If you have a machine on your network which *listens* for requests originating from the outside, such as an FTP server, Web server, SMTP mail server or Remote Desktop, you have to configure your NAT to translate all such incoming requests to the specific machine - so-called "Port Forwarding". In this case, you can't just use an assigned DNS assigned address for the workstation, it must be configured so that it always uses the same address, and you can't use the same Port for more than one machine so in the case of Remote Desktop, you need to use a different port for each workstation. -- Stuart On 1 Jun 2008 at 21:48, jwcolby wrote: > As you probably know, NAT (Network Address Translation) > causes each computer within your network to be assigned an > IP Address, usually in the range of 192.168.x.x. The > problem with NAT addresses is that they "interfere" with > remote desktop, particularly coming in from the outside > through a router. By default, Remote Desktop uses port 3398 > as the remote access port. In order to come in through the > router, each machine has to be assigned a static IP address > by the router, and then port forwarding turned on, and > "ports" forwarded to specific IP addresses. It just becomes > messy. > From DWUTKA at Marlow.com Sun Jun 1 21:41:48 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Sun, 1 Jun 2008 21:41:48 -0500 Subject: [AccessD] Hamachi as service In-Reply-To: <4843E8FD.27166.470B612D@stuart.lexacorp.com.pg> Message-ID: Ok, we'll check it out tomorrow, they were all emailing fine when we set them up. Who knows. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Sunday, June 01, 2008 9:35 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Hamachi as service You're mixing up and combining two things there, DHCP and NAT. NAT doesn't assign addresses. DHCP (Dynamic Host Configuration Protocol) does that. Each computer in your private network has to have a separate IP Address. That address can either be fixed (you enter it into the network configuration window) or assigned from a pool by a DHCP server each time the computer is switched on and connects to your local network. Your private network uses one of three "non-routable" address ranges. (10.*.*.* , 172.16.*.*. - 172.31.*.* or 192.168.*.*) Your Internet Router has one address in this range on the "inside" and one or more separate public, "routable" addresses on the outside. Assume your Router's internal address is 192.168.1.254. Your workstation will be configured with an address such as 192.168.1.3, a mask of 255.255.255.0 and a Gateway of 192.168.1.254. Because of the mask, if you try to communicate with any computer in the 192.168.1.* range, you will talk directly to that machine. If you try to access any address outside of that range, the packets will be sent to the Gateway/Router on 192.168.1.254. The router will then send your packets to the destination computer. That destination computer will then send it's reply back to the external address of the router. Once the router receives the reply back it will send it on to your computer 192.168.1.3. Note that the destination computer doesn't know that the request has come from your workstation at 192.168.1.3, it thinks it has come from the external address of your router. NAT is the process of the router accepting packets from you, translating your network address into the routers own external address and translating it's external address back to your network address on the reply packets. The NAT software basically keeps track of all of the outbound packets from each of the computers on your internal network and redirect incoming packets to the correct originator. This can only work for messages which originate within your network. If you have a machine on your network which *listens* for requests originating from the outside, such as an FTP server, Web server, SMTP mail server or Remote Desktop, you have to configure your NAT to translate all such incoming requests to the specific machine - so-called "Port Forwarding". In this case, you can't just use an assigned DNS assigned address for the workstation, it must be configured so that it always uses the same address, and you can't use the same Port for more than one machine so in the case of Remote Desktop, you need to use a different port for each workstation. -- Stuart On 1 Jun 2008 at 21:48, jwcolby wrote: > As you probably know, NAT (Network Address Translation) > causes each computer within your network to be assigned an > IP Address, usually in the range of 192.168.x.x. The > problem with NAT addresses is that they "interfere" with > remote desktop, particularly coming in from the outside > through a router. By default, Remote Desktop uses port 3398 > as the remote access port. In order to come in through the > router, each machine has to be assigned a static IP address > by the router, and then port forwarding turned on, and > "ports" forwarded to specific IP addresses. It just becomes > messy. > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From stuart at lexacorp.com.pg Sun Jun 1 21:52:02 2008 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Mon, 02 Jun 2008 12:52:02 +1000 Subject: [AccessD] Hamachi as service In-Reply-To: References: <4843E8FD.27166.470B612D@stuart.lexacorp.com.pg>, Message-ID: <4843ECF2.4335.471AD4DD@stuart.lexacorp.com.pg> Huh? On 1 Jun 2008 at 21:41, Drew Wutka wrote: > Ok, we'll check it out tomorrow, they were all emailing fine when we set > them up. Who knows. > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > McLachlan > Sent: Sunday, June 01, 2008 9:35 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Hamachi as service > > You're mixing up and combining two things there, DHCP and NAT. > NAT doesn't assign addresses. DHCP (Dynamic Host Configuration Protocol) > does that. > > Each computer in your private network has to have a separate IP Address. > That address > can either be fixed (you enter it into the network configuration window) > or assigned from a > pool by a DHCP server each time the computer is switched on and connects > to your local > network. > > Your private network uses one of three "non-routable" address ranges. > (10.*.*.* , 172.16.*.*. - 172.31.*.* or 192.168.*.*) > > Your Internet Router has one address in this range on the "inside" and > one or more > separate public, "routable" addresses on the outside. > > Assume your Router's internal address is 192.168.1.254. > > Your workstation will be configured with an address such as > 192.168.1.3, a mask of > 255.255.255.0 and a Gateway of 192.168.1.254. > > Because of the mask, if you try to communicate with any computer in the > 192.168.1.* range, > you will talk directly to that machine. > > If you try to access any address outside of that range, the packets will > be sent to the > Gateway/Router on 192.168.1.254. The router will then send your packets > to the destination > computer. That destination computer will then send it's reply back to > the external address of > the router. Once the router receives the reply back it will send it on > to your computer > 192.168.1.3. Note that the destination computer doesn't know that the > request has come > from your workstation at 192.168.1.3, it thinks it has come from the > external address of your > router. > > NAT is the process of the router accepting packets from you, translating > your network > address into the routers own external address and translating it's > external address back to > your network address on the reply packets. The NAT software basically > keeps track of all of > the outbound packets from each of the computers on your internal > network and redirect > incoming packets to the correct originator. > > This can only work for messages which originate within your network. > If you have a > machine on your network which *listens* for requests originating from > the outside, such as > an FTP server, Web server, SMTP mail server or Remote Desktop, you have > to configure > your NAT to translate all such incoming requests to the specific > machine - so-called "Port > Forwarding". > > In this case, you can't just use an assigned DNS assigned address for > the workstation, it > must be configured so that it always uses the same address, and you > can't use the same > Port for more than one machine so in the case of Remote Desktop, you > need to use a > different port for each workstation. > > -- > Stuart > > > > On 1 Jun 2008 at 21:48, jwcolby wrote: > > > As you probably know, NAT (Network Address Translation) > > causes each computer within your network to be assigned an > > IP Address, usually in the range of 192.168.x.x. The > > problem with NAT addresses is that they "interfere" with > > remote desktop, particularly coming in from the outside > > through a router. By default, Remote Desktop uses port 3398 > > as the remote access port. In order to come in through the > > router, each machine has to be assigned a static IP address > > by the router, and then port forwarding turned on, and > > "ports" forwarded to specific IP addresses. It just becomes > > messy. > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Sun Jun 1 22:12:38 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Sun, 1 Jun 2008 22:12:38 -0500 Subject: [AccessD] Hamachi as service In-Reply-To: <4843ECF2.4335.471AD4DD@stuart.lexacorp.com.pg> Message-ID: Whoops, replied to the wrong email.... Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Sunday, June 01, 2008 9:52 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Hamachi as service Huh? On 1 Jun 2008 at 21:41, Drew Wutka wrote: > Ok, we'll check it out tomorrow, they were all emailing fine when we set > them up. Who knows. > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > McLachlan > Sent: Sunday, June 01, 2008 9:35 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Hamachi as service > > You're mixing up and combining two things there, DHCP and NAT. > NAT doesn't assign addresses. DHCP (Dynamic Host Configuration Protocol) > does that. > > Each computer in your private network has to have a separate IP Address. > That address > can either be fixed (you enter it into the network configuration window) > or assigned from a > pool by a DHCP server each time the computer is switched on and connects > to your local > network. > > Your private network uses one of three "non-routable" address ranges. > (10.*.*.* , 172.16.*.*. - 172.31.*.* or 192.168.*.*) > > Your Internet Router has one address in this range on the "inside" and > one or more > separate public, "routable" addresses on the outside. > > Assume your Router's internal address is 192.168.1.254. > > Your workstation will be configured with an address such as > 192.168.1.3, a mask of > 255.255.255.0 and a Gateway of 192.168.1.254. > > Because of the mask, if you try to communicate with any computer in the > 192.168.1.* range, > you will talk directly to that machine. > > If you try to access any address outside of that range, the packets will > be sent to the > Gateway/Router on 192.168.1.254. The router will then send your packets > to the destination > computer. That destination computer will then send it's reply back to > the external address of > the router. Once the router receives the reply back it will send it on > to your computer > 192.168.1.3. Note that the destination computer doesn't know that the > request has come > from your workstation at 192.168.1.3, it thinks it has come from the > external address of your > router. > > NAT is the process of the router accepting packets from you, translating > your network > address into the routers own external address and translating it's > external address back to > your network address on the reply packets. The NAT software basically > keeps track of all of > the outbound packets from each of the computers on your internal > network and redirect > incoming packets to the correct originator. > > This can only work for messages which originate within your network. > If you have a > machine on your network which *listens* for requests originating from > the outside, such as > an FTP server, Web server, SMTP mail server or Remote Desktop, you have > to configure > your NAT to translate all such incoming requests to the specific > machine - so-called "Port > Forwarding". > > In this case, you can't just use an assigned DNS assigned address for > the workstation, it > must be configured so that it always uses the same address, and you > can't use the same > Port for more than one machine so in the case of Remote Desktop, you > need to use a > different port for each workstation. > > -- > Stuart > > > > On 1 Jun 2008 at 21:48, jwcolby wrote: > > > As you probably know, NAT (Network Address Translation) > > causes each computer within your network to be assigned an > > IP Address, usually in the range of 192.168.x.x. The > > problem with NAT addresses is that they "interfere" with > > remote desktop, particularly coming in from the outside > > through a router. By default, Remote Desktop uses port 3398 > > as the remote access port. In order to come in through the > > router, each machine has to be assigned a static IP address > > by the router, and then port forwarding turned on, and > > "ports" forwarded to specific IP addresses. It just becomes > > messy. > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From jwcolby at colbyconsulting.com Sun Jun 1 22:51:40 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sun, 01 Jun 2008 23:51:40 -0400 Subject: [AccessD] Hamachi as service In-Reply-To: <4843E8FD.27166.470B612D@stuart.lexacorp.com.pg> References: <49DFE57FB126044B8A8B934E7AEA09ED09FD747D@WPEXCH05.colesmyer.ad.cmltd.net.au>, <4843517E.1060109@colbyconsulting.com> <4843E8FD.27166.470B612D@stuart.lexacorp.com.pg> Message-ID: <48436E4C.4010209@colbyconsulting.com> Stuart, LOL, Thanks for that. I wasn't actually mixing up and combining two things, I was trying to discuss the differences between LogMeIn and Hamachi without spending three pages discussing NAT. But now that you have discussed all that stuff, if they need to know it they can read your email. > In this case, you can't just use an assigned DNS assigned address for the workstation, it must be configured so that it always uses the same address, and you can't use the same Port for more than one machine so in the case of Remote desktop, you need to use a different port for each workstation. And that is the piece that Hamachi changes. Since each machine now has a "real" IP address (assigned by Hamachi) as opposed to an internal NAT address, each machine can be directly addressed with Remote Desktop or VNC without having to do the port forwarding thing, and having each machine modified to watch for a port different from the default. Thanks again. John W. Colby www.ColbyConsulting.com Stuart McLachlan wrote: > You're mixing up and combining two things there, DHCP and NAT. > NAT doesn't assign addresses. DHCP (Dynamic Host Configuration Protocol) does that. > > Each computer in your private network has to have a separate IP Address. That address > can either be fixed (you enter it into the network configuration window) or assigned from a > pool by a DHCP server each time the computer is switched on and connects to your local > network. > > Your private network uses one of three "non-routable" address ranges. > (10.*.*.* , 172.16.*.*. - 172.31.*.* or 192.168.*.*) > > Your Internet Router has one address in this range on the "inside" and one or more > separate public, "routable" addresses on the outside. > > Assume your Router's internal address is 192.168.1.254. > > Your workstation will be configured with an address such as 192.168.1.3, a mask of > 255.255.255.0 and a Gateway of 192.168.1.254. > > Because of the mask, if you try to communicate with any computer in the 192.168.1.* range, > you will talk directly to that machine. > > If you try to access any address outside of that range, the packets will be sent to the > Gateway/Router on 192.168.1.254. The router will then send your packets to the destination > computer. That destination computer will then send it's reply back to the external address of > the router. Once the router receives the reply back it will send it on to your computer > 192.168.1.3. Note that the destination computer doesn't know that the request has come > from your workstation at 192.168.1.3, it thinks it has come from the external address of your > router. > > NAT is the process of the router accepting packets from you, translating your network > address into the routers own external address and translating it's external address back to > your network address on the reply packets. The NAT software basically keeps track of all of > the outbound packets from each of the computers on your internal network and redirect > incoming packets to the correct originator. > > This can only work for messages which originate within your network. If you have a > machine on your network which *listens* for requests originating from the outside, such as > an FTP server, Web server, SMTP mail server or Remote Desktop, you have to configure > your NAT to translate all such incoming requests to the specific machine - so-called "Port > Forwarding". > > In this case, you can't just use an assigned DNS assigned address for the workstation, it > must be configured so that it always uses the same address, and you can't use the same > Port for more than one machine so in the case of Remote Desktop, you need to use a > different port for each workstation. > From Gustav at cactus.dk Mon Jun 2 03:19:18 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 02 Jun 2008 10:19:18 +0200 Subject: [AccessD] OT: Rainy Monday? Message-ID: Hi all Not here in Denmark. Sunshine continues for the next week according to the weather people. This May has been the most sunny ever measured with 345 hours of sunshine beating even Florida (that said, we have long days here, with sunrise/sunset about 04:45 and 21:45). Quite strange, it has rained on two days only from morning to late afternoon, each day with bright sunshine the day before and the day after. /gustav From adtp at airtelmail.in Mon Jun 2 04:05:09 2008 From: adtp at airtelmail.in (A.D.Tejpal) Date: Mon, 2 Jun 2008 14:35:09 +0530 Subject: [AccessD] Open MDB from another MDB References: <39cb22f30805300342t5a23926je8f995b256910af3@mail.gmail.com> <00c901c8c250$b9cad870$6500a8c0@SusanOne> Message-ID: <034801c8c48f$ddcf58e0$d357a27a@personald6374f> Mark, You might be able to get some working ideas from three of my sample db's mentioned below: (a) ExternalDbAutomation (b) ExternalDbAsLibraryRef (c) Reports_AddIn These are available at Rogers Access Library (other developers library). Link - http://www.rogersaccesslibrary.com/OtherLibraries.asp#Tejpal,A.D. Best wishes, A.D.Tejpal ------------ ----- Original Message ----- From: Mark A Matte To: Access Developers discussion and problem solving Sent: Friday, May 30, 2008 20:34 Subject: [AccessD] Open MDB from another MDB Hello All, In Access2003 I want to have an mdb open...click a button andf have it open a different mdb in the same window? Any suggestions? Thanks, Mark A. Matte From rbgajewski at roadrunner.com Mon Jun 2 07:03:01 2008 From: rbgajewski at roadrunner.com (Bob Gajewski) Date: Mon, 2 Jun 2008 08:03:01 -0400 Subject: [AccessD] How do I retrieve a form's LastModified date? In-Reply-To: <81AA4423456E48DEBC3A79267EF7D4B6@DCYN3T81> References: <48344BAF.5070201@colbyconsulting.com><0K180010P9OQULQA@vms046.mailsrvcs.net><05DE242CFBBA43C4B6489DF1EC8EB0CF@DCYN3T81><000701c8bbbe$4c5c8010$6401a8c0@DELLAPTOP> <81AA4423456E48DEBC3A79267EF7D4B6@DCYN3T81> Message-ID: <7F30435A522D4343B9D08C3146C0EE9E@DCYN3T81> Hello Friends I need to check the last modified date/time on a form. I suspect that this is only possible through an API call, which is something I know NOTHING about. Could someone please help me or point me to a resource that I can learn from? Regards, Bob Gajewski From dwaters at usinternet.com Mon Jun 2 07:33:14 2008 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 2 Jun 2008 07:33:14 -0500 Subject: [AccessD] How do I retrieve a form's LastModified date? In-Reply-To: <7F30435A522D4343B9D08C3146C0EE9E@DCYN3T81> References: <48344BAF.5070201@colbyconsulting.com><0K180010P9OQULQA@vms046.mailsrvcs.net><05DE242CFBBA43C4B6489DF1EC8EB0CF@DCYN3T81><000701c8bbbe$4c5c8010$6401a8c0@DELLAPTOP><81AA4423456E48DEBC3A79267EF7D4B6@DCYN3T81> <7F30435A522D4343B9D08C3146C0EE9E@DCYN3T81> Message-ID: <2453E9D76621444C97072896B2D738FC@danwaters> Bob - I tried to find this out as well. I finally found a MS KB article which said that since A2000, you cannot get the date last modified programmatically due to the database structure change at that time. The only way to find out the date is to just look at the database window. There is VBA code to get the last modified date, but the date it returns is the created date, which isn't helpful. HTH, Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Gajewski Sent: Monday, June 02, 2008 7:03 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] How do I retrieve a form's LastModified date? Hello Friends I need to check the last modified date/time on a form. I suspect that this is only possible through an API call, which is something I know NOTHING about. Could someone please help me or point me to a resource that I can learn from? Regards, Bob Gajewski -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Mon Jun 2 08:26:32 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 2 Jun 2008 14:26:32 +0100 Subject: [AccessD] How do I retrieve a form's LastModified date? In-Reply-To: <2453E9D76621444C97072896B2D738FC@danwaters> References: <48344BAF.5070201@colbyconsulting.com><0K180010P9OQULQA@vms046.mailsrvcs.net><05DE242CFBBA43C4B6489DF1EC8EB0CF@DCYN3T81><000701c8bbbe$4c5c8010$6401a8c0@DELLAPTOP><81AA4423456E48DEBC3A79267EF7D4B6@DCYN3T81><7F30435A522D4343B9D08C3146C0EE9E@DCYN3T81> <2453E9D76621444C97072896B2D738FC@danwaters> Message-ID: <00f001c8c4b4$4758abd0$8119fea9@LTVM> You could mess around with the AllForms properties. Something like this:- Function frmProperties() Dim obj As AccessObject, dbs As Object Set dbs = Application.CurrentProject For Each obj In dbs.AllForms If obj.Name = "frmEvent" Then ' or If obj.IsLoaded = True Then Debug.Print obj.Name, obj.DateCreated, obj.DateModified End If Next obj End Function This will extract the modified date and other items. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, June 02, 2008 1:33 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How do I retrieve a form's LastModified date? Bob - I tried to find this out as well. I finally found a MS KB article which said that since A2000, you cannot get the date last modified programmatically due to the database structure change at that time. The only way to find out the date is to just look at the database window. There is VBA code to get the last modified date, but the date it returns is the created date, which isn't helpful. HTH, Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Gajewski Sent: Monday, June 02, 2008 7:03 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] How do I retrieve a form's LastModified date? Hello Friends I need to check the last modified date/time on a form. I suspect that this is only possible through an API call, which is something I know NOTHING about. Could someone please help me or point me to a resource that I can learn from? Regards, Bob Gajewski -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at smsconsulting.spb.ru Mon Jun 2 07:46:30 2008 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Mon, 2 Jun 2008 16:46:30 +0400 Subject: [AccessD] OT: Rainy Monday? In-Reply-To: Message-ID: <012401c8c4ae$ae2d5820$6401a8c0@nant> Hi Gustav, It promisew to be sunny here all the June: according to "people's notes" if it's slightly rainy and windy on 1st and 2nd of June (as it happened here this year) then all the June will be sunny. As for sunrise sunset "schedule" here: 2nd of June Sunrise - 04:46 Sunset - 23:08 ... 12th of June Sunrise - 04:36 Sunset - 23:22 Ready to beat Florida! :) Is anybody from North Finland of Norway here ready to compete? :) -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, June 02, 2008 12:19 PM To: accessd at databaseadvisors.com Subject: [AccessD] OT: Rainy Monday? Hi all Not here in Denmark. Sunshine continues for the next week according to the weather people. This May has been the most sunny ever measured with 345 hours of sunshine beating even Florida (that said, we have long days here, with sunrise/sunset about 04:45 and 21:45). Quite strange, it has rained on two days only from morning to late afternoon, each day with bright sunshine the day before and the day after. /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Mon Jun 2 08:50:40 2008 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 2 Jun 2008 08:50:40 -0500 Subject: [AccessD] How do I retrieve a form's LastModified date? In-Reply-To: <00f001c8c4b4$4758abd0$8119fea9@LTVM> References: <48344BAF.5070201@colbyconsulting.com><0K180010P9OQULQA@vms046.mailsrvcs.net><05DE242CFBBA43C4B6489DF1EC8EB0CF@DCYN3T81><000701c8bbbe$4c5c8010$6401a8c0@DELLAPTOP><81AA4423456E48DEBC3A79267EF7D4B6@DCYN3T81><7F30435A522D4343B9D08C3146C0EE9E@DCYN3T81><2453E9D76621444C97072896B2D738FC@danwaters> <00f001c8c4b4$4758abd0$8119fea9@LTVM> Message-ID: <37783233032446C4BFD3325BE63D99E3@danwaters> This is what I did try. The .DateCreated and .DateModified both give the Created Date. There is also another VBA method using Containers, but the result is the same. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Monday, June 02, 2008 8:27 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How do I retrieve a form's LastModified date? You could mess around with the AllForms properties. Something like this:- Function frmProperties() Dim obj As AccessObject, dbs As Object Set dbs = Application.CurrentProject For Each obj In dbs.AllForms If obj.Name = "frmEvent" Then ' or If obj.IsLoaded = True Then Debug.Print obj.Name, obj.DateCreated, obj.DateModified End If Next obj End Function This will extract the modified date and other items. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, June 02, 2008 1:33 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How do I retrieve a form's LastModified date? Bob - I tried to find this out as well. I finally found a MS KB article which said that since A2000, you cannot get the date last modified programmatically due to the database structure change at that time. The only way to find out the date is to just look at the database window. There is VBA code to get the last modified date, but the date it returns is the created date, which isn't helpful. HTH, Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Gajewski Sent: Monday, June 02, 2008 7:03 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] How do I retrieve a form's LastModified date? Hello Friends I need to check the last modified date/time on a form. I suspect that this is only possible through an API call, which is something I know NOTHING about. Could someone please help me or point me to a resource that I can learn from? Regards, Bob Gajewski -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Mon Jun 2 08:52:48 2008 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 2 Jun 2008 08:52:48 -0500 Subject: [AccessD] Table Screen Size On Opening Message-ID: One thing I'd like to fix. Whenever I open a table, in Design or Datasheet view, it opens to take up the entire screen. I'd like to set the size for each table like you can with a query. Can this be done? Dan From Gustav at cactus.dk Mon Jun 2 09:17:19 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 02 Jun 2008 16:17:19 +0200 Subject: [AccessD] OT: Rainy Monday? Message-ID: Hi Shamil I hope you are right. On Sunday is the yearly air show of the Royal Danish Air Force scheduled. For the last four years it has been bright sunshine this day. Hopefully this year will not break the statistics - an air show with low hanging clouds is not the real thing. /gustav >>> shamil at smsconsulting.spb.ru 02-06-2008 14:46 >>> Hi Gustav, It promisew to be sunny here all the June: according to "people's notes" if it's slightly rainy and windy on 1st and 2nd of June (as it happened here this year) then all the June will be sunny. As for sunrise sunset "schedule" here: 2nd of June Sunrise - 04:46 Sunset - 23:08 ... 12th of June Sunrise - 04:36 Sunset - 23:22 Ready to beat Florida! :) Is anybody from North Finland of Norway here ready to compete? :) -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, June 02, 2008 12:19 PM To: accessd at databaseadvisors.com Subject: [AccessD] OT: Rainy Monday? Hi all Not here in Denmark. Sunshine continues for the next week according to the weather people. This May has been the most sunny ever measured with 345 hours of sunshine beating even Florida (that said, we have long days here, with sunrise/sunset about 04:45 and 21:45). Quite strange, it has rained on two days only from morning to late afternoon, each day with bright sunshine the day before and the day after. /gustav From max.wanadoo at gmail.com Mon Jun 2 09:55:53 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 2 Jun 2008 15:55:53 +0100 Subject: [AccessD] How do I retrieve a form's LastModified date? In-Reply-To: <37783233032446C4BFD3325BE63D99E3@danwaters> References: <48344BAF.5070201@colbyconsulting.com><0K180010P9OQULQA@vms046.mailsrvcs.net><05DE242CFBBA43C4B6489DF1EC8EB0CF@DCYN3T81><000701c8bbbe$4c5c8010$6401a8c0@DELLAPTOP><81AA4423456E48DEBC3A79267EF7D4B6@DCYN3T81><7F30435A522D4343B9D08C3146C0EE9E@DCYN3T81><2453E9D76621444C97072896B2D738FC@danwaters><00f001c8c4b4$4758abd0$8119fea9@LTVM> <37783233032446C4BFD3325BE63D99E3@danwaters> Message-ID: <011201c8c4c0$c29308c0$8119fea9@LTVM> Dan, They are definitely different on my computer. Here is the output which corresponds to what is shown in the database window. frmEvent 10/05/2008 08:10:29 13/05/2008 17:32:13 Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, June 02, 2008 2:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How do I retrieve a form's LastModified date? This is what I did try. The .DateCreated and .DateModified both give the Created Date. There is also another VBA method using Containers, but the result is the same. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Monday, June 02, 2008 8:27 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How do I retrieve a form's LastModified date? You could mess around with the AllForms properties. Something like this:- Function frmProperties() Dim obj As AccessObject, dbs As Object Set dbs = Application.CurrentProject For Each obj In dbs.AllForms If obj.Name = "frmEvent" Then ' or If obj.IsLoaded = True Then Debug.Print obj.Name, obj.DateCreated, obj.DateModified End If Next obj End Function This will extract the modified date and other items. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, June 02, 2008 1:33 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How do I retrieve a form's LastModified date? Bob - I tried to find this out as well. I finally found a MS KB article which said that since A2000, you cannot get the date last modified programmatically due to the database structure change at that time. The only way to find out the date is to just look at the database window. There is VBA code to get the last modified date, but the date it returns is the created date, which isn't helpful. HTH, Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Gajewski Sent: Monday, June 02, 2008 7:03 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] How do I retrieve a form's LastModified date? Hello Friends I need to check the last modified date/time on a form. I suspect that this is only possible through an API call, which is something I know NOTHING about. Could someone please help me or point me to a resource that I can learn from? Regards, Bob Gajewski -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Mon Jun 2 10:12:01 2008 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 2 Jun 2008 10:12:01 -0500 Subject: [AccessD] How do I retrieve a form's LastModified date? In-Reply-To: <011201c8c4c0$c29308c0$8119fea9@LTVM> References: <48344BAF.5070201@colbyconsulting.com><0K180010P9OQULQA@vms046.mailsrvcs.net><05DE242CFBBA43C4B6489DF1EC8EB0CF@DCYN3T81><000701c8bbbe$4c5c8010$6401a8c0@DELLAPTOP><81AA4423456E48DEBC3A79267EF7D4B6@DCYN3T81><7F30435A522D4343B9D08C3146C0EE9E@DCYN3T81><2453E9D76621444C97072896B2D738FC@danwaters><00f001c8c4b4$4758abd0$8119fea9@LTVM><37783233032446C4BFD3325BE63D99E3@danwaters> <011201c8c4c0$c29308c0$8119fea9@LTVM> Message-ID: Max, Are you using Access 95 or 97? It is supposed to work with those versions. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Monday, June 02, 2008 9:56 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How do I retrieve a form's LastModified date? Dan, They are definitely different on my computer. Here is the output which corresponds to what is shown in the database window. frmEvent 10/05/2008 08:10:29 13/05/2008 17:32:13 Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, June 02, 2008 2:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How do I retrieve a form's LastModified date? This is what I did try. The .DateCreated and .DateModified both give the Created Date. There is also another VBA method using Containers, but the result is the same. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Monday, June 02, 2008 8:27 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How do I retrieve a form's LastModified date? You could mess around with the AllForms properties. Something like this:- Function frmProperties() Dim obj As AccessObject, dbs As Object Set dbs = Application.CurrentProject For Each obj In dbs.AllForms If obj.Name = "frmEvent" Then ' or If obj.IsLoaded = True Then Debug.Print obj.Name, obj.DateCreated, obj.DateModified End If Next obj End Function This will extract the modified date and other items. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, June 02, 2008 1:33 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How do I retrieve a form's LastModified date? Bob - I tried to find this out as well. I finally found a MS KB article which said that since A2000, you cannot get the date last modified programmatically due to the database structure change at that time. The only way to find out the date is to just look at the database window. There is VBA code to get the last modified date, but the date it returns is the created date, which isn't helpful. HTH, Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Gajewski Sent: Monday, June 02, 2008 7:03 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] How do I retrieve a form's LastModified date? Hello Friends I need to check the last modified date/time on a form. I suspect that this is only possible through an API call, which is something I know NOTHING about. Could someone please help me or point me to a resource that I can learn from? Regards, Bob Gajewski -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Jun 2 10:23:48 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 2 Jun 2008 08:23:48 -0700 Subject: [AccessD] Momentary Adieu In-Reply-To: <29f585dd0805301148n77b50202u5f91d5bbfcd27db5@mail.gmail.com> References: <29f585dd0805301148n77b50202u5f91d5bbfcd27db5@mail.gmail.com> Message-ID: Hah! What make you think we plan on staying in hotels when we have a friend who lives there and can put us up? LOL Congratulations, enjoy the climate and the work and get that internet up asap! Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, May 30, 2008 11:48 AM To: Access Developers discussion and problem solving; Discussion concerning MS SQL Server; Discussion of Hardware and Software issues Subject: [AccessD] Momentary Adieu Sorry for the Cross-post, but I wanted to ensure that I touch all my friends on these lists. On Sunday morning I am moving to Bermuda to take a job as a SQL developer. It's a dream job and the money is excellent and the people are all really smart and the dress-code is very casual (tee shirt and shorts and sandals), and there is neither snow nor taxes. Where's the down side? So, consider this official notice of the creation of the Bermuda chapter of our group. My email will remain the same, so I won't lose touch, but it may take me a few days to get the Internet etc. installed. But fair warning, I'll be back in your faces within a few days. And we could always plan an dbAdvisor's conference in Bermuda, although the hotel prices are rather steep. Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Mon Jun 2 10:34:40 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 02 Jun 2008 17:34:40 +0200 Subject: [AccessD] How do I retrieve a form's LastModified date? Message-ID: Hi Dan and Max This works for me as well - with Access 2003. /gustav >>> max.wanadoo at gmail.com 02-06-2008 16:55 >>> Dan, They are definitely different on my computer. Here is the output which corresponds to what is shown in the database window. frmEvent 10/05/2008 08:10:29 13/05/2008 17:32:13 Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, June 02, 2008 2:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How do I retrieve a form's LastModified date? This is what I did try. The .DateCreated and .DateModified both give the Created Date. There is also another VBA method using Containers, but the result is the same. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Monday, June 02, 2008 8:27 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How do I retrieve a form's LastModified date? You could mess around with the AllForms properties. Something like this:- Function frmProperties() Dim obj As AccessObject, dbs As Object Set dbs = Application.CurrentProject For Each obj In dbs.AllForms If obj.Name = "frmEvent" Then ' or If obj.IsLoaded = True Then Debug.Print obj.Name, obj.DateCreated, obj.DateModified End If Next obj End Function This will extract the modified date and other items. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, June 02, 2008 1:33 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How do I retrieve a form's LastModified date? Bob - I tried to find this out as well. I finally found a MS KB article which said that since A2000, you cannot get the date last modified programmatically due to the database structure change at that time. The only way to find out the date is to just look at the database window. There is VBA code to get the last modified date, but the date it returns is the created date, which isn't helpful. HTH, Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Gajewski Sent: Monday, June 02, 2008 7:03 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] How do I retrieve a form's LastModified date? Hello Friends I need to check the last modified date/time on a form. I suspect that this is only possible through an API call, which is something I know NOTHING about. Could someone please help me or point me to a resource that I can learn from? Regards, Bob Gajewski From drawbridgej at sympatico.ca Mon Jun 2 10:41:12 2008 From: drawbridgej at sympatico.ca (Jack and Pat) Date: Mon, 2 Jun 2008 11:41:12 -0400 Subject: [AccessD] How do I retrieve a form's LastModified date? In-Reply-To: References: <48344BAF.5070201@colbyconsulting.com><0K180010P9OQULQA@vms046.mailsrvcs.net><05DE242CFBBA43C4B6489DF1EC8EB0CF@DCYN3T81><000701c8bbbe$4c5c8010$6401a8c0@DELLAPTOP><81AA4423456E48DEBC3A79267EF7D4B6@DCYN3T81><7F30435A522D4343B9D08C3146C0EE9E@DCYN3T81><2453E9D76621444C97072896B2D738FC@danwaters><00f001c8c4b4$4758abd0$8119fea9@LTVM><37783233032446C4BFD3325BE63D99E3@danwaters><011201c8c4c0$c29308c0$8119fea9@LTVM> Message-ID: <000601c8c4c7$1684d840$6501a8c0@home6399619597> It's working for me with A2003. Form2Pharm 3/5/2008 11:34:24 AM 4/3/2008 10:00:23 PM Form2Pharm 3/5/2008 11:34:24 AM 6/2/2008 11:40:20 AM Jack -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, June 02, 2008 11:12 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How do I retrieve a form's LastModified date? Max, Are you using Access 95 or 97? It is supposed to work with those versions. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Monday, June 02, 2008 9:56 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How do I retrieve a form's LastModified date? Dan, They are definitely different on my computer. Here is the output which corresponds to what is shown in the database window. frmEvent 10/05/2008 08:10:29 13/05/2008 17:32:13 Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, June 02, 2008 2:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How do I retrieve a form's LastModified date? This is what I did try. The .DateCreated and .DateModified both give the Created Date. There is also another VBA method using Containers, but the result is the same. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Monday, June 02, 2008 8:27 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How do I retrieve a form's LastModified date? You could mess around with the AllForms properties. Something like this:- Function frmProperties() Dim obj As AccessObject, dbs As Object Set dbs = Application.CurrentProject For Each obj In dbs.AllForms If obj.Name = "frmEvent" Then ' or If obj.IsLoaded = True Then Debug.Print obj.Name, obj.DateCreated, obj.DateModified End If Next obj End Function This will extract the modified date and other items. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, June 02, 2008 1:33 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How do I retrieve a form's LastModified date? Bob - I tried to find this out as well. I finally found a MS KB article which said that since A2000, you cannot get the date last modified programmatically due to the database structure change at that time. The only way to find out the date is to just look at the database window. There is VBA code to get the last modified date, but the date it returns is the created date, which isn't helpful. HTH, Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Gajewski Sent: Monday, June 02, 2008 7:03 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] How do I retrieve a form's LastModified date? Hello Friends I need to check the last modified date/time on a form. I suspect that this is only possible through an API call, which is something I know NOTHING about. Could someone please help me or point me to a resource that I can learn from? Regards, Bob Gajewski -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Mon Jun 2 10:49:58 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 2 Jun 2008 16:49:58 +0100 Subject: [AccessD] How do I retrieve a form's LastModified date? In-Reply-To: References: <48344BAF.5070201@colbyconsulting.com><0K180010P9OQULQA@vms046.mailsrvcs.net><05DE242CFBBA43C4B6489DF1EC8EB0CF@DCYN3T81><000701c8bbbe$4c5c8010$6401a8c0@DELLAPTOP><81AA4423456E48DEBC3A79267EF7D4B6@DCYN3T81><7F30435A522D4343B9D08C3146C0EE9E@DCYN3T81><2453E9D76621444C97072896B2D738FC@danwaters><00f001c8c4b4$4758abd0$8119fea9@LTVM><37783233032446C4BFD3325BE63D99E3@danwaters><011201c8c4c0$c29308c0$8119fea9@LTVM> Message-ID: <000901c8c4c8$50b45d00$8119fea9@LTVM> Hi Dan, That may be the difference. I am using A3k. I am thinking of upgrading because my version is now 5 years old - why are you still working with geriatrics. (smile). Don't you know that as you get older the mind gets more unreliable. That is why....ummm....sorry, forgot what I was saying... Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, June 02, 2008 4:12 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How do I retrieve a form's LastModified date? Max, Are you using Access 95 or 97? It is supposed to work with those versions. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Monday, June 02, 2008 9:56 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How do I retrieve a form's LastModified date? Dan, They are definitely different on my computer. Here is the output which corresponds to what is shown in the database window. frmEvent 10/05/2008 08:10:29 13/05/2008 17:32:13 Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, June 02, 2008 2:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How do I retrieve a form's LastModified date? This is what I did try. The .DateCreated and .DateModified both give the Created Date. There is also another VBA method using Containers, but the result is the same. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Monday, June 02, 2008 8:27 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How do I retrieve a form's LastModified date? You could mess around with the AllForms properties. Something like this:- Function frmProperties() Dim obj As AccessObject, dbs As Object Set dbs = Application.CurrentProject For Each obj In dbs.AllForms If obj.Name = "frmEvent" Then ' or If obj.IsLoaded = True Then Debug.Print obj.Name, obj.DateCreated, obj.DateModified End If Next obj End Function This will extract the modified date and other items. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, June 02, 2008 1:33 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How do I retrieve a form's LastModified date? Bob - I tried to find this out as well. I finally found a MS KB article which said that since A2000, you cannot get the date last modified programmatically due to the database structure change at that time. The only way to find out the date is to just look at the database window. There is VBA code to get the last modified date, but the date it returns is the created date, which isn't helpful. HTH, Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Gajewski Sent: Monday, June 02, 2008 7:03 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] How do I retrieve a form's LastModified date? Hello Friends I need to check the last modified date/time on a form. I suspect that this is only possible through an API call, which is something I know NOTHING about. Could someone please help me or point me to a resource that I can learn from? Regards, Bob Gajewski -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Jun 2 10:56:28 2008 From: dw-murphy at cox.net (Doug Murphy) Date: Mon, 2 Jun 2008 08:56:28 -0700 Subject: [AccessD] How do I retrieve a form's LastModified date? In-Reply-To: <011201c8c4c0$c29308c0$8119fea9@LTVM> References: <48344BAF.5070201@colbyconsulting.com><0K180010P9OQULQA@vms046.mailsrvcs.net><05DE242CFBBA43C4B6489DF1EC8EB0CF@DCYN3T81><000701c8bbbe$4c5c8010$6401a8c0@DELLAPTOP><81AA4423456E48DEBC3A79267EF7D4B6@DCYN3T81><7F30435A522D4343B9D08C3146C0EE9E@DCYN3T81><2453E9D76621444C97072896B2D738FC@danwaters><00f001c8c4b4$4758abd0$8119fea9@LTVM><37783233032446C4BFD3325BE63D99E3@danwaters> <011201c8c4c0$c29308c0$8119fea9@LTVM> Message-ID: <001d01c8c4c9$37c66a80$0200a8c0@murphy3234aaf1> Works in Access 2007 which is great because the details of Date Created and DateModified in the Forms list all show the same date. Thanks much, this is very usefull. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Monday, June 02, 2008 7:56 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How do I retrieve a form's LastModified date? Dan, They are definitely different on my computer. Here is the output which corresponds to what is shown in the database window. frmEvent 10/05/2008 08:10:29 13/05/2008 17:32:13 Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, June 02, 2008 2:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How do I retrieve a form's LastModified date? This is what I did try. The .DateCreated and .DateModified both give the Created Date. There is also another VBA method using Containers, but the result is the same. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Monday, June 02, 2008 8:27 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How do I retrieve a form's LastModified date? You could mess around with the AllForms properties. Something like this:- Function frmProperties() Dim obj As AccessObject, dbs As Object Set dbs = Application.CurrentProject For Each obj In dbs.AllForms If obj.Name = "frmEvent" Then ' or If obj.IsLoaded = True Then Debug.Print obj.Name, obj.DateCreated, obj.DateModified End If Next obj End Function This will extract the modified date and other items. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, June 02, 2008 1:33 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How do I retrieve a form's LastModified date? Bob - I tried to find this out as well. I finally found a MS KB article which said that since A2000, you cannot get the date last modified programmatically due to the database structure change at that time. The only way to find out the date is to just look at the database window. There is VBA code to get the last modified date, but the date it returns is the created date, which isn't helpful. HTH, Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Gajewski Sent: Monday, June 02, 2008 7:03 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] How do I retrieve a form's LastModified date? Hello Friends I need to check the last modified date/time on a form. I suspect that this is only possible through an API call, which is something I know NOTHING about. Could someone please help me or point me to a resource that I can learn from? Regards, Bob Gajewski -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Mon Jun 2 11:03:48 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 2 Jun 2008 17:03:48 +0100 Subject: [AccessD] Momentary Adieu In-Reply-To: References: <29f585dd0805301148n77b50202u5f91d5bbfcd27db5@mail.gmail.com> Message-ID: <000d01c8c4ca$3ef2b330$8119fea9@LTVM> Arthur, My dearest, longest friend. > we have a friend who lives there and can put us up? LOL Is there a limit on time/people/duration/rooms? I could give you lots of "friends" who would love a trip to Berumuda - you do know that traffic drive on the LEFT aka UK and the policemen are dressed as British Colonial Bobbies aka CRMP and that everybody has to be nice to everybody... I wouldn't bother with the Yanks, Aussies, Germans, Danes or the Russians. Stick with the Brits!! You may not get quality, but you will get quantity...Did I say that right? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, June 02, 2008 4:24 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Momentary Adieu Hah! What make you think we plan on staying in hotels when we have a friend who lives there and can put us up? LOL Congratulations, enjoy the climate and the work and get that internet up asap! Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Friday, May 30, 2008 11:48 AM To: Access Developers discussion and problem solving; Discussion concerning MS SQL Server; Discussion of Hardware and Software issues Subject: [AccessD] Momentary Adieu Sorry for the Cross-post, but I wanted to ensure that I touch all my friends on these lists. On Sunday morning I am moving to Bermuda to take a job as a SQL developer. It's a dream job and the money is excellent and the people are all really smart and the dress-code is very casual (tee shirt and shorts and sandals), and there is neither snow nor taxes. Where's the down side? So, consider this official notice of the creation of the Bermuda chapter of our group. My email will remain the same, so I won't lose touch, but it may take me a few days to get the Internet etc. installed. But fair warning, I'll be back in your faces within a few days. And we could always plan an dbAdvisor's conference in Bermuda, although the hotel prices are rather steep. Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From fuller.artful at gmail.com Mon Jun 2 11:59:07 2008 From: fuller.artful at gmail.com (Arthur Fuller) Date: Mon, 2 Jun 2008 13:59:07 -0300 Subject: [AccessD] Momentary Adieu In-Reply-To: <000d01c8c4ca$3ef2b330$8119fea9@LTVM> References: <29f585dd0805301148n77b50202u5f91d5bbfcd27db5@mail.gmail.com> <000d01c8c4ca$3ef2b330$8119fea9@LTVM> Message-ID: <29f585dd0806020959sa5c32f9k89cd31fdaf8b51a2@mail.gmail.com> LOL. Having driven in England, Japan and Hong Kong previously, I am used to driving on the left, although admittedly it does take a few days' adjustment. I haven't made a choice about how I'll transport myself yet. The bus route to work is direct and 15 minutes, so that will suffice for a while. I really am attracted to Smart Car, but who knows, I may settle for a scooter. The company arranged for me to stay at least initially in the main floor of a 2-storey house right next door to Bermuda College, in an area called Paget. It's your basic one-bedroom with a king-size bed and two walk-in closets, no three, and an open-concept combined living room and kitchen. The floors are marble. The sofa folds out and there are three easy chairs and a dining table. There's a yard with nice plants and a picnic table and a couple of lawn chaises. The ocean is a 5-minute walk, as are two nice restaurants and a grocery. No internet or cable TV at home yet, but I'm working on it. Meanwhile there's a T3 connection at work, so I'll manage to muddle through. I think that I will probably keep this place for the first three months or so, until I become familiar with the island and the options available. So that implies that the maximum number of visitors at a time is one, unless it's a domestic couple. It takes a few days to get banking sorted out, but to help smooth my arrival and setup, the company advanced me my first month's salary. How nice. Arthur On Mon, Jun 2, 2008 at 1:03 PM, Max Wanadoo wrote: > Arthur, > My dearest, longest friend. > > > we have a friend who lives there and can put us up? LOL > > Is there a limit on time/people/duration/rooms? I could give you > lots > of "friends" who would love a trip to Berumuda - you do know that traffic > drive on the LEFT aka UK and the policemen are dressed as British Colonial > Bobbies aka CRMP and that everybody has to be nice to everybody... I > wouldn't bother with the Yanks, Aussies, Germans, Danes or the Russians. > Stick with the Brits!! You may not get quality, but you will get > quantity...Did I say that right? > > From wdhindman at dejpolsystems.com Mon Jun 2 12:02:46 2008 From: wdhindman at dejpolsystems.com (William Hindman) Date: Mon, 2 Jun 2008 13:02:46 -0400 Subject: [AccessD] Momentary Adieu References: <29f585dd0805301148n77b50202u5f91d5bbfcd27db5@mail.gmail.com> Message-ID: <640CE448AE764C91BB5D47C0FAF423BB@jislaptopdev> ...dibs on the couch! William "The truth is incontrovertible, malice may attack it, ignorance may deride it, but in the end; there it is." -------------------------------------------------- From: "Charlotte Foust" Sent: Monday, June 02, 2008 11:23 AM To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] Momentary Adieu > Hah! What make you think we plan on staying in hotels when we have a > friend who lives there and can put us up? LOL > > Congratulations, enjoy the climate and the work and get that internet up > asap! > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller > Sent: Friday, May 30, 2008 11:48 AM > To: Access Developers discussion and problem solving; Discussion > concerning MS SQL Server; Discussion of Hardware and Software issues > Subject: [AccessD] Momentary Adieu > > Sorry for the Cross-post, but I wanted to ensure that I touch all my > friends on these lists. > > On Sunday morning I am moving to Bermuda to take a job as a SQL > developer. > It's a dream job and the money is excellent and the people are all > really smart and the dress-code is very casual (tee shirt and shorts and > sandals), and there is neither snow nor taxes. Where's the down side? > > So, consider this official notice of the creation of the Bermuda chapter > of our group. My email will remain the same, so I won't lose touch, but > it may take me a few days to get the Internet etc. installed. But fair > warning, I'll be back in your faces within a few days. > > And we could always plan an dbAdvisor's conference in Bermuda, although > the hotel prices are rather steep. > > Arthur > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From fuller.artful at gmail.com Mon Jun 2 12:08:55 2008 From: fuller.artful at gmail.com (Arthur Fuller) Date: Mon, 2 Jun 2008 14:08:55 -0300 Subject: [AccessD] Momentary Adieu In-Reply-To: <640CE448AE764C91BB5D47C0FAF423BB@jislaptopdev> References: <29f585dd0805301148n77b50202u5f91d5bbfcd27db5@mail.gmail.com> <640CE448AE764C91BB5D47C0FAF423BB@jislaptopdev> Message-ID: <29f585dd0806021008jfc3973bude9ba2b34ba361d2@mail.gmail.com> You've got it, William. I guess I'm going to need one of those multi-month wall calendars so I can keep the schedule straight. LOL. Arthur On Mon, Jun 2, 2008 at 2:02 PM, William Hindman wrote: > ...dibs on the couch! > > William > From fuller.artful at gmail.com Mon Jun 2 12:17:03 2008 From: fuller.artful at gmail.com (Arthur Fuller) Date: Mon, 2 Jun 2008 14:17:03 -0300 Subject: [AccessD] Hamachi as service In-Reply-To: <48436E4C.4010209@colbyconsulting.com> References: <49DFE57FB126044B8A8B934E7AEA09ED09FD747D@WPEXCH05.colesmyer.ad.cmltd.net.au> <4843517E.1060109@colbyconsulting.com> <4843E8FD.27166.470B612D@stuart.lexacorp.com.pg> <48436E4C.4010209@colbyconsulting.com> Message-ID: <29f585dd0806021017y115de9f8wa131e536b874e72e@mail.gmail.com> Thanks for this info, JC and others. Now that I am in Bermuda, I will have occasional need to talk to the boxes I left back in Ontario. So I'll work through this and hope to guide the folks storing my two desktops through this setup and configuration. Thanks, Arthur From dwaters at usinternet.com Mon Jun 2 12:39:52 2008 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 2 Jun 2008 12:39:52 -0500 Subject: [AccessD] How do I retrieve a form's LastModified date? In-Reply-To: <000901c8c4c8$50b45d00$8119fea9@LTVM> References: <48344BAF.5070201@colbyconsulting.com><0K180010P9OQULQA@vms046.mailsrvcs.net><05DE242CFBBA43C4B6489DF1EC8EB0CF@DCYN3T81><000701c8bbbe$4c5c8010$6401a8c0@DELLAPTOP><81AA4423456E48DEBC3A79267EF7D4B6@DCYN3T81><7F30435A522D4343B9D08C3146C0EE9E@DCYN3T81><2453E9D76621444C97072896B2D738FC@danwaters><00f001c8c4b4$4758abd0$8119fea9@LTVM><37783233032446C4BFD3325BE63D99E3@danwaters><011201c8c4c0$c29308c0$8119fea9@LTVM> <000901c8c4c8$50b45d00$8119fea9@LTVM> Message-ID: Hi Max, Well - I still remember a few things. I am using A2003 and it didn't work for me about 6 weeks ago. After I found the MS KB article, I stopped trying. I'll try again! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Monday, June 02, 2008 10:50 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How do I retrieve a form's LastModified date? Hi Dan, That may be the difference. I am using A3k. I am thinking of upgrading because my version is now 5 years old - why are you still working with geriatrics. (smile). Don't you know that as you get older the mind gets more unreliable. That is why....ummm....sorry, forgot what I was saying... Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, June 02, 2008 4:12 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How do I retrieve a form's LastModified date? Max, Are you using Access 95 or 97? It is supposed to work with those versions. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Monday, June 02, 2008 9:56 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How do I retrieve a form's LastModified date? Dan, They are definitely different on my computer. Here is the output which corresponds to what is shown in the database window. frmEvent 10/05/2008 08:10:29 13/05/2008 17:32:13 Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, June 02, 2008 2:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How do I retrieve a form's LastModified date? This is what I did try. The .DateCreated and .DateModified both give the Created Date. There is also another VBA method using Containers, but the result is the same. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Monday, June 02, 2008 8:27 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How do I retrieve a form's LastModified date? You could mess around with the AllForms properties. Something like this:- Function frmProperties() Dim obj As AccessObject, dbs As Object Set dbs = Application.CurrentProject For Each obj In dbs.AllForms If obj.Name = "frmEvent" Then ' or If obj.IsLoaded = True Then Debug.Print obj.Name, obj.DateCreated, obj.DateModified End If Next obj End Function This will extract the modified date and other items. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, June 02, 2008 1:33 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How do I retrieve a form's LastModified date? Bob - I tried to find this out as well. I finally found a MS KB article which said that since A2000, you cannot get the date last modified programmatically due to the database structure change at that time. The only way to find out the date is to just look at the database window. There is VBA code to get the last modified date, but the date it returns is the created date, which isn't helpful. HTH, Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Gajewski Sent: Monday, June 02, 2008 7:03 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] How do I retrieve a form's LastModified date? Hello Friends I need to check the last modified date/time on a form. I suspect that this is only possible through an API call, which is something I know NOTHING about. Could someone please help me or point me to a resource that I can learn from? Regards, Bob Gajewski -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Mon Jun 2 12:49:21 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 2 Jun 2008 18:49:21 +0100 Subject: [AccessD] Momentary Adieu In-Reply-To: <29f585dd0806020959sa5c32f9k89cd31fdaf8b51a2@mail.gmail.com> References: <29f585dd0805301148n77b50202u5f91d5bbfcd27db5@mail.gmail.com><000d01c8c4ca$3ef2b330$8119fea9@LTVM> <29f585dd0806020959sa5c32f9k89cd31fdaf8b51a2@mail.gmail.com> Message-ID: <001801c8c4d8$fdffa9f0$8119fea9@LTVM> Very good. Well, I guess that is bad news for everybody else my dear friend. Just me and you then.... LOL On a serious note, an awful lot of folks over here are going wireless (slower but more flexible). Is that an option for you? Would save any temp-wiring jobs. Max Pps. Apropos nothing, if you need a cheap (free for single a/c) account program to track your new found wealth, give Acemoney a go. I have the paid vers and have been using it for years. Really good (Russian I think). -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Monday, June 02, 2008 5:59 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Momentary Adieu LOL. Having driven in England, Japan and Hong Kong previously, I am used to driving on the left, although admittedly it does take a few days' adjustment. I haven't made a choice about how I'll transport myself yet. The bus route to work is direct and 15 minutes, so that will suffice for a while. I really am attracted to Smart Car, but who knows, I may settle for a scooter. The company arranged for me to stay at least initially in the main floor of a 2-storey house right next door to Bermuda College, in an area called Paget. It's your basic one-bedroom with a king-size bed and two walk-in closets, no three, and an open-concept combined living room and kitchen. The floors are marble. The sofa folds out and there are three easy chairs and a dining table. There's a yard with nice plants and a picnic table and a couple of lawn chaises. The ocean is a 5-minute walk, as are two nice restaurants and a grocery. No internet or cable TV at home yet, but I'm working on it. Meanwhile there's a T3 connection at work, so I'll manage to muddle through. I think that I will probably keep this place for the first three months or so, until I become familiar with the island and the options available. So that implies that the maximum number of visitors at a time is one, unless it's a domestic couple. It takes a few days to get banking sorted out, but to help smooth my arrival and setup, the company advanced me my first month's salary. How nice. Arthur On Mon, Jun 2, 2008 at 1:03 PM, Max Wanadoo wrote: > Arthur, > My dearest, longest friend. > > > we have a friend who lives there and can put us up? LOL > > Is there a limit on time/people/duration/rooms? I could give > you lots of "friends" who would love a trip to Berumuda - you do know > that traffic drive on the LEFT aka UK and the policemen are dressed as > British Colonial Bobbies aka CRMP and that everybody has to be nice to > everybody... I wouldn't bother with the Yanks, Aussies, Germans, > Danes or the Russians. > Stick with the Brits!! You may not get quality, but you will get > quantity...Did I say that right? > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Mon Jun 2 13:23:00 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Mon, 2 Jun 2008 19:23:00 +0100 Subject: [AccessD] Office Watch In-Reply-To: References: <48344BAF.5070201@colbyconsulting.com><0K180010P9OQULQA@vms046.mailsrvcs.net><05DE242CFBBA43C4B6489DF1EC8EB0CF@DCYN3T81><000701c8bbbe$4c5c8010$6401a8c0@DELLAPTOP><81AA4423456E48DEBC3A79267EF7D4B6@DCYN3T81><7F30435A522D4343B9D08C3146C0EE9E@DCYN3T81><2453E9D76621444C97072896B2D738FC@danwaters><00f001c8c4b4$4758abd0$8119fea9@LTVM><37783233032446C4BFD3325BE63D99E3@danwaters><011201c8c4c0$c29308c0$8119fea9@LTVM><000901c8c4c8$50b45d00$8119fea9@LTVM> Message-ID: <001901c8c4dd$b197ef00$8119fea9@LTVM> For my Aussie Friends: http://news.office-watch.com/t/n.aspx?articleid=619&zoneid=12 $40 for you guys when you buy A2007 Max From jengross at gte.net Mon Jun 2 15:18:17 2008 From: jengross at gte.net (Jennifer Gross) Date: Mon, 02 Jun 2008 12:18:17 -0800 Subject: [AccessD] How do I retrieve a form's LastModified date? In-Reply-To: Message-ID: <0K1U00G5SO2GY8GO@vms173005.mailsrvcs.net> Doesn't a compact change all the dates to today? Or is that just me using my ancient A2K? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, June 02, 2008 9:40 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How do I retrieve a form's LastModified date? Hi Max, Well - I still remember a few things. I am using A2003 and it didn't work for me about 6 weeks ago. After I found the MS KB article, I stopped trying. I'll try again! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Monday, June 02, 2008 10:50 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How do I retrieve a form's LastModified date? Hi Dan, That may be the difference. I am using A3k. I am thinking of upgrading because my version is now 5 years old - why are you still working with geriatrics. (smile). Don't you know that as you get older the mind gets more unreliable. That is why....ummm....sorry, forgot what I was saying... Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, June 02, 2008 4:12 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How do I retrieve a form's LastModified date? Max, Are you using Access 95 or 97? It is supposed to work with those versions. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Monday, June 02, 2008 9:56 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How do I retrieve a form's LastModified date? Dan, They are definitely different on my computer. Here is the output which corresponds to what is shown in the database window. frmEvent 10/05/2008 08:10:29 13/05/2008 17:32:13 Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, June 02, 2008 2:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How do I retrieve a form's LastModified date? This is what I did try. The .DateCreated and .DateModified both give the Created Date. There is also another VBA method using Containers, but the result is the same. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Monday, June 02, 2008 8:27 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How do I retrieve a form's LastModified date? You could mess around with the AllForms properties. Something like this:- Function frmProperties() Dim obj As AccessObject, dbs As Object Set dbs = Application.CurrentProject For Each obj In dbs.AllForms If obj.Name = "frmEvent" Then ' or If obj.IsLoaded = True Then Debug.Print obj.Name, obj.DateCreated, obj.DateModified End If Next obj End Function This will extract the modified date and other items. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, June 02, 2008 1:33 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How do I retrieve a form's LastModified date? Bob - I tried to find this out as well. I finally found a MS KB article which said that since A2000, you cannot get the date last modified programmatically due to the database structure change at that time. The only way to find out the date is to just look at the database window. There is VBA code to get the last modified date, but the date it returns is the created date, which isn't helpful. HTH, Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Gajewski Sent: Monday, June 02, 2008 7:03 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] How do I retrieve a form's LastModified date? Hello Friends I need to check the last modified date/time on a form. I suspect that this is only possible through an API call, which is something I know NOTHING about. Could someone please help me or point me to a resource that I can learn from? Regards, Bob Gajewski -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jengross at gte.net Mon Jun 2 15:25:09 2008 From: jengross at gte.net (Jennifer Gross) Date: Mon, 02 Jun 2008 12:25:09 -0800 Subject: [AccessD] OT: Rainy Monday? In-Reply-To: Message-ID: <0K1U00AM2OOTMODD@vms173003.mailsrvcs.net> Southern California checking in here - it "rained" just enough a week and a half ago to dirty up the car. We won't see rain again probably until October. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, June 02, 2008 6:17 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT: Rainy Monday? Hi Shamil I hope you are right. On Sunday is the yearly air show of the Royal Danish Air Force scheduled. For the last four years it has been bright sunshine this day. Hopefully this year will not break the statistics - an air show with low hanging clouds is not the real thing. /gustav >>> shamil at smsconsulting.spb.ru 02-06-2008 14:46 >>> Hi Gustav, It promisew to be sunny here all the June: according to "people's notes" if it's slightly rainy and windy on 1st and 2nd of June (as it happened here this year) then all the June will be sunny. As for sunrise sunset "schedule" here: 2nd of June Sunrise - 04:46 Sunset - 23:08 ... 12th of June Sunrise - 04:36 Sunset - 23:22 Ready to beat Florida! :) Is anybody from North Finland of Norway here ready to compete? :) -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, June 02, 2008 12:19 PM To: accessd at databaseadvisors.com Subject: [AccessD] OT: Rainy Monday? Hi all Not here in Denmark. Sunshine continues for the next week according to the weather people. This May has been the most sunny ever measured with 345 hours of sunshine beating even Florida (that said, we have long days here, with sunrise/sunset about 04:45 and 21:45). Quite strange, it has rained on two days only from morning to late afternoon, each day with bright sunshine the day before and the day after. /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Mon Jun 2 15:21:26 2008 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 2 Jun 2008 15:21:26 -0500 Subject: [AccessD] How do I retrieve a form's LastModified date? In-Reply-To: <0K1U00G5SO2GY8GO@vms173005.mailsrvcs.net> References: <0K1U00G5SO2GY8GO@vms173005.mailsrvcs.net> Message-ID: <15003E5D45444EFD8CA730E6840F4DB2@danwaters> Compacting, compiling, or both will change all the last modified dates in Standard Modules to today. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Monday, June 02, 2008 3:18 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How do I retrieve a form's LastModified date? Doesn't a compact change all the dates to today? Or is that just me using my ancient A2K? Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, June 02, 2008 9:40 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How do I retrieve a form's LastModified date? Hi Max, Well - I still remember a few things. I am using A2003 and it didn't work for me about 6 weeks ago. After I found the MS KB article, I stopped trying. I'll try again! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Monday, June 02, 2008 10:50 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How do I retrieve a form's LastModified date? Hi Dan, That may be the difference. I am using A3k. I am thinking of upgrading because my version is now 5 years old - why are you still working with geriatrics. (smile). Don't you know that as you get older the mind gets more unreliable. That is why....ummm....sorry, forgot what I was saying... Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, June 02, 2008 4:12 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How do I retrieve a form's LastModified date? Max, Are you using Access 95 or 97? It is supposed to work with those versions. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Monday, June 02, 2008 9:56 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How do I retrieve a form's LastModified date? Dan, They are definitely different on my computer. Here is the output which corresponds to what is shown in the database window. frmEvent 10/05/2008 08:10:29 13/05/2008 17:32:13 Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, June 02, 2008 2:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How do I retrieve a form's LastModified date? This is what I did try. The .DateCreated and .DateModified both give the Created Date. There is also another VBA method using Containers, but the result is the same. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Monday, June 02, 2008 8:27 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How do I retrieve a form's LastModified date? You could mess around with the AllForms properties. Something like this:- Function frmProperties() Dim obj As AccessObject, dbs As Object Set dbs = Application.CurrentProject For Each obj In dbs.AllForms If obj.Name = "frmEvent" Then ' or If obj.IsLoaded = True Then Debug.Print obj.Name, obj.DateCreated, obj.DateModified End If Next obj End Function This will extract the modified date and other items. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, June 02, 2008 1:33 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How do I retrieve a form's LastModified date? Bob - I tried to find this out as well. I finally found a MS KB article which said that since A2000, you cannot get the date last modified programmatically due to the database structure change at that time. The only way to find out the date is to just look at the database window. There is VBA code to get the last modified date, but the date it returns is the created date, which isn't helpful. HTH, Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Gajewski Sent: Monday, June 02, 2008 7:03 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] How do I retrieve a form's LastModified date? Hello Friends I need to check the last modified date/time on a form. I suspect that this is only possible through an API call, which is something I know NOTHING about. Could someone please help me or point me to a resource that I can learn from? Regards, Bob Gajewski -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From pharold at proftesting.com Mon Jun 2 15:36:26 2008 From: pharold at proftesting.com (Perry L Harold) Date: Mon, 2 Jun 2008 16:36:26 -0400 Subject: [AccessD] OT: Rainy Monday? References: <012401c8c4ae$ae2d5820$6401a8c0@nant> Message-ID: Maybe it beats Florida for a few days but in January and February when we have 7:00 to 17:30 with 75F and sun and you have @ 9:00 to 14:00 with -5C with heavy clouds and snow there's no comparison. Perry Harold Professional Testing Inc -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Monday, June 02, 2008 8:47 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Rainy Monday? Hi Gustav, It promisew to be sunny here all the June: according to "people's notes" if it's slightly rainy and windy on 1st and 2nd of June (as it happened here this year) then all the June will be sunny. As for sunrise sunset "schedule" here: 2nd of June Sunrise - 04:46 Sunset - 23:08 ... 12th of June Sunrise - 04:36 Sunset - 23:22 Ready to beat Florida! :) Is anybody from North Finland of Norway here ready to compete? :) -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, June 02, 2008 12:19 PM To: accessd at databaseadvisors.com Subject: [AccessD] OT: Rainy Monday? Hi all Not here in Denmark. Sunshine continues for the next week according to the weather people. This May has been the most sunny ever measured with 345 hours of sunshine beating even Florida (that said, we have long days here, with sunrise/sunset about 04:45 and 21:45). Quite strange, it has rained on two days only from morning to late afternoon, each day with bright sunshine the day before and the day after. /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 shamil at smsconsulting.spb.ru Mon Jun 2 16:09:58 2008 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Tue, 3 Jun 2008 01:09:58 +0400 Subject: [AccessD] OT: Rainy Monday? In-Reply-To: Message-ID: <019101c8c4f5$0382e240$6401a8c0@nant> Hi Perry, We're talking sunny daytime hours not the air temperature - correct? :) You'll not believe probably but the fact is that there is very little sun here in November and December but in January it's very sunny here - tested :) - a couple of years ago I did ski here on Finish Gulf icy and snowy surface almost everyday starting 21st of December and ending 11th of April - and it was sunny for ~75-80% of days - I must say I was also surprised with that - I was not so much time on open air before and I didn't notice how sunny it's here winter time :) It's well known that spring time - March, April and May it's usually very sunny here - IOW the problem here aren't cloudy skies but short days winter time... -- Shamil P.S. Sorry moderators and All - my last message to this thread I promise - just wanted to note that there is quite some sun here all around the year but of course it could be very cold winter time here - although the two winters in a row it's almost as warm here as in the West Europe - this is why I had to stop my ice skiing excursuses - there is very little ice now winter time on Finnish Gulf and it's rather dangerous to ski on it... -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Perry L Harold Sent: Tuesday, June 03, 2008 12:36 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Rainy Monday? Maybe it beats Florida for a few days but in January and February when we have 7:00 to 17:30 with 75F and sun and you have @ 9:00 to 14:00 with -5C with heavy clouds and snow there's no comparison. Perry Harold Professional Testing Inc -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Monday, June 02, 2008 8:47 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Rainy Monday? Hi Gustav, It promisew to be sunny here all the June: according to "people's notes" if it's slightly rainy and windy on 1st and 2nd of June (as it happened here this year) then all the June will be sunny. As for sunrise sunset "schedule" here: 2nd of June Sunrise - 04:46 Sunset - 23:08 ... 12th of June Sunrise - 04:36 Sunset - 23:22 Ready to beat Florida! :) Is anybody from North Finland of Norway here ready to compete? :) -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, June 02, 2008 12:19 PM To: accessd at databaseadvisors.com Subject: [AccessD] OT: Rainy Monday? Hi all Not here in Denmark. Sunshine continues for the next week according to the weather people. This May has been the most sunny ever measured with 345 hours of sunshine beating even Florida (that said, we have long days here, with sunrise/sunset about 04:45 and 21:45). Quite strange, it has rained on two days only from morning to late afternoon, each day with bright sunshine the day before and the day after. /gustav From miscellany at mvps.org Mon Jun 2 16:22:15 2008 From: miscellany at mvps.org (Steve Schapel) Date: Tue, 03 Jun 2008 09:22:15 +1200 Subject: [AccessD] OT: Rainy Monday? In-Reply-To: References: Message-ID: <48446487.2010908@mvps.org> The news from New Zealand... As a country, apparently we had the coldest May in 16 years. Regards Steve Gustav Brock wrote: > Hi all > > Not here in Denmark. Sunshine continues for the next week according > to the weather people. This May has been the most sunny ever measured > with 345 hours of sunshine beating even Florida (that said, we have > long days here, with sunrise/sunset about 04:45 and 21:45). > > Quite strange, it has rained on two days only from morning to late > afternoon, each day with bright sunshine the day before and the day > after. From Gustav at cactus.dk Mon Jun 2 16:30:54 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 02 Jun 2008 23:30:54 +0200 Subject: [AccessD] OT: Rainy Monday? Message-ID: Hi Jennifer But the sunshine hours count? I can only find info telling about an average of 9 hours/day for May ... /gustav >>> jengross at gte.net 02-06-2008 22:25 >>> Southern California checking in here - it "rained" just enough a week and a half ago to dirty up the car. We won't see rain again probably until October. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, June 02, 2008 6:17 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT: Rainy Monday? Hi Shamil I hope you are right. On Sunday is the yearly air show of the Royal Danish Air Force scheduled. For the last four years it has been bright sunshine this day. Hopefully this year will not break the statistics - an air show with low hanging clouds is not the real thing. /gustav >>> shamil at smsconsulting.spb.ru 02-06-2008 14:46 >>> Hi Gustav, It promisew to be sunny here all the June: according to "people's notes" if it's slightly rainy and windy on 1st and 2nd of June (as it happened here this year) then all the June will be sunny. As for sunrise sunset "schedule" here: 2nd of June Sunrise - 04:46 Sunset - 23:08 ... 12th of June Sunrise - 04:36 Sunset - 23:22 Ready to beat Florida! :) Is anybody from North Finland of Norway here ready to compete? :) -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, June 02, 2008 12:19 PM To: accessd at databaseadvisors.com Subject: [AccessD] OT: Rainy Monday? Hi all Not here in Denmark. Sunshine continues for the next week according to the weather people. This May has been the most sunny ever measured with 345 hours of sunshine beating even Florida (that said, we have long days here, with sunrise/sunset about 04:45 and 21:45). Quite strange, it has rained on two days only from morning to late afternoon, each day with bright sunshine the day before and the day after. /gustav From jengross at gte.net Mon Jun 2 17:34:25 2008 From: jengross at gte.net (Jennifer Gross) Date: Mon, 02 Jun 2008 14:34:25 -0800 Subject: [AccessD] OT: Rainy Monday? In-Reply-To: Message-ID: <0K1U008P3UOEUQK5@vms173003.mailsrvcs.net> Today sunrise @ 5:44, sunset at 8:03 - that's 14.25+ hours of sunshine today. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, June 02, 2008 1:31 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT: Rainy Monday? Hi Jennifer But the sunshine hours count? I can only find info telling about an average of 9 hours/day for May ... /gustav >>> jengross at gte.net 02-06-2008 22:25 >>> Southern California checking in here - it "rained" just enough a week and a half ago to dirty up the car. We won't see rain again probably until October. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, June 02, 2008 6:17 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT: Rainy Monday? Hi Shamil I hope you are right. On Sunday is the yearly air show of the Royal Danish Air Force scheduled. For the last four years it has been bright sunshine this day. Hopefully this year will not break the statistics - an air show with low hanging clouds is not the real thing. /gustav >>> shamil at smsconsulting.spb.ru 02-06-2008 14:46 >>> Hi Gustav, It promisew to be sunny here all the June: according to "people's notes" if it's slightly rainy and windy on 1st and 2nd of June (as it happened here this year) then all the June will be sunny. As for sunrise sunset "schedule" here: 2nd of June Sunrise - 04:46 Sunset - 23:08 ... 12th of June Sunrise - 04:36 Sunset - 23:22 Ready to beat Florida! :) Is anybody from North Finland of Norway here ready to compete? :) -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, June 02, 2008 12:19 PM To: accessd at databaseadvisors.com Subject: [AccessD] OT: Rainy Monday? Hi all Not here in Denmark. Sunshine continues for the next week according to the weather people. This May has been the most sunny ever measured with 345 hours of sunshine beating even Florida (that said, we have long days here, with sunrise/sunset about 04:45 and 21:45). Quite strange, it has rained on two days only from morning to late afternoon, each day with bright sunshine the day before and the day after. /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 Jun 2 16:43:03 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 02 Jun 2008 23:43:03 +0200 Subject: [AccessD] OT: Rainy Monday? Message-ID: OK, you win ... /gustav >>> jengross at gte.net 03-06-2008 00:34 >>> Today sunrise @ 5:44, sunset at 8:03 - that's 14.25+ hours of sunshine today. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, June 02, 2008 1:31 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT: Rainy Monday? Hi Jennifer But the sunshine hours count? I can only find info telling about an average of 9 hours/day for May ... /gustav >>> jengross at gte.net 02-06-2008 22:25 >>> Southern California checking in here - it "rained" just enough a week and a half ago to dirty up the car. We won't see rain again probably until October. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, June 02, 2008 6:17 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] OT: Rainy Monday? Hi Shamil I hope you are right. On Sunday is the yearly air show of the Royal Danish Air Force scheduled. For the last four years it has been bright sunshine this day. Hopefully this year will not break the statistics - an air show with low hanging clouds is not the real thing. /gustav >>> shamil at smsconsulting.spb.ru 02-06-2008 14:46 >>> Hi Gustav, It promisew to be sunny here all the June: according to "people's notes" if it's slightly rainy and windy on 1st and 2nd of June (as it happened here this year) then all the June will be sunny. As for sunrise sunset "schedule" here: 2nd of June Sunrise - 04:46 Sunset - 23:08 ... 12th of June Sunrise - 04:36 Sunset - 23:22 Ready to beat Florida! :) Is anybody from North Finland of Norway here ready to compete? :) -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, June 02, 2008 12:19 PM To: accessd at databaseadvisors.com Subject: [AccessD] OT: Rainy Monday? Hi all Not here in Denmark. Sunshine continues for the next week according to the weather people. This May has been the most sunny ever measured with 345 hours of sunshine beating even Florida (that said, we have long days here, with sunrise/sunset about 04:45 and 21:45). Quite strange, it has rained on two days only from morning to late afternoon, each day with bright sunshine the day before and the day after. /gustav From DWUTKA at Marlow.com Mon Jun 2 18:56:08 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Mon, 2 Jun 2008 18:56:08 -0500 Subject: [AccessD] Optimizing subqueries Message-ID: Just thought I'd share something I ran into today. I use subqueries a lot. I am putting the finishing touches on that 'online form' system I mentioned a while back. Last week, I finished the 'search' system. To give a little background, this form system allows the user to create their own forms (creating their own fields for the form, etc.). These fields are actually defined within the tables....not like fields in a table, but data in the tables. ie, I have a tblFormFields table, which defines the forms ID, Name, Type (which implies data type), ExtraInfo, etc. I then have a handful of data tables, which hold the data. (Each table is for a specific data type, so the field type determines which table the data is stored in). The data is stored with a DataEntryID (which represents another table, recording when and who is entering the data (also allows for roll back capability)). On top of that, I have a CurrentData table, which holds the DataEntryID and FieldID of the most current data for a Form Entry. Ya, ok, that all may sound complex. It is, and so building a search routine that queries that structure was a lot of fun, though not as difficult as I initially thought. Initial development testing was only done against a handful of records though..and today I am 'load testing' the system. I dumped ~16,000 form entries into the system. Everything was working great, EXCEPT the search feature. Running a search on that many records was taking FOREVER (I was killing the process after about 60 seconds). The query that was I began troubleshooting this with should return 19 records. There are two criteria (one that returns about 280 records, and one that returns about 1500 records, the mix of the two should return 19 records). The query displays a handful of fields from one table (tblFormEntries) which shows the basic info on a form entry (who created the form, when it was created, what form it is form, etc.), along with a few joins to show extra information (like linking the UserID for the form creator to the tblUser table to get their name), and one join for criteria (tying to the tblRootForms table (because this system allows for multiple form revisions)). So that initial part of the query would return ~16k records. I then had two subqueries in the WHERE statement (the one returning 280 records, and the one returning ~1500 records), which tied to the main portion through the FormEntryID. Running the query like that, as I said, was taking forever, longer then I was willing to wait. However, running the subqueries on their own were pretty much instantaneous. So how do I get the Primary query to 'run them first', so that it isn't trying each subquery 16,000 times for each subquery........ A join statement! I'm sure I've read about doing this somewhere, at sometime, but I had never actually tried it. Sure enough, by taking the subqueries OUT of the WHERE statement, and putting them in the FROM clause, whalla, the data I needed was pulled instantenously (which shows promise, since I plan on putting about 160k form entries in for the full load testing!). So, to give an example, let's say we have this table: tblPrimaryData PrimaryKey MorePrimaryData and this table: tblExtraData PrimaryKey SomeOtherKey SomeCriteriaField Now let's say that tblPrimaryData has a million records, and tblExtraData has a few hundred thousand. Let's say that we want a specific SomeOtherKey and specific SomeCriteriaField, and that produces 20 records (and due to proper indexes is instantaneous). We could write our SQL Statement as such: SELECT tblPrimaryData.PrimaryKey, MorePrimaryData FROM (SELECT PrimaryKey FROM tblExtraData WHERE SomeOtherKey=1 AND SomeCriteriaField="Hello World") AS C1 INNER JOIN tblPrimaryData ON C1.PrimaryKey=tblPrimaryData.PrimaryKey And Whalla, Jet is going to run that subquery first, producing the 20 records based on the subqueries criteria, and then it is ONLY going to pull up those 20 records from tblPrimaryData. Obviously the example above could be done with a regular join. But the principle is the same (My subqueries link 2 or 3 tables together to get their results, so they had to be subqueries). You can even then use criteria from the subqueries (WHERE C1.AnotherField=3 (that field would have to be in the subquery), and something else I thought was neat was that Access lets you see a query like that in the Query Builder (it lists the fields that are in the subquery, and would display it's name as C1). Anywho, just thought I'd share! Drew The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From Darryl.Collins at coles.com.au Mon Jun 2 19:18:04 2008 From: Darryl.Collins at coles.com.au (Darryl Collins) Date: Tue, 3 Jun 2008 10:18:04 +1000 Subject: [AccessD] Office Watch Message-ID: <49DFE57FB126044B8A8B934E7AEA09ED0B270280@WPEXCH05.colesmyer.ad.cmltd.net.au> aaaaah.... Given Fuel here is currently about $1.54 a litre (that about $7 a gallon) that really isn't much of an incentive. I guess if you were going to get it anyway. heh, I think I will continue to ride my fast road pushbike to work and wave the folks burning up their $40 vista bonus whilst stuck in the traffic... :) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Max Wanadoo Sent: Tuesday, 3 June 2008 4:23 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Office Watch For my Aussie Friends: http://news.office-watch.com/t/n.aspx?articleid=619&zoneid=12 $40 for you guys when you buy A2007 Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. From rbgajewski at adelphia.net Mon Jun 2 19:17:53 2008 From: rbgajewski at adelphia.net (Bob Gajewski) Date: Mon, 2 Jun 2008 20:17:53 -0400 Subject: [AccessD] How do I retrieve a form's LastModified date? In-Reply-To: <011201c8c4c0$c29308c0$8119fea9@LTVM> References: <48344BAF.5070201@colbyconsulting.com><0K180010P9OQULQA@vms046.mailsrvcs.net><05DE242CFBBA43C4B6489DF1EC8EB0CF@DCYN3T81><000701c8bbbe$4c5c8010$6401a8c0@DELLAPTOP><81AA4423456E48DEBC3A79267EF7D4B6@DCYN3T81><7F30435A522D4343B9D08C3146C0EE9E@DCYN3T81><2453E9D76621444C97072896B2D738FC@danwaters><00f001c8c4b4$4758abd0$8119fea9@LTVM><37783233032446C4BFD3325BE63D99E3@danwaters> <011201c8c4c0$c29308c0$8119fea9@LTVM> Message-ID: I haven't used Debug.Print before ... Where exactly do I put this code? Bob -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Monday, June 02, 2008 10:56 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How do I retrieve a form's LastModified date? Dan, They are definitely different on my computer. Here is the output which corresponds to what is shown in the database window. frmEvent 10/05/2008 08:10:29 13/05/2008 17:32:13 Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, June 02, 2008 2:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How do I retrieve a form's LastModified date? This is what I did try. The .DateCreated and .DateModified both give the Created Date. There is also another VBA method using Containers, but the result is the same. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Monday, June 02, 2008 8:27 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How do I retrieve a form's LastModified date? You could mess around with the AllForms properties. Something like this:- Function frmProperties() Dim obj As AccessObject, dbs As Object Set dbs = Application.CurrentProject For Each obj In dbs.AllForms If obj.Name = "frmEvent" Then ' or If obj.IsLoaded = True Then Debug.Print obj.Name, obj.DateCreated, obj.DateModified End If Next obj End Function This will extract the modified date and other items. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, June 02, 2008 1:33 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How do I retrieve a form's LastModified date? Bob - I tried to find this out as well. I finally found a MS KB article which said that since A2000, you cannot get the date last modified programmatically due to the database structure change at that time. The only way to find out the date is to just look at the database window. There is VBA code to get the last modified date, but the date it returns is the created date, which isn't helpful. HTH, Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Gajewski Sent: Monday, June 02, 2008 7:03 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] How do I retrieve a form's LastModified date? Hello Friends I need to check the last modified date/time on a form. I suspect that this is only possible through an API call, which is something I know NOTHING about. Could someone please help me or point me to a resource that I can learn from? Regards, Bob Gajewski -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stuart at lexacorp.com.pg Mon Jun 2 19:54:45 2008 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 03 Jun 2008 10:54:45 +1000 Subject: [AccessD] Office Watch In-Reply-To: <49DFE57FB126044B8A8B934E7AEA09ED0B270280@WPEXCH05.colesmyer.ad.cmltd.net.au> References: <49DFE57FB126044B8A8B934E7AEA09ED0B270280@WPEXCH05.colesmyer.ad.cmltd.net.au> Message-ID: <484522F5.16567.4BD602D1@stuart.lexacorp.com.pg> But only $6 per US gallon :-) -- Stuart On 3 Jun 2008 at 10:18, Darryl Collins wrote: > > > aaaaah.... Given Fuel here is currently about $1.54 a litre (that about $7 a gallon) that really isn't much of an incentive. I guess if you were going to get it anyway. heh, I think I will continue to ride my fast road pushbike to work and wave the folks burning up their $40 vista bonus whilst stuck in the traffic... > > :) > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Max Wanadoo > Sent: Tuesday, 3 June 2008 4:23 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Office Watch > > > > For my Aussie Friends: > > http://news.office-watch.com/t/n.aspx?articleid=619&zoneid=12 > > > $40 for you guys when you buy A2007 > > Max > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From Darryl.Collins at coles.com.au Mon Jun 2 19:58:15 2008 From: Darryl.Collins at coles.com.au (Darryl Collins) Date: Tue, 3 Jun 2008 10:58:15 +1000 Subject: [AccessD] Office Watch Message-ID: <49DFE57FB126044B8A8B934E7AEA09ED09FD74A0@WPEXCH05.colesmyer.ad.cmltd.net.au> hahahaha! but of course. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Stuart McLachlan Sent: Tuesday, 3 June 2008 10:55 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Office Watch But only $6 per US gallon :-) -- Stuart On 3 Jun 2008 at 10:18, Darryl Collins wrote: > > > aaaaah.... Given Fuel here is currently about $1.54 a litre (that about $7 a gallon) that really isn't much of an incentive. I guess if you were going to get it anyway. heh, I think I will continue to ride my fast road pushbike to work and wave the folks burning up their $40 vista bonus whilst stuck in the traffic... > > :) > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Max Wanadoo > Sent: Tuesday, 3 June 2008 4:23 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Office Watch > > > > For my Aussie Friends: > > http://news.office-watch.com/t/n.aspx?articleid=619&zoneid=12 > > > $40 for you guys when you buy A2007 > > Max > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. From edzedz at comcast.net Mon Jun 2 22:38:25 2008 From: edzedz at comcast.net (Edward S Zuris) Date: Mon, 2 Jun 2008 20:38:25 -0700 Subject: [AccessD] How do I retrieve a form's LastModified date? In-Reply-To: Message-ID: <005301c8c52b$47f73cb0$63dea8c0@dudley1> In Access 2000 while in module-VBA-design-mode do a CTRL-G and the immediate window opens up. That is were the results will go. Also in the immediate window you could issue the command -> debug.print "Hello World" Or -> ? "Hello World 2" The ? is a short cut for debug.print There are a lot of uses for this. Play with it. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Bob Gajewski Sent: Monday, June 02, 2008 5:18 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How do I retrieve a form's LastModified date? I haven't used Debug.Print before ... Where exactly do I put this code? Bob -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Monday, June 02, 2008 10:56 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How do I retrieve a form's LastModified date? Dan, They are definitely different on my computer. Here is the output which corresponds to what is shown in the database window. frmEvent 10/05/2008 08:10:29 13/05/2008 17:32:13 Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, June 02, 2008 2:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How do I retrieve a form's LastModified date? This is what I did try. The .DateCreated and .DateModified both give the Created Date. There is also another VBA method using Containers, but the result is the same. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Monday, June 02, 2008 8:27 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How do I retrieve a form's LastModified date? You could mess around with the AllForms properties. Something like this:- Function frmProperties() Dim obj As AccessObject, dbs As Object Set dbs = Application.CurrentProject For Each obj In dbs.AllForms If obj.Name = "frmEvent" Then ' or If obj.IsLoaded = True Then Debug.Print obj.Name, obj.DateCreated, obj.DateModified End If Next obj End Function This will extract the modified date and other items. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, June 02, 2008 1:33 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How do I retrieve a form's LastModified date? Bob - I tried to find this out as well. I finally found a MS KB article which said that since A2000, you cannot get the date last modified programmatically due to the database structure change at that time. The only way to find out the date is to just look at the database window. There is VBA code to get the last modified date, but the date it returns is the created date, which isn't helpful. HTH, Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Gajewski Sent: Monday, June 02, 2008 7:03 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] How do I retrieve a form's LastModified date? Hello Friends I need to check the last modified date/time on a form. I suspect that this is only possible through an API call, which is something I know NOTHING about. Could someone please help me or point me to a resource that I can learn from? Regards, Bob Gajewski -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From kp at sdsonline.net Tue Jun 3 01:00:29 2008 From: kp at sdsonline.net (Kath Pelletti) Date: Tue, 3 Jun 2008 16:00:29 +1000 Subject: [AccessD] Office Watch References: <48344BAF.5070201@colbyconsulting.com><0K180010P9OQULQA@vms046.mailsrvcs.net><05DE242CFBBA43C4B6489DF1EC8EB0CF@DCYN3T81><000701c8bbbe$4c5c8010$6401a8c0@DELLAPTOP><81AA4423456E48DEBC3A79267EF7D4B6@DCYN3T81><7F30435A522D4343B9D08C3146C0EE9E@DCYN3T81><2453E9D76621444C97072896B2D738FC@danwaters><00f001c8c4b4$4758abd0$8119fea9@LTVM><37783233032446C4BFD3325BE63D99E3@danwaters><011201c8c4c0$c29308c0$8119fea9@LTVM><000901c8c4c8$50b45d00$8119fea9@LTVM> <001901c8c4dd$b197ef00$8119fea9@LTVM> Message-ID: <01f801c8c53f$218a9180$6401a8c0@DELLAPTOP> what a strange (and small!) incentive......... Kath ----- Original Message ----- From: "Max Wanadoo" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, June 03, 2008 4:23 AM Subject: [AccessD] Office Watch > > For my Aussie Friends: > > http://news.office-watch.com/t/n.aspx?articleid=619&zoneid=12 > > > $40 for you guys when you buy A2007 > > Max > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Gustav at cactus.dk Tue Jun 3 01:28:09 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 03 Jun 2008 08:28:09 +0200 Subject: [AccessD] Optimizing subqueries Message-ID: Hi Drew Good example. At least two variations exist. One variation on this in Access is to move the subquery "tables" to separate queries. In most cases - also yours - you already have created and tested the subquery on its own to verify that the output is as expected. Then leave that as a saved query, here it could by qdyExtraData: SELECT PrimaryKey FROM tblExtraData WHERE SomeOtherKey=1 AND SomeCriteriaField="Hello World" and the main query will now read: SELECT tblPrimaryData.PrimaryKey, MorePrimaryData FROM qdyExtraData INNER JOIN tblPrimaryData ON qdyExtraData.PrimaryKey=tblPrimaryData.PrimaryKey The advantage is that it is much easier to read and debug and that the "subquery" can be reused in other queries. The other variation is that from the "Old SQL School": Temporary tables. In some cases - indeed for update and delete queries - this is so much faster that it is hard to believe but many Access developers have no tradition for this technique. In your case you would write the output of the helper query to the temp table, tblExtraData, and then use this as a source: SELECT tblPrimaryData.PrimaryKey, MorePrimaryData FROM tblExtraData INNER JOIN tblPrimaryData ON tblExtraData.PrimaryKey=tblPrimaryData.PrimaryKey /gustav >>> DWUTKA at marlow.com 03-06-2008 01:56 >>> Just thought I'd share something I ran into today. I use subqueries a lot. I am putting the finishing touches on that 'online form' system I mentioned a while back. Last week, I finished the 'search' system. To give a little background, this form system allows the user to create their own forms (creating their own fields for the form, etc.). These fields are actually defined within the tables....not like fields in a table, but data in the tables. ie, I have a tblFormFields table, which defines the forms ID, Name, Type (which implies data type), ExtraInfo, etc. I then have a handful of data tables, which hold the data. (Each table is for a specific data type, so the field type determines which table the data is stored in). The data is stored with a DataEntryID (which represents another table, recording when and who is entering the data (also allows for roll back capability)). On top of that, I have a CurrentData table, which holds the DataEntryID and FieldID of the most current data for a Form Entry. Ya, ok, that all may sound complex. It is, and so building a search routine that queries that structure was a lot of fun, though not as difficult as I initially thought. Initial development testing was only done against a handful of records though..and today I am 'load testing' the system. I dumped ~16,000 form entries into the system. Everything was working great, EXCEPT the search feature. Running a search on that many records was taking FOREVER (I was killing the process after about 60 seconds). The query that was I began troubleshooting this with should return 19 records. There are two criteria (one that returns about 280 records, and one that returns about 1500 records, the mix of the two should return 19 records). The query displays a handful of fields from one table (tblFormEntries) which shows the basic info on a form entry (who created the form, when it was created, what form it is form, etc.), along with a few joins to show extra information (like linking the UserID for the form creator to the tblUser table to get their name), and one join for criteria (tying to the tblRootForms table (because this system allows for multiple form revisions)). So that initial part of the query would return ~16k records. I then had two subqueries in the WHERE statement (the one returning 280 records, and the one returning ~1500 records), which tied to the main portion through the FormEntryID. Running the query like that, as I said, was taking forever, longer then I was willing to wait. However, running the subqueries on their own were pretty much instantaneous. So how do I get the Primary query to 'run them first', so that it isn't trying each subquery 16,000 times for each subquery........ A join statement! I'm sure I've read about doing this somewhere, at sometime, but I had never actually tried it. Sure enough, by taking the subqueries OUT of the WHERE statement, and putting them in the FROM clause, whalla, the data I needed was pulled instantenously (which shows promise, since I plan on putting about 160k form entries in for the full load testing!). So, to give an example, let's say we have this table: tblPrimaryData PrimaryKey MorePrimaryData and this table: tblExtraData PrimaryKey SomeOtherKey SomeCriteriaField Now let's say that tblPrimaryData has a million records, and tblExtraData has a few hundred thousand. Let's say that we want a specific SomeOtherKey and specific SomeCriteriaField, and that produces 20 records (and due to proper indexes is instantaneous). We could write our SQL Statement as such: SELECT tblPrimaryData.PrimaryKey, MorePrimaryData FROM (SELECT PrimaryKey FROM tblExtraData WHERE SomeOtherKey=1 AND SomeCriteriaField="Hello World") AS C1 INNER JOIN tblPrimaryData ON C1.PrimaryKey=tblPrimaryData.PrimaryKey And Whalla, Jet is going to run that subquery first, producing the 20 records based on the subqueries criteria, and then it is ONLY going to pull up those 20 records from tblPrimaryData. Obviously the example above could be done with a regular join. But the principle is the same (My subqueries link 2 or 3 tables together to get their results, so they had to be subqueries). You can even then use criteria from the subqueries (WHERE C1.AnotherField=3 (that field would have to be in the subquery), and something else I thought was neat was that Access lets you see a query like that in the Query Builder (it lists the fields that are in the subquery, and would display it's name as C1). Anywho, just thought I'd share! Drew From DWUTKA at Marlow.com Tue Jun 3 01:49:34 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 3 Jun 2008 01:49:34 -0500 Subject: [AccessD] Optimizing subqueries In-Reply-To: Message-ID: Thanks Gustav, but neither of those options work for me. I am building all of the SQL in code. Fields, criteria and tables can all be variable. So I can't store them in saved queries. And since this is a process that will possibly run quite frequently, I don't want to use temp tables. (bloat, though I could get around that using a separate table...but it's not necessary with what I have done putting the subqueries in the FROM statement) I am using a stored query to join the subqueries too, which is saving a bit of time and clutter in the SQL. My main problem right now, is that I am looking at a variable number of joins, and I'm getting a little goofed as to the separators and structure required to join one table to the next, to the next, to the next, etc. I've got it partially working, but it's late here, going to crash and look at it again in the morning. So far, the initial test (that I got to work (where I am joining 2 subqueries to the main query)) works like a champ, returns the necessary 19 records instantenously. I posted a link to this system a month or so ago, but there were several features not in place. When I get this join issue solved, I'm going to clean up the look of the system, and I'll post it again so everyone can play around in it if they'd like. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, June 03, 2008 1:28 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Optimizing subqueries Hi Drew Good example. At least two variations exist. One variation on this in Access is to move the subquery "tables" to separate queries. In most cases - also yours - you already have created and tested the subquery on its own to verify that the output is as expected. Then leave that as a saved query, here it could by qdyExtraData: SELECT PrimaryKey FROM tblExtraData WHERE SomeOtherKey=1 AND SomeCriteriaField="Hello World" and the main query will now read: SELECT tblPrimaryData.PrimaryKey, MorePrimaryData FROM qdyExtraData INNER JOIN tblPrimaryData ON qdyExtraData.PrimaryKey=tblPrimaryData.PrimaryKey The advantage is that it is much easier to read and debug and that the "subquery" can be reused in other queries. The other variation is that from the "Old SQL School": Temporary tables. In some cases - indeed for update and delete queries - this is so much faster that it is hard to believe but many Access developers have no tradition for this technique. In your case you would write the output of the helper query to the temp table, tblExtraData, and then use this as a source: SELECT tblPrimaryData.PrimaryKey, MorePrimaryData FROM tblExtraData INNER JOIN tblPrimaryData ON tblExtraData.PrimaryKey=tblPrimaryData.PrimaryKey /gustav The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From Darryl.Collins at coles.com.au Tue Jun 3 02:51:19 2008 From: Darryl.Collins at coles.com.au (Darryl Collins) Date: Tue, 3 Jun 2008 17:51:19 +1000 Subject: [AccessD] Office Watch Message-ID: <49DFE57FB126044B8A8B934E7AEA09ED09FD74AC@WPEXCH05.colesmyer.ad.cmltd.net.au> hahaha, as a genuine 'gudday mate' Aussie, I have to say it didn't exactly make me jump up and go "Wow!".... :-/ -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Kath Pelletti Sent: Tuesday, 3 June 2008 4:00 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Office Watch what a strange (and small!) incentive......... Kath ----- Original Message ----- From: "Max Wanadoo" To: "'Access Developers discussion and problem solving'" Sent: Tuesday, June 03, 2008 4:23 AM Subject: [AccessD] Office Watch > > For my Aussie Friends: > > http://news.office-watch.com/t/n.aspx?articleid=619&zoneid=12 > > > $40 for you guys when you buy A2007 > > Max > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. From shamil at smsconsulting.spb.ru Tue Jun 3 03:33:40 2008 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Tue, 3 Jun 2008 12:33:40 +0400 Subject: [AccessD] Deploying VSTO runtime for VS2008 Office solutions... Message-ID: <01c901c8c554$868e5a20$6401a8c0@nant> Hi All, Did anybody try to install VS2008 office solution (e.g. MS Excel workbook) on a customer PC with only .NET Framework 2.0/3.0/3.5 installed? I mean they (our best friends MS) have published here (http://msdn.microsoft.com/en-us/library/bb332051.aspx ) a lengthy article how to install VSTO in this or that case/context, and I must say I absolutely limited of time/will to read it - as far as I get it should get installed "automagically" using ClickOnce technology - did you try to get it installed that way? Did it work OK for you? Thank you. -- Shamil From Gustav at cactus.dk Tue Jun 3 04:03:13 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 03 Jun 2008 11:03:13 +0200 Subject: [AccessD] Deploying VSTO runtime for VS2008 Office solutions... Message-ID: Hi Shamil Wouldn't it rather be this article - for VS2008: http://msdn.microsoft.com/en-us/library/bb821233.aspx Your link is for VS2005. Not that I have worked with VSTO, neither that this article seems easier to grasp ... /gustav >>> shamil at smsconsulting.spb.ru 03-06-2008 10:33 >>> Hi All, Did anybody try to install VS2008 office solution (e.g. MS Excel workbook) on a customer PC with only .NET Framework 2.0/3.0/3.5 installed? I mean they (our best friends MS) have published here (http://msdn.microsoft.com/en-us/library/bb332051.aspx ) a lengthy article how to install VSTO in this or that case/context, and I must say I absolutely limited of time/will to read it - as far as I get it should get installed "automagically" using ClickOnce technology - did you try to get it installed that way? Did it work OK for you? Thank you. -- Shamil From max.wanadoo at gmail.com Tue Jun 3 12:22:44 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 3 Jun 2008 18:22:44 +0100 Subject: [AccessD] Optimizing subqueries In-Reply-To: References: Message-ID: <000301c8c59e$708b6f70$8119fea9@LTVM> Gustav, I need to try to optimize this function into a query (or set of queries). Can you help? When I try to do it, the "NOT IN" clause is so slllloooowww that I resorted to creating this temp table. Max Public Function pfpf() Dim datStart As Date, datEnd As Date Dim sql As String, rst As DAO.Recordset, rst2 As DAO.Recordset, lngRecCt As Long datStart = Time() Debug.Print datStart, sql = "Drop Table tblTempOrgs" On Error Resume Next CurrentDb.Execute (sql) sql = "Create Table tblTempOrgs (FKOrgID Long)" CurrentDb.Execute (sql) sql = "Create Unique Index FKOrgID on tblTempOrgs (FKOrgID)" CurrentDb.Execute (sql) sql = "Select OrgID, FKOrgTypeID from mcmOrganisations Where FKDefaultROID=11200 and (FKOrgTypeID = 1 or FKOrgTypeID = 4 or (FKOrgTypeID > 9 and FKOrgTypeID < 13))" Set rst = CurrentDb.OpenRecordset(sql) rst.MoveFirst Do While Not rst.EOF If DCount("*", "LinkTrusts2Contacts", "FKOrgID=" & rst!OrgID) > 0 Then ' there is a contact If DCount("*", "mcmIncomeTransactions", "FKOrgID=" & rst!OrgID) = 0 Then ' no previous transaction If DCount("*", "tblTrustBids", "FKOrgID=" & rst!OrgID) = 0 Then 'no previous bids sql = "Insert into tblTempOrgs (FKOrgID) values (" & rst!OrgID & ")" CurrentDb.Execute (sql) End If End If End If rst.MoveNext Loop lngRecCt = DCount("*", "tblTempOrgs") datEnd = Time() Debug.Print datEnd, DateDiff("s", datStart, datEnd), lngRecCt Debug.Print "===============================================" End Function From Gustav at cactus.dk Tue Jun 3 12:34:17 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 03 Jun 2008 19:34:17 +0200 Subject: [AccessD] Optimizing subqueries Message-ID: Hi Max On my way home .. but couldn't you just pull in the tables you lookup and create inner joins on the three tablename.FKOrgID=mcmOrganisations.OrgID ? /gustav >>> max.wanadoo at gmail.com 03-06-2008 19:22 >>> Gustav, I need to try to optimize this function into a query (or set of queries). Can you help? When I try to do it, the "NOT IN" clause is so slllloooowww that I resorted to creating this temp table. Max Public Function pfpf() Dim datStart As Date, datEnd As Date Dim sql As String, rst As DAO.Recordset, rst2 As DAO.Recordset, lngRecCt As Long datStart = Time() Debug.Print datStart, sql = "Drop Table tblTempOrgs" On Error Resume Next CurrentDb.Execute (sql) sql = "Create Table tblTempOrgs (FKOrgID Long)" CurrentDb.Execute (sql) sql = "Create Unique Index FKOrgID on tblTempOrgs (FKOrgID)" CurrentDb.Execute (sql) sql = "Select OrgID, FKOrgTypeID from mcmOrganisations Where FKDefaultROID=11200 and (FKOrgTypeID = 1 or FKOrgTypeID = 4 or (FKOrgTypeID > 9 and FKOrgTypeID < 13))" Set rst = CurrentDb.OpenRecordset(sql) rst.MoveFirst Do While Not rst.EOF If DCount("*", "LinkTrusts2Contacts", "FKOrgID=" & rst!OrgID) > 0 Then ' there is a contact If DCount("*", "mcmIncomeTransactions", "FKOrgID=" & rst!OrgID) = 0 Then ' no previous transaction If DCount("*", "tblTrustBids", "FKOrgID=" & rst!OrgID) = 0 Then 'no previous bids sql = "Insert into tblTempOrgs (FKOrgID) values (" & rst!OrgID & ")" CurrentDb.Execute (sql) End If End If End If rst.MoveNext Loop lngRecCt = DCount("*", "tblTempOrgs") datEnd = Time() Debug.Print datEnd, DateDiff("s", datStart, datEnd), lngRecCt Debug.Print "===============================================" End Function -- From max.wanadoo at gmail.com Tue Jun 3 12:44:46 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 3 Jun 2008 18:44:46 +0100 Subject: [AccessD] Optimizing subqueries In-Reply-To: References: Message-ID: <000701c8c5a1$84d7f090$8119fea9@LTVM> No not really because of the fact that the OrgID must NOT be in two of the tables. Ie, it is a "Not in (Select * etc)" clause. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, June 03, 2008 6:34 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Optimizing subqueries Hi Max On my way home .. but couldn't you just pull in the tables you lookup and create inner joins on the three tablename.FKOrgID=mcmOrganisations.OrgID ? /gustav >>> max.wanadoo at gmail.com 03-06-2008 19:22 >>> Gustav, I need to try to optimize this function into a query (or set of queries). Can you help? When I try to do it, the "NOT IN" clause is so slllloooowww that I resorted to creating this temp table. Max Public Function pfpf() Dim datStart As Date, datEnd As Date Dim sql As String, rst As DAO.Recordset, rst2 As DAO.Recordset, lngRecCt As Long datStart = Time() Debug.Print datStart, sql = "Drop Table tblTempOrgs" On Error Resume Next CurrentDb.Execute (sql) sql = "Create Table tblTempOrgs (FKOrgID Long)" CurrentDb.Execute (sql) sql = "Create Unique Index FKOrgID on tblTempOrgs (FKOrgID)" CurrentDb.Execute (sql) sql = "Select OrgID, FKOrgTypeID from mcmOrganisations Where FKDefaultROID=11200 and (FKOrgTypeID = 1 or FKOrgTypeID = 4 or (FKOrgTypeID > 9 and FKOrgTypeID < 13))" Set rst = CurrentDb.OpenRecordset(sql) rst.MoveFirst Do While Not rst.EOF If DCount("*", "LinkTrusts2Contacts", "FKOrgID=" & rst!OrgID) > 0 Then ' there is a contact If DCount("*", "mcmIncomeTransactions", "FKOrgID=" & rst!OrgID) = 0 Then ' no previous transaction If DCount("*", "tblTrustBids", "FKOrgID=" & rst!OrgID) = 0 Then 'no previous bids sql = "Insert into tblTempOrgs (FKOrgID) values (" & rst!OrgID & ")" CurrentDb.Execute (sql) End If End If End If rst.MoveNext Loop lngRecCt = DCount("*", "tblTempOrgs") datEnd = Time() Debug.Print datEnd, DateDiff("s", datStart, datEnd), lngRecCt Debug.Print "===============================================" End Function -- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Tue Jun 3 12:51:02 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 3 Jun 2008 18:51:02 +0100 Subject: [AccessD] SQL handling the Worlds Largest Database. In-Reply-To: References: Message-ID: <000801c8c5a2$64c0a620$8119fea9@LTVM> JC: If you think your databases are large, you may care to have a look at this. Amazing! (database that processes 24 billion events a day.) http://blogs.ittoolbox.com/oracle/guide/archives/worlds-largest-database-run s-on-postgres-24979 Max From Lambert.Heenan at AIG.com Tue Jun 3 12:51:24 2008 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 3 Jun 2008 12:51:24 -0500 Subject: [AccessD] Optimizing subqueries Message-ID: <34C8A2AB1EF3564CB0D64DB6AFFDD5C215A9EF38@XLIVMBX35bkup.aig.com> Would using an Unmatched query be a faster solution that a query with a sub-query? SELECT Table1.ForeignKeyID FROM Table1 LEFT JOIN Table2 ON Table1.ForeignKeyID = Table2.PrimaryKeyID WHERE (((Table2.PrimaryKeyID) Is Null)); Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Tuesday, June 03, 2008 1:23 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Optimizing subqueries Gustav, I need to try to optimize this function into a query (or set of queries). Can you help? When I try to do it, the "NOT IN" clause is so slllloooowww that I resorted to creating this temp table. Max Public Function pfpf() Dim datStart As Date, datEnd As Date Dim sql As String, rst As DAO.Recordset, rst2 As DAO.Recordset, lngRecCt As Long datStart = Time() Debug.Print datStart, sql = "Drop Table tblTempOrgs" On Error Resume Next CurrentDb.Execute (sql) sql = "Create Table tblTempOrgs (FKOrgID Long)" CurrentDb.Execute (sql) sql = "Create Unique Index FKOrgID on tblTempOrgs (FKOrgID)" CurrentDb.Execute (sql) sql = "Select OrgID, FKOrgTypeID from mcmOrganisations Where FKDefaultROID=11200 and (FKOrgTypeID = 1 or FKOrgTypeID = 4 or (FKOrgTypeID > 9 and FKOrgTypeID < 13))" Set rst = CurrentDb.OpenRecordset(sql) rst.MoveFirst Do While Not rst.EOF If DCount("*", "LinkTrusts2Contacts", "FKOrgID=" & rst!OrgID) > 0 Then ' there is a contact If DCount("*", "mcmIncomeTransactions", "FKOrgID=" & rst!OrgID) = 0 Then ' no previous transaction If DCount("*", "tblTrustBids", "FKOrgID=" & rst!OrgID) = 0 Then 'no previous bids sql = "Insert into tblTempOrgs (FKOrgID) values (" & rst!OrgID & ")" CurrentDb.Execute (sql) End If End If End If rst.MoveNext Loop lngRecCt = DCount("*", "tblTempOrgs") datEnd = Time() Debug.Print datEnd, DateDiff("s", datStart, datEnd), lngRecCt Debug.Print "===============================================" End Function -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Jun 3 12:59:46 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 03 Jun 2008 13:59:46 -0400 Subject: [AccessD] SQL handling the Worlds Largest Database. In-Reply-To: <000801c8c5a2$64c0a620$8119fea9@LTVM> References: <000801c8c5a2$64c0a620$8119fea9@LTVM> Message-ID: <48458692.9080909@colbyconsulting.com> LOL, I do think my database is large, but certainly not in the big leagues. There are tons of databases several orders of magnitude bigger than mine. OTOH, mine operates on a server out of my home office and the lights don't dim when I turn it on. John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > JC: > If you think your databases are large, you may care to have a look at this. > Amazing! (database that processes 24 billion events a day.) > > http://blogs.ittoolbox.com/oracle/guide/archives/worlds-largest-database-run > s-on-postgres-24979 > > Max > From DWUTKA at Marlow.com Tue Jun 3 13:41:07 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 3 Jun 2008 13:41:07 -0500 Subject: [AccessD] Optimizing subqueries In-Reply-To: <000701c8c5a1$84d7f090$8119fea9@LTVM> References: <000701c8c5a1$84d7f090$8119fea9@LTVM> Message-ID: Actually, to determine if a key is not in another table, do a left or right join, and check for null: tblOne OrgID tblTwo OrgID SELETE tblOne.OrgID FROM tblOne LEFT JOIN tblTwo ON tblOne.OrgID=tblTwo.OrgID WHERE tblTwo.OrgID Is Null The above SQL will show you every OrgID that's in table One, but NOT in table two. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Tuesday, June 03, 2008 12:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Optimizing subqueries No not really because of the fact that the OrgID must NOT be in two of the tables. Ie, it is a "Not in (Select * etc)" clause. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, June 03, 2008 6:34 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Optimizing subqueries Hi Max On my way home .. but couldn't you just pull in the tables you lookup and create inner joins on the three tablename.FKOrgID=mcmOrganisations.OrgID ? /gustav >>> max.wanadoo at gmail.com 03-06-2008 19:22 >>> Gustav, I need to try to optimize this function into a query (or set of queries). Can you help? When I try to do it, the "NOT IN" clause is so slllloooowww that I resorted to creating this temp table. Max Public Function pfpf() Dim datStart As Date, datEnd As Date Dim sql As String, rst As DAO.Recordset, rst2 As DAO.Recordset, lngRecCt As Long datStart = Time() Debug.Print datStart, sql = "Drop Table tblTempOrgs" On Error Resume Next CurrentDb.Execute (sql) sql = "Create Table tblTempOrgs (FKOrgID Long)" CurrentDb.Execute (sql) sql = "Create Unique Index FKOrgID on tblTempOrgs (FKOrgID)" CurrentDb.Execute (sql) sql = "Select OrgID, FKOrgTypeID from mcmOrganisations Where FKDefaultROID=11200 and (FKOrgTypeID = 1 or FKOrgTypeID = 4 or (FKOrgTypeID > 9 and FKOrgTypeID < 13))" Set rst = CurrentDb.OpenRecordset(sql) rst.MoveFirst Do While Not rst.EOF If DCount("*", "LinkTrusts2Contacts", "FKOrgID=" & rst!OrgID) > 0 Then ' there is a contact If DCount("*", "mcmIncomeTransactions", "FKOrgID=" & rst!OrgID) = 0 Then ' no previous transaction If DCount("*", "tblTrustBids", "FKOrgID=" & rst!OrgID) = 0 Then 'no previous bids sql = "Insert into tblTempOrgs (FKOrgID) values (" & rst!OrgID & ")" CurrentDb.Execute (sql) End If End If End If rst.MoveNext Loop lngRecCt = DCount("*", "tblTempOrgs") datEnd = Time() Debug.Print datEnd, DateDiff("s", datStart, datEnd), lngRecCt Debug.Print "===============================================" End Function -- -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From max.wanadoo at gmail.com Tue Jun 3 14:20:30 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 3 Jun 2008 20:20:30 +0100 Subject: [AccessD] Optimizing subqueries In-Reply-To: <34C8A2AB1EF3564CB0D64DB6AFFDD5C215A9EF38@XLIVMBX35bkup.aig.com> References: <34C8A2AB1EF3564CB0D64DB6AFFDD5C215A9EF38@XLIVMBX35bkup.aig.com> Message-ID: <000c01c8c5ae$e41b39b0$8119fea9@LTVM> Lambert, That is just excellent! I have never handled "Not Ins" before in this way. It is just superb! Ran in milliseconds. This is a MakeTable SQL and I had to do a GroupBy to ensure no dupes. Code (your probably not interested but here it is): SELECT mcmOrganisations.OrgID INTO tblTempOrgs2 FROM ((mcmOrganisations INNER JOIN LinkTrusts2Contacts ON mcmOrganisations.OrgID = LinkTrusts2Contacts.FKOrgID) LEFT JOIN mcmIncomeTransactions ON mcmOrganisations.OrgID = mcmIncomeTransactions.FKOrgID) LEFT JOIN tblTrustBids ON mcmOrganisations.OrgID = tblTrustBids.FKOrgID GROUP BY mcmOrganisations.OrgID, mcmOrganisations.FKOrgTypeID, mcmOrganisations.FKDefaultROID, mcmIncomeTransactions.FKOrgID, tblTrustBids.FKOrgID HAVING (((mcmOrganisations.FKOrgTypeID)=1 Or (mcmOrganisations.FKOrgTypeID)=4) AND ((mcmOrganisations.FKDefaultROID)=11200) AND ((mcmIncomeTransactions.FKOrgID) Is Null) AND ((tblTrustBids.FKOrgID) Is Null)) OR (((mcmOrganisations.FKOrgTypeID)>9 And (mcmOrganisations.FKOrgTypeID)<13) AND ((mcmOrganisations.FKDefaultROID)=11200) AND ((mcmIncomeTransactions.FKOrgID) Is Null) AND ((tblTrustBids.FKOrgID) Is Null)); And all done via the QBE. Thanks a million. Thanks also to Gustav who posted something similar just after I had cracked this. Thanks Guys Max -----Original Message----- From: Heenan, Lambert [mailto:Lambert.Heenan at AIG.com] Sent: Tuesday, June 03, 2008 6:51 PM To: 'Access Developers discussion and problem solving' Cc: 'Max Wanadoo' Subject: RE: [AccessD] Optimizing subqueries Would using an Unmatched query be a faster solution that a query with a sub-query? SELECT Table1.ForeignKeyID FROM Table1 LEFT JOIN Table2 ON Table1.ForeignKeyID = Table2.PrimaryKeyID WHERE (((Table2.PrimaryKeyID) Is Null)); Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Tuesday, June 03, 2008 1:23 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Optimizing subqueries Gustav, I need to try to optimize this function into a query (or set of queries). Can you help? When I try to do it, the "NOT IN" clause is so slllloooowww that I resorted to creating this temp table. Max Public Function pfpf() Dim datStart As Date, datEnd As Date Dim sql As String, rst As DAO.Recordset, rst2 As DAO.Recordset, lngRecCt As Long datStart = Time() Debug.Print datStart, sql = "Drop Table tblTempOrgs" On Error Resume Next CurrentDb.Execute (sql) sql = "Create Table tblTempOrgs (FKOrgID Long)" CurrentDb.Execute (sql) sql = "Create Unique Index FKOrgID on tblTempOrgs (FKOrgID)" CurrentDb.Execute (sql) sql = "Select OrgID, FKOrgTypeID from mcmOrganisations Where FKDefaultROID=11200 and (FKOrgTypeID = 1 or FKOrgTypeID = 4 or (FKOrgTypeID > 9 and FKOrgTypeID < 13))" Set rst = CurrentDb.OpenRecordset(sql) rst.MoveFirst Do While Not rst.EOF If DCount("*", "LinkTrusts2Contacts", "FKOrgID=" & rst!OrgID) > 0 Then ' there is a contact If DCount("*", "mcmIncomeTransactions", "FKOrgID=" & rst!OrgID) = 0 Then ' no previous transaction If DCount("*", "tblTrustBids", "FKOrgID=" & rst!OrgID) = 0 Then 'no previous bids sql = "Insert into tblTempOrgs (FKOrgID) values (" & rst!OrgID & ")" CurrentDb.Execute (sql) End If End If End If rst.MoveNext Loop lngRecCt = DCount("*", "tblTempOrgs") datEnd = Time() Debug.Print datEnd, DateDiff("s", datStart, datEnd), lngRecCt Debug.Print "===============================================" End Function -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Tue Jun 3 14:29:17 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 3 Jun 2008 20:29:17 +0100 Subject: [AccessD] SQL handling the Worlds Largest Database. In-Reply-To: <48458692.9080909@colbyconsulting.com> References: <000801c8c5a2$64c0a620$8119fea9@LTVM> <48458692.9080909@colbyconsulting.com> Message-ID: <000d01c8c5b0$1ea69a10$8119fea9@LTVM> Yes, your right John but it makes me wonder what all the transaction are taking place on behalf of all the World Government Agencies...phew! This is only for Yahoo! Max Ps. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, June 03, 2008 7:00 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SQL handling the Worlds Largest Database. LOL, I do think my database is large, but certainly not in the big leagues. There are tons of databases several orders of magnitude bigger than mine. OTOH, mine operates on a server out of my home office and the lights don't dim when I turn it on. John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > JC: > If you think your databases are large, you may care to have a look at this. > Amazing! (database that processes 24 billion events a day.) > > http://blogs.ittoolbox.com/oracle/guide/archives/worlds-largest-databa > se-run > s-on-postgres-24979 > > Max > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Jun 3 14:49:48 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 03 Jun 2008 15:49:48 -0400 Subject: [AccessD] SQL handling the Worlds Largest Database. In-Reply-To: <000d01c8c5b0$1ea69a10$8119fea9@LTVM> References: <000801c8c5a2$64c0a620$8119fea9@LTVM> <48458692.9080909@colbyconsulting.com> <000d01c8c5b0$1ea69a10$8119fea9@LTVM> Message-ID: <4845A05C.3010107@colbyconsulting.com> Yea, and I got news for you, Google is probably an order of magnitude larger than Yahoo. Boggles the mind. 'Course in my case there isn't all that much mind to boggle. John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Yes, your right John but it makes me wonder what all the transaction are > taking place on behalf of all the World Government Agencies...phew! This is > only for Yahoo! > > Max > Ps. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Tuesday, June 03, 2008 7:00 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] SQL handling the Worlds Largest Database. > > LOL, I do think my database is large, but certainly not in the big leagues. > There are tons of databases several orders of magnitude bigger than mine. > > OTOH, mine operates on a server out of my home office and the lights don't > dim when I turn it on. > > John W. Colby > www.ColbyConsulting.com > > > Max Wanadoo wrote: >> JC: >> If you think your databases are large, you may care to have a look at > this. >> Amazing! (database that processes 24 billion events a day.) >> >> http://blogs.ittoolbox.com/oracle/guide/archives/worlds-largest-databa >> se-run >> s-on-postgres-24979 >> >> Max >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From max.wanadoo at gmail.com Tue Jun 3 14:57:47 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 3 Jun 2008 20:57:47 +0100 Subject: [AccessD] SQL handling the Worlds Largest Database. In-Reply-To: <4845A05C.3010107@colbyconsulting.com> References: <000801c8c5a2$64c0a620$8119fea9@LTVM> <48458692.9080909@colbyconsulting.com><000d01c8c5b0$1ea69a10$8119fea9@LTVM> <4845A05C.3010107@colbyconsulting.com> Message-ID: <001901c8c5b4$194dbf90$8119fea9@LTVM> Yes but as I understand it they have TWO servers. Probably got two light bulbs as well! Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, June 03, 2008 8:50 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SQL handling the Worlds Largest Database. Yea, and I got news for you, Google is probably an order of magnitude larger than Yahoo. Boggles the mind. 'Course in my case there isn't all that much mind to boggle. John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Yes, your right John but it makes me wonder what all the transaction > are taking place on behalf of all the World Government > Agencies...phew! This is only for Yahoo! > > Max > Ps. > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Tuesday, June 03, 2008 7:00 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] SQL handling the Worlds Largest Database. > > LOL, I do think my database is large, but certainly not in the big leagues. > There are tons of databases several orders of magnitude bigger than mine. > > OTOH, mine operates on a server out of my home office and the lights > don't dim when I turn it on. > > John W. Colby > www.ColbyConsulting.com > > > Max Wanadoo wrote: >> JC: >> If you think your databases are large, you may care to have a look at > this. >> Amazing! (database that processes 24 billion events a day.) >> >> http://blogs.ittoolbox.com/oracle/guide/archives/worlds-largest-datab >> a >> se-run >> s-on-postgres-24979 >> >> Max >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Tue Jun 3 19:10:32 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Tue, 3 Jun 2008 17:10:32 -0700 Subject: [AccessD] Date Conversion Problem Message-ID: <00a901c8c5d7$67a646d0$0301a8c0@HAL9005> Dear List: I have a license expiration date encrypted in a key. I decode the expiration date when the user starts the app and store it in a string which I then set to a date type variable for display. Works fine here. The expiration date is 7/1/2008. So I assemble the date in a string = "07/01/08". Then I set that equal to a variable of Date type -gdatExpirationDate = gstrExpirationDate - and gdatExpirationDate has 7-1-2008 in it. When I set regional and Language to Chinese (PRC) of Chinese (Taiwan) however, gdatExpirationDate has 2007-1-8. I can't figure out how to make the date display correctly from the string I assemble from the key regardless of the Regional and Language Settings. Is there a way to do this so I don't have to know what the setting is? MTIA Rocky From DWUTKA at Marlow.com Tue Jun 3 19:19:06 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 3 Jun 2008 19:19:06 -0500 Subject: [AccessD] Date Conversion Problem In-Reply-To: <00a901c8c5d7$67a646d0$0301a8c0@HAL9005> Message-ID: Use DateSerial (and I'd recommend using a 4 digit year text format, but here's how to do this with just the two digits) gdatExpirationDate=DateSerial(val(right(gstrExpirationDate,2))+2000,val( Left(gstrExpirationDate,2)),val(mid(gStrExpirationDate,3,2))) That will guarantee you get the right date (until the year 2100 (which is why I recommend 4 digit years)). Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Tuesday, June 03, 2008 7:11 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Date Conversion Problem Dear List: I have a license expiration date encrypted in a key. I decode the expiration date when the user starts the app and store it in a string which I then set to a date type variable for display. Works fine here. The expiration date is 7/1/2008. So I assemble the date in a string = "07/01/08". Then I set that equal to a variable of Date type -gdatExpirationDate = gstrExpirationDate - and gdatExpirationDate has 7-1-2008 in it. When I set regional and Language to Chinese (PRC) of Chinese (Taiwan) however, gdatExpirationDate has 2007-1-8. I can't figure out how to make the date display correctly from the string I assemble from the key regardless of the Regional and Language Settings. Is there a way to do this so I don't have to know what the setting is? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From rockysmolin at bchacc.com Tue Jun 3 19:28:11 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Tue, 3 Jun 2008 17:28:11 -0700 Subject: [AccessD] Date Conversion Problem In-Reply-To: References: <00a901c8c5d7$67a646d0$0301a8c0@HAL9005> Message-ID: <00ba01c8c5d9$df13c8d0$0301a8c0@HAL9005> Damn! Close enough! gstrExpirationDate = 07-01-08 --> gdatExpirationDate = 2008-6-30. Off by a day - very curious but not fatal. Thanks. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: 2008?6?3? 17:19 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Date Conversion Problem Use DateSerial (and I'd recommend using a 4 digit year text format, but here's how to do this with just the two digits) gdatExpirationDate=DateSerial(val(right(gstrExpirationDate,2))+2000,val( Left(gstrExpirationDate,2)),val(mid(gStrExpirationDate,3,2))) That will guarantee you get the right date (until the year 2100 (which is why I recommend 4 digit years)). Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Tuesday, June 03, 2008 7:11 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Date Conversion Problem Dear List: I have a license expiration date encrypted in a key. I decode the expiration date when the user starts the app and store it in a string which I then set to a date type variable for display. Works fine here. The expiration date is 7/1/2008. So I assemble the date in a string = "07/01/08". Then I set that equal to a variable of Date type -gdatExpirationDate = gstrExpirationDate - and gdatExpirationDate has 7-1-2008 in it. When I set regional and Language to Chinese (PRC) of Chinese (Taiwan) however, gdatExpirationDate has 2007-1-8. I can't figure out how to make the date display correctly from the string I assemble from the key regardless of the Regional and Language Settings. Is there a way to do this so I don't have to know what the setting is? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 269.24.6/1480 - Release Date: 3/6/2008 07:00 From rockysmolin at bchacc.com Tue Jun 3 19:35:04 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Tue, 3 Jun 2008 17:35:04 -0700 Subject: [AccessD] FW: Date Conversion Problem Message-ID: <00bb01c8c5da$d55b1e00$0301a8c0@HAL9005> Just set regional setting back to English (US) and got the same thing - string of 07-01-08 converts to 6/30/2008. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: Rocky Smolin at Beach Access Software [mailto:rockysmolin at bchacc.com] Sent: Tuesday, June 03, 2008 5:28 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Date Conversion Problem Damn! Close enough! gstrExpirationDate = 07-01-08 --> gdatExpirationDate = 2008-6-30. Off by a day - very curious but not fatal. Thanks. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: 2008?6?3? 17:19 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Date Conversion Problem Use DateSerial (and I'd recommend using a 4 digit year text format, but here's how to do this with just the two digits) gdatExpirationDate=DateSerial(val(right(gstrExpirationDate,2))+2000,val( Left(gstrExpirationDate,2)),val(mid(gStrExpirationDate,3,2))) That will guarantee you get the right date (until the year 2100 (which is why I recommend 4 digit years)). Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Tuesday, June 03, 2008 7:11 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Date Conversion Problem Dear List: I have a license expiration date encrypted in a key. I decode the expiration date when the user starts the app and store it in a string which I then set to a date type variable for display. Works fine here. The expiration date is 7/1/2008. So I assemble the date in a string = "07/01/08". Then I set that equal to a variable of Date type -gdatExpirationDate = gstrExpirationDate - and gdatExpirationDate has 7-1-2008 in it. When I set regional and Language to Chinese (PRC) of Chinese (Taiwan) however, gdatExpirationDate has 2007-1-8. I can't figure out how to make the date display correctly from the string I assemble from the key regardless of the Regional and Language Settings. Is there a way to do this so I don't have to know what the setting is? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 269.24.6/1480 - Release Date: 3/6/2008 07:00 From DWUTKA at Marlow.com Tue Jun 3 20:06:19 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 3 Jun 2008 20:06:19 -0500 Subject: [AccessD] Date Conversion Problem In-Reply-To: <00ba01c8c5d9$df13c8d0$0301a8c0@HAL9005> Message-ID: Oops, goofed the mid statement...this'll do the trick: gdatExpirationDate=DateSerial(val(right(gstrExpirationDate,2))+2000,val( Left(gstrExpirationDate,2)),val(mid(gStrExpirationDate,4,2))) That will work every time, (except the year part in the future...) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Tuesday, June 03, 2008 7:28 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Date Conversion Problem Damn! Close enough! gstrExpirationDate = 07-01-08 --> gdatExpirationDate = 2008-6-30. Off by a day - very curious but not fatal. Thanks. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: 2008?6?3? 17:19 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Date Conversion Problem Use DateSerial (and I'd recommend using a 4 digit year text format, but here's how to do this with just the two digits) gdatExpirationDate=DateSerial(val(right(gstrExpirationDate,2))+2000,val( Left(gstrExpirationDate,2)),val(mid(gStrExpirationDate,3,2))) That will guarantee you get the right date (until the year 2100 (which is why I recommend 4 digit years)). Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Tuesday, June 03, 2008 7:11 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Date Conversion Problem Dear List: I have a license expiration date encrypted in a key. I decode the expiration date when the user starts the app and store it in a string which I then set to a date type variable for display. Works fine here. The expiration date is 7/1/2008. So I assemble the date in a string = "07/01/08". Then I set that equal to a variable of Date type -gdatExpirationDate = gstrExpirationDate - and gdatExpirationDate has 7-1-2008 in it. When I set regional and Language to Chinese (PRC) of Chinese (Taiwan) however, gdatExpirationDate has 2007-1-8. I can't figure out how to make the date display correctly from the string I assemble from the key regardless of the Regional and Language Settings. Is there a way to do this so I don't have to know what the setting is? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 269.24.6/1480 - Release Date: 3/6/2008 07:00 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From DWUTKA at Marlow.com Tue Jun 3 20:10:29 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 3 Jun 2008 20:10:29 -0500 Subject: [AccessD] FW: Date Conversion Problem In-Reply-To: <00bb01c8c5da$d55b1e00$0301a8c0@HAL9005> Message-ID: Ya, sorry about that, with the goofed mid statement, it was feeding val("-0") into the Day parameter, instead of val("01"). It's a handy way to get the end of the month though: DateSerial(Year(dtSomeDate),Month(dtSomeDate)+1,0) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Tuesday, June 03, 2008 7:35 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Date Conversion Problem Just set regional setting back to English (US) and got the same thing - string of 07-01-08 converts to 6/30/2008. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: Rocky Smolin at Beach Access Software [mailto:rockysmolin at bchacc.com] Sent: Tuesday, June 03, 2008 5:28 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Date Conversion Problem Damn! Close enough! gstrExpirationDate = 07-01-08 --> gdatExpirationDate = 2008-6-30. Off by a day - very curious but not fatal. Thanks. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: 2008?6?3? 17:19 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Date Conversion Problem Use DateSerial (and I'd recommend using a 4 digit year text format, but here's how to do this with just the two digits) gdatExpirationDate=DateSerial(val(right(gstrExpirationDate,2))+2000,val( Left(gstrExpirationDate,2)),val(mid(gStrExpirationDate,3,2))) That will guarantee you get the right date (until the year 2100 (which is why I recommend 4 digit years)). Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Tuesday, June 03, 2008 7:11 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Date Conversion Problem Dear List: I have a license expiration date encrypted in a key. I decode the expiration date when the user starts the app and store it in a string which I then set to a date type variable for display. Works fine here. The expiration date is 7/1/2008. So I assemble the date in a string = "07/01/08". Then I set that equal to a variable of Date type -gdatExpirationDate = gstrExpirationDate - and gdatExpirationDate has 7-1-2008 in it. When I set regional and Language to Chinese (PRC) of Chinese (Taiwan) however, gdatExpirationDate has 2007-1-8. I can't figure out how to make the date display correctly from the string I assemble from the key regardless of the Regional and Language Settings. Is there a way to do this so I don't have to know what the setting is? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 269.24.6/1480 - Release Date: 3/6/2008 07:00 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From rockysmolin at bchacc.com Tue Jun 3 22:03:01 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Tue, 3 Jun 2008 20:03:01 -0700 Subject: [AccessD] Date Conversion Problem In-Reply-To: References: <00ba01c8c5d9$df13c8d0$0301a8c0@HAL9005> Message-ID: <00c101c8c5ef$80736180$0301a8c0@HAL9005> Thanks again. I'm hoping to have to fix that bug in 2100. (I'll be 152. I think it's doable.) Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Tuesday, June 03, 2008 6:06 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Date Conversion Problem Oops, goofed the mid statement...this'll do the trick: gdatExpirationDate=DateSerial(val(right(gstrExpirationDate,2))+2000,val( Left(gstrExpirationDate,2)),val(mid(gStrExpirationDate,4,2))) That will work every time, (except the year part in the future...) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Tuesday, June 03, 2008 7:28 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Date Conversion Problem Damn! Close enough! gstrExpirationDate = 07-01-08 --> gdatExpirationDate = 2008-6-30. Off by a day - very curious but not fatal. Thanks. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: 2008?6?3? 17:19 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Date Conversion Problem Use DateSerial (and I'd recommend using a 4 digit year text format, but here's how to do this with just the two digits) gdatExpirationDate=DateSerial(val(right(gstrExpirationDate,2))+2000,val( Left(gstrExpirationDate,2)),val(mid(gStrExpirationDate,3,2))) That will guarantee you get the right date (until the year 2100 (which is why I recommend 4 digit years)). Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Tuesday, June 03, 2008 7:11 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Date Conversion Problem Dear List: I have a license expiration date encrypted in a key. I decode the expiration date when the user starts the app and store it in a string which I then set to a date type variable for display. Works fine here. The expiration date is 7/1/2008. So I assemble the date in a string = "07/01/08". Then I set that equal to a variable of Date type -gdatExpirationDate = gstrExpirationDate - and gdatExpirationDate has 7-1-2008 in it. When I set regional and Language to Chinese (PRC) of Chinese (Taiwan) however, gdatExpirationDate has 2007-1-8. I can't figure out how to make the date display correctly from the string I assemble from the key regardless of the Regional and Language Settings. Is there a way to do this so I don't have to know what the setting is? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 269.24.6/1480 - Release Date: 3/6/2008 07:00 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 269.24.6/1480 - Release Date: 3/6/2008 07:00 From DWUTKA at Marlow.com Tue Jun 3 22:45:34 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 3 Jun 2008 22:45:34 -0500 Subject: [AccessD] Date Conversion Problem In-Reply-To: <00c101c8c5ef$80736180$0301a8c0@HAL9005> Message-ID: LOL, I'm rooting for ya! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Tuesday, June 03, 2008 10:03 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Date Conversion Problem Thanks again. I'm hoping to have to fix that bug in 2100. (I'll be 152. I think it's doable.) Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Tuesday, June 03, 2008 6:06 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Date Conversion Problem Oops, goofed the mid statement...this'll do the trick: gdatExpirationDate=DateSerial(val(right(gstrExpirationDate,2))+2000,val( Left(gstrExpirationDate,2)),val(mid(gStrExpirationDate,4,2))) That will work every time, (except the year part in the future...) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Tuesday, June 03, 2008 7:28 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Date Conversion Problem Damn! Close enough! gstrExpirationDate = 07-01-08 --> gdatExpirationDate = 2008-6-30. Off by a day - very curious but not fatal. Thanks. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: 2008?6?3? 17:19 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Date Conversion Problem Use DateSerial (and I'd recommend using a 4 digit year text format, but here's how to do this with just the two digits) gdatExpirationDate=DateSerial(val(right(gstrExpirationDate,2))+2000,val( Left(gstrExpirationDate,2)),val(mid(gStrExpirationDate,3,2))) That will guarantee you get the right date (until the year 2100 (which is why I recommend 4 digit years)). Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Tuesday, June 03, 2008 7:11 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Date Conversion Problem Dear List: I have a license expiration date encrypted in a key. I decode the expiration date when the user starts the app and store it in a string which I then set to a date type variable for display. Works fine here. The expiration date is 7/1/2008. So I assemble the date in a string = "07/01/08". Then I set that equal to a variable of Date type -gdatExpirationDate = gstrExpirationDate - and gdatExpirationDate has 7-1-2008 in it. When I set regional and Language to Chinese (PRC) of Chinese (Taiwan) however, gdatExpirationDate has 2007-1-8. I can't figure out how to make the date display correctly from the string I assemble from the key regardless of the Regional and Language Settings. Is there a way to do this so I don't have to know what the setting is? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 269.24.6/1480 - Release Date: 3/6/2008 07:00 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 269.24.6/1480 - Release Date: 3/6/2008 07:00 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From rockysmolin at bchacc.com Tue Jun 3 22:54:51 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Tue, 3 Jun 2008 20:54:51 -0700 Subject: [AccessD] Date Conversion Problem In-Reply-To: References: <00c101c8c5ef$80736180$0301a8c0@HAL9005> Message-ID: <00ce01c8c5f6$bde04f40$0301a8c0@HAL9005> Wow. Access 2100. Just think of all the creative new bugs. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Tuesday, June 03, 2008 8:46 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Date Conversion Problem LOL, I'm rooting for ya! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Tuesday, June 03, 2008 10:03 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Date Conversion Problem Thanks again. I'm hoping to have to fix that bug in 2100. (I'll be 152. I think it's doable.) Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Tuesday, June 03, 2008 6:06 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Date Conversion Problem Oops, goofed the mid statement...this'll do the trick: gdatExpirationDate=DateSerial(val(right(gstrExpirationDate,2))+2000,val( Left(gstrExpirationDate,2)),val(mid(gStrExpirationDate,4,2))) That will work every time, (except the year part in the future...) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Tuesday, June 03, 2008 7:28 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Date Conversion Problem Damn! Close enough! gstrExpirationDate = 07-01-08 --> gdatExpirationDate = 2008-6-30. Off by a day - very curious but not fatal. Thanks. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: 2008?6?3? 17:19 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Date Conversion Problem Use DateSerial (and I'd recommend using a 4 digit year text format, but here's how to do this with just the two digits) gdatExpirationDate=DateSerial(val(right(gstrExpirationDate,2))+2000,val( Left(gstrExpirationDate,2)),val(mid(gStrExpirationDate,3,2))) That will guarantee you get the right date (until the year 2100 (which is why I recommend 4 digit years)). Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Tuesday, June 03, 2008 7:11 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Date Conversion Problem Dear List: I have a license expiration date encrypted in a key. I decode the expiration date when the user starts the app and store it in a string which I then set to a date type variable for display. Works fine here. The expiration date is 7/1/2008. So I assemble the date in a string = "07/01/08". Then I set that equal to a variable of Date type -gdatExpirationDate = gstrExpirationDate - and gdatExpirationDate has 7-1-2008 in it. When I set regional and Language to Chinese (PRC) of Chinese (Taiwan) however, gdatExpirationDate has 2007-1-8. I can't figure out how to make the date display correctly from the string I assemble from the key regardless of the Regional and Language Settings. Is there a way to do this so I don't have to know what the setting is? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 269.24.6/1480 - Release Date: 3/6/2008 07:00 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 269.24.6/1480 - Release Date: 3/6/2008 07:00 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 269.24.6/1480 - Release Date: 3/6/2008 07:00 From rockysmolin at bchacc.com Tue Jun 3 23:09:26 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Tue, 3 Jun 2008 21:09:26 -0700 Subject: [AccessD] FW: Date Conversion Problem In-Reply-To: References: <00bb01c8c5da$d55b1e00$0301a8c0@HAL9005> Message-ID: <00d401c8c5f8$c746db10$0301a8c0@HAL9005> No I think 4,2 was right since the string contained delimiters mm/dd/yy which would make the day part positions 4 and 5, no? In any event, I'm getting the right result now with 4,2. Go figure. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Tuesday, June 03, 2008 6:10 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FW: Date Conversion Problem Ya, sorry about that, with the goofed mid statement, it was feeding val("-0") into the Day parameter, instead of val("01"). It's a handy way to get the end of the month though: DateSerial(Year(dtSomeDate),Month(dtSomeDate)+1,0) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Tuesday, June 03, 2008 7:35 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Date Conversion Problem Just set regional setting back to English (US) and got the same thing - string of 07-01-08 converts to 6/30/2008. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: Rocky Smolin at Beach Access Software [mailto:rockysmolin at bchacc.com] Sent: Tuesday, June 03, 2008 5:28 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Date Conversion Problem Damn! Close enough! gstrExpirationDate = 07-01-08 --> gdatExpirationDate = 2008-6-30. Off by a day - very curious but not fatal. Thanks. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: 2008?6?3? 17:19 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Date Conversion Problem Use DateSerial (and I'd recommend using a 4 digit year text format, but here's how to do this with just the two digits) gdatExpirationDate=DateSerial(val(right(gstrExpirationDate,2))+2000,val( Left(gstrExpirationDate,2)),val(mid(gStrExpirationDate,3,2))) That will guarantee you get the right date (until the year 2100 (which is why I recommend 4 digit years)). Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Tuesday, June 03, 2008 7:11 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Date Conversion Problem Dear List: I have a license expiration date encrypted in a key. I decode the expiration date when the user starts the app and store it in a string which I then set to a date type variable for display. Works fine here. The expiration date is 7/1/2008. So I assemble the date in a string = "07/01/08". Then I set that equal to a variable of Date type -gdatExpirationDate = gstrExpirationDate - and gdatExpirationDate has 7-1-2008 in it. When I set regional and Language to Chinese (PRC) of Chinese (Taiwan) however, gdatExpirationDate has 2007-1-8. I can't figure out how to make the date display correctly from the string I assemble from the key regardless of the Regional and Language Settings. Is there a way to do this so I don't have to know what the setting is? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 269.24.6/1480 - Release Date: 3/6/2008 07:00 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 269.24.6/1480 - Release Date: 3/6/2008 07:00 From DWUTKA at Marlow.com Tue Jun 3 23:46:34 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 3 Jun 2008 23:46:34 -0500 Subject: [AccessD] Date Conversion Problem In-Reply-To: <00ce01c8c5f6$bde04f40$0301a8c0@HAL9005> Message-ID: I'll put $5 down that they'll still be claiming that they will be phasing out Jet... ;) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Tuesday, June 03, 2008 10:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Date Conversion Problem Wow. Access 2100. Just think of all the creative new bugs. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Tuesday, June 03, 2008 8:46 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Date Conversion Problem LOL, I'm rooting for ya! Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Tuesday, June 03, 2008 10:03 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Date Conversion Problem Thanks again. I'm hoping to have to fix that bug in 2100. (I'll be 152. I think it's doable.) Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Tuesday, June 03, 2008 6:06 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Date Conversion Problem Oops, goofed the mid statement...this'll do the trick: gdatExpirationDate=DateSerial(val(right(gstrExpirationDate,2))+2000,val( Left(gstrExpirationDate,2)),val(mid(gStrExpirationDate,4,2))) That will work every time, (except the year part in the future...) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Tuesday, June 03, 2008 7:28 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Date Conversion Problem Damn! Close enough! gstrExpirationDate = 07-01-08 --> gdatExpirationDate = 2008-6-30. Off by a day - very curious but not fatal. Thanks. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: 2008?6?3? 17:19 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Date Conversion Problem Use DateSerial (and I'd recommend using a 4 digit year text format, but here's how to do this with just the two digits) gdatExpirationDate=DateSerial(val(right(gstrExpirationDate,2))+2000,val( Left(gstrExpirationDate,2)),val(mid(gStrExpirationDate,3,2))) That will guarantee you get the right date (until the year 2100 (which is why I recommend 4 digit years)). Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Tuesday, June 03, 2008 7:11 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Date Conversion Problem Dear List: I have a license expiration date encrypted in a key. I decode the expiration date when the user starts the app and store it in a string which I then set to a date type variable for display. Works fine here. The expiration date is 7/1/2008. So I assemble the date in a string = "07/01/08". Then I set that equal to a variable of Date type -gdatExpirationDate = gstrExpirationDate - and gdatExpirationDate has 7-1-2008 in it. When I set regional and Language to Chinese (PRC) of Chinese (Taiwan) however, gdatExpirationDate has 2007-1-8. I can't figure out how to make the date display correctly from the string I assemble from the key regardless of the Regional and Language Settings. Is there a way to do this so I don't have to know what the setting is? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 269.24.6/1480 - Release Date: 3/6/2008 07:00 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 269.24.6/1480 - Release Date: 3/6/2008 07:00 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 269.24.6/1480 - Release Date: 3/6/2008 07:00 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From DWUTKA at Marlow.com Tue Jun 3 23:47:45 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 3 Jun 2008 23:47:45 -0500 Subject: [AccessD] FW: Date Conversion Problem In-Reply-To: <00d401c8c5f8$c746db10$0301a8c0@HAL9005> Message-ID: That's starting at position 4 (3 was getting the dash), for a length of 2. ie, 4,2 ;) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Tuesday, June 03, 2008 11:09 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] FW: Date Conversion Problem No I think 4,2 was right since the string contained delimiters mm/dd/yy which would make the day part positions 4 and 5, no? In any event, I'm getting the right result now with 4,2. Go figure. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Tuesday, June 03, 2008 6:10 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] FW: Date Conversion Problem Ya, sorry about that, with the goofed mid statement, it was feeding val("-0") into the Day parameter, instead of val("01"). It's a handy way to get the end of the month though: DateSerial(Year(dtSomeDate),Month(dtSomeDate)+1,0) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Tuesday, June 03, 2008 7:35 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] FW: Date Conversion Problem Just set regional setting back to English (US) and got the same thing - string of 07-01-08 converts to 6/30/2008. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: Rocky Smolin at Beach Access Software [mailto:rockysmolin at bchacc.com] Sent: Tuesday, June 03, 2008 5:28 PM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Date Conversion Problem Damn! Close enough! gstrExpirationDate = 07-01-08 --> gdatExpirationDate = 2008-6-30. Off by a day - very curious but not fatal. Thanks. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: 2008?6?3? 17:19 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Date Conversion Problem Use DateSerial (and I'd recommend using a 4 digit year text format, but here's how to do this with just the two digits) gdatExpirationDate=DateSerial(val(right(gstrExpirationDate,2))+2000,val( Left(gstrExpirationDate,2)),val(mid(gStrExpirationDate,3,2))) That will guarantee you get the right date (until the year 2100 (which is why I recommend 4 digit years)). Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Tuesday, June 03, 2008 7:11 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Date Conversion Problem Dear List: I have a license expiration date encrypted in a key. I decode the expiration date when the user starts the app and store it in a string which I then set to a date type variable for display. Works fine here. The expiration date is 7/1/2008. So I assemble the date in a string = "07/01/08". Then I set that equal to a variable of Date type -gdatExpirationDate = gstrExpirationDate - and gdatExpirationDate has 7-1-2008 in it. When I set regional and Language to Chinese (PRC) of Chinese (Taiwan) however, gdatExpirationDate has 2007-1-8. I can't figure out how to make the date display correctly from the string I assemble from the key regardless of the Regional and Language Settings. Is there a way to do this so I don't have to know what the setting is? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 269.24.6/1480 - Release Date: 3/6/2008 07:00 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 269.24.6/1480 - Release Date: 3/6/2008 07:00 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From Gustav at cactus.dk Wed Jun 4 01:47:50 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 04 Jun 2008 08:47:50 +0200 Subject: [AccessD] Date Conversion Problem Message-ID: Hi Rocky > So I assemble the date in a string = "07/01/08". > Then I set that equal to a variable of Date type .. This is where you goof. To carry out the implicit conversion of this, Access first looks up the format of the regional settings to find out if this string could represent a date. As this matches, a conversion is done. Drew loves DateSerial and it really is nice because the output is very predictable and it allows you to create date values from components. However, here it is not needed - just build your date string following the ISO 8601 format. It will never fail (well, maybe, if the regional format is yyyy-dd-mm but this is nowhere in use): gstrExpirationDate = "2008-07-01" gdatExpirationDate = gstrExpirationDate or rather: gdatExpirationDate = CDate(gstrExpirationDate) You can just as well get used to this format ... all docs on the new datetime data types of SQL Server 2008 uses the ISO format. /gustav >>> rockysmolin at bchacc.com 04-06-2008 02:10 >>> Dear List: I have a license expiration date encrypted in a key. I decode the expiration date when the user starts the app and store it in a string which I then set to a date type variable for display. Works fine here. The expiration date is 7/1/2008. So I assemble the date in a string = "07/01/08". Then I set that equal to a variable of Date type -gdatExpirationDate = gstrExpirationDate - and gdatExpirationDate has 7-1-2008 in it. When I set regional and Language to Chinese (PRC) of Chinese (Taiwan) however, gdatExpirationDate has 2007-1-8. I can't figure out how to make the date display correctly from the string I assemble from the key regardless of the Regional and Language Settings. Is there a way to do this so I don't have to know what the setting is? MTIA Rocky From DWUTKA at Marlow.com Wed Jun 4 02:23:08 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Wed, 4 Jun 2008 02:23:08 -0500 Subject: [AccessD] Date Conversion Problem In-Reply-To: Message-ID: True, I do love DateSerial, I guess because it's so precise. Would that format you suggested fail with a custom regional format? (like YYYY-DD-MM) Doesn't Windows allow custom formats? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, June 04, 2008 1:48 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Date Conversion Problem Hi Rocky > So I assemble the date in a string = "07/01/08". > Then I set that equal to a variable of Date type .. This is where you goof. To carry out the implicit conversion of this, Access first looks up the format of the regional settings to find out if this string could represent a date. As this matches, a conversion is done. Drew loves DateSerial and it really is nice because the output is very predictable and it allows you to create date values from components. However, here it is not needed - just build your date string following the ISO 8601 format. It will never fail (well, maybe, if the regional format is yyyy-dd-mm but this is nowhere in use): gstrExpirationDate = "2008-07-01" gdatExpirationDate = gstrExpirationDate or rather: gdatExpirationDate = CDate(gstrExpirationDate) You can just as well get used to this format ... all docs on the new datetime data types of SQL Server 2008 uses the ISO format. /gustav >>> rockysmolin at bchacc.com 04-06-2008 02:10 >>> Dear List: I have a license expiration date encrypted in a key. I decode the expiration date when the user starts the app and store it in a string which I then set to a date type variable for display. Works fine here. The expiration date is 7/1/2008. So I assemble the date in a string = "07/01/08". Then I set that equal to a variable of Date type -gdatExpirationDate = gstrExpirationDate - and gdatExpirationDate has 7-1-2008 in it. When I set regional and Language to Chinese (PRC) of Chinese (Taiwan) however, gdatExpirationDate has 2007-1-8. I can't figure out how to make the date display correctly from the string I assemble from the key regardless of the Regional and Language Settings. Is there a way to do this so I don't have to know what the setting is? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From Gustav at cactus.dk Wed Jun 4 02:41:31 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 04 Jun 2008 09:41:31 +0200 Subject: [AccessD] Date Conversion Problem Message-ID: Hi Drew Yes, but as I wrote, I don't know of any place or situation where it could be or should be in use. Perhaps at Gonzo but would he buy Rocky's app? Also: http://en.wikipedia.org/wiki/Calendar_date /gustav >>> DWUTKA at marlow.com 04-06-2008 09:23 >>> True, I do love DateSerial, I guess because it's so precise. Would that format you suggested fail with a custom regional format? (like YYYY-DD-MM) Doesn't Windows allow custom formats? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, June 04, 2008 1:48 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Date Conversion Problem Hi Rocky > So I assemble the date in a string = "07/01/08". > Then I set that equal to a variable of Date type .. This is where you goof. To carry out the implicit conversion of this, Access first looks up the format of the regional settings to find out if this string could represent a date. As this matches, a conversion is done. Drew loves DateSerial and it really is nice because the output is very predictable and it allows you to create date values from components. However, here it is not needed - just build your date string following the ISO 8601 format. It will never fail (well, maybe, if the regional format is yyyy-dd-mm but this is nowhere in use): gstrExpirationDate = "2008-07-01" gdatExpirationDate = gstrExpirationDate or rather: gdatExpirationDate = CDate(gstrExpirationDate) You can just as well get used to this format ... all docs on the new datetime data types of SQL Server 2008 uses the ISO format. /gustav >>> rockysmolin at bchacc.com 04-06-2008 02:10 >>> Dear List: I have a license expiration date encrypted in a key. I decode the expiration date when the user starts the app and store it in a string which I then set to a date type variable for display. Works fine here. The expiration date is 7/1/2008. So I assemble the date in a string = "07/01/08". Then I set that equal to a variable of Date type -gdatExpirationDate = gstrExpirationDate - and gdatExpirationDate has 7-1-2008 in it. When I set regional and Language to Chinese (PRC) of Chinese (Taiwan) however, gdatExpirationDate has 2007-1-8. I can't figure out how to make the date display correctly from the string I assemble from the key regardless of the Regional and Language Settings. Is there a way to do this so I don't have to know what the setting is? MTIA Rocky From DWUTKA at Marlow.com Wed Jun 4 02:55:27 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Wed, 4 Jun 2008 02:55:27 -0500 Subject: [AccessD] Date Conversion Problem In-Reply-To: Message-ID: Don't know, but that's one of the reasons I'm 'in love' with DateSerial, avoids those remote possibilities altogether. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, June 04, 2008 2:42 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Date Conversion Problem Hi Drew Yes, but as I wrote, I don't know of any place or situation where it could be or should be in use. Perhaps at Gonzo but would he buy Rocky's app? Also: http://en.wikipedia.org/wiki/Calendar_date /gustav >>> DWUTKA at marlow.com 04-06-2008 09:23 >>> True, I do love DateSerial, I guess because it's so precise. Would that format you suggested fail with a custom regional format? (like YYYY-DD-MM) Doesn't Windows allow custom formats? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, June 04, 2008 1:48 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Date Conversion Problem Hi Rocky > So I assemble the date in a string = "07/01/08". > Then I set that equal to a variable of Date type .. This is where you goof. To carry out the implicit conversion of this, Access first looks up the format of the regional settings to find out if this string could represent a date. As this matches, a conversion is done. Drew loves DateSerial and it really is nice because the output is very predictable and it allows you to create date values from components. However, here it is not needed - just build your date string following the ISO 8601 format. It will never fail (well, maybe, if the regional format is yyyy-dd-mm but this is nowhere in use): gstrExpirationDate = "2008-07-01" gdatExpirationDate = gstrExpirationDate or rather: gdatExpirationDate = CDate(gstrExpirationDate) You can just as well get used to this format ... all docs on the new datetime data types of SQL Server 2008 uses the ISO format. /gustav >>> rockysmolin at bchacc.com 04-06-2008 02:10 >>> Dear List: I have a license expiration date encrypted in a key. I decode the expiration date when the user starts the app and store it in a string which I then set to a date type variable for display. Works fine here. The expiration date is 7/1/2008. So I assemble the date in a string = "07/01/08". Then I set that equal to a variable of Date type -gdatExpirationDate = gstrExpirationDate - and gdatExpirationDate has 7-1-2008 in it. When I set regional and Language to Chinese (PRC) of Chinese (Taiwan) however, gdatExpirationDate has 2007-1-8. I can't figure out how to make the date display correctly from the string I assemble from the key regardless of the Regional and Language Settings. Is there a way to do this so I don't have to know what the setting is? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From Chris.Foote at uk.thalesgroup.com Wed Jun 4 05:17:00 2008 From: Chris.Foote at uk.thalesgroup.com (Foote, Chris) Date: Wed, 4 Jun 2008 11:17:00 +0100 Subject: [AccessD] Import data from web site into Access Message-ID: <7303A459C921B5499AF732CCEEAD2B7F064D1546@craws161660.int.rdel.co.uk> Good day/evening/night all! One of my work mates is trying to import data from a web page into Access. Excel has a function called Web Query that can extract data from a specific place in a web page. I've found a discussion on tek-tips () that shows how to import a Web Query from an external Excel file into Access, but is it possible to do this directly. I vaguely remember somebody on the list was getting exchange rate data(?) from an external website for use in Access - but I cannot remember who, what, or when ;-( TIA! Chris Foote From Gustav at cactus.dk Wed Jun 4 06:46:20 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Wed, 04 Jun 2008 13:46:20 +0200 Subject: [AccessD] Import data from web site into Access Message-ID: Hi Chris It could have been the thread "pull data from web page" from mid December last year. Or, to download a page or a file: Private Declare Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA" ( _ ByVal pCaller As Long, _ ByVal szURL As String, _ ByVal szFileName As String, _ ByVal dwReserved As Long, _ ByVal lpfnCB As Long) _ As Long Public Function DownloadFile( _ ByVal strURL As String, _ ByVal strLocalFilename As String) _ As Long ' Download file or page with public access from the web. ' 2004-12-17. Cactus Data ApS, CPH. ' Usage, download a file: ' lngRet = DownloadFile("http://www.databaseadvisors.com/Graphics/conf2002/2002ConferencePicsbySmolin/images/dba02smolin27.jpg", "c:\happybassett.jpg") ' ' Usage, download a page: ' lngRet = DownloadFile("http://www.databaseadvisors.com/conf2002/conf200202.asp", "c:\dbaconference.htm") ' Returns 0 if success, error code if not. ' Error codes: ' -2146697210 "file not found". ' -2146697211 "domain not found". ' Limitation. ' Does not check if local file was created successfully. Dim lngRetVal As Long lngRetVal = URLDownloadToFile(0, strURL & vbNullChar, strLocalFilename & vbNullChar, 0, 0) DownloadFile = lngRetVal End Function You are not telling what to download, but remember that Access can directly attach a table in a downloaded HTML file. /gustav >>> Chris.Foote at uk.thalesgroup.com 04-06-2008 12:17 >>> Good day/evening/night all! One of my work mates is trying to import data from a web page into Access. Excel has a function called Web Query that can extract data from a specific place in a web page. I've found a discussion on tek-tips () that shows how to import a Web Query from an external Excel file into Access, but is it possible to do this directly. I vaguely remember somebody on the list was getting exchange rate data(?) from an external website for use in Access - but I cannot remember who, what, or when ;-( TIA! Chris Foote -- From max.wanadoo at gmail.com Wed Jun 4 11:28:54 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 4 Jun 2008 17:28:54 +0100 Subject: [AccessD] OT: Outlook Accounts In-Reply-To: References: Message-ID: <000f01c8c660$15caee40$8119fea9@LTVM> Hi List, I am going to have to bite the bullet and clear down and reinstall everything on my laptop. One thing that has always caused me problems in the past is the lack of any Export/Import facility for Outlook Email Accounts. Can anybody suggest a method of doing this without having to go through all the accounts and writing the setting down. Thanks Max From jwcolby at colbyconsulting.com Wed Jun 4 11:46:03 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 04 Jun 2008 12:46:03 -0400 Subject: [AccessD] OT: Outlook Accounts In-Reply-To: <000f01c8c660$15caee40$8119fea9@LTVM> References: <000f01c8c660$15caee40$8119fea9@LTVM> Message-ID: <4846C6CB.7080306@colbyconsulting.com> Max, This is the precise reason I finally abandoned Outlook in favor of Thunderbird. I just got tired of the idiocy of no export method to transfer from machine to machine. John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Hi List, > I am going to have to bite the bullet and clear down and reinstall > everything on my laptop. One thing that has always caused me problems in > the past is the lack of any Export/Import facility for Outlook Email > Accounts. > Can anybody suggest a method of doing this without having to go through all > the accounts and writing the setting down. > > Thanks > Max > From rockysmolin at bchacc.com Wed Jun 4 12:02:11 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Wed, 4 Jun 2008 10:02:11 -0700 Subject: [AccessD] Feedback Time Message-ID: <001a01c8c664$bae554c0$0301a8c0@HAL9005> Dear List: Lister Karen Rosenstiel has redone my Beach Access Software web site and we would both be grateful for anyone who wants to take a few minutes to look at it and give us some feedback on what you like, what you don't like. It's in a temporary folder http://www.bchacc.com/beachtemp/index.html right now. Hoping to go live shortly. The old web site - my homegrown attempt at a web presence - is at http://www.bchacc.com so you can see what it looks like now (not too pretty). You can reply offline to Karen (krosenstiel at comcast.net) and myself (rockysmolin at bchacc.com) or to the list which I think would be of value to others on the list since many of us need our own web sites and could profit from the combined advice of the list. So, many thanks in advance. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com From krosenstiel at comcast.net Wed Jun 4 12:12:54 2008 From: krosenstiel at comcast.net (krosenstiel at comcast.net) Date: Wed, 04 Jun 2008 17:12:54 +0000 Subject: [AccessD] Feedback Time Message-ID: <060420081712.12013.4846CD16000745E400002EED2215561264040A079B9C020A9C019D05@comcast.net> Arrrrrgh! The home page is breaking on IE version 6. The side lines aren't showing. I'll work on it tonight. OK, now the rest of you can take potshots! -- Karen Rosenstiel Seattle WA USA -------------- Original message ---------------------- From: "Rocky Smolin at Beach Access Software" > Dear List: > > Lister Karen Rosenstiel has redone my Beach Access Software web site and we > would both be grateful for anyone who wants to take a few minutes to look at > it and give us some feedback on what you like, what you don't like. > > It's in a temporary folder http://www.bchacc.com/beachtemp/index.html right > now. Hoping to go live shortly. > > The old web site - my homegrown attempt at a web presence - is at > http://www.bchacc.com so you can see what it looks like now (not too > pretty). > > You can reply offline to Karen (krosenstiel at comcast.net) and myself > (rockysmolin at bchacc.com) or to the list which I think would be of value to > others on the list since many of us need our own web sites and could profit > from the combined advice of the list. > > So, many thanks in advance. > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > www.e-z-mrp.com > > www.bchacc.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 Jun 4 12:22:19 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 04 Jun 2008 13:22:19 -0400 Subject: [AccessD] Feedback Time In-Reply-To: <060420081712.12013.4846CD16000745E400002EED2215561264040A079B9C020A9C019D05@comcast.net> References: <060420081712.12013.4846CD16000745E400002EED2215561264040A079B9C020A9C019D05@comcast.net> Message-ID: <4846CF4B.1040107@colbyconsulting.com> What is IE? ;-) Personally I find the roll up text on the left distracting. It is catchy but with no control it was moving as I was reading. I think a "next / previous" metaphor would work better. John W. Colby www.ColbyConsulting.com krosenstiel at comcast.net wrote: > Arrrrrgh! The home page is breaking on IE version 6. The side lines aren't showing. I'll work on it tonight. > > OK, now the rest of you can take potshots! > > -- > Karen Rosenstiel > Seattle WA USA > > -------------- Original message ---------------------- > From: "Rocky Smolin at Beach Access Software" >> Dear List: >> >> Lister Karen Rosenstiel has redone my Beach Access Software web site and we >> would both be grateful for anyone who wants to take a few minutes to look at >> it and give us some feedback on what you like, what you don't like. >> >> It's in a temporary folder http://www.bchacc.com/beachtemp/index.html right >> now. Hoping to go live shortly. >> >> The old web site - my homegrown attempt at a web presence - is at >> http://www.bchacc.com so you can see what it looks like now (not too >> pretty). >> >> You can reply offline to Karen (krosenstiel at comcast.net) and myself >> (rockysmolin at bchacc.com) or to the list which I think would be of value to >> others on the list since many of us need our own web sites and could profit >> from the combined advice of the list. >> >> So, many thanks in advance. >> >> Rocky Smolin >> >> Beach Access Software >> >> 858-259-4334 >> >> www.e-z-mrp.com >> >> www.bchacc.com >> >> >> >> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > From max.wanadoo at gmail.com Wed Jun 4 12:47:25 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 4 Jun 2008 18:47:25 +0100 Subject: [AccessD] Feedback Time In-Reply-To: <001a01c8c664$bae554c0$0301a8c0@HAL9005> References: <001a01c8c664$bae554c0$0301a8c0@HAL9005> Message-ID: <002201c8c66b$0e1cade0$8119fea9@LTVM> Rocky, This is going to sound so negative and I apologise in advance. Basically I don't like it. Seems about 2-5 years old technology. Clunky. The roll window on the left does what it want to do. It needs to be under the user control. When you click the text menu (list of items) above it, the content does not always appear to be relevant. It needs to be relevant, but honestly I would remove it altogether. Change the headings along the top menu bar. Home -> Overview About -> The Author Project -> This I did like. However, I think you should remove the repeating text that appears before the detail for the project clicked on. It might be best to move it to Overview (sorry, Home). Products -> Change this to the same functionality that comes under Projects. Currently it is just a clucky html page. Misc. 1. I think you need to update your photo. Clearly you are using one taken many years ago! 2. I would not put my home address on the web (if that is your home address). First contact from a web site will be by email/form so you only need to put contact information not address information. 3. Where is the Contact Tab? You need one with contact information and also a clickable Email address which opens the users email client when clicked on. You might also consider putting a Form on there so the user can give some information on why they are contacting you...I am interested in [drop down box] etc. I hope this helps and sorry again if it sounds negative but I am trying to give positive feedback from my viewpoint. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Wednesday, June 04, 2008 6:02 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Feedback Time Dear List: Lister Karen Rosenstiel has redone my Beach Access Software web site and we would both be grateful for anyone who wants to take a few minutes to look at it and give us some feedback on what you like, what you don't like. It's in a temporary folder http://www.bchacc.com/beachtemp/index.html right now. Hoping to go live shortly. The old web site - my homegrown attempt at a web presence - is at http://www.bchacc.com so you can see what it looks like now (not too pretty). You can reply offline to Karen (krosenstiel at comcast.net) and myself (rockysmolin at bchacc.com) or to the list which I think would be of value to others on the list since many of us need our own web sites and could profit from the combined advice of the list. So, many thanks in advance. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Wed Jun 4 13:00:49 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Wed, 4 Jun 2008 11:00:49 -0700 Subject: [AccessD] Feedback Time In-Reply-To: <4846CF4B.1040107@colbyconsulting.com> References: <060420081712.12013.4846CD16000745E400002EED2215561264040A079B9C020A9C019D05@comcast.net> <4846CF4B.1040107@colbyconsulting.com> Message-ID: <003501c8c66c$ebc25bd0$0301a8c0@HAL9005> Obscure form of internet access popular in the late 20th century. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, June 04, 2008 10:22 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Feedback Time What is IE? ;-) Personally I find the roll up text on the left distracting. It is catchy but with no control it was moving as I was reading. I think a "next / previous" metaphor would work better. John W. Colby www.ColbyConsulting.com krosenstiel at comcast.net wrote: > Arrrrrgh! The home page is breaking on IE version 6. The side lines aren't showing. I'll work on it tonight. > > OK, now the rest of you can take potshots! > > -- > Karen Rosenstiel > Seattle WA USA > > -------------- Original message ---------------------- > From: "Rocky Smolin at Beach Access Software" >> Dear List: >> >> Lister Karen Rosenstiel has redone my Beach Access Software web site >> and we would both be grateful for anyone who wants to take a few >> minutes to look at it and give us some feedback on what you like, what you don't like. >> >> It's in a temporary folder http://www.bchacc.com/beachtemp/index.html >> right now. Hoping to go live shortly. >> >> The old web site - my homegrown attempt at a web presence - is at >> http://www.bchacc.com so you can see what it looks like now (not too >> pretty). >> >> You can reply offline to Karen (krosenstiel at comcast.net) and myself >> (rockysmolin at bchacc.com) or to the list which I think would be of >> value to others on the list since many of us need our own web sites >> and could profit from the combined advice of the list. >> >> So, many thanks in advance. >> >> Rocky Smolin >> >> Beach Access Software >> >> 858-259-4334 >> >> www.e-z-mrp.com >> >> www.bchacc.com >> >> >> >> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 269.24.6/1482 - Release Date: 4/6/2008 07:10 From rockysmolin at bchacc.com Wed Jun 4 13:02:35 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Wed, 4 Jun 2008 11:02:35 -0700 Subject: [AccessD] Feedback Time In-Reply-To: <002201c8c66b$0e1cade0$8119fea9@LTVM> References: <001a01c8c664$bae554c0$0301a8c0@HAL9005> <002201c8c66b$0e1cade0$8119fea9@LTVM> Message-ID: <003601c8c66d$2baf68f0$0301a8c0@HAL9005> Not negative - welcome. But "Clearly you are using one taken many years ago!" now THAT hurts!!! :) Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Wednesday, June 04, 2008 10:47 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feedback Time Rocky, This is going to sound so negative and I apologise in advance. Basically I don't like it. Seems about 2-5 years old technology. Clunky. The roll window on the left does what it want to do. It needs to be under the user control. When you click the text menu (list of items) above it, the content does not always appear to be relevant. It needs to be relevant, but honestly I would remove it altogether. Change the headings along the top menu bar. Home -> Overview About -> The Author Project -> This I did like. However, I think you should remove the repeating text that appears before the detail for the project clicked on. It might be best to move it to Overview (sorry, Home). Products -> Change this to the same functionality that comes under Projects. Currently it is just a clucky html page. Misc. 1. I think you need to update your photo. Clearly you are using one taken many years ago! 2. I would not put my home address on the web (if that is your home address). First contact from a web site will be by email/form so you only need to put contact information not address information. 3. Where is the Contact Tab? You need one with contact information and also a clickable Email address which opens the users email client when clicked on. You might also consider putting a Form on there so the user can give some information on why they are contacting you...I am interested in [drop down box] etc. I hope this helps and sorry again if it sounds negative but I am trying to give positive feedback from my viewpoint. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Wednesday, June 04, 2008 6:02 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Feedback Time Dear List: Lister Karen Rosenstiel has redone my Beach Access Software web site and we would both be grateful for anyone who wants to take a few minutes to look at it and give us some feedback on what you like, what you don't like. It's in a temporary folder http://www.bchacc.com/beachtemp/index.html right now. Hoping to go live shortly. The old web site - my homegrown attempt at a web presence - is at http://www.bchacc.com so you can see what it looks like now (not too pretty). You can reply offline to Karen (krosenstiel at comcast.net) and myself (rockysmolin at bchacc.com) or to the list which I think would be of value to others on the list since many of us need our own web sites and could profit from the combined advice of the list. So, many thanks in advance. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 269.24.6/1482 - Release Date: 4/6/2008 07:10 From markamatte at hotmail.com Wed Jun 4 13:12:03 2008 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 4 Jun 2008 18:12:03 +0000 Subject: [AccessD] Feedback Time In-Reply-To: <003601c8c66d$2baf68f0$0301a8c0@HAL9005> References: <001a01c8c664$bae554c0$0301a8c0@HAL9005> <002201c8c66b$0e1cade0$8119fea9@LTVM> <003601c8c66d$2baf68f0$0301a8c0@HAL9005> Message-ID: Rocky, I'm using IE6...and there are a couple of things that I noticed: 1. I don't think there is enough info on the page to warrant scrolling. 2. "What Our Customers Are Saying.." I was trying to scroll to read it...and it just changes. 3. When mousing over your menus...It takes quite some time to display the menu...it starts with clear boxes,blue border, and text...then slowly fills in the color...Also...Everytime I mouse over a menu...I can see in the progress bar I am downloading another 25-30 things...just to mouse over? Just some thoughts. Good Luck, Mark A. Matte ---------------------------------------- > From: rockysmolin at bchacc.com > To: accessd at databaseadvisors.com > Date: Wed, 4 Jun 2008 11:02:35 -0700 > Subject: Re: [AccessD] Feedback Time > > Not negative - welcome. But "Clearly you are using one taken many years > ago!" now THAT hurts!!! :) > > > Rocky Smolin > Beach Access Software > 858-259-4334 > www.e-z-mrp.com > www.bchacc.com > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo > Sent: Wednesday, June 04, 2008 10:47 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Feedback Time > > Rocky, > This is going to sound so negative and I apologise in advance. > Basically I don't like it. Seems about 2-5 years old technology. Clunky. > The roll window on the left does what it want to do. It needs to be under > the user control. When you click the text menu (list of items) above it, > the content does not always appear to be relevant. It needs to be relevant, > but honestly I would remove it altogether. > > Change the headings along the top menu bar. > Home -> Overview > About -> The Author > Project -> This I did like. However, I think you should remove the > repeating text that appears before the detail for the project clicked on. > It might be best to move it to Overview (sorry, Home). > Products -> Change this to the same functionality that comes under Projects. > Currently it is just a clucky html page. > > > Misc. > 1. I think you need to update your photo. Clearly you are using one taken > many years ago! > 2. I would not put my home address on the web (if that is your home > address). First contact from a web site will be by email/form so you only > need to put contact information not address information. > 3. Where is the Contact Tab? You need one with contact information and also > a clickable Email address which opens the users email client when clicked > on. You might also consider putting a Form on there so the user can give > some information on why they are contacting you...I am interested in [drop > down box] etc. > > I hope this helps and sorry again if it sounds negative but I am trying to > give positive feedback from my viewpoint. > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at > Beach Access Software > Sent: Wednesday, June 04, 2008 6:02 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Feedback Time > > Dear List: > > Lister Karen Rosenstiel has redone my Beach Access Software web site and we > would both be grateful for anyone who wants to take a few minutes to look at > it and give us some feedback on what you like, what you don't like. > > It's in a temporary folder http://www.bchacc.com/beachtemp/index.html right > now. Hoping to go live shortly. > > The old web site - my homegrown attempt at a web presence - is at > http://www.bchacc.com so you can see what it looks like now (not too > pretty). > > You can reply offline to Karen (krosenstiel at comcast.net) and myself > (rockysmolin at bchacc.com) or to the list which I think would be of value to > others on the list since many of us need our own web sites and could profit > from the combined advice of the list. > > So, many thanks in advance. > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > www.e-z-mrp.com > > www.bchacc.com > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > No virus found in this incoming message. > Checked by AVG. > Version: 8.0.100 / Virus Database: 269.24.6/1482 - Release Date: 4/6/2008 > 07:10 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ Now you can invite friends from Facebook and other groups to join you on Windows Live? Messenger. Add now. https://www.invite2messenger.net/im/?source=TXT_EML_WLH_AddNow_Now From max.wanadoo at gmail.com Wed Jun 4 13:22:35 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 4 Jun 2008 19:22:35 +0100 Subject: [AccessD] Feedback Time In-Reply-To: <003601c8c66d$2baf68f0$0301a8c0@HAL9005> References: <001a01c8c664$bae554c0$0301a8c0@HAL9005><002201c8c66b$0e1cade0$8119fea9@LTVM> <003601c8c66d$2baf68f0$0301a8c0@HAL9005> Message-ID: <002601c8c66f$f71001b0$8119fea9@LTVM> Sorry about that. Well your options are: 1. Use my picture -> $500 2. Use JC's -> Free and comes with the bonus that visitors will get a good laugh! BTW. I thought I would buy the ebook version of your book, but:- 1. It wanted me to create an account first. Why? 2. It didn't tell me before hand what my payment options were. If it is just PayPal then I am not interested but there is no way to see without first creating the account. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Wednesday, June 04, 2008 7:03 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feedback Time Not negative - welcome. But "Clearly you are using one taken many years ago!" now THAT hurts!!! :) Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Wednesday, June 04, 2008 10:47 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feedback Time Rocky, This is going to sound so negative and I apologise in advance. Basically I don't like it. Seems about 2-5 years old technology. Clunky. The roll window on the left does what it want to do. It needs to be under the user control. When you click the text menu (list of items) above it, the content does not always appear to be relevant. It needs to be relevant, but honestly I would remove it altogether. Change the headings along the top menu bar. Home -> Overview About -> The Author Project -> This I did like. However, I think you should remove the repeating text that appears before the detail for the project clicked on. It might be best to move it to Overview (sorry, Home). Products -> Change this to the same functionality that comes under Projects. Currently it is just a clucky html page. Misc. 1. I think you need to update your photo. Clearly you are using one taken many years ago! 2. I would not put my home address on the web (if that is your home address). First contact from a web site will be by email/form so you only need to put contact information not address information. 3. Where is the Contact Tab? You need one with contact information and also a clickable Email address which opens the users email client when clicked on. You might also consider putting a Form on there so the user can give some information on why they are contacting you...I am interested in [drop down box] etc. I hope this helps and sorry again if it sounds negative but I am trying to give positive feedback from my viewpoint. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Wednesday, June 04, 2008 6:02 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Feedback Time Dear List: Lister Karen Rosenstiel has redone my Beach Access Software web site and we would both be grateful for anyone who wants to take a few minutes to look at it and give us some feedback on what you like, what you don't like. It's in a temporary folder http://www.bchacc.com/beachtemp/index.html right now. Hoping to go live shortly. The old web site - my homegrown attempt at a web presence - is at http://www.bchacc.com so you can see what it looks like now (not too pretty). You can reply offline to Karen (krosenstiel at comcast.net) and myself (rockysmolin at bchacc.com) or to the list which I think would be of value to others on the list since many of us need our own web sites and could profit from the combined advice of the list. So, many thanks in advance. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 269.24.6/1482 - Release Date: 4/6/2008 07:10 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Wed Jun 4 13:31:08 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Wed, 4 Jun 2008 11:31:08 -0700 Subject: [AccessD] Feedback Time In-Reply-To: <002601c8c66f$f71001b0$8119fea9@LTVM> References: <001a01c8c664$bae554c0$0301a8c0@HAL9005><002201c8c66b$0e1cade0$8119fea9@LTVM><003601c8c66d$2baf68f0$0301a8c0@HAL9005> <002601c8c66f$f71001b0$8119fea9@LTVM> Message-ID: <004201c8c671$28501480$0301a8c0@HAL9005> Max: Let me forward to the publisher and see what they say. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Wednesday, June 04, 2008 11:23 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feedback Time Sorry about that. Well your options are: 1. Use my picture -> $500 2. Use JC's -> Free and comes with the bonus that visitors will get a good laugh! BTW. I thought I would buy the ebook version of your book, but:- 1. It wanted me to create an account first. Why? 2. It didn't tell me before hand what my payment options were. If it is just PayPal then I am not interested but there is no way to see without first creating the account. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Wednesday, June 04, 2008 7:03 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feedback Time Not negative - welcome. But "Clearly you are using one taken many years ago!" now THAT hurts!!! :) Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Wednesday, June 04, 2008 10:47 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feedback Time Rocky, This is going to sound so negative and I apologise in advance. Basically I don't like it. Seems about 2-5 years old technology. Clunky. The roll window on the left does what it want to do. It needs to be under the user control. When you click the text menu (list of items) above it, the content does not always appear to be relevant. It needs to be relevant, but honestly I would remove it altogether. Change the headings along the top menu bar. Home -> Overview About -> The Author Project -> This I did like. However, I think you should remove the repeating text that appears before the detail for the project clicked on. It might be best to move it to Overview (sorry, Home). Products -> Change this to the same functionality that comes under Projects. Currently it is just a clucky html page. Misc. 1. I think you need to update your photo. Clearly you are using one taken many years ago! 2. I would not put my home address on the web (if that is your home address). First contact from a web site will be by email/form so you only need to put contact information not address information. 3. Where is the Contact Tab? You need one with contact information and also a clickable Email address which opens the users email client when clicked on. You might also consider putting a Form on there so the user can give some information on why they are contacting you...I am interested in [drop down box] etc. I hope this helps and sorry again if it sounds negative but I am trying to give positive feedback from my viewpoint. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Wednesday, June 04, 2008 6:02 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Feedback Time Dear List: Lister Karen Rosenstiel has redone my Beach Access Software web site and we would both be grateful for anyone who wants to take a few minutes to look at it and give us some feedback on what you like, what you don't like. It's in a temporary folder http://www.bchacc.com/beachtemp/index.html right now. Hoping to go live shortly. The old web site - my homegrown attempt at a web presence - is at http://www.bchacc.com so you can see what it looks like now (not too pretty). You can reply offline to Karen (krosenstiel at comcast.net) and myself (rockysmolin at bchacc.com) or to the list which I think would be of value to others on the list since many of us need our own web sites and could profit from the combined advice of the list. So, many thanks in advance. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 269.24.6/1482 - Release Date: 4/6/2008 07:10 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 269.24.6/1482 - Release Date: 4/6/2008 07:10 From max.wanadoo at gmail.com Wed Jun 4 14:00:15 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Wed, 4 Jun 2008 20:00:15 +0100 Subject: [AccessD] OT: Outlook Accounts In-Reply-To: <4846C6CB.7080306@colbyconsulting.com> References: <000f01c8c660$15caee40$8119fea9@LTVM> <4846C6CB.7080306@colbyconsulting.com> Message-ID: <002801c8c675$3aa14560$8119fea9@LTVM> Yes, I would have thought this was a fundamental requirement. It used to be in earlier versions but not in 2003. Might leave them myself but didn't like Tbird. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, June 04, 2008 5:46 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Outlook Accounts Max, This is the precise reason I finally abandoned Outlook in favor of Thunderbird. I just got tired of the idiocy of no export method to transfer from machine to machine. John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Hi List, > I am going to have to bite the bullet and clear down and reinstall > everything on my laptop. One thing that has always caused me problems > in the past is the lack of any Export/Import facility for Outlook > Email Accounts. > Can anybody suggest a method of doing this without having to go > through all the accounts and writing the setting down. > > Thanks > Max > -- 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 Jun 4 17:16:39 2008 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 05 Jun 2008 08:16:39 +1000 Subject: [AccessD] OT: Outlook Accounts In-Reply-To: <002801c8c675$3aa14560$8119fea9@LTVM> References: , <4846C6CB.7080306@colbyconsulting.com>, <002801c8c675$3aa14560$8119fea9@LTVM> Message-ID: <4847A0E7.11021.55922563@stuart.lexacorp.com.pg> If you don't like TBird, check out the best email program out there at any price - Pegasus Mail http://www.pmail.com -- Stuart On 4 Jun 2008 at 20:00, Max Wanadoo wrote: > Yes, I would have thought this was a fundamental requirement. It used to be > in earlier versions but not in 2003. > Might leave them myself but didn't like Tbird. > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Wednesday, June 04, 2008 5:46 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] OT: Outlook Accounts > > Max, > > This is the precise reason I finally abandoned Outlook in favor of > Thunderbird. I just got tired of the idiocy of no export method to transfer > from machine to machine. > > John W. Colby > www.ColbyConsulting.com > > > Max Wanadoo wrote: > > Hi List, > > I am going to have to bite the bullet and clear down and reinstall > > everything on my laptop. One thing that has always caused me problems > > in the past is the lack of any Export/Import facility for Outlook > > Email Accounts. > > Can anybody suggest a method of doing this without having to go > > through all the accounts and writing the setting down. > > > > Thanks > > Max > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Wed Jun 4 19:26:42 2008 From: rbgajewski at adelphia.net (Bob Gajewski) Date: Wed, 4 Jun 2008 20:26:42 -0400 Subject: [AccessD] Feedback Time In-Reply-To: <001a01c8c664$bae554c0$0301a8c0@HAL9005> References: <001a01c8c664$bae554c0$0301a8c0@HAL9005> Message-ID: <97699BA42E7C41AD83FC86ED1D6CA050@DCYN3T81> Rocky Putting your email address in the HTML code is a great way to invite tons of spam - bots troll source code constantly looking for the unsuspecting. Seriously, might I suggest a Javascript alternative? Create the utiliies.js file (asterisks are to show the code, and are not part of the file): ******************************************** function sendMail(n2,d2,e2,s2,b2){ if(s2 == '') s2 = ' '; var r2 = 'mailto:' + n2 + '@' + d2 + '.' + e2 + '?subject=' + s2 + '&body=' + b2; document.location.href = r2; } ******************************************** In the HEAD section of your code, put: Then, instead of your current code: Email Rocky Smolin Use: Email Rocky Smolin This will both prevent bots from finding your email address allow you to pre-fill fields! n2 = the email name (everything left of the AT sign) d2 = the domain (between the AT sign and the DOT) e2 = the domain extension (COM, NET, etc) s2 = the default subject line b2 = the default message in the body The subject and body can be left blank, but you should be sure to pass an empty string. (Email Rocky Smolin ) Each link can have different default subject lines, etc. That way, you even know exactly what link they clicked on (unless, of course, they change the subject line). Best regards, Bob Gajewski -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Wednesday, June 04, 2008 13:02 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Feedback Time Dear List: Lister Karen Rosenstiel has redone my Beach Access Software web site and we would both be grateful for anyone who wants to take a few minutes to look at it and give us some feedback on what you like, what you don't like. It's in a temporary folder http://www.bchacc.com/beachtemp/index.html right now. Hoping to go live shortly. The old web site - my homegrown attempt at a web presence - is at http://www.bchacc.com so you can see what it looks like now (not too pretty). You can reply offline to Karen (krosenstiel at comcast.net) and myself (rockysmolin at bchacc.com) or to the list which I think would be of value to others on the list since many of us need our own web sites and could profit from the combined advice of the list. So, many thanks in advance. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Darryl.Collins at coles.com.au Wed Jun 4 19:47:58 2008 From: Darryl.Collins at coles.com.au (Darryl Collins) Date: Thu, 5 Jun 2008 10:47:58 +1000 Subject: [AccessD] Feedback Time Message-ID: <49DFE57FB126044B8A8B934E7AEA09ED09FD74C8@WPEXCH05.colesmyer.ad.cmltd.net.au> Hi Rocky and Karen, I tend to agree with Max on many points, actually the "Where is the Contact Tab?" was the first one. It is odd as I can see Rocky's contact details on the main page and also on the "About" page, but most folks expect to see a contacts tab and will look for it - I sure did - illogical but true. Using IE6 at work the site was a bit clunky and the drop down menus seemed too big. - I can have a look at home on IE7 and Firefox 3.0 Beta later today. The data scrolling in the "what our customers are saying" was more annoying than useful. I love the idea of having the feedback there, but maybe it needs to be on it's own page, maybe a series of teaser boxes with More... at the bottom of you want to read etc. I do like the simplicity of the site layout. I usually go to a website to find stuff out, and it annoys me when there is too much fluff (and audio I didnt ask for) and not much content. I think the content on the site is really good. Looking fwd to see your mods Karen. cheers Darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of krosenstiel at comcast.net Sent: Thursday, 5 June 2008 3:13 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Feedback Time Arrrrrgh! The home page is breaking on IE version 6. The side lines aren't showing. I'll work on it tonight. OK, now the rest of you can take potshots! -- Karen Rosenstiel Seattle WA USA -------------- Original message ---------------------- From: "Rocky Smolin at Beach Access Software" > Dear List: > > Lister Karen Rosenstiel has redone my Beach Access Software web site and we > would both be grateful for anyone who wants to take a few minutes to look at > it and give us some feedback on what you like, what you don't like. > > It's in a temporary folder http://www.bchacc.com/beachtemp/index.html right > now. Hoping to go live shortly. > > The old web site - my homegrown attempt at a web presence - is at > http://www.bchacc.com so you can see what it looks like now (not too > pretty). > > You can reply offline to Karen (krosenstiel at comcast.net) and myself > (rockysmolin at bchacc.com) or to the list which I think would be of value to > others on the list since many of us need our own web sites and could profit > from the combined advice of the list. > > So, many thanks in advance. > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > www.e-z-mrp.com > > www.bchacc.com > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. From jedi at charm.net Wed Jun 4 20:43:20 2008 From: jedi at charm.net (Michael Bahr) Date: Wed, 4 Jun 2008 21:43:20 -0400 (EDT) Subject: [AccessD] OT: Outlook Accounts In-Reply-To: <000f01c8c660$15caee40$8119fea9@LTVM> References: <000f01c8c660$15caee40$8119fea9@LTVM> Message-ID: <2438.24.35.45.228.1212630200.squirrel@mail.expedient.net> Hi Max, try copy the iutlook.pst file usually found in C:\Documents and Settings\accountname\Local Settings\Application Data\Microsoft\Outlook directory. This will copy all your settings also. Mike... > > Hi List, > I am going to have to bite the bullet and clear down and reinstall > everything on my laptop. One thing that has always caused me problems in > the past is the lack of any Export/Import facility for Outlook Email > Accounts. > Can anybody suggest a method of doing this without having to go through > all > the accounts and writing the setting down. > > Thanks > Max > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From jedi at charm.net Wed Jun 4 20:56:31 2008 From: jedi at charm.net (Michael Bahr) Date: Wed, 4 Jun 2008 21:56:31 -0400 (EDT) Subject: [AccessD] OT: Outlook Accounts In-Reply-To: <2438.24.35.45.228.1212630200.squirrel@mail.expedient.net> References: <000f01c8c660$15caee40$8119fea9@LTVM> <2438.24.35.45.228.1212630200.squirrel@mail.expedient.net> Message-ID: <2470.24.35.45.228.1212630991.squirrel@mail.expedient.net> Jeezh, bad English! try copying the outlook.pst file usually found in C:\Documents and Settings\accountname\Local Settings\Application Data\Microsoft\Outlook directory. This will copy all your settings also. Mike... > Hi Max, try copy the iutlook.pst file usually found in C:\Documents and > Settings\accountname\Local Settings\Application Data\Microsoft\Outlook > directory. This will copy all your settings also. > > Mike... > >> >> Hi List, >> I am going to have to bite the bullet and clear down and reinstall >> everything on my laptop. One thing that has always caused me problems >> in >> the past is the lack of any Export/Import facility for Outlook Email >> Accounts. >> Can anybody suggest a method of doing this without having to go through >> all >> the accounts and writing the setting down. >> >> Thanks >> Max >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> 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 Jun 4 21:04:06 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Wed, 04 Jun 2008 22:04:06 -0400 Subject: [AccessD] OT: Outlook Accounts In-Reply-To: <2438.24.35.45.228.1212630200.squirrel@mail.expedient.net> References: <000f01c8c660$15caee40$8119fea9@LTVM> <2438.24.35.45.228.1212630200.squirrel@mail.expedient.net> Message-ID: <48474996.9060408@colbyconsulting.com> Mike AFAIK, the PST ONLY has the stuff that you see immediately in outlook, things like email and addresses. The SETTINGS for the email accounts are somewhere else. The SIGNATURES are in a third location, etc. etc. John W. Colby www.ColbyConsulting.com Michael Bahr wrote: > Hi Max, try copy the iutlook.pst file usually found in C:\Documents and > Settings\accountname\Local Settings\Application Data\Microsoft\Outlook > directory. This will copy all your settings also. > > Mike... > >> Hi List, >> I am going to have to bite the bullet and clear down and reinstall >> everything on my laptop. One thing that has always caused me problems in >> the past is the lack of any Export/Import facility for Outlook Email >> Accounts. >> Can anybody suggest a method of doing this without having to go through >> all >> the accounts and writing the setting down. >> >> Thanks >> Max >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > From wdhindman at dejpolsystems.com Thu Jun 5 00:48:08 2008 From: wdhindman at dejpolsystems.com (William Hindman) Date: Thu, 5 Jun 2008 01:48:08 -0400 Subject: [AccessD] OT: Outlook Accounts References: <000f01c8c660$15caee40$8119fea9@LTVM><4846C6CB.7080306@colbyconsulting.com> <002801c8c675$3aa14560$8119fea9@LTVM> Message-ID: http://technet.microsoft.com/en-us/library/bb457074(TechNet.10).aspx William "The truth is incontrovertible, malice may attack it, ignorance may deride it, but in the end; there it is." -------------------------------------------------- From: "Max Wanadoo" Sent: Wednesday, June 04, 2008 3:00 PM To: "'Access Developers discussion and problem solving'" Subject: Re: [AccessD] OT: Outlook Accounts > Yes, I would have thought this was a fundamental requirement. It used to > be > in earlier versions but not in 2003. > Might leave them myself but didn't like Tbird. > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Wednesday, June 04, 2008 5:46 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] OT: Outlook Accounts > > Max, > > This is the precise reason I finally abandoned Outlook in favor of > Thunderbird. I just got tired of the idiocy of no export method to > transfer > from machine to machine. > > John W. Colby > www.ColbyConsulting.com > > > Max Wanadoo wrote: >> Hi List, >> I am going to have to bite the bullet and clear down and reinstall >> everything on my laptop. One thing that has always caused me problems >> in the past is the lack of any Export/Import facility for Outlook >> Email Accounts. >> Can anybody suggest a method of doing this without having to go >> through all the accounts and writing the setting down. >> >> Thanks >> Max >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > 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 Thu Jun 5 02:33:20 2008 From: Chris.Foote at uk.thalesgroup.com (Foote, Chris) Date: Thu, 5 Jun 2008 08:33:20 +0100 Subject: [AccessD] Import data from web site into Access Message-ID: <7303A459C921B5499AF732CCEEAD2B7F064D154C@craws161660.int.rdel.co.uk> Many thanks Gustav! Found in in my archives - it was mid December 2006 not last year. Thanks again for the lead! Regards Chris F > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock > Sent: Wednesday, June 04, 2008 12:46 PM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Import data from web site into Access > > > Hi Chris > > It could have been the thread "pull data from web page" from > mid December last year. > > Or, to download a page or a file: > > > Private Declare Function URLDownloadToFile Lib "urlmon" Alias > "URLDownloadToFileA" ( _ > ByVal pCaller As Long, _ > ByVal szURL As String, _ > ByVal szFileName As String, _ > ByVal dwReserved As Long, _ > ByVal lpfnCB As Long) _ > As Long > > Public Function DownloadFile( _ > ByVal strURL As String, _ > ByVal strLocalFilename As String) _ > As Long > > ' Download file or page with public access from the web. > ' 2004-12-17. Cactus Data ApS, CPH. > > ' Usage, download a file: > ' lngRet = > DownloadFile("http://www.databaseadvisors.com/Graphics/conf200 > 2/2002ConferencePicsbySmolin/images/dba02smolin27.jpg", > "c:\happybassett.jpg") > ' > ' Usage, download a page: > ' lngRet = > DownloadFile("http://www.databaseadvisors.com/conf2002/conf200 > 202.asp", "c:\dbaconference.htm") > > ' Returns 0 if success, error code if not. > ' Error codes: > ' -2146697210 "file not found". > ' -2146697211 "domain not found". > > ' Limitation. > ' Does not check if local file was created successfully. > > Dim lngRetVal As Long > > lngRetVal = URLDownloadToFile(0, strURL & vbNullChar, > strLocalFilename & vbNullChar, 0, 0) > > DownloadFile = lngRetVal > > End Function > > > You are not telling what to download, but remember that > Access can directly attach a table in a downloaded HTML file. > > /gustav > > > >>> Chris.Foote at uk.thalesgroup.com 04-06-2008 12:17 >>> > > Good day/evening/night all! > > One of my work mates is trying to import data from a web page > into Access. > > Excel has a function called Web Query that can extract data > from a specific > place in a web page. I've found a discussion on tek-tips > () > that shows how > to import a Web Query from an external Excel file into > Access, but is it > possible to do this directly. > > I vaguely remember somebody on the list was getting exchange > rate data(?) > from an external website for use in Access - but I cannot > remember who, > what, or when ;-( > > TIA! > > Chris Foote > -- > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From max.wanadoo at gmail.com Thu Jun 5 03:16:35 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Thu, 5 Jun 2008 09:16:35 +0100 Subject: [AccessD] Drive Mappings SUBST In-Reply-To: References: <000f01c8c660$15caee40$8119fea9@LTVM><4846C6CB.7080306@colbyconsulting.com><002801c8c675$3aa14560$8119fea9@LTVM> Message-ID: <001b01c8c6e4$795dc250$8119fea9@LTVM> Gustave, Re the discussion some weeks back on SUBST. Have you seen this:- http://blogs.techrepublic.com.com/itdojo/?p=122&tag=nl.e099.dl060408&tag=nl. e099 Max From Gustav at cactus.dk Thu Jun 5 03:35:23 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 05 Jun 2008 10:35:23 +0200 Subject: [AccessD] Drive Mappings SUBST Message-ID: Hi Max No. But they can be useful in some special cases. I noticed this link too: "Windows XP's top five hidden file management features" http://articles.techrepublic.com.com/5100-10878_11-5030818.html Some of these I've never heard of. /gustav >>> max.wanadoo at gmail.com 05-06-2008 10:16 >>> Gustave, Re the discussion some weeks back on SUBST. Have you seen this:- http://blogs.techrepublic.com.com/itdojo/?p=122&tag=nl.e099.dl060408&tag=nle099 Max From jwcolby at colbyconsulting.com Thu Jun 5 07:26:06 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 05 Jun 2008 08:26:06 -0400 Subject: [AccessD] OT: Outlook Accounts In-Reply-To: References: <000f01c8c660$15caee40$8119fea9@LTVM><4846C6CB.7080306@colbyconsulting.com> <002801c8c675$3aa14560$8119fea9@LTVM> Message-ID: <4847DB5E.3030102@colbyconsulting.com> John's Step by Step migration. 1) Use VMWare to migrate the entire computer to a virtual machine. 2) Run VMWare player on new machine. 3) Copy the entire virtual machine directory to the new machine 4) Start VMWare player on new machine. 5) Start virtual machine containing old computer OS. John W. Colby www.ColbyConsulting.com William Hindman wrote: > http://technet.microsoft.com/en-us/library/bb457074(TechNet.10).aspx > > William > "The truth is incontrovertible, malice may attack it, ignorance may deride > it, but in the end; there it is." > > -------------------------------------------------- > From: "Max Wanadoo" > Sent: Wednesday, June 04, 2008 3:00 PM > To: "'Access Developers discussion and problem solving'" > > Subject: Re: [AccessD] OT: Outlook Accounts > >> Yes, I would have thought this was a fundamental requirement. It used to >> be >> in earlier versions but not in 2003. >> Might leave them myself but didn't like Tbird. >> >> Max >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: Wednesday, June 04, 2008 5:46 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] OT: Outlook Accounts >> >> Max, >> >> This is the precise reason I finally abandoned Outlook in favor of >> Thunderbird. I just got tired of the idiocy of no export method to >> transfer >> from machine to machine. >> >> John W. Colby >> www.ColbyConsulting.com >> >> >> Max Wanadoo wrote: >>> Hi List, >>> I am going to have to bite the bullet and clear down and reinstall >>> everything on my laptop. One thing that has always caused me problems >>> in the past is the lack of any Export/Import facility for Outlook >>> Email Accounts. >>> Can anybody suggest a method of doing this without having to go >>> through all the accounts and writing the setting down. >>> >>> Thanks >>> Max >>> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > From max.wanadoo at gmail.com Thu Jun 5 08:44:34 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Thu, 5 Jun 2008 14:44:34 +0100 Subject: [AccessD] OT: Outlook Accounts In-Reply-To: <4847DB5E.3030102@colbyconsulting.com> References: <000f01c8c660$15caee40$8119fea9@LTVM><4846C6CB.7080306@colbyconsulting.com> <002801c8c675$3aa14560$8119fea9@LTVM> <4847DB5E.3030102@colbyconsulting.com> Message-ID: <009201c8c712$4adf0e10$8119fea9@LTVM> The problem I have is: A. It is a laptop (Dell Inspiron 9400) and I cannot reinstall the original software. I have to use the compacted OS that came with the laptop and which contains all the drivers, etc. B. Then after that I can start reinstalling all other stuff. Updates, etc. C. Once I invoke the step at A. above, I will no longer have access to anything on the laptop. I have backed up overything onto an eNotebook but of course that is just a copy, not a "installed and ready to run copy with all the necessary registry entries etc". I am really wary about this. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, June 05, 2008 1:26 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Outlook Accounts John's Step by Step migration. 1) Use VMWare to migrate the entire computer to a virtual machine. 2) Run VMWare player on new machine. 3) Copy the entire virtual machine directory to the new machine 4) Start VMWare player on new machine. 5) Start virtual machine containing old computer OS. John W. Colby www.ColbyConsulting.com William Hindman wrote: > http://technet.microsoft.com/en-us/library/bb457074(TechNet.10).aspx > > William > "The truth is incontrovertible, malice may attack it, ignorance may deride > it, but in the end; there it is." > > -------------------------------------------------- > From: "Max Wanadoo" > Sent: Wednesday, June 04, 2008 3:00 PM > To: "'Access Developers discussion and problem solving'" > > Subject: Re: [AccessD] OT: Outlook Accounts > >> Yes, I would have thought this was a fundamental requirement. It used to >> be >> in earlier versions but not in 2003. >> Might leave them myself but didn't like Tbird. >> >> Max >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: Wednesday, June 04, 2008 5:46 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] OT: Outlook Accounts >> >> Max, >> >> This is the precise reason I finally abandoned Outlook in favor of >> Thunderbird. I just got tired of the idiocy of no export method to >> transfer >> from machine to machine. >> >> John W. Colby >> www.ColbyConsulting.com >> >> >> Max Wanadoo wrote: >>> Hi List, >>> I am going to have to bite the bullet and clear down and reinstall >>> everything on my laptop. One thing that has always caused me problems >>> in the past is the lack of any Export/Import facility for Outlook >>> Email Accounts. >>> Can anybody suggest a method of doing this without having to go >>> through all the accounts and writing the setting down. >>> >>> Thanks >>> Max >>> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Thu Jun 5 09:33:41 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Thu, 5 Jun 2008 15:33:41 +0100 Subject: [AccessD] Access To Excel via a CSV File In-Reply-To: <4847DB5E.3030102@colbyconsulting.com> References: <000f01c8c660$15caee40$8119fea9@LTVM><4846C6CB.7080306@colbyconsulting.com> <002801c8c675$3aa14560$8119fea9@LTVM> <4847DB5E.3030102@colbyconsulting.com> Message-ID: <00a501c8c719$2820b0c0$8119fea9@LTVM> Can any of you Access/Excel gurus help here please. I need to create a csv spreadsheet by code. When it is complete, I need to put formatting on it. Ie,make columns into Currency Types. Bold some Rows, set some bacground colours, etc. I have got as far as creating the CSV ok but then I am stumped. Any advice most welcome. Ta Max From Gustav at cactus.dk Thu Jun 5 09:43:46 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 05 Jun 2008 16:43:46 +0200 Subject: [AccessD] Access To Excel via a CSV File Message-ID: Hi Max Stumped you must be. An CSV file does not carry any fancy info, only data as text. It is simply a text file with a funny extension. /gustav >>> max.wanadoo at gmail.com 05-06-2008 16:33 >>> Can any of you Access/Excel gurus help here please. I need to create a csv spreadsheet by code. When it is complete, I need to put formatting on it. Ie,make columns into Currency Types. Bold some Rows, set some bacground colours, etc. I have got as far as creating the CSV ok but then I am stumped. Any advice most welcome. Ta Max From max.wanadoo at gmail.com Thu Jun 5 09:57:06 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Thu, 5 Jun 2008 15:57:06 +0100 Subject: [AccessD] Access To Excel via a CSV File In-Reply-To: References: Message-ID: <00af01c8c71c$6d466200$8119fea9@LTVM> I thought there may be some way to turn it into an xls file and then with (xls type code - range thingy) format it. If I just rename it to .xls all the csv value turn into one line string. If I try to docmd.transferspreadsheet acimport into a table and then docmd.transferspreadsheet acexport I cannot get past first base as it won't let me do an import. Yes, definitely stumped. More stumps than criket! Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, June 05, 2008 3:44 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Access To Excel via a CSV File Hi Max Stumped you must be. An CSV file does not carry any fancy info, only data as text. It is simply a text file with a funny extension. /gustav >>> max.wanadoo at gmail.com 05-06-2008 16:33 >>> Can any of you Access/Excel gurus help here please. I need to create a csv spreadsheet by code. When it is complete, I need to put formatting on it. Ie,make columns into Currency Types. Bold some Rows, set some bacground colours, etc. I have got as far as creating the CSV ok but then I am stumped. Any advice most welcome. Ta Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Jun 5 10:03:58 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 05 Jun 2008 11:03:58 -0400 Subject: [AccessD] Access To Excel via a CSV File In-Reply-To: <00af01c8c71c$6d466200$8119fea9@LTVM> References: <00af01c8c71c$6d466200$8119fea9@LTVM> Message-ID: <4848005E.4050606@colbyconsulting.com> You need to open the csv, then save back out as an xls. Then open the xls and do what you will. John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > I thought there may be some way to turn it into an xls file and then with > (xls type code - range thingy) format it. > If I just rename it to .xls all the csv value turn into one line string. > If I try to docmd.transferspreadsheet acimport into a table and then > docmd.transferspreadsheet acexport I cannot get past first base as it won't > let me do an import. > > Yes, definitely stumped. More stumps than criket! > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Thursday, June 05, 2008 3:44 PM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Access To Excel via a CSV File > > Hi Max > > Stumped you must be. An CSV file does not carry any fancy info, only data as > text. It is simply a text file with a funny extension. > > /gustav > >>>> max.wanadoo at gmail.com 05-06-2008 16:33 >>> > > Can any of you Access/Excel gurus help here please. > I need to create a csv spreadsheet by code. When it is complete, I need to > put formatting on it. Ie,make columns into Currency Types. Bold some Rows, > set some bacground colours, etc. > I have got as far as creating the CSV ok but then I am stumped. > Any advice most welcome. > Ta > Max > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From markamatte at hotmail.com Thu Jun 5 10:15:32 2008 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 5 Jun 2008 15:15:32 +0000 Subject: [AccessD] Access To Excel via a CSV File In-Reply-To: <00af01c8c71c$6d466200$8119fea9@LTVM> References: <00af01c8c71c$6d466200$8119fea9@LTVM> Message-ID: Max, Why are you try to go CSV first? Thanks, Mark ---------------------------------------- > From: max.wanadoo at gmail.com > To: accessd at databaseadvisors.com > Date: Thu, 5 Jun 2008 15:57:06 +0100 > Subject: Re: [AccessD] Access To Excel via a CSV File > > I thought there may be some way to turn it into an xls file and then with > (xls type code - range thingy) format it. > If I just rename it to .xls all the csv value turn into one line string. > If I try to docmd.transferspreadsheet acimport into a table and then > docmd.transferspreadsheet acexport I cannot get past first base as it won't > let me do an import. > > Yes, definitely stumped. More stumps than criket! > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock > Sent: Thursday, June 05, 2008 3:44 PM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Access To Excel via a CSV File > > Hi Max > > Stumped you must be. An CSV file does not carry any fancy info, only data as > text. It is simply a text file with a funny extension. > > /gustav > > >>> max.wanadoo at gmail.com 05-06-2008 16:33 >>> > > Can any of you Access/Excel gurus help here please. > I need to create a csv spreadsheet by code. When it is complete, I need to > put formatting on it. Ie,make columns into Currency Types. Bold some Rows, > set some bacground colours, etc. > I have got as far as creating the CSV ok but then I am stumped. > Any advice most welcome. > Ta > Max > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ Search that pays you back! Introducing Live Search cashback. http://search.live.com/cashback/?&pkw=form=MIJAAF/publ=HMTGL/crea=srchpaysyouback From Gustav at cactus.dk Thu Jun 5 10:16:06 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 05 Jun 2008 17:16:06 +0200 Subject: [AccessD] Access To Excel via a CSV File Message-ID: Hi Max Is it as hot on your side of the North Sea as here? Sounds like you are little dizzy! An xls file can contain data and formatting and formulas. An csv contains nothing but data as text. Access can im- and export and link an Excel file with the extension xls. Access can im- and export and link a text file with the extension csv (only older versions) or txt. Excel can read an csv file. Default formatting will be applied. Excel can write an csv file but everything else than data is lost. So if you wish to export data which later can be formatted, you must use xls files. To apply formatting etc. after the export, open the file with Excel (automation) and ask Excel to perform this. /gustav >>> max.wanadoo at gmail.com 05-06-2008 16:57 >>> I thought there may be some way to turn it into an xls file and then with (xls type code - range thingy) format it. If I just rename it to .xls all the csv value turn into one line string. If I try to docmd.transferspreadsheet acimport into a table and then docmd.transferspreadsheet acexport I cannot get past first base as it won't let me do an import. Yes, definitely stumped. More stumps than criket! Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, June 05, 2008 3:44 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Access To Excel via a CSV File Hi Max Stumped you must be. An CSV file does not carry any fancy info, only data as text. It is simply a text file with a funny extension. /gustav >>> max.wanadoo at gmail.com 05-06-2008 16:33 >>> Can any of you Access/Excel gurus help here please. I need to create a csv spreadsheet by code. When it is complete, I need to put formatting on it. Ie,make columns into Currency Types. Bold some Rows, set some bacground colours, etc. I have got as far as creating the CSV ok but then I am stumped. Any advice most welcome. Ta Max From rockysmolin at bchacc.com Thu Jun 5 10:18:45 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Thu, 5 Jun 2008 08:18:45 -0700 Subject: [AccessD] Access To Excel via a CSV File In-Reply-To: <00a501c8c719$2820b0c0$8119fea9@LTVM> References: <000f01c8c660$15caee40$8119fea9@LTVM><4846C6CB.7080306@colbyconsulting.com> <002801c8c675$3aa14560$8119fea9@LTVM><4847DB5E.3030102@colbyconsulting.com> <00a501c8c719$2820b0c0$8119fea9@LTVM> Message-ID: <015801c8c71f$72cdc260$0301a8c0@HAL9005> I created a rather elaborate series of spreadsheets in an app once and, in order to get it to work right I cheated. To do all the formatting, etc., I used the macro recorder in Excel (like for selecting and bolding a group of cells, or changing the font or size, or the width of a column, etc.) and then just copied the code out of the code page behind the spreadsheet and pasted it into the access code. I can send you something off line if you like. But here's a snip to give you some ideas. First I set up a two dimensional array DIMmed as variant to hold the spreadsheet values and then used automation to create the spreadsheet from a spreadsheet template. Snip: Aray(21, 1) = "Total Landing and Skippers" Aray(23, 1) = " Berth Credits - 1/2-3/4 All" Aray(24, 1) = " Berth Credits - Full Day Open Party" Aray(25, 1) = " Berth Credits - Full Day Charter" Aray(26, 1) = " Adjmt. Inclusive" Aray(27, 1) = " Adjmt. Long Range" Aray(29, 1) = "Adjusted Net" Aray(31, 1) = "Booking Fees:" Aray(32, 1) = " Bait - 1/2-3/4" Aray(32, 2) = 0.125 Aray(32, 3) = "=C6+D6-C12-D12-C23-D23" Aray(32, 4) = "=Round(B32*C32,2)" After setting up all the cell values in the array I write the values to the spreadsheet. 'write it out For intThisRow = 1 To 67 For intThisCol = 1 To 7 objXLWS.Cells(intThisRow, intThisCol) = Aray(intThisRow, intThisCol) Next intThisCol Next intThisRow Then do a little formatting: ' Currency format for numbers For intThisCol = 2 To 7 objXLWS.Columns(intThisCol).NumberFormat = "0.00_);[Red](0.00)" Next intThisCol For intThisRow = 32 To 37 objXLWS.Cells(intThisRow, 2).NumberFormat = "0.00%" Next intThisRow For intThisRow = 39 To 52 objXLWS.Cells(intThisRow, 2).NumberFormat = "0.00%" Next intThisRow ' Format Bold Some Rows objXLWS.Rows(1).Font.Bold = True objXLWS.Rows(2).Font.Bold = True objXLWS.Rows(3).Font.Bold = True objXLWS.Rows(5).Font.Bold = True objXLWS.Rows(19).Font.Bold = True ' Hide These Cells objXLWS.Range("B1:D1").NumberFormat = ";;;" ' Font Size objXLWS.Range("A1:E67").Select objXLWS.Cells.Font.Size = 9 ' Margins objXLWS.PageSetup.BottomMargin = 0.25 objXLWS.PageSetup.TopMargin = 0.25 ' Print Area objXLWS.PageSetup.PrintArea = "$A$1:$E$67" HTH Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Thursday, June 05, 2008 7:34 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access To Excel via a CSV File Can any of you Access/Excel gurus help here please. I need to create a csv spreadsheet by code. When it is complete, I need to put formatting on it. Ie,make columns into Currency Types. Bold some Rows, set some bacground colours, etc. I have got as far as creating the CSV ok but then I am stumped. Any advice most welcome. Ta Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 270.0.0/1485 - Release Date: 5/6/2008 10:07 From robin.lawrence at merseybeat.co.uk Thu Jun 5 10:17:25 2008 From: robin.lawrence at merseybeat.co.uk (Robin (Merseybeat)) Date: Thu, 5 Jun 2008 16:17:25 +0100 Subject: [AccessD] Access To Excel via a CSV File In-Reply-To: <560E2B80EC8F624B93A87B943B7A9CD5854E12@rgiserv.rg.local> Message-ID: <560E2B80EC8F624B93A87B943B7A9CD559AF64@rgiserv.rg.local> Hi Max, To use Docmd.transferspreadsheet the target file need to exist first. So if you go to the table and use office links to create the Excel Spreadsheet initially you can then blank everything except the header columns (ie use it like a template.) All the fields will be correctly formatted as per the source fields in the Access Table.... HTH Rgds Robin -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: 05 June 2008 15:57 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access To Excel via a CSV File I thought there may be some way to turn it into an xls file and then with (xls type code - range thingy) format it. If I just rename it to .xls all the csv value turn into one line string. If I try to docmd.transferspreadsheet acimport into a table and then docmd.transferspreadsheet acexport I cannot get past first base as it won't let me do an import. Yes, definitely stumped. More stumps than criket! Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, June 05, 2008 3:44 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Access To Excel via a CSV File Hi Max Stumped you must be. An CSV file does not carry any fancy info, only data as text. It is simply a text file with a funny extension. /gustav >>> max.wanadoo at gmail.com 05-06-2008 16:33 >>> Can any of you Access/Excel gurus help here please. I need to create a csv spreadsheet by code. When it is complete, I need to put formatting on it. Ie,make columns into Currency Types. Bold some Rows, set some bacground colours, etc. I have got as far as creating the CSV ok but then I am stumped. Any advice most welcome. Ta Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Thu Jun 5 10:50:11 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Thu, 5 Jun 2008 08:50:11 -0700 Subject: [AccessD] Feedback Time In-Reply-To: <002601c8c66f$f71001b0$8119fea9@LTVM> References: <001a01c8c664$bae554c0$0301a8c0@HAL9005><002201c8c66b$0e1cade0$8119fea9@LTVM><003601c8c66d$2baf68f0$0301a8c0@HAL9005> <002601c8c66f$f71001b0$8119fea9@LTVM> Message-ID: <016701c8c723$d6edca70$0301a8c0@HAL9005> Max: Got this reply from Apress. Do you want to take him up on his offer of a free eBook? Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com Hey Rocky, Hope your interview went well. If it is posted online, please send me the link and I can have it reposted on Apress.com. As for the questions, there are two issues: Having the customer create an account has two uses. First, and most important, it allows them to return to the site, if for whatever reason their eBook is corrupted, or deleted, or any number of things. And allows them to log back in and retrieve it for another download. That is also our modest means of security, making the PDF password protected against the account. As for PayPal, we had a traditional credit card transaction, but we encountered considerable fraud with stolen numbers from various parts of the world, that we decided to go with PayPal to eliminate it. It's not ideal, but we were draining too many resources fighting fraud. If these questions are from a friend or colleague, I'm more than happy to send them a free download of the eBook. Best, Steve -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Wednesday, June 04, 2008 11:23 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feedback Time Sorry about that. Well your options are: 1. Use my picture -> $500 2. Use JC's -> Free and comes with the bonus that visitors will get a good laugh! BTW. I thought I would buy the ebook version of your book, but:- 1. It wanted me to create an account first. Why? 2. It didn't tell me before hand what my payment options were. If it is just PayPal then I am not interested but there is no way to see without first creating the account. Max From max.wanadoo at gmail.com Thu Jun 5 11:10:59 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Thu, 5 Jun 2008 17:10:59 +0100 Subject: [AccessD] Feedback Time In-Reply-To: <016701c8c723$d6edca70$0301a8c0@HAL9005> References: <001a01c8c664$bae554c0$0301a8c0@HAL9005><002201c8c66b$0e1cade0$8119fea9@LTVM><003601c8c66d$2baf68f0$0301a8c0@HAL9005><002601c8c66f$f71001b0$8119fea9@LTVM> <016701c8c723$d6edca70$0301a8c0@HAL9005> Message-ID: <002f01c8c726$bf286780$8119fea9@LTVM> Hi Rocky, I have just replied off-line. Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Thursday, June 05, 2008 4:50 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feedback Time Max: Got this reply from Apress. Do you want to take him up on his offer of a free eBook? Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com Hey Rocky, Hope your interview went well. If it is posted online, please send me the link and I can have it reposted on Apress.com. As for the questions, there are two issues: Having the customer create an account has two uses. First, and most important, it allows them to return to the site, if for whatever reason their eBook is corrupted, or deleted, or any number of things. And allows them to log back in and retrieve it for another download. That is also our modest means of security, making the PDF password protected against the account. As for PayPal, we had a traditional credit card transaction, but we encountered considerable fraud with stolen numbers from various parts of the world, that we decided to go with PayPal to eliminate it. It's not ideal, but we were draining too many resources fighting fraud. If these questions are from a friend or colleague, I'm more than happy to send them a free download of the eBook. Best, Steve -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Wednesday, June 04, 2008 11:23 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feedback Time Sorry about that. Well your options are: 1. Use my picture -> $500 2. Use JC's -> Free and comes with the bonus that visitors will get a good laugh! BTW. I thought I would buy the ebook version of your book, but:- 1. It wanted me to create an account first. Why? 2. It didn't tell me before hand what my payment options were. If it is just PayPal then I am not interested but there is no way to see without first creating the account. Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Thu Jun 5 11:15:13 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Thu, 5 Jun 2008 17:15:13 +0100 Subject: [AccessD] Access To Excel via a CSV File In-Reply-To: <560E2B80EC8F624B93A87B943B7A9CD559AF64@rgiserv.rg.local> References: <560E2B80EC8F624B93A87B943B7A9CD5854E12@rgiserv.rg.local> <560E2B80EC8F624B93A87B943B7A9CD559AF64@rgiserv.rg.local> Message-ID: <003301c8c727$56710ac0$8119fea9@LTVM> Lots of good tips there from you guys! Many thanks. I will work through them. Basically I do not want to have to open the SS and start hand-formatting each time it is created and I think from what I have read so far, I will be able to automat this is a fair degree. Thanks again. Max From Gustav at cactus.dk Thu Jun 5 11:30:38 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 05 Jun 2008 18:30:38 +0200 Subject: [AccessD] Access To Excel via a CSV File Message-ID: Hi Max You can also create a predesigned and -formatted template with no data, then open that from Access and write in the values (with no formatting, of course). /gustav >>> max.wanadoo at gmail.com 05-06-2008 18:15 >>> Lots of good tips there from you guys! Many thanks. I will work through them. Basically I do not want to have to open the SS and start hand-formatting each time it is created and I think from what I have read so far, I will be able to automat this is a fair degree. Thanks again. Max From jengross at gte.net Thu Jun 5 12:40:16 2008 From: jengross at gte.net (Jennifer Gross) Date: Thu, 05 Jun 2008 09:40:16 -0800 Subject: [AccessD] Access To Excel via a CSV File In-Reply-To: <00a501c8c719$2820b0c0$8119fea9@LTVM> Message-ID: <0K2000DBU12CXRTH@vms173003.mailsrvcs.net> Hi Max, I do a lot of Access to Excel. The only reason I would go to a CSV file first is because there is a limit to the number of rows that you can send to Excel - it is somewhere around 4,000. If I know I am going to hit that limit I go to CSV first, then open it in Excel and do the totals, formatting, etc. I leave Excel open and it is left to the user to do the saving as xls. I always keep Excel hidden until I am done so that users don't start clicking away as data is transferring. Also, I never use transferspreadsheet. I always step through a recordset and transfer data row by row. It is quick and gives me much more control. For instance, date values have to be sent to Excel already formatted. If you don't format them first they will send as integer and it seems that no amount of formatting in Excel will bring them back around to dates. Here is some sample code, watch the word wrap. The routines for getting Excel open comes from Dev Ashish's site: Public Sub ToExcel() On Error GoTo ErrorHandler Dim strErrMsg As String 'for Error Handling Dim X As Integer Dim objXL As Excel.Application Dim objWkb As Excel.Workbook Dim objSht As Excel.Worksheet Dim db As DAO.Database Dim qdf As DAO.QueryDef Dim prm As DAO.Parameter Dim rsACData As DAO.Recordset Set db = CurrentDb Set qdf = db.QueryDefs("somequery") For Each prm In qdf.Parameters prm.Value = Eval(prm.Name) Next prm Set rsACData = qdf.OpenRecordset(dbOpenDynaset) 'export data to Excel If (Not rsACData.EOF) And (Not rsACData.BOF) Then If fIsAppRunning("Excel") Then Set objXL = GetObject(, "Excel.Application") Else Set objXL = CreateObject("Excel.Application") End If With objXL .Visible = False Set objWkb = .Workbooks.Add Set objSht = objWkb.Worksheets(1) With objSht .Cells(1, 1) = "Title" .Cells(2, 1) = "Another Title" .Cells(1, 1).Font.Bold = True .Cells(2, 1).Font.Bold = True .Cells(3, 1) = "Column Heading" .Cells(3, 2) = "Column Heading" .Cells(3, 3) = "Column Heading" .Cells(3, 4) = "Column Heading" .Cells(3, 5) = "Column Heading" .Cells(3, 6) = "Column Heading" .Cells(3, 7) = "Column Heading" .Rows(3).Font.Bold = True .Rows(3).WrapText = True .Columns(1).ColumnWidth = 10 .Columns(2).ColumnWidth = 15 .Columns(3).ColumnWidth = 10 .Columns(4).ColumnWidth = 30 .Columns(5).ColumnWidth = 10 .Columns(6).ColumnWidth = 10 .Columns(7).ColumnWidth = 10 X = 4 rsACData.MoveFirst Do Until rsACData.EOF .Cells(X, 1) = rsACData!SomeField .Cells(X, 2) = rsACData! SomeField .Cells(X, 3) = rsACData! SomeField .Cells(X, 4) = Format(rsACData! SomeDateField, "Short Date") .Cells(X, 5) = rsACData! SomeField .Cells(X, 6) = rsACData! SomeField .Cells(X, 7) = rsACData! "=B" & X & "+C" & X & "+E" & X & "+F" & X X = X + 1 rsACData.MoveNext Loop 'totals .Cells(X, 1) = "Totals" .Cells(X, 2) = "=Sum(B4:B" & X - 1 & ")" .Cells(X, 3) = "=Sum(C4:C" & X - 1 & ")" .Cells(X, 5) = "=Sum(E4:E" & X - 1 & ")" .Cells(X, 6) = "=Sum(F4:F" & X - 1 & ")" .Columns(5).NumberFormat = "#,##0.0_)" .Columns(6).NumberFormat = "$#,##0.00_);[Red] ($#,##0.00)" .PageSetup.PrintGridlines = True .PageSetup.Orientation = xlPortrait .PageSetup.PrintTitleRows = .Rows(2).Address objXL.Visible = True objXL.Cells(4, 1).Select objXL.ActiveWindow.FreezePanes = True End With End With Else MsgBox "No data", vbOKOnly + vbExclamation, "No data" End If ExitHere: qdf.Close rsACData.Close Set db = Nothing Set objSht = Nothing Set objWkb = Nothing Set objXL = Nothing DoCmd.Hourglass False DoCmd.SetWarnings True Exit Sub ErrorHandler: Select Case Err Case 91 'do nothing - object never opened Err.Clear Resume Next Case 2501 'no data in report - do nothing Err.Clear Resume Next Case Else strErrMsg = "An error occurred in " & "ToExcel" & vbCrLf & vbCrLf & vbCrLf strErrMsg = strErrMsg & "Error #: " & Format$(Err.Number) & vbCrLf & vbCrLf strErrMsg = strErrMsg & "Error Description: " & Err.Description MsgBox strErrMsg, vbInformation, "ToExcel" Resume ExitHere End Select End Sub I hope this helps, Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Thursday, June 05, 2008 6:34 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access To Excel via a CSV File Can any of you Access/Excel gurus help here please. I need to create a csv spreadsheet by code. When it is complete, I need to put formatting on it. Ie,make columns into Currency Types. Bold some Rows, set some bacground colours, etc. I have got as far as creating the CSV ok but then I am stumped. Any advice most welcome. Ta Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Thu Jun 5 11:50:26 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Thu, 5 Jun 2008 11:50:26 -0500 Subject: [AccessD] Access To Excel via a CSV File In-Reply-To: <0K2000DBU12CXRTH@vms173003.mailsrvcs.net> Message-ID: And just to chime in here, you can also read and write to an Excel spreadsheet (.xls format) using ADO (you can do the same with a .csv file too). Allows you to query against it too, just a matter of setting up the connection object. (And there is a trick, you can make the first row data, or field names, another property in the ADO connection object). Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Thursday, June 05, 2008 12:40 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access To Excel via a CSV File Hi Max, I do a lot of Access to Excel. The only reason I would go to a CSV file first is because there is a limit to the number of rows that you can send to Excel - it is somewhere around 4,000. If I know I am going to hit that limit I go to CSV first, then open it in Excel and do the totals, formatting, etc. I leave Excel open and it is left to the user to do the saving as xls. I always keep Excel hidden until I am done so that users don't start clicking away as data is transferring. Also, I never use transferspreadsheet. I always step through a recordset and transfer data row by row. It is quick and gives me much more control. For instance, date values have to be sent to Excel already formatted. If you don't format them first they will send as integer and it seems that no amount of formatting in Excel will bring them back around to dates. Here is some sample code, watch the word wrap. The routines for getting Excel open comes from Dev Ashish's site: The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From Donald.A.McGillivray at sprint.com Thu Jun 5 13:17:14 2008 From: Donald.A.McGillivray at sprint.com (McGillivray, Don [IT]) Date: Thu, 5 Jun 2008 13:17:14 -0500 Subject: [AccessD] Adding a linked table in code Message-ID: <310215F6BEEEA84A8D6366F219C763313775259377@PDAWM07C.ad.sprint.com> This seems like it ought to be simple, but I'm having trouble, and the Access "help" doesn't. Running Access 2003 SP3. All I want to do is to add a linked table to my db using code. Here's what I have so far: Dim db As DAO.Database, tdf As DAO.TableDef Set db = CurrentDB() With db Set tdf = .CreateTableDef("tblLocalTableName", dbAttachedTable, "tblRemoteTableName", _ "D:\Path\RemoteDB.mdb") .TableDefs.Append tdf .TableDefs.Refresh End With Set db = Nothing The error occurs on the "Set tdf . . . " line, and is "3001 - Invalid argument". If I remove the Attributes argument (dbAttachedTable), I get an error on the ".TableDefs.Append" line, saying "3264 No field defined--cannot append tabeldef or index". Seems like I ought to be able to tell it that I'm attaching to an existing table in an existing db, but obviously I'm doing something wrong here. I've checked to be sure that the specified table exists in the remote db, and I've tried appending ";DATABASE=" to the connect string argument, all to no avail. Any advice out there? Thanks! Don McGillivray From shamil at smsconsulting.spb.ru Thu Jun 5 13:20:53 2008 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Thu, 5 Jun 2008 22:20:53 +0400 Subject: [AccessD] Access To Excel via a CSV File In-Reply-To: <00a501c8c719$2820b0c0$8119fea9@LTVM> Message-ID: <051001c8c738$e3ef0e90$6401a8c0@nant> Hello Max, If your output .csv will have predefined format then the following tricks could work: - prepare formatted .xls template worksheet (let's call it myTemplate.xls); - generate/export .csv from MS Access and assign to the output filename an .xls extension (let's call it my.csv.xls); - open generated my.csv.xls in XL using Automation (and all the following actions will be performed using Automation also); - open myTemplate.xls in XL; - select all cells of myTemplate.xls's template worksheet; - execute copy of selected range to clipboard; - switch to previously opened my.csn.xls; - select all its cells and use Paste Special->Formats... ... That could be it... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Thursday, June 05, 2008 6:34 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access To Excel via a CSV File Can any of you Access/Excel gurus help here please. I need to create a csv spreadsheet by code. When it is complete, I need to put formatting on it. Ie,make columns into Currency Types. Bold some Rows, set some bacground colours, etc. I have got as far as creating the CSV ok but then I am stumped. Any advice most welcome. Ta Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Thu Jun 5 13:32:17 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Thu, 5 Jun 2008 19:32:17 +0100 Subject: [AccessD] Adding a linked table in code In-Reply-To: <310215F6BEEEA84A8D6366F219C763313775259377@PDAWM07C.ad.sprint.com> References: <310215F6BEEEA84A8D6366F219C763313775259377@PDAWM07C.ad.sprint.com> Message-ID: <004701c8c73a$7cbcd5c0$8119fea9@LTVM> Hi Don, I just do this:- If bUserWantsNetwork Then DoCmd.TransferDatabase acLink, "Microsoft Access", conDataPathNetwork & conDatabaseMain, acTable, "mcmSystemInfo", "mcmSystemInfo", False, False Else DoCmd.TransferDatabase acLink, "Microsoft Access", conDataPathLocal & conDatabaseMain, acTable, "mcmSystemInfo", "mcmSystemInfo", False, False End If The above opens a table which contains details of all other tables to link. It then runs through them all and links them in, thus: DoCmd.TransferDatabase acLink, "Microsoft Access", strPathMain, acTable, strLinkThisTable, strLinkThisTable, False, False Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of McGillivray, Don [IT] Sent: Thursday, June 05, 2008 7:17 PM To: Access Developers discussion and problem solving Subject: [AccessD] Adding a linked table in code This seems like it ought to be simple, but I'm having trouble, and the Access "help" doesn't. Running Access 2003 SP3. All I want to do is to add a linked table to my db using code. Here's what I have so far: Dim db As DAO.Database, tdf As DAO.TableDef Set db = CurrentDB() With db Set tdf = .CreateTableDef("tblLocalTableName", dbAttachedTable, "tblRemoteTableName", _ "D:\Path\RemoteDB.mdb") .TableDefs.Append tdf .TableDefs.Refresh End With Set db = Nothing The error occurs on the "Set tdf . . . " line, and is "3001 - Invalid argument". If I remove the Attributes argument (dbAttachedTable), I get an error on the ".TableDefs.Append" line, saying "3264 No field defined--cannot append tabeldef or index". Seems like I ought to be able to tell it that I'm attaching to an existing table in an existing db, but obviously I'm doing something wrong here. I've checked to be sure that the specified table exists in the remote db, and I've tried appending ";DATABASE=" to the connect string argument, all to no avail. Any advice out there? Thanks! Don McGillivray -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Thu Jun 5 13:42:19 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Thu, 05 Jun 2008 14:42:19 -0400 Subject: [AccessD] Adding a linked table in code In-Reply-To: <004701c8c73a$7cbcd5c0$8119fea9@LTVM> References: <310215F6BEEEA84A8D6366F219C763313775259377@PDAWM07C.ad.sprint.com> <004701c8c73a$7cbcd5c0$8119fea9@LTVM> Message-ID: <4848338B.2040300@colbyconsulting.com> How long do these docmd.xxx take? John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Hi Don, > > I just do this:- > > If bUserWantsNetwork Then > DoCmd.TransferDatabase acLink, "Microsoft Access", conDataPathNetwork & > conDatabaseMain, acTable, "mcmSystemInfo", "mcmSystemInfo", False, False > Else > DoCmd.TransferDatabase acLink, "Microsoft Access", conDataPathLocal & > conDatabaseMain, acTable, "mcmSystemInfo", "mcmSystemInfo", False, False > End If > > The above opens a table which contains details of all other tables to link. > It then runs through them all and links them in, thus: > > DoCmd.TransferDatabase acLink, "Microsoft Access", strPathMain, > acTable, strLinkThisTable, strLinkThisTable, False, False > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of McGillivray, Don > [IT] > Sent: Thursday, June 05, 2008 7:17 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Adding a linked table in code > > This seems like it ought to be simple, but I'm having trouble, and the > Access "help" doesn't. Running Access 2003 SP3. > > All I want to do is to add a linked table to my db using code. Here's what > I have so far: > > Dim db As DAO.Database, tdf As DAO.TableDef Set db = CurrentDB() With db > Set tdf = .CreateTableDef("tblLocalTableName", dbAttachedTable, > "tblRemoteTableName", _ > "D:\Path\RemoteDB.mdb") > .TableDefs.Append tdf > .TableDefs.Refresh > End With > Set db = Nothing > > The error occurs on the "Set tdf . . . " line, and is "3001 - Invalid > argument". > > If I remove the Attributes argument (dbAttachedTable), I get an error on the > ".TableDefs.Append" line, saying "3264 No field defined--cannot append > tabeldef or index". > > Seems like I ought to be able to tell it that I'm attaching to an existing > table in an existing db, but obviously I'm doing something wrong here. I've > checked to be sure that the specified table exists in the remote db, and > I've tried appending ";DATABASE=" to the connect string argument, all to no > avail. > > Any advice out there? > > > Thanks! > > Don McGillivray > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From max.wanadoo at gmail.com Thu Jun 5 13:59:16 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Thu, 5 Jun 2008 19:59:16 +0100 Subject: [AccessD] Adding a linked table in code In-Reply-To: <4848338B.2040300@colbyconsulting.com> References: <310215F6BEEEA84A8D6366F219C763313775259377@PDAWM07C.ad.sprint.com><004701c8c73a$7cbcd5c0$8119fea9@LTVM> <4848338B.2040300@colbyconsulting.com> Message-ID: <000301c8c73e$41f84ab0$8119fea9@LTVM> Well typically it is only required when: 1. New tables have been added to the BE 2. The User (programmer/me) wants to work on a local BE instead of the live (networked) BE. I can then just jump between the two. 3. Time is depending on the number of tables but not very long. NB. I change the backgroun color of the main menu to make it clear whether I am working with LIVE or LOCAL data. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Thursday, June 05, 2008 7:42 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Adding a linked table in code How long do these docmd.xxx take? John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Hi Don, > > I just do this:- > > If bUserWantsNetwork Then > DoCmd.TransferDatabase acLink, "Microsoft Access", > conDataPathNetwork & conDatabaseMain, acTable, "mcmSystemInfo", "mcmSystemInfo", False, False > Else > DoCmd.TransferDatabase acLink, "Microsoft Access", > conDataPathLocal & conDatabaseMain, acTable, "mcmSystemInfo", "mcmSystemInfo", False, False > End If > > The above opens a table which contains details of all other tables to link. > It then runs through them all and links them in, thus: > > DoCmd.TransferDatabase acLink, "Microsoft Access", > strPathMain, acTable, strLinkThisTable, strLinkThisTable, False, False > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > McGillivray, Don [IT] > Sent: Thursday, June 05, 2008 7:17 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] Adding a linked table in code > > This seems like it ought to be simple, but I'm having trouble, and the > Access "help" doesn't. Running Access 2003 SP3. > > All I want to do is to add a linked table to my db using code. Here's > what I have so far: > > Dim db As DAO.Database, tdf As DAO.TableDef Set db = CurrentDB() With db > Set tdf = .CreateTableDef("tblLocalTableName", > dbAttachedTable, "tblRemoteTableName", _ > "D:\Path\RemoteDB.mdb") > .TableDefs.Append tdf > .TableDefs.Refresh > End With > Set db = Nothing > > The error occurs on the "Set tdf . . . " line, and is "3001 - Invalid > argument". > > If I remove the Attributes argument (dbAttachedTable), I get an error > on the ".TableDefs.Append" line, saying "3264 No field defined--cannot > append tabeldef or index". > > Seems like I ought to be able to tell it that I'm attaching to an > existing table in an existing db, but obviously I'm doing something > wrong here. I've checked to be sure that the specified table exists > in the remote db, and I've tried appending ";DATABASE=" to the connect > string argument, all to no avail. > > Any advice out there? > > > Thanks! > > Don McGillivray > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Thu Jun 5 14:32:37 2008 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 5 Jun 2008 19:32:37 +0000 Subject: [AccessD] Report With MEMO In-Reply-To: References: <0K2000DBU12CXRTH@vms173003.mailsrvcs.net> Message-ID: Hello All, I have a report I need to "Publish with Word". There is a Memo field...the problem is not ALL of the text from the MEMO is making it to the word(.rtf). I have appended some text to the end of field to determine if all was printed... Bottom line...I need about 20 fields and a memo into some sort of structured word/text document. Any thoughts? Thanks, Mark A. Matte _________________________________________________________________ Instantly invite friends from Facebook and other social networks to join you on Windows Live? Messenger. https://www.invite2messenger.net/im/?source=TXT_EML_WLH_InviteFriends From Donald.A.McGillivray at sprint.com Thu Jun 5 14:41:46 2008 From: Donald.A.McGillivray at sprint.com (McGillivray, Don [IT]) Date: Thu, 5 Jun 2008 14:41:46 -0500 Subject: [AccessD] Adding a linked table in code In-Reply-To: <004701c8c73a$7cbcd5c0$8119fea9@LTVM> References: <310215F6BEEEA84A8D6366F219C763313775259377@PDAWM07C.ad.sprint.com> <004701c8c73a$7cbcd5c0$8119fea9@LTVM> Message-ID: <310215F6BEEEA84A8D6366F219C763313775259668@PDAWM07C.ad.sprint.com> Thanks, Max. That's just the ticket. Still not sure why the other method didn't work, but figuring that out is for another day . . . Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Thursday, June 05, 2008 11:32 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Adding a linked table in code Hi Don, I just do this:- If bUserWantsNetwork Then DoCmd.TransferDatabase acLink, "Microsoft Access", conDataPathNetwork & conDatabaseMain, acTable, "mcmSystemInfo", "mcmSystemInfo", False, False Else DoCmd.TransferDatabase acLink, "Microsoft Access", conDataPathLocal & conDatabaseMain, acTable, "mcmSystemInfo", "mcmSystemInfo", False, False End If The above opens a table which contains details of all other tables to link. It then runs through them all and links them in, thus: DoCmd.TransferDatabase acLink, "Microsoft Access", strPathMain, acTable, strLinkThisTable, strLinkThisTable, False, False Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of McGillivray, Don [IT] Sent: Thursday, June 05, 2008 7:17 PM To: Access Developers discussion and problem solving Subject: [AccessD] Adding a linked table in code This seems like it ought to be simple, but I'm having trouble, and the Access "help" doesn't. Running Access 2003 SP3. All I want to do is to add a linked table to my db using code. Here's what I have so far: Dim db As DAO.Database, tdf As DAO.TableDef Set db = CurrentDB() With db Set tdf = .CreateTableDef("tblLocalTableName", dbAttachedTable, "tblRemoteTableName", _ "D:\Path\RemoteDB.mdb") .TableDefs.Append tdf .TableDefs.Refresh End With Set db = Nothing The error occurs on the "Set tdf . . . " line, and is "3001 - Invalid argument". If I remove the Attributes argument (dbAttachedTable), I get an error on the ".TableDefs.Append" line, saying "3264 No field defined--cannot append tabeldef or index". Seems like I ought to be able to tell it that I'm attaching to an existing table in an existing db, but obviously I'm doing something wrong here. I've checked to be sure that the specified table exists in the remote db, and I've tried appending ";DATABASE=" to the connect string argument, all to no avail. Any advice out there? Thanks! Don McGillivray -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From fuller.artful at gmail.com Thu Jun 5 15:07:16 2008 From: fuller.artful at gmail.com (Arthur Fuller) Date: Thu, 5 Jun 2008 17:07:16 -0300 Subject: [AccessD] Report With MEMO In-Reply-To: References: <0K2000DBU12CXRTH@vms173003.mailsrvcs.net> Message-ID: <29f585dd0806051307y470d6db4h3609f5abb441361@mail.gmail.com> I wrote an app a couple of years back that created several Word documents that were contracts based on various data entered. The code is not really generic, but if you like I could send it to you. The approach I took was to create the initial Word documents with a bunch of bookmarks in them, then from Access I wrote code to open an instance of Word with the said document. The Access code used the standard recordset code to grab the data. I then walked through the bookmarks and assigned text to them drawn from the recordset. It worked extremely well. The code was not particularly complex but it was lengthy because the several documents I had to produce amounted to about a dozen pages per "record" (by which I mean a row in a view -- data from several records) If you want the code, let me know and I'll send it offline. Arthur On Thu, Jun 5, 2008 at 4:32 PM, Mark A Matte wrote: > > Hello All, > > I have a report I need to "Publish with Word". There is a Memo field...the > problem is not ALL of the text from the MEMO is making it to the word(.rtf). > I have appended some text to the end of field to determine if all was > printed... > > Bottom line...I need about 20 fields and a memo into some sort of > structured word/text document. > > Any thoughts? > > Thanks, > > Mark A. Matte From Gustav at cactus.dk Thu Jun 5 16:00:17 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 05 Jun 2008 23:00:17 +0200 Subject: [AccessD] Report With MEMO Message-ID: Hi Mark An old trick was to append a couple of line feeds to the memo field's control source in the report: =[memoYourNoteField] & Chr(13) & Chr(10) & Chr(13) & Chr(10) /gustav >>> markamatte at hotmail.com 05-06-2008 21:32 >>> Hello All, I have a report I need to "Publish with Word". There is a Memo field...the problem is not ALL of the text from the MEMO is making it to the word(.rtf). I have appended some text to the end of field to determine if all was printed... Bottom line...I need about 20 fields and a memo into some sort of structured word/text document. Any thoughts? Thanks, Mark A. Matte From ab-mi at post3.tele.dk Thu Jun 5 17:18:28 2008 From: ab-mi at post3.tele.dk (Asger Blond) Date: Fri, 6 Jun 2008 00:18:28 +0200 Subject: [AccessD] Report With MEMO In-Reply-To: Message-ID: <000501c8c75a$146ad970$2101a8c0@AB> Mark, Did you set the Can Grow property to Yes for the memo-field's textbox in the report? Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Mark A Matte Sendt: 5. juni 2008 21:33 Til: Access Developers discussion and problem solving Emne: [AccessD] Report With MEMO Hello All, I have a report I need to "Publish with Word". There is a Memo field...the problem is not ALL of the text from the MEMO is making it to the word(.rtf). I have appended some text to the end of field to determine if all was printed... Bottom line...I need about 20 fields and a memo into some sort of structured word/text document. Any thoughts? Thanks, Mark A. Matte _________________________________________________________________ Instantly invite friends from Facebook and other social networks to join you on Windows Live? Messenger. https://www.invite2messenger.net/im/?source=TXT_EML_WLH_InviteFriends -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Darryl.Collins at coles.com.au Thu Jun 5 19:06:42 2008 From: Darryl.Collins at coles.com.au (Darryl Collins) Date: Fri, 6 Jun 2008 10:06:42 +1000 Subject: [AccessD] Access To Excel via a CSV File Message-ID: <49DFE57FB126044B8A8B934E7AEA09ED09FD74D5@WPEXCH05.colesmyer.ad.cmltd.net.au> Max, As an Excel Developer I would recommend Jenny's approach 65535 rows) then using CSV out and a byte array into Excel is a better way to go. cheers Darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Jennifer Gross Sent: Friday, 6 June 2008 3:40 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access To Excel via a CSV File Hi Max, I do a lot of Access to Excel. The only reason I would go to a CSV file first is because there is a limit to the number of rows that you can send to Excel - it is somewhere around 4,000. If I know I am going to hit that limit I go to CSV first, then open it in Excel and do the totals, formatting, etc. I leave Excel open and it is left to the user to do the saving as xls. I always keep Excel hidden until I am done so that users don't start clicking away as data is transferring. Also, I never use transferspreadsheet. I always step through a recordset and transfer data row by row. It is quick and gives me much more control. For instance, date values have to be sent to Excel already formatted. If you don't format them first they will send as integer and it seems that no amount of formatting in Excel will bring them back around to dates. Here is some sample code, watch the word wrap. The routines for getting Excel open comes from Dev Ashish's site: Public Sub ToExcel() On Error GoTo ErrorHandler Dim strErrMsg As String 'for Error Handling Dim X As Integer Dim objXL As Excel.Application Dim objWkb As Excel.Workbook Dim objSht As Excel.Worksheet Dim db As DAO.Database Dim qdf As DAO.QueryDef Dim prm As DAO.Parameter Dim rsACData As DAO.Recordset Set db = CurrentDb Set qdf = db.QueryDefs("somequery") For Each prm In qdf.Parameters prm.Value = Eval(prm.Name) Next prm Set rsACData = qdf.OpenRecordset(dbOpenDynaset) 'export data to Excel If (Not rsACData.EOF) And (Not rsACData.BOF) Then If fIsAppRunning("Excel") Then Set objXL = GetObject(, "Excel.Application") Else Set objXL = CreateObject("Excel.Application") End If With objXL .Visible = False Set objWkb = .Workbooks.Add Set objSht = objWkb.Worksheets(1) With objSht .Cells(1, 1) = "Title" .Cells(2, 1) = "Another Title" .Cells(1, 1).Font.Bold = True .Cells(2, 1).Font.Bold = True .Cells(3, 1) = "Column Heading" .Cells(3, 2) = "Column Heading" .Cells(3, 3) = "Column Heading" .Cells(3, 4) = "Column Heading" .Cells(3, 5) = "Column Heading" .Cells(3, 6) = "Column Heading" .Cells(3, 7) = "Column Heading" .Rows(3).Font.Bold = True .Rows(3).WrapText = True .Columns(1).ColumnWidth = 10 .Columns(2).ColumnWidth = 15 .Columns(3).ColumnWidth = 10 .Columns(4).ColumnWidth = 30 .Columns(5).ColumnWidth = 10 .Columns(6).ColumnWidth = 10 .Columns(7).ColumnWidth = 10 X = 4 rsACData.MoveFirst Do Until rsACData.EOF .Cells(X, 1) = rsACData!SomeField .Cells(X, 2) = rsACData! SomeField .Cells(X, 3) = rsACData! SomeField .Cells(X, 4) = Format(rsACData! SomeDateField, "Short Date") .Cells(X, 5) = rsACData! SomeField .Cells(X, 6) = rsACData! SomeField .Cells(X, 7) = rsACData! "=B" & X & "+C" & X & "+E" & X & "+F" & X X = X + 1 rsACData.MoveNext Loop 'totals .Cells(X, 1) = "Totals" .Cells(X, 2) = "=Sum(B4:B" & X - 1 & ")" .Cells(X, 3) = "=Sum(C4:C" & X - 1 & ")" .Cells(X, 5) = "=Sum(E4:E" & X - 1 & ")" .Cells(X, 6) = "=Sum(F4:F" & X - 1 & ")" .Columns(5).NumberFormat = "#,##0.0_)" .Columns(6).NumberFormat = "$#,##0.00_);[Red] ($#,##0.00)" .PageSetup.PrintGridlines = True .PageSetup.Orientation = xlPortrait .PageSetup.PrintTitleRows = .Rows(2).Address objXL.Visible = True objXL.Cells(4, 1).Select objXL.ActiveWindow.FreezePanes = True End With End With Else MsgBox "No data", vbOKOnly + vbExclamation, "No data" End If ExitHere: qdf.Close rsACData.Close Set db = Nothing Set objSht = Nothing Set objWkb = Nothing Set objXL = Nothing DoCmd.Hourglass False DoCmd.SetWarnings True Exit Sub ErrorHandler: Select Case Err Case 91 'do nothing - object never opened Err.Clear Resume Next Case 2501 'no data in report - do nothing Err.Clear Resume Next Case Else strErrMsg = "An error occurred in " & "ToExcel" & vbCrLf & vbCrLf & vbCrLf strErrMsg = strErrMsg & "Error #: " & Format$(Err.Number) & vbCrLf & vbCrLf strErrMsg = strErrMsg & "Error Description: " & Err.Description MsgBox strErrMsg, vbInformation, "ToExcel" Resume ExitHere End Select End Sub I hope this helps, Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Thursday, June 05, 2008 6:34 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access To Excel via a CSV File Can any of you Access/Excel gurus help here please. I need to create a csv spreadsheet by code. When it is complete, I need to put formatting on it. Ie,make columns into Currency Types. Bold some Rows, set some bacground colours, etc. I have got as far as creating the CSV ok but then I am stumped. Any advice most welcome. Ta Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. From rbgajewski at adelphia.net Thu Jun 5 22:58:55 2008 From: rbgajewski at adelphia.net (Bob Gajewski) Date: Thu, 5 Jun 2008 23:58:55 -0400 Subject: [AccessD] How do I clear a combobox? (email contains a fair amount of code) In-Reply-To: References: <48344BAF.5070201@colbyconsulting.com><0K180010P9OQULQA@vms046.mailsrvcs.net><05DE242CFBBA43C4B6489DF1EC8EB0CF@DCYN3T81><000701c8bbbe$4c5c8010$6401a8c0@DELLAPTOP><81AA4423456E48DEBC3A79267EF7D4B6@DCYN3T81><7F30435A522D4343B9D08C3146C0EE9E@DCYN3T81><2453E9D76621444C97072896B2D738FC@danwaters><00f001c8c4b4$4758abd0$8119fea9@LTVM><37783233032446C4BFD3325BE63D99E3@danwaters><011201c8c4c0$c29308c0$8119fea9@LTVM> Message-ID: I have a form with combobox fields for various ambulance personnel: Driver, Assistant, Attendant1, Attendant2, and Attendant3. Each combobox has the LimitToList property set to "No". This form is bound to tblMembers, which includes 3 attribute flags (Yes/No fields): booMember, booMemberActive, and booMemberEMS. I have 3 queries on the table: qryMembers - returns all records where booMember=True qryMembersActive - returns all records where booMember=True And booMemberActive=True qryMembersEMS - returns all records where booMember=TrueAnd booMemberActive=True And booMemberEMS=True In the Form_Current module, I initialize the combobox fields: Driver.RowSource = "SELECT '(Show All Members)' from qryMembersActive UNION SELECT DISTINCT [FullName] from qryMembersActive" Assistant.RowSource = "SELECT '(Show All Members)' from qryMembersActive UNION SELECT DISTINCT [FullName] from qryMembersActive" Attendant1.RowSource = "SELECT '(Show All Active)' from qryMembersEMS UNION SELECT '(Show All Members)' from qryMembersEMS UNION SELECT DISTINCT [FullName] from qryMembersEMS" Attendant2.RowSource = "SELECT '(Show All Active)' from qryMembersEMS UNION SELECT '(Show All Members)' from qryMembersEMS UNION SELECT DISTINCT [FullName] from qryMembersEMS" Attendant3.RowSource = "SELECT '(Show All Active)' from qryMembersEMS UNION SELECT '(Show All Members)' from qryMembersEMS UNION SELECT DISTINCT [FullName] from qryMembersEMS" So far, so good - the code *works perfectly*. For the rest of this question, I'll only refer to one - Attendant3. In the _BeforeUpdate module, I test for the selection of the 'Show All' values, and if selected, I update the RowSource: Private Sub Attendant3_BeforeUpdate(Cancel As Integer) If Attendant3 = "(Show All Active)" Then MsgBox ("Please select a valid Active Member or enter a non-Member's name (last name, first name).") Attendant3.RowSource = "SELECT '(Show All Members)' from qryMembersActive UNION SELECT DISTINCT [FullName] from qryMembersActive" Cancel = True ElseIf Attendant3 = "(Show All Members)" Then MsgBox ("Please select a valid Member or enter a non-Member's name (last name, first name).") Attendant3.RowSource = "qryMembers" Cancel = True End If End Sub My problem? I want the combobox to show a default value nothing if either of the "Show All" options is selected, but after the Cancel=True executes, control is returned to the combobox with the proper row source but with the "Show All" selection showing in the combobox. How do I blank that out? I have tried Attendant3="" and Attendant3=Null both on the line before and the line after the Cancel=True. I have run out of ideas. Any suggestions? TIA, Bob Gajewski From ssharkins at gmail.com Fri Jun 6 00:41:41 2008 From: ssharkins at gmail.com (Susan Harkins) Date: Fri, 6 Jun 2008 01:41:41 -0400 Subject: [AccessD] How do I clear a combobox? (email contains a fair amountof code) References: <48344BAF.5070201@colbyconsulting.com><0K180010P9OQULQA@vms046.mailsrvcs.net><05DE242CFBBA43C4B6489DF1EC8EB0CF@DCYN3T81><000701c8bbbe$4c5c8010$6401a8c0@DELLAPTOP><81AA4423456E48DEBC3A79267EF7D4B6@DCYN3T81><7F30435A522D4343B9D08C3146C0EE9E@DCYN3T81><2453E9D76621444C97072896B2D738FC@danwaters><00f001c8c4b4$4758abd0$8119fea9@LTVM><37783233032446C4BFD3325BE63D99E3@danwaters><011201c8c4c0$c29308c0$8119fea9@LTVM> Message-ID: <008c01c8c798$7ed6ec70$2f8601c7@SusanOne> > My problem? I want the combobox to show a default value nothing if either > of > the "Show All" options is selected, but after the Cancel=True executes, > control is returned to the combobox with the proper row source but with > the > "Show All" selection showing in the combobox. How do I blank that out? =======I don't know what you mean by a default value of nothing -- do you mean you want the combo box to have no list -- to be totally blank? Or, do you mean that you want the text box portion of the combo box to be empty -- meaning, the combo box has no selected item? Susan H. From Gustav at cactus.dk Fri Jun 6 04:32:08 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 06 Jun 2008 11:32:08 +0200 Subject: [AccessD] Benchmark Message-ID: Hi all Should you need to benchmark a database server, an application for this - TM1 - is for download at Solid (now owned by IBM): http://www.solidtech.com/en/developers/CarrierGrade/tm1.asp TM1 simulates a typical Home Location Register (HLR) database used by a mobile carrier. The HLR is an application mobile network operators use to store all relevant information about valid subscribers, including the mobile phone number, the services to which they have subscribed, access privileges, and the current location of the subscriber's handset. /gustav From rbgajewski at adelphia.net Fri Jun 6 05:59:51 2008 From: rbgajewski at adelphia.net (Bob Gajewski) Date: Fri, 6 Jun 2008 06:59:51 -0400 Subject: [AccessD] How do I clear a combobox? (email contains a fairamountof code) In-Reply-To: <008c01c8c798$7ed6ec70$2f8601c7@SusanOne> References: <48344BAF.5070201@colbyconsulting.com><0K180010P9OQULQA@vms046.mailsrvcs.net><05DE242CFBBA43C4B6489DF1EC8EB0CF@DCYN3T81><000701c8bbbe$4c5c8010$6401a8c0@DELLAPTOP><81AA4423456E48DEBC3A79267EF7D4B6@DCYN3T81><7F30435A522D4343B9D08C3146C0EE9E@DCYN3T81><2453E9D76621444C97072896B2D738FC@danwaters><00f001c8c4b4$4758abd0$8119fea9@LTVM><37783233032446C4BFD3325BE63D99E3@danwaters><011201c8c4c0$c29308c0$8119fea9@LTVM> <008c01c8c798$7ed6ec70$2f8601c7@SusanOne> Message-ID: Susan #2 - no selected item. Thanks, Bob -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Friday, June 06, 2008 01:42 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] How do I clear a combobox? (email contains a fairamountof code) > My problem? I want the combobox to show a default value nothing if > either of the "Show All" options is selected, but after the > Cancel=True executes, control is returned to the combobox with the > proper row source but with the "Show All" selection showing in the > combobox. How do I blank that out? =======I don't know what you mean by a default value of nothing -- do you mean you want the combo box to have no list -- to be totally blank? Or, do you mean that you want the text box portion of the combo box to be empty -- meaning, the combo box has no selected item? Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From max.wanadoo at gmail.com Fri Jun 6 07:34:08 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Fri, 6 Jun 2008 13:34:08 +0100 Subject: [AccessD] Access To Excel via a CSV File In-Reply-To: <051001c8c738$e3ef0e90$6401a8c0@nant> References: <00a501c8c719$2820b0c0$8119fea9@LTVM> <051001c8c738$e3ef0e90$6401a8c0@nant> Message-ID: <005a01c8c7d1$9ee2b8d0$8119fea9@LTVM> Well, Thanks to all those who responded. I have had quite some success, but not fully. Thanks to Jennifer's and Rocky's examples and all the other tips I was able to create the xls exactly as I wanted. This is great. I am able to give it a filename and save it to disk. From there I can email it out. All this from the click of a button without the user seeing or doing anything - Brilliant! However, the one small glitch I have is that when it is subsequently opened up, the worksheet "floats" within the Excel App. It has its own title bar which can be grabbed and moved around. Any ideas? Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, June 05, 2008 7:21 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access To Excel via a CSV File Hello Max, If your output .csv will have predefined format then the following tricks could work: - prepare formatted .xls template worksheet (let's call it myTemplate.xls); - generate/export .csv from MS Access and assign to the output filename an .xls extension (let's call it my.csv.xls); - open generated my.csv.xls in XL using Automation (and all the following actions will be performed using Automation also); - open myTemplate.xls in XL; - select all cells of myTemplate.xls's template worksheet; - execute copy of selected range to clipboard; - switch to previously opened my.csn.xls; - select all its cells and use Paste Special->Formats... ... That could be it... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo Sent: Thursday, June 05, 2008 6:34 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access To Excel via a CSV File Can any of you Access/Excel gurus help here please. I need to create a csv spreadsheet by code. When it is complete, I need to put formatting on it. Ie,make columns into Currency Types. Bold some Rows, set some bacground colours, etc. I have got as far as creating the CSV ok but then I am stumped. Any advice most welcome. Ta Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Jun 6 07:47:42 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 06 Jun 2008 08:47:42 -0400 Subject: [AccessD] Access To Excel via a CSV File In-Reply-To: <005a01c8c7d1$9ee2b8d0$8119fea9@LTVM> References: <00a501c8c719$2820b0c0$8119fea9@LTVM> <051001c8c738$e3ef0e90$6401a8c0@nant> <005a01c8c7d1$9ee2b8d0$8119fea9@LTVM> Message-ID: <484931EE.5010002@colbyconsulting.com> LOL, you want it ALL eh? John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Well, > Thanks to all those who responded. > I have had quite some success, but not fully. > Thanks to Jennifer's and Rocky's examples and all the other tips I was able > to create the xls exactly as I wanted. This is great. > I am able to give it a filename and save it to disk. From there I can email > it out. > All this from the click of a button without the user seeing or doing > anything - Brilliant! > > However, the one small glitch I have is that when it is subsequently opened > up, the worksheet "floats" within the Excel App. It has its own title bar > which can be grabbed and moved around. Any ideas? > > Max > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil > Salakhetdinov > Sent: Thursday, June 05, 2008 7:21 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Access To Excel via a CSV File > > Hello Max, > > If your output .csv will have predefined format then the following tricks > could work: > > - prepare formatted .xls template worksheet (let's call it myTemplate.xls); > - generate/export .csv from MS Access and assign to the output filename an > .xls extension (let's call it my.csv.xls); > - open generated my.csv.xls in XL using Automation (and all the following > actions will be performed using Automation also); > - open myTemplate.xls in XL; > - select all cells of myTemplate.xls's template worksheet; > - execute copy of selected range to clipboard; > - switch to previously opened my.csn.xls; > - select all its cells and use Paste Special->Formats... > ... > > That could be it... > > -- > Shamil > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo > Sent: Thursday, June 05, 2008 6:34 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Access To Excel via a CSV File > > > Can any of you Access/Excel gurus help here please. > I need to create a csv spreadsheet by code. When it is complete, I need to > put formatting on it. Ie,make columns into Currency Types. Bold some Rows, > set some bacground colours, etc. > I have got as far as creating the CSV ok but then I am stumped. > Any advice most welcome. > Ta > Max > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From max.wanadoo at gmail.com Fri Jun 6 07:55:17 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Fri, 6 Jun 2008 13:55:17 +0100 Subject: [AccessD] Access To Excel via a CSV File In-Reply-To: <484931EE.5010002@colbyconsulting.com> References: <00a501c8c719$2820b0c0$8119fea9@LTVM> <051001c8c738$e3ef0e90$6401a8c0@nant><005a01c8c7d1$9ee2b8d0$8119fea9@LTVM> <484931EE.5010002@colbyconsulting.com> Message-ID: <005e01c8c7d4$931c2ab0$8119fea9@LTVM> No....hang on. Just recompiled etc and now it works perfectly. Brilliant. Thanks guys. Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Friday, June 06, 2008 1:48 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access To Excel via a CSV File LOL, you want it ALL eh? John W. Colby www.ColbyConsulting.com Max Wanadoo wrote: > Well, > Thanks to all those who responded. > I have had quite some success, but not fully. > Thanks to Jennifer's and Rocky's examples and all the other tips I was > able to create the xls exactly as I wanted. This is great. > I am able to give it a filename and save it to disk. From there I can > email it out. > All this from the click of a button without the user seeing or doing > anything - Brilliant! > > However, the one small glitch I have is that when it is subsequently > opened up, the worksheet "floats" within the Excel App. It has its > own title bar which can be grabbed and moved around. Any ideas? > > Max > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil > Salakhetdinov > Sent: Thursday, June 05, 2008 7:21 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] Access To Excel via a CSV File > > Hello Max, > > If your output .csv will have predefined format then the following > tricks could work: > > - prepare formatted .xls template worksheet (let's call it > myTemplate.xls); > - generate/export .csv from MS Access and assign to the output > filename an .xls extension (let's call it my.csv.xls); > - open generated my.csv.xls in XL using Automation (and all the > following actions will be performed using Automation also); > - open myTemplate.xls in XL; > - select all cells of myTemplate.xls's template worksheet; > - execute copy of selected range to clipboard; > - switch to previously opened my.csn.xls; > - select all its cells and use Paste Special->Formats... > ... > > That could be it... > > -- > Shamil > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo > Sent: Thursday, June 05, 2008 6:34 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Access To Excel via a CSV File > > > Can any of you Access/Excel gurus help here please. > I need to create a csv spreadsheet by code. When it is complete, I > need to put formatting on it. Ie,make columns into Currency Types. > Bold some Rows, set some bacground colours, etc. > I have got as far as creating the CSV ok but then I am stumped. > Any advice most welcome. > Ta > Max > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From mfisch4 at capex.com.ar Fri Jun 6 07:58:11 2008 From: mfisch4 at capex.com.ar (MF) Date: Fri, 06 Jun 2008 09:58:11 -0300 Subject: [AccessD] Access To Excel via a CSV File In-Reply-To: <005a01c8c7d1$9ee2b8d0$8119fea9@LTVM> References: <00a501c8c719$2820b0c0$8119fea9@LTVM> <051001c8c738$e3ef0e90$6401a8c0@nant> <005a01c8c7d1$9ee2b8d0$8119fea9@LTVM> Message-ID: <200806061258.m56CwF2t006390@databaseadvisors.com> [vba] ActiveWindow.WindowState = xlMaximized [/vba] MF ______________________________ At 09:34 AM 06/06/2008, you wrote: >Well, >Thanks to all those who responded. >I have had quite some success, but not fully. >Thanks to Jennifer's and Rocky's examples and all the other tips I was able >to create the xls exactly as I wanted. This is great. >I am able to give it a filename and save it to disk. From there I can email >it out. >All this from the click of a button without the user seeing or doing >anything - Brilliant! > >However, the one small glitch I have is that when it is subsequently opened >up, the worksheet "floats" within the Excel App. It has its own title bar >which can be grabbed and moved around. Any ideas? > >Max > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil >Salakhetdinov >Sent: Thursday, June 05, 2008 7:21 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Access To Excel via a CSV File > >Hello Max, > >If your output .csv will have predefined format then the following tricks >could work: > >- prepare formatted .xls template worksheet (let's call it myTemplate.xls); >- generate/export .csv from MS Access and assign to the output filename an >.xls extension (let's call it my.csv.xls); >- open generated my.csv.xls in XL using Automation (and all the following >actions will be performed using Automation also); >- open myTemplate.xls in XL; >- select all cells of myTemplate.xls's template worksheet; >- execute copy of selected range to clipboard; >- switch to previously opened my.csn.xls; >- select all its cells and use Paste Special->Formats... >... > >That could be it... > >-- >Shamil > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo >Sent: Thursday, June 05, 2008 6:34 PM >To: 'Access Developers discussion and problem solving' >Subject: [AccessD] Access To Excel via a CSV File > > >Can any of you Access/Excel gurus help here please. >I need to create a csv spreadsheet by code. When it is complete, I need to >put formatting on it. Ie,make columns into Currency Types. Bold some Rows, >set some bacground colours, etc. >I have got as far as creating the CSV ok but then I am stumped. >Any advice most welcome. >Ta >Max From ssharkins at gmail.com Fri Jun 6 07:59:12 2008 From: ssharkins at gmail.com (Susan Harkins) Date: Fri, 6 Jun 2008 08:59:12 -0400 Subject: [AccessD] How do I clear a combobox? (email contains afairamountof code) References: <48344BAF.5070201@colbyconsulting.com><0K180010P9OQULQA@vms046.mailsrvcs.net><05DE242CFBBA43C4B6489DF1EC8EB0CF@DCYN3T81><000701c8bbbe$4c5c8010$6401a8c0@DELLAPTOP><81AA4423456E48DEBC3A79267EF7D4B6@DCYN3T81><7F30435A522D4343B9D08C3146C0EE9E@DCYN3T81><2453E9D76621444C97072896B2D738FC@danwaters><00f001c8c4b4$4758abd0$8119fea9@LTVM><37783233032446C4BFD3325BE63D99E3@danwaters><011201c8c4c0$c29308c0$8119fea9@LTVM><008c01c8c798$7ed6ec70$2f8601c7@SusanOne> Message-ID: <008a01c8c7d5$274628d0$2f8601c7@SusanOne> > Susan > > #2 - no selected item. > =======And you said that me.combobox.value = "" doesn't work? What does happen -- are you sure the code's actually executing that statement? Do you get an error? Susan H. From markamatte at hotmail.com Fri Jun 6 08:08:32 2008 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 6 Jun 2008 13:08:32 +0000 Subject: [AccessD] Report With MEMO In-Reply-To: References: Message-ID: Thanks Gustav, Thats how I was actually determining that it wasn't showing.(> =[memoYourNoteField] & Chr(13) & Chr(10) & "End of My Record") I just replaced all Chr(13) and Chr(10) with spaces...this seemed to work...ugly...but worked. Thanks, Mark > Date: Thu, 5 Jun 2008 23:00:17 +0200 > From: Gustav at cactus.dk > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Report With MEMO > > Hi Mark > > An old trick was to append a couple of line feeds to the memo field's control source in the report: > > =[memoYourNoteField] & Chr(13) & Chr(10) & Chr(13) & Chr(10) > > /gustav > >>>> markamatte at hotmail.com 05-06-2008 21:32>>> > > Hello All, > > I have a report I need to "Publish with Word". There is a Memo field...the problem is not ALL of the text from the MEMO is making it to the word(.rtf). I have appended some text to the end of field to determine if all was printed... > > Bottom line...I need about 20 fields and a memo into some sort of structured word/text document. > > Any thoughts? > > Thanks, > > Mark A. Matte > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ Now you can invite friends from Facebook and other groups to join you on Windows Live? Messenger. Add now. https://www.invite2messenger.net/im/?source=TXT_EML_WLH_AddNow_Now From markamatte at hotmail.com Fri Jun 6 08:09:07 2008 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 6 Jun 2008 13:09:07 +0000 Subject: [AccessD] Report With MEMO In-Reply-To: <000501c8c75a$146ad970$2101a8c0@AB> References: <000501c8c75a$146ad970$2101a8c0@AB> Message-ID: Thanks Asger, Yes I did. Thanks, Mark > From: ab-mi at post3.tele.dk > To: accessd at databaseadvisors.com > Date: Fri, 6 Jun 2008 00:18:28 +0200 > Subject: Re: [AccessD] Report With MEMO > > Mark, > > Did you set the Can Grow property to Yes for the memo-field's textbox in the > report? > > Asger > > -----Oprindelig meddelelse----- > Fra: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Mark A Matte > Sendt: 5. juni 2008 21:33 > Til: Access Developers discussion and problem solving > Emne: [AccessD] Report With MEMO > > > Hello All, > > I have a report I need to "Publish with Word". There is a Memo field...the > problem is not ALL of the text from the MEMO is making it to the word(.rtf). > I have appended some text to the end of field to determine if all was > printed... > > Bottom line...I need about 20 fields and a memo into some sort of structured > word/text document. > > Any thoughts? > > Thanks, > > Mark A. Matte > _________________________________________________________________ > Instantly invite friends from Facebook and other social networks to join you > on Windows Live? Messenger. > https://www.invite2messenger.net/im/?source=TXT_EML_WLH_InviteFriends > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ Search that pays you back! Introducing Live Search cashback. http://search.live.com/cashback/?&pkw=form=MIJAAF/publ=HMTGL/crea=srchpaysyouback From max.wanadoo at gmail.com Fri Jun 6 09:13:39 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Fri, 6 Jun 2008 15:13:39 +0100 Subject: [AccessD] Access To Excel via a CSV File In-Reply-To: <200806061258.m56CwF2t006390@databaseadvisors.com> References: <00a501c8c719$2820b0c0$8119fea9@LTVM><051001c8c738$e3ef0e90$6401a8c0@nant><005a01c8c7d1$9ee2b8d0$8119fea9@LTVM> <200806061258.m56CwF2t006390@databaseadvisors.com> Message-ID: <007a01c8c7df$8748f8c0$8119fea9@LTVM> Thanks MF The s/sheet was being opened by another person who would not be running any code. However, it seems to have resolved itself. Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of MF Sent: Friday, June 06, 2008 1:58 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access To Excel via a CSV File [vba] ActiveWindow.WindowState = xlMaximized [/vba] MF ______________________________ At 09:34 AM 06/06/2008, you wrote: >Well, >Thanks to all those who responded. >I have had quite some success, but not fully. >Thanks to Jennifer's and Rocky's examples and all the other tips I was >able to create the xls exactly as I wanted. This is great. >I am able to give it a filename and save it to disk. From there I can >email it out. >All this from the click of a button without the user seeing or doing >anything - Brilliant! > >However, the one small glitch I have is that when it is subsequently >opened up, the worksheet "floats" within the Excel App. It has its own >title bar which can be grabbed and moved around. Any ideas? > >Max > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil >Salakhetdinov >Sent: Thursday, June 05, 2008 7:21 PM >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] Access To Excel via a CSV File > >Hello Max, > >If your output .csv will have predefined format then the following >tricks could work: > >- prepare formatted .xls template worksheet (let's call it >myTemplate.xls); >- generate/export .csv from MS Access and assign to the output filename >an .xls extension (let's call it my.csv.xls); >- open generated my.csv.xls in XL using Automation (and all the >following actions will be performed using Automation also); >- open myTemplate.xls in XL; >- select all cells of myTemplate.xls's template worksheet; >- execute copy of selected range to clipboard; >- switch to previously opened my.csn.xls; >- select all its cells and use Paste Special->Formats... >... > >That could be it... > >-- >Shamil > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Max Wanadoo >Sent: Thursday, June 05, 2008 6:34 PM >To: 'Access Developers discussion and problem solving' >Subject: [AccessD] Access To Excel via a CSV File > > >Can any of you Access/Excel gurus help here please. >I need to create a csv spreadsheet by code. When it is complete, I >need to put formatting on it. Ie,make columns into Currency Types. Bold >some Rows, set some bacground colours, etc. >I have got as far as creating the CSV ok but then I am stumped. >Any advice most welcome. >Ta >Max -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Fri Jun 6 09:20:06 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 06 Jun 2008 10:20:06 -0400 Subject: [AccessD] Put humpty dumpty back together again Message-ID: <48494796.2060006@colbyconsulting.com> I have a database that has split the address line into HouseNumberPrefix HouseNumber HouseNumberSuffix Direction StreetName Mode (N, NW etc) Quadrant Appt# I need to put Humpty back together again to feed off to Address Validation. How would I do that in SQL? I THINK I can just append them all together with spaces between the parts and that would be fine EXCEPT that when you do something like NULL + SomeString you end up with null. How would I do what I am trying to do in SQL? -- John W. Colby www.ColbyConsulting.com From rosalyn.clarke at barclays.com Fri Jun 6 09:26:22 2008 From: rosalyn.clarke at barclays.com (rosalyn.clarke at barclays.com) Date: Fri, 6 Jun 2008 15:26:22 +0100 Subject: [AccessD] Put humpty dumpty back together again In-Reply-To: <48494796.2060006@colbyconsulting.com> References: <48494796.2060006@colbyconsulting.com> Message-ID: Convert your NULLS to zero length strings before you start? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: 06 June 2008 15:20 To: Access Developers discussion and problem solving; Dba-Sqlserver Subject: [AccessD] Put humpty dumpty back together again I have a database that has split the address line into HouseNumberPrefix HouseNumber HouseNumberSuffix Direction StreetName Mode (N, NW etc) Quadrant Appt# I need to put Humpty back together again to feed off to Address Validation. How would I do that in SQL? I THINK I can just append them all together with spaces between the parts and that would be fine EXCEPT that when you do something like NULL + SomeString you end up with null. How would I do what I am trying to do in SQL? -- John W. Colby www.ColbyConsulting.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments. Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. From paul.hartland at googlemail.com Fri Jun 6 09:30:02 2008 From: paul.hartland at googlemail.com (Paul Hartland) Date: Fri, 6 Jun 2008 15:30:02 +0100 Subject: [AccessD] Put humpty dumpty back together again In-Reply-To: <48494796.2060006@colbyconsulting.com> References: <48494796.2060006@colbyconsulting.com> Message-ID: <38c884770806060730w5791775ah1a112212814cf46e@mail.gmail.com> Off the top of my head try: Select ISNULL(HouseNumberPrefix,'') + ' ' + ISNULL(HouseNumber,'') + ' ' + ISNULL(HouseNumberSuffix,'') + ' ' + ISNULL(Direction,'') + ' ' + ISNULL(StreetName,'') + ' ' + ISNULL(Mode,'') + ' ' + ISNULL(Quadrant,'') + ' ' + ISNULL(Appt#,'') Paul Hartland 2008/6/6 jwcolby : > I have a database that has split the address line into > > HouseNumberPrefix > HouseNumber > HouseNumberSuffix > Direction > StreetName > Mode (N, NW etc) > Quadrant > Appt# > > I need to put Humpty back together again to feed off to > Address Validation. How would I do that in SQL? > > I THINK I can just append them all together with spaces > between the parts and that would be fine EXCEPT that when > you do something like NULL + SomeString you end up with null. > > How would I do what I am trying to do in SQL? > > -- > John W. Colby > www.ColbyConsulting.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Paul Hartland paul.hartland at googlemail.com From jwcolby at colbyconsulting.com Fri Jun 6 09:43:05 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Fri, 06 Jun 2008 10:43:05 -0400 Subject: [AccessD] Put humpty dumpty back together again In-Reply-To: <38c884770806060730w5791775ah1a112212814cf46e@mail.gmail.com> References: <48494796.2060006@colbyconsulting.com> <38c884770806060730w5791775ah1a112212814cf46e@mail.gmail.com> Message-ID: <48494CF9.3050903@colbyconsulting.com> I found a database property / options / Concat null yields null, which it CLAIMS will change this behavior. However it still yields a null regardless of whether I set this to true or false. Ths ISNULL() thing no doubt works but I have to concat 7 different fields for 84 million records. I suspect that I would be setting myself up for a week long query. Given that the property makes no difference I may be forced to do this however. John W. Colby www.ColbyConsulting.com Paul Hartland wrote: > Off the top of my head try: > > Select ISNULL(HouseNumberPrefix,'') + ' ' + ISNULL(HouseNumber,'') + ' ' + > ISNULL(HouseNumberSuffix,'') + ' ' + ISNULL(Direction,'') + ' ' + > ISNULL(StreetName,'') + ' ' + ISNULL(Mode,'') + ' ' + ISNULL(Quadrant,'') + > ' ' + ISNULL(Appt#,'') > > Paul Hartland > > 2008/6/6 jwcolby : > >> I have a database that has split the address line into >> >> HouseNumberPrefix >> HouseNumber >> HouseNumberSuffix >> Direction >> StreetName >> Mode (N, NW etc) >> Quadrant >> Appt# >> >> I need to put Humpty back together again to feed off to >> Address Validation. How would I do that in SQL? >> >> I THINK I can just append them all together with spaces >> between the parts and that would be fine EXCEPT that when >> you do something like NULL + SomeString you end up with null. >> >> How would I do what I am trying to do in SQL? >> >> -- >> 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 john at winhaven.net Fri Jun 6 10:04:33 2008 From: john at winhaven.net (John Bartow) Date: Fri, 6 Jun 2008 10:04:33 -0500 Subject: [AccessD] Put humpty dumpty back together again In-Reply-To: <48494796.2060006@colbyconsulting.com> Message-ID: <200806061504.m56F4R23013677@databaseadvisors.com> I'm assuming your using Access queries to do this: SELECT HouseNumberPrefix, HouseNumber, HouseNumberSuffix, Direction, StreetName, Mode , Quadrant, Appt# ([HouseNumberPrefix]+" ") & ([HouseNumber]+" ") & ([HouseNumberSuffix]=" ") & ([Direction]=" ") & ([StreetName]=" ") & ([Mode ]=" ") & ([Quadrant]=" ") & [Appt#] AS FullAddress FROM tblPerson HTH John B. From jeff.developer at gmail.com Fri Jun 6 10:10:16 2008 From: jeff.developer at gmail.com (Jeff Barrows) Date: Fri, 6 Jun 2008 10:10:16 -0500 Subject: [AccessD] Rounding UP Message-ID: <2dad32080806060810y1793bb0bm61eed6890c33f@mail.gmail.com> In Access 2003, is there a way to ALWAYS round UP to the next whole number? I am trying to calculate stock needed to create parts and need to determine whole pieces of stock, not partials. TIA Jeff Barrows From john at winhaven.net Fri Jun 6 10:12:46 2008 From: john at winhaven.net (John Bartow) Date: Fri, 6 Jun 2008 10:12:46 -0500 Subject: [AccessD] Put humpty dumpty back together again In-Reply-To: <48494796.2060006@colbyconsulting.com> Message-ID: <200806061512.m56FCf1J018021@databaseadvisors.com> BTW I just ran into an application that I'm pulling reports from where they separate the area code from the phone number. (But not the first three numbers from the back 4 numbers, which seems odd to me - why not go all the way?) It seems that what JC is dealing with in this address scheme and the area code I'm dealing with are fairly extreme cases of normalizations. Do you all normalize your data to this extent? Am I getting lazy with my tuples? From Lambert.Heenan at AIG.com Fri Jun 6 10:16:43 2008 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Fri, 6 Jun 2008 10:16:43 -0500 Subject: [AccessD] Rounding UP Message-ID: <34C8A2AB1EF3564CB0D64DB6AFFDD5C215A9FB5E@XLIVMBX35bkup.aig.com> Try: round(YourFpNumber + 0.5,0) Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeff Barrows Sent: Friday, June 06, 2008 11:10 AM To: accessd Subject: [AccessD] Rounding UP In Access 2003, is there a way to ALWAYS round UP to the next whole number? I am trying to calculate stock needed to create parts and need to determine whole pieces of stock, not partials. TIA Jeff Barrows -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jeff.developer at gmail.com Fri Jun 6 10:28:13 2008 From: jeff.developer at gmail.com (Jeff Barrows) Date: Fri, 6 Jun 2008 10:28:13 -0500 Subject: [AccessD] Rounding UP In-Reply-To: <34C8A2AB1EF3564CB0D64DB6AFFDD5C215A9FB5E@XLIVMBX35bkup.aig.com> References: <34C8A2AB1EF3564CB0D64DB6AFFDD5C215A9FB5E@XLIVMBX35bkup.aig.com> Message-ID: <2dad32080806060828m5ed5b4c5t99f8a277732f258d@mail.gmail.com> Thanks! That did the trick! On 6/6/08, Heenan, Lambert wrote: > > Try: round(YourFpNumber + 0.5,0) > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeff Barrows > Sent: Friday, June 06, 2008 11:10 AM > To: accessd > Subject: [AccessD] Rounding UP > > In Access 2003, is there a way to ALWAYS round UP to the next whole number? > I am trying to calculate stock needed to create parts and need to determine > whole pieces of stock, not partials. > > 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 markamatte at hotmail.com Fri Jun 6 10:48:36 2008 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 6 Jun 2008 15:48:36 +0000 Subject: [AccessD] Rounding UP In-Reply-To: <34C8A2AB1EF3564CB0D64DB6AFFDD5C215A9FB5E@XLIVMBX35bkup.aig.com> References: <34C8A2AB1EF3564CB0D64DB6AFFDD5C215A9FB5E@XLIVMBX35bkup.aig.com> Message-ID: How about "INT(YouNum) + 1" or "FIX(YouNum) + 1?" Good Luck, Mark A. Matte > From: Lambert.Heenan at aig.com > To: accessd at databaseadvisors.com > Date: Fri, 6 Jun 2008 10:16:43 -0500 > Subject: Re: [AccessD] Rounding UP > > Try: round(YourFpNumber + 0.5,0) > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeff Barrows > Sent: Friday, June 06, 2008 11:10 AM > To: accessd > Subject: [AccessD] Rounding UP > > In Access 2003, is there a way to ALWAYS round UP to the next whole number? > I am trying to calculate stock needed to create parts and need to determine > whole pieces of stock, not partials. > > 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 _________________________________________________________________ It?s easy to add contacts from Facebook and other social sites through Windows Live? Messenger. Learn how. https://www.invite2messenger.net/im/?source=TXT_EML_WLH_LearnHow From stephen at bondsoftware.co.nz Fri Jun 6 10:58:58 2008 From: stephen at bondsoftware.co.nz (Stephen) Date: Sat, 07 Jun 2008 03:58:58 +1200 Subject: [AccessD] Rounding UP Message-ID: <569E08FC48047F4F848850B118195FBE01A117@server.BondSoftware.local> I suspect a simple ROUND as specified will have an undesirable side-effect. It works in most cases but not all. If, for example, you add 12 and a half percent to 8, you get 9 - exactly. This formula round(YourFpNumber + 0.5,0) will take the 9 and make it 10. IOW, adding 12 and a half percent to 8 will give 9 exactly, then the formula above takes it to 10. Is this what you want to happen? If it isn't then you need something a bit more complex. Using 1.125 for an increase of 12 and a half percent, in a query new: IIf(Int(1.125*[old])=1.125*[old],1.125*[old],Round(0.5+1.125*[old],0)) should take care of all cases. BTW, Excel has a wonderful ROUNDUP function which would do this in a snip. Not in Access 2003. Stephen Bond -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeff Barrows Sent: Saturday, 7 June 2008 3:31 a.m. To: Stephen Subject: Re: [AccessD] Rounding UP Thanks! That did the trick! On 6/6/08, Heenan, Lambert wrote: > > Try: round(YourFpNumber + 0.5,0) > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeff > Barrows > Sent: Friday, June 06, 2008 11:10 AM > To: accessd > Subject: [AccessD] Rounding UP > > In Access 2003, is there a way to ALWAYS round UP to the next whole number? > I am trying to calculate stock needed to create parts and need to > determine whole pieces of stock, not partials. > > 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 > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From stephen at bondsoftware.co.nz Fri Jun 6 11:03:53 2008 From: stephen at bondsoftware.co.nz (Stephen) Date: Sat, 07 Jun 2008 04:03:53 +1200 Subject: [AccessD] Rounding UP Message-ID: <569E08FC48047F4F848850B118195FBE01A118@server.BondSoftware.local> Jeff, I just re-read your post. I think I complicated things rather than simplified them :-( It's 4am Saturday where I am. That's my excuse anyway ..... Stephen Bond -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stephen Sent: Saturday, 7 June 2008 4:00 a.m. To: Stephen Subject: Re: [AccessD] Rounding UP I suspect a simple ROUND as specified will have an undesirable side-effect. It works in most cases but not all. If, for example, you add 12 and a half percent to 8, you get 9 - exactly. This formula round(YourFpNumber + 0.5,0) will take the 9 and make it 10. IOW, adding 12 and a half percent to 8 will give 9 exactly, then the formula above takes it to 10. Is this what you want to happen? If it isn't then you need something a bit more complex. Using 1.125 for an increase of 12 and a half percent, in a query new: IIf(Int(1.125*[old])=1.125*[old],1.125*[old],Round(0.5+1.125*[old],0)) should take care of all cases. BTW, Excel has a wonderful ROUNDUP function which would do this in a snip. Not in Access 2003. Stephen Bond -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeff Barrows Sent: Saturday, 7 June 2008 3:31 a.m. To: Stephen Subject: Re: [AccessD] Rounding UP Thanks! That did the trick! On 6/6/08, Heenan, Lambert wrote: > > Try: round(YourFpNumber + 0.5,0) > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeff > Barrows > Sent: Friday, June 06, 2008 11:10 AM > To: accessd > Subject: [AccessD] Rounding UP > > In Access 2003, is there a way to ALWAYS round UP to the next whole number? > I am trying to calculate stock needed to create parts and need to > determine whole pieces of stock, not partials. > > 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 > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at smsconsulting.spb.ru Fri Jun 6 11:15:30 2008 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 6 Jun 2008 20:15:30 +0400 Subject: [AccessD] Rounding UP In-Reply-To: <569E08FC48047F4F848850B118195FBE01A117@server.BondSoftware.local> Message-ID: <05ed01c8c7f0$8a23f570$6401a8c0@nant> abs(int(-(YourFpNumber))) ? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stephen Sent: Friday, June 06, 2008 7:59 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Rounding UP I suspect a simple ROUND as specified will have an undesirable side-effect. It works in most cases but not all. If, for example, you add 12 and a half percent to 8, you get 9 - exactly. This formula round(YourFpNumber + 0.5,0) will take the 9 and make it 10. IOW, adding 12 and a half percent to 8 will give 9 exactly, then the formula above takes it to 10. Is this what you want to happen? If it isn't then you need something a bit more complex. Using 1.125 for an increase of 12 and a half percent, in a query new: IIf(Int(1.125*[old])=1.125*[old],1.125*[old],Round(0.5+1.125*[old],0)) should take care of all cases. BTW, Excel has a wonderful ROUNDUP function which would do this in a snip. Not in Access 2003. Stephen Bond -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeff Barrows Sent: Saturday, 7 June 2008 3:31 a.m. To: Stephen Subject: Re: [AccessD] Rounding UP Thanks! That did the trick! On 6/6/08, Heenan, Lambert wrote: > > Try: round(YourFpNumber + 0.5,0) > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeff > Barrows > Sent: Friday, June 06, 2008 11:10 AM > To: accessd > Subject: [AccessD] Rounding UP > > In Access 2003, is there a way to ALWAYS round UP to the next whole number? > I am trying to calculate stock needed to create parts and need to > determine whole pieces of stock, not partials. > > 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 > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 at bondsoftware.co.nz Fri Jun 6 11:27:48 2008 From: stephen at bondsoftware.co.nz (Stephen) Date: Sat, 07 Jun 2008 04:27:48 +1200 Subject: [AccessD] Rounding UP Message-ID: <569E08FC48047F4F848850B118195FBE01A119@server.BondSoftware.local> Precisely ! And far more elegant ..... :-) Stephen Bond -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Saturday, 7 June 2008 4:22 a.m. To: Stephen Subject: Re: [AccessD] Rounding UP abs(int(-(YourFpNumber))) ? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stephen Sent: Friday, June 06, 2008 7:59 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Rounding UP I suspect a simple ROUND as specified will have an undesirable side-effect. It works in most cases but not all. If, for example, you add 12 and a half percent to 8, you get 9 - exactly. This formula round(YourFpNumber + 0.5,0) will take the 9 and make it 10. IOW, adding 12 and a half percent to 8 will give 9 exactly, then the formula above takes it to 10. Is this what you want to happen? If it isn't then you need something a bit more complex. Using 1.125 for an increase of 12 and a half percent, in a query new: IIf(Int(1.125*[old])=1.125*[old],1.125*[old],Round(0.5+1.125*[old],0)) should take care of all cases. BTW, Excel has a wonderful ROUNDUP function which would do this in a snip. Not in Access 2003. Stephen Bond -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeff Barrows Sent: Saturday, 7 June 2008 3:31 a.m. To: Stephen Subject: Re: [AccessD] Rounding UP Thanks! That did the trick! On 6/6/08, Heenan, Lambert wrote: > > Try: round(YourFpNumber + 0.5,0) > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeff > Barrows > Sent: Friday, June 06, 2008 11:10 AM > To: accessd > Subject: [AccessD] Rounding UP > > In Access 2003, is there a way to ALWAYS round UP to the next whole number? > I am trying to calculate stock needed to create parts and need to > determine whole pieces of stock, not partials. > > 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 > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jengross at gte.net Fri Jun 6 12:49:53 2008 From: jengross at gte.net (Jennifer Gross) Date: Fri, 06 Jun 2008 09:49:53 -0800 Subject: [AccessD] Rounding UP In-Reply-To: <2dad32080806060810y1793bb0bm61eed6890c33f@mail.gmail.com> Message-ID: <0K2100J0VW6EE572@vms044.mailsrvcs.net> Hi Jeff, I use this little rounding function in all of my databases: Public Function RoundUp(ByVal AnyNum As Double, ByVal PlaceCount As Double) As Double Dim X As Integer X = 10 ^ PlaceCount RoundUp = Int(AnyNum * X + 0.5) / X End Function Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeff Barrows Sent: Friday, June 06, 2008 7:10 AM To: accessd Subject: [AccessD] Rounding UP In Access 2003, is there a way to ALWAYS round UP to the next whole number? I am trying to calculate stock needed to create parts and need to determine whole pieces of stock, not partials. TIA Jeff Barrows -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From john at winhaven.net Fri Jun 6 12:26:47 2008 From: john at winhaven.net (John Bartow) Date: Fri, 6 Jun 2008 12:26:47 -0500 Subject: [AccessD] sub form procedure Message-ID: <200806061726.m56HQeKf022718@databaseadvisors.com> I have a combo box that selects a record for a form. After selecting a record the main forms sub forms need to refresh the data and call a procedure in their module. The data is refreshed but the procedure won't run. Que Pasa? What event do I use in the sub form to run a procedure every time the dataset has changed? A2K3 John B From shamil at smsconsulting.spb.ru Fri Jun 6 12:34:55 2008 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 6 Jun 2008 21:34:55 +0400 Subject: [AccessD] Rounding UP In-Reply-To: <569E08FC48047F4F848850B118195FBE01A119@server.BondSoftware.local> Message-ID: <05fa01c8c7fb$a30bfe10$6401a8c0@nant> Even better?: Public Function RoundUp(ByVal value As Double) RoundUp = Sgn(value) * Abs(Int(-Abs(value))) End Function It will work for negative values also.... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stephen Sent: Friday, June 06, 2008 8:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Rounding UP Precisely ! And far more elegant ..... :-) Stephen Bond -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Saturday, 7 June 2008 4:22 a.m. To: Stephen Subject: Re: [AccessD] Rounding UP abs(int(-(YourFpNumber))) ? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stephen Sent: Friday, June 06, 2008 7:59 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Rounding UP I suspect a simple ROUND as specified will have an undesirable side-effect. It works in most cases but not all. If, for example, you add 12 and a half percent to 8, you get 9 - exactly. This formula round(YourFpNumber + 0.5,0) will take the 9 and make it 10. IOW, adding 12 and a half percent to 8 will give 9 exactly, then the formula above takes it to 10. Is this what you want to happen? If it isn't then you need something a bit more complex. Using 1.125 for an increase of 12 and a half percent, in a query new: IIf(Int(1.125*[old])=1.125*[old],1.125*[old],Round(0.5+1.125*[old],0)) should take care of all cases. BTW, Excel has a wonderful ROUNDUP function which would do this in a snip. Not in Access 2003. Stephen Bond -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeff Barrows Sent: Saturday, 7 June 2008 3:31 a.m. To: Stephen Subject: Re: [AccessD] Rounding UP Thanks! That did the trick! On 6/6/08, Heenan, Lambert wrote: > > Try: round(YourFpNumber + 0.5,0) > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeff > Barrows > Sent: Friday, June 06, 2008 11:10 AM > To: accessd > Subject: [AccessD] Rounding UP > > In Access 2003, is there a way to ALWAYS round UP to the next whole number? > I am trying to calculate stock needed to create parts and need to > determine whole pieces of stock, not partials. > > 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 > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at smsconsulting.spb.ru Fri Jun 6 12:40:34 2008 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 6 Jun 2008 21:40:34 +0400 Subject: [AccessD] sub form procedure In-Reply-To: <200806061726.m56HQeKf022718@databaseadvisors.com> Message-ID: <05fb01c8c7fc$6c5c8d70$6401a8c0@nant> John, You can use Current event of Subform. But set also a flag in Combo's AfterUpdate event if Form's module (code behind) and check this flag in Subform's Current event - Me.Parent.{{FlagName}}... Parent form's hidden textbox's value can be also used as flag value instead of code behind module level variable/property... While checking the flag in Subform's Current event take into account that when Subform is getting created(/opened/loaded) its Parent form doesn't exist yet... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Friday, June 06, 2008 9:27 PM To: _DBA-Access Subject: [AccessD] sub form procedure I have a combo box that selects a record for a form. After selecting a record the main forms sub forms need to refresh the data and call a procedure in their module. The data is refreshed but the procedure won't run. Que Pasa? What event do I use in the sub form to run a procedure every time the dataset has changed? A2K3 John B -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jengross at gte.net Fri Jun 6 14:08:51 2008 From: jengross at gte.net (Jennifer Gross) Date: Fri, 06 Jun 2008 11:08:51 -0800 Subject: [AccessD] Rounding UP In-Reply-To: <05fa01c8c7fb$a30bfe10$6401a8c0@nant> Message-ID: <0K2100GV7ZIVXRZX@vms173005.mailsrvcs.net> The RoundUp function I posted also works with negative numbers, and it lets you select the number of digits past the decimal place that you want to round to - particularly handy when you are doing currency calculations and need to round to 2 digits past the decimal place. I have other instances, like with time tracking where I want to round to 1 digit past the decimal place. So one all encompassing function that is always in every database I create works really well. In fact I get so used to using it that when I inherit a database the first time I go to use the function and it throws an error it takes me a moment to remember that it is not a built-in function and I have to add it. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Friday, June 06, 2008 9:35 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Rounding UP Even better?: Public Function RoundUp(ByVal value As Double) RoundUp = Sgn(value) * Abs(Int(-Abs(value))) End Function It will work for negative values also.... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stephen Sent: Friday, June 06, 2008 8:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Rounding UP Precisely ! And far more elegant ..... :-) Stephen Bond -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Saturday, 7 June 2008 4:22 a.m. To: Stephen Subject: Re: [AccessD] Rounding UP abs(int(-(YourFpNumber))) ? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stephen Sent: Friday, June 06, 2008 7:59 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Rounding UP I suspect a simple ROUND as specified will have an undesirable side-effect. It works in most cases but not all. If, for example, you add 12 and a half percent to 8, you get 9 - exactly. This formula round(YourFpNumber + 0.5,0) will take the 9 and make it 10. IOW, adding 12 and a half percent to 8 will give 9 exactly, then the formula above takes it to 10. Is this what you want to happen? If it isn't then you need something a bit more complex. Using 1.125 for an increase of 12 and a half percent, in a query new: IIf(Int(1.125*[old])=1.125*[old],1.125*[old],Round(0.5+1.125*[old],0)) should take care of all cases. BTW, Excel has a wonderful ROUNDUP function which would do this in a snip. Not in Access 2003. Stephen Bond -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeff Barrows Sent: Saturday, 7 June 2008 3:31 a.m. To: Stephen Subject: Re: [AccessD] Rounding UP Thanks! That did the trick! On 6/6/08, Heenan, Lambert wrote: > > Try: round(YourFpNumber + 0.5,0) > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeff > Barrows > Sent: Friday, June 06, 2008 11:10 AM > To: accessd > Subject: [AccessD] Rounding UP > > In Access 2003, is there a way to ALWAYS round UP to the next whole number? > I am trying to calculate stock needed to create parts and need to > determine whole pieces of stock, not partials. > > 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 > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at smsconsulting.spb.ru Fri Jun 6 14:34:08 2008 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 6 Jun 2008 23:34:08 +0400 Subject: [AccessD] Rounding UP In-Reply-To: <0K2100GV7ZIVXRZX@vms173005.mailsrvcs.net> Message-ID: <060b01c8c80c$49a9d9d0$6401a8c0@nant> <<< The RoundUp function I posted also works with negative numbers... >>> Hi Jennifer, Yes, I know - I'm MS Access veteran, you know :) - here is where your function comes from I guess: <<< When Microsoft Access Math Doesn't Add Up http://www.fmsinc.com/TPapers/math/index.html Originally published in Smart Access October 1997 >>> There were lengthy debates on Rounding in MS Access 10+ years ago - and here is why this referred above article was published by Luke Chung... I'd note also that this thread's main subject is to *always* round *up* to *Integers*: - Your function will round *down* 1.2 to 1 and will round *up* -1.2 to -1 - My function will round *up* 1.2 to 2 and will round *down* -1.2 to -2 I suppose, the latter feature was requested by the originator of this thread, not the former - please feel free to correct me if I'm wrong. I can't remember I have read anywhere about this "trick": Public Function RoundUp(ByVal value As Double) RoundUp = Sgn(value) * Abs(Int(-Abs(value))) End Function I could have missed - it *should* have been published somewhere already... Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Friday, June 06, 2008 11:09 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Rounding UP The RoundUp function I posted also works with negative numbers, and it lets you select the number of digits past the decimal place that you want to round to - particularly handy when you are doing currency calculations and need to round to 2 digits past the decimal place. I have other instances, like with time tracking where I want to round to 1 digit past the decimal place. So one all encompassing function that is always in every database I create works really well. In fact I get so used to using it that when I inherit a database the first time I go to use the function and it throws an error it takes me a moment to remember that it is not a built-in function and I have to add it. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Friday, June 06, 2008 9:35 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Rounding UP Even better?: Public Function RoundUp(ByVal value As Double) RoundUp = Sgn(value) * Abs(Int(-Abs(value))) End Function It will work for negative values also.... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stephen Sent: Friday, June 06, 2008 8:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Rounding UP Precisely ! And far more elegant ..... :-) Stephen Bond -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Saturday, 7 June 2008 4:22 a.m. To: Stephen Subject: Re: [AccessD] Rounding UP abs(int(-(YourFpNumber))) ? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stephen Sent: Friday, June 06, 2008 7:59 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Rounding UP I suspect a simple ROUND as specified will have an undesirable side-effect. It works in most cases but not all. If, for example, you add 12 and a half percent to 8, you get 9 - exactly. This formula round(YourFpNumber + 0.5,0) will take the 9 and make it 10. IOW, adding 12 and a half percent to 8 will give 9 exactly, then the formula above takes it to 10. Is this what you want to happen? If it isn't then you need something a bit more complex. Using 1.125 for an increase of 12 and a half percent, in a query new: IIf(Int(1.125*[old])=1.125*[old],1.125*[old],Round(0.5+1.125*[old],0)) should take care of all cases. BTW, Excel has a wonderful ROUNDUP function which would do this in a snip. Not in Access 2003. Stephen Bond -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeff Barrows Sent: Saturday, 7 June 2008 3:31 a.m. To: Stephen Subject: Re: [AccessD] Rounding UP Thanks! That did the trick! On 6/6/08, Heenan, Lambert wrote: > > Try: round(YourFpNumber + 0.5,0) > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeff > Barrows > Sent: Friday, June 06, 2008 11:10 AM > To: accessd > Subject: [AccessD] Rounding UP > > In Access 2003, is there a way to ALWAYS round UP to the next whole number? > I am trying to calculate stock needed to create parts and need to > determine whole pieces of stock, not partials. > > TIA > > Jeff Barrows > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From jengross at gte.net Fri Jun 6 15:47:57 2008 From: jengross at gte.net (Jennifer Gross) Date: Fri, 06 Jun 2008 12:47:57 -0800 Subject: [AccessD] Rounding UP In-Reply-To: <060b01c8c80c$49a9d9d0$6401a8c0@nant> Message-ID: <0K2200ALD4F2MO2W@vms173003.mailsrvcs.net> Hi Shamil, You're right on all counts. I have been using this function for so many years it may very well have come from that Smart Access article. Interesting about the negative numbers. Since I don't typically work with them I haven't had to think about them in that way - what is up v. down. I may just have to change my much used function, but I need it to let me determine the number of decimal places, so I can't use Int. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Friday, June 06, 2008 11:34 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Rounding UP <<< The RoundUp function I posted also works with negative numbers... >>> Hi Jennifer, Yes, I know - I'm MS Access veteran, you know :) - here is where your function comes from I guess: <<< When Microsoft Access Math Doesn't Add Up http://www.fmsinc.com/TPapers/math/index.html Originally published in Smart Access October 1997 >>> There were lengthy debates on Rounding in MS Access 10+ years ago - and here is why this referred above article was published by Luke Chung... I'd note also that this thread's main subject is to *always* round *up* to *Integers*: - Your function will round *down* 1.2 to 1 and will round *up* -1.2 to -1 - My function will round *up* 1.2 to 2 and will round *down* -1.2 to -2 I suppose, the latter feature was requested by the originator of this thread, not the former - please feel free to correct me if I'm wrong. I can't remember I have read anywhere about this "trick": Public Function RoundUp(ByVal value As Double) RoundUp = Sgn(value) * Abs(Int(-Abs(value))) End Function I could have missed - it *should* have been published somewhere already... Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Friday, June 06, 2008 11:09 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Rounding UP The RoundUp function I posted also works with negative numbers, and it lets you select the number of digits past the decimal place that you want to round to - particularly handy when you are doing currency calculations and need to round to 2 digits past the decimal place. I have other instances, like with time tracking where I want to round to 1 digit past the decimal place. So one all encompassing function that is always in every database I create works really well. In fact I get so used to using it that when I inherit a database the first time I go to use the function and it throws an error it takes me a moment to remember that it is not a built-in function and I have to add it. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Friday, June 06, 2008 9:35 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Rounding UP Even better?: Public Function RoundUp(ByVal value As Double) RoundUp = Sgn(value) * Abs(Int(-Abs(value))) End Function It will work for negative values also.... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stephen Sent: Friday, June 06, 2008 8:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Rounding UP Precisely ! And far more elegant ..... :-) Stephen Bond -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Saturday, 7 June 2008 4:22 a.m. To: Stephen Subject: Re: [AccessD] Rounding UP abs(int(-(YourFpNumber))) ? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stephen Sent: Friday, June 06, 2008 7:59 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Rounding UP I suspect a simple ROUND as specified will have an undesirable side-effect. It works in most cases but not all. If, for example, you add 12 and a half percent to 8, you get 9 - exactly. This formula round(YourFpNumber + 0.5,0) will take the 9 and make it 10. IOW, adding 12 and a half percent to 8 will give 9 exactly, then the formula above takes it to 10. Is this what you want to happen? If it isn't then you need something a bit more complex. Using 1.125 for an increase of 12 and a half percent, in a query new: IIf(Int(1.125*[old])=1.125*[old],1.125*[old],Round(0.5+1.125*[old],0)) should take care of all cases. BTW, Excel has a wonderful ROUNDUP function which would do this in a snip. Not in Access 2003. Stephen Bond -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeff Barrows Sent: Saturday, 7 June 2008 3:31 a.m. To: Stephen Subject: Re: [AccessD] Rounding UP Thanks! That did the trick! On 6/6/08, Heenan, Lambert wrote: > > Try: round(YourFpNumber + 0.5,0) > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jeff > Barrows > Sent: Friday, June 06, 2008 11:10 AM > To: accessd > Subject: [AccessD] Rounding UP > > In Access 2003, is there a way to ALWAYS round UP to the next whole number? > I am trying to calculate stock needed to create parts and need to > determine whole pieces of stock, not partials. > > 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 fuller.artful at gmail.com Fri Jun 6 15:36:33 2008 From: fuller.artful at gmail.com (Arthur Fuller) Date: Fri, 6 Jun 2008 17:36:33 -0300 Subject: [AccessD] Put humpty dumpty back together again In-Reply-To: <38c884770806060730w5791775ah1a112212814cf46e@mail.gmail.com> References: <48494796.2060006@colbyconsulting.com> <38c884770806060730w5791775ah1a112212814cf46e@mail.gmail.com> Message-ID: <29f585dd0806061336p4a4a64f7ke94387f3daa591fc@mail.gmail.com> It's a little more complicated than that. In your formula you'll end up with three consectie spaces if two fields are null. Arthur On Fri, Jun 6, 2008 at 11:30 AM, Paul Hartland wrote: > Off the top of my head try: > > Select ISNULL(HouseNumberPrefix,'') + ' ' + ISNULL(HouseNumber,'') + ' ' + > ISNULL(HouseNumberSuffix,'') + ' ' + ISNULL(Direction,'') + ' ' + > ISNULL(StreetName,'') + ' ' + ISNULL(Mode,'') + ' ' + ISNULL(Quadrant,'') + > ' ' + ISNULL(Appt#,'') > > Paul Hartland > From rbgajewski at adelphia.net Fri Jun 6 18:53:25 2008 From: rbgajewski at adelphia.net (Bob Gajewski) Date: Fri, 6 Jun 2008 19:53:25 -0400 Subject: [AccessD] How do I clear a combobox? (email containsafairamountof code) In-Reply-To: <008a01c8c7d5$274628d0$2f8601c7@SusanOne> References: <48344BAF.5070201@colbyconsulting.com><0K180010P9OQULQA@vms046.mailsrvcs.net><05DE242CFBBA43C4B6489DF1EC8EB0CF@DCYN3T81><000701c8bbbe$4c5c8010$6401a8c0@DELLAPTOP><81AA4423456E48DEBC3A79267EF7D4B6@DCYN3T81><7F30435A522D4343B9D08C3146C0EE9E@DCYN3T81><2453E9D76621444C97072896B2D738FC@danwaters><00f001c8c4b4$4758abd0$8119fea9@LTVM><37783233032446C4BFD3325BE63D99E3@danwaters><011201c8c4c0$c29308c0$8119fea9@LTVM><008c01c8c798$7ed6ec70$2f8601c7@SusanOne> <008a01c8c7d5$274628d0$2f8601c7@SusanOne> Message-ID: <4BCBD92FD20A48FCAC6FB9B752A4A5AC@DCYN3T81> Correct - it does not work, but I am sure that the code is executing because I put MsgBox's between every line of code in that module and they all displayed :( What happens is that the underlying row source is set to the new query, as the code intends, but the "(Show All Records)" is still displayed in the combobox. Bob G. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Friday, June 06, 2008 08:59 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] How do I clear a combobox? (email containsafairamountof code) > Susan > > #2 - no selected item. > =======And you said that me.combobox.value = "" doesn't work? What does happen -- are you sure the code's actually executing that statement? Do you get an error? Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri Jun 6 19:13:11 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 6 Jun 2008 17:13:11 -0700 Subject: [AccessD] How do I clear a combobox? (emailcontainsafairamountof code) In-Reply-To: <4BCBD92FD20A48FCAC6FB9B752A4A5AC@DCYN3T81> References: <48344BAF.5070201@colbyconsulting.com><0K180010P9OQULQA@vms046.mailsrvcs.net><05DE242CFBBA43C4B6489DF1EC8EB0CF@DCYN3T81><000701c8bbbe$4c5c8010$6401a8c0@DELLAPTOP><81AA4423456E48DEBC3A79267EF7D4B6@DCYN3T81><7F30435A522D4343B9D08C3146C0EE9E@DCYN3T81><2453E9D76621444C97072896B2D738FC@danwaters><00f001c8c4b4$4758abd0$8119fea9@LTVM><37783233032446C4BFD3325BE63D99E3@danwaters><011201c8c4c0$c29308c0$8119fea9@LTVM><008c01c8c798$7ed6ec70$2f8601c7@SusanOne><008a01c8c7d5$274628d0$2f8601c7@SusanOne> <4BCBD92FD20A48FCAC6FB9B752A4A5AC@DCYN3T81> Message-ID: If the combobox text is set to Show All Records and the combo isn't limit to list, then you'll see this effect. You can set the index of the combobox to -1 (which is none selected) and see if that works. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Gajewski Sent: Friday, June 06, 2008 4:53 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] How do I clear a combobox? (emailcontainsafairamountof code) Correct - it does not work, but I am sure that the code is executing because I put MsgBox's between every line of code in that module and they all displayed :( What happens is that the underlying row source is set to the new query, as the code intends, but the "(Show All Records)" is still displayed in the combobox. Bob G. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Friday, June 06, 2008 08:59 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] How do I clear a combobox? (email containsafairamountof code) > Susan > > #2 - no selected item. > =======And you said that me.combobox.value = "" doesn't work? What does happen -- are you sure the code's actually executing that statement? Do you get an error? 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 stuart at lexacorp.com.pg Fri Jun 6 19:46:39 2008 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Sat, 07 Jun 2008 10:46:39 +1000 Subject: [AccessD] Put humpty dumpty back together again In-Reply-To: <48494CF9.3050903@colbyconsulting.com> References: <48494796.2060006@colbyconsulting.com>, <38c884770806060730w5791775ah1a112212814cf46e@mail.gmail.com>, <48494CF9.3050903@colbyconsulting.com> Message-ID: <484A670F.11869.3EC1B35@stuart.lexacorp.com.pg> Have you tried setting explicitly immediately before your select? ie SET CONCAT_NULL_YIELDS_NULL ON On 6 Jun 2008 at 10:43, jwcolby wrote: > I found a database property / options / Concat null yields > null, which it CLAIMS will change this behavior. However it > still yields a null regardless of whether I set this to true > or false. > > Ths ISNULL() thing no doubt works but I have to concat 7 > different fields for 84 million records. I suspect that I > would be setting myself up for a week long query. > > Given that the property makes no difference I may be forced > to do this however. > > John W. Colby > www.ColbyConsulting.com > > > Paul Hartland wrote: > > Off the top of my head try: > > > > Select ISNULL(HouseNumberPrefix,'') + ' ' + ISNULL(HouseNumber,'') + ' ' + > > ISNULL(HouseNumberSuffix,'') + ' ' + ISNULL(Direction,'') + ' ' + > > ISNULL(StreetName,'') + ' ' + ISNULL(Mode,'') + ' ' + ISNULL(Quadrant,'') + > > ' ' + ISNULL(Appt#,'') > > > > Paul Hartland > > > > 2008/6/6 jwcolby : > > > >> I have a database that has split the address line into > >> > >> HouseNumberPrefix > >> HouseNumber > >> HouseNumberSuffix > >> Direction > >> StreetName > >> Mode (N, NW etc) > >> Quadrant > >> Appt# > >> > >> I need to put Humpty back together again to feed off to > >> Address Validation. How would I do that in SQL? > >> > >> I THINK I can just append them all together with spaces > >> between the parts and that would be fine EXCEPT that when > >> you do something like NULL + SomeString you end up with null. > >> > >> How would I do what I am trying to do in SQL? > >> > >> -- > >> 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 stephen at bondsoftware.co.nz Fri Jun 6 20:17:58 2008 From: stephen at bondsoftware.co.nz (Stephen) Date: Sat, 07 Jun 2008 13:17:58 +1200 Subject: [AccessD] Put humpty dumpty back together again Message-ID: <569E08FC48047F4F848850B118195FBE01A11C@server.BondSoftware.local> Hate to be a wet blanket, but (see http://msdn.microsoft.com/en-us/library/ms176056.aspx ) this feature comes with a warning: "This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature" ;-< Stephen Bond -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Saturday, 7 June 2008 1:01 p.m. To: Stephen Subject: Re: [AccessD] Put humpty dumpty back together again Have you tried setting explicitly immediately before your select? ie SET CONCAT_NULL_YIELDS_NULL ON On 6 Jun 2008 at 10:43, jwcolby wrote: > I found a database property / options / Concat null yields null, which > it CLAIMS will change this behavior. However it still yields a null > regardless of whether I set this to true or false. > > Ths ISNULL() thing no doubt works but I have to concat 7 different > fields for 84 million records. I suspect that I would be setting > myself up for a week long query. > > Given that the property makes no difference I may be forced to do this > however. > > John W. Colby > www.ColbyConsulting.com > > > Paul Hartland wrote: > > Off the top of my head try: > > > > Select ISNULL(HouseNumberPrefix,'') + ' ' + ISNULL(HouseNumber,'') + > > ' ' + > > ISNULL(HouseNumberSuffix,'') + ' ' + ISNULL(Direction,'') + ' ' + > > ISNULL(StreetName,'') + ' ' + ISNULL(Mode,'') + ' ' + > > ISNULL(Quadrant,'') + ' ' + ISNULL(Appt#,'') > > > > Paul Hartland > > > > 2008/6/6 jwcolby : > > > >> I have a database that has split the address line into > >> > >> HouseNumberPrefix > >> HouseNumber > >> HouseNumberSuffix > >> Direction > >> StreetName > >> Mode (N, NW etc) > >> Quadrant > >> Appt# > >> > >> I need to put Humpty back together again to feed off to Address > >> Validation. How would I do that in SQL? > >> > >> I THINK I can just append them all together with spaces between the > >> parts and that would be fine EXCEPT that when you do something like > >> NULL + SomeString you end up with null. > >> > >> How would I do what I am trying to do in SQL? > >> > >> -- > >> 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 jwcolby at colbyconsulting.com Sat Jun 7 08:19:38 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 07 Jun 2008 09:19:38 -0400 Subject: [AccessD] Put humpty dumpty back together again In-Reply-To: <484A670F.11869.3EC1B35@stuart.lexacorp.com.pg> References: <48494796.2060006@colbyconsulting.com>, <38c884770806060730w5791775ah1a112212814cf46e@mail.gmail.com>, <48494CF9.3050903@colbyconsulting.com> <484A670F.11869.3EC1B35@stuart.lexacorp.com.pg> Message-ID: <484A8AEA.201@colbyconsulting.com> I did not try it in the query itself. I did try it in the database properties. John W. Colby www.ColbyConsulting.com Stuart McLachlan wrote: > Have you tried setting explicitly immediately before your select? > ie SET CONCAT_NULL_YIELDS_NULL ON > > > On 6 Jun 2008 at 10:43, jwcolby wrote: > >> I found a database property / options / Concat null yields >> null, which it CLAIMS will change this behavior. However it >> still yields a null regardless of whether I set this to true >> or false. >> >> Ths ISNULL() thing no doubt works but I have to concat 7 >> different fields for 84 million records. I suspect that I >> would be setting myself up for a week long query. >> >> Given that the property makes no difference I may be forced >> to do this however. >> >> John W. Colby >> www.ColbyConsulting.com >> >> >> Paul Hartland wrote: >>> Off the top of my head try: >>> >>> Select ISNULL(HouseNumberPrefix,'') + ' ' + ISNULL(HouseNumber,'') + ' ' + >>> ISNULL(HouseNumberSuffix,'') + ' ' + ISNULL(Direction,'') + ' ' + >>> ISNULL(StreetName,'') + ' ' + ISNULL(Mode,'') + ' ' + ISNULL(Quadrant,'') + >>> ' ' + ISNULL(Appt#,'') >>> >>> Paul Hartland >>> >>> 2008/6/6 jwcolby : >>> >>>> I have a database that has split the address line into >>>> >>>> HouseNumberPrefix >>>> HouseNumber >>>> HouseNumberSuffix >>>> Direction >>>> StreetName >>>> Mode (N, NW etc) >>>> Quadrant >>>> Appt# >>>> >>>> I need to put Humpty back together again to feed off to >>>> Address Validation. How would I do that in SQL? >>>> >>>> I THINK I can just append them all together with spaces >>>> between the parts and that would be fine EXCEPT that when >>>> you do something like NULL + SomeString you end up with null. >>>> >>>> How would I do what I am trying to do in SQL? >>>> >>>> -- >>>> 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 jwcolby at colbyconsulting.com Sat Jun 7 08:20:31 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 07 Jun 2008 09:20:31 -0400 Subject: [AccessD] Put humpty dumpty back together again In-Reply-To: <569E08FC48047F4F848850B118195FBE01A11C@server.BondSoftware.local> References: <569E08FC48047F4F848850B118195FBE01A11C@server.BondSoftware.local> Message-ID: <484A8B1F.2090000@colbyconsulting.com> Yea, I saw that too. What I didn't see is the recommended alternative. John W. Colby www.ColbyConsulting.com Stephen wrote: > Hate to be a wet blanket, but (see > http://msdn.microsoft.com/en-us/library/ms176056.aspx ) this feature > comes with a warning: > > "This feature will be removed in a future version of Microsoft SQL > Server. Avoid using this feature in new development work, and plan to > modify applications that currently use this feature" ;-< > > > > Stephen Bond > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart > McLachlan > Sent: Saturday, 7 June 2008 1:01 p.m. > To: Stephen > Subject: Re: [AccessD] Put humpty dumpty back together again > > Have you tried setting explicitly immediately before your select? > ie SET CONCAT_NULL_YIELDS_NULL ON > > > On 6 Jun 2008 at 10:43, jwcolby wrote: > >> I found a database property / options / Concat null yields null, which > >> it CLAIMS will change this behavior. However it still yields a null >> regardless of whether I set this to true or false. >> >> Ths ISNULL() thing no doubt works but I have to concat 7 different >> fields for 84 million records. I suspect that I would be setting >> myself up for a week long query. >> >> Given that the property makes no difference I may be forced to do this > >> however. >> >> John W. Colby >> www.ColbyConsulting.com >> >> >> Paul Hartland wrote: >>> Off the top of my head try: >>> >>> Select ISNULL(HouseNumberPrefix,'') + ' ' + ISNULL(HouseNumber,'') + > >>> ' ' + >>> ISNULL(HouseNumberSuffix,'') + ' ' + ISNULL(Direction,'') + ' ' + >>> ISNULL(StreetName,'') + ' ' + ISNULL(Mode,'') + ' ' + >>> ISNULL(Quadrant,'') + ' ' + ISNULL(Appt#,'') >>> >>> Paul Hartland >>> >>> 2008/6/6 jwcolby : >>> >>>> I have a database that has split the address line into >>>> >>>> HouseNumberPrefix >>>> HouseNumber >>>> HouseNumberSuffix >>>> Direction >>>> StreetName >>>> Mode (N, NW etc) >>>> Quadrant >>>> Appt# >>>> >>>> I need to put Humpty back together again to feed off to Address >>>> Validation. How would I do that in SQL? >>>> >>>> I THINK I can just append them all together with spaces between the > >>>> parts and that would be fine EXCEPT that when you do something like > >>>> NULL + SomeString you end up with null. >>>> >>>> How would I do what I am trying to do in SQL? >>>> >>>> -- >>>> 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 robert at servicexp.com Sat Jun 7 09:12:25 2008 From: robert at servicexp.com (Robert) Date: Sat, 7 Jun 2008 10:12:25 -0400 Subject: [AccessD] Access 2007 SageKey Scripts On Vista Problems In-Reply-To: <484A8B1F.2090000@colbyconsulting.com> References: <569E08FC48047F4F848850B118195FBE01A11C@server.BondSoftware.local> <484A8B1F.2090000@colbyconsulting.com> Message-ID: <000001c8c8a8$83812900$8a837b00$@com> Hello All, Is there anyone here that is using the A07 SageKey scripts on Vista successfully? I have used their A2000 and A2002 scripts with acceptable results, but I'm having major problems with A2007 scripts. OS Vista (Updated) A07 Runtime (latest Version) SageKey's web site say's: "Installations built using our tools will automatically be able to run macros without displaying any security warnings. You will also be able to add additional folders as trusted locations with our tools" In the scripts they also say: "At the end of the install, the Sagekey scripts will open up permissions on MAINDIR to give all Users Full Control. This is done to ensure that regardless of where the end user chooses to install the application, it will run properly." But it appears that this is not happening. This is what is happening: 1) Installation processes correctly (As Administrator) 2) User logs in to my Application (.mde) and is confronted by a security warning. 3) If the user selects continue, the user is then confronted by my re-linking code. The problem is, it *appears* that the folder(s) created by the SageKey scripts are {Read Only}, and the permissions for the folder are not set to full control. 4) This causes the re-linking code to fail, and my shuts down. If I modify my root directory (located under the ProgramData dir) G.B.S. (un-tick Read Only) and set permissions to full control all (with the exception of the security msg) loads fine. Steve, from SageKey, has address some small minor issues, but interestingly enough not these, which are in my view major problems. Any Idea's ??? WBR ~Robert From rbgajewski at adelphia.net Sat Jun 7 09:46:41 2008 From: rbgajewski at adelphia.net (Bob Gajewski) Date: Sat, 7 Jun 2008 10:46:41 -0400 Subject: [AccessD] Put humpty dumpty back together again In-Reply-To: <484A8AEA.201@colbyconsulting.com> References: <48494796.2060006@colbyconsulting.com>, <38c884770806060730w5791775ah1a112212814cf46e@mail.gmail.com>, <48494CF9.3050903@colbyconsulting.com><484A670F.11869.3EC1B35@stuart.lexacorp.com.pg> <484A8AEA.201@colbyconsulting.com> Message-ID: John Just wondering ... Do you need to concatenate these for a table, query, form or report? Bob Gajewski -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Saturday, June 07, 2008 09:20 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Put humpty dumpty back together again I did not try it in the query itself. I did try it in the database properties. John W. Colby www.ColbyConsulting.com Stuart McLachlan wrote: > Have you tried setting explicitly immediately before your select? > ie SET CONCAT_NULL_YIELDS_NULL ON > > > On 6 Jun 2008 at 10:43, jwcolby wrote: > >> I found a database property / options / Concat null yields null, >> which it CLAIMS will change this behavior. However it still yields a >> null regardless of whether I set this to true or false. >> >> Ths ISNULL() thing no doubt works but I have to concat 7 different >> fields for 84 million records. I suspect that I would be setting >> myself up for a week long query. >> >> Given that the property makes no difference I may be forced to do >> this however. >> >> John W. Colby >> www.ColbyConsulting.com >> >> >> Paul Hartland wrote: >>> Off the top of my head try: >>> >>> Select ISNULL(HouseNumberPrefix,'') + ' ' + ISNULL(HouseNumber,'') + >>> ' ' + >>> ISNULL(HouseNumberSuffix,'') + ' ' + ISNULL(Direction,'') + ' ' + >>> ISNULL(StreetName,'') + ' ' + ISNULL(Mode,'') + ' ' + >>> ISNULL(Quadrant,'') + ' ' + ISNULL(Appt#,'') >>> >>> Paul Hartland >>> >>> 2008/6/6 jwcolby : >>> >>>> I have a database that has split the address line into >>>> >>>> HouseNumberPrefix >>>> HouseNumber >>>> HouseNumberSuffix >>>> Direction >>>> StreetName >>>> Mode (N, NW etc) >>>> Quadrant >>>> Appt# >>>> >>>> I need to put Humpty back together again to feed off to Address >>>> Validation. How would I do that in SQL? >>>> >>>> I THINK I can just append them all together with spaces between the >>>> parts and that would be fine EXCEPT that when you do something like >>>> NULL + SomeString you end up with null. >>>> >>>> How would I do what I am trying to do in SQL? >>>> >>>> -- >>>> 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 jwcolby at colbyconsulting.com Sat Jun 7 10:22:44 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Sat, 07 Jun 2008 11:22:44 -0400 Subject: [AccessD] Put humpty dumpty back together again In-Reply-To: References: <48494796.2060006@colbyconsulting.com>, <38c884770806060730w5791775ah1a112212814cf46e@mail.gmail.com>, <48494CF9.3050903@colbyconsulting.com><484A670F.11869.3EC1B35@stuart.lexacorp.com.pg> <484A8AEA.201@colbyconsulting.com> Message-ID: <484AA7C4.5080701@colbyconsulting.com> I need to put them back together again and store the entire address line in a new field. This table has 97 million records so doing it "on-the-fly" whenever you want data just doesn't make sense. Do it once, and be done with it. I then send the addresses out to another program for validation. That program expects a single address line. John W. Colby www.ColbyConsulting.com Bob Gajewski wrote: > John > > Just wondering ... Do you need to concatenate these for a table, query, form > or report? > > Bob Gajewski > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Saturday, June 07, 2008 09:20 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Put humpty dumpty back together again > > I did not try it in the query itself. I did try it in the database > properties. > > John W. Colby > www.ColbyConsulting.com > > > Stuart McLachlan wrote: >> Have you tried setting explicitly immediately before your select? >> ie SET CONCAT_NULL_YIELDS_NULL ON >> >> >> On 6 Jun 2008 at 10:43, jwcolby wrote: >> >>> I found a database property / options / Concat null yields null, >>> which it CLAIMS will change this behavior. However it still yields a >>> null regardless of whether I set this to true or false. >>> >>> Ths ISNULL() thing no doubt works but I have to concat 7 different >>> fields for 84 million records. I suspect that I would be setting >>> myself up for a week long query. >>> >>> Given that the property makes no difference I may be forced to do >>> this however. >>> >>> John W. Colby >>> www.ColbyConsulting.com >>> >>> >>> Paul Hartland wrote: >>>> Off the top of my head try: >>>> >>>> Select ISNULL(HouseNumberPrefix,'') + ' ' + ISNULL(HouseNumber,'') + >>>> ' ' + >>>> ISNULL(HouseNumberSuffix,'') + ' ' + ISNULL(Direction,'') + ' ' + >>>> ISNULL(StreetName,'') + ' ' + ISNULL(Mode,'') + ' ' + >>>> ISNULL(Quadrant,'') + ' ' + ISNULL(Appt#,'') >>>> >>>> Paul Hartland >>>> >>>> 2008/6/6 jwcolby : >>>> >>>>> I have a database that has split the address line into >>>>> >>>>> HouseNumberPrefix >>>>> HouseNumber >>>>> HouseNumberSuffix >>>>> Direction >>>>> StreetName >>>>> Mode (N, NW etc) >>>>> Quadrant >>>>> Appt# >>>>> >>>>> I need to put Humpty back together again to feed off to Address >>>>> Validation. How would I do that in SQL? >>>>> >>>>> I THINK I can just append them all together with spaces between the >>>>> parts and that would be fine EXCEPT that when you do something like >>>>> NULL + SomeString you end up with null. >>>>> >>>>> How would I do what I am trying to do in SQL? >>>>> >>>>> -- >>>>> 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 dw-murphy at cox.net Sat Jun 7 14:12:26 2008 From: dw-murphy at cox.net (Doug Murphy) Date: Sat, 7 Jun 2008 12:12:26 -0700 Subject: [AccessD] Access 2007 SageKey Scripts On Vista Problems In-Reply-To: <000001c8c8a8$83812900$8a837b00$@com> References: <569E08FC48047F4F848850B118195FBE01A11C@server.BondSoftware.local><484A8B1F.2090000@colbyconsulting.com> <000001c8c8a8$83812900$8a837b00$@com> Message-ID: <003101c8c8d2$6c1211b0$0200a8c0@murphy3234aaf1> Hello Robert, I do not have the 2007 scripts but do have the new scripts that do the same thing when we install our 2002 app on Vista machines. The setup seems to be working OK on several vista machines. These installations are done by folks who know nothing more about installing a program than putting the CD in the drive and following instructions. It took longer than I thought to move my original Sagekey install over to the new Vista compatible scripts because, as I recollect, it installs the app on Vista in a different location than on previous versions of Windows. In our previous scripts I set the directory location explicitly. The location required for Vista gives all users rights to run the program, so you have to follow the example script closely when building yours. I have found that the tech support at Sagekey is great if you can articulate your issue via email to their tech support site. It may take a day to get a response, but we have worked through all my issues. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Sent: Saturday, June 07, 2008 7:12 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access 2007 SageKey Scripts On Vista Problems Hello All, Is there anyone here that is using the A07 SageKey scripts on Vista successfully? I have used their A2000 and A2002 scripts with acceptable results, but I'm having major problems with A2007 scripts. OS Vista (Updated) A07 Runtime (latest Version) SageKey's web site say's: "Installations built using our tools will automatically be able to run macros without displaying any security warnings. You will also be able to add additional folders as trusted locations with our tools" In the scripts they also say: "At the end of the install, the Sagekey scripts will open up permissions on MAINDIR to give all Users Full Control. This is done to ensure that regardless of where the end user chooses to install the application, it will run properly." But it appears that this is not happening. This is what is happening: 1) Installation processes correctly (As Administrator) 2) User logs in to my Application (.mde) and is confronted by a security warning. 3) If the user selects continue, the user is then confronted by my re-linking code. The problem is, it *appears* that the folder(s) created by the SageKey scripts are {Read Only}, and the permissions for the folder are not set to full control. 4) This causes the re-linking code to fail, and my shuts down. If I modify my root directory (located under the ProgramData dir) G.B.S. (un-tick Read Only) and set permissions to full control all (with the exception of the security msg) loads fine. Steve, from SageKey, has address some small minor issues, but interestingly enough not these, which are in my view major problems. Any Idea's ??? WBR ~Robert -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From robert at servicexp.com Sat Jun 7 20:50:57 2008 From: robert at servicexp.com (Robert) Date: Sat, 7 Jun 2008 21:50:57 -0400 Subject: [AccessD] Access 2007 SageKey Scripts On Vista Problems In-Reply-To: <003101c8c8d2$6c1211b0$0200a8c0@murphy3234aaf1> References: <569E08FC48047F4F848850B118195FBE01A11C@server.BondSoftware.local><484A8B1F.2090000@colbyconsulting.com> <000001c8c8a8$83812900$8a837b00$@com> <003101c8c8d2$6c1211b0$0200a8c0@murphy3234aaf1> Message-ID: <000001c8c90a$19603310$4c209930$@com> Doug, So when you install your app. on Vista, the dir is ProgramData\"Company"\"Product"\ and the SageKey scripts creates these with Full Control permissions and the "Read Only" option un-ticked? Are you creating any additional directories (folders) using the scripts? If so under what part of the script are you tell the script to create them? It's weird because the scripts are creating dir. structure as it should, it's just not changing the permissions. I'm just not sure if I'm causing the script not to do it or if it's a deficiency in the A07 Script. WBR ~Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Saturday, June 07, 2008 3:12 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access 2007 SageKey Scripts On Vista Problems Hello Robert, I do not have the 2007 scripts but do have the new scripts that do the same thing when we install our 2002 app on Vista machines. The setup seems to be working OK on several vista machines. These installations are done by folks who know nothing more about installing a program than putting the CD in the drive and following instructions. It took longer than I thought to move my original Sagekey install over to the new Vista compatible scripts because, as I recollect, it installs the app on Vista in a different location than on previous versions of Windows. In our previous scripts I set the directory location explicitly. The location required for Vista gives all users rights to run the program, so you have to follow the example script closely when building yours. I have found that the tech support at Sagekey is great if you can articulate your issue via email to their tech support site. It may take a day to get a response, but we have worked through all my issues. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Sent: Saturday, June 07, 2008 7:12 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access 2007 SageKey Scripts On Vista Problems Hello All, Is there anyone here that is using the A07 SageKey scripts on Vista successfully? I have used their A2000 and A2002 scripts with acceptable results, but I'm having major problems with A2007 scripts. OS Vista (Updated) A07 Runtime (latest Version) SageKey's web site say's: "Installations built using our tools will automatically be able to run macros without displaying any security warnings. You will also be able to add additional folders as trusted locations with our tools" In the scripts they also say: "At the end of the install, the Sagekey scripts will open up permissions on MAINDIR to give all Users Full Control. This is done to ensure that regardless of where the end user chooses to install the application, it will run properly." But it appears that this is not happening. This is what is happening: 1) Installation processes correctly (As Administrator) 2) User logs in to my Application (.mde) and is confronted by a security warning. 3) If the user selects continue, the user is then confronted by my re-linking code. The problem is, it *appears* that the folder(s) created by the SageKey scripts are {Read Only}, and the permissions for the folder are not set to full control. 4) This causes the re-linking code to fail, and my shuts down. If I modify my root directory (located under the ProgramData dir) G.B.S. (un-tick Read Only) and set permissions to full control all (with the exception of the security msg) loads fine. Steve, from SageKey, has address some small minor issues, but interestingly enough not these, which are in my view major problems. Any Idea's ??? WBR ~Robert -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 airtelmail.in Mon Jun 9 02:24:11 2008 From: adtp at airtelmail.in (A.D.Tejpal) Date: Mon, 9 Jun 2008 12:54:11 +0530 Subject: [AccessD] Put humpty dumpty back together again References: <48494796.2060006@colbyconsulting.com> Message-ID: <007801c8ca01$e63c7900$f158a27a@personald6374f> Prima-facie, the solution suggested by JB (placed below) should meet the requirement. It is straightforward, and does not impose any function calls. It is not clear whether JC has responded to this. Note: It seems that at some places, intended + sign has been replaced by = sign during email processing. A.D.Tejpal ------------ ----- Original Message ----- From: John Bartow To: 'Access Developers discussion and problem solving' Sent: Friday, June 06, 2008 20:34 Subject: Re: [AccessD] Put humpty dumpty back together again I'm assuming your using Access queries to do this: SELECT HouseNumberPrefix, HouseNumber, HouseNumberSuffix, Direction, StreetName, Mode , Quadrant, Appt# ([HouseNumberPrefix]+" ") & ([HouseNumber]+" ") & ([HouseNumberSuffix]=" ") & ([Direction]=" ") & ([StreetName]=" ") & ([Mode ]=" ") & ([Quadrant]=" ") & [Appt#] AS FullAddress FROM tblPerson HTH John B. ----- Original Message ----- From: jwcolby To: Access Developers discussion and problem solving ; Dba-Sqlserver Sent: Friday, June 06, 2008 19:50 Subject: [AccessD] Put humpty dumpty back together again I have a database that has split the address line into HouseNumberPrefix HouseNumber HouseNumberSuffix Direction StreetName Mode (N, NW etc) Quadrant Appt# I need to put Humpty back together again to feed off to Address Validation. How would I do that in SQL? I THINK I can just append them all together with spaces between the parts and that would be fine EXCEPT that when you do something like NULL + SomeString you end up with null. How would I do what I am trying to do in SQL? -- John W. Colby www.ColbyConsulting.com From Gustav at cactus.dk Mon Jun 9 05:04:06 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 09 Jun 2008 12:04:06 +0200 Subject: [AccessD] Rounding UP (solved) Message-ID: Hi Jeff et al This is easier than most believe and one of my favourites (which I believe I has posted before, though I can't locate it) ... Everyone knows that Int(SomeValue) rounds SomeValue down to the nearest Integer. 7.07 becomes 7, and -1.5 becomes -2. But what if you wish to round up? That's easy. Just use the negative value and reverse the result: intUp = -Int(-SomeValue) Now 7.07 becomes 8, while -1.5 becomes -1. /gustav From cfoust at infostatsystems.com Mon Jun 9 09:43:37 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 9 Jun 2008 07:43:37 -0700 Subject: [AccessD] Access 2007 SageKey Scripts On Vista Problems In-Reply-To: <000001c8c90a$19603310$4c209930$@com> References: <569E08FC48047F4F848850B118195FBE01A11C@server.BondSoftware.local><484A8B1F.2090000@colbyconsulting.com> <000001c8c8a8$83812900$8a837b00$@com><003101c8c8d2$6c1211b0$0200a8c0@murphy3234aaf1> <000001c8c90a$19603310$4c209930$@com> Message-ID: I think you'll find it's paranoia in Vista rather than anything to do with the script. Vista is pretty buttoned down, from what we can tell. You have to work with what it will accept, not try to muscle it to do what you want. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Sent: Saturday, June 07, 2008 6:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access 2007 SageKey Scripts On Vista Problems Doug, So when you install your app. on Vista, the dir is ProgramData\"Company"\"Product"\ and the SageKey scripts creates these with Full Control permissions and the "Read Only" option un-ticked? Are you creating any additional directories (folders) using the scripts? If so under what part of the script are you tell the script to create them? It's weird because the scripts are creating dir. structure as it should, it's just not changing the permissions. I'm just not sure if I'm causing the script not to do it or if it's a deficiency in the A07 Script. WBR ~Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Saturday, June 07, 2008 3:12 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access 2007 SageKey Scripts On Vista Problems Hello Robert, I do not have the 2007 scripts but do have the new scripts that do the same thing when we install our 2002 app on Vista machines. The setup seems to be working OK on several vista machines. These installations are done by folks who know nothing more about installing a program than putting the CD in the drive and following instructions. It took longer than I thought to move my original Sagekey install over to the new Vista compatible scripts because, as I recollect, it installs the app on Vista in a different location than on previous versions of Windows. In our previous scripts I set the directory location explicitly. The location required for Vista gives all users rights to run the program, so you have to follow the example script closely when building yours. I have found that the tech support at Sagekey is great if you can articulate your issue via email to their tech support site. It may take a day to get a response, but we have worked through all my issues. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Sent: Saturday, June 07, 2008 7:12 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access 2007 SageKey Scripts On Vista Problems Hello All, Is there anyone here that is using the A07 SageKey scripts on Vista successfully? I have used their A2000 and A2002 scripts with acceptable results, but I'm having major problems with A2007 scripts. OS Vista (Updated) A07 Runtime (latest Version) SageKey's web site say's: "Installations built using our tools will automatically be able to run macros without displaying any security warnings. You will also be able to add additional folders as trusted locations with our tools" In the scripts they also say: "At the end of the install, the Sagekey scripts will open up permissions on MAINDIR to give all Users Full Control. This is done to ensure that regardless of where the end user chooses to install the application, it will run properly." But it appears that this is not happening. This is what is happening: 1) Installation processes correctly (As Administrator) 2) User logs in to my Application (.mde) and is confronted by a security warning. 3) If the user selects continue, the user is then confronted by my re-linking code. The problem is, it *appears* that the folder(s) created by the SageKey scripts are {Read Only}, and the permissions for the folder are not set to full control. 4) This causes the re-linking code to fail, and my shuts down. If I modify my root directory (located under the ProgramData dir) G.B.S. (un-tick Read Only) and set permissions to full control all (with the exception of the security msg) loads fine. Steve, from SageKey, has address some small minor issues, but interestingly enough not these, which are in my view major problems. Any Idea's ??? WBR ~Robert -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Jun 9 11:37:32 2008 From: dw-murphy at cox.net (Doug Murphy) Date: Mon, 9 Jun 2008 09:37:32 -0700 Subject: [AccessD] Access 2007 SageKey Scripts On Vista Problems In-Reply-To: <000001c8c90a$19603310$4c209930$@com> References: <569E08FC48047F4F848850B118195FBE01A11C@server.BondSoftware.local><484A8B1F.2090000@colbyconsulting.com> <000001c8c8a8$83812900$8a837b00$@com><003101c8c8d2$6c1211b0$0200a8c0@murphy3234aaf1> <000001c8c90a$19603310$4c209930$@com> Message-ID: <002301c8ca4f$1d616b50$0200a8c0@murphy3234aaf1> Hi Robert, The following is from the file shipped with our Vista compatible scripts. Note that for Vista installs your app should be in the C:\ProgramData directory. This is the way our scripts install on Vista and we have not had any security warning issues. -------------------------------------- 3) Add a new variable COMMON_APP_DATA, and set it to the CommonAppData path. More information on this is provided in point 4 below. The value can be determined from reading the registry; Key = HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders Value Name=CommonAppData Default=%MAINDRIVE%\Documents and Settings\All Users\Start Menu\Programs 4) On Vista, Microsoft formally recommends that all files that are written to by an application be placed in C:\ProgramData. Therefore, on Vista MAINDIR should be defaulted to %COMMON_APP_DATA%\%COMPANY%\%PRODUCT% and %PROGRAM_FILES%\%COMPANY%\%PRODUCT% for all other operating systems. Add code after the variable OS_VERSION has been initialized (example below). If OS_VERSION < 6.0 then Set Variable MAINDIR = %PROGRAM_FILES%\%COMPANY%\%PRODUCT% Else Set Variable MAINDIR = %COMMON_APP_DATA%\%COMPANY%\%PRODUCT% end --------------------------------------------- -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Sent: Saturday, June 07, 2008 6:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access 2007 SageKey Scripts On Vista Problems Doug, So when you install your app. on Vista, the dir is ProgramData\"Company"\"Product"\ and the SageKey scripts creates these with Full Control permissions and the "Read Only" option un-ticked? Are you creating any additional directories (folders) using the scripts? If so under what part of the script are you tell the script to create them? It's weird because the scripts are creating dir. structure as it should, it's just not changing the permissions. I'm just not sure if I'm causing the script not to do it or if it's a deficiency in the A07 Script. WBR ~Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Saturday, June 07, 2008 3:12 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access 2007 SageKey Scripts On Vista Problems Hello Robert, I do not have the 2007 scripts but do have the new scripts that do the same thing when we install our 2002 app on Vista machines. The setup seems to be working OK on several vista machines. These installations are done by folks who know nothing more about installing a program than putting the CD in the drive and following instructions. It took longer than I thought to move my original Sagekey install over to the new Vista compatible scripts because, as I recollect, it installs the app on Vista in a different location than on previous versions of Windows. In our previous scripts I set the directory location explicitly. The location required for Vista gives all users rights to run the program, so you have to follow the example script closely when building yours. I have found that the tech support at Sagekey is great if you can articulate your issue via email to their tech support site. It may take a day to get a response, but we have worked through all my issues. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Sent: Saturday, June 07, 2008 7:12 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access 2007 SageKey Scripts On Vista Problems Hello All, Is there anyone here that is using the A07 SageKey scripts on Vista successfully? I have used their A2000 and A2002 scripts with acceptable results, but I'm having major problems with A2007 scripts. OS Vista (Updated) A07 Runtime (latest Version) SageKey's web site say's: "Installations built using our tools will automatically be able to run macros without displaying any security warnings. You will also be able to add additional folders as trusted locations with our tools" In the scripts they also say: "At the end of the install, the Sagekey scripts will open up permissions on MAINDIR to give all Users Full Control. This is done to ensure that regardless of where the end user chooses to install the application, it will run properly." But it appears that this is not happening. This is what is happening: 1) Installation processes correctly (As Administrator) 2) User logs in to my Application (.mde) and is confronted by a security warning. 3) If the user selects continue, the user is then confronted by my re-linking code. The problem is, it *appears* that the folder(s) created by the SageKey scripts are {Read Only}, and the permissions for the folder are not set to full control. 4) This causes the re-linking code to fail, and my shuts down. If I modify my root directory (located under the ProgramData dir) G.B.S. (un-tick Read Only) and set permissions to full control all (with the exception of the security msg) loads fine. Steve, from SageKey, has address some small minor issues, but interestingly enough not these, which are in my view major problems. Any Idea's ??? WBR ~Robert -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Mon Jun 9 11:53:27 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Mon, 9 Jun 2008 09:53:27 -0700 Subject: [AccessD] Trick Needed Message-ID: <005d01c8ca51$572c6c70$0301a8c0@HAL9005> Dear List: There are two text boxes on a form. As the user keys info into text box 1, that is, after every key stroke, I would like the length of the data in text box 1 to appear in text box 2. But I can't find an event that 'knows' what the current length is in text box 1 until it loses and regains focus. Is there a slick way to get this number? MTIA Rocky From jwcolby at colbyconsulting.com Mon Jun 9 12:00:36 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Mon, 09 Jun 2008 13:00:36 -0400 Subject: [AccessD] Trick Needed In-Reply-To: <005d01c8ca51$572c6c70$0301a8c0@HAL9005> References: <005d01c8ca51$572c6c70$0301a8c0@HAL9005> Message-ID: <484D61B4.4010103@colbyconsulting.com> text1.keyup should be the event (after the key has been deposited. In that event look for the length of text1. I have not tested this though. John W. Colby www.ColbyConsulting.com Rocky Smolin at Beach Access Software wrote: > Dear List: > > There are two text boxes on a form. As the user keys info into text box 1, > that is, after every key stroke, I would like the length of the data in > text box 1 to appear in text box 2. But I can't find an event that 'knows' > what the current length is in text box 1 until it loses and regains focus. > > Is there a slick way to get this number? > > MTIA > > Rocky > > > > > > > From Gustav at cactus.dk Mon Jun 9 12:06:12 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 09 Jun 2008 19:06:12 +0200 Subject: [AccessD] Trick Needed Message-ID: Hi Rocky How about using OnChanged of TextBox1: Me!TextBox2.Value = Len(Me!TextBox1.Text) /gustav >>> rockysmolin at bchacc.com 09-06-2008 18:53 >>> Dear List: There are two text boxes on a form. As the user keys info into text box 1, that is, after every key stroke, I would like the length of the data in text box 1 to appear in text box 2. But I can't find an event that 'knows' what the current length is in text box 1 until it loses and regains focus. Is there a slick way to get this number? MTIA Rocky From rockysmolin at bchacc.com Mon Jun 9 12:09:17 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Mon, 9 Jun 2008 10:09:17 -0700 Subject: [AccessD] Trick Needed In-Reply-To: <484D61B4.4010103@colbyconsulting.com> References: <005d01c8ca51$572c6c70$0301a8c0@HAL9005> <484D61B4.4010103@colbyconsulting.com> Message-ID: <006c01c8ca53$8d2a8710$0301a8c0@HAL9005> That was my first thought, too. But it doesn't show the current length of the data in the text box correctly. It just show the length of whatever was there when the box got the focus. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, June 09, 2008 10:01 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Trick Needed text1.keyup should be the event (after the key has been deposited. In that event look for the length of text1. I have not tested this though. John W. Colby www.ColbyConsulting.com Rocky Smolin at Beach Access Software wrote: > Dear List: > > There are two text boxes on a form. As the user keys info into text > box 1, that is, after every key stroke, I would like the length of > the data in text box 1 to appear in text box 2. But I can't find an event that 'knows' > what the current length is in text box 1 until it loses and regains focus. > > Is there a slick way to get this number? > > MTIA > > Rocky > > > > > > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 270.1.0/1492 - Release Date: 9/6/2008 10:29 From rockysmolin at bchacc.com Mon Jun 9 12:11:30 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Mon, 9 Jun 2008 10:11:30 -0700 Subject: [AccessD] FW: Trick Needed Message-ID: <006d01c8ca53$dc26b640$0301a8c0@HAL9005> Oops. Meant that to reply to Gustav. And, having looked a bit closer, adding the .Text property solves it! Thank you Gustav. Regards, Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: Rocky Smolin at Beach Access Software [mailto:rockysmolin at bchacc.com] Sent: Monday, June 09, 2008 10:09 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Trick Needed That was my first thought, too. But it doesn't show the current length of the data in the text box correctly. It just show the length of whatever was there when the box got the focus. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Monday, June 09, 2008 10:01 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Trick Needed text1.keyup should be the event (after the key has been deposited. In that event look for the length of text1. I have not tested this though. John W. Colby www.ColbyConsulting.com Rocky Smolin at Beach Access Software wrote: > Dear List: > > There are two text boxes on a form. As the user keys info into text > box 1, that is, after every key stroke, I would like the length of > the data in text box 1 to appear in text box 2. But I can't find an event that 'knows' > what the current length is in text box 1 until it loses and regains focus. > > Is there a slick way to get this number? > > MTIA > > Rocky > > > > > > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 270.1.0/1492 - Release Date: 9/6/2008 10:29 From john at winhaven.net Mon Jun 9 12:12:23 2008 From: john at winhaven.net (John Bartow) Date: Mon, 9 Jun 2008 12:12:23 -0500 Subject: [AccessD] Put humpty dumpty back together again In-Reply-To: <007801c8ca01$e63c7900$f158a27a@personald6374f> Message-ID: <200806091712.m59HCFvQ023941@databaseadvisors.com> A.D., Thanks for pointing out the + / = sign issue. I missed that typo. It's the time of year where my keyboarding is a bit unsure as my office gets very humid compared to other times of the year! We've had 5" of rain over the last couple days with high temps. John B. From john at winhaven.net Mon Jun 9 12:12:23 2008 From: john at winhaven.net (John Bartow) Date: Mon, 9 Jun 2008 12:12:23 -0500 Subject: [AccessD] sub form procedure In-Reply-To: <05fb01c8c7fc$6c5c8d70$6401a8c0@nant> Message-ID: <200806091712.m59HCFoT023943@databaseadvisors.com> Thanks Shamil, I found that the form was corrupt and had to copy and paste everything into a new form. Then using the Current event worked just as I needed. John B. From Gustav at cactus.dk Mon Jun 9 12:16:58 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 09 Jun 2008 19:16:58 +0200 Subject: [AccessD] FW: Trick Needed Message-ID: Hi Rocky No problem! /gustav >>> rockysmolin at bchacc.com 09-06-2008 19:11 >>> Oops. Meant that to reply to Gustav. And, having looked a bit closer, adding the .Text property solves it! Thank you Gustav. From markamatte at hotmail.com Mon Jun 9 12:22:09 2008 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 9 Jun 2008 17:22:09 +0000 Subject: [AccessD] Trick Needed In-Reply-To: <005d01c8ca51$572c6c70$0301a8c0@HAL9005> References: <005d01c8ca51$572c6c70$0301a8c0@HAL9005> Message-ID: Rocky, 2 text boxes. TEXT1 and TEXT2 Private Sub Text1_KeyUp(KeyCode As Integer, Shift As Integer) Me!Text2.Requery End Sub in "CONTROL SOURCE" of TEXT2 =Len([Text1].[Text]) This shouold get what you need. Thanks, Mark A. Matte > From: rockysmolin at bchacc.com > To: accessd at databaseadvisors.com > Date: Mon, 9 Jun 2008 09:53:27 -0700 > Subject: [AccessD] Trick Needed > > Dear List: > > There are two text boxes on a form. As the user keys info into text box 1, > that is, after every key stroke, I would like the length of the data in > text box 1 to appear in text box 2. But I can't find an event that 'knows' > what the current length is in text box 1 until it loses and regains focus. > > Is there a slick way to get this number? > > MTIA > > Rocky > > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ Enjoy 5 GB of free, password-protected online storage. http://www.windowslive.com/skydrive/overview.html?ocid=TXT_TAGLM_WL_Refresh_skydrive_062008 From rockysmolin at bchacc.com Mon Jun 9 12:34:25 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Mon, 9 Jun 2008 10:34:25 -0700 Subject: [AccessD] FW: Trick Needed In-Reply-To: References: Message-ID: <007501c8ca57$1011b2e0$0301a8c0@HAL9005> Not for you! :o) Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Monday, June 09, 2008 10:17 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] FW: Trick Needed Hi Rocky No problem! /gustav >>> rockysmolin at bchacc.com 09-06-2008 19:11 >>> Oops. Meant that to reply to Gustav. And, having looked a bit closer, adding the .Text property solves it! Thank you Gustav. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 270.1.0/1492 - Release Date: 9/6/2008 10:29 From ssharkins at gmail.com Mon Jun 9 18:13:48 2008 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 9 Jun 2008 19:13:48 -0400 Subject: [AccessD] Trick Needed References: <005d01c8ca51$572c6c70$0301a8c0@HAL9005> Message-ID: <00dd01c8ca86$91582300$2f8601c7@SusanOne> ooooooooooo... Rocky, did it work? That is indeed clever. Susan H. > > Rocky, > > 2 text boxes. TEXT1 and TEXT2 > > Private Sub Text1_KeyUp(KeyCode As Integer, Shift As Integer) > Me!Text2.Requery > End Sub > > in "CONTROL SOURCE" of TEXT2 =Len([Text1].[Text]) > > This shouold get what you need. From rockysmolin at bchacc.com Mon Jun 9 19:10:07 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Mon, 9 Jun 2008 17:10:07 -0700 Subject: [AccessD] Trick Needed In-Reply-To: <00dd01c8ca86$91582300$2f8601c7@SusanOne> References: <005d01c8ca51$572c6c70$0301a8c0@HAL9005> <00dd01c8ca86$91582300$2f8601c7@SusanOne> Message-ID: <00ac01c8ca8e$576039f0$0301a8c0@HAL9005> Perfectly. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Monday, June 09, 2008 4:14 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Trick Needed ooooooooooo... Rocky, did it work? That is indeed clever. Susan H. > > Rocky, > > 2 text boxes. TEXT1 and TEXT2 > > Private Sub Text1_KeyUp(KeyCode As Integer, Shift As Integer) > Me!Text2.Requery End Sub > > in "CONTROL SOURCE" of TEXT2 =Len([Text1].[Text]) > > This shouold get what you need. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 270.1.0/1492 - Release Date: 9/6/2008 10:29 From accessd at shaw.ca Mon Jun 9 19:37:52 2008 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 09 Jun 2008 17:37:52 -0700 Subject: [AccessD] VBA Unbound data entry / update form In-Reply-To: <0K1J00I84V5QZ1U0@vms044.mailsrvcs.net> References: <483C8FF5.1040407@colbyconsulting.com> <0K1J00I84V5QZ1U0@vms044.mailsrvcs.net> Message-ID: <02034CB1BB2E4ECE9DE313D2E38175AE@creativesystemdesigns.com> Hi Jennifer: I have no idea how to create bound Access forms. ;-) The last bound database that I have worked with was back in '97. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Tuesday, May 27, 2008 5:12 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] VBA Unbound data entry / update form I have no idea how to create an unbound form in Access. I always use bound forms. Though I would be interested to know how it's done. Unless I've got it wrong, that seems to be the basic question here - For those of you who do it, how do you create an unbound form? How do you populate the textboxes initially and then how do you save the information back to the tables? It's beginning to sound like nobody really does it. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, May 27, 2008 2:49 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VBA Unbound data entry / update form > 1) If your situation gives you the choice between Access and SQL Server, then you can use SQL Server Express. For your customer's benefit - it's free! I know that, and you know that, but they have used an MDB BE for most of a decade. SQL Server is the great unknown. > 2) How many concurrent users? Too Many? In the majority of cases, no. There ARE specific places where too many users cause mysterious issues with an MDB. Memos are written in "pages", as are indexes. If you open a record and start to edit it, it "locks" an entire "page" of the index structure or the memo area, which locks not just your record but potentially many others. This simply doesn't happen in SQL Server because SQL Server doesn't have this "page" system for storing memo fields etc. > 3) How many indexes on the tables? Not the point, the point is that ALL indexes are stored in Index pages, and entire pages of indexs can be locked by a single edit. Creating / using Indexes should be determined by need, not arcane locking issues within Jet. > 4) Are you starting up by setting a recordset to open and leaving it that way? If you are talking about creating and holding locks on the BE, yes I am, but that isn't the issue either. John W. Colby www.ColbyConsulting.com Dan Waters wrote: > John - I've been reading this with interest: > > 1) If your situation gives you the choice between Access and SQL > Server, then you can use SQL Server Express. For your customer's > benefit - it's free! > > 2) How many concurrent users? Too Many? > > 3) How many indexes on the tables? I actually only use the primary > key as an index on every table. More indexes slows down writing performance. > > 4) Are you starting up by setting a recordset to open and leaving it > that way? This greatly reduces 'churn' in the locking database. When > I set this up all my users reported a significant performance improvement. Code below: > > '------------------------------------------------------------------------ > Dim stgConnect As String > Dim dbs As DAO.Database > Dim tdf As DAO.TableDef > > stgConnect = BEFullPath > Set dbs = DBEngine(0)(0) > Set tdf = dbs.TableDefs("tblConnect") > If tdf.Connect <> ";Database=" & stgConnect Then > tdf.Connect = ";Database=" & stgConnect > tdf.RefreshLink > End If > dbs.Close > > Set GrstConnect = DBEngine(0)(0).OpenRecordset("tblConnect", > dbOpenSnapshot) > '--------------------------------------------------------------------- > --- > > Notes: BEFullPath is a function to return the full path to the BE. > tblConnect is a one row one field table in the BE. > The table link is refreshed because the table link is in a library. > GrstConnect is a globally defined DAO recordset. > GrstConnect remains open until just before the database is closed. > > Good Luck! > Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Mon Jun 9 19:56:40 2008 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 09 Jun 2008 17:56:40 -0700 Subject: [AccessD] VBA Unbound data entry / update form In-Reply-To: References: <483CD33D.5090805@colbyconsulting.com> Message-ID: The whole concept of bound data is going away. For years bound data was not possible due to performance and resource issues related to databases. Then came the concept of tight data binding and along with it came the concept of bound data applications. That whole concept is going 'by-the-board' now. Even the largest systems are now just storing requests in temporary 'message queues' and handling as resources allow. Thinks of what XML and SOAP are. There are no ways to tightly-bind data through web based applications. (Just finished a conference of the current data management systems so am still really high on the 'state-of-the-art' lectures.) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Wednesday, May 28, 2008 10:41 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VBA Unbound data entry / update form Again, you are thinking in a bound world JC... A 'truly unbound' process wouldn't be EDITING data where there was a chance that someone else was changing in the background. All of that work is already in the bound process, what would be the point of doing that? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, May 27, 2008 10:36 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VBA Unbound data entry / update form Rocky, While that is technically unbound, you still have a recordset object open. IF you are setting a lock then you are right back to the issues I am trying to get around. I would call that "quasi-unbound". Truly unbound opens a recordset, transfers the values to controls, closes the recordset, modifies the data, opens the recordset, performs all of the checks and balances needed to prevent data corruption, writes changes / new records back to the data set, closes the dataset. John W. Colby www.ColbyConsulting.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Mon Jun 9 20:31:49 2008 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 09 Jun 2008 18:31:49 -0700 Subject: [AccessD] Date Conversion Problem In-Reply-To: <00a901c8c5d7$67a646d0$0301a8c0@HAL9005> References: <00a901c8c5d7$67a646d0$0301a8c0@HAL9005> Message-ID: <74863C6462B948D29833D1817E57E46C@creativesystemdesigns.com> Can you not, when setting up the key, create and check the date by assembling the date string one element at a time; example day, Month, Year? In this way regardless of the imbedded date string order at least you could standardize. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Tuesday, June 03, 2008 5:11 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Date Conversion Problem Dear List: I have a license expiration date encrypted in a key. I decode the expiration date when the user starts the app and store it in a string which I then set to a date type variable for display. Works fine here. The expiration date is 7/1/2008. So I assemble the date in a string = "07/01/08". Then I set that equal to a variable of Date type -gdatExpirationDate = gstrExpirationDate - and gdatExpirationDate has 7-1-2008 in it. When I set regional and Language to Chinese (PRC) of Chinese (Taiwan) however, gdatExpirationDate has 2007-1-8. I can't figure out how to make the date display correctly from the string I assemble from the key regardless of the Regional and Language Settings. Is there a way to do this so I don't have to know what the setting is? MTIA Rocky -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From accessd at shaw.ca Mon Jun 9 22:37:37 2008 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 09 Jun 2008 20:37:37 -0700 Subject: [AccessD] Feedback Time In-Reply-To: <060420081712.12013.4846CD16000745E400002EED2215561264040A079B9C020A9C019D05@comcast.net> References: <060420081712.12013.4846CD16000745E400002EED2215561264040A079B9C020A9C019D05@comcast.net> Message-ID: <92D7D77B6A4A461D8ED440F7A688ED17@creativesystemdesigns.com> Hi Karen: I have sent a full critic to Rocky but can re-direct it to you if you want as long as you promise not to go ballistic or take personal offense. ;-) It was all meant on a professional level. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of krosenstiel at comcast.net Sent: Wednesday, June 04, 2008 10:13 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Feedback Time Arrrrrgh! The home page is breaking on IE version 6. The side lines aren't showing. I'll work on it tonight. OK, now the rest of you can take potshots! -- Karen Rosenstiel Seattle WA USA -------------- Original message ---------------------- From: "Rocky Smolin at Beach Access Software" > Dear List: > > Lister Karen Rosenstiel has redone my Beach Access Software web site and we > would both be grateful for anyone who wants to take a few minutes to look at > it and give us some feedback on what you like, what you don't like. > > It's in a temporary folder http://www.bchacc.com/beachtemp/index.html right > now. Hoping to go live shortly. > > The old web site - my homegrown attempt at a web presence - is at > http://www.bchacc.com so you can see what it looks like now (not too > pretty). > > You can reply offline to Karen (krosenstiel at comcast.net) and myself > (rockysmolin at bchacc.com) or to the list which I think would be of value to > others on the list since many of us need our own web sites and could profit > from the combined advice of the list. > > So, many thanks in advance. > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > www.e-z-mrp.com > > www.bchacc.com > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Mon Jun 9 22:53:36 2008 From: accessd at shaw.ca (Jim Lawrence) Date: Mon, 09 Jun 2008 20:53:36 -0700 Subject: [AccessD] Access 2007 SageKey Scripts On Vista Problems In-Reply-To: References: <569E08FC48047F4F848850B118195FBE01A11C@server.BondSoftware.local> <484A8B1F.2090000@colbyconsulting.com> <000001c8c8a8$83812900$8a837b00$@com> <003101c8c8d2$6c1211b0$0200a8c0@murphy3234aaf1> <000001c8c90a$19603310$4c209930$@com> Message-ID: <812D143C1D6444E9A2E330DCD1EB8854@creativesystemdesigns.com> The one problem I have found with installing Visa on various new Dells is that it does not automatically recognize the on-board video cards and defaults to 8 bit VGA graphics. To make it more annoying Vista complains when new Dell video is being installed as "This is an unsafe driver... do you wish to continue?" After seeing this on the screen through about half a dozen video, printer, LAN, sound drivers etc...the novelty starts wearing a little thin. As a tech I tend to ignore that crap but novice users are totally freaked and that is where I get called in on many occasions. (I guess I should not complaim as it is good a lttle bit of business but what a scam!) Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Monday, June 09, 2008 7:44 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2007 SageKey Scripts On Vista Problems I think you'll find it's paranoia in Vista rather than anything to do with the script. Vista is pretty buttoned down, from what we can tell. You have to work with what it will accept, not try to muscle it to do what you want. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Sent: Saturday, June 07, 2008 6:51 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access 2007 SageKey Scripts On Vista Problems Doug, So when you install your app. on Vista, the dir is ProgramData\"Company"\"Product"\ and the SageKey scripts creates these with Full Control permissions and the "Read Only" option un-ticked? Are you creating any additional directories (folders) using the scripts? If so under what part of the script are you tell the script to create them? It's weird because the scripts are creating dir. structure as it should, it's just not changing the permissions. I'm just not sure if I'm causing the script not to do it or if it's a deficiency in the A07 Script. WBR ~Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Saturday, June 07, 2008 3:12 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Access 2007 SageKey Scripts On Vista Problems Hello Robert, I do not have the 2007 scripts but do have the new scripts that do the same thing when we install our 2002 app on Vista machines. The setup seems to be working OK on several vista machines. These installations are done by folks who know nothing more about installing a program than putting the CD in the drive and following instructions. It took longer than I thought to move my original Sagekey install over to the new Vista compatible scripts because, as I recollect, it installs the app on Vista in a different location than on previous versions of Windows. In our previous scripts I set the directory location explicitly. The location required for Vista gives all users rights to run the program, so you have to follow the example script closely when building yours. I have found that the tech support at Sagekey is great if you can articulate your issue via email to their tech support site. It may take a day to get a response, but we have worked through all my issues. Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Sent: Saturday, June 07, 2008 7:12 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Access 2007 SageKey Scripts On Vista Problems Hello All, Is there anyone here that is using the A07 SageKey scripts on Vista successfully? I have used their A2000 and A2002 scripts with acceptable results, but I'm having major problems with A2007 scripts. OS Vista (Updated) A07 Runtime (latest Version) SageKey's web site say's: "Installations built using our tools will automatically be able to run macros without displaying any security warnings. You will also be able to add additional folders as trusted locations with our tools" In the scripts they also say: "At the end of the install, the Sagekey scripts will open up permissions on MAINDIR to give all Users Full Control. This is done to ensure that regardless of where the end user chooses to install the application, it will run properly." But it appears that this is not happening. This is what is happening: 1) Installation processes correctly (As Administrator) 2) User logs in to my Application (.mde) and is confronted by a security warning. 3) If the user selects continue, the user is then confronted by my re-linking code. The problem is, it *appears* that the folder(s) created by the SageKey scripts are {Read Only}, and the permissions for the folder are not set to full control. 4) This causes the re-linking code to fail, and my shuts down. If I modify my root directory (located under the ProgramData dir) G.B.S. (un-tick Read Only) and set permissions to full control all (with the exception of the security msg) loads fine. Steve, from SageKey, has address some small minor issues, but interestingly enough not these, which are in my view major problems. Any Idea's ??? WBR ~Robert -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From krosenstiel at comcast.net Mon Jun 9 22:56:51 2008 From: krosenstiel at comcast.net (Karen) Date: Mon, 9 Jun 2008 20:56:51 -0700 Subject: [AccessD] Feedback Time In-Reply-To: <92D7D77B6A4A461D8ED440F7A688ED17@creativesystemdesigns.com> Message-ID: <200806100356.m5A3uSDF004058@databaseadvisors.com> Hi Jim, No ballistics here. Go ahead and send it to mailto:krosenstiel at comcast.net. Thanks -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Monday, June 09, 2008 8:38 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feedback Time Hi Karen: I have sent a full critic to Rocky but can re-direct it to you if you want as long as you promise not to go ballistic or take personal offense. ;-) It was all meant on a professional level. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of krosenstiel at comcast.net Sent: Wednesday, June 04, 2008 10:13 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Feedback Time Arrrrrgh! The home page is breaking on IE version 6. The side lines aren't showing. I'll work on it tonight. OK, now the rest of you can take potshots! -- Karen Rosenstiel Seattle WA USA -------------- Original message ---------------------- From: "Rocky Smolin at Beach Access Software" > Dear List: > > Lister Karen Rosenstiel has redone my Beach Access Software web site > and we > would both be grateful for anyone who wants to take a few minutes to > look at > it and give us some feedback on what you like, what you don't like. > > It's in a temporary folder http://www.bchacc.com/beachtemp/index.html right > now. Hoping to go live shortly. > > The old web site - my homegrown attempt at a web presence - is at > http://www.bchacc.com so you can see what it looks like now (not too > pretty). > > You can reply offline to Karen (krosenstiel at comcast.net) and myself > (rockysmolin at bchacc.com) or to the list which I think would be of > value to others on the list since many of us need our own web sites > and could profit > from the combined advice of the list. > > So, many thanks in advance. > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > www.e-z-mrp.com > > www.bchacc.com > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 7.5.524 / Virus Database: 270.1.0/1492 - Release Date: 6/9/2008 10:29 AM No virus found in this outgoing message. Checked by AVG. Version: 7.5.524 / Virus Database: 270.1.0/1492 - Release Date: 6/9/2008 10:29 AM From greg at worthey.com Mon Jun 9 23:12:21 2008 From: greg at worthey.com (Greg Worthey) Date: Mon, 9 Jun 2008 21:12:21 -0700 Subject: [AccessD] AccessD Digest, Vol 64, Issue 14 In-Reply-To: References: Message-ID: Rocky, Use the change event: Sub Text1_Change() Text2=len(Text1) End sub Greg Worthey Worthey Solutions Message: 5 Date: Mon, 9 Jun 2008 09:53:27 -0700 From: "Rocky Smolin at Beach Access Software" Subject: [AccessD] Trick Needed To: "'Access Developers discussion and problem solving'" Message-ID: <005d01c8ca51$572c6c70$0301a8c0 at HAL9005> Content-Type: text/plain; charset="us-ascii" Dear List: There are two text boxes on a form. As the user keys info into text box 1, that is, after every key stroke, I would like the length of the data in text box 1 to appear in text box 2. But I can't find an event that 'knows' what the current length is in text box 1 until it loses and regains focus. Is there a slick way to get this number? MTIA Rocky ------------------------------ _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd End of AccessD Digest, Vol 64, Issue 14 *************************************** From rockysmolin at bchacc.com Tue Jun 10 00:03:04 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Mon, 9 Jun 2008 22:03:04 -0700 Subject: [AccessD] AccessD Digest, Vol 64, Issue 14 In-Reply-To: References: Message-ID: <00e701c8cab7$43c94930$0301a8c0@HAL9005> Greg: Turned out it was the .Text property on the text box that was needed. Test2=len(Test1.Text) Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Greg Worthey Sent: Monday, June 09, 2008 9:12 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] AccessD Digest, Vol 64, Issue 14 Rocky, Use the change event: Sub Text1_Change() Text2=len(Text1) End sub Greg Worthey Worthey Solutions Message: 5 Date: Mon, 9 Jun 2008 09:53:27 -0700 From: "Rocky Smolin at Beach Access Software" Subject: [AccessD] Trick Needed To: "'Access Developers discussion and problem solving'" Message-ID: <005d01c8ca51$572c6c70$0301a8c0 at HAL9005> Content-Type: text/plain; charset="us-ascii" Dear List: There are two text boxes on a form. As the user keys info into text box 1, that is, after every key stroke, I would like the length of the data in text box 1 to appear in text box 2. But I can't find an event that 'knows' what the current length is in text box 1 until it loses and regains focus. Is there a slick way to get this number? MTIA Rocky ------------------------------ _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd End of AccessD Digest, Vol 64, Issue 14 *************************************** -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 270.1.0/1492 - Release Date: 9/6/2008 10:29 From Gustav at cactus.dk Tue Jun 10 01:00:36 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 10 Jun 2008 08:00:36 +0200 Subject: [AccessD] Trick Needed Message-ID: Hi Susan It only works when TextBox1 has focus as this is the only situation where Property Text is available. If not, you will receive an error in TextBox2. /gustav >>> ssharkins at gmail.com 10-06-2008 01:13 >>> ooooooooooo... Rocky, did it work? That is indeed clever. Susan H. > 2 text boxes. TEXT1 and TEXT2 > > Private Sub Text1_KeyUp(KeyCode As Integer, Shift As Integer) > Me!Text2.Requery > End Sub > > in "CONTROL SOURCE" of TEXT2 =Len([Text1].[Text]) > > This shouold get what you need. From ssharkins at gmail.com Tue Jun 10 07:38:55 2008 From: ssharkins at gmail.com (Susan Harkins) Date: Tue, 10 Jun 2008 08:38:55 -0400 Subject: [AccessD] upgrading Message-ID: <00da01c8caf6$f3ca0dd0$2f8601c7@SusanOne> Has anyone upgraded an Access database to SQL Server 2005 or SQL Server 2005 Express? I'd like to hear about the experience and the gotchas if significantly different from earlier SS versions. Susan H. From JHewson at nciinc.com Tue Jun 10 07:59:11 2008 From: JHewson at nciinc.com (Hewson, Jim ) Date: Tue, 10 Jun 2008 07:59:11 -0500 Subject: [AccessD] A better picture? Runtime In-Reply-To: References: <49DFE57FB126044B8A8B934E7AEA09ED09FD745A@WPEXCH05.colesmyer.ad.cmltd.net.au><0K1M00FK7ZYD0N80@vms173001.mailsrvcs.net> Message-ID: <7E02B06E41E5404589EDDDA2BAA1C5A8157A94@sanex101.nciinc.com> Mark, I'm curious. Did you find the runtime? Jim jhewson at nciinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Thursday, May 29, 2008 2:33 PM To: Access Developers discussion and problem solving Subject: [AccessD] A better picture? Runtime Hello All, A client is creating databases in 2003 and would like to utilize the runtime for other machines in the office. I keep running into walls(online) in finding the runtime. I have found websites that say the runtime comes with Office2003 Pro...which he has...but you need the Developer extensions to deploy it. When I search for the extensions...it points to Visual studio 2005? Paying is not the issue...If I need the 2003 Runtime...anyone know where I can buy it...and what it is currently called? Thanks, Mark A. Matte _________________________________________________________________ E-mail for the greater good. Join the i?m Initiative from Microsoft. http://im.live.com/Messenger/IM/Join/Default.aspx?source=EML_WL_ GreaterGood -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ################################################################################ This email transmission contains information from NCI Information Systems, Inc. that may be considered privileged or confidential and is intended solely for the named recipient. If you have received this message in error, please contact the sender immediately and be aware that the use, copying or dissemination of this information is prohibited. ################################################################################ From dwaters at usinternet.com Tue Jun 10 08:03:42 2008 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 10 Jun 2008 08:03:42 -0500 Subject: [AccessD] upgrading In-Reply-To: <00da01c8caf6$f3ca0dd0$2f8601c7@SusanOne> References: <00da01c8caf6$f3ca0dd0$2f8601c7@SusanOne> Message-ID: <7780BBC0A3E14F748F7ECF756DA1B9E3@danwaters> Hi Susan, I am going to start next week! I am planning to use SQL Server Migration Assistant (SSMA) for Access, which I believe will help significantly. SSMA will convert many select queries in Access to views in SQL. There is a comprehensive technical paper which discusses how to use SSMA for Access. http://download.microsoft.com/download/e/c/8/ec8d5025-7ef7-4dcc-a9f3-9c297cf 5350e/SSMAAccess.docx Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Tuesday, June 10, 2008 7:39 AM To: AccessD at databaseadvisors.com Subject: [AccessD] upgrading Has anyone upgraded an Access database to SQL Server 2005 or SQL Server 2005 Express? I'd like to hear about the experience and the gotchas if significantly different from earlier SS versions. Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at gmail.com Tue Jun 10 08:10:13 2008 From: ssharkins at gmail.com (Susan Harkins) Date: Tue, 10 Jun 2008 09:10:13 -0400 Subject: [AccessD] upgrading References: <00da01c8caf6$f3ca0dd0$2f8601c7@SusanOne> <7780BBC0A3E14F748F7ECF756DA1B9E3@danwaters> Message-ID: <013401c8cafb$5333b9c0$2f8601c7@SusanOne> Thanks Dan -- I hope the process goes quickly and easily for you. I'd like to hear about any problems. Susan H. > Hi Susan, > > I am going to start next week! I am planning to use SQL Server Migration > Assistant (SSMA) for Access, which I believe will help significantly. > SSMA > will convert many select queries in Access to views in SQL. > > There is a comprehensive technical paper which discusses how to use SSMA > for > Access. > http://download.microsoft.com/download/e/c/8/ec8d5025-7ef7-4dcc-a9f3-9c297cf > 5350e/SSMAAccess.docx > > Dan > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins > Sent: Tuesday, June 10, 2008 7:39 AM > To: AccessD at databaseadvisors.com > Subject: [AccessD] upgrading > > Has anyone upgraded an Access database to SQL Server 2005 or SQL Server > 2005 > > Express? I'd like to hear about the experience and the gotchas if > significantly different from earlier SS versions. > > 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 Tue Jun 10 08:13:30 2008 From: andy at minstersystems.co.uk (Andy Lacey) Date: Tue, 10 Jun 2008 14:13:30 +0100 Subject: [AccessD] SendObject Message-ID: <200806101408.m5AE8ZKq016436@databaseadvisors.com> Hi folks. Hope you're all doing ok. The sun's shining here at long last so our long (as much as 3 or 4 days probably) summer has started. Anyway who's going to tell me how sendObject works. I thought it would use the default Windows email client but now I don't know. I've just installed Lotus Notes on a pc with WXP and Outlook, and said No to the prompts as to whether I wanted Notes to be the default client. When I Google default mail client the answer's say it's whatever is defined as the mail program in Internet Explorer's Programs tab in Internet options, and that says Outlook. But Sendobject uses Notes. What's causing this? -- Bemused of Peterborough, aka Andy Lacey http://www.minstersystems.co.uk ________________________________________________ Message sent using UebiMiau 2.7.2 From markamatte at hotmail.com Tue Jun 10 09:34:44 2008 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 10 Jun 2008 14:34:44 +0000 Subject: [AccessD] Trick Needed In-Reply-To: References: Message-ID: Gustav, How would you type in TextBox1, have the KEY_UP event fire, and it NOT have focus? Thanks, Mark A. Matte > Date: Tue, 10 Jun 2008 08:00:36 +0200 > From: Gustav at cactus.dk > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Trick Needed > > Hi Susan > > It only works when TextBox1 has focus as this is the only situation where Property Text is available. If not, you will receive an error in TextBox2. > > /gustav > >>>> ssharkins at gmail.com 10-06-2008 01:13>>> > ooooooooooo... Rocky, did it work? That is indeed clever. > > Susan H. > > >> 2 text boxes. TEXT1 and TEXT2 >> >> Private Sub Text1_KeyUp(KeyCode As Integer, Shift As Integer) >> Me!Text2.Requery >> End Sub >> >> in "CONTROL SOURCE" of TEXT2 =Len([Text1].[Text]) >> >> This shouold get what you need. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ Enjoy 5 GB of free, password-protected online storage. http://www.windowslive.com/skydrive/overview.html?ocid=TXT_TAGLM_WL_Refresh_skydrive_062008 From markamatte at hotmail.com Tue Jun 10 09:45:40 2008 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 10 Jun 2008 14:45:40 +0000 Subject: [AccessD] A better picture? Runtime In-Reply-To: <7E02B06E41E5404589EDDDA2BAA1C5A8157A94@sanex101.nciinc.com> References: <49DFE57FB126044B8A8B934E7AEA09ED09FD745A@WPEXCH05.colesmyer.ad.cmltd.net.au><0K1M00FK7ZYD0N80@vms173001.mailsrvcs.net> <7E02B06E41E5404589EDDDA2BAA1C5A8157A94@sanex101.nciinc.com> Message-ID: Jim, My final understanding (my guess) is that you need Office 2003 Pro... then seperately you need the developer extensions, which are no longer available...but are included with Visual Studio 2005 ( NOT 2nd edition)...also no longer available. I finally found someone who had packaged just the runtime...so I downloaded theirs...and it seemd to work. Thanks, Mark A. Matte > Date: Tue, 10 Jun 2008 07:59:11 -0500 > From: JHewson at nciinc.com > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] A better picture? Runtime > > Mark, > I'm curious. Did you find the runtime? > > Jim > jhewson at nciinc.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > Sent: Thursday, May 29, 2008 2:33 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] A better picture? Runtime > > > Hello All, > > A client is creating databases in 2003 and would like to utilize the runtime for other machines in the office. I keep running into walls(online) in finding the runtime. I have found websites that say the runtime comes with Office2003 Pro...which he has...but you need the Developer extensions to deploy it. When I search for the extensions...it points to Visual studio 2005? > > Paying is not the issue...If I need the 2003 Runtime...anyone know where I can buy it...and what it is currently called? > > Thanks, > > Mark A. Matte > > > > _________________________________________________________________ > E-mail for the greater good. Join the i?m Initiative from Microsoft. > http://im.live.com/Messenger/IM/Join/Default.aspx?source=EML_WL_ GreaterGood > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ################################################################################ > > This email transmission contains information from NCI Information Systems, Inc. > that may be considered privileged or confidential and is intended solely for the > named recipient. If you have received this message in error, please contact the > sender immediately and be aware that the use, copying or dissemination of this > information is prohibited. > > ################################################################################ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ Instantly invite friends from Facebook and other social networks to join you on Windows Live? Messenger. https://www.invite2messenger.net/im/?source=TXT_EML_WLH_InviteFriends From rockysmolin at bchacc.com Tue Jun 10 09:48:13 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Tue, 10 Jun 2008 07:48:13 -0700 Subject: [AccessD] VBA Unbound data entry / update form In-Reply-To: <02034CB1BB2E4ECE9DE313D2E38175AE@creativesystemdesigns.com> References: <483C8FF5.1040407@colbyconsulting.com><0K1J00I84V5QZ1U0@vms044.mailsrvcs.net> <02034CB1BB2E4ECE9DE313D2E38175AE@creativesystemdesigns.com> Message-ID: <015b01c8cb09$028a2050$0301a8c0@HAL9005> I know how to make an unbound form but I haven't got enough nerve to present such heresy - it runs counter to strongly held religious beliefs. OK - briefly - but you didn't hear it from me. 1. Design your form as you would a bound form but no Control Source in the text boxes. 2. Create a recordset in the Open event of the form (DAO or ADO - I prefer DAO) using pretty much the same SQL or query as you would for your Record Source in a bound form. 3. Add a module to put the fields from the current record of the recordset into the text boxes which you can call whenever you want to display the data on your form. 4. Add a module to put the values in the text boxes into the fields of the current record (in DAO use .Edit or .Add and .Update) which you can call whenever you want to write the textbox values back to the table. 5. I always put my own navigation buttons on the unbound for - First, Last, Next, Previous with Click events that move the recordset point appropriately. HTH Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Monday, June 09, 2008 5:38 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] VBA Unbound data entry / update form Hi Jennifer: I have no idea how to create bound Access forms. ;-) The last bound database that I have worked with was back in '97. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Tuesday, May 27, 2008 5:12 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] VBA Unbound data entry / update form I have no idea how to create an unbound form in Access. I always use bound forms. Though I would be interested to know how it's done. Unless I've got it wrong, that seems to be the basic question here - For those of you who do it, how do you create an unbound form? How do you populate the textboxes initially and then how do you save the information back to the tables? It's beginning to sound like nobody really does it. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, May 27, 2008 2:49 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VBA Unbound data entry / update form > 1) If your situation gives you the choice between Access and SQL Server, then you can use SQL Server Express. For your customer's benefit - it's free! I know that, and you know that, but they have used an MDB BE for most of a decade. SQL Server is the great unknown. > 2) How many concurrent users? Too Many? In the majority of cases, no. There ARE specific places where too many users cause mysterious issues with an MDB. Memos are written in "pages", as are indexes. If you open a record and start to edit it, it "locks" an entire "page" of the index structure or the memo area, which locks not just your record but potentially many others. This simply doesn't happen in SQL Server because SQL Server doesn't have this "page" system for storing memo fields etc. > 3) How many indexes on the tables? Not the point, the point is that ALL indexes are stored in Index pages, and entire pages of indexs can be locked by a single edit. Creating / using Indexes should be determined by need, not arcane locking issues within Jet. > 4) Are you starting up by setting a recordset to open and leaving it that way? If you are talking about creating and holding locks on the BE, yes I am, but that isn't the issue either. John W. Colby www.ColbyConsulting.com Dan Waters wrote: > John - I've been reading this with interest: > > 1) If your situation gives you the choice between Access and SQL > Server, then you can use SQL Server Express. For your customer's > benefit - it's free! > > 2) How many concurrent users? Too Many? > > 3) How many indexes on the tables? I actually only use the primary > key as an index on every table. More indexes slows down writing performance. > > 4) Are you starting up by setting a recordset to open and leaving it > that way? This greatly reduces 'churn' in the locking database. When > I set this up all my users reported a significant performance improvement. Code below: > > '------------------------------------------------------------------------ > Dim stgConnect As String > Dim dbs As DAO.Database > Dim tdf As DAO.TableDef > > stgConnect = BEFullPath > Set dbs = DBEngine(0)(0) > Set tdf = dbs.TableDefs("tblConnect") > If tdf.Connect <> ";Database=" & stgConnect Then > tdf.Connect = ";Database=" & stgConnect > tdf.RefreshLink > End If > dbs.Close > > Set GrstConnect = DBEngine(0)(0).OpenRecordset("tblConnect", > dbOpenSnapshot) > '--------------------------------------------------------------------- > --- > > Notes: BEFullPath is a function to return the full path to the BE. > tblConnect is a one row one field table in the BE. > The table link is refreshed because the table link is in a library. > GrstConnect is a globally defined DAO recordset. > GrstConnect remains open until just before the database is closed. > > Good Luck! > Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 270.1.0/1492 - Release Date: 9/6/2008 10:29 From Gustav at cactus.dk Tue Jun 10 09:56:51 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 10 Jun 2008 16:56:51 +0200 Subject: [AccessD] Trick Needed Message-ID: Hi Mark I wouldn't, but I guess the form would have more than this single TextBox which could get focus. As soon as you leave TextBox1, TextBox2 displays #Error ... Also, if you stay in TextBox1, the event will not fire if you paste in some text with the mouse. That's why I suggest using the OnChange event and push the result to TextBox2. /gustav >>> markamatte at hotmail.com 10-06-2008 16:34 >>> Gustav, How would you type in TextBox1, have the KEY_UP event fire, and it NOT have focus? Thanks, Mark A. Matte > Date: Tue, 10 Jun 2008 08:00:36 +0200 > From: Gustav at cactus.dk > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Trick Needed > > Hi Susan > > It only works when TextBox1 has focus as this is the only situation where Property Text is available. If not, you will receive an error in TextBox2. > > /gustav > >>>> ssharkins at gmail.com 10-06-2008 01:13>>> > ooooooooooo... Rocky, did it work? That is indeed clever. > > Susan H. > > >> 2 text boxes. TEXT1 and TEXT2 >> >> Private Sub Text1_KeyUp(KeyCode As Integer, Shift As Integer) >> Me!Text2.Requery >> End Sub >> >> in "CONTROL SOURCE" of TEXT2 =Len([Text1].[Text]) >> >> This shouold get what you need. From JHewson at nciinc.com Tue Jun 10 09:55:21 2008 From: JHewson at nciinc.com (Hewson, Jim ) Date: Tue, 10 Jun 2008 09:55:21 -0500 Subject: [AccessD] A better picture? Runtime In-Reply-To: References: <49DFE57FB126044B8A8B934E7AEA09ED09FD745A@WPEXCH05.colesmyer.ad.cmltd.net.au><0K1M00FK7ZYD0N80@vms173001.mailsrvcs.net> <7E02B06E41E5404589EDDDA2BAA1C5A8157A94@sanex101.nciinc.com> Message-ID: <7E02B06E41E5404589EDDDA2BAA1C5A8157A97@sanex101.nciinc.com> I have VS 2005, MSDN, but I couldn't find the runtime for 2003. Even downloading the Office Extensions wouldn't work. What I ended up doing was downloading the AccessRuntime install for 2007. I then used VM for a test bed. I installed the runtime, dropped an Access database created in 2003 (2000 file format) on the desktop and it worked. I still need to do a little more testing before I'm comfortable with deploying a database. Thanks, Jim jhewson at nciinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Tuesday, June 10, 2008 9:46 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A better picture? Runtime Jim, My final understanding (my guess) is that you need Office 2003 Pro... then seperately you need the developer extensions, which are no longer available...but are included with Visual Studio 2005 ( NOT 2nd edition)...also no longer available. I finally found someone who had packaged just the runtime...so I downloaded theirs...and it seemd to work. Thanks, Mark A. Matte > Date: Tue, 10 Jun 2008 07:59:11 -0500 > From: JHewson at nciinc.com > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] A better picture? Runtime > > Mark, > I'm curious. Did you find the runtime? > > Jim > jhewson at nciinc.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > Sent: Thursday, May 29, 2008 2:33 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] A better picture? Runtime > > > Hello All, > > A client is creating databases in 2003 and would like to utilize the runtime for other machines in the office. I keep running into walls(online) in finding the runtime. I have found websites that say the runtime comes with Office2003 Pro...which he has...but you need the Developer extensions to deploy it. When I search for the extensions...it points to Visual studio 2005? > > Paying is not the issue...If I need the 2003 Runtime...anyone know where I can buy it...and what it is currently called? > > Thanks, > > Mark A. Matte > > > > _________________________________________________________________ > E-mail for the greater good. Join the i?m Initiative from Microsoft. > http://im.live.com/Messenger/IM/Join/Default.aspx?source=EML_WL_ GreaterGood > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ################################################################################ > > This email transmission contains information from NCI Information Systems, Inc. > that may be considered privileged or confidential and is intended solely for the > named recipient. If you have received this message in error, please contact the > sender immediately and be aware that the use, copying or dissemination of this > information is prohibited. > > ################################################################################ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ Instantly invite friends from Facebook and other social networks to join you on Windows Live? Messenger. https://www.invite2messenger.net/im/?source=TXT_EML_WLH_InviteFriends -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ################################################################################ This email transmission contains information from NCI Information Systems, Inc. that may be considered privileged or confidential and is intended solely for the named recipient. If you have received this message in error, please contact the sender immediately and be aware that the use, copying or dissemination of this information is prohibited. ################################################################################ From cfoust at infostatsystems.com Tue Jun 10 10:09:49 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 10 Jun 2008 08:09:49 -0700 Subject: [AccessD] A better picture? Runtime In-Reply-To: References: <49DFE57FB126044B8A8B934E7AEA09ED09FD745A@WPEXCH05.colesmyer.ad.cmltd.net.au><0K1M00FK7ZYD0N80@vms173001.mailsrvcs.net> <7E02B06E41E5404589EDDDA2BAA1C5A8157A94@sanex101.nciinc.com> Message-ID: What you need is VSTO 2003 or later. That includes the runtime licenses. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Tuesday, June 10, 2008 7:46 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A better picture? Runtime Jim, My final understanding (my guess) is that you need Office 2003 Pro... then seperately you need the developer extensions, which are no longer available...but are included with Visual Studio 2005 ( NOT 2nd edition)...also no longer available. I finally found someone who had packaged just the runtime...so I downloaded theirs...and it seemd to work. Thanks, Mark A. Matte > Date: Tue, 10 Jun 2008 07:59:11 -0500 > From: JHewson at nciinc.com > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] A better picture? Runtime > > Mark, > I'm curious. Did you find the runtime? > > Jim > jhewson at nciinc.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A > Matte > Sent: Thursday, May 29, 2008 2:33 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] A better picture? Runtime > > > Hello All, > > A client is creating databases in 2003 and would like to utilize the runtime for other machines in the office. I keep running into walls(online) in finding the runtime. I have found websites that say the runtime comes with Office2003 Pro...which he has...but you need the Developer extensions to deploy it. When I search for the extensions...it points to Visual studio 2005? > > Paying is not the issue...If I need the 2003 Runtime...anyone know where I can buy it...and what it is currently called? > > Thanks, > > Mark A. Matte > > > > _________________________________________________________________ > E-mail for the greater good. Join the i'm Initiative from Microsoft. > http://im.live.com/Messenger/IM/Join/Default.aspx?source=EML_WL_ > GreaterGood > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ###################################################################### > ########## > > This email transmission contains information from NCI Information Systems, Inc. > that may be considered privileged or confidential and is intended > solely for the named recipient. If you have received this message in > error, please contact the sender immediately and be aware that the > use, copying or dissemination of this information is prohibited. > > ###################################################################### > ########## > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ Instantly invite friends from Facebook and other social networks to join you on Windows Live(tm) Messenger. https://www.invite2messenger.net/im/?source=TXT_EML_WLH_InviteFriends -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Tue Jun 10 10:12:14 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 10 Jun 2008 08:12:14 -0700 Subject: [AccessD] A better picture? Runtime In-Reply-To: <7E02B06E41E5404589EDDDA2BAA1C5A8157A97@sanex101.nciinc.com> References: <49DFE57FB126044B8A8B934E7AEA09ED09FD745A@WPEXCH05.colesmyer.ad.cmltd.net.au><0K1M00FK7ZYD0N80@vms173001.mailsrvcs.net><7E02B06E41E5404589EDDDA2BAA1C5A8157A94@sanex101.nciinc.com> <7E02B06E41E5404589EDDDA2BAA1C5A8157A97@sanex101.nciinc.com> Message-ID: The VSTO for 2003 wasn't free. It was a separate $300+ package that includes the runtime licenses and packaging wizard for Access 2003. The runtime from later versions should work for 2003 as well. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hewson, Jim Sent: Tuesday, June 10, 2008 7:55 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A better picture? Runtime I have VS 2005, MSDN, but I couldn't find the runtime for 2003. Even downloading the Office Extensions wouldn't work. What I ended up doing was downloading the AccessRuntime install for 2007. I then used VM for a test bed. I installed the runtime, dropped an Access database created in 2003 (2000 file format) on the desktop and it worked. I still need to do a little more testing before I'm comfortable with deploying a database. Thanks, Jim jhewson at nciinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Tuesday, June 10, 2008 9:46 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A better picture? Runtime Jim, My final understanding (my guess) is that you need Office 2003 Pro... then seperately you need the developer extensions, which are no longer available...but are included with Visual Studio 2005 ( NOT 2nd edition)...also no longer available. I finally found someone who had packaged just the runtime...so I downloaded theirs...and it seemd to work. Thanks, Mark A. Matte > Date: Tue, 10 Jun 2008 07:59:11 -0500 > From: JHewson at nciinc.com > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] A better picture? Runtime > > Mark, > I'm curious. Did you find the runtime? > > Jim > jhewson at nciinc.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > Sent: Thursday, May 29, 2008 2:33 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] A better picture? Runtime > > > Hello All, > > A client is creating databases in 2003 and would like to utilize the runtime for other machines in the office. I keep running into walls(online) in finding the runtime. I have found websites that say the runtime comes with Office2003 Pro...which he has...but you need the Developer extensions to deploy it. When I search for the extensions...it points to Visual studio 2005? > > Paying is not the issue...If I need the 2003 Runtime...anyone know where I can buy it...and what it is currently called? > > Thanks, > > Mark A. Matte > > > > _________________________________________________________________ > E-mail for the greater good. Join the i'm Initiative from Microsoft. > http://im.live.com/Messenger/IM/Join/Default.aspx?source=EML_WL_ GreaterGood > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ######################################################################## ######## > > This email transmission contains information from NCI Information Systems, Inc. > that may be considered privileged or confidential and is intended solely for the > named recipient. If you have received this message in error, please contact the > sender immediately and be aware that the use, copying or dissemination of this > information is prohibited. > > ######################################################################## ######## > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ Instantly invite friends from Facebook and other social networks to join you on Windows Live(tm) Messenger. https://www.invite2messenger.net/im/?source=TXT_EML_WLH_InviteFriends -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ######################################################################## ######## This email transmission contains information from NCI Information Systems, Inc. that may be considered privileged or confidential and is intended solely for the named recipient. If you have received this message in error, please contact the sender immediately and be aware that the use, copying or dissemination of this information is prohibited. ######################################################################## ######## -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Tue Jun 10 10:25:10 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 10 Jun 2008 08:25:10 -0700 Subject: [AccessD] Trick Needed In-Reply-To: References: Message-ID: What's wrong with: If Me.TextBox1.Text.Length > intMax Then .... In the OnChange event of TextBox1? Alternatively, use the OnChange event to pass the control as an argument to a function. The function can make use of the Text property of the passed textbox, check its Text.Length and pass back a result. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Tuesday, June 10, 2008 7:57 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Trick Needed Hi Mark I wouldn't, but I guess the form would have more than this single TextBox which could get focus. As soon as you leave TextBox1, TextBox2 displays #Error ... Also, if you stay in TextBox1, the event will not fire if you paste in some text with the mouse. That's why I suggest using the OnChange event and push the result to TextBox2. /gustav >>> markamatte at hotmail.com 10-06-2008 16:34 >>> Gustav, How would you type in TextBox1, have the KEY_UP event fire, and it NOT have focus? Thanks, Mark A. Matte > Date: Tue, 10 Jun 2008 08:00:36 +0200 > From: Gustav at cactus.dk > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Trick Needed > > Hi Susan > > It only works when TextBox1 has focus as this is the only situation where Property Text is available. If not, you will receive an error in TextBox2. > > /gustav > >>>> ssharkins at gmail.com 10-06-2008 01:13>>> > ooooooooooo... Rocky, did it work? That is indeed clever. > > Susan H. > > >> 2 text boxes. TEXT1 and TEXT2 >> >> Private Sub Text1_KeyUp(KeyCode As Integer, Shift As Integer) >> Me!Text2.Requery End Sub >> >> in "CONTROL SOURCE" of TEXT2 =Len([Text1].[Text]) >> >> This shouold get what you need. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Tue Jun 10 10:42:34 2008 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 10 Jun 2008 15:42:34 +0000 Subject: [AccessD] A better picture? Runtime In-Reply-To: <7E02B06E41E5404589EDDDA2BAA1C5A8157A97@sanex101.nciinc.com> References: <49DFE57FB126044B8A8B934E7AEA09ED09FD745A@WPEXCH05.colesmyer.ad.cmltd.net.au><0K1M00FK7ZYD0N80@vms173001.mailsrvcs.net> <7E02B06E41E5404589EDDDA2BAA1C5A8157A94@sanex101.nciinc.com> <7E02B06E41E5404589EDDDA2BAA1C5A8157A97@sanex101.nciinc.com> Message-ID: The runtime comes with Office 2003 Pro...the license/ability to distribute comes with VS 2005. I think they just want to make it confusing. Mark > Date: Tue, 10 Jun 2008 09:55:21 -0500 > From: JHewson at nciinc.com > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] A better picture? Runtime > > I have VS 2005, MSDN, but I couldn't find the runtime for 2003. > Even downloading the Office Extensions wouldn't work. > What I ended up doing was downloading the AccessRuntime install for 2007. > I then used VM for a test bed. I installed the runtime, dropped an Access database created in 2003 (2000 file format) on the desktop and it worked. I still need to do a little more testing before I'm comfortable with deploying a database. > > Thanks, > > Jim > jhewson at nciinc.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > Sent: Tuesday, June 10, 2008 9:46 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] A better picture? Runtime > > > Jim, > > My final understanding (my guess) is that you need Office 2003 Pro... then seperately you need the developer extensions, which are no longer available...but are included with Visual Studio 2005 ( NOT 2nd edition)...also no longer available. > > I finally found someone who had packaged just the runtime...so I downloaded theirs...and it seemd to work. > > Thanks, > > Mark A. Matte > > >> Date: Tue, 10 Jun 2008 07:59:11 -0500 >> From: JHewson at nciinc.com >> To: accessd at databaseadvisors.com >> Subject: Re: [AccessD] A better picture? Runtime >> >> Mark, >> I'm curious. Did you find the runtime? >> >> Jim >> jhewson at nciinc.com >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >> Sent: Thursday, May 29, 2008 2:33 PM >> To: Access Developers discussion and problem solving >> Subject: [AccessD] A better picture? Runtime >> >> >> Hello All, >> >> A client is creating databases in 2003 and would like to utilize the runtime for other machines in the office. I keep running into walls(online) in finding the runtime. I have found websites that say the runtime comes with Office2003 Pro...which he has...but you need the Developer extensions to deploy it. When I search for the extensions...it points to Visual studio 2005? >> >> Paying is not the issue...If I need the 2003 Runtime...anyone know where I can buy it...and what it is currently called? >> >> Thanks, >> >> Mark A. Matte >> >> >> >> _________________________________________________________________ >> E-mail for the greater good. Join the i?m Initiative from Microsoft. >> http://im.live.com/Messenger/IM/Join/Default.aspx?source=EML_WL_ GreaterGood >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> ################################################################################ >> >> This email transmission contains information from NCI Information Systems, Inc. >> that may be considered privileged or confidential and is intended solely for the >> named recipient. If you have received this message in error, please contact the >> sender immediately and be aware that the use, copying or dissemination of this >> information is prohibited. >> >> ################################################################################ >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > _________________________________________________________________ > Instantly invite friends from Facebook and other social networks to join you on Windows Live? Messenger. > https://www.invite2messenger.net/im/?source=TXT_EML_WLH_InviteFriends > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ################################################################################ > > This email transmission contains information from NCI Information Systems, Inc. > that may be considered privileged or confidential and is intended solely for the > named recipient. If you have received this message in error, please contact the > sender immediately and be aware that the use, copying or dissemination of this > information is prohibited. > > ################################################################################ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ Search that pays you back! Introducing Live Search cashback. http://search.live.com/cashback/?&pkw=form=MIJAAF/publ=HMTGL/crea=srchpaysyouback From Gustav at cactus.dk Tue Jun 10 10:49:43 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 10 Jun 2008 17:49:43 +0200 Subject: [AccessD] Trick Needed Message-ID: Hi Charlotte Nothing, except that no intMax was requested, making it very simple: http://databaseadvisors.com/pipermail/accessd/2008-June/061684.html /gustav >>> cfoust at infostatsystems.com 10-06-2008 17:25 >>> What's wrong with: If Me.TextBox1.Text.Length > intMax Then .... In the OnChange event of TextBox1? Alternatively, use the OnChange event to pass the control as an argument to a function. The function can make use of the Text property of the passed textbox, check its Text.Length and pass back a result. Charlotte Foust From JHewson at nciinc.com Tue Jun 10 10:51:22 2008 From: JHewson at nciinc.com (Hewson, Jim ) Date: Tue, 10 Jun 2008 10:51:22 -0500 Subject: [AccessD] A better picture? Runtime In-Reply-To: References: <49DFE57FB126044B8A8B934E7AEA09ED09FD745A@WPEXCH05.colesmyer.ad.cmltd.net.au><0K1M00FK7ZYD0N80@vms173001.mailsrvcs.net><7E02B06E41E5404589EDDDA2BAA1C5A8157A94@sanex101.nciinc.com> <7E02B06E41E5404589EDDDA2BAA1C5A8157A97@sanex101.nciinc.com> Message-ID: <7E02B06E41E5404589EDDDA2BAA1C5A8157A98@sanex101.nciinc.com> I have all that... I still couldn't figure out how to do it... Oh well, the 2007 runtime works. Jim jhewson at nciinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Tuesday, June 10, 2008 10:43 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A better picture? Runtime The runtime comes with Office 2003 Pro...the license/ability to distribute comes with VS 2005. I think they just want to make it confusing. Mark > Date: Tue, 10 Jun 2008 09:55:21 -0500 > From: JHewson at nciinc.com > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] A better picture? Runtime > > I have VS 2005, MSDN, but I couldn't find the runtime for 2003. > Even downloading the Office Extensions wouldn't work. > What I ended up doing was downloading the AccessRuntime install for 2007. > I then used VM for a test bed. I installed the runtime, dropped an Access database created in 2003 (2000 file format) on the desktop and it worked. I still need to do a little more testing before I'm comfortable with deploying a database. > > Thanks, > > Jim > jhewson at nciinc.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > Sent: Tuesday, June 10, 2008 9:46 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] A better picture? Runtime > > > Jim, > > My final understanding (my guess) is that you need Office 2003 Pro... then seperately you need the developer extensions, which are no longer available...but are included with Visual Studio 2005 ( NOT 2nd edition)...also no longer available. > > I finally found someone who had packaged just the runtime...so I downloaded theirs...and it seemd to work. > > Thanks, > > Mark A. Matte > > >> Date: Tue, 10 Jun 2008 07:59:11 -0500 >> From: JHewson at nciinc.com >> To: accessd at databaseadvisors.com >> Subject: Re: [AccessD] A better picture? Runtime >> >> Mark, >> I'm curious. Did you find the runtime? >> >> Jim >> jhewson at nciinc.com >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >> Sent: Thursday, May 29, 2008 2:33 PM >> To: Access Developers discussion and problem solving >> Subject: [AccessD] A better picture? Runtime >> >> >> Hello All, >> >> A client is creating databases in 2003 and would like to utilize the runtime for other machines in the office. I keep running into walls(online) in finding the runtime. I have found websites that say the runtime comes with Office2003 Pro...which he has...but you need the Developer extensions to deploy it. When I search for the extensions...it points to Visual studio 2005? >> >> Paying is not the issue...If I need the 2003 Runtime...anyone know where I can buy it...and what it is currently called? >> >> Thanks, >> >> Mark A. Matte >> >> >> >> _________________________________________________________________ >> E-mail for the greater good. Join the i?m Initiative from Microsoft. >> http://im.live.com/Messenger/IM/Join/Default.aspx?source=EML_WL_ GreaterGood >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> ################################################################################ >> >> This email transmission contains information from NCI Information Systems, Inc. >> that may be considered privileged or confidential and is intended solely for the >> named recipient. If you have received this message in error, please contact the >> sender immediately and be aware that the use, copying or dissemination of this >> information is prohibited. >> >> ################################################################################ >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > _________________________________________________________________ > Instantly invite friends from Facebook and other social networks to join you on Windows Live? Messenger. > https://www.invite2messenger.net/im/?source=TXT_EML_WLH_InviteFriends > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ################################################################################ > > This email transmission contains information from NCI Information Systems, Inc. > that may be considered privileged or confidential and is intended solely for the > named recipient. If you have received this message in error, please contact the > sender immediately and be aware that the use, copying or dissemination of this > information is prohibited. > > ################################################################################ > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ Search that pays you back! Introducing Live Search cashback. http://search.live.com/cashback/?&pkw=form=MIJAAF/publ=HMTGL/crea=srchpaysyouback -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ################################################################################ This email transmission contains information from NCI Information Systems, Inc. that may be considered privileged or confidential and is intended solely for the named recipient. If you have received this message in error, please contact the sender immediately and be aware that the use, copying or dissemination of this information is prohibited. ################################################################################ From markamatte at hotmail.com Tue Jun 10 11:03:00 2008 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 10 Jun 2008 16:03:00 +0000 Subject: [AccessD] Trick Needed In-Reply-To: References: Message-ID: Gustav, I see the errors of my ways. I was getting errors when I tried your approach...but it was because I had a set the control source of Text2...so when your example would fire...it would fail...but My Fault. To Clarify...the example Susan asked if it worked(bottom of email).....that was my example...and the answer would NO...it did NOT work....as Gustav pointed out...if you left TEXT1...TEXT2 would error. Gustav's example, however, did work... Private Sub Text1_Change() Me!Text2.Value = Len(Me!Text1.Text) End Sub Sorry for the confusion. Thanks, Mark A. Matte ---------------------------------------- > Date: Tue, 10 Jun 2008 16:56:51 +0200 > From: Gustav at cactus.dk > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Trick Needed > > Hi Mark > > I wouldn't, but I guess the form would have more than this single TextBox which could get focus. > As soon as you leave TextBox1, TextBox2 displays #Error ... > > Also, if you stay in TextBox1, the event will not fire if you paste in some text with the mouse. That's why I suggest using the OnChange event and push the result to TextBox2. > > /gustav > > >>> markamatte at hotmail.com 10-06-2008 16:34 >>> > > Gustav, > > How would you type in TextBox1, have the KEY_UP event fire, and it NOT have focus? > > Thanks, > > Mark A. Matte > > > > Date: Tue, 10 Jun 2008 08:00:36 +0200 > > From: Gustav at cactus.dk > > To: accessd at databaseadvisors.com > > Subject: Re: [AccessD] Trick Needed > > > > Hi Susan > > > > It only works when TextBox1 has focus as this is the only situation where Property Text is available. If not, you will receive an error in TextBox2. > > > > /gustav > > > >>>> ssharkins at gmail.com 10-06-2008 01:13>>> > > ooooooooooo... Rocky, did it work? That is indeed clever. > > > > Susan H. > > > > > >> 2 text boxes. TEXT1 and TEXT2 > >> > >> Private Sub Text1_KeyUp(KeyCode As Integer, Shift As Integer) > >> Me!Text2.Requery > >> End Sub > >> > >> in "CONTROL SOURCE" of TEXT2 =Len([Text1].[Text]) > >> > >> This shouold get what you need. > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ Instantly invite friends from Facebook and other social networks to join you on Windows Live? Messenger. https://www.invite2messenger.net/im/?source=TXT_EML_WLH_InviteFriends From Gustav at cactus.dk Tue Jun 10 11:07:07 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 10 Jun 2008 18:07:07 +0200 Subject: [AccessD] Trick Needed Message-ID: Thanks Mark! That explains. /gustav >>> markamatte at hotmail.com 10-06-2008 18:03 >>> Gustav, I see the errors of my ways. I was getting errors when I tried your approach...but it was because I had a set the control source of Text2...so when your example would fire...it would fail...but My Fault. To Clarify...the example Susan asked if it worked(bottom of email).....that was my example...and the answer would NO...it did NOT work....as Gustav pointed out...if you left TEXT1...TEXT2 would error. Gustav's example, however, did work... Private Sub Text1_Change() Me!Text2.Value = Len(Me!Text1.Text) End Sub Sorry for the confusion. Thanks, Mark A. Matte From jwcolby at colbyconsulting.com Tue Jun 10 11:06:43 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 10 Jun 2008 12:06:43 -0400 Subject: [AccessD] VBA Unbound data entry / update form In-Reply-To: <015b01c8cb09$028a2050$0301a8c0@HAL9005> References: <483C8FF5.1040407@colbyconsulting.com><0K1J00I84V5QZ1U0@vms044.mailsrvcs.net> <02034CB1BB2E4ECE9DE313D2E38175AE@creativesystemdesigns.com> <015b01c8cb09$028a2050$0301a8c0@HAL9005> Message-ID: <484EA693.6090509@colbyconsulting.com> Rocky, I hate to jump all over your method because I want a method to use, but you are completely ignoring locking / update issues. What happened if another user updated the record between the time you loaded yours and the time you write it back? John W. Colby www.ColbyConsulting.com Rocky Smolin at Beach Access Software wrote: > I know how to make an unbound form but I haven't got enough nerve to present > such heresy - it runs counter to strongly held religious beliefs. > > OK - briefly - but you didn't hear it from me. > > 1. Design your form as you would a bound form but no Control Source in the > text boxes. > 2. Create a recordset in the Open event of the form (DAO or ADO - I prefer > DAO) using pretty much the same SQL or query as you would for your Record > Source in a bound form. > 3. Add a module to put the fields from the current record of the recordset > into the text boxes which you can call whenever you want to display the data > on your form. > 4. Add a module to put the values in the text boxes into the fields of the > current record (in DAO use .Edit or .Add and .Update) which you can call > whenever you want to write the textbox values back to the table. > 5. I always put my own navigation buttons on the unbound for - First, Last, > Next, Previous with Click events that move the recordset point > appropriately. > > HTH > > Rocky Smolin > Beach Access Software > 858-259-4334 > www.e-z-mrp.com > www.bchacc.com > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence > Sent: Monday, June 09, 2008 5:38 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] VBA Unbound data entry / update form > > Hi Jennifer: > > I have no idea how to create bound Access forms. ;-) The last bound database > that I have worked with was back in '97. > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross > Sent: Tuesday, May 27, 2008 5:12 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] VBA Unbound data entry / update form > > I have no idea how to create an unbound form in Access. I always use bound > forms. Though I would be interested to know how it's done. Unless I've got > it wrong, that seems to be the basic question here - For those of you who do > it, how do you create an unbound form? How do you populate the textboxes > initially and then how do you save the information back to the tables? > > It's beginning to sound like nobody really does it. > > Jennifer > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Tuesday, May 27, 2008 2:49 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] VBA Unbound data entry / update form > > > 1) If your situation gives you the choice between Access and SQL Server, > then you can use SQL Server Express. For your customer's benefit - it's > free! > > I know that, and you know that, but they have used an MDB BE for most of a > decade. SQL Server is the great unknown. > > > 2) How many concurrent users? Too Many? > > In the majority of cases, no. There ARE specific places where too many > users cause mysterious issues with an MDB. > Memos are written in "pages", as are indexes. If you open a record and > start to edit it, it "locks" an entire "page" of the index structure or the > memo area, which locks not just your record but potentially many others. > > This simply doesn't happen in SQL Server because SQL Server doesn't have > this "page" system for storing memo fields etc. > > > 3) How many indexes on the tables? > > Not the point, the point is that ALL indexes are stored in Index pages, and > entire pages of indexs can be locked by a single edit. > > Creating / using Indexes should be determined by need, not arcane locking > issues within Jet. > > > 4) Are you starting up by setting a recordset to open and leaving it that > way? > > If you are talking about creating and holding locks on the BE, yes I am, but > that isn't the issue either. > > John W. Colby > www.ColbyConsulting.com > > > Dan Waters wrote: >> John - I've been reading this with interest: >> >> 1) If your situation gives you the choice between Access and SQL >> Server, then you can use SQL Server Express. For your customer's >> benefit - it's free! >> >> 2) How many concurrent users? Too Many? >> >> 3) How many indexes on the tables? I actually only use the primary >> key as an index on every table. More indexes slows down writing > performance. >> 4) Are you starting up by setting a recordset to open and leaving it >> that way? This greatly reduces 'churn' in the locking database. When >> I set this up all my users reported a significant performance improvement. > Code below: >> '------------------------------------------------------------------------ >> Dim stgConnect As String >> Dim dbs As DAO.Database >> Dim tdf As DAO.TableDef >> >> stgConnect = BEFullPath >> Set dbs = DBEngine(0)(0) >> Set tdf = dbs.TableDefs("tblConnect") >> If tdf.Connect <> ";Database=" & stgConnect Then >> tdf.Connect = ";Database=" & stgConnect >> tdf.RefreshLink >> End If >> dbs.Close >> >> Set GrstConnect = DBEngine(0)(0).OpenRecordset("tblConnect", >> dbOpenSnapshot) >> '--------------------------------------------------------------------- >> --- >> >> Notes: BEFullPath is a function to return the full path to the BE. >> tblConnect is a one row one field table in the BE. >> The table link is refreshed because the table link is in a > library. >> GrstConnect is a globally defined DAO recordset. >> GrstConnect remains open until just before the database is closed. >> >> Good Luck! >> Dan > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > No virus found in this incoming message. > Checked by AVG. > Version: 8.0.100 / Virus Database: 270.1.0/1492 - Release Date: 9/6/2008 > 10:29 > From rockysmolin at bchacc.com Tue Jun 10 11:47:23 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Tue, 10 Jun 2008 09:47:23 -0700 Subject: [AccessD] VBA Unbound data entry / update form In-Reply-To: <484EA693.6090509@colbyconsulting.com> References: <483C8FF5.1040407@colbyconsulting.com><0K1J00I84V5QZ1U0@vms044.mailsrvcs.net> <02034CB1BB2E4ECE9DE313D2E38175AE@creativesystemdesigns.com><015b01c8cb09$028a2050$0301a8c0@HAL9005> <484EA693.6090509@colbyconsulting.com> Message-ID: <017601c8cb19$a82dbd90$0301a8c0@HAL9005> Not ignoring. It wasn't an exhaustive treatise on the subject. Just a 'how to get started'. Locking: you have to look up record and page locking stuff for DAO. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, June 10, 2008 9:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VBA Unbound data entry / update form Rocky, I hate to jump all over your method because I want a method to use, but you are completely ignoring locking / update issues. What happened if another user updated the record between the time you loaded yours and the time you write it back? John W. Colby www.ColbyConsulting.com Rocky Smolin at Beach Access Software wrote: > I know how to make an unbound form but I haven't got enough nerve to > present such heresy - it runs counter to strongly held religious beliefs. > > OK - briefly - but you didn't hear it from me. > > 1. Design your form as you would a bound form but no Control Source in > the text boxes. > 2. Create a recordset in the Open event of the form (DAO or ADO - I > prefer > DAO) using pretty much the same SQL or query as you would for your > Record Source in a bound form. > 3. Add a module to put the fields from the current record of the > recordset into the text boxes which you can call whenever you want to > display the data on your form. > 4. Add a module to put the values in the text boxes into the fields of > the current record (in DAO use .Edit or .Add and .Update) which you > can call whenever you want to write the textbox values back to the table. > 5. I always put my own navigation buttons on the unbound for - First, > Last, Next, Previous with Click events that move the recordset point > appropriately. > > HTH > > Rocky Smolin > Beach Access Software > 858-259-4334 > www.e-z-mrp.com > www.bchacc.com > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim > Lawrence > Sent: Monday, June 09, 2008 5:38 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] VBA Unbound data entry / update form > > Hi Jennifer: > > I have no idea how to create bound Access forms. ;-) The last bound > database that I have worked with was back in '97. > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer > Gross > Sent: Tuesday, May 27, 2008 5:12 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] VBA Unbound data entry / update form > > I have no idea how to create an unbound form in Access. I always use > bound forms. Though I would be interested to know how it's done. > Unless I've got it wrong, that seems to be the basic question here - > For those of you who do it, how do you create an unbound form? How do > you populate the textboxes initially and then how do you save the information back to the tables? > > It's beginning to sound like nobody really does it. > > Jennifer > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Tuesday, May 27, 2008 2:49 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] VBA Unbound data entry / update form > > > 1) If your situation gives you the choice between Access and SQL > Server, then you can use SQL Server Express. For your customer's > benefit - it's free! > > I know that, and you know that, but they have used an MDB BE for most > of a decade. SQL Server is the great unknown. > > > 2) How many concurrent users? Too Many? > > In the majority of cases, no. There ARE specific places where too > many users cause mysterious issues with an MDB. > Memos are written in "pages", as are indexes. If you open a record > and start to edit it, it "locks" an entire "page" of the index > structure or the memo area, which locks not just your record but potentially many others. > > This simply doesn't happen in SQL Server because SQL Server doesn't > have this "page" system for storing memo fields etc. > > > 3) How many indexes on the tables? > > Not the point, the point is that ALL indexes are stored in Index > pages, and entire pages of indexs can be locked by a single edit. > > Creating / using Indexes should be determined by need, not arcane > locking issues within Jet. > > > 4) Are you starting up by setting a recordset to open and leaving > it that way? > > If you are talking about creating and holding locks on the BE, yes I > am, but that isn't the issue either. > > John W. Colby > www.ColbyConsulting.com > > > Dan Waters wrote: >> John - I've been reading this with interest: >> >> 1) If your situation gives you the choice between Access and SQL >> Server, then you can use SQL Server Express. For your customer's >> benefit - it's free! >> >> 2) How many concurrent users? Too Many? >> >> 3) How many indexes on the tables? I actually only use the primary >> key as an index on every table. More indexes slows down writing > performance. >> 4) Are you starting up by setting a recordset to open and leaving it >> that way? This greatly reduces 'churn' in the locking database. >> When I set this up all my users reported a significant performance improvement. > Code below: >> '------------------------------------------------------------------------ >> Dim stgConnect As String >> Dim dbs As DAO.Database >> Dim tdf As DAO.TableDef >> >> stgConnect = BEFullPath >> Set dbs = DBEngine(0)(0) >> Set tdf = dbs.TableDefs("tblConnect") >> If tdf.Connect <> ";Database=" & stgConnect Then >> tdf.Connect = ";Database=" & stgConnect >> tdf.RefreshLink >> End If >> dbs.Close >> >> Set GrstConnect = DBEngine(0)(0).OpenRecordset("tblConnect", >> dbOpenSnapshot) >> '-------------------------------------------------------------------- >> - >> --- >> >> Notes: BEFullPath is a function to return the full path to the BE. >> tblConnect is a one row one field table in the BE. >> The table link is refreshed because the table link is in a > library. >> GrstConnect is a globally defined DAO recordset. >> GrstConnect remains open until just before the database is closed. >> >> Good Luck! >> Dan > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > No virus found in this incoming message. > Checked by AVG. > Version: 8.0.100 / Virus Database: 270.1.0/1492 - Release Date: > 9/6/2008 > 10:29 > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 270.2.0/1494 - Release Date: 10/6/2008 07:22 From markamatte at hotmail.com Tue Jun 10 11:51:20 2008 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 10 Jun 2008 16:51:20 +0000 Subject: [AccessD] VBA Unbound data entry / update form In-Reply-To: <484EA693.6090509@colbyconsulting.com> References: <483C8FF5.1040407@colbyconsulting.com><0K1J00I84V5QZ1U0@vms044.mailsrvcs.net> <02034CB1BB2E4ECE9DE313D2E38175AE@creativesystemdesigns.com> <015b01c8cb09$028a2050$0301a8c0@HAL9005> <484EA693.6090509@colbyconsulting.com> Message-ID: I can tell you how our PeopleSoft (web based) App handles it...it compares the last_update_timestamp...if it is the same as when you pulled your recordset...you get to save...if not...you lose your changes. Golden rule with the app we purchased...first person to click save...wins!!! Thanks, Mark A. Matte > Date: Tue, 10 Jun 2008 12:06:43 -0400 > From: jwcolby at colbyconsulting.com > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] VBA Unbound data entry / update form > > Rocky, > > I hate to jump all over your method because I want a method > to use, but you are completely ignoring locking / update > issues. What happened if another user updated the record > between the time you loaded yours and the time you write it > back? > > John W. Colby > www.ColbyConsulting.com > > > Rocky Smolin at Beach Access Software wrote: >> I know how to make an unbound form but I haven't got enough nerve to present >> such heresy - it runs counter to strongly held religious beliefs. >> >> OK - briefly - but you didn't hear it from me. >> >> 1. Design your form as you would a bound form but no Control Source in the >> text boxes. >> 2. Create a recordset in the Open event of the form (DAO or ADO - I prefer >> DAO) using pretty much the same SQL or query as you would for your Record >> Source in a bound form. >> 3. Add a module to put the fields from the current record of the recordset >> into the text boxes which you can call whenever you want to display the data >> on your form. >> 4. Add a module to put the values in the text boxes into the fields of the >> current record (in DAO use .Edit or .Add and .Update) which you can call >> whenever you want to write the textbox values back to the table. >> 5. I always put my own navigation buttons on the unbound for - First, Last, >> Next, Previous with Click events that move the recordset point >> appropriately. >> >> HTH >> >> Rocky Smolin >> Beach Access Software >> 858-259-4334 >> www.e-z-mrp.com >> www.bchacc.com >> >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence >> Sent: Monday, June 09, 2008 5:38 PM >> To: 'Access Developers discussion and problem solving' >> Subject: Re: [AccessD] VBA Unbound data entry / update form >> >> Hi Jennifer: >> >> I have no idea how to create bound Access forms. ;-) The last bound database >> that I have worked with was back in '97. >> >> Jim >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross >> Sent: Tuesday, May 27, 2008 5:12 PM >> To: 'Access Developers discussion and problem solving' >> Subject: Re: [AccessD] VBA Unbound data entry / update form >> >> I have no idea how to create an unbound form in Access. I always use bound >> forms. Though I would be interested to know how it's done. Unless I've got >> it wrong, that seems to be the basic question here - For those of you who do >> it, how do you create an unbound form? How do you populate the textboxes >> initially and then how do you save the information back to the tables? >> >> It's beginning to sound like nobody really does it. >> >> Jennifer >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: Tuesday, May 27, 2008 2:49 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] VBA Unbound data entry / update form >> >>> 1) If your situation gives you the choice between Access and SQL Server, >> then you can use SQL Server Express. For your customer's benefit - it's >> free! >> >> I know that, and you know that, but they have used an MDB BE for most of a >> decade. SQL Server is the great unknown. >> >>> 2) How many concurrent users? Too Many? >> >> In the majority of cases, no. There ARE specific places where too many >> users cause mysterious issues with an MDB. >> Memos are written in "pages", as are indexes. If you open a record and >> start to edit it, it "locks" an entire "page" of the index structure or the >> memo area, which locks not just your record but potentially many others. >> >> This simply doesn't happen in SQL Server because SQL Server doesn't have >> this "page" system for storing memo fields etc. >> >>> 3) How many indexes on the tables? >> >> Not the point, the point is that ALL indexes are stored in Index pages, and >> entire pages of indexs can be locked by a single edit. >> >> Creating / using Indexes should be determined by need, not arcane locking >> issues within Jet. >> >>> 4) Are you starting up by setting a recordset to open and leaving it that >> way? >> >> If you are talking about creating and holding locks on the BE, yes I am, but >> that isn't the issue either. >> >> John W. Colby >> www.ColbyConsulting.com >> >> >> Dan Waters wrote: >>> John - I've been reading this with interest: >>> >>> 1) If your situation gives you the choice between Access and SQL >>> Server, then you can use SQL Server Express. For your customer's >>> benefit - it's free! >>> >>> 2) How many concurrent users? Too Many? >>> >>> 3) How many indexes on the tables? I actually only use the primary >>> key as an index on every table. More indexes slows down writing >> performance. >>> 4) Are you starting up by setting a recordset to open and leaving it >>> that way? This greatly reduces 'churn' in the locking database. When >>> I set this up all my users reported a significant performance improvement. >> Code below: >>> '------------------------------------------------------------------------ >>> Dim stgConnect As String >>> Dim dbs As DAO.Database >>> Dim tdf As DAO.TableDef >>> >>> stgConnect = BEFullPath >>> Set dbs = DBEngine(0)(0) >>> Set tdf = dbs.TableDefs("tblConnect") >>> If tdf.Connect <> ";Database=" & stgConnect Then >>> tdf.Connect = ";Database=" & stgConnect >>> tdf.RefreshLink >>> End If >>> dbs.Close >>> >>> Set GrstConnect = DBEngine(0)(0).OpenRecordset("tblConnect", >>> dbOpenSnapshot) >>> '--------------------------------------------------------------------- >>> --- >>> >>> Notes: BEFullPath is a function to return the full path to the BE. >>> tblConnect is a one row one field table in the BE. >>> The table link is refreshed because the table link is in a >> library. >>> GrstConnect is a globally defined DAO recordset. >>> GrstConnect remains open until just before the database is closed. >>> >>> Good Luck! >>> Dan >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> No virus found in this incoming message. >> Checked by AVG. >> Version: 8.0.100 / Virus Database: 270.1.0/1492 - Release Date: 9/6/2008 >> 10:29 >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ Search that pays you back! Introducing Live Search cashback. http://search.live.com/cashback/?&pkw=form=MIJAAF/publ=HMTGL/crea=srchpaysyouback From andy at minstersystems.co.uk Tue Jun 10 11:27:44 2008 From: andy at minstersystems.co.uk (Andy Lacey) Date: Tue, 10 Jun 2008 17:27:44 +0100 Subject: [AccessD] SendObject - SOLVED In-Reply-To: <200806101408.m5AE8ZKq016436@databaseadvisors.com> Message-ID: <009401c8cb16$e9c6fb70$72932a50@minster33c3r25> If anyone else gets this problem see http://support.microsoft.com/default.aspx?scid=kb;en-us;Q171896 -- Andy Lacey http://www.minstersystems.co.uk >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Andy Lacey >Sent: 10 June 2008 14:14 >To: Dba >Subject: [AccessD] SendObject > > >Hi folks. Hope you're all doing ok. The sun's shining here at >long last so our long (as much as 3 or 4 days probably) summer >has started. > >Anyway who's going to tell me how sendObject works. I thought >it would use the default Windows email client but now I don't >know. I've just installed Lotus Notes on a pc with WXP and >Outlook, and said No to the prompts as to whether I wanted >Notes to be the default client. When I Google default mail >client the answer's say it's whatever is defined as the mail >program in Internet Explorer's Programs tab in Internet >options, and that says Outlook. But Sendobject uses Notes. >What's causing this? > > >-- >Bemused of Peterborough, aka Andy Lacey http://www.minstersystems.co.uk > >________________________________________________ >Message sent using UebiMiau 2.7.2 > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > From jwcolby at colbyconsulting.com Tue Jun 10 11:59:37 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 10 Jun 2008 12:59:37 -0400 Subject: [AccessD] VBA Unbound data entry / update form In-Reply-To: <017601c8cb19$a82dbd90$0301a8c0@HAL9005> References: <483C8FF5.1040407@colbyconsulting.com><0K1J00I84V5QZ1U0@vms044.mailsrvcs.net> <02034CB1BB2E4ECE9DE313D2E38175AE@creativesystemdesigns.com><015b01c8cb09$028a2050$0301a8c0@HAL9005> <484EA693.6090509@colbyconsulting.com> <017601c8cb19$a82dbd90$0301a8c0@HAL9005> Message-ID: <484EB2F9.2060602@colbyconsulting.com> LOL, OK. The devil is in the details after all. I am not really interested in locking. In my understanding of unbound forms, you don't hold locks, and if you are, you might as well go bound. Which leads us squarely back to update strategies, and testing for modifications by other users. All that good stuff that the "unbounders" claim to handle but have never piped up with even general strategies, never mind code. John W. Colby www.ColbyConsulting.com Rocky Smolin at Beach Access Software wrote: > Not ignoring. It wasn't an exhaustive treatise on the subject. Just a 'how > to get started'. Locking: you have to look up record and page locking > stuff for DAO. > > > Rocky Smolin > Beach Access Software > 858-259-4334 > www.e-z-mrp.com > www.bchacc.com > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Tuesday, June 10, 2008 9:07 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] VBA Unbound data entry / update form > > Rocky, > > I hate to jump all over your method because I want a method to use, but you > are completely ignoring locking / update issues. What happened if another > user updated the record between the time you loaded yours and the time you > write it back? > > John W. Colby > www.ColbyConsulting.com > > > Rocky Smolin at Beach Access Software wrote: >> I know how to make an unbound form but I haven't got enough nerve to >> present such heresy - it runs counter to strongly held religious beliefs. >> >> OK - briefly - but you didn't hear it from me. >> >> 1. Design your form as you would a bound form but no Control Source in >> the text boxes. >> 2. Create a recordset in the Open event of the form (DAO or ADO - I >> prefer >> DAO) using pretty much the same SQL or query as you would for your >> Record Source in a bound form. >> 3. Add a module to put the fields from the current record of the >> recordset into the text boxes which you can call whenever you want to >> display the data on your form. >> 4. Add a module to put the values in the text boxes into the fields of >> the current record (in DAO use .Edit or .Add and .Update) which you >> can call whenever you want to write the textbox values back to the table. >> 5. I always put my own navigation buttons on the unbound for - First, >> Last, Next, Previous with Click events that move the recordset point >> appropriately. >> >> HTH >> >> Rocky Smolin >> Beach Access Software >> 858-259-4334 >> www.e-z-mrp.com >> www.bchacc.com >> >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim >> Lawrence >> Sent: Monday, June 09, 2008 5:38 PM >> To: 'Access Developers discussion and problem solving' >> Subject: Re: [AccessD] VBA Unbound data entry / update form >> >> Hi Jennifer: >> >> I have no idea how to create bound Access forms. ;-) The last bound >> database that I have worked with was back in '97. >> >> Jim >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer >> Gross >> Sent: Tuesday, May 27, 2008 5:12 PM >> To: 'Access Developers discussion and problem solving' >> Subject: Re: [AccessD] VBA Unbound data entry / update form >> >> I have no idea how to create an unbound form in Access. I always use >> bound forms. Though I would be interested to know how it's done. >> Unless I've got it wrong, that seems to be the basic question here - >> For those of you who do it, how do you create an unbound form? How do >> you populate the textboxes initially and then how do you save the > information back to the tables? >> It's beginning to sound like nobody really does it. >> >> Jennifer From jwcolby at colbyconsulting.com Tue Jun 10 12:05:23 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 10 Jun 2008 13:05:23 -0400 Subject: [AccessD] VBA Unbound data entry / update form In-Reply-To: References: <483C8FF5.1040407@colbyconsulting.com><0K1J00I84V5QZ1U0@vms044.mailsrvcs.net> <02034CB1BB2E4ECE9DE313D2E38175AE@creativesystemdesigns.com> <015b01c8cb09$028a2050$0301a8c0@HAL9005> <484EA693.6090509@colbyconsulting.com> Message-ID: <484EB453.7040808@colbyconsulting.com> Mark, Yup. Kinda barbaric eh? John W. Colby www.ColbyConsulting.com Mark A Matte wrote: > I can tell you how our PeopleSoft (web based) App handles it...it compares the last_update_timestamp...if it is the same as when you pulled your recordset...you get to save...if not...you lose your changes. > > Golden rule with the app we purchased...first person to click save...wins!!! > > Thanks, > > Mark A. Matte > > > > >> Date: Tue, 10 Jun 2008 12:06:43 -0400 >> From: jwcolby at colbyconsulting.com >> To: accessd at databaseadvisors.com >> Subject: Re: [AccessD] VBA Unbound data entry / update form >> >> Rocky, >> >> I hate to jump all over your method because I want a method >> to use, but you are completely ignoring locking / update >> issues. What happened if another user updated the record >> between the time you loaded yours and the time you write it >> back? >> >> John W. Colby >> www.ColbyConsulting.com >> >> >> Rocky Smolin at Beach Access Software wrote: >>> I know how to make an unbound form but I haven't got enough nerve to present >>> such heresy - it runs counter to strongly held religious beliefs. >>> >>> OK - briefly - but you didn't hear it from me. >>> >>> 1. Design your form as you would a bound form but no Control Source in the >>> text boxes. >>> 2. Create a recordset in the Open event of the form (DAO or ADO - I prefer >>> DAO) using pretty much the same SQL or query as you would for your Record >>> Source in a bound form. >>> 3. Add a module to put the fields from the current record of the recordset >>> into the text boxes which you can call whenever you want to display the data >>> on your form. >>> 4. Add a module to put the values in the text boxes into the fields of the >>> current record (in DAO use .Edit or .Add and .Update) which you can call >>> whenever you want to write the textbox values back to the table. >>> 5. I always put my own navigation buttons on the unbound for - First, Last, >>> Next, Previous with Click events that move the recordset point >>> appropriately. >>> >>> HTH >>> >>> Rocky Smolin >>> Beach Access Software >>> 858-259-4334 >>> www.e-z-mrp.com >>> www.bchacc.com >>> >>> >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence >>> Sent: Monday, June 09, 2008 5:38 PM >>> To: 'Access Developers discussion and problem solving' >>> Subject: Re: [AccessD] VBA Unbound data entry / update form >>> >>> Hi Jennifer: >>> >>> I have no idea how to create bound Access forms. ;-) The last bound database >>> that I have worked with was back in '97. >>> >>> Jim >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross >>> Sent: Tuesday, May 27, 2008 5:12 PM >>> To: 'Access Developers discussion and problem solving' >>> Subject: Re: [AccessD] VBA Unbound data entry / update form >>> >>> I have no idea how to create an unbound form in Access. I always use bound >>> forms. Though I would be interested to know how it's done. Unless I've got >>> it wrong, that seems to be the basic question here - For those of you who do >>> it, how do you create an unbound form? How do you populate the textboxes >>> initially and then how do you save the information back to the tables? >>> >>> It's beginning to sound like nobody really does it. >>> >>> Jennifer >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >>> Sent: Tuesday, May 27, 2008 2:49 PM >>> To: Access Developers discussion and problem solving >>> Subject: Re: [AccessD] VBA Unbound data entry / update form >>> >>>> 1) If your situation gives you the choice between Access and SQL Server, >>> then you can use SQL Server Express. For your customer's benefit - it's >>> free! >>> >>> I know that, and you know that, but they have used an MDB BE for most of a >>> decade. SQL Server is the great unknown. >>> >>>> 2) How many concurrent users? Too Many? >>> In the majority of cases, no. There ARE specific places where too many >>> users cause mysterious issues with an MDB. >>> Memos are written in "pages", as are indexes. If you open a record and >>> start to edit it, it "locks" an entire "page" of the index structure or the >>> memo area, which locks not just your record but potentially many others. >>> >>> This simply doesn't happen in SQL Server because SQL Server doesn't have >>> this "page" system for storing memo fields etc. >>> >>>> 3) How many indexes on the tables? >>> Not the point, the point is that ALL indexes are stored in Index pages, and >>> entire pages of indexs can be locked by a single edit. >>> >>> Creating / using Indexes should be determined by need, not arcane locking >>> issues within Jet. >>> >>>> 4) Are you starting up by setting a recordset to open and leaving it that >>> way? >>> >>> If you are talking about creating and holding locks on the BE, yes I am, but >>> that isn't the issue either. >>> >>> John W. Colby >>> www.ColbyConsulting.com >>> >>> >>> Dan Waters wrote: >>>> John - I've been reading this with interest: >>>> >>>> 1) If your situation gives you the choice between Access and SQL >>>> Server, then you can use SQL Server Express. For your customer's >>>> benefit - it's free! >>>> >>>> 2) How many concurrent users? Too Many? >>>> >>>> 3) How many indexes on the tables? I actually only use the primary >>>> key as an index on every table. More indexes slows down writing >>> performance. >>>> 4) Are you starting up by setting a recordset to open and leaving it >>>> that way? This greatly reduces 'churn' in the locking database. When >>>> I set this up all my users reported a significant performance improvement. >>> Code below: >>>> '------------------------------------------------------------------------ >>>> Dim stgConnect As String >>>> Dim dbs As DAO.Database >>>> Dim tdf As DAO.TableDef >>>> >>>> stgConnect = BEFullPath >>>> Set dbs = DBEngine(0)(0) >>>> Set tdf = dbs.TableDefs("tblConnect") >>>> If tdf.Connect <> ";Database=" & stgConnect Then >>>> tdf.Connect = ";Database=" & stgConnect >>>> tdf.RefreshLink >>>> End If >>>> dbs.Close >>>> >>>> Set GrstConnect = DBEngine(0)(0).OpenRecordset("tblConnect", >>>> dbOpenSnapshot) >>>> '--------------------------------------------------------------------- >>>> --- >>>> >>>> Notes: BEFullPath is a function to return the full path to the BE. >>>> tblConnect is a one row one field table in the BE. >>>> The table link is refreshed because the table link is in a >>> library. >>>> GrstConnect is a globally defined DAO recordset. >>>> GrstConnect remains open until just before the database is closed. >>>> >>>> Good Luck! >>>> Dan >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >>> No virus found in this incoming message. >>> Checked by AVG. >>> Version: 8.0.100 / Virus Database: 270.1.0/1492 - Release Date: 9/6/2008 >>> 10:29 >>> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > _________________________________________________________________ > Search that pays you back! Introducing Live Search cashback. > http://search.live.com/cashback/?&pkw=form=MIJAAF/publ=HMTGL/crea=srchpaysyouback From Elizabeth.J.Doering at wellsfargo.com Tue Jun 10 12:10:23 2008 From: Elizabeth.J.Doering at wellsfargo.com (Elizabeth.J.Doering at wellsfargo.com) Date: Tue, 10 Jun 2008 12:10:23 -0500 Subject: [AccessD] VBA Unbound data entry / update form References: <483C8FF5.1040407@colbyconsulting.com><0K1J00I84V5QZ1U0@vms044.mailsrvcs.net> <02034CB1BB2E4ECE9DE313D2E38175AE@creativesystemdesigns.com><015b01c8cb09$028a2050$0301a8c0@HAL9005> <484EA693.6090509@colbyconsulting.com><017601c8cb19$a82dbd90$0301a8c0@HAL9005> <484EB2F9.2060602@colbyconsulting.com> Message-ID: I suspect that the unbounders on this list have all been converted and are therefore silent. :) Thanks, Liz This message may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose, or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. Thank you for your cooperation. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, June 10, 2008 12:00 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VBA Unbound data entry / update form LOL, OK. The devil is in the details after all. I am not really interested in locking. In my understanding of unbound forms, you don't hold locks, and if you are, you might as well go bound. Which leads us squarely back to update strategies, and testing for modifications by other users. All that good stuff that the "unbounders" claim to handle but have never piped up with even general strategies, never mind code. John W. Colby www.ColbyConsulting.com Rocky Smolin at Beach Access Software wrote: > Not ignoring. It wasn't an exhaustive treatise on the subject. Just > a 'how to get started'. Locking: you have to look up record and page > locking stuff for DAO. > > > Rocky Smolin > Beach Access Software > 858-259-4334 > www.e-z-mrp.com > www.bchacc.com > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Tuesday, June 10, 2008 9:07 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] VBA Unbound data entry / update form > > Rocky, > > I hate to jump all over your method because I want a method to use, > but you are completely ignoring locking / update issues. What > happened if another user updated the record between the time you > loaded yours and the time you write it back? > > John W. Colby > www.ColbyConsulting.com > > > Rocky Smolin at Beach Access Software wrote: >> I know how to make an unbound form but I haven't got enough nerve to >> present such heresy - it runs counter to strongly held religious beliefs. >> >> OK - briefly - but you didn't hear it from me. >> >> 1. Design your form as you would a bound form but no Control Source >> in the text boxes. >> 2. Create a recordset in the Open event of the form (DAO or ADO - I >> prefer >> DAO) using pretty much the same SQL or query as you would for your >> Record Source in a bound form. >> 3. Add a module to put the fields from the current record of the >> recordset into the text boxes which you can call whenever you want to >> display the data on your form. >> 4. Add a module to put the values in the text boxes into the fields >> of the current record (in DAO use .Edit or .Add and .Update) which >> you can call whenever you want to write the textbox values back to the table. >> 5. I always put my own navigation buttons on the unbound for - First, >> Last, Next, Previous with Click events that move the recordset point >> appropriately. >> >> HTH >> >> Rocky Smolin >> Beach Access Software >> 858-259-4334 >> www.e-z-mrp.com >> www.bchacc.com >> >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim >> Lawrence >> Sent: Monday, June 09, 2008 5:38 PM >> To: 'Access Developers discussion and problem solving' >> Subject: Re: [AccessD] VBA Unbound data entry / update form >> >> Hi Jennifer: >> >> I have no idea how to create bound Access forms. ;-) The last bound >> database that I have worked with was back in '97. >> >> Jim >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer >> Gross >> Sent: Tuesday, May 27, 2008 5:12 PM >> To: 'Access Developers discussion and problem solving' >> Subject: Re: [AccessD] VBA Unbound data entry / update form >> >> I have no idea how to create an unbound form in Access. I always use >> bound forms. Though I would be interested to know how it's done. >> Unless I've got it wrong, that seems to be the basic question here - >> For those of you who do it, how do you create an unbound form? How >> do you populate the textboxes initially and then how do you save the > information back to the tables? >> It's beginning to sound like nobody really does it. >> >> Jennifer -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Tue Jun 10 12:22:01 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 10 Jun 2008 12:22:01 -0500 Subject: [AccessD] VBA Unbound data entry / update form In-Reply-To: <015b01c8cb09$028a2050$0301a8c0@HAL9005> Message-ID: Ok folks, here's an example of an unbound form. In the course of this thread, there was a big misconception that an unbound form was meant to replace a bound form. That's just not the case. It would be reinventing the wheel if you make what should be a bound form into an unbound form. Download this zip file: http://www.marlow.com/Inventory.zip Unzip the two .mdbs into a folder. Open the one that has FE at the end. You will be prompted for the location of the .mdb with BE at the end. Once you locate where you saved the backend, the code will relink the tables in the front end. Now, this system was built to be a stand alone inventory system. The business logic of the system is built into several global classes. So let's look at an unbound form. There is a special menu that starts with 'Categories'. Click the Transactions menu button on that menu. This will open the 'Transaction Creation Form'. Everything on this form is unbound. The combos and listboxes are populated with callback functions. The REASON this form is unbound is due to the structure of the database. This system was built so that a company that had multiple 'sites' (construction sites essentially) could track the tools and materials that they moved around. It was quoted and designed for one person (at their central site) to use. To 'track' the inventory, sites and inventory parts have their own tables with a unique key. Then there is tblTransactions, which has it's own TransactionID, timestamp, originating site, destination site, and expected return date. And the quantities transferred are in the tblTransactionItems table, with the TransactionID, the PartID and the Quantity. So let's use the form. Select 'Yard, Texas' in the Originating Site box. Notice that the left listbox just populated with a lot of stuff (that is all of the items in the Texas Yard. Then select 2100 Mckinney Office Bldg. in the Destination Site. Now let's select Forming Materials in the Category box, that will 'filter' the left listbox for just Forming Materials. Double click a part, let's use the C-4 channel @28'. We get prompted for how many items we want to transfer (the default value being the total in the Texas yard). Let's move 10, and click ok. Let's do the same for FM000139 (Plate washer). And again for FM000142 (C-5 channel). So on the right, we have 3 items, 10 each, ready to move to the 2100 site. Ooops, didn't mean that C-5 channel @ 16', double click it in the right listbox, and it disappears. Now we're ready to commit this transaction, click Complete Transaction. We are notified that the transaction is complete, and the left listbox now shows the updated quantities, and a new Transaction record was created, with 2 Transaction Item records. Nothing was done data wise until we clicked the complete Transaction button. Could this be done with a bound form? Probably, but the work involved in doing it would have been a pain, and it wouldn't have the extra bells and whistles: With the transaction creation form still open...hey, it's not the Texas yard, it's the Dallas Texas Yard. Click the Sites menu item in the custom menu. See Yard, Texas at the bottom of the list? Double click it. (That populates the unbound controls on top of the 'Extra Sites' menu. Change the Site Name to 'Yard, Dallas Texas' and click Save Site. Look at that, the Originating Site box on the Transaction Creation Form instantly changed to show the new name. Hey, that C-4 channel @ 28' is really 26'. Let's start a transaction again, move ten (FM000138) to the Destination site (but don't commit the transaction). Now, click the Inventory Items button on the custom menu. Select Forming Materials in the Category, and scroll down to FM000138. Double click that item in the listbox. Change the Part Name to be 26' instead of 28'. Click 'Save Part Information'. Look at that, both list boxes on the Transaction Creation Form immediately show the new part name. If two Transaction Creation Forms were open, creating a transaction on one would show the new inventory levels immediately on the other. Now, could I have built the site and part forms as bound forms? Yes, but I built this application by creating the table structure, building the business logic Classes, and the forms were built on top of the business logic, which was much easy to do unbound then bound. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Tuesday, June 10, 2008 9:48 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] VBA Unbound data entry / update form I know how to make an unbound form but I haven't got enough nerve to present such heresy - it runs counter to strongly held religious beliefs. OK - briefly - but you didn't hear it from me. 1. Design your form as you would a bound form but no Control Source in the text boxes. 2. Create a recordset in the Open event of the form (DAO or ADO - I prefer DAO) using pretty much the same SQL or query as you would for your Record Source in a bound form. 3. Add a module to put the fields from the current record of the recordset into the text boxes which you can call whenever you want to display the data on your form. 4. Add a module to put the values in the text boxes into the fields of the current record (in DAO use .Edit or .Add and .Update) which you can call whenever you want to write the textbox values back to the table. 5. I always put my own navigation buttons on the unbound for - First, Last, Next, Previous with Click events that move the recordset point appropriately. HTH Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From dwaters at usinternet.com Tue Jun 10 12:23:25 2008 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 10 Jun 2008 12:23:25 -0500 Subject: [AccessD] VBA Unbound data entry / update form In-Reply-To: References: <483C8FF5.1040407@colbyconsulting.com><0K1J00I84V5QZ1U0@vms044.mailsrvcs.net><02034CB1BB2E4ECE9DE313D2E38175AE@creativesystemdesigns.com><015b01c8cb09$028a2050$0301a8c0@HAL9005> <484EA693.6090509@colbyconsulting.com> Message-ID: Mark, I like your example for one record at a time updates. How do you handle a situation like: UPDATE tblTable Set Field = 'TRUE' _ WHERE Date = CurrentDate Or: DELETE * FROM tblTable _ WHERE Date = CurrentDate Of course, each of these examples could involve many records. Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Tuesday, June 10, 2008 11:51 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VBA Unbound data entry / update form I can tell you how our PeopleSoft (web based) App handles it...it compares the last_update_timestamp...if it is the same as when you pulled your recordset...you get to save...if not...you lose your changes. Golden rule with the app we purchased...first person to click save...wins!!! Thanks, Mark A. Matte > Date: Tue, 10 Jun 2008 12:06:43 -0400 > From: jwcolby at colbyconsulting.com > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] VBA Unbound data entry / update form > > Rocky, > > I hate to jump all over your method because I want a method > to use, but you are completely ignoring locking / update > issues. What happened if another user updated the record > between the time you loaded yours and the time you write it > back? > > John W. Colby > www.ColbyConsulting.com > > > Rocky Smolin at Beach Access Software wrote: >> I know how to make an unbound form but I haven't got enough nerve to present >> such heresy - it runs counter to strongly held religious beliefs. >> >> OK - briefly - but you didn't hear it from me. >> >> 1. Design your form as you would a bound form but no Control Source in the >> text boxes. >> 2. Create a recordset in the Open event of the form (DAO or ADO - I prefer >> DAO) using pretty much the same SQL or query as you would for your Record >> Source in a bound form. >> 3. Add a module to put the fields from the current record of the recordset >> into the text boxes which you can call whenever you want to display the data >> on your form. >> 4. Add a module to put the values in the text boxes into the fields of the >> current record (in DAO use .Edit or .Add and .Update) which you can call >> whenever you want to write the textbox values back to the table. >> 5. I always put my own navigation buttons on the unbound for - First, Last, >> Next, Previous with Click events that move the recordset point >> appropriately. >> >> HTH >> >> Rocky Smolin >> Beach Access Software >> 858-259-4334 >> www.e-z-mrp.com >> www.bchacc.com >> >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence >> Sent: Monday, June 09, 2008 5:38 PM >> To: 'Access Developers discussion and problem solving' >> Subject: Re: [AccessD] VBA Unbound data entry / update form >> >> Hi Jennifer: >> >> I have no idea how to create bound Access forms. ;-) The last bound database >> that I have worked with was back in '97. >> >> Jim >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross >> Sent: Tuesday, May 27, 2008 5:12 PM >> To: 'Access Developers discussion and problem solving' >> Subject: Re: [AccessD] VBA Unbound data entry / update form >> >> I have no idea how to create an unbound form in Access. I always use bound >> forms. Though I would be interested to know how it's done. Unless I've got >> it wrong, that seems to be the basic question here - For those of you who do >> it, how do you create an unbound form? How do you populate the textboxes >> initially and then how do you save the information back to the tables? >> >> It's beginning to sound like nobody really does it. >> >> Jennifer >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: Tuesday, May 27, 2008 2:49 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] VBA Unbound data entry / update form >> >>> 1) If your situation gives you the choice between Access and SQL Server, >> then you can use SQL Server Express. For your customer's benefit - it's >> free! >> >> I know that, and you know that, but they have used an MDB BE for most of a >> decade. SQL Server is the great unknown. >> >>> 2) How many concurrent users? Too Many? >> >> In the majority of cases, no. There ARE specific places where too many >> users cause mysterious issues with an MDB. >> Memos are written in "pages", as are indexes. If you open a record and >> start to edit it, it "locks" an entire "page" of the index structure or the >> memo area, which locks not just your record but potentially many others. >> >> This simply doesn't happen in SQL Server because SQL Server doesn't have >> this "page" system for storing memo fields etc. >> >>> 3) How many indexes on the tables? >> >> Not the point, the point is that ALL indexes are stored in Index pages, and >> entire pages of indexs can be locked by a single edit. >> >> Creating / using Indexes should be determined by need, not arcane locking >> issues within Jet. >> >>> 4) Are you starting up by setting a recordset to open and leaving it that >> way? >> >> If you are talking about creating and holding locks on the BE, yes I am, but >> that isn't the issue either. >> >> John W. Colby >> www.ColbyConsulting.com >> >> >> Dan Waters wrote: >>> John - I've been reading this with interest: >>> >>> 1) If your situation gives you the choice between Access and SQL >>> Server, then you can use SQL Server Express. For your customer's >>> benefit - it's free! >>> >>> 2) How many concurrent users? Too Many? >>> >>> 3) How many indexes on the tables? I actually only use the primary >>> key as an index on every table. More indexes slows down writing >> performance. >>> 4) Are you starting up by setting a recordset to open and leaving it >>> that way? This greatly reduces 'churn' in the locking database. When >>> I set this up all my users reported a significant performance improvement. >> Code below: >>> '------------------------------------------------------------------------ >>> Dim stgConnect As String >>> Dim dbs As DAO.Database >>> Dim tdf As DAO.TableDef >>> >>> stgConnect = BEFullPath >>> Set dbs = DBEngine(0)(0) >>> Set tdf = dbs.TableDefs("tblConnect") >>> If tdf.Connect <> ";Database=" & stgConnect Then >>> tdf.Connect = ";Database=" & stgConnect >>> tdf.RefreshLink >>> End If >>> dbs.Close >>> >>> Set GrstConnect = DBEngine(0)(0).OpenRecordset("tblConnect", >>> dbOpenSnapshot) >>> '--------------------------------------------------------------------- >>> --- >>> >>> Notes: BEFullPath is a function to return the full path to the BE. >>> tblConnect is a one row one field table in the BE. >>> The table link is refreshed because the table link is in a >> library. >>> GrstConnect is a globally defined DAO recordset. >>> GrstConnect remains open until just before the database is closed. >>> >>> Good Luck! >>> Dan >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> No virus found in this incoming message. >> Checked by AVG. >> Version: 8.0.100 / Virus Database: 270.1.0/1492 - Release Date: 9/6/2008 >> 10:29 >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ Search that pays you back! Introducing Live Search cashback. http://search.live.com/cashback/?&pkw=form=MIJAAF/publ=HMTGL/crea=srchpaysyo uback -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Tue Jun 10 12:25:33 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 10 Jun 2008 12:25:33 -0500 Subject: [AccessD] VBA Unbound data entry / update form In-Reply-To: <484EB2F9.2060602@colbyconsulting.com> Message-ID: Yes, I did, you just ignored it. However, I just posted an example. It was built for one user to use. Though to make it multi user wouldn't have been very difficult. It would simply require a little extra to 'alert' other open instances to updates (using TCP/IP broadcasts, pretty simple, but wasn't needed when that application was built). Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, June 10, 2008 12:00 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VBA Unbound data entry / update form LOL, OK. The devil is in the details after all. I am not really interested in locking. In my understanding of unbound forms, you don't hold locks, and if you are, you might as well go bound. Which leads us squarely back to update strategies, and testing for modifications by other users. All that good stuff that the "unbounders" claim to handle but have never piped up with even general strategies, never mind code. John W. Colby www.ColbyConsulting.com Rocky Smolin at Beach Access Software wrote: > Not ignoring. It wasn't an exhaustive treatise on the subject. Just > a 'how to get started'. Locking: you have to look up record and page > locking stuff for DAO. > > > Rocky Smolin > Beach Access Software > 858-259-4334 > www.e-z-mrp.com > www.bchacc.com > The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From jwcolby at colbyconsulting.com Tue Jun 10 12:36:35 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 10 Jun 2008 13:36:35 -0400 Subject: [AccessD] VBA Unbound data entry / update form In-Reply-To: References: <483C8FF5.1040407@colbyconsulting.com><0K1J00I84V5QZ1U0@vms044.mailsrvcs.net> <02034CB1BB2E4ECE9DE313D2E38175AE@creativesystemdesigns.com><015b01c8cb09$028a2050$0301a8c0@HAL9005> <484EA693.6090509@colbyconsulting.com><017601c8cb19$a82dbd90$0301a8c0@HAL9005> <484EB2F9.2060602@colbyconsulting.com> Message-ID: <484EBBA3.2060509@colbyconsulting.com> > I suspect that the unbounders on this list have all been converted and are therefore silent. :) ROTFLMAO. I kind of doubt it. I suspect there are several classes of unbounders hiding out there, those that... 1) Don't handle it and don't want to admit it. 2) Handle it but the code was reaaaaaaaaallllllly messy and don't want to admit it. 3) Use "first wins" strategy and don't want to admit it. 4) Spent so much time and effort doing it correctly that they don't really want to give their work away. I come to this conclusion because if they handled it correctly, and the code was neat and tidy, then they would be popping up all over like proud papas to show us their beautiful baby. John W. Colby www.ColbyConsulting.com Elizabeth.J.Doering at wellsfargo.com wrote: > I suspect that the unbounders on this list have all been converted and > are therefore silent. :) > > > Thanks, > > > Liz From dwaters at usinternet.com Tue Jun 10 12:41:09 2008 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 10 Jun 2008 12:41:09 -0500 Subject: [AccessD] VBA Unbound data entry / update form In-Reply-To: References: <484EB2F9.2060602@colbyconsulting.com> Message-ID: I just did a search for 'Record Locking in SQL Server'. At the top of the list: http://www.wwwcoder.com/tabid/68/type/art/parentid/191/site/6508/default.asp x This talks about both pessimistic and optimistic locking. Lot's to learn! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Tuesday, June 10, 2008 12:26 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VBA Unbound data entry / update form Yes, I did, you just ignored it. However, I just posted an example. It was built for one user to use. Though to make it multi user wouldn't have been very difficult. It would simply require a little extra to 'alert' other open instances to updates (using TCP/IP broadcasts, pretty simple, but wasn't needed when that application was built). Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, June 10, 2008 12:00 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VBA Unbound data entry / update form LOL, OK. The devil is in the details after all. I am not really interested in locking. In my understanding of unbound forms, you don't hold locks, and if you are, you might as well go bound. Which leads us squarely back to update strategies, and testing for modifications by other users. All that good stuff that the "unbounders" claim to handle but have never piped up with even general strategies, never mind code. John W. Colby www.ColbyConsulting.com Rocky Smolin at Beach Access Software wrote: > Not ignoring. It wasn't an exhaustive treatise on the subject. Just > a 'how to get started'. Locking: you have to look up record and page > locking stuff for DAO. > > > Rocky Smolin > Beach Access Software > 858-259-4334 > www.e-z-mrp.com > www.bchacc.com > The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Tue Jun 10 12:45:19 2008 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 10 Jun 2008 17:45:19 +0000 Subject: [AccessD] VBA Unbound data entry / update form In-Reply-To: References: <483C8FF5.1040407@colbyconsulting.com><0K1J00I84V5QZ1U0@vms044.mailsrvcs.net><02034CB1BB2E4ECE9DE313D2E38175AE@creativesystemdesigns.com><015b01c8cb09$028a2050$0301a8c0@HAL9005> <484EA693.6090509@colbyconsulting.com> Message-ID: Dan, This is a PeopleSoft App...I take no responsibility for why it is built this way...but as far as your examples... Update multiple records: This is a CRM package...you can only update 1 record at a time. It may involve other records in other tables...but they are all accessed from a single parent record...and only that record. Deletes: You are not allowed to delete...end of story. I didn't write it...its just the way it came. But if you wanted to delete...you would delete all related records in other tables and then at the end...delete the single parent record. Clear as mud...let me know if you have any questions. Thanks, Mark A. Matte > From: dwaters at usinternet.com > To: accessd at databaseadvisors.com > Date: Tue, 10 Jun 2008 12:23:25 -0500 > Subject: Re: [AccessD] VBA Unbound data entry / update form > > Mark, > > I like your example for one record at a time updates. > > How do you handle a situation like: > > UPDATE tblTable Set Field = 'TRUE' _ > WHERE Date = CurrentDate > > Or: > > DELETE * FROM tblTable _ > WHERE Date = CurrentDate > > Of course, each of these examples could involve many records. > > Thanks! > Dan > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > Sent: Tuesday, June 10, 2008 11:51 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] VBA Unbound data entry / update form > > > I can tell you how our PeopleSoft (web based) App handles it...it compares > the last_update_timestamp...if it is the same as when you pulled your > recordset...you get to save...if not...you lose your changes. > > Golden rule with the app we purchased...first person to click save...wins!!! > > Thanks, > > Mark A. Matte > > > > >> Date: Tue, 10 Jun 2008 12:06:43 -0400 >> From: jwcolby at colbyconsulting.com >> To: accessd at databaseadvisors.com >> Subject: Re: [AccessD] VBA Unbound data entry / update form >> >> Rocky, >> >> I hate to jump all over your method because I want a method >> to use, but you are completely ignoring locking / update >> issues. What happened if another user updated the record >> between the time you loaded yours and the time you write it >> back? >> >> John W. Colby >> www.ColbyConsulting.com >> >> >> Rocky Smolin at Beach Access Software wrote: >>> I know how to make an unbound form but I haven't got enough nerve to > present >>> such heresy - it runs counter to strongly held religious beliefs. >>> >>> OK - briefly - but you didn't hear it from me. >>> >>> 1. Design your form as you would a bound form but no Control Source in > the >>> text boxes. >>> 2. Create a recordset in the Open event of the form (DAO or ADO - I > prefer >>> DAO) using pretty much the same SQL or query as you would for your Record >>> Source in a bound form. >>> 3. Add a module to put the fields from the current record of the > recordset >>> into the text boxes which you can call whenever you want to display the > data >>> on your form. >>> 4. Add a module to put the values in the text boxes into the fields of > the >>> current record (in DAO use .Edit or .Add and .Update) which you can call >>> whenever you want to write the textbox values back to the table. >>> 5. I always put my own navigation buttons on the unbound for - First, > Last, >>> Next, Previous with Click events that move the recordset point >>> appropriately. >>> >>> HTH >>> >>> Rocky Smolin >>> Beach Access Software >>> 858-259-4334 >>> www.e-z-mrp.com >>> www.bchacc.com >>> >>> >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence >>> Sent: Monday, June 09, 2008 5:38 PM >>> To: 'Access Developers discussion and problem solving' >>> Subject: Re: [AccessD] VBA Unbound data entry / update form >>> >>> Hi Jennifer: >>> >>> I have no idea how to create bound Access forms. ;-) The last bound > database >>> that I have worked with was back in '97. >>> >>> Jim >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross >>> Sent: Tuesday, May 27, 2008 5:12 PM >>> To: 'Access Developers discussion and problem solving' >>> Subject: Re: [AccessD] VBA Unbound data entry / update form >>> >>> I have no idea how to create an unbound form in Access. I always use > bound >>> forms. Though I would be interested to know how it's done. Unless I've > got >>> it wrong, that seems to be the basic question here - For those of you who > do >>> it, how do you create an unbound form? How do you populate the textboxes >>> initially and then how do you save the information back to the tables? >>> >>> It's beginning to sound like nobody really does it. >>> >>> Jennifer >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >>> Sent: Tuesday, May 27, 2008 2:49 PM >>> To: Access Developers discussion and problem solving >>> Subject: Re: [AccessD] VBA Unbound data entry / update form >>> >>>> 1) If your situation gives you the choice between Access and SQL Server, >>> then you can use SQL Server Express. For your customer's benefit - it's >>> free! >>> >>> I know that, and you know that, but they have used an MDB BE for most of > a >>> decade. SQL Server is the great unknown. >>> >>>> 2) How many concurrent users? Too Many? >>> >>> In the majority of cases, no. There ARE specific places where too many >>> users cause mysterious issues with an MDB. >>> Memos are written in "pages", as are indexes. If you open a record and >>> start to edit it, it "locks" an entire "page" of the index structure or > the >>> memo area, which locks not just your record but potentially many others. >>> >>> This simply doesn't happen in SQL Server because SQL Server doesn't have >>> this "page" system for storing memo fields etc. >>> >>>> 3) How many indexes on the tables? >>> >>> Not the point, the point is that ALL indexes are stored in Index pages, > and >>> entire pages of indexs can be locked by a single edit. >>> >>> Creating / using Indexes should be determined by need, not arcane locking >>> issues within Jet. >>> >>>> 4) Are you starting up by setting a recordset to open and leaving it > that >>> way? >>> >>> If you are talking about creating and holding locks on the BE, yes I am, > but >>> that isn't the issue either. >>> >>> John W. Colby >>> www.ColbyConsulting.com >>> >>> >>> Dan Waters wrote: >>>> John - I've been reading this with interest: >>>> >>>> 1) If your situation gives you the choice between Access and SQL >>>> Server, then you can use SQL Server Express. For your customer's >>>> benefit - it's free! >>>> >>>> 2) How many concurrent users? Too Many? >>>> >>>> 3) How many indexes on the tables? I actually only use the primary >>>> key as an index on every table. More indexes slows down writing >>> performance. >>>> 4) Are you starting up by setting a recordset to open and leaving it >>>> that way? This greatly reduces 'churn' in the locking database. When >>>> I set this up all my users reported a significant performance > improvement. >>> Code below: >>>> > '------------------------------------------------------------------------ >>>> Dim stgConnect As String >>>> Dim dbs As DAO.Database >>>> Dim tdf As DAO.TableDef >>>> >>>> stgConnect = BEFullPath >>>> Set dbs = DBEngine(0)(0) >>>> Set tdf = dbs.TableDefs("tblConnect") >>>> If tdf.Connect <> ";Database=" & stgConnect Then >>>> tdf.Connect = ";Database=" & stgConnect >>>> tdf.RefreshLink >>>> End If >>>> dbs.Close >>>> >>>> Set GrstConnect = DBEngine(0)(0).OpenRecordset("tblConnect", >>>> dbOpenSnapshot) >>>> '--------------------------------------------------------------------- >>>> --- >>>> >>>> Notes: BEFullPath is a function to return the full path to the BE. >>>> tblConnect is a one row one field table in the BE. >>>> The table link is refreshed because the table link is in a >>> library. >>>> GrstConnect is a globally defined DAO recordset. >>>> GrstConnect remains open until just before the database is closed. >>>> >>>> Good Luck! >>>> Dan >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >>> No virus found in this incoming message. >>> Checked by AVG. >>> Version: 8.0.100 / Virus Database: 270.1.0/1492 - Release Date: 9/6/2008 >>> 10:29 >>> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > _________________________________________________________________ > Search that pays you back! Introducing Live Search cashback. > http://search.live.com/cashback/?&pkw=form=MIJAAF/publ=HMTGL/crea=srchpaysyo > uback > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ Now you can invite friends from Facebook and other groups to join you on Windows Live? Messenger. Add now. https://www.invite2messenger.net/im/?source=TXT_EML_WLH_AddNow_Now From cfoust at infostatsystems.com Tue Jun 10 12:55:34 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 10 Jun 2008 10:55:34 -0700 Subject: [AccessD] A better picture? Runtime In-Reply-To: <7E02B06E41E5404589EDDDA2BAA1C5A8157A98@sanex101.nciinc.com> References: <49DFE57FB126044B8A8B934E7AEA09ED09FD745A@WPEXCH05.colesmyer.ad.cmltd.net.au><0K1M00FK7ZYD0N80@vms173001.mailsrvcs.net><7E02B06E41E5404589EDDDA2BAA1C5A8157A94@sanex101.nciinc.com><7E02B06E41E5404589EDDDA2BAA1C5A8157A97@sanex101.nciinc.com> <7E02B06E41E5404589EDDDA2BAA1C5A8157A98@sanex101.nciinc.com> Message-ID: Sorry, but the runtime did NOT come with Office 2003 Pro, it came with VSTO 2003, which was a separate product, not part of Office. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hewson, Jim Sent: Tuesday, June 10, 2008 8:51 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A better picture? Runtime I have all that... I still couldn't figure out how to do it... Oh well, the 2007 runtime works. Jim jhewson at nciinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Tuesday, June 10, 2008 10:43 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A better picture? Runtime The runtime comes with Office 2003 Pro...the license/ability to distribute comes with VS 2005. I think they just want to make it confusing. Mark > Date: Tue, 10 Jun 2008 09:55:21 -0500 > From: JHewson at nciinc.com > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] A better picture? Runtime > > I have VS 2005, MSDN, but I couldn't find the runtime for 2003. > Even downloading the Office Extensions wouldn't work. > What I ended up doing was downloading the AccessRuntime install for 2007. > I then used VM for a test bed. I installed the runtime, dropped an Access database created in 2003 (2000 file format) on the desktop and it worked. I still need to do a little more testing before I'm comfortable with deploying a database. > > Thanks, > > Jim > jhewson at nciinc.com > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > Sent: Tuesday, June 10, 2008 9:46 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] A better picture? Runtime > > > Jim, > > My final understanding (my guess) is that you need Office 2003 Pro... then seperately you need the developer extensions, which are no longer available...but are included with Visual Studio 2005 ( NOT 2nd edition)...also no longer available. > > I finally found someone who had packaged just the runtime...so I downloaded theirs...and it seemd to work. > > Thanks, > > Mark A. Matte > > >> Date: Tue, 10 Jun 2008 07:59:11 -0500 >> From: JHewson at nciinc.com >> To: accessd at databaseadvisors.com >> Subject: Re: [AccessD] A better picture? Runtime >> >> Mark, >> I'm curious. Did you find the runtime? >> >> Jim >> jhewson at nciinc.com >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >> Sent: Thursday, May 29, 2008 2:33 PM >> To: Access Developers discussion and problem solving >> Subject: [AccessD] A better picture? Runtime >> >> >> Hello All, >> >> A client is creating databases in 2003 and would like to utilize the runtime for other machines in the office. I keep running into walls(online) in finding the runtime. I have found websites that say the runtime comes with Office2003 Pro...which he has...but you need the Developer extensions to deploy it. When I search for the extensions...it points to Visual studio 2005? >> >> Paying is not the issue...If I need the 2003 Runtime...anyone know where I can buy it...and what it is currently called? >> >> Thanks, >> >> Mark A. Matte >> >> >> >> _________________________________________________________________ >> E-mail for the greater good. Join the i'm Initiative from Microsoft. >> http://im.live.com/Messenger/IM/Join/Default.aspx?source=EML_WL_ GreaterGood >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> ######################################################################## ######## >> >> This email transmission contains information from NCI Information Systems, Inc. >> that may be considered privileged or confidential and is intended solely for the >> named recipient. If you have received this message in error, please contact the >> sender immediately and be aware that the use, copying or dissemination of this >> information is prohibited. >> >> ######################################################################## ######## >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > _________________________________________________________________ > Instantly invite friends from Facebook and other social networks to join you on Windows Live(tm) Messenger. > https://www.invite2messenger.net/im/?source=TXT_EML_WLH_InviteFriends > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ######################################################################## ######## > > This email transmission contains information from NCI Information Systems, Inc. > that may be considered privileged or confidential and is intended solely for the > named recipient. If you have received this message in error, please contact the > sender immediately and be aware that the use, copying or dissemination of this > information is prohibited. > > ######################################################################## ######## > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ Search that pays you back! Introducing Live Search cashback. http://search.live.com/cashback/?&pkw=form=MIJAAF/publ=HMTGL/crea=srchpa ysyouback -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ######################################################################## ######## This email transmission contains information from NCI Information Systems, Inc. that may be considered privileged or confidential and is intended solely for the named recipient. If you have received this message in error, please contact the sender immediately and be aware that the use, copying or dissemination of this information is prohibited. ######################################################################## ######## -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Jun 10 12:56:59 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 10 Jun 2008 13:56:59 -0400 Subject: [AccessD] VBA Unbound data entry / update form In-Reply-To: References: Message-ID: <484EC06B.5040702@colbyconsulting.com> > Yes, I did, you just ignored it. Drew, you may believe me that I ignore NOTHING of value. I didn't get where I am by turning down free value. Take whatever it is you are about to "give me". I can copy fields from a record to controls and back again. I can build "transactions". >>>>>>>>>>>>>>>>> What I have never done is build a coherent strategy for testing edited data against the current data in the same record being edited and handling edit collisions in a responsible manner, without the use of locks. >>>>>>>>>>>>>>>>> If your example demonstrates that then I will examine it, else you are not answering the question I asked (again). Since you say right up front that it is a single user system... I have to assume that you are not answering the question I asked (again!). I am happy that you are happy with your solution to your problem, but it is not a solution to my problem. But I really do appreciate your showing it to us. I am sure that there are many people (myself included) that may experience that problem some day and will be very interested in your solution. In fact I may very well be building a mini book keeping system very soon where "transactions" are the answer and edits are not allowed. There are MANY different reasons for building unbound forms. I have built unbound forms for criteria selection for example. Not what you think of as an "unbound form" but in fact it is not bound to anything so it is technically an unbound form. Unfortunately that was not MY question (and this was after all MY thread). You have demonstrated ANOTHER use for unbound forms, but again, it does not address MY question. John W. Colby www.ColbyConsulting.com Drew Wutka wrote: > Yes, I did, you just ignored it. > > However, I just posted an example. It was built for one user to use. > Though to make it multi user wouldn't have been very difficult. It > would simply require a little extra to 'alert' other open instances to > updates (using TCP/IP broadcasts, pretty simple, but wasn't needed when > that application was built). > > Drew From cfoust at infostatsystems.com Tue Jun 10 12:58:41 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 10 Jun 2008 10:58:41 -0700 Subject: [AccessD] VBA Unbound data entry / update form In-Reply-To: <484EB2F9.2060602@colbyconsulting.com> References: <483C8FF5.1040407@colbyconsulting.com><0K1J00I84V5QZ1U0@vms044.mailsrvcs.net> <02034CB1BB2E4ECE9DE313D2E38175AE@creativesystemdesigns.com><015b01c8cb09$028a2050$0301a8c0@HAL9005> <484EA693.6090509@colbyconsulting.com><017601c8cb19$a82dbd90$0301a8c0@HAL9005> <484EB2F9.2060602@colbyconsulting.com> Message-ID: Hah! You want code, write your own!! LOL You want code that will work as if the thing was bound. Not gonna happen, roll your sleeves up. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, June 10, 2008 10:00 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VBA Unbound data entry / update form LOL, OK. The devil is in the details after all. I am not really interested in locking. In my understanding of unbound forms, you don't hold locks, and if you are, you might as well go bound. Which leads us squarely back to update strategies, and testing for modifications by other users. All that good stuff that the "unbounders" claim to handle but have never piped up with even general strategies, never mind code. John W. Colby www.ColbyConsulting.com Rocky Smolin at Beach Access Software wrote: > Not ignoring. It wasn't an exhaustive treatise on the subject. Just > a 'how to get started'. Locking: you have to look up record and page > locking stuff for DAO. > > > Rocky Smolin > Beach Access Software > 858-259-4334 > www.e-z-mrp.com > www.bchacc.com > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Tuesday, June 10, 2008 9:07 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] VBA Unbound data entry / update form > > Rocky, > > I hate to jump all over your method because I want a method to use, > but you are completely ignoring locking / update issues. What > happened if another user updated the record between the time you > loaded yours and the time you write it back? > > John W. Colby > www.ColbyConsulting.com > > > Rocky Smolin at Beach Access Software wrote: >> I know how to make an unbound form but I haven't got enough nerve to >> present such heresy - it runs counter to strongly held religious beliefs. >> >> OK - briefly - but you didn't hear it from me. >> >> 1. Design your form as you would a bound form but no Control Source >> in the text boxes. >> 2. Create a recordset in the Open event of the form (DAO or ADO - I >> prefer >> DAO) using pretty much the same SQL or query as you would for your >> Record Source in a bound form. >> 3. Add a module to put the fields from the current record of the >> recordset into the text boxes which you can call whenever you want to >> display the data on your form. >> 4. Add a module to put the values in the text boxes into the fields >> of the current record (in DAO use .Edit or .Add and .Update) which >> you can call whenever you want to write the textbox values back to the table. >> 5. I always put my own navigation buttons on the unbound for - First, >> Last, Next, Previous with Click events that move the recordset point >> appropriately. >> >> HTH >> >> Rocky Smolin >> Beach Access Software >> 858-259-4334 >> www.e-z-mrp.com >> www.bchacc.com >> >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim >> Lawrence >> Sent: Monday, June 09, 2008 5:38 PM >> To: 'Access Developers discussion and problem solving' >> Subject: Re: [AccessD] VBA Unbound data entry / update form >> >> Hi Jennifer: >> >> I have no idea how to create bound Access forms. ;-) The last bound >> database that I have worked with was back in '97. >> >> Jim >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer >> Gross >> Sent: Tuesday, May 27, 2008 5:12 PM >> To: 'Access Developers discussion and problem solving' >> Subject: Re: [AccessD] VBA Unbound data entry / update form >> >> I have no idea how to create an unbound form in Access. I always use >> bound forms. Though I would be interested to know how it's done. >> Unless I've got it wrong, that seems to be the basic question here - >> For those of you who do it, how do you create an unbound form? How >> do you populate the textboxes initially and then how do you save the > information back to the tables? >> It's beginning to sound like nobody really does it. >> >> Jennifer -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Jun 10 12:59:40 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 10 Jun 2008 13:59:40 -0400 Subject: [AccessD] VBA Unbound data entry / update form In-Reply-To: References: <483C8FF5.1040407@colbyconsulting.com><0K1J00I84V5QZ1U0@vms044.mailsrvcs.net><02034CB1BB2E4ECE9DE313D2E38175AE@creativesystemdesigns.com><015b01c8cb09$028a2050$0301a8c0@HAL9005> <484EA693.6090509@colbyconsulting.com> Message-ID: <484EC10C.5030408@colbyconsulting.com> Mark, There are lots of accounting applications that work that way. You never delete, in fact you never update. Built-in audit trail since anything EVER ENTERED is still in there. John W. Colby www.ColbyConsulting.com Mark A Matte wrote: > Dan, > > This is a PeopleSoft App...I take no responsibility for why it is built this way...but as far as your examples... > > Update multiple records: This is a CRM package...you can only update 1 record at a time. It may involve other records in other tables...but they are all accessed from a single parent record...and only that record. > > Deletes: You are not allowed to delete...end of story. > > I didn't write it...its just the way it came. > > But if you wanted to delete...you would delete all related records in other tables and then at the end...delete the single parent record. > > Clear as mud...let me know if you have any questions. > > Thanks, > > Mark A. Matte > > >> From: dwaters at usinternet.com >> To: accessd at databaseadvisors.com >> Date: Tue, 10 Jun 2008 12:23:25 -0500 >> Subject: Re: [AccessD] VBA Unbound data entry / update form >> >> Mark, >> >> I like your example for one record at a time updates. >> >> How do you handle a situation like: >> >> UPDATE tblTable Set Field = 'TRUE' _ >> WHERE Date = CurrentDate >> >> Or: >> >> DELETE * FROM tblTable _ >> WHERE Date = CurrentDate >> >> Of course, each of these examples could involve many records. >> >> Thanks! >> Dan >> >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >> Sent: Tuesday, June 10, 2008 11:51 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] VBA Unbound data entry / update form >> >> >> I can tell you how our PeopleSoft (web based) App handles it...it compares >> the last_update_timestamp...if it is the same as when you pulled your >> recordset...you get to save...if not...you lose your changes. >> >> Golden rule with the app we purchased...first person to click save...wins!!! >> >> Thanks, >> >> Mark A. Matte From cfoust at infostatsystems.com Tue Jun 10 12:59:17 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 10 Jun 2008 10:59:17 -0700 Subject: [AccessD] VBA Unbound data entry / update form In-Reply-To: References: <483C8FF5.1040407@colbyconsulting.com><0K1J00I84V5QZ1U0@vms044.mailsrvcs.net> <02034CB1BB2E4ECE9DE313D2E38175AE@creativesystemdesigns.com><015b01c8cb09$028a2050$0301a8c0@HAL9005> <484EA693.6090509@colbyconsulting.com><017601c8cb19$a82dbd90$0301a8c0@HAL9005><484EB2F9.2060602@colbyconsulting.com> Message-ID: No, Liz, just tired ....zzzzzzzzz Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Elizabeth.J.Doering at wellsfargo.com Sent: Tuesday, June 10, 2008 10:10 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] VBA Unbound data entry / update form I suspect that the unbounders on this list have all been converted and are therefore silent. :) Thanks, Liz This message may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose, or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. Thank you for your cooperation. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, June 10, 2008 12:00 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VBA Unbound data entry / update form LOL, OK. The devil is in the details after all. I am not really interested in locking. In my understanding of unbound forms, you don't hold locks, and if you are, you might as well go bound. Which leads us squarely back to update strategies, and testing for modifications by other users. All that good stuff that the "unbounders" claim to handle but have never piped up with even general strategies, never mind code. John W. Colby www.ColbyConsulting.com Rocky Smolin at Beach Access Software wrote: > Not ignoring. It wasn't an exhaustive treatise on the subject. Just > a 'how to get started'. Locking: you have to look up record and page > locking stuff for DAO. > > > Rocky Smolin > Beach Access Software > 858-259-4334 > www.e-z-mrp.com > www.bchacc.com > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Tuesday, June 10, 2008 9:07 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] VBA Unbound data entry / update form > > Rocky, > > I hate to jump all over your method because I want a method to use, > but you are completely ignoring locking / update issues. What > happened if another user updated the record between the time you > loaded yours and the time you write it back? > > John W. Colby > www.ColbyConsulting.com > > > Rocky Smolin at Beach Access Software wrote: >> I know how to make an unbound form but I haven't got enough nerve to >> present such heresy - it runs counter to strongly held religious beliefs. >> >> OK - briefly - but you didn't hear it from me. >> >> 1. Design your form as you would a bound form but no Control Source >> in the text boxes. >> 2. Create a recordset in the Open event of the form (DAO or ADO - I >> prefer >> DAO) using pretty much the same SQL or query as you would for your >> Record Source in a bound form. >> 3. Add a module to put the fields from the current record of the >> recordset into the text boxes which you can call whenever you want to >> display the data on your form. >> 4. Add a module to put the values in the text boxes into the fields >> of the current record (in DAO use .Edit or .Add and .Update) which >> you can call whenever you want to write the textbox values back to the table. >> 5. I always put my own navigation buttons on the unbound for - First, >> Last, Next, Previous with Click events that move the recordset point >> appropriately. >> >> HTH >> >> Rocky Smolin >> Beach Access Software >> 858-259-4334 >> www.e-z-mrp.com >> www.bchacc.com >> >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim >> Lawrence >> Sent: Monday, June 09, 2008 5:38 PM >> To: 'Access Developers discussion and problem solving' >> Subject: Re: [AccessD] VBA Unbound data entry / update form >> >> Hi Jennifer: >> >> I have no idea how to create bound Access forms. ;-) The last bound >> database that I have worked with was back in '97. >> >> Jim >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer >> Gross >> Sent: Tuesday, May 27, 2008 5:12 PM >> To: 'Access Developers discussion and problem solving' >> Subject: Re: [AccessD] VBA Unbound data entry / update form >> >> I have no idea how to create an unbound form in Access. I always use >> bound forms. Though I would be interested to know how it's done. >> Unless I've got it wrong, that seems to be the basic question here - >> For those of you who do it, how do you create an unbound form? How >> do you populate the textboxes initially and then how do you save the > information back to the tables? >> It's beginning to sound like nobody really does it. >> >> Jennifer -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Jun 10 13:00:37 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 10 Jun 2008 11:00:37 -0700 Subject: [AccessD] VBA Unbound data entry / update form In-Reply-To: <484EBBA3.2060509@colbyconsulting.com> References: <483C8FF5.1040407@colbyconsulting.com><0K1J00I84V5QZ1U0@vms044.mailsrvcs.net> <02034CB1BB2E4ECE9DE313D2E38175AE@creativesystemdesigns.com><015b01c8cb09$028a2050$0301a8c0@HAL9005> <484EA693.6090509@colbyconsulting.com><017601c8cb19$a82dbd90$0301a8c0@HAL9005> <484EB2F9.2060602@colbyconsulting.com> <484EBBA3.2060509@colbyconsulting.com> Message-ID: Only if they were still working in Access! Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, June 10, 2008 10:37 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VBA Unbound data entry / update form > I suspect that the unbounders on this list have all been converted and are therefore silent. :) ROTFLMAO. I kind of doubt it. I suspect there are several classes of unbounders hiding out there, those that... 1) Don't handle it and don't want to admit it. 2) Handle it but the code was reaaaaaaaaallllllly messy and don't want to admit it. 3) Use "first wins" strategy and don't want to admit it. 4) Spent so much time and effort doing it correctly that they don't really want to give their work away. I come to this conclusion because if they handled it correctly, and the code was neat and tidy, then they would be popping up all over like proud papas to show us their beautiful baby. John W. Colby www.ColbyConsulting.com Elizabeth.J.Doering at wellsfargo.com wrote: > I suspect that the unbounders on this list have all been converted and > are therefore silent. :) > > > Thanks, > > > Liz -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Tue Jun 10 13:04:02 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 10 Jun 2008 13:04:02 -0500 Subject: [AccessD] VBA Unbound data entry / update form In-Reply-To: <484EBBA3.2060509@colbyconsulting.com> Message-ID: Sigh.... JWC, please just stop. This is getting annoying. I've posted over and over that you have a gross conceptual error when it comes to unbound forms. An unbound form is NOT meant to replace a bound form. It is meant to do it's own job. If you want an application, where multiple users are changing the same field over and over, stick to a bound form. If you want an application where the forms are tied to straight forward table structures, and any fancy structure quirks can be handled by a query, again, stick with a bound form. If you want a form that has all of the bells and whistles of a bound form, STICK WITH A BOUND FORM! Unbound is the way to go when you build complex structures that aren't as easy to represent with just a query. Unbound forms are meant for systems where you NEVER have 2 people editing the same field (because the structure is designed to have 'multiple' entries put in multiple records, not the same field). I just posted an example of an unbound form. It was meant for a single user, but the core could be used in a multi-user environment without a hassle. One user 'moving' inventory wouldn't interfere with another, because the transactions are new records. Changes in a site name (which you wouldn't have User A 'deciding' to change the same site name that User B wants to change) are irrelevant because of that. You started this latest bound/unbound debate about a limitation with memo fields and bound forms. I CLEARLY explained HOW to fix your problem in an unbound method. You whined about having to stick with a faulty table structure. Fine, stick with the faulty table structure, and quick trying to egg on developers who took one look at the process you are trying to fix and said 'well here's your problem'. It's beneath you. (or should be) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, June 10, 2008 12:37 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VBA Unbound data entry / update form > I suspect that the unbounders on this list have all been converted and are therefore silent. :) ROTFLMAO. I kind of doubt it. I suspect there are several classes of unbounders hiding out there, those that... 1) Don't handle it and don't want to admit it. 2) Handle it but the code was reaaaaaaaaallllllly messy and don't want to admit it. 3) Use "first wins" strategy and don't want to admit it. 4) Spent so much time and effort doing it correctly that they don't really want to give their work away. I come to this conclusion because if they handled it correctly, and the code was neat and tidy, then they would be popping up all over like proud papas to show us their beautiful baby. John W. Colby www.ColbyConsulting.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From markamatte at hotmail.com Tue Jun 10 13:09:42 2008 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 10 Jun 2008 18:09:42 +0000 Subject: [AccessD] A better picture? Runtime In-Reply-To: References: <49DFE57FB126044B8A8B934E7AEA09ED09FD745A@WPEXCH05.colesmyer.ad.cmltd.net.au><0K1M00FK7ZYD0N80@vms173001.mailsrvcs.net><7E02B06E41E5404589EDDDA2BAA1C5A8157A94@sanex101.nciinc.com><7E02B06E41E5404589EDDDA2BAA1C5A8157A97@sanex101.nciinc.com> <7E02B06E41E5404589EDDDA2BAA1C5A8157A98@sanex101.nciinc.com> Message-ID: One of the MS site said Office Pro...this one says retail product.... http://office.microsoft.com/en-us/access/HA011208861033.aspx "How to obtain the runtime and license The Access runtime software and the royalty-free Access runtime license formerly shipped as part of a Microsoft Office Developer (MOD) product with earlier versions of Microsoft Office. For Access 2003, the Access runtime software is shipped with the Microsoft Office Access 2003 retail product, and the royalty-free Access runtime license is a component of the Access 2003 Developer Extensions. Even though the runtime software is included in the Microsoft Office Access 2003 retail product, the right to distribute the runtime is not included. You must purchase the Access 2003 Developer Extensions to obtain a royalty-free license to package and distribute the runtime." Either way...it is still a beast to find/purchase the necessary pieces for 2003 runtime. Even listed above...you can no longer purchase the extensions... Mark A. Matte > Date: Tue, 10 Jun 2008 10:55:34 -0700 > From: cfoust at infostatsystems.com > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] A better picture? Runtime > > Sorry, but the runtime did NOT come with Office 2003 Pro, it came with > VSTO 2003, which was a separate product, not part of Office. > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hewson, Jim > Sent: Tuesday, June 10, 2008 8:51 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] A better picture? Runtime > > I have all that... > I still couldn't figure out how to do it... > Oh well, the 2007 runtime works. > > Jim > jhewson at nciinc.com > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > Sent: Tuesday, June 10, 2008 10:43 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] A better picture? Runtime > > > The runtime comes with Office 2003 Pro...the license/ability to > distribute comes with VS 2005. > > I think they just want to make it confusing. > > Mark > > >> Date: Tue, 10 Jun 2008 09:55:21 -0500 >> From: JHewson at nciinc.com >> To: accessd at databaseadvisors.com >> Subject: Re: [AccessD] A better picture? Runtime >> >> I have VS 2005, MSDN, but I couldn't find the runtime for 2003. >> Even downloading the Office Extensions wouldn't work. >> What I ended up doing was downloading the AccessRuntime install for > 2007. >> I then used VM for a test bed. I installed the runtime, dropped an > Access database created in 2003 (2000 file format) on the desktop and it > worked. I still need to do a little more testing before I'm comfortable > with deploying a database. >> >> Thanks, >> >> Jim >> jhewson at nciinc.com >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >> Sent: Tuesday, June 10, 2008 9:46 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] A better picture? Runtime >> >> >> Jim, >> >> My final understanding (my guess) is that you need Office 2003 Pro... > then seperately you need the developer extensions, which are no longer > available...but are included with Visual Studio 2005 ( NOT 2nd > edition)...also no longer available. >> >> I finally found someone who had packaged just the runtime...so I > downloaded theirs...and it seemd to work. >> >> Thanks, >> >> Mark A. Matte >> >> >>> Date: Tue, 10 Jun 2008 07:59:11 -0500 >>> From: JHewson at nciinc.com >>> To: accessd at databaseadvisors.com >>> Subject: Re: [AccessD] A better picture? Runtime >>> >>> Mark, >>> I'm curious. Did you find the runtime? >>> >>> Jim >>> jhewson at nciinc.com >>> >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >>> Sent: Thursday, May 29, 2008 2:33 PM >>> To: Access Developers discussion and problem solving >>> Subject: [AccessD] A better picture? Runtime >>> >>> >>> Hello All, >>> >>> A client is creating databases in 2003 and would like to utilize the > runtime for other machines in the office. I keep running into > walls(online) in finding the runtime. I have found websites that say the > runtime comes with Office2003 Pro...which he has...but you need the > Developer extensions to deploy it. When I search for the extensions...it > points to Visual studio 2005? >>> >>> Paying is not the issue...If I need the 2003 Runtime...anyone know > where I can buy it...and what it is currently called? >>> >>> Thanks, >>> >>> Mark A. Matte >>> >>> >>> >>> _________________________________________________________________ >>> E-mail for the greater good. Join the i'm Initiative from Microsoft. >>> http://im.live.com/Messenger/IM/Join/Default.aspx?source=EML_WL_ > GreaterGood >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> > ######################################################################## > ######## >>> >>> This email transmission contains information from NCI Information > Systems, Inc. >>> that may be considered privileged or confidential and is intended > solely for the >>> named recipient. If you have received this message in error, please > contact the >>> sender immediately and be aware that the use, copying or > dissemination of this >>> information is prohibited. >>> >>> > ######################################################################## > ######## >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >> >> _________________________________________________________________ >> Instantly invite friends from Facebook and other social networks to > join you on Windows Live(tm) Messenger. >> https://www.invite2messenger.net/im/?source=TXT_EML_WLH_InviteFriends >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > ######################################################################## > ######## >> >> This email transmission contains information from NCI Information > Systems, Inc. >> that may be considered privileged or confidential and is intended > solely for the >> named recipient. If you have received this message in error, please > contact the >> sender immediately and be aware that the use, copying or dissemination > of this >> information is prohibited. >> >> > ######################################################################## > ######## >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > _________________________________________________________________ > Search that pays you back! Introducing Live Search cashback. > http://search.live.com/cashback/?&pkw=form=MIJAAF/publ=HMTGL/crea=srchpa > ysyouback > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ######################################################################## > ######## > > This email transmission contains information from NCI Information > Systems, Inc. > that may be considered privileged or confidential and is intended solely > for the > named recipient. If you have received this message in error, please > contact the > sender immediately and be aware that the use, copying or dissemination > of this > information is prohibited. > > ######################################################################## > ######## > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ Now you can invite friends from Facebook and other groups to join you on Windows Live? Messenger. Add now. https://www.invite2messenger.net/im/?source=TXT_EML_WLH_AddNow_Now From cfoust at infostatsystems.com Tue Jun 10 13:15:43 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 10 Jun 2008 11:15:43 -0700 Subject: [AccessD] A better picture? Runtime In-Reply-To: References: <49DFE57FB126044B8A8B934E7AEA09ED09FD745A@WPEXCH05.colesmyer.ad.cmltd.net.au><0K1M00FK7ZYD0N80@vms173001.mailsrvcs.net><7E02B06E41E5404589EDDDA2BAA1C5A8157A94@sanex101.nciinc.com><7E02B06E41E5404589EDDDA2BAA1C5A8157A97@sanex101.nciinc.com><7E02B06E41E5404589EDDDA2BAA1C5A8157A98@sanex101.nciinc.com> Message-ID: And the Access Developer Extensions were in the VSTO 2003. I misspoke on the runtime itself, which came with Office Pro. The problem was that you couldn't USE the blasted runtime without the VSTO. I had both. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Tuesday, June 10, 2008 11:10 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] A better picture? Runtime One of the MS site said Office Pro...this one says retail product.... http://office.microsoft.com/en-us/access/HA011208861033.aspx "How to obtain the runtime and license The Access runtime software and the royalty-free Access runtime license formerly shipped as part of a Microsoft Office Developer (MOD) product with earlier versions of Microsoft Office. For Access 2003, the Access runtime software is shipped with the Microsoft Office Access 2003 retail product, and the royalty-free Access runtime license is a component of the Access 2003 Developer Extensions. Even though the runtime software is included in the Microsoft Office Access 2003 retail product, the right to distribute the runtime is not included. You must purchase the Access 2003 Developer Extensions to obtain a royalty-free license to package and distribute the runtime." Either way...it is still a beast to find/purchase the necessary pieces for 2003 runtime. Even listed above...you can no longer purchase the extensions... Mark A. Matte > Date: Tue, 10 Jun 2008 10:55:34 -0700 > From: cfoust at infostatsystems.com > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] A better picture? Runtime > > Sorry, but the runtime did NOT come with Office 2003 Pro, it came with > VSTO 2003, which was a separate product, not part of Office. > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hewson, Jim > Sent: Tuesday, June 10, 2008 8:51 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] A better picture? Runtime > > I have all that... > I still couldn't figure out how to do it... > Oh well, the 2007 runtime works. > > Jim > jhewson at nciinc.com > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A > Matte > Sent: Tuesday, June 10, 2008 10:43 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] A better picture? Runtime > > > The runtime comes with Office 2003 Pro...the license/ability to > distribute comes with VS 2005. > > I think they just want to make it confusing. > > Mark > > >> Date: Tue, 10 Jun 2008 09:55:21 -0500 >> From: JHewson at nciinc.com >> To: accessd at databaseadvisors.com >> Subject: Re: [AccessD] A better picture? Runtime >> >> I have VS 2005, MSDN, but I couldn't find the runtime for 2003. >> Even downloading the Office Extensions wouldn't work. >> What I ended up doing was downloading the AccessRuntime install for > 2007. >> I then used VM for a test bed. I installed the runtime, dropped an > Access database created in 2003 (2000 file format) on the desktop and > it worked. I still need to do a little more testing before I'm > comfortable with deploying a database. >> >> Thanks, >> >> Jim >> jhewson at nciinc.com >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A > Matte >> Sent: Tuesday, June 10, 2008 9:46 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] A better picture? Runtime >> >> >> Jim, >> >> My final understanding (my guess) is that you need Office 2003 Pro... > then seperately you need the developer extensions, which are no longer > available...but are included with Visual Studio 2005 ( NOT 2nd > edition)...also no longer available. >> >> I finally found someone who had packaged just the runtime...so I > downloaded theirs...and it seemd to work. >> >> Thanks, >> >> Mark A. Matte >> >> >>> Date: Tue, 10 Jun 2008 07:59:11 -0500 >>> From: JHewson at nciinc.com >>> To: accessd at databaseadvisors.com >>> Subject: Re: [AccessD] A better picture? Runtime >>> >>> Mark, >>> I'm curious. Did you find the runtime? >>> >>> Jim >>> jhewson at nciinc.com >>> >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A > Matte >>> Sent: Thursday, May 29, 2008 2:33 PM >>> To: Access Developers discussion and problem solving >>> Subject: [AccessD] A better picture? Runtime >>> >>> >>> Hello All, >>> >>> A client is creating databases in 2003 and would like to utilize the > runtime for other machines in the office. I keep running into > walls(online) in finding the runtime. I have found websites that say > the runtime comes with Office2003 Pro...which he has...but you need > the Developer extensions to deploy it. When I search for the > extensions...it points to Visual studio 2005? >>> >>> Paying is not the issue...If I need the 2003 Runtime...anyone know > where I can buy it...and what it is currently called? >>> >>> Thanks, >>> >>> Mark A. Matte >>> >>> >>> >>> _________________________________________________________________ >>> E-mail for the greater good. Join the i'm Initiative from Microsoft. >>> http://im.live.com/Messenger/IM/Join/Default.aspx?source=EML_WL_ > GreaterGood >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> > ###################################################################### > ## > ######## >>> >>> This email transmission contains information from NCI Information > Systems, Inc. >>> that may be considered privileged or confidential and is intended > solely for the >>> named recipient. If you have received this message in error, please > contact the >>> sender immediately and be aware that the use, copying or > dissemination of this >>> information is prohibited. >>> >>> > ###################################################################### > ## > ######## >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >> >> _________________________________________________________________ >> Instantly invite friends from Facebook and other social networks to > join you on Windows Live(tm) Messenger. >> https://www.invite2messenger.net/im/?source=TXT_EML_WLH_InviteFriends >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > ###################################################################### > ## > ######## >> >> This email transmission contains information from NCI Information > Systems, Inc. >> that may be considered privileged or confidential and is intended > solely for the >> named recipient. If you have received this message in error, please > contact the >> sender immediately and be aware that the use, copying or >> dissemination > of this >> information is prohibited. >> >> > ###################################################################### > ## > ######## >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > _________________________________________________________________ > Search that pays you back! Introducing Live Search cashback. > http://search.live.com/cashback/?&pkw=form=MIJAAF/publ=HMTGL/crea=srch > pa > ysyouback > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > ###################################################################### > ## > ######## > > This email transmission contains information from NCI Information > Systems, Inc. > that may be considered privileged or confidential and is intended > solely for the named recipient. If you have received this message in > error, please contact the sender immediately and be aware that the > use, copying or dissemination of this information is prohibited. > > ###################################################################### > ## > ######## > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ Now you can invite friends from Facebook and other groups to join you on Windows Live(tm) Messenger. Add now. https://www.invite2messenger.net/im/?source=TXT_EML_WLH_AddNow_Now -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Jun 10 13:42:32 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 10 Jun 2008 14:42:32 -0400 Subject: [AccessD] State machines Message-ID: <484ECB18.2050808@colbyconsulting.com> How many of you know what a state machine is? http://en.wikipedia.org/wiki/Finite_state_machine More generically a state machine is a structure (hardware or software) that stores the current "state" of something and uses stimuli to cause changes from the current state to some other state. State machines prevent and allow state changes from a specific state to another specific state. IOW from this state you can only move to "these other states" and which state you actually move to will be determined by something that occurred. I wrote a state machine for my disability call center software. During the processing of claims, EVENTS happen. Events can be (pretty much) anything that the client wants to call an EVENT, IOW it has to be programmable by the client. Some actual EVENTS from the event table: New Claim Notice Approve Pend Terminate Deny Re-Open Suspend Delete This Event Receive Appeal Uphold Denial Uphold Termination Transfer In Transfer Out Not Received There are MANY MANY more. Events MAY or may not cause STATUSES. Some actual statuses from the STATUS table: CS_Status None First Notice Open Pending Terminated Denied Re-Opened Suspended Received Appeal Upheld Denial Upheld Termination Transfer In Transferred Out Determined at IDE Archived Not Received Now, obviously EVENTS and STATUSES are NOT the same thing. Events MAY CAUSE a status change, however there are RULES about what STATUS can be "moved to" from the current status. For example you cannot go to the CLOSED status unless the claim is OPEN. You cannot RE-OPEN a claim that is ALREADY in the OPEN state. APPEAL can move to UPHELD DENIAL, UPHELD TERMINATION or OPEN, and so forth. So you have to have a transition table that maps the current status to "POSSIBLE" status, IOW "where can you go from here". You also have a stimulus table that maps "this event can cause this status (or causes NO status change)". An OPEN event causes an OPEN status, but a "DOCUMENT RECEIVED" or a "LETTER SENT" event does not cause a status change. And finally you have a table that says "this event can happen when in this state". Then of course you have a class system that enforces the rules. It loads all of the tables into class instances which are then stored in collections. The tables are "the rules" for the state machine and are fully programmable by the client. The user is presented a list of "possible events" in a combo box. Basically the current status is discovered and used to filter the list of events to those that can occur in that state. The user can therefore only select an event if the system says that it can occur while in the current state. State machines are wonderful devices for mapping business rules where "this process can only happen in these cases". In my case, there is a table of events that have occurred in the claim. These events display the entire history of the claim and are the focal point of the claim processing. The events channel the user, allowing them to do what makes sense given where we are in the processing sequence, and preventing doing things that make no sense given the current state of the claim process. The user can examine the event table and see what events have transpired, the sequence of events, the dates, memos about those events etc. We even create events from outside processes such as the mail merge process creates an event "letter sent" with the name of the letter, who it was sent to etc. State machines, check them out. They might just solve that thorny process control problem that you are facing. -- John W. Colby www.ColbyConsulting.com From DWUTKA at Marlow.com Tue Jun 10 13:42:43 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 10 Jun 2008 13:42:43 -0500 Subject: [AccessD] VBA Unbound data entry / update form In-Reply-To: <484EC06B.5040702@colbyconsulting.com> Message-ID: "What I have never done is build a coherent strategy for testing edited data against the current data in the same record being edited and handling edit collisions in a responsible manner, without the use of locks." JC, I explained this before. In quite lengthy terms. Let me try to summarize. #1. You should NEVER have two users trying to edit the same field in the same record at the same time, where BOTH values being entered are correct. (ie, there should only be one right 'Last Name' for a person, yes, it may change, but there is only one correct value for it) #2. You MAY have two people changing different fields in the same record. Not ideal, but granted, some systems may require this ability. To handle #2 is not very difficult. Especially if you have a few tools that help you build your data class/collection class modules. Build a Field Class that lets you put a field name, a current value and a new value. Then when you build your data class, create a field collection in it, populated with a FieldClass object for each datafield. On the Property Let statements, set the Data Class's internal variable's value, and the NewValue of your FieldClass object (for that field). (Set a 'ValueHasChanged' property in the FieldClass (returning true if newvalue isn't blank). Whalla, when you go to save the data for your collection class, just loop through your field collection, and if 'ValueHasChanged', THEN update that field, otherwise, leave it alone. Problem solved. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, June 10, 2008 12:57 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VBA Unbound data entry / update form > Yes, I did, you just ignored it. Drew, you may believe me that I ignore NOTHING of value. I didn't get where I am by turning down free value. Take whatever it is you are about to "give me". I can copy fields from a record to controls and back again. I can build "transactions". >>>>>>>>>>>>>>>>> What I have never done is build a coherent strategy for testing edited data against the current data in the same record being edited and handling edit collisions in a responsible manner, without the use of locks. >>>>>>>>>>>>>>>>> If your example demonstrates that then I will examine it, else you are not answering the question I asked (again). Since you say right up front that it is a single user system... I have to assume that you are not answering the question I asked (again!). I am happy that you are happy with your solution to your problem, but it is not a solution to my problem. But I really do appreciate your showing it to us. I am sure that there are many people (myself included) that may experience that problem some day and will be very interested in your solution. In fact I may very well be building a mini book keeping system very soon where "transactions" are the answer and edits are not allowed. There are MANY different reasons for building unbound forms. I have built unbound forms for criteria selection for example. Not what you think of as an "unbound form" but in fact it is not bound to anything so it is technically an unbound form. Unfortunately that was not MY question (and this was after all MY thread). You have demonstrated ANOTHER use for unbound forms, but again, it does not address MY question. John W. Colby www.ColbyConsulting.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From jwcolby at colbyconsulting.com Tue Jun 10 13:44:26 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 10 Jun 2008 14:44:26 -0400 Subject: [AccessD] VBA Unbound data entry / update form In-Reply-To: References: <483C8FF5.1040407@colbyconsulting.com><0K1J00I84V5QZ1U0@vms044.mailsrvcs.net> <02034CB1BB2E4ECE9DE313D2E38175AE@creativesystemdesigns.com><015b01c8cb09$028a2050$0301a8c0@HAL9005> <484EA693.6090509@colbyconsulting.com><017601c8cb19$a82dbd90$0301a8c0@HAL9005> <484EB2F9.2060602@colbyconsulting.com> Message-ID: <484ECB8A.2010606@colbyconsulting.com> > You want code that will work as if the thing was bound. Not gonna happen, roll your sleeves up. I never asked for that, nor do I expect that to happen, your code or mine. Unbound using no locks simply cannot function in the same manner as a bound form creating locks. John W. Colby www.ColbyConsulting.com Charlotte Foust wrote: > Hah! You want code, write your own!! LOL > > You want code that will work as if the thing was bound. Not gonna > happen, roll your sleeves up. > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Tuesday, June 10, 2008 10:00 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] VBA Unbound data entry / update form > > LOL, OK. The devil is in the details after all. > > I am not really interested in locking. In my understanding of unbound > forms, you don't hold locks, and if you are, you might as well go bound. > > Which leads us squarely back to update strategies, and testing for > modifications by other users. All that good stuff that the "unbounders" > claim to handle but have never piped up with even general strategies, > never mind code. > > John W. Colby > www.ColbyConsulting.com > > > Rocky Smolin at Beach Access Software wrote: >> Not ignoring. It wasn't an exhaustive treatise on the subject. Just >> a 'how to get started'. Locking: you have to look up record and page > >> locking stuff for DAO. >> >> >> Rocky Smolin >> Beach Access Software >> 858-259-4334 >> www.e-z-mrp.com >> www.bchacc.com >> >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: Tuesday, June 10, 2008 9:07 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] VBA Unbound data entry / update form >> >> Rocky, >> >> I hate to jump all over your method because I want a method to use, >> but you are completely ignoring locking / update issues. What >> happened if another user updated the record between the time you >> loaded yours and the time you write it back? >> >> John W. Colby >> www.ColbyConsulting.com >> >> >> Rocky Smolin at Beach Access Software wrote: >>> I know how to make an unbound form but I haven't got enough nerve to >>> present such heresy - it runs counter to strongly held religious > beliefs. >>> OK - briefly - but you didn't hear it from me. >>> >>> 1. Design your form as you would a bound form but no Control Source >>> in the text boxes. >>> 2. Create a recordset in the Open event of the form (DAO or ADO - I >>> prefer >>> DAO) using pretty much the same SQL or query as you would for your >>> Record Source in a bound form. >>> 3. Add a module to put the fields from the current record of the >>> recordset into the text boxes which you can call whenever you want to > >>> display the data on your form. >>> 4. Add a module to put the values in the text boxes into the fields >>> of the current record (in DAO use .Edit or .Add and .Update) which >>> you can call whenever you want to write the textbox values back to > the table. >>> 5. I always put my own navigation buttons on the unbound for - First, > >>> Last, Next, Previous with Click events that move the recordset point >>> appropriately. >>> >>> HTH >>> >>> Rocky Smolin >>> Beach Access Software >>> 858-259-4334 >>> www.e-z-mrp.com >>> www.bchacc.com >>> >>> >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim >>> Lawrence >>> Sent: Monday, June 09, 2008 5:38 PM >>> To: 'Access Developers discussion and problem solving' >>> Subject: Re: [AccessD] VBA Unbound data entry / update form >>> >>> Hi Jennifer: >>> >>> I have no idea how to create bound Access forms. ;-) The last bound >>> database that I have worked with was back in '97. >>> >>> Jim >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer >>> Gross >>> Sent: Tuesday, May 27, 2008 5:12 PM >>> To: 'Access Developers discussion and problem solving' >>> Subject: Re: [AccessD] VBA Unbound data entry / update form >>> >>> I have no idea how to create an unbound form in Access. I always use > >>> bound forms. Though I would be interested to know how it's done. >>> Unless I've got it wrong, that seems to be the basic question here - >>> For those of you who do it, how do you create an unbound form? How >>> do you populate the textboxes initially and then how do you save the >> information back to the tables? >>> It's beginning to sound like nobody really does it. >>> >>> Jennifer > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From max.wanadoo at gmail.com Tue Jun 10 13:46:44 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 10 Jun 2008 19:46:44 +0100 Subject: [AccessD] VBA Unbound data entry / update form In-Reply-To: References: <483C8FF5.1040407@colbyconsulting.com><0K1J00I84V5QZ1U0@vms044.mailsrvcs.net><02034CB1BB2E4ECE9DE313D2E38175AE@creativesystemdesigns.com><015b01c8cb09$028a2050$0301a8c0@HAL9005> <484EA693.6090509@colbyconsulting.com> Message-ID: <017b01c8cb2a$55a8cd10$8119fea9@LTVM> >Golden rule with the app we purchased...first person to click save...wins!!! Mark, I think you have that back to front.... The LAST person to click save wins. Everybody before gets overwritten! Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Tuesday, June 10, 2008 5:51 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VBA Unbound data entry / update form I can tell you how our PeopleSoft (web based) App handles it...it compares the last_update_timestamp...if it is the same as when you pulled your recordset...you get to save...if not...you lose your changes. Golden rule with the app we purchased...first person to click save...wins!!! Thanks, Mark A. Matte > Date: Tue, 10 Jun 2008 12:06:43 -0400 > From: jwcolby at colbyconsulting.com > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] VBA Unbound data entry / update form > > Rocky, > > I hate to jump all over your method because I want a method to use, > but you are completely ignoring locking / update issues. What happened > if another user updated the record between the time you loaded yours > and the time you write it back? > > John W. Colby > www.ColbyConsulting.com > > > Rocky Smolin at Beach Access Software wrote: >> I know how to make an unbound form but I haven't got enough nerve to >> present such heresy - it runs counter to strongly held religious beliefs. >> >> OK - briefly - but you didn't hear it from me. >> >> 1. Design your form as you would a bound form but no Control Source >> in the text boxes. >> 2. Create a recordset in the Open event of the form (DAO or ADO - I >> prefer >> DAO) using pretty much the same SQL or query as you would for your >> Record Source in a bound form. >> 3. Add a module to put the fields from the current record of the >> recordset into the text boxes which you can call whenever you want to >> display the data on your form. >> 4. Add a module to put the values in the text boxes into the fields >> of the current record (in DAO use .Edit or .Add and .Update) which >> you can call whenever you want to write the textbox values back to the table. >> 5. I always put my own navigation buttons on the unbound for - First, >> Last, Next, Previous with Click events that move the recordset point >> appropriately. >> >> HTH >> >> Rocky Smolin >> Beach Access Software >> 858-259-4334 >> www.e-z-mrp.com >> www.bchacc.com >> >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim >> Lawrence >> Sent: Monday, June 09, 2008 5:38 PM >> To: 'Access Developers discussion and problem solving' >> Subject: Re: [AccessD] VBA Unbound data entry / update form >> >> Hi Jennifer: >> >> I have no idea how to create bound Access forms. ;-) The last bound >> database that I have worked with was back in '97. >> >> Jim >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer >> Gross >> Sent: Tuesday, May 27, 2008 5:12 PM >> To: 'Access Developers discussion and problem solving' >> Subject: Re: [AccessD] VBA Unbound data entry / update form >> >> I have no idea how to create an unbound form in Access. I always use >> bound forms. Though I would be interested to know how it's done. >> Unless I've got it wrong, that seems to be the basic question here - >> For those of you who do it, how do you create an unbound form? How do >> you populate the textboxes initially and then how do you save the information back to the tables? >> >> It's beginning to sound like nobody really does it. >> >> Jennifer >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: Tuesday, May 27, 2008 2:49 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] VBA Unbound data entry / update form >> >>> 1) If your situation gives you the choice between Access and SQL >>> Server, >> then you can use SQL Server Express. For your customer's benefit - >> it's free! >> >> I know that, and you know that, but they have used an MDB BE for most >> of a decade. SQL Server is the great unknown. >> >>> 2) How many concurrent users? Too Many? >> >> In the majority of cases, no. There ARE specific places where too >> many users cause mysterious issues with an MDB. >> Memos are written in "pages", as are indexes. If you open a record >> and start to edit it, it "locks" an entire "page" of the index >> structure or the memo area, which locks not just your record but potentially many others. >> >> This simply doesn't happen in SQL Server because SQL Server doesn't >> have this "page" system for storing memo fields etc. >> >>> 3) How many indexes on the tables? >> >> Not the point, the point is that ALL indexes are stored in Index >> pages, and entire pages of indexs can be locked by a single edit. >> >> Creating / using Indexes should be determined by need, not arcane >> locking issues within Jet. >> >>> 4) Are you starting up by setting a recordset to open and leaving it >>> that >> way? >> >> If you are talking about creating and holding locks on the BE, yes I >> am, but that isn't the issue either. >> >> John W. Colby >> www.ColbyConsulting.com >> >> >> Dan Waters wrote: >>> John - I've been reading this with interest: >>> >>> 1) If your situation gives you the choice between Access and SQL >>> Server, then you can use SQL Server Express. For your customer's >>> benefit - it's free! >>> >>> 2) How many concurrent users? Too Many? >>> >>> 3) How many indexes on the tables? I actually only use the primary >>> key as an index on every table. More indexes slows down writing >> performance. >>> 4) Are you starting up by setting a recordset to open and leaving it >>> that way? This greatly reduces 'churn' in the locking database. When >>> I set this up all my users reported a significant performance improvement. >> Code below: >>> '------------------------------------------------------------------- >>> ----- >>> Dim stgConnect As String >>> Dim dbs As DAO.Database >>> Dim tdf As DAO.TableDef >>> >>> stgConnect = BEFullPath >>> Set dbs = DBEngine(0)(0) >>> Set tdf = dbs.TableDefs("tblConnect") If tdf.Connect <> ";Database=" >>> & stgConnect Then tdf.Connect = ";Database=" & stgConnect >>> tdf.RefreshLink End If dbs.Close >>> >>> Set GrstConnect = DBEngine(0)(0).OpenRecordset("tblConnect", >>> dbOpenSnapshot) >>> '------------------------------------------------------------------- >>> -- >>> --- >>> >>> Notes: BEFullPath is a function to return the full path to the BE. >>> tblConnect is a one row one field table in the BE. >>> The table link is refreshed because the table link is in a >> library. >>> GrstConnect is a globally defined DAO recordset. >>> GrstConnect remains open until just before the database is closed. >>> >>> Good Luck! >>> Dan >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> No virus found in this incoming message. >> Checked by AVG. >> Version: 8.0.100 / Virus Database: 270.1.0/1492 - Release Date: >> 9/6/2008 >> 10:29 >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ Search that pays you back! Introducing Live Search cashback. http://search.live.com/cashback/?&pkw=form=MIJAAF/publ=HMTGL/crea=srchpaysyo uback -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Jun 10 13:57:01 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 10 Jun 2008 14:57:01 -0400 Subject: [AccessD] VBA Unbound data entry / update form In-Reply-To: References: Message-ID: <484ECE7D.3070609@colbyconsulting.com> Drew, EXACTLY WHAT do you think happens with ADO unbound recordsets being updated back to the database in VB.Net? There are NO LOCKS THERE, but they have developed some system to "handle the situation". It is my understanding that updates are legal in disconnected ADO recordsets. Ergo there is a solution. In ACCESS there are very valid instances where a bound form causes problems BECAUSE OF JET and page locking. YOU WILL GIVE UP and blather on about "stick with a bound form". I have never asked you to participate in this thread. If you don't want to think about the problem, blather somewhere else please. I was about as civil as I could get in the previous round. You are the annoying one insisting that since YOU don't have an answer there is no answer. PLEASE, just butt out! Thanks, John W. Colby www.ColbyConsulting.com Drew Wutka wrote: > Sigh.... > > JWC, please just stop. This is getting annoying. I've posted over and > over that you have a gross conceptual error when it comes to unbound > forms. An unbound form is NOT meant to replace a bound form. It is > meant to do it's own job. If you want an application, where multiple > users are changing the same field over and over, stick to a bound form. > If you want an application where the forms are tied to straight forward > table structures, and any fancy structure quirks can be handled by a > query, again, stick with a bound form. If you want a form that has all > of the bells and whistles of a bound form, STICK WITH A BOUND FORM! > > Unbound is the way to go when you build complex structures that aren't > as easy to represent with just a query. Unbound forms are meant for > systems where you NEVER have 2 people editing the same field (because > the structure is designed to have 'multiple' entries put in multiple > records, not the same field). > > I just posted an example of an unbound form. It was meant for a single > user, but the core could be used in a multi-user environment without a > hassle. One user 'moving' inventory wouldn't interfere with another, > because the transactions are new records. Changes in a site name (which > you wouldn't have User A 'deciding' to change the same site name that > User B wants to change) are irrelevant because of that. > > You started this latest bound/unbound debate about a limitation with > memo fields and bound forms. I CLEARLY explained HOW to fix your problem > in an unbound method. You whined about having to stick with a faulty > table structure. Fine, stick with the faulty table structure, and quick > trying to egg on developers who took one look at the process you are > trying to fix and said 'well here's your problem'. It's beneath you. > (or should be) > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Tuesday, June 10, 2008 12:37 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] VBA Unbound data entry / update form > > > I suspect that the unbounders on this list have all been converted > and are therefore silent. :) > > ROTFLMAO. I kind of doubt it. > > I suspect there are several classes of unbounders hiding out there, > those that... > > 1) Don't handle it and don't want to admit it. > 2) Handle it but the code was reaaaaaaaaallllllly messy and don't want > to admit it. > 3) Use "first wins" strategy and don't want to admit it. > 4) Spent so much time and effort doing it correctly that they don't > really want to give their work away. > > I come to this conclusion because if they handled it correctly, and the > code was neat and tidy, then they would be popping up all over like > proud papas to show us their beautiful baby. > > John W. Colby > www.ColbyConsulting.com > > > The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. > > From markamatte at hotmail.com Tue Jun 10 14:02:33 2008 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 10 Jun 2008 19:02:33 +0000 Subject: [AccessD] VBA Unbound data entry / update form In-Reply-To: <017b01c8cb2a$55a8cd10$8119fea9@LTVM> References: <483C8FF5.1040407@colbyconsulting.com><0K1J00I84V5QZ1U0@vms044.mailsrvcs.net><02034CB1BB2E4ECE9DE313D2E38175AE@creativesystemdesigns.com><015b01c8cb09$028a2050$0301a8c0@HAL9005> <484EA693.6090509@colbyconsulting.com> <017b01c8cb2a$55a8cd10$8119fea9@LTVM> Message-ID: Max, Thanks...but I am correct...and there is reason behind the mad logic. Scenario: I open a record in this app....I am making changes...but not saving...as I'm working Max opens the same record and starts making changes. If Max clicks save first...his changes are saved...and when I click save I get an warning message "that this record has been modified since I started...and my changes will NOT be saved." The reason it is in this order(in my opinion)...is to force the second person who clicked save to go physically check what the changes were before deciding to overwrite them instead of just NOT knowing someone else was working the same case. The way it works: When I open an existing case...the app retrieves all relevant data elements...one is last_update_dttm...when I click save it compares the last_update_dttm from when I pulled the record to the last_update_dttm currently in the system...if they are the same, I am allowed to save...if they are not...then I get my error message and NOT saved. I didn't write it...but thats what it is. Mark A. Matte > From: max.wanadoo at gmail.com > To: accessd at databaseadvisors.com > Date: Tue, 10 Jun 2008 19:46:44 +0100 > Subject: Re: [AccessD] VBA Unbound data entry / update form > > >>Golden rule with the app we purchased...first person to click > save...wins!!! > > Mark, I think you have that back to front.... The LAST person to click save > wins. Everybody before gets overwritten! > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > Sent: Tuesday, June 10, 2008 5:51 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] VBA Unbound data entry / update form > > > I can tell you how our PeopleSoft (web based) App handles it...it compares > the last_update_timestamp...if it is the same as when you pulled your > recordset...you get to save...if not...you lose your changes. > > Golden rule with the app we purchased...first person to click save...wins!!! > > Thanks, > > Mark A. Matte > > > > >> Date: Tue, 10 Jun 2008 12:06:43 -0400 >> From: jwcolby at colbyconsulting.com >> To: accessd at databaseadvisors.com >> Subject: Re: [AccessD] VBA Unbound data entry / update form >> >> Rocky, >> >> I hate to jump all over your method because I want a method to use, >> but you are completely ignoring locking / update issues. What happened >> if another user updated the record between the time you loaded yours >> and the time you write it back? >> >> John W. Colby >> www.ColbyConsulting.com >> >> >> Rocky Smolin at Beach Access Software wrote: >>> I know how to make an unbound form but I haven't got enough nerve to >>> present such heresy - it runs counter to strongly held religious beliefs. >>> >>> OK - briefly - but you didn't hear it from me. >>> >>> 1. Design your form as you would a bound form but no Control Source >>> in the text boxes. >>> 2. Create a recordset in the Open event of the form (DAO or ADO - I >>> prefer >>> DAO) using pretty much the same SQL or query as you would for your >>> Record Source in a bound form. >>> 3. Add a module to put the fields from the current record of the >>> recordset into the text boxes which you can call whenever you want to >>> display the data on your form. >>> 4. Add a module to put the values in the text boxes into the fields >>> of the current record (in DAO use .Edit or .Add and .Update) which >>> you can call whenever you want to write the textbox values back to the > table. >>> 5. I always put my own navigation buttons on the unbound for - First, >>> Last, Next, Previous with Click events that move the recordset point >>> appropriately. >>> >>> HTH >>> >>> Rocky Smolin >>> Beach Access Software >>> 858-259-4334 >>> www.e-z-mrp.com >>> www.bchacc.com >>> >>> >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim >>> Lawrence >>> Sent: Monday, June 09, 2008 5:38 PM >>> To: 'Access Developers discussion and problem solving' >>> Subject: Re: [AccessD] VBA Unbound data entry / update form >>> >>> Hi Jennifer: >>> >>> I have no idea how to create bound Access forms. ;-) The last bound >>> database that I have worked with was back in '97. >>> >>> Jim >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer >>> Gross >>> Sent: Tuesday, May 27, 2008 5:12 PM >>> To: 'Access Developers discussion and problem solving' >>> Subject: Re: [AccessD] VBA Unbound data entry / update form >>> >>> I have no idea how to create an unbound form in Access. I always use >>> bound forms. Though I would be interested to know how it's done. >>> Unless I've got it wrong, that seems to be the basic question here - >>> For those of you who do it, how do you create an unbound form? How do >>> you populate the textboxes initially and then how do you save the > information back to the tables? >>> >>> It's beginning to sound like nobody really does it. >>> >>> Jennifer >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >>> Sent: Tuesday, May 27, 2008 2:49 PM >>> To: Access Developers discussion and problem solving >>> Subject: Re: [AccessD] VBA Unbound data entry / update form >>> >>>> 1) If your situation gives you the choice between Access and SQL >>>> Server, >>> then you can use SQL Server Express. For your customer's benefit - >>> it's free! >>> >>> I know that, and you know that, but they have used an MDB BE for most >>> of a decade. SQL Server is the great unknown. >>> >>>> 2) How many concurrent users? Too Many? >>> >>> In the majority of cases, no. There ARE specific places where too >>> many users cause mysterious issues with an MDB. >>> Memos are written in "pages", as are indexes. If you open a record >>> and start to edit it, it "locks" an entire "page" of the index >>> structure or the memo area, which locks not just your record but > potentially many others. >>> >>> This simply doesn't happen in SQL Server because SQL Server doesn't >>> have this "page" system for storing memo fields etc. >>> >>>> 3) How many indexes on the tables? >>> >>> Not the point, the point is that ALL indexes are stored in Index >>> pages, and entire pages of indexs can be locked by a single edit. >>> >>> Creating / using Indexes should be determined by need, not arcane >>> locking issues within Jet. >>> >>>> 4) Are you starting up by setting a recordset to open and leaving it >>>> that >>> way? >>> >>> If you are talking about creating and holding locks on the BE, yes I >>> am, but that isn't the issue either. >>> >>> John W. Colby >>> www.ColbyConsulting.com >>> >>> >>> Dan Waters wrote: >>>> John - I've been reading this with interest: >>>> >>>> 1) If your situation gives you the choice between Access and SQL >>>> Server, then you can use SQL Server Express. For your customer's >>>> benefit - it's free! >>>> >>>> 2) How many concurrent users? Too Many? >>>> >>>> 3) How many indexes on the tables? I actually only use the primary >>>> key as an index on every table. More indexes slows down writing >>> performance. >>>> 4) Are you starting up by setting a recordset to open and leaving it >>>> that way? This greatly reduces 'churn' in the locking database. When >>>> I set this up all my users reported a significant performance > improvement. >>> Code below: >>>> '------------------------------------------------------------------- >>>> ----- >>>> Dim stgConnect As String >>>> Dim dbs As DAO.Database >>>> Dim tdf As DAO.TableDef >>>> >>>> stgConnect = BEFullPath >>>> Set dbs = DBEngine(0)(0) >>>> Set tdf = dbs.TableDefs("tblConnect") If tdf.Connect <> ";Database=" >>>> & stgConnect Then tdf.Connect = ";Database=" & stgConnect >>>> tdf.RefreshLink End If dbs.Close >>>> >>>> Set GrstConnect = DBEngine(0)(0).OpenRecordset("tblConnect", >>>> dbOpenSnapshot) >>>> '------------------------------------------------------------------- >>>> -- >>>> --- >>>> >>>> Notes: BEFullPath is a function to return the full path to the BE. >>>> tblConnect is a one row one field table in the BE. >>>> The table link is refreshed because the table link is in a >>> library. >>>> GrstConnect is a globally defined DAO recordset. >>>> GrstConnect remains open until just before the database is closed. >>>> >>>> Good Luck! >>>> Dan >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >>> No virus found in this incoming message. >>> Checked by AVG. >>> Version: 8.0.100 / Virus Database: 270.1.0/1492 - Release Date: >>> 9/6/2008 >>> 10:29 >>> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > _________________________________________________________________ > Search that pays you back! Introducing Live Search cashback. > http://search.live.com/cashback/?&pkw=form=MIJAAF/publ=HMTGL/crea=srchpaysyo > uback > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ Instantly invite friends from Facebook and other social networks to join you on Windows Live? Messenger. https://www.invite2messenger.net/im/?source=TXT_EML_WLH_InviteFriends From jwcolby at colbyconsulting.com Tue Jun 10 14:18:03 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 10 Jun 2008 15:18:03 -0400 Subject: [AccessD] VBA Unbound data entry / update form In-Reply-To: References: Message-ID: <484ED36B.4080901@colbyconsulting.com> > #1. You should NEVER have two users trying to edit the same field in the same record at the same time, where BOTH values being entered are correct. (ie, there should only be one right 'Last Name' for a person, yes, it may change, but there is only one correct value for it) HORSHESHIT! Hmmm... not enough emphasis there. !!!HORSHESHIT!!!!HORSHESHIT!!!!HORSHESHIT!!!!HORSHESHIT!!!! I have NO IDEA what world YOU live in but in my world people can change whatever they want whenever they want. Person A writes the name in the last name field from a hastily scribbled form filled out by hand by a person who has a sixth grade education. Person B is reading a form with the information for that SAME person typed in by a doctor office, the last name is different. They can change it if they wish. Person C is on the phone with the mother of that person. They are verifying the information and mom says "no the name is spelled XXXXX. That person can change it. It is NOT MY JOB to tell any of these people that they cannot change the information in the database. !!!!THEY MIGHT BE DOING THESE THINGS AT THE SAME INSTANT!!!!! !!!!I MAY NEED TO DO THAT IN AN UNBOUND FORM!!!! NOW, DREW, THAT IS LEGAL. I AM !!!NOT!!! GOING TO DESIGNING A TRANSACTION SYSTEM TO SAVE EVERY CHANGE EVER ENTERED BY ANYONE IN A BRAND NEW RECORD AS A CONTINUOUS HISTORY. MY CLIENT DID NOT ASK FOR THAT, WILL NOT PAY ME FOR THAT AND IT AIN'T GONNA HAPPEN. !!!!I HAVE TO DEAL WITH THAT!!!! !!!YOU!!! ARE AN ARROGANT ASS IF YOU THINK ONLY YOU KNOWS WHAT IS LEGAL OR POSSIBLE IN THIS WORLD. Go away. FAR FAR AWAY. JOIN THE FOREIGN LEGIONS AND TRY TO CONVERT SOMEONE ELSE TO YOUR INSOLENT IDEAS. Quite obviously I do not need, nor WANT your responses. Please do NOT respond to this thread EVER AGAIN. In case you do not YET understand..... !!!HORSHESHIT!!!!HORSHESHIT!!!!HORSHESHIT!!!!HORSHESHIT!!!! ......to your silly ideas. Hmmmm.... I fear that I STILL was not speaking plainly enough... !!!HORSHESHIT!!!!HORSHESHIT!!!!HORSHESHIT!!!!HORSHESHIT!!!! ......to your silly ideas. Hmmmm.... I fear that I STILL was not speaking plainly enough... If you want to post solutions for questions I did not ask, please feel free to do so, in some other thread. Hmmm... I COULD SWEAR THAT I MADE THAT REQUEST BEFORE... John W. Colby www.ColbyConsulting.com Drew Wutka wrote: > "What I have never done is build a coherent strategy for testing edited > data against the current data in the same record being edited and > handling edit collisions in a responsible manner, without the use of > locks." > > JC, I explained this before. In quite lengthy terms. Let me try to > summarize. > > #1. You should NEVER have two users trying to edit the same field in the > same record at the same time, where BOTH values being entered are > correct. (ie, there should only be one right 'Last Name' for a person, > yes, it may change, but there is only one correct value for it) > > #2. You MAY have two people changing different fields in the same > record. Not ideal, but granted, some systems may require this ability. > > To handle #2 is not very difficult. Especially if you have a few tools > that help you build your data class/collection class modules. > > Build a Field Class that lets you put a field name, a current value and > a new value. Then when you build your data class, create a field > collection in it, populated with a FieldClass object for each datafield. > On the Property Let statements, set the Data Class's internal variable's > value, and the NewValue of your FieldClass object (for that field). (Set > a 'ValueHasChanged' property in the FieldClass (returning true if > newvalue isn't blank). Whalla, when you go to save the data for your > collection class, just loop through your field collection, and if > 'ValueHasChanged', THEN update that field, otherwise, leave it alone. > > Problem solved. > > Drew From jwcolby at colbyconsulting.com Tue Jun 10 14:21:29 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 10 Jun 2008 15:21:29 -0400 Subject: [AccessD] VBA Unbound data entry / update form In-Reply-To: References: <483C8FF5.1040407@colbyconsulting.com><0K1J00I84V5QZ1U0@vms044.mailsrvcs.net><02034CB1BB2E4ECE9DE313D2E38175AE@creativesystemdesigns.com><015b01c8cb09$028a2050$0301a8c0@HAL9005> <484EA693.6090509@colbyconsulting.com> <017b01c8cb2a$55a8cd10$8119fea9@LTVM> Message-ID: <484ED439.9000800@colbyconsulting.com> And both of those methods ignore the fact that there may be 100 fields in the record, and only one or two changed by each person. Did they change the SAME FIELD? If not then the changes of BOTH are legal and should be stored (and retained) without complaint. John W. Colby www.ColbyConsulting.com Mark A Matte wrote: > Max, > > Thanks...but I am correct...and there is reason behind the mad logic. > > Scenario: I open a record in this app....I am making changes...but not saving...as I'm working Max opens the same record and starts making changes. If Max clicks save first...his changes are saved...and when I click save I get an warning message "that this record has been modified since I started...and my changes will NOT be saved." > > The reason it is in this order(in my opinion)...is to force the second person who clicked save to go physically check what the changes were before deciding to overwrite them instead of just NOT knowing someone else was working the same case. > > The way it works: When I open an existing case...the app retrieves all relevant data elements...one is last_update_dttm...when I click save it compares the last_update_dttm from when I pulled the record to the last_update_dttm currently in the system...if they are the same, I am allowed to save...if they are not...then I get my error message and NOT saved. > > I didn't write it...but thats what it is. > > Mark A. Matte > > > > >> From: max.wanadoo at gmail.com >> To: accessd at databaseadvisors.com >> Date: Tue, 10 Jun 2008 19:46:44 +0100 >> Subject: Re: [AccessD] VBA Unbound data entry / update form >> >> >>> Golden rule with the app we purchased...first person to click >> save...wins!!! >> >> Mark, I think you have that back to front.... The LAST person to click save >> wins. Everybody before gets overwritten! >> >> Max >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte >> Sent: Tuesday, June 10, 2008 5:51 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] VBA Unbound data entry / update form >> >> >> I can tell you how our PeopleSoft (web based) App handles it...it compares >> the last_update_timestamp...if it is the same as when you pulled your >> recordset...you get to save...if not...you lose your changes. >> >> Golden rule with the app we purchased...first person to click save...wins!!! >> >> Thanks, >> >> Mark A. Matte >> >> >> >> >>> Date: Tue, 10 Jun 2008 12:06:43 -0400 >>> From: jwcolby at colbyconsulting.com >>> To: accessd at databaseadvisors.com >>> Subject: Re: [AccessD] VBA Unbound data entry / update form >>> >>> Rocky, >>> >>> I hate to jump all over your method because I want a method to use, >>> but you are completely ignoring locking / update issues. What happened >>> if another user updated the record between the time you loaded yours >>> and the time you write it back? >>> >>> John W. Colby >>> www.ColbyConsulting.com >>> >>> >>> Rocky Smolin at Beach Access Software wrote: >>>> I know how to make an unbound form but I haven't got enough nerve to >>>> present such heresy - it runs counter to strongly held religious beliefs. >>>> >>>> OK - briefly - but you didn't hear it from me. >>>> >>>> 1. Design your form as you would a bound form but no Control Source >>>> in the text boxes. >>>> 2. Create a recordset in the Open event of the form (DAO or ADO - I >>>> prefer >>>> DAO) using pretty much the same SQL or query as you would for your >>>> Record Source in a bound form. >>>> 3. Add a module to put the fields from the current record of the >>>> recordset into the text boxes which you can call whenever you want to >>>> display the data on your form. >>>> 4. Add a module to put the values in the text boxes into the fields >>>> of the current record (in DAO use .Edit or .Add and .Update) which >>>> you can call whenever you want to write the textbox values back to the >> table. >>>> 5. I always put my own navigation buttons on the unbound for - First, >>>> Last, Next, Previous with Click events that move the recordset point >>>> appropriately. >>>> >>>> HTH >>>> >>>> Rocky Smolin >>>> Beach Access Software >>>> 858-259-4334 >>>> www.e-z-mrp.com >>>> www.bchacc.com >>>> >>>> >>>> >>>> -----Original Message----- >>>> From: accessd-bounces at databaseadvisors.com >>>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim >>>> Lawrence >>>> Sent: Monday, June 09, 2008 5:38 PM >>>> To: 'Access Developers discussion and problem solving' >>>> Subject: Re: [AccessD] VBA Unbound data entry / update form >>>> >>>> Hi Jennifer: >>>> >>>> I have no idea how to create bound Access forms. ;-) The last bound >>>> database that I have worked with was back in '97. >>>> >>>> Jim >>>> >>>> -----Original Message----- >>>> From: accessd-bounces at databaseadvisors.com >>>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer >>>> Gross >>>> Sent: Tuesday, May 27, 2008 5:12 PM >>>> To: 'Access Developers discussion and problem solving' >>>> Subject: Re: [AccessD] VBA Unbound data entry / update form >>>> >>>> I have no idea how to create an unbound form in Access. I always use >>>> bound forms. Though I would be interested to know how it's done. >>>> Unless I've got it wrong, that seems to be the basic question here - >>>> For those of you who do it, how do you create an unbound form? How do >>>> you populate the textboxes initially and then how do you save the >> information back to the tables? >>>> It's beginning to sound like nobody really does it. >>>> >>>> Jennifer >>>> >>>> -----Original Message----- >>>> From: accessd-bounces at databaseadvisors.com >>>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >>>> Sent: Tuesday, May 27, 2008 2:49 PM >>>> To: Access Developers discussion and problem solving >>>> Subject: Re: [AccessD] VBA Unbound data entry / update form >>>> >>>>> 1) If your situation gives you the choice between Access and SQL >>>>> Server, >>>> then you can use SQL Server Express. For your customer's benefit - >>>> it's free! >>>> >>>> I know that, and you know that, but they have used an MDB BE for most >>>> of a decade. SQL Server is the great unknown. >>>> >>>>> 2) How many concurrent users? Too Many? >>>> In the majority of cases, no. There ARE specific places where too >>>> many users cause mysterious issues with an MDB. >>>> Memos are written in "pages", as are indexes. If you open a record >>>> and start to edit it, it "locks" an entire "page" of the index >>>> structure or the memo area, which locks not just your record but >> potentially many others. >>>> This simply doesn't happen in SQL Server because SQL Server doesn't >>>> have this "page" system for storing memo fields etc. >>>> >>>>> 3) How many indexes on the tables? >>>> Not the point, the point is that ALL indexes are stored in Index >>>> pages, and entire pages of indexs can be locked by a single edit. >>>> >>>> Creating / using Indexes should be determined by need, not arcane >>>> locking issues within Jet. >>>> >>>>> 4) Are you starting up by setting a recordset to open and leaving it >>>>> that >>>> way? >>>> >>>> If you are talking about creating and holding locks on the BE, yes I >>>> am, but that isn't the issue either. >>>> >>>> John W. Colby >>>> www.ColbyConsulting.com >>>> >>>> >>>> Dan Waters wrote: >>>>> John - I've been reading this with interest: >>>>> >>>>> 1) If your situation gives you the choice between Access and SQL >>>>> Server, then you can use SQL Server Express. For your customer's >>>>> benefit - it's free! >>>>> >>>>> 2) How many concurrent users? Too Many? >>>>> >>>>> 3) How many indexes on the tables? I actually only use the primary >>>>> key as an index on every table. More indexes slows down writing >>>> performance. >>>>> 4) Are you starting up by setting a recordset to open and leaving it >>>>> that way? This greatly reduces 'churn' in the locking database. When >>>>> I set this up all my users reported a significant performance >> improvement. >>>> Code below: >>>>> '------------------------------------------------------------------- >>>>> ----- >>>>> Dim stgConnect As String >>>>> Dim dbs As DAO.Database >>>>> Dim tdf As DAO.TableDef >>>>> >>>>> stgConnect = BEFullPath >>>>> Set dbs = DBEngine(0)(0) >>>>> Set tdf = dbs.TableDefs("tblConnect") If tdf.Connect <> ";Database=" >>>>> & stgConnect Then tdf.Connect = ";Database=" & stgConnect >>>>> tdf.RefreshLink End If dbs.Close >>>>> >>>>> Set GrstConnect = DBEngine(0)(0).OpenRecordset("tblConnect", >>>>> dbOpenSnapshot) >>>>> '------------------------------------------------------------------- >>>>> -- >>>>> --- >>>>> >>>>> Notes: BEFullPath is a function to return the full path to the BE. >>>>> tblConnect is a one row one field table in the BE. >>>>> The table link is refreshed because the table link is in a >>>> library. >>>>> GrstConnect is a globally defined DAO recordset. >>>>> GrstConnect remains open until just before the database is closed. >>>>> >>>>> Good Luck! >>>>> Dan >>>> -- >>>> AccessD mailing list >>>> AccessD at databaseadvisors.com >>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>> Website: http://www.databaseadvisors.com >>>> >>>> >>>> -- >>>> AccessD mailing list >>>> AccessD at databaseadvisors.com >>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>> Website: http://www.databaseadvisors.com >>>> >>>> -- >>>> AccessD mailing list >>>> AccessD at databaseadvisors.com >>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>> Website: http://www.databaseadvisors.com >>>> >>>> No virus found in this incoming message. >>>> Checked by AVG. >>>> Version: 8.0.100 / Virus Database: 270.1.0/1492 - Release Date: >>>> 9/6/2008 >>>> 10:29 >>>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >> _________________________________________________________________ >> Search that pays you back! Introducing Live Search cashback. >> http://search.live.com/cashback/?&pkw=form=MIJAAF/publ=HMTGL/crea=srchpaysyo >> uback >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > _________________________________________________________________ > Instantly invite friends from Facebook and other social networks to join you on Windows Live? Messenger. > https://www.invite2messenger.net/im/?source=TXT_EML_WLH_InviteFriends From max.wanadoo at gmail.com Tue Jun 10 14:30:32 2008 From: max.wanadoo at gmail.com (Max Wanadoo) Date: Tue, 10 Jun 2008 20:30:32 +0100 Subject: [AccessD] VBA Unbound data entry / update form In-Reply-To: References: <483C8FF5.1040407@colbyconsulting.com><0K1J00I84V5QZ1U0@vms044.mailsrvcs.net><02034CB1BB2E4ECE9DE313D2E38175AE@creativesystemdesigns.com><015b01c8cb09$028a2050$0301a8c0@HAL9005><484EA693.6090509@colbyconsulting.com> <017b01c8cb2a$55a8cd10$8119fea9@LTVM> Message-ID: <018301c8cb30$7405b920$8119fea9@LTVM> Yes, thanks Mark. I jumped in a bit quick there thinking I was being a clever little dicky bird. Thanks Max -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Tuesday, June 10, 2008 8:03 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VBA Unbound data entry / update form Max, Thanks...but I am correct...and there is reason behind the mad logic. Scenario: I open a record in this app....I am making changes...but not saving...as I'm working Max opens the same record and starts making changes. If Max clicks save first...his changes are saved...and when I click save I get an warning message "that this record has been modified since I started...and my changes will NOT be saved." The reason it is in this order(in my opinion)...is to force the second person who clicked save to go physically check what the changes were before deciding to overwrite them instead of just NOT knowing someone else was working the same case. The way it works: When I open an existing case...the app retrieves all relevant data elements...one is last_update_dttm...when I click save it compares the last_update_dttm from when I pulled the record to the last_update_dttm currently in the system...if they are the same, I am allowed to save...if they are not...then I get my error message and NOT saved. I didn't write it...but thats what it is. Mark A. Matte > From: max.wanadoo at gmail.com > To: accessd at databaseadvisors.com > Date: Tue, 10 Jun 2008 19:46:44 +0100 > Subject: Re: [AccessD] VBA Unbound data entry / update form > > >>Golden rule with the app we purchased...first person to click > save...wins!!! > > Mark, I think you have that back to front.... The LAST person to click > save wins. Everybody before gets overwritten! > > Max > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A > Matte > Sent: Tuesday, June 10, 2008 5:51 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] VBA Unbound data entry / update form > > > I can tell you how our PeopleSoft (web based) App handles it...it > compares the last_update_timestamp...if it is the same as when you > pulled your recordset...you get to save...if not...you lose your changes. > > Golden rule with the app we purchased...first person to click save...wins!!! > > Thanks, > > Mark A. Matte > > > > >> Date: Tue, 10 Jun 2008 12:06:43 -0400 >> From: jwcolby at colbyconsulting.com >> To: accessd at databaseadvisors.com >> Subject: Re: [AccessD] VBA Unbound data entry / update form >> >> Rocky, >> >> I hate to jump all over your method because I want a method to use, >> but you are completely ignoring locking / update issues. What >> happened if another user updated the record between the time you >> loaded yours and the time you write it back? >> >> John W. Colby >> www.ColbyConsulting.com >> >> >> Rocky Smolin at Beach Access Software wrote: >>> I know how to make an unbound form but I haven't got enough nerve to >>> present such heresy - it runs counter to strongly held religious beliefs. >>> >>> OK - briefly - but you didn't hear it from me. >>> >>> 1. Design your form as you would a bound form but no Control Source >>> in the text boxes. >>> 2. Create a recordset in the Open event of the form (DAO or ADO - I >>> prefer >>> DAO) using pretty much the same SQL or query as you would for your >>> Record Source in a bound form. >>> 3. Add a module to put the fields from the current record of the >>> recordset into the text boxes which you can call whenever you want >>> to display the data on your form. >>> 4. Add a module to put the values in the text boxes into the fields >>> of the current record (in DAO use .Edit or .Add and .Update) which >>> you can call whenever you want to write the textbox values back to >>> the > table. >>> 5. I always put my own navigation buttons on the unbound for - >>> First, Last, Next, Previous with Click events that move the >>> recordset point appropriately. >>> >>> HTH >>> >>> Rocky Smolin >>> Beach Access Software >>> 858-259-4334 >>> www.e-z-mrp.com >>> www.bchacc.com >>> >>> >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim >>> Lawrence >>> Sent: Monday, June 09, 2008 5:38 PM >>> To: 'Access Developers discussion and problem solving' >>> Subject: Re: [AccessD] VBA Unbound data entry / update form >>> >>> Hi Jennifer: >>> >>> I have no idea how to create bound Access forms. ;-) The last bound >>> database that I have worked with was back in '97. >>> >>> Jim >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer >>> Gross >>> Sent: Tuesday, May 27, 2008 5:12 PM >>> To: 'Access Developers discussion and problem solving' >>> Subject: Re: [AccessD] VBA Unbound data entry / update form >>> >>> I have no idea how to create an unbound form in Access. I always use >>> bound forms. Though I would be interested to know how it's done. >>> Unless I've got it wrong, that seems to be the basic question here - >>> For those of you who do it, how do you create an unbound form? How >>> do you populate the textboxes initially and then how do you save the > information back to the tables? >>> >>> It's beginning to sound like nobody really does it. >>> >>> Jennifer >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >>> Sent: Tuesday, May 27, 2008 2:49 PM >>> To: Access Developers discussion and problem solving >>> Subject: Re: [AccessD] VBA Unbound data entry / update form >>> >>>> 1) If your situation gives you the choice between Access and SQL >>>> Server, >>> then you can use SQL Server Express. For your customer's benefit - >>> it's free! >>> >>> I know that, and you know that, but they have used an MDB BE for >>> most of a decade. SQL Server is the great unknown. >>> >>>> 2) How many concurrent users? Too Many? >>> >>> In the majority of cases, no. There ARE specific places where too >>> many users cause mysterious issues with an MDB. >>> Memos are written in "pages", as are indexes. If you open a record >>> and start to edit it, it "locks" an entire "page" of the index >>> structure or the memo area, which locks not just your record but > potentially many others. >>> >>> This simply doesn't happen in SQL Server because SQL Server doesn't >>> have this "page" system for storing memo fields etc. >>> >>>> 3) How many indexes on the tables? >>> >>> Not the point, the point is that ALL indexes are stored in Index >>> pages, and entire pages of indexs can be locked by a single edit. >>> >>> Creating / using Indexes should be determined by need, not arcane >>> locking issues within Jet. >>> >>>> 4) Are you starting up by setting a recordset to open and leaving >>>> it that >>> way? >>> >>> If you are talking about creating and holding locks on the BE, yes I >>> am, but that isn't the issue either. >>> >>> John W. Colby >>> www.ColbyConsulting.com >>> >>> >>> Dan Waters wrote: >>>> John - I've been reading this with interest: >>>> >>>> 1) If your situation gives you the choice between Access and SQL >>>> Server, then you can use SQL Server Express. For your customer's >>>> benefit - it's free! >>>> >>>> 2) How many concurrent users? Too Many? >>>> >>>> 3) How many indexes on the tables? I actually only use the primary >>>> key as an index on every table. More indexes slows down writing >>> performance. >>>> 4) Are you starting up by setting a recordset to open and leaving >>>> it that way? This greatly reduces 'churn' in the locking database. >>>> When I set this up all my users reported a significant performance > improvement. >>> Code below: >>>> '------------------------------------------------------------------ >>>> - >>>> ----- >>>> Dim stgConnect As String >>>> Dim dbs As DAO.Database >>>> Dim tdf As DAO.TableDef >>>> >>>> stgConnect = BEFullPath >>>> Set dbs = DBEngine(0)(0) >>>> Set tdf = dbs.TableDefs("tblConnect") If tdf.Connect <> ";Database=" >>>> & stgConnect Then tdf.Connect = ";Database=" & stgConnect >>>> tdf.RefreshLink End If dbs.Close >>>> >>>> Set GrstConnect = DBEngine(0)(0).OpenRecordset("tblConnect", >>>> dbOpenSnapshot) >>>> '------------------------------------------------------------------ >>>> - >>>> -- >>>> --- >>>> >>>> Notes: BEFullPath is a function to return the full path to the BE. >>>> tblConnect is a one row one field table in the BE. >>>> The table link is refreshed because the table link is in a >>> library. >>>> GrstConnect is a globally defined DAO recordset. >>>> GrstConnect remains open until just before the database is closed. >>>> >>>> Good Luck! >>>> Dan >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >>> No virus found in this incoming message. >>> Checked by AVG. >>> Version: 8.0.100 / Virus Database: 270.1.0/1492 - Release Date: >>> 9/6/2008 >>> 10:29 >>> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > _________________________________________________________________ > Search that pays you back! Introducing Live Search cashback. > http://search.live.com/cashback/?&pkw=form=MIJAAF/publ=HMTGL/crea=srch > paysyo > uback > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ Instantly invite friends from Facebook and other social networks to join you on Windows LiveT Messenger. https://www.invite2messenger.net/im/?source=TXT_EML_WLH_InviteFriends -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Tue Jun 10 15:05:35 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Tue, 10 Jun 2008 13:05:35 -0700 Subject: [AccessD] VBA Unbound data entry / update form In-Reply-To: <484EBBA3.2060509@colbyconsulting.com> References: <483C8FF5.1040407@colbyconsulting.com><0K1J00I84V5QZ1U0@vms044.mailsrvcs.net> <02034CB1BB2E4ECE9DE313D2E38175AE@creativesystemdesigns.com><015b01c8cb09$028a2050$0301a8c0@HAL9005> <484EA693.6090509@colbyconsulting.com><017601c8cb19$a82dbd90$0301a8c0@HAL9005> <484EB2F9.2060602@colbyconsulting.com> <484EBBA3.2060509@colbyconsulting.com> Message-ID: <018f01c8cb35$5868d670$0301a8c0@HAL9005> Like I said, we don't discuss religion and politics on this list. Take it to OT, JC. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, June 10, 2008 10:37 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VBA Unbound data entry / update form > I suspect that the unbounders on this list have all been converted and are therefore silent. :) ROTFLMAO. I kind of doubt it. I suspect there are several classes of unbounders hiding out there, those that... 1) Don't handle it and don't want to admit it. 2) Handle it but the code was reaaaaaaaaallllllly messy and don't want to admit it. 3) Use "first wins" strategy and don't want to admit it. 4) Spent so much time and effort doing it correctly that they don't really want to give their work away. I come to this conclusion because if they handled it correctly, and the code was neat and tidy, then they would be popping up all over like proud papas to show us their beautiful baby. John W. Colby www.ColbyConsulting.com Elizabeth.J.Doering at wellsfargo.com wrote: > I suspect that the unbounders on this list have all been converted and > are therefore silent. :) > > > Thanks, > > > Liz -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 270.2.0/1494 - Release Date: 10/6/2008 07:22 From mmattys at rochester.rr.com Tue Jun 10 15:12:17 2008 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Tue, 10 Jun 2008 16:12:17 -0400 Subject: [AccessD] VBA Unbound data entry / update form References: <484ED36B.4080901@colbyconsulting.com> Message-ID: <007601c8cb36$48f5f410$0302a8c0@Laptop> Citizen's arrest! Citizen's arrest! Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: "jwcolby" To: "Access Developers discussion and problem solving" Sent: Tuesday, June 10, 2008 3:18 PM Subject: Re: [AccessD] VBA Unbound data entry / update form > > #1. You should NEVER have two users trying to edit the > same field in the same record at the same time, where BOTH > values being entered are correct. (ie, there should only be > one right 'Last Name' for a person, yes, it may change, but > there is only one correct value for it) > > HORSHESHIT! Hmmm... not enough emphasis there. > > !!!HORSHESHIT!!!!HORSHESHIT!!!!HORSHESHIT!!!!HORSHESHIT!!!! > > I have NO IDEA what world YOU live in but in my world people > can change whatever they want whenever they want. Person A > writes the name in the last name field from a hastily > scribbled form filled out by hand by a person who has a > sixth grade education. Person B is reading a form with the > information for that SAME person typed in by a doctor > office, the last name is different. They can change it if > they wish. Person C is on the phone with the mother of that > person. They are verifying the information and mom says "no > the name is spelled XXXXX. That person can change it. It > is NOT MY JOB to tell any of these people that they cannot > change the information in the database. > > !!!!THEY MIGHT BE DOING THESE THINGS AT THE SAME INSTANT!!!!! > > !!!!I MAY NEED TO DO THAT IN AN UNBOUND FORM!!!! > > NOW, DREW, THAT IS LEGAL. I AM !!!NOT!!! GOING TO DESIGNING > A TRANSACTION SYSTEM TO SAVE EVERY CHANGE EVER ENTERED BY > ANYONE IN A BRAND NEW RECORD AS A CONTINUOUS HISTORY. MY > CLIENT DID NOT ASK FOR THAT, WILL NOT PAY ME FOR THAT AND IT > AIN'T GONNA HAPPEN. > > !!!!I HAVE TO DEAL WITH THAT!!!! > > !!!YOU!!! ARE AN ARROGANT ASS IF YOU THINK ONLY YOU KNOWS > WHAT IS LEGAL OR POSSIBLE IN THIS WORLD. > > Go away. FAR FAR AWAY. JOIN THE FOREIGN LEGIONS AND TRY TO > CONVERT SOMEONE ELSE TO YOUR INSOLENT IDEAS. Quite > obviously I do not need, nor WANT your responses. > > Please do NOT respond to this thread EVER AGAIN. In case > you do not YET understand..... > > !!!HORSHESHIT!!!!HORSHESHIT!!!!HORSHESHIT!!!!HORSHESHIT!!!! > > ......to your silly ideas. > > Hmmmm.... I fear that I STILL was not speaking plainly enough... > > !!!HORSHESHIT!!!!HORSHESHIT!!!!HORSHESHIT!!!!HORSHESHIT!!!! > > ......to your silly ideas. > > Hmmmm.... I fear that I STILL was not speaking plainly enough... > > If you want to post solutions for questions I did not ask, > please feel free to do so, in some other thread. Hmmm... I > COULD SWEAR THAT I MADE THAT REQUEST BEFORE... > > John W. Colby > www.ColbyConsulting.com > > > Drew Wutka wrote: >> "What I have never done is build a coherent strategy for testing edited >> data against the current data in the same record being edited and >> handling edit collisions in a responsible manner, without the use of >> locks." >> >> JC, I explained this before. In quite lengthy terms. Let me try to >> summarize. >> >> #1. You should NEVER have two users trying to edit the same field in the >> same record at the same time, where BOTH values being entered are >> correct. (ie, there should only be one right 'Last Name' for a person, >> yes, it may change, but there is only one correct value for it) >> >> #2. You MAY have two people changing different fields in the same >> record. Not ideal, but granted, some systems may require this ability. >> >> To handle #2 is not very difficult. Especially if you have a few tools >> that help you build your data class/collection class modules. >> >> Build a Field Class that lets you put a field name, a current value and >> a new value. Then when you build your data class, create a field >> collection in it, populated with a FieldClass object for each datafield. >> On the Property Let statements, set the Data Class's internal variable's >> value, and the NewValue of your FieldClass object (for that field). (Set >> a 'ValueHasChanged' property in the FieldClass (returning true if >> newvalue isn't blank). Whalla, when you go to save the data for your >> collection class, just loop through your field collection, and if >> 'ValueHasChanged', THEN update that field, otherwise, leave it alone. >> >> Problem solved. >> >> Drew > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Jun 10 15:19:45 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 10 Jun 2008 16:19:45 -0400 Subject: [AccessD] VBA Unbound data entry / update form In-Reply-To: <018f01c8cb35$5868d670$0301a8c0@HAL9005> References: <483C8FF5.1040407@colbyconsulting.com><0K1J00I84V5QZ1U0@vms044.mailsrvcs.net> <02034CB1BB2E4ECE9DE313D2E38175AE@creativesystemdesigns.com><015b01c8cb09$028a2050$0301a8c0@HAL9005> <484EA693.6090509@colbyconsulting.com><017601c8cb19$a82dbd90$0301a8c0@HAL9005> <484EB2F9.2060602@colbyconsulting.com> <484EBBA3.2060509@colbyconsulting.com> <018f01c8cb35$5868d670$0301a8c0@HAL9005> Message-ID: <484EE1E1.4090606@colbyconsulting.com> Rocky, This is neither religion nor politics. I had an open thread soliciting ideas for a specific Microsoft ACCESS problem that I actually have and am actively trying to solve. The fact that I am getting none is informative all by itself, though less than helpful. The fact that some people insist on trying to re-engineer the system without ever having seen the system, been involved in any design discussions with the client, nor in fact ever even MET the client is annoying, I must say. I have politely requested that people stick to answers to my question, which certainly seems reasonable to me since I started the thread. Perhaps a moderator should politely ask people stick to answers to my question, or start their own threads. John W. Colby www.ColbyConsulting.com Rocky Smolin at Beach Access Software wrote: > Like I said, we don't discuss religion and politics on this list. Take it > to OT, JC. > > > Rocky Smolin > Beach Access Software > 858-259-4334 > www.e-z-mrp.com > www.bchacc.com From jwcolby at colbyconsulting.com Tue Jun 10 15:37:31 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 10 Jun 2008 16:37:31 -0400 Subject: [AccessD] VBA Unbound data entry / update form In-Reply-To: <007601c8cb36$48f5f410$0302a8c0@Laptop> References: <484ED36B.4080901@colbyconsulting.com> <007601c8cb36$48f5f410$0302a8c0@Laptop> Message-ID: <484EE60B.9030704@colbyconsulting.com> ROTFLMAO. C'mon down to North Carolina dude. We have GUN RACKS in our pickups down here. Not that I have a pickup, or a gun for that matter. BUT I HAVE FRIENDS DOWN HERE! ;-) Really though, wasn't I nice and civil asking everybody to respond to my problem and not go off espousing their own answers to whatever problem they might think was really cool to solve? I reallly don't need this stupid stuff over and over and over... John W. Colby www.ColbyConsulting.com Michael R Mattys wrote: > Citizen's arrest! > Citizen's arrest! > > Michael R. Mattys > MapPoint & Access Dev > www.mattysconsulting.com From rockysmolin at bchacc.com Tue Jun 10 15:39:25 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Tue, 10 Jun 2008 13:39:25 -0700 Subject: [AccessD] VBA Unbound data entry / update form In-Reply-To: <484EE1E1.4090606@colbyconsulting.com> References: <483C8FF5.1040407@colbyconsulting.com><0K1J00I84V5QZ1U0@vms044.mailsrvcs.net> <02034CB1BB2E4ECE9DE313D2E38175AE@creativesystemdesigns.com><015b01c8cb09$028a2050$0301a8c0@HAL9005> <484EA693.6090509@colbyconsulting.com><017601c8cb19$a82dbd90$0301a8c0@HAL9005> <484EB2F9.2060602@colbyconsulting.com> <484EBBA3.2060509@colbyconsulting.com><018f01c8cb35$5868d670$0301a8c0@HAL9005> <484EE1E1.4090606@colbyconsulting.com> Message-ID: <01ab01c8cb3a$123c1bd0$0301a8c0@HAL9005> I won't disagree with you, John (I may be dumb, but I'm not rash!) R Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, June 10, 2008 1:20 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VBA Unbound data entry / update form Rocky, This is neither religion nor politics. I had an open thread soliciting ideas for a specific Microsoft ACCESS problem that I actually have and am actively trying to solve. The fact that I am getting none is informative all by itself, though less than helpful. The fact that some people insist on trying to re-engineer the system without ever having seen the system, been involved in any design discussions with the client, nor in fact ever even MET the client is annoying, I must say. I have politely requested that people stick to answers to my question, which certainly seems reasonable to me since I started the thread. Perhaps a moderator should politely ask people stick to answers to my question, or start their own threads. John W. Colby www.ColbyConsulting.com Rocky Smolin at Beach Access Software wrote: > Like I said, we don't discuss religion and politics on this list. > Take it to OT, JC. > > > Rocky Smolin > Beach Access Software > 858-259-4334 > www.e-z-mrp.com > www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 270.2.0/1494 - Release Date: 10/6/2008 07:22 From Gustav at cactus.dk Tue Jun 10 16:00:39 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Tue, 10 Jun 2008 23:00:39 +0200 Subject: [AccessD] State machines Message-ID: Hi John With that enthusiasm of yours, WWF - Windows Workflow Foundation, must represent nothing less than a Christmas present for you: http://msdn.microsoft.com/en-us/magazine/cc163281.aspx I'm still looking for a good project to put it into action ... /gustav >>> jwcolby at colbyconsulting.com 10-06-2008 20:42 >>> How many of you know what a state machine is? http://en.wikipedia.org/wiki/Finite_state_machine More generically a state machine is a structure (hardware or software) that stores the current "state" of something and uses stimuli to cause changes from the current state to some other state. State machines prevent and allow state changes from a specific state to another specific state. IOW from this state you can only move to "these other states" and which state you actually move to will be determined by something that occurred. I wrote a state machine for my disability call center software. During the processing of claims, EVENTS happen. Events can be (pretty much) anything that the client wants to call an EVENT, IOW it has to be programmable by the client. Some actual EVENTS from the event table: New Claim Notice Approve Pend Terminate Deny Re-Open Suspend Delete This Event Receive Appeal Uphold Denial Uphold Termination Transfer In Transfer Out Not Received There are MANY MANY more. Events MAY or may not cause STATUSES. Some actual statuses from the STATUS table: CS_Status None First Notice Open Pending Terminated Denied Re-Opened Suspended Received Appeal Upheld Denial Upheld Termination Transfer In Transferred Out Determined at IDE Archived Not Received Now, obviously EVENTS and STATUSES are NOT the same thing. Events MAY CAUSE a status change, however there are RULES about what STATUS can be "moved to" from the current status. For example you cannot go to the CLOSED status unless the claim is OPEN. You cannot RE-OPEN a claim that is ALREADY in the OPEN state. APPEAL can move to UPHELD DENIAL, UPHELD TERMINATION or OPEN, and so forth. So you have to have a transition table that maps the current status to "POSSIBLE" status, IOW "where can you go from here". You also have a stimulus table that maps "this event can cause this status (or causes NO status change)". An OPEN event causes an OPEN status, but a "DOCUMENT RECEIVED" or a "LETTER SENT" event does not cause a status change. And finally you have a table that says "this event can happen when in this state". Then of course you have a class system that enforces the rules. It loads all of the tables into class instances which are then stored in collections. The tables are "the rules" for the state machine and are fully programmable by the client. The user is presented a list of "possible events" in a combo box. Basically the current status is discovered and used to filter the list of events to those that can occur in that state. The user can therefore only select an event if the system says that it can occur while in the current state. State machines are wonderful devices for mapping business rules where "this process can only happen in these cases". In my case, there is a table of events that have occurred in the claim. These events display the entire history of the claim and are the focal point of the claim processing. The events channel the user, allowing them to do what makes sense given where we are in the processing sequence, and preventing doing things that make no sense given the current state of the claim process. The user can examine the event table and see what events have transpired, the sequence of events, the dates, memos about those events etc. We even create events from outside processes such as the mail merge process creates an event "letter sent" with the name of the letter, who it was sent to etc. State machines, check them out. They might just solve that thorny process control problem that you are facing. -- John W. Colby www.ColbyConsulting.com From jwcolby at colbyconsulting.com Tue Jun 10 16:03:37 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 10 Jun 2008 17:03:37 -0400 Subject: [AccessD] VBA Unbound data entry / update form In-Reply-To: <01ab01c8cb3a$123c1bd0$0301a8c0@HAL9005> References: <483C8FF5.1040407@colbyconsulting.com><0K1J00I84V5QZ1U0@vms044.mailsrvcs.net> <02034CB1BB2E4ECE9DE313D2E38175AE@creativesystemdesigns.com><015b01c8cb09$028a2050$0301a8c0@HAL9005> <484EA693.6090509@colbyconsulting.com><017601c8cb19$a82dbd90$0301a8c0@HAL9005> <484EB2F9.2060602@colbyconsulting.com> <484EBBA3.2060509@colbyconsulting.com><018f01c8cb35$5868d670$0301a8c0@HAL9005> <484EE1E1.4090606@colbyconsulting.com> <01ab01c8cb3a$123c1bd0$0301a8c0@HAL9005> Message-ID: <484EEC29.10905@colbyconsulting.com> Rocky, you are neither dumb nor rash. I am actually soliciting useful and usable discussion about a specific problem. If YOU (and anyone else) would like to contribute to a discussion re editing existing records in an unbound form and attempting to correctly handle edit collisions, I would WELCOME such input. I AM having a problem with people telling me I am whimpering when I do not consider their solutions to a completely different problem to be useful. I do have a problem with people telling me how it is just never possible anywhere in the universe that what they consider to be "the only correct answer" isn't useful. And I do have a problem being told that just because they can't solve the problem that the problem isn't solvable. If such people would just go away I would be VERY happy. John W. Colby www.ColbyConsulting.com Rocky Smolin at Beach Access Software wrote: > I won't disagree with you, John (I may be dumb, but I'm not rash!) > > R > > > > Rocky Smolin > Beach Access Software > 858-259-4334 > www.e-z-mrp.com > www.bchacc.com > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Tuesday, June 10, 2008 1:20 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] VBA Unbound data entry / update form > > Rocky, > > This is neither religion nor politics. I had an open thread soliciting > ideas for a specific Microsoft ACCESS problem that I actually have and am > actively trying to solve. > > The fact that I am getting none is informative all by itself, though less > than helpful. > > The fact that some people insist on trying to re-engineer the system without > ever having seen the system, been involved in any design discussions with > the client, nor in fact ever even MET the client is annoying, I must say. > > I have politely requested that people stick to answers to my question, which > certainly seems reasonable to me since I started the thread. Perhaps a > moderator should politely ask people stick to answers to my question, or > start their own threads. > > John W. Colby > www.ColbyConsulting.com From accessd at shaw.ca Tue Jun 10 16:55:54 2008 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 10 Jun 2008 14:55:54 -0700 Subject: [AccessD] VBA Unbound data entry / update form In-Reply-To: <484EA693.6090509@colbyconsulting.com> References: <483C8FF5.1040407@colbyconsulting.com> <0K1J00I84V5QZ1U0@vms044.mailsrvcs.net> <02034CB1BB2E4ECE9DE313D2E38175AE@creativesystemdesigns.com> <015b01c8cb09$028a2050$0301a8c0@HAL9005> <484EA693.6090509@colbyconsulting.com> Message-ID: Rocky, John In the case of an SQL DB BE that whole issue is managed by the DB just as it would if with a bound MDB only better. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, June 10, 2008 9:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VBA Unbound data entry / update form Rocky, I hate to jump all over your method because I want a method to use, but you are completely ignoring locking / update issues. What happened if another user updated the record between the time you loaded yours and the time you write it back? John W. Colby www.ColbyConsulting.com Rocky Smolin at Beach Access Software wrote: > I know how to make an unbound form but I haven't got enough nerve to present > such heresy - it runs counter to strongly held religious beliefs. > > OK - briefly - but you didn't hear it from me. > > 1. Design your form as you would a bound form but no Control Source in the > text boxes. > 2. Create a recordset in the Open event of the form (DAO or ADO - I prefer > DAO) using pretty much the same SQL or query as you would for your Record > Source in a bound form. > 3. Add a module to put the fields from the current record of the recordset > into the text boxes which you can call whenever you want to display the data > on your form. > 4. Add a module to put the values in the text boxes into the fields of the > current record (in DAO use .Edit or .Add and .Update) which you can call > whenever you want to write the textbox values back to the table. > 5. I always put my own navigation buttons on the unbound for - First, Last, > Next, Previous with Click events that move the recordset point > appropriately. > > HTH > > Rocky Smolin > Beach Access Software > 858-259-4334 > www.e-z-mrp.com > www.bchacc.com > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence > Sent: Monday, June 09, 2008 5:38 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] VBA Unbound data entry / update form > > Hi Jennifer: > > I have no idea how to create bound Access forms. ;-) The last bound database > that I have worked with was back in '97. > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross > Sent: Tuesday, May 27, 2008 5:12 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] VBA Unbound data entry / update form > > I have no idea how to create an unbound form in Access. I always use bound > forms. Though I would be interested to know how it's done. Unless I've got > it wrong, that seems to be the basic question here - For those of you who do > it, how do you create an unbound form? How do you populate the textboxes > initially and then how do you save the information back to the tables? > > It's beginning to sound like nobody really does it. > > Jennifer > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Tuesday, May 27, 2008 2:49 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] VBA Unbound data entry / update form > > > 1) If your situation gives you the choice between Access and SQL Server, > then you can use SQL Server Express. For your customer's benefit - it's > free! > > I know that, and you know that, but they have used an MDB BE for most of a > decade. SQL Server is the great unknown. > > > 2) How many concurrent users? Too Many? > > In the majority of cases, no. There ARE specific places where too many > users cause mysterious issues with an MDB. > Memos are written in "pages", as are indexes. If you open a record and > start to edit it, it "locks" an entire "page" of the index structure or the > memo area, which locks not just your record but potentially many others. > > This simply doesn't happen in SQL Server because SQL Server doesn't have > this "page" system for storing memo fields etc. > > > 3) How many indexes on the tables? > > Not the point, the point is that ALL indexes are stored in Index pages, and > entire pages of indexs can be locked by a single edit. > > Creating / using Indexes should be determined by need, not arcane locking > issues within Jet. > > > 4) Are you starting up by setting a recordset to open and leaving it that > way? > > If you are talking about creating and holding locks on the BE, yes I am, but > that isn't the issue either. > > John W. Colby > www.ColbyConsulting.com > > > Dan Waters wrote: >> John - I've been reading this with interest: >> >> 1) If your situation gives you the choice between Access and SQL >> Server, then you can use SQL Server Express. For your customer's >> benefit - it's free! >> >> 2) How many concurrent users? Too Many? >> >> 3) How many indexes on the tables? I actually only use the primary >> key as an index on every table. More indexes slows down writing > performance. >> 4) Are you starting up by setting a recordset to open and leaving it >> that way? This greatly reduces 'churn' in the locking database. When >> I set this up all my users reported a significant performance improvement. > Code below: >> '------------------------------------------------------------------------ >> Dim stgConnect As String >> Dim dbs As DAO.Database >> Dim tdf As DAO.TableDef >> >> stgConnect = BEFullPath >> Set dbs = DBEngine(0)(0) >> Set tdf = dbs.TableDefs("tblConnect") >> If tdf.Connect <> ";Database=" & stgConnect Then >> tdf.Connect = ";Database=" & stgConnect >> tdf.RefreshLink >> End If >> dbs.Close >> >> Set GrstConnect = DBEngine(0)(0).OpenRecordset("tblConnect", >> dbOpenSnapshot) >> '--------------------------------------------------------------------- >> --- >> >> Notes: BEFullPath is a function to return the full path to the BE. >> tblConnect is a one row one field table in the BE. >> The table link is refreshed because the table link is in a > library. >> GrstConnect is a globally defined DAO recordset. >> GrstConnect remains open until just before the database is closed. >> >> Good Luck! >> Dan > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > No virus found in this incoming message. > Checked by AVG. > Version: 8.0.100 / Virus Database: 270.1.0/1492 - Release Date: 9/6/2008 > 10:29 > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Jun 10 16:58:13 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 10 Jun 2008 17:58:13 -0400 Subject: [AccessD] State machines In-Reply-To: <484ECB18.2050808@colbyconsulting.com> References: <484ECB18.2050808@colbyconsulting.com> Message-ID: <484EF8F5.5010006@colbyconsulting.com> Having created a state machine for the claim call center software, I wanted a system where I could easily find (for example) "what was the date of the event that caused the current state" or "what event actually caused the current state and what notes were associated with it", that kind of thing. I added fields to the event to hold a pointer to: 1) The previous event: the event immediately previous to this event. 2) The current status event: what event caused the current status. 3) The previous status event: what event caused the PREVIOUS status. What I failed to do is the final piece of 4) Next event: What is the next event in the chain. Anyone familiar with linked lists know that there are single linked lists and doubly linked lists. In my case I created a link backwards to the previous event but no link forward to the next event. Anyway I designed a system to load all the events for one specific claim into class instances (clsClaimEvent), then store those instances in a collection in a supervisor (clsClaimEvents). My code allows iterating through the events updating the pointers to the previous events, as well as getting the specific event records for previous, current status and previous status, as well as a generic "give me this event record" (by EVPKID). I use this in the claim form. As the claim form opens for a given claim I open clsClaimEvents which loads all instances of clsClaimEvent and stores them keyed by EVPKID. As an example of where I use this stuff, we need to enter benefit records, which are basically "we are going to make a payment now" records. Claim records have fields which define the date the claim was filed, the date of disability, the paid through date etc. There are "can't file a claim for X days after you bought the policy" kind of dates. Now the benefit payment (this check) will be for this starting date through this ending date. In some cases I need to know things that are in event records, for example when a claim was closed (the person returns to work) In order to help the user enter these payments and minimize errors I have to check information from the events and compare those "effective dates" against the dates being paid. This Event class system allows me to easily find the actual record that caused status changes so I can look for claim closed events, reopened events and so forth. The dates in these events are then compared against the dates to being entered to warn the user that they may be entering a payment for dates which the data does not support paying. The events themselves contain the status information to control the state machine, but they are also the history of the claim and this class system I am discussing now makes programmatic access to that information possible. Just as a matter of interest, there are almost 500,000 events in the event table. Many claims have more than 100 events, one claim has 250 events. John W. Colby www.ColbyConsulting.com jwcolby wrote: > How many of you know what a state machine is? > > http://en.wikipedia.org/wiki/Finite_state_machine > > More generically a state machine is a structure (hardware or > software) that stores the current "state" of something and > uses stimuli to cause changes from the current state to some > other state. State machines prevent and allow state changes > from a specific state to another specific state. > > IOW from this state you can only move to "these other > states" and which state you actually move to will be > determined by something that occurred. > > I wrote a state machine for my disability call center software. > > During the processing of claims, EVENTS happen. Events can > be (pretty much) anything that the client wants to call an > EVENT, IOW it has to be programmable by the client. Some > actual EVENTS from the event table: > > New Claim Notice > Approve > Pend > Terminate > Deny > Re-Open > Suspend > Delete This Event > Receive > Appeal > Uphold Denial > Uphold Termination > Transfer In > Transfer Out > Not Received > > There are MANY MANY more. > > Events MAY or may not cause STATUSES. Some actual statuses > from the STATUS table: > > CS_Status > None > First Notice > Open > Pending > Terminated > Denied > Re-Opened > Suspended > Received > Appeal > Upheld Denial > Upheld Termination > Transfer In > Transferred Out > Determined at IDE > Archived > Not Received > > Now, obviously EVENTS and STATUSES are NOT the same thing. > Events MAY CAUSE a status change, however there are RULES > about what STATUS can be "moved to" from the current status. > For example you cannot go to the CLOSED status unless the > claim is OPEN. You cannot RE-OPEN a claim that is ALREADY > in the OPEN state. APPEAL can move to UPHELD DENIAL, UPHELD > TERMINATION or OPEN, and so forth. > > So you have to have a transition table that maps the current > status to "POSSIBLE" status, IOW "where can you go from > here". You also have a stimulus table that maps "this event > can cause this status (or causes NO status change)". An > OPEN event causes an OPEN status, but a "DOCUMENT RECEIVED" > or a "LETTER SENT" event does not cause a status change. > > And finally you have a table that says "this event can > happen when in this state". > > Then of course you have a class system that enforces the > rules. It loads all of the tables into class instances > which are then stored in collections. > > The tables are "the rules" for the state machine and are > fully programmable by the client. The user is presented a > list of "possible events" in a combo box. Basically the > current status is discovered and used to filter the list of > events to those that can occur in that state. The user can > therefore only select an event if the system says that it > can occur while in the current state. > > State machines are wonderful devices for mapping business > rules where "this process can only happen in these cases". > > In my case, there is a table of events that have occurred in > the claim. These events display the entire history of the > claim and are the focal point of the claim processing. The > events channel the user, allowing them to do what makes > sense given where we are in the processing sequence, and > preventing doing things that make no sense given the current > state of the claim process. > > The user can examine the event table and see what events > have transpired, the sequence of events, the dates, memos > about those events etc. We even create events from outside > processes such as the mail merge process creates an event > "letter sent" with the name of the letter, who it was sent > to etc. > > State machines, check them out. They might just solve that > thorny process control problem that you are facing. > From accessd at shaw.ca Tue Jun 10 17:07:08 2008 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 10 Jun 2008 15:07:08 -0700 Subject: [AccessD] VBA Unbound data entry / update form In-Reply-To: References: <483C8FF5.1040407@colbyconsulting.com> <0K1J00I84V5QZ1U0@vms044.mailsrvcs.net> <02034CB1BB2E4ECE9DE313D2E38175AE@creativesystemdesigns.com> <015b01c8cb09$028a2050$0301a8c0@HAL9005> <484EA693.6090509@colbyconsulting.com> <017601c8cb19$a82dbd90$0301a8c0@HAL9005> <484EB2F9.2060602@colbyconsulting.com> Message-ID: <4A61D321E0134BF7981046D8E07596F6@creativesystemdesigns.com> They have Liz: 20 years ago there were no tightly bound databases. Bound database are a relatively new phenomena. With the growth of stand-alone pure databases, with all their sophisticate conflict management routines and the growth of web based products tightly-bound applications are going by the board. One day I am sure bound databases will just be a point of conversation for us old guys and little more. In the 10 years of using unbound DBs, I have never been made aware of a single piece of lost data due to a non binding issue.... In fact quite the contrary is true, though. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Elizabeth.J.Doering at wellsfargo.com Sent: Tuesday, June 10, 2008 10:10 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] VBA Unbound data entry / update form I suspect that the unbounders on this list have all been converted and are therefore silent. :) Thanks, Liz This message may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose, or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. Thank you for your cooperation. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, June 10, 2008 12:00 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VBA Unbound data entry / update form LOL, OK. The devil is in the details after all. I am not really interested in locking. In my understanding of unbound forms, you don't hold locks, and if you are, you might as well go bound. Which leads us squarely back to update strategies, and testing for modifications by other users. All that good stuff that the "unbounders" claim to handle but have never piped up with even general strategies, never mind code. John W. Colby www.ColbyConsulting.com Rocky Smolin at Beach Access Software wrote: > Not ignoring. It wasn't an exhaustive treatise on the subject. Just > a 'how to get started'. Locking: you have to look up record and page > locking stuff for DAO. > > > Rocky Smolin > Beach Access Software > 858-259-4334 > www.e-z-mrp.com > www.bchacc.com > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Tuesday, June 10, 2008 9:07 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] VBA Unbound data entry / update form > > Rocky, > > I hate to jump all over your method because I want a method to use, > but you are completely ignoring locking / update issues. What > happened if another user updated the record between the time you > loaded yours and the time you write it back? > > John W. Colby > www.ColbyConsulting.com > > > Rocky Smolin at Beach Access Software wrote: >> I know how to make an unbound form but I haven't got enough nerve to >> present such heresy - it runs counter to strongly held religious beliefs. >> >> OK - briefly - but you didn't hear it from me. >> >> 1. Design your form as you would a bound form but no Control Source >> in the text boxes. >> 2. Create a recordset in the Open event of the form (DAO or ADO - I >> prefer >> DAO) using pretty much the same SQL or query as you would for your >> Record Source in a bound form. >> 3. Add a module to put the fields from the current record of the >> recordset into the text boxes which you can call whenever you want to >> display the data on your form. >> 4. Add a module to put the values in the text boxes into the fields >> of the current record (in DAO use .Edit or .Add and .Update) which >> you can call whenever you want to write the textbox values back to the table. >> 5. I always put my own navigation buttons on the unbound for - First, >> Last, Next, Previous with Click events that move the recordset point >> appropriately. >> >> HTH >> >> Rocky Smolin >> Beach Access Software >> 858-259-4334 >> www.e-z-mrp.com >> www.bchacc.com >> >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim >> Lawrence >> Sent: Monday, June 09, 2008 5:38 PM >> To: 'Access Developers discussion and problem solving' >> Subject: Re: [AccessD] VBA Unbound data entry / update form >> >> Hi Jennifer: >> >> I have no idea how to create bound Access forms. ;-) The last bound >> database that I have worked with was back in '97. >> >> Jim >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer >> Gross >> Sent: Tuesday, May 27, 2008 5:12 PM >> To: 'Access Developers discussion and problem solving' >> Subject: Re: [AccessD] VBA Unbound data entry / update form >> >> I have no idea how to create an unbound form in Access. I always use >> bound forms. Though I would be interested to know how it's done. >> Unless I've got it wrong, that seems to be the basic question here - >> For those of you who do it, how do you create an unbound form? How >> do you populate the textboxes initially and then how do you save the > information back to the tables? >> It's beginning to sound like nobody really does it. >> >> Jennifer -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Tue Jun 10 17:01:08 2008 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 10 Jun 2008 17:01:08 -0500 Subject: [AccessD] VBA Unbound data entry / update form In-Reply-To: References: <483C8FF5.1040407@colbyconsulting.com><0K1J00I84V5QZ1U0@vms044.mailsrvcs.net><02034CB1BB2E4ECE9DE313D2E38175AE@creativesystemdesigns.com><015b01c8cb09$028a2050$0301a8c0@HAL9005><484EA693.6090509@colbyconsulting.com> Message-ID: Jim - how can we learn how to do this? Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, June 10, 2008 4:56 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] VBA Unbound data entry / update form Rocky, John In the case of an SQL DB BE that whole issue is managed by the DB just as it would if with a bound MDB only better. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, June 10, 2008 9:07 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VBA Unbound data entry / update form Rocky, I hate to jump all over your method because I want a method to use, but you are completely ignoring locking / update issues. What happened if another user updated the record between the time you loaded yours and the time you write it back? John W. Colby www.ColbyConsulting.com Rocky Smolin at Beach Access Software wrote: > I know how to make an unbound form but I haven't got enough nerve to present > such heresy - it runs counter to strongly held religious beliefs. > > OK - briefly - but you didn't hear it from me. > > 1. Design your form as you would a bound form but no Control Source in the > text boxes. > 2. Create a recordset in the Open event of the form (DAO or ADO - I prefer > DAO) using pretty much the same SQL or query as you would for your Record > Source in a bound form. > 3. Add a module to put the fields from the current record of the recordset > into the text boxes which you can call whenever you want to display the data > on your form. > 4. Add a module to put the values in the text boxes into the fields of the > current record (in DAO use .Edit or .Add and .Update) which you can call > whenever you want to write the textbox values back to the table. > 5. I always put my own navigation buttons on the unbound for - First, Last, > Next, Previous with Click events that move the recordset point > appropriately. > > HTH > > Rocky Smolin > Beach Access Software > 858-259-4334 > www.e-z-mrp.com > www.bchacc.com > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence > Sent: Monday, June 09, 2008 5:38 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] VBA Unbound data entry / update form > > Hi Jennifer: > > I have no idea how to create bound Access forms. ;-) The last bound database > that I have worked with was back in '97. > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross > Sent: Tuesday, May 27, 2008 5:12 PM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] VBA Unbound data entry / update form > > I have no idea how to create an unbound form in Access. I always use bound > forms. Though I would be interested to know how it's done. Unless I've got > it wrong, that seems to be the basic question here - For those of you who do > it, how do you create an unbound form? How do you populate the textboxes > initially and then how do you save the information back to the tables? > > It's beginning to sound like nobody really does it. > > Jennifer > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Tuesday, May 27, 2008 2:49 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] VBA Unbound data entry / update form > > > 1) If your situation gives you the choice between Access and SQL Server, > then you can use SQL Server Express. For your customer's benefit - it's > free! > > I know that, and you know that, but they have used an MDB BE for most of a > decade. SQL Server is the great unknown. > > > 2) How many concurrent users? Too Many? > > In the majority of cases, no. There ARE specific places where too many > users cause mysterious issues with an MDB. > Memos are written in "pages", as are indexes. If you open a record and > start to edit it, it "locks" an entire "page" of the index structure or the > memo area, which locks not just your record but potentially many others. > > This simply doesn't happen in SQL Server because SQL Server doesn't have > this "page" system for storing memo fields etc. > > > 3) How many indexes on the tables? > > Not the point, the point is that ALL indexes are stored in Index pages, and > entire pages of indexs can be locked by a single edit. > > Creating / using Indexes should be determined by need, not arcane locking > issues within Jet. > > > 4) Are you starting up by setting a recordset to open and leaving it that > way? > > If you are talking about creating and holding locks on the BE, yes I am, but > that isn't the issue either. > > John W. Colby > www.ColbyConsulting.com > > > Dan Waters wrote: >> John - I've been reading this with interest: >> >> 1) If your situation gives you the choice between Access and SQL >> Server, then you can use SQL Server Express. For your customer's >> benefit - it's free! >> >> 2) How many concurrent users? Too Many? >> >> 3) How many indexes on the tables? I actually only use the primary >> key as an index on every table. More indexes slows down writing > performance. >> 4) Are you starting up by setting a recordset to open and leaving it >> that way? This greatly reduces 'churn' in the locking database. When >> I set this up all my users reported a significant performance improvement. > Code below: >> '------------------------------------------------------------------------ >> Dim stgConnect As String >> Dim dbs As DAO.Database >> Dim tdf As DAO.TableDef >> >> stgConnect = BEFullPath >> Set dbs = DBEngine(0)(0) >> Set tdf = dbs.TableDefs("tblConnect") >> If tdf.Connect <> ";Database=" & stgConnect Then >> tdf.Connect = ";Database=" & stgConnect >> tdf.RefreshLink >> End If >> dbs.Close >> >> Set GrstConnect = DBEngine(0)(0).OpenRecordset("tblConnect", >> dbOpenSnapshot) >> '--------------------------------------------------------------------- >> --- >> >> Notes: BEFullPath is a function to return the full path to the BE. >> tblConnect is a one row one field table in the BE. >> The table link is refreshed because the table link is in a > library. >> GrstConnect is a globally defined DAO recordset. >> GrstConnect remains open until just before the database is closed. >> >> Good Luck! >> Dan > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > No virus found in this incoming message. > Checked by AVG. > Version: 8.0.100 / Virus Database: 270.1.0/1492 - Release Date: 9/6/2008 > 10:29 > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwcolby at colbyconsulting.com Tue Jun 10 17:02:13 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 10 Jun 2008 18:02:13 -0400 Subject: [AccessD] VBA Unbound data entry / update form In-Reply-To: References: <483C8FF5.1040407@colbyconsulting.com> <0K1J00I84V5QZ1U0@vms044.mailsrvcs.net> <02034CB1BB2E4ECE9DE313D2E38175AE@creativesystemdesigns.com> <015b01c8cb09$028a2050$0301a8c0@HAL9005> <484EA693.6090509@colbyconsulting.com> Message-ID: <484EF9E5.3080901@colbyconsulting.com> Precisely, which makes the inability to even get a discussion going even more discouraging. JET is widely used, page lock issues are real, one would imagine that folks would have spent some time thinking about this for jet / unbound. But it seems a good time to just drop the whole thing. John W. Colby www.ColbyConsulting.com Jim Lawrence wrote: > Rocky, John > > In the case of an SQL DB BE that whole issue is managed by the DB just as it > would if with a bound MDB only better. > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Tuesday, June 10, 2008 9:07 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] VBA Unbound data entry / update form > > Rocky, > > I hate to jump all over your method because I want a method > to use, but you are completely ignoring locking / update > issues. What happened if another user updated the record > between the time you loaded yours and the time you write it > back? > > John W. Colby > www.ColbyConsulting.com From DWUTKA at Marlow.com Tue Jun 10 17:21:17 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 10 Jun 2008 17:21:17 -0500 Subject: [AccessD] VBA Unbound data entry / update form In-Reply-To: <484ECB8A.2010606@colbyconsulting.com> Message-ID: Not entirely true John. Unbound DOES use locks. It just doesn't 'hold' the lock if designed correctly. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, June 10, 2008 1:44 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VBA Unbound data entry / update form > You want code that will work as if the thing was bound. Not gonna happen, roll your sleeves up. I never asked for that, nor do I expect that to happen, your code or mine. Unbound using no locks simply cannot function in the same manner as a bound form creating locks. John W. Colby www.ColbyConsulting.com Charlotte Foust wrote: > Hah! You want code, write your own!! LOL > > You want code that will work as if the thing was bound. Not gonna > happen, roll your sleeves up. > > Charlotte Foust > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Tuesday, June 10, 2008 10:00 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] VBA Unbound data entry / update form > > LOL, OK. The devil is in the details after all. > > I am not really interested in locking. In my understanding of unbound > forms, you don't hold locks, and if you are, you might as well go bound. > > Which leads us squarely back to update strategies, and testing for > modifications by other users. All that good stuff that the "unbounders" > claim to handle but have never piped up with even general strategies, > never mind code. > > John W. Colby > www.ColbyConsulting.com > > > Rocky Smolin at Beach Access Software wrote: >> Not ignoring. It wasn't an exhaustive treatise on the subject. Just >> a 'how to get started'. Locking: you have to look up record and >> page > >> locking stuff for DAO. >> >> >> Rocky Smolin >> Beach Access Software >> 858-259-4334 >> www.e-z-mrp.com >> www.bchacc.com >> >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: Tuesday, June 10, 2008 9:07 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] VBA Unbound data entry / update form >> >> Rocky, >> >> I hate to jump all over your method because I want a method to use, >> but you are completely ignoring locking / update issues. What >> happened if another user updated the record between the time you >> loaded yours and the time you write it back? >> >> John W. Colby >> www.ColbyConsulting.com >> >> >> Rocky Smolin at Beach Access Software wrote: >>> I know how to make an unbound form but I haven't got enough nerve to >>> present such heresy - it runs counter to strongly held religious > beliefs. >>> OK - briefly - but you didn't hear it from me. >>> >>> 1. Design your form as you would a bound form but no Control Source >>> in the text boxes. >>> 2. Create a recordset in the Open event of the form (DAO or ADO - I >>> prefer >>> DAO) using pretty much the same SQL or query as you would for your >>> Record Source in a bound form. >>> 3. Add a module to put the fields from the current record of the >>> recordset into the text boxes which you can call whenever you want >>> to > >>> display the data on your form. >>> 4. Add a module to put the values in the text boxes into the fields >>> of the current record (in DAO use .Edit or .Add and .Update) which >>> you can call whenever you want to write the textbox values back to > the table. >>> 5. I always put my own navigation buttons on the unbound for - >>> First, > >>> Last, Next, Previous with Click events that move the recordset point >>> appropriately. >>> >>> HTH >>> >>> Rocky Smolin >>> Beach Access Software >>> 858-259-4334 >>> www.e-z-mrp.com >>> www.bchacc.com >>> >>> >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim >>> Lawrence >>> Sent: Monday, June 09, 2008 5:38 PM >>> To: 'Access Developers discussion and problem solving' >>> Subject: Re: [AccessD] VBA Unbound data entry / update form >>> >>> Hi Jennifer: >>> >>> I have no idea how to create bound Access forms. ;-) The last bound >>> database that I have worked with was back in '97. >>> >>> Jim >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer >>> Gross >>> Sent: Tuesday, May 27, 2008 5:12 PM >>> To: 'Access Developers discussion and problem solving' >>> Subject: Re: [AccessD] VBA Unbound data entry / update form >>> >>> I have no idea how to create an unbound form in Access. I always >>> use > >>> bound forms. Though I would be interested to know how it's done. >>> Unless I've got it wrong, that seems to be the basic question here - >>> For those of you who do it, how do you create an unbound form? How >>> do you populate the textboxes initially and then how do you save the >> information back to the tables? >>> It's beginning to sound like nobody really does it. >>> >>> Jennifer > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From DWUTKA at Marlow.com Tue Jun 10 17:22:58 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 10 Jun 2008 17:22:58 -0500 Subject: [AccessD] VBA Unbound data entry / update form In-Reply-To: <484ECE7D.3070609@colbyconsulting.com> Message-ID: Again, wrong JC. ADO does use record locks, the same as DAO. It's JET, which creates and uses the locks, DAO and ADO are programming interfaces to JET. Will sum up comments about the rest of your post in another post. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, June 10, 2008 1:57 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VBA Unbound data entry / update form Drew, EXACTLY WHAT do you think happens with ADO unbound recordsets being updated back to the database in VB.Net? There are NO LOCKS THERE, but they have developed some system to "handle the situation". It is my understanding that updates are legal in disconnected ADO recordsets. Ergo there is a solution. In ACCESS there are very valid instances where a bound form causes problems BECAUSE OF JET and page locking. YOU WILL GIVE UP and blather on about "stick with a bound form". I have never asked you to participate in this thread. If you don't want to think about the problem, blather somewhere else please. I was about as civil as I could get in the previous round. You are the annoying one insisting that since YOU don't have an answer there is no answer. PLEASE, just butt out! Thanks, John W. Colby www.ColbyConsulting.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From jwcolby at colbyconsulting.com Tue Jun 10 17:49:00 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 10 Jun 2008 18:49:00 -0400 Subject: [AccessD] VBA Unbound data entry / update form In-Reply-To: References: Message-ID: <484F04DC.3030205@colbyconsulting.com> > Will sum up comments about the rest of your post in another post. Don't bother, thanks. John W. Colby www.ColbyConsulting.com Drew Wutka wrote: > Again, wrong JC. ADO does use record locks, the same as DAO. It's JET, > which creates and uses the locks, DAO and ADO are programming interfaces > to JET. > > Will sum up comments about the rest of your post in another post. > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Tuesday, June 10, 2008 1:57 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] VBA Unbound data entry / update form > > Drew, EXACTLY WHAT do you think happens with ADO unbound recordsets > being updated back to the database in VB.Net? > > There are NO LOCKS THERE, but they have developed some system to "handle > the situation". It is my understanding that updates are legal in > disconnected ADO recordsets. Ergo there is a solution. > > In ACCESS there are very valid instances where a bound form causes > problems BECAUSE OF JET and page locking. > > YOU WILL GIVE UP and blather on about "stick with a bound form". > > I have never asked you to participate in this thread. If you don't want > to think about the problem, blather somewhere else please. > > I was about as civil as I could get in the previous round. > You are the annoying one insisting that since YOU don't have an answer > there is no answer. > > PLEASE, just butt out! > > Thanks, > > John W. Colby > www.ColbyConsulting.com > > > The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. > > From jwcolby at colbyconsulting.com Tue Jun 10 17:49:45 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 10 Jun 2008 18:49:45 -0400 Subject: [AccessD] VBA Unbound data entry / update form In-Reply-To: References: Message-ID: <484F0509.7030300@colbyconsulting.com> I know that. John W. Colby www.ColbyConsulting.com Drew Wutka wrote: > Not entirely true John. Unbound DOES use locks. It just doesn't 'hold' > the lock if designed correctly. > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Tuesday, June 10, 2008 1:44 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] VBA Unbound data entry / update form > > > You want code that will work as if the thing was bound. > Not gonna happen, roll your sleeves up. > > I never asked for that, nor do I expect that to happen, your code or > mine. Unbound using no locks simply cannot function in the same manner > as a bound form creating locks. > > John W. Colby > www.ColbyConsulting.com > > > Charlotte Foust wrote: >> Hah! You want code, write your own!! LOL >> >> You want code that will work as if the thing was bound. Not gonna >> happen, roll your sleeves up. >> >> Charlotte Foust >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: Tuesday, June 10, 2008 10:00 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] VBA Unbound data entry / update form >> >> LOL, OK. The devil is in the details after all. >> >> I am not really interested in locking. In my understanding of unbound > >> forms, you don't hold locks, and if you are, you might as well go > bound. >> Which leads us squarely back to update strategies, and testing for >> modifications by other users. All that good stuff that the > "unbounders" >> claim to handle but have never piped up with even general strategies, >> never mind code. >> >> John W. Colby >> www.ColbyConsulting.com >> >> >> Rocky Smolin at Beach Access Software wrote: >>> Not ignoring. It wasn't an exhaustive treatise on the subject. Just > >>> a 'how to get started'. Locking: you have to look up record and >>> page >>> locking stuff for DAO. >>> >>> >>> Rocky Smolin >>> Beach Access Software >>> 858-259-4334 >>> www.e-z-mrp.com >>> www.bchacc.com >>> >>> >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >>> Sent: Tuesday, June 10, 2008 9:07 AM >>> To: Access Developers discussion and problem solving >>> Subject: Re: [AccessD] VBA Unbound data entry / update form >>> >>> Rocky, >>> >>> I hate to jump all over your method because I want a method to use, >>> but you are completely ignoring locking / update issues. What >>> happened if another user updated the record between the time you >>> loaded yours and the time you write it back? >>> >>> John W. Colby >>> www.ColbyConsulting.com >>> >>> >>> Rocky Smolin at Beach Access Software wrote: >>>> I know how to make an unbound form but I haven't got enough nerve to > >>>> present such heresy - it runs counter to strongly held religious >> beliefs. >>>> OK - briefly - but you didn't hear it from me. >>>> >>>> 1. Design your form as you would a bound form but no Control Source >>>> in the text boxes. >>>> 2. Create a recordset in the Open event of the form (DAO or ADO - I >>>> prefer >>>> DAO) using pretty much the same SQL or query as you would for your >>>> Record Source in a bound form. >>>> 3. Add a module to put the fields from the current record of the >>>> recordset into the text boxes which you can call whenever you want >>>> to >>>> display the data on your form. >>>> 4. Add a module to put the values in the text boxes into the fields >>>> of the current record (in DAO use .Edit or .Add and .Update) which >>>> you can call whenever you want to write the textbox values back to >> the table. >>>> 5. I always put my own navigation buttons on the unbound for - >>>> First, >>>> Last, Next, Previous with Click events that move the recordset point > >>>> appropriately. >>>> >>>> HTH >>>> >>>> Rocky Smolin >>>> Beach Access Software >>>> 858-259-4334 >>>> www.e-z-mrp.com >>>> www.bchacc.com >>>> >>>> >>>> >>>> -----Original Message----- >>>> From: accessd-bounces at databaseadvisors.com >>>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim >>>> Lawrence >>>> Sent: Monday, June 09, 2008 5:38 PM >>>> To: 'Access Developers discussion and problem solving' >>>> Subject: Re: [AccessD] VBA Unbound data entry / update form >>>> >>>> Hi Jennifer: >>>> >>>> I have no idea how to create bound Access forms. ;-) The last bound >>>> database that I have worked with was back in '97. >>>> >>>> Jim >>>> >>>> -----Original Message----- >>>> From: accessd-bounces at databaseadvisors.com >>>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer >>>> Gross >>>> Sent: Tuesday, May 27, 2008 5:12 PM >>>> To: 'Access Developers discussion and problem solving' >>>> Subject: Re: [AccessD] VBA Unbound data entry / update form >>>> >>>> I have no idea how to create an unbound form in Access. I always >>>> use >>>> bound forms. Though I would be interested to know how it's done. >>>> Unless I've got it wrong, that seems to be the basic question here - > >>>> For those of you who do it, how do you create an unbound form? How >>>> do you populate the textboxes initially and then how do you save the >>> information back to the tables? >>>> It's beginning to sound like nobody really does it. >>>> >>>> Jennifer >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/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 contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. > > From DWUTKA at Marlow.com Tue Jun 10 18:00:56 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 10 Jun 2008 18:00:56 -0500 Subject: [AccessD] VBA Unbound data entry / update form In-Reply-To: <484ED36B.4080901@colbyconsulting.com> Message-ID: Arrogant A$$, insolent ideas? Sheesh JC. First of all, I am very proud of AccessD, in fact I was honored to be asked to be a member of the Board of Directors for Database Advisors. Still am. What I am proud of with this organization is that it is a wonderful environment for all Access users, both newbies and pros, and everything in between. You and I have butted heads before. We have even butted heads on this specific topic. The end of the last battle over this was a consensus that there was nothing wrong with either bound or unbound forms, that each had their place and usage. I stuck to my ground on that one (and others), because I don't want an educational organization, like this one, that I belong too, to preach 'our way or the highway', or 'this is a bad practice cause it can be used incorrectly if you don't know what you are doing'. If you want the posts from way back then, I'll send them to you.A majority of the unbound/bound debate was the 'bounders' claiming there was never a reason to use an unbound form. That 'replicating' SOME of the bound capabilities (like reading and writing data) was pointless because a bound form already did that. And I defended my position that there are and is a time and place to use unbound forms. Now, you started this thread. Asked for an unbound solution to a problem you were having with a bound form. I gave you a solution that solved every problem you were having. You disregarded my solution because your customer is dictating the table design. Granted, I think that's idiotic. Which spun you off into a whirlwind. Hey, great, it's your customer, and your problem. So THEN, I posted WHY you would continue to have a problem trying to go unbound with the same table design. And the summation of which was that the overlapping of user input was already handled by the bound form, and it was handling the overlapping usage clash in essentially the best way available. Going unbound, you will end up with the EXACT same problem that the initial developers of Access had with the bound method. If you want to try to come up with a better bound form, be my guest. However, THIS is why I keep replying to this thread: "Which leads us squarely back to update strategies, and testing for modifications by other users. All that good stuff that the "unbounders" claim to handle but have never piped up with even general strategies, never mind code." -JWC "I suspect there are several classes of unbounders hiding out there, those that... 1) Don't handle it and don't want to admit it. 2) Handle it but the code was reaaaaaaaaallllllly messy and don't want to admit it. 3) Use "first wins" strategy and don't want to admit it. 4) Spent so much time and effort doing it correctly that they don't really want to give their work away." -JWC If you want to spin your wheels on a problem by attacking it from left field, be my guest. But stop posting garbage like this then! I for one, don't want a new Access User avoiding an unbound solution that works better then a bound solution, because you keep posting this garbage. Before you reply to this (if you do), look at this discussion like this: User: I've heard a lot about frameworks, and I have a problem that I think frameworks can fix. JWC: Ok, here's how to start building a framework....... User: I can't use class modules in this project, because the customer doesn't want class modules.... JWC: Well to build a framework properly, you really need to use class modules.... User: You don't understand, I must bend my will to my customer, and must design the stuff that the users will never see exactly like the customer wants. You're a poopy head and aren't helping me at all. I need a framework without classes that will do everything my heart desires and you're an idiot for not being able to help me with that. JWC: Ok, good luck with that. User: Man, I've heard all these wonderful things about frameworks, but apparently they don't work at all because I can't fix my problem with them. That is EXACTLY how this thread is going between you and I JC. An unbound approach STARTS with table design. Without that, all you are doing is disconnecting a recordset (which in a situation that a bound form would work, does nothing to help you). Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, June 10, 2008 2:18 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VBA Unbound data entry / update form > #1. You should NEVER have two users trying to edit the same field in the same record at the same time, where BOTH values being entered are correct. (ie, there should only be one right 'Last Name' for a person, yes, it may change, but there is only one correct value for it) HORSHESHIT! Hmmm... not enough emphasis there. !!!HORSHESHIT!!!!HORSHESHIT!!!!HORSHESHIT!!!!HORSHESHIT!!!! I have NO IDEA what world YOU live in but in my world people can change whatever they want whenever they want. Person A writes the name in the last name field from a hastily scribbled form filled out by hand by a person who has a sixth grade education. Person B is reading a form with the information for that SAME person typed in by a doctor office, the last name is different. They can change it if they wish. Person C is on the phone with the mother of that person. They are verifying the information and mom says "no the name is spelled XXXXX. That person can change it. It is NOT MY JOB to tell any of these people that they cannot change the information in the database. !!!!THEY MIGHT BE DOING THESE THINGS AT THE SAME INSTANT!!!!! !!!!I MAY NEED TO DO THAT IN AN UNBOUND FORM!!!! NOW, DREW, THAT IS LEGAL. I AM !!!NOT!!! GOING TO DESIGNING A TRANSACTION SYSTEM TO SAVE EVERY CHANGE EVER ENTERED BY ANYONE IN A BRAND NEW RECORD AS A CONTINUOUS HISTORY. MY CLIENT DID NOT ASK FOR THAT, WILL NOT PAY ME FOR THAT AND IT AIN'T GONNA HAPPEN. !!!!I HAVE TO DEAL WITH THAT!!!! !!!YOU!!! ARE AN ARROGANT ASS IF YOU THINK ONLY YOU KNOWS WHAT IS LEGAL OR POSSIBLE IN THIS WORLD. Go away. FAR FAR AWAY. JOIN THE FOREIGN LEGIONS AND TRY TO CONVERT SOMEONE ELSE TO YOUR INSOLENT IDEAS. Quite obviously I do not need, nor WANT your responses. Please do NOT respond to this thread EVER AGAIN. In case you do not YET understand..... !!!HORSHESHIT!!!!HORSHESHIT!!!!HORSHESHIT!!!!HORSHESHIT!!!! ......to your silly ideas. Hmmmm.... I fear that I STILL was not speaking plainly enough... !!!HORSHESHIT!!!!HORSHESHIT!!!!HORSHESHIT!!!!HORSHESHIT!!!! ......to your silly ideas. Hmmmm.... I fear that I STILL was not speaking plainly enough... If you want to post solutions for questions I did not ask, please feel free to do so, in some other thread. Hmmm... I COULD SWEAR THAT I MADE THAT REQUEST BEFORE... John W. Colby www.ColbyConsulting.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From DWUTKA at Marlow.com Tue Jun 10 18:30:30 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 10 Jun 2008 18:30:30 -0500 Subject: [AccessD] VBA Unbound data entry / update form In-Reply-To: <484EEC29.10905@colbyconsulting.com> Message-ID: I did post how to handle edit collisions when 2 users change different fields in the same record. To handle changes in the same field, at the same time, simply check the value before you change it. BUT, you get the same results with just using a bound form. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, June 10, 2008 4:04 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VBA Unbound data entry / update form Rocky, you are neither dumb nor rash. I am actually soliciting useful and usable discussion about a specific problem. If YOU (and anyone else) would like to contribute to a discussion re editing existing records in an unbound form and attempting to correctly handle edit collisions, I would WELCOME such input. I AM having a problem with people telling me I am whimpering when I do not consider their solutions to a completely different problem to be useful. I do have a problem with people telling me how it is just never possible anywhere in the universe that what they consider to be "the only correct answer" isn't useful. And I do have a problem being told that just because they can't solve the problem that the problem isn't solvable. If such people would just go away I would be VERY happy. John W. Colby www.ColbyConsulting.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From DWUTKA at Marlow.com Tue Jun 10 18:37:04 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 10 Jun 2008 18:37:04 -0500 Subject: [AccessD] State machines In-Reply-To: <484EF8F5.5010006@colbyconsulting.com> Message-ID: "4) Next event: What is the next event in the chain." So put both forward and back pointers. In your Class object, you have the parent (or previous event) pointer, AND the child event. Though is there a possibility of an event causing multiple 'child' events? If so, I would go with a collection of child events. (Each with a pointer back to their parent, and a child event collection of there own. I did something similar with a personnel 'oranization' structure, where I needed to know who someone worked for, or who worked for someone. Could 'look up' the data either direction with that above structure. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, June 10, 2008 4:58 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] State machines Having created a state machine for the claim call center software, I wanted a system where I could easily find (for example) "what was the date of the event that caused the current state" or "what event actually caused the current state and what notes were associated with it", that kind of thing. I added fields to the event to hold a pointer to: 1) The previous event: the event immediately previous to this event. 2) The current status event: what event caused the current status. 3) The previous status event: what event caused the PREVIOUS status. What I failed to do is the final piece of 4) Next event: What is the next event in the chain. Anyone familiar with linked lists know that there are single linked lists and doubly linked lists. In my case I created a link backwards to the previous event but no link forward to the next event. Anyway I designed a system to load all the events for one specific claim into class instances (clsClaimEvent), then store those instances in a collection in a supervisor (clsClaimEvents). My code allows iterating through the events updating the pointers to the previous events, as well as getting the specific event records for previous, current status and previous status, as well as a generic "give me this event record" (by EVPKID). I use this in the claim form. As the claim form opens for a given claim I open clsClaimEvents which loads all instances of clsClaimEvent and stores them keyed by EVPKID. As an example of where I use this stuff, we need to enter benefit records, which are basically "we are going to make a payment now" records. Claim records have fields which define the date the claim was filed, the date of disability, the paid through date etc. There are "can't file a claim for X days after you bought the policy" kind of dates. Now the benefit payment (this check) will be for this starting date through this ending date. In some cases I need to know things that are in event records, for example when a claim was closed (the person returns to work) In order to help the user enter these payments and minimize errors I have to check information from the events and compare those "effective dates" against the dates being paid. This Event class system allows me to easily find the actual record that caused status changes so I can look for claim closed events, reopened events and so forth. The dates in these events are then compared against the dates to being entered to warn the user that they may be entering a payment for dates which the data does not support paying. The events themselves contain the status information to control the state machine, but they are also the history of the claim and this class system I am discussing now makes programmatic access to that information possible. Just as a matter of interest, there are almost 500,000 events in the event table. Many claims have more than 100 events, one claim has 250 events. John W. Colby www.ColbyConsulting.com jwcolby wrote: > How many of you know what a state machine is? > > http://en.wikipedia.org/wiki/Finite_state_machine > > More generically a state machine is a structure (hardware or > software) that stores the current "state" of something and > uses stimuli to cause changes from the current state to some > other state. State machines prevent and allow state changes > from a specific state to another specific state. > > IOW from this state you can only move to "these other > states" and which state you actually move to will be > determined by something that occurred. > > I wrote a state machine for my disability call center software. > > During the processing of claims, EVENTS happen. Events can > be (pretty much) anything that the client wants to call an > EVENT, IOW it has to be programmable by the client. Some > actual EVENTS from the event table: > > New Claim Notice > Approve > Pend > Terminate > Deny > Re-Open > Suspend > Delete This Event > Receive > Appeal > Uphold Denial > Uphold Termination > Transfer In > Transfer Out > Not Received > > There are MANY MANY more. > > Events MAY or may not cause STATUSES. Some actual statuses > from the STATUS table: > > CS_Status > None > First Notice > Open > Pending > Terminated > Denied > Re-Opened > Suspended > Received > Appeal > Upheld Denial > Upheld Termination > Transfer In > Transferred Out > Determined at IDE > Archived > Not Received > > Now, obviously EVENTS and STATUSES are NOT the same thing. > Events MAY CAUSE a status change, however there are RULES > about what STATUS can be "moved to" from the current status. > For example you cannot go to the CLOSED status unless the > claim is OPEN. You cannot RE-OPEN a claim that is ALREADY > in the OPEN state. APPEAL can move to UPHELD DENIAL, UPHELD > TERMINATION or OPEN, and so forth. > > So you have to have a transition table that maps the current > status to "POSSIBLE" status, IOW "where can you go from > here". You also have a stimulus table that maps "this event > can cause this status (or causes NO status change)". An > OPEN event causes an OPEN status, but a "DOCUMENT RECEIVED" > or a "LETTER SENT" event does not cause a status change. > > And finally you have a table that says "this event can > happen when in this state". > > Then of course you have a class system that enforces the > rules. It loads all of the tables into class instances > which are then stored in collections. > > The tables are "the rules" for the state machine and are > fully programmable by the client. The user is presented a > list of "possible events" in a combo box. Basically the > current status is discovered and used to filter the list of > events to those that can occur in that state. The user can > therefore only select an event if the system says that it > can occur while in the current state. > > State machines are wonderful devices for mapping business > rules where "this process can only happen in these cases". > > In my case, there is a table of events that have occurred in > the claim. These events display the entire history of the > claim and are the focal point of the claim processing. The > events channel the user, allowing them to do what makes > sense given where we are in the processing sequence, and > preventing doing things that make no sense given the current > state of the claim process. > > The user can examine the event table and see what events > have transpired, the sequence of events, the dates, memos > about those events etc. We even create events from outside > processes such as the mail merge process creates an event > "letter sent" with the name of the letter, who it was sent > to etc. > > State machines, check them out. They might just solve that > thorny process control problem that you are facing. > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From DWUTKA at Marlow.com Tue Jun 10 18:42:59 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 10 Jun 2008 18:42:59 -0500 Subject: [AccessD] VBA Unbound data entry / update form In-Reply-To: <484EF9E5.3080901@colbyconsulting.com> Message-ID: See, another 'image folks would have spent time thinking about this for jet unbound'...... sigh. JC, those of us who have built unbound applications HAVE thought about that exact problem. You just don't want to listen to it. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, June 10, 2008 5:02 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VBA Unbound data entry / update form Precisely, which makes the inability to even get a discussion going even more discouraging. JET is widely used, page lock issues are real, one would imagine that folks would have spent some time thinking about this for jet / unbound. But it seems a good time to just drop the whole thing. John W. Colby www.ColbyConsulting.com Jim Lawrence wrote: > Rocky, John > > In the case of an SQL DB BE that whole issue is managed by the DB just as it > would if with a bound MDB only better. > > Jim > The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From DWUTKA at Marlow.com Tue Jun 10 18:44:54 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 10 Jun 2008 18:44:54 -0500 Subject: [AccessD] VBA Unbound data entry / update form In-Reply-To: <484F0509.7030300@colbyconsulting.com> Message-ID: Then why did you post this: "> I never asked for that, nor do I expect that to happen, your code or > mine. Unbound using no locks simply cannot function in the same manner > as a bound form creating locks." -- JWC Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Tuesday, June 10, 2008 5:50 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VBA Unbound data entry / update form I know that. John W. Colby www.ColbyConsulting.com Drew Wutka wrote: > Not entirely true John. Unbound DOES use locks. It just doesn't 'hold' > the lock if designed correctly. > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby > Sent: Tuesday, June 10, 2008 1:44 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] VBA Unbound data entry / update form > > > You want code that will work as if the thing was bound. > Not gonna happen, roll your sleeves up. > > I never asked for that, nor do I expect that to happen, your code or > mine. Unbound using no locks simply cannot function in the same manner > as a bound form creating locks. > > John W. Colby > www.ColbyConsulting.com > > > Charlotte Foust wrote: >> Hah! You want code, write your own!! LOL >> >> You want code that will work as if the thing was bound. Not gonna >> happen, roll your sleeves up. >> >> Charlotte Foust >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >> Sent: Tuesday, June 10, 2008 10:00 AM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] VBA Unbound data entry / update form >> >> LOL, OK. The devil is in the details after all. >> >> I am not really interested in locking. In my understanding of unbound > >> forms, you don't hold locks, and if you are, you might as well go > bound. >> Which leads us squarely back to update strategies, and testing for >> modifications by other users. All that good stuff that the > "unbounders" >> claim to handle but have never piped up with even general strategies, >> never mind code. >> >> John W. Colby >> www.ColbyConsulting.com >> >> >> Rocky Smolin at Beach Access Software wrote: >>> Not ignoring. It wasn't an exhaustive treatise on the subject. Just > >>> a 'how to get started'. Locking: you have to look up record and >>> page >>> locking stuff for DAO. >>> >>> >>> Rocky Smolin >>> Beach Access Software >>> 858-259-4334 >>> www.e-z-mrp.com >>> www.bchacc.com >>> >>> >>> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby >>> Sent: Tuesday, June 10, 2008 9:07 AM >>> To: Access Developers discussion and problem solving >>> Subject: Re: [AccessD] VBA Unbound data entry / update form >>> >>> Rocky, >>> >>> I hate to jump all over your method because I want a method to use, >>> but you are completely ignoring locking / update issues. What >>> happened if another user updated the record between the time you >>> loaded yours and the time you write it back? >>> >>> John W. Colby >>> www.ColbyConsulting.com >>> >>> >>> Rocky Smolin at Beach Access Software wrote: >>>> I know how to make an unbound form but I haven't got enough nerve to > >>>> present such heresy - it runs counter to strongly held religious >> beliefs. >>>> OK - briefly - but you didn't hear it from me. >>>> >>>> 1. Design your form as you would a bound form but no Control Source >>>> in the text boxes. >>>> 2. Create a recordset in the Open event of the form (DAO or ADO - I >>>> prefer >>>> DAO) using pretty much the same SQL or query as you would for your >>>> Record Source in a bound form. >>>> 3. Add a module to put the fields from the current record of the >>>> recordset into the text boxes which you can call whenever you want >>>> to >>>> display the data on your form. >>>> 4. Add a module to put the values in the text boxes into the fields >>>> of the current record (in DAO use .Edit or .Add and .Update) which >>>> you can call whenever you want to write the textbox values back to >> the table. >>>> 5. I always put my own navigation buttons on the unbound for - >>>> First, >>>> Last, Next, Previous with Click events that move the recordset point > >>>> appropriately. >>>> >>>> HTH >>>> >>>> Rocky Smolin >>>> Beach Access Software >>>> 858-259-4334 >>>> www.e-z-mrp.com >>>> www.bchacc.com >>>> >>>> >>>> >>>> -----Original Message----- >>>> From: accessd-bounces at databaseadvisors.com >>>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim >>>> Lawrence >>>> Sent: Monday, June 09, 2008 5:38 PM >>>> To: 'Access Developers discussion and problem solving' >>>> Subject: Re: [AccessD] VBA Unbound data entry / update form >>>> >>>> Hi Jennifer: >>>> >>>> I have no idea how to create bound Access forms. ;-) The last bound >>>> database that I have worked with was back in '97. >>>> >>>> Jim >>>> >>>> -----Original Message----- >>>> From: accessd-bounces at databaseadvisors.com >>>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer >>>> Gross >>>> Sent: Tuesday, May 27, 2008 5:12 PM >>>> To: 'Access Developers discussion and problem solving' >>>> Subject: Re: [AccessD] VBA Unbound data entry / update form >>>> >>>> I have no idea how to create an unbound form in Access. I always >>>> use >>>> bound forms. Though I would be interested to know how it's done. >>>> Unless I've got it wrong, that seems to be the basic question here - > >>>> For those of you who do it, how do you create an unbound form? How >>>> do you populate the textboxes initially and then how do you save the >>> information back to the tables? >>>> It's beginning to sound like nobody really does it. >>>> >>>> Jennifer >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/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 contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From jwcolby at colbyconsulting.com Tue Jun 10 19:36:03 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 10 Jun 2008 20:36:03 -0400 Subject: [AccessD] Straight to the trash - was Re: VBA Unbound data entry / update form In-Reply-To: References: <483C8FF5.1040407@colbyconsulting.com> <0K1J00I84V5QZ1U0@vms044.mailsrvcs.net> <02034CB1BB2E4ECE9DE313D2E38175AE@creativesystemdesigns.com> <015b01c8cb09$028a2050$0301a8c0@HAL9005> <484EA693.6090509@colbyconsulting.com> Message-ID: <484F1DF3.10002@colbyconsulting.com> Drew, it is with some regret that I have had to create a "delete immediately" filter for your responses. You normally have things worth reading but you have insisted on being obstinate and unhelpful, even when I ask you to go somewhere else, and it just isn't worth the time even opening them any more. 8-( Someday if I feel like I need a little irritation I may remove the filter but in the meantime, don't bother responding to me because they don't even get to the trash bin... DELETE... Whatever it is you might have said in response... DELETE... 8-( John W. Colby www.ColbyConsulting.com From jwcolby at colbyconsulting.com Tue Jun 10 20:19:13 2008 From: jwcolby at colbyconsulting.com (jwcolby) Date: Tue, 10 Jun 2008 21:19:13 -0400 Subject: [AccessD] State machines In-Reply-To: References: Message-ID: <484F2811.3090407@colbyconsulting.com> Thanks for that link Gustav. I am reading it now. John W. Colby www.ColbyConsulting.com Gustav Brock wrote: > Hi John > > With that enthusiasm of yours, WWF - Windows Workflow Foundation, must represent nothing less than a Christmas present for you: > > http://msdn.microsoft.com/en-us/magazine/cc163281.aspx > > I'm still looking for a good project to put it into action ... > > /gustav > > >>>> jwcolby at colbyconsulting.com 10-06-2008 20:42 >>> > How many of you know what a state machine is? > > http://en.wikipedia.org/wiki/Finite_state_machine > > More generically a state machine is a structure (hardware or > software) that stores the current "state" of something and > uses stimuli to cause changes from the current state to some > other state. State machines prevent and allow state changes > from a specific state to another specific state. > > IOW from this state you can only move to "these other > states" and which state you actually move to will be > determined by something that occurred. > > I wrote a state machine for my disability call center software. > > During the processing of claims, EVENTS happen. Events can > be (pretty much) anything that the client wants to call an > EVENT, IOW it has to be programmable by the client. Some > actual EVENTS from the event table: > > New Claim Notice > Approve > Pend > Terminate > Deny > Re-Open > Suspend > Delete This Event > Receive > Appeal > Uphold Denial > Uphold Termination > Transfer In > Transfer Out > Not Received > > There are MANY MANY more. > > Events MAY or may not cause STATUSES. Some actual statuses > from the STATUS table: > > CS_Status > None > First Notice > Open > Pending > Terminated > Denied > Re-Opened > Suspended > Received > Appeal > Upheld Denial > Upheld Termination > Transfer In > Transferred Out > Determined at IDE > Archived > Not Received > > Now, obviously EVENTS and STATUSES are NOT the same thing. > Events MAY CAUSE a status change, however there are RULES > about what STATUS can be "moved to" from the current status. > For example you cannot go to the CLOSED status unless the > claim is OPEN. You cannot RE-OPEN a claim that is ALREADY > in the OPEN state. APPEAL can move to UPHELD DENIAL, UPHELD > TERMINATION or OPEN, and so forth. > > So you have to have a transition table that maps the current > status to "POSSIBLE" status, IOW "where can you go from > here". You also have a stimulus table that maps "this event > can cause this status (or causes NO status change)". An > OPEN event causes an OPEN status, but a "DOCUMENT RECEIVED" > or a "LETTER SENT" event does not cause a status change. > > And finally you have a table that says "this event can > happen when in this state". > > Then of course you have a class system that enforces the > rules. It loads all of the tables into class instances > which are then stored in collections. > > The tables are "the rules" for the state machine and are > fully programmable by the client. The user is presented a > list of "possible events" in a combo box. Basically the > current status is discovered and used to filter the list of > events to those that can occur in that state. The user can > therefore only select an event if the system says that it > can occur while in the current state. > > State machines are wonderful devices for mapping business > rules where "this process can only happen in these cases". > > In my case, there is a table of events that have occurred in > the claim. These events display the entire history of the > claim and are the focal point of the claim processing. The > events channel the user, allowing them to do what makes > sense given where we are in the processing sequence, and > preventing doing things that make no sense given the current > state of the claim process. > > The user can examine the event table and see what events > have transpired, the sequence of events, the dates, memos > about those events etc. We even create events from outside > processes such as the mail merge process creates an event > "letter sent" with the name of the letter, who it was sent > to etc. > > State machines, check them out. They might just solve that > thorny process control problem that you are facing. > From mmattys at rochester.rr.com Tue Jun 10 20:58:48 2008 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Tue, 10 Jun 2008 21:58:48 -0400 Subject: [AccessD] VBA Unbound data entry / update form References: <484ED36B.4080901@colbyconsulting.com><007601c8cb36$48f5f410$0302a8c0@Laptop> <484EE60B.9030704@colbyconsulting.com> Message-ID: <013101c8cb66$b144fbd0$0302a8c0@Laptop> Hi John, NC sounds nice. Thanks. I hope to make the trip some day. Michael R. Mattys MapPoint & Access Dev www.mattysconsulting.com ----- Original Message ----- From: "jwcolby" To: "Access Developers discussion and problem solving" Sent: Tuesday, June 10, 2008 4:37 PM Subject: Re: [AccessD] VBA Unbound data entry / update form > ROTFLMAO. C'mon down to North Carolina dude. We have GUN > RACKS in our pickups down here. > > Not that I have a pickup, or a gun for that matter. BUT I > HAVE FRIENDS DOWN HERE! > > ;-) > > Really though, wasn't I nice and civil asking everybody to > respond to my problem and not go off espousing their own > answers to whatever problem they might think was really cool > to solve? > > I reallly don't need this stupid stuff over and over and over... > > John W. Colby > www.ColbyConsulting.com > > > Michael R Mattys wrote: >> Citizen's arrest! >> Citizen's arrest! >> >> Michael R. Mattys >> MapPoint & Access Dev >> www.mattysconsulting.com > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From shamil at smsconsulting.spb.ru Wed Jun 11 00:52:41 2008 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Wed, 11 Jun 2008 09:52:41 +0400 Subject: [AccessD] State machines In-Reply-To: <484F2811.3090407@colbyconsulting.com> Message-ID: <005f01c8cb87$5c8961f0$6401a8c0@nant> Hi John, You may find also interesting to read (in free time) on foundations of State machines: here are just a few of subjects related to this thread as well as (software) programming in general I happened to study in the college and after I got graduated. I can't say I succeeded in all but I liked to study (some of) them :) Finite State machine http://en.wikipedia.org/wiki/Finite_state_machine Hidden Markov model http://en.wikipedia.org/wiki/Hidden_Markov_model Markov network http://en.wikipedia.org/wiki/Markov_network Markov logic network http://en.wikipedia.org/wiki/Markov_logic_network Higher-order logic http://en.wikipedia.org/wiki/Higher-order_logic Type theory http://en.wikipedia.org/wiki/Type_theory And here is one of the modern generally accepted in software design way of visual representation of State machines... UML State diagram http://en.wikipedia.org/wiki/State_diagram There are quite some more useful diagram types in UML: http://en.wikipedia.org/wiki/Unified_Modeling_Language -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby Sent: Wednesday, June 11, 2008 5:19 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] State machines Thanks for that link Gustav. I am reading it now. John W. Colby www.ColbyConsulting.com Gustav Brock wrote: <<< tail skipped >>> From andy at minstersystems.co.uk Wed Jun 11 01:46:56 2008 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 11 Jun 2008 07:46:56 +0100 Subject: [AccessD] VBA Unbound data entry / update form - FROM MODERATOR In-Reply-To: <013101c8cb66$b144fbd0$0302a8c0@Laptop> Message-ID: <00b701c8cb8e$f18d1a10$72932a50@minster33c3r25> Some points on this thread: 1. Rude and unpleasant comments about fellow listers are unacceptable. 2. Keep to the point of a thread. If you want to discuss anything other than what the original poster began with then start another thread so that the original poster does not have to wade through lots of other posts to find ones which address his/her point. 3. Keep OT stuff to a minimum please. Many thanks. Now let's be nice. -- Andy Lacey http://www.minstersystems.co.uk From fuller.artful at gmail.com Wed Jun 11 06:28:34 2008 From: fuller.artful at gmail.com (Arthur Fuller) Date: Wed, 11 Jun 2008 08:28:34 -0300 Subject: [AccessD] VBA Unbound data entry / update form - FROM MODERATOR In-Reply-To: <00b701c8cb8e$f18d1a10$72932a50@minster33c3r25> References: <013101c8cb66$b144fbd0$0302a8c0@Laptop> <00b701c8cb8e$f18d1a10$72932a50@minster33c3r25> Message-ID: <29f585dd0806110428t6755078dobb106aa77b9b9bca@mail.gmail.com> Well put, Andy. Let's all take a deep breath and remember why this group is one of the finest on the net. A. On Wed, Jun 11, 2008 at 3:46 AM, Andy Lacey wrote: > Some points on this thread: > > 1. Rude and unpleasant comments about fellow listers are unacceptable. > 2. Keep to the point of a thread. If you want to discuss anything other > than > what the original poster began with then start another thread so that the > original poster does not have to wade through lots of other posts to find > ones which address his/her point. > 3. Keep OT stuff to a minimum please. > > Many thanks. Now let's be nice. > > -- Andy Lacey > http://www.minstersystems.co.uk > > From DWUTKA at Marlow.com Wed Jun 11 10:38:57 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Wed, 11 Jun 2008 10:38:57 -0500 Subject: [AccessD] VBA Unbound data entry / update form - FROM MODERATOR In-Reply-To: <29f585dd0806110428t6755078dobb106aa77b9b9bca@mail.gmail.com> Message-ID: LOL, why, did you sense some tension somewhere? Sorry the thread turned into a fiasco, but I must admit, I don't think I would have done anything different. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Wednesday, June 11, 2008 6:29 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VBA Unbound data entry / update form - FROM MODERATOR Well put, Andy. Let's all take a deep breath and remember why this group is one of the finest on the net. A. On Wed, Jun 11, 2008 at 3:46 AM, Andy Lacey wrote: > Some points on this thread: > > 1. Rude and unpleasant comments about fellow listers are unacceptable. > 2. Keep to the point of a thread. If you want to discuss anything > other than what the original poster began with then start another > thread so that the original poster does not have to wade through lots > of other posts to find ones which address his/her point. > 3. Keep OT stuff to a minimum please. > > Many thanks. Now let's be nice. > > -- 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 The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From rockysmolin at bchacc.com Wed Jun 11 12:58:14 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Wed, 11 Jun 2008 10:58:14 -0700 Subject: [AccessD] Automation Question Message-ID: <022701c8cbec$b8b047e0$0301a8c0@HAL9005> Dear List: What is the syntax for selecting all the text in a word document from VBA? I've got the document open. Just need to copy all the text from it into a string variable. MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com From Lambert.Heenan at AIG.com Wed Jun 11 13:57:42 2008 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Wed, 11 Jun 2008 13:57:42 -0500 Subject: [AccessD] Automation Question Message-ID: <34C8A2AB1EF3564CB0D64DB6AFFDD5C215DB7087@XLIVMBX35bkup.aig.com> Recorded a Macro in Word. Then looked at macro... Selection.WholeStory ... Seems to be what you want. :-) Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Wednesday, June 11, 2008 1:58 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Automation Question Dear List: What is the syntax for selecting all the text in a word document from VBA? I've got the document open. Just need to copy all the text from it into a string variable. MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at smsconsulting.spb.ru Wed Jun 11 14:05:18 2008 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Wed, 11 Jun 2008 23:05:18 +0400 Subject: [AccessD] Automation Question In-Reply-To: <022701c8cbec$b8b047e0$0301a8c0@HAL9005> Message-ID: <013601c8cbf6$16cfa740$6401a8c0@nant> Hi Rocky, I assume the code below is executed from within MS Word VBIDE and the doc to have all the text selected of is an ActiveDocument: Dim wdoc As Word.Document Set wdoc = Application.ActiveDocument wdoc.Application.Selection.WholeStory -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Wednesday, June 11, 2008 9:58 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Automation Question Dear List: What is the syntax for selecting all the text in a word document from VBA? I've got the document open. Just need to copy all the text from it into a string variable. MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Wed Jun 11 14:10:03 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Wed, 11 Jun 2008 12:10:03 -0700 Subject: [AccessD] Automation Question In-Reply-To: <34C8A2AB1EF3564CB0D64DB6AFFDD5C215DB7087@XLIVMBX35bkup.aig.com> References: <34C8A2AB1EF3564CB0D64DB6AFFDD5C215DB7087@XLIVMBX35bkup.aig.com> Message-ID: <022f01c8cbf6$c0f9aa40$0301a8c0@HAL9005> I thought so to at first but there's something else I'm missing because I get 'Object doesn't support this property or method with Dim strWholeStory As String strWholeStory = objWord.ActiveDocument.Selection.WholeStory I think I have to make this a range or something? And then grab the text? TIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Wednesday, June 11, 2008 11:58 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Question Recorded a Macro in Word. Then looked at macro... Selection.WholeStory ... Seems to be what you want. :-) Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Wednesday, June 11, 2008 1:58 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Automation Question Dear List: What is the syntax for selecting all the text in a word document from VBA? I've got the document open. Just need to copy all the text from it into a string variable. MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 270.2.0/1497 - Release Date: 11/6/2008 08:32 From Lambert.Heenan at AIG.com Wed Jun 11 14:21:24 2008 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Wed, 11 Jun 2008 15:21:24 -0400 Subject: [AccessD] Automation Question Message-ID: <34C8A2AB1EF3564CB0D64DB6AFFDD5C215DB70B7@XLIVMBX35bkup.aig.com> A quick check of the on-line help reveals that both Range and Selection objects have Text properties. So that .Text property is what you are after. strWholeStory = objWord.ActiveDocument.Selection.WholeStory.Text Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Wednesday, June 11, 2008 3:10 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Question I thought so to at first but there's something else I'm missing because I get 'Object doesn't support this property or method with Dim strWholeStory As String strWholeStory = objWord.ActiveDocument.Selection.WholeStory I think I have to make this a range or something? And then grab the text? TIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Wednesday, June 11, 2008 11:58 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Question Recorded a Macro in Word. Then looked at macro... Selection.WholeStory ... Seems to be what you want. :-) Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Wednesday, June 11, 2008 1:58 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Automation Question Dear List: What is the syntax for selecting all the text in a word document from VBA? I've got the document open. Just need to copy all the text from it into a string variable. MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 270.2.0/1497 - Release Date: 11/6/2008 08:32 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Wed Jun 11 14:22:05 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Wed, 11 Jun 2008 12:22:05 -0700 Subject: [AccessD] Automation Question In-Reply-To: <013601c8cbf6$16cfa740$6401a8c0@nant> References: <022701c8cbec$b8b047e0$0301a8c0@HAL9005> <013601c8cbf6$16cfa740$6401a8c0@nant> Message-ID: <023401c8cbf8$6f919940$0301a8c0@HAL9005> Shamil: I got to it another way (I hope). Please see my reply to Lambert. I think I'd still need the 'range' stuff, yes? Or not? Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, June 11, 2008 12:05 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Question Hi Rocky, I assume the code below is executed from within MS Word VBIDE and the doc to have all the text selected of is an ActiveDocument: Dim wdoc As Word.Document Set wdoc = Application.ActiveDocument wdoc.Application.Selection.WholeStory -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Wednesday, June 11, 2008 9:58 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Automation Question Dear List: What is the syntax for selecting all the text in a word document from VBA? I've got the document open. Just need to copy all the text from it into a string variable. MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 270.2.0/1497 - Release Date: 11/6/2008 08:32 From rockysmolin at bchacc.com Wed Jun 11 14:22:05 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Wed, 11 Jun 2008 12:22:05 -0700 Subject: [AccessD] Automation Question In-Reply-To: <34C8A2AB1EF3564CB0D64DB6AFFDD5C215DB7087@XLIVMBX35bkup.aig.com> References: <34C8A2AB1EF3564CB0D64DB6AFFDD5C215DB7087@XLIVMBX35bkup.aig.com> Message-ID: <023501c8cbf8$7065d930$0301a8c0@HAL9005> Got It! I think: Dim MyRange as Range Dim strWholeStory as String Set MyRange = Selection.Range MyRange.WholeStory strWholeStory = MyRange.Text MsgBox strWholeStory Anyway, the Msgbox showed up with then word doc text in it. Thanks for the lead, Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Wednesday, June 11, 2008 11:58 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Question Recorded a Macro in Word. Then looked at macro... Selection.WholeStory ... Seems to be what you want. :-) Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Wednesday, June 11, 2008 1:58 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Automation Question Dear List: What is the syntax for selecting all the text in a word document from VBA? I've got the document open. Just need to copy all the text from it into a string variable. MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 270.2.0/1497 - Release Date: 11/6/2008 08:32 From edzedz at comcast.net Wed Jun 11 15:25:41 2008 From: edzedz at comcast.net (Edward S Zuris) Date: Wed, 11 Jun 2008 13:25:41 -0700 Subject: [AccessD] Automation Question In-Reply-To: <022f01c8cbf6$c0f9aa40$0301a8c0@HAL9005> Message-ID: <007f01c8cc01$53d08ff0$63dea8c0@dudley1> This might help The below works using Access 2000 launching Word 2000. ' ***************************************************** ' ***************************************************** ' ' Written by: Edward S. Zuris ' ' Email: edzedz at comcast.Net ' ' Phone: (505)-341-0069 ' ' Program View1 ' ' ***************************************************** ' ***************************************************** Public Function zzJpView1(zDocPath As String, zDocFile As String) As Long ' ***************************************************** ' ***************************************************** ' Merge Boiler Plate Section Files. ' ***************************************************** ' ***************************************************** Const cFileTypeWordDocuments = 3 Const cmsoSortOrderAscending = 1 Const cmsoSortOrderDescending = 2 Const cmsoSortByFileName = 1 Const cmsoSortBySize = 2 Const cmsoSortByFileType = 3 Const cmsoSortByLastModified = 4 Dim objWd1App As Word.Application Dim objWd1Doc As Word.Document Dim objWd1Range As Word.Range Dim sPathDoc As String Dim sDocName As String zzJpView1 = -1 ' **************************************************** ' Parameter output path for Job Description documents ' sPathDoc = "" sPathDoc = Trim$(zDocPath & " ") sDocName = "" sDocName = Trim$(zDocFile & " ") Set objWd1App = New Word.Application objWd1App.Application.Visible = False objWd1App.Documents.Open sPathDoc objWd1App.Documents(sDocName).Activate objWd1App.Application.Visible = True zzJpView1 = -2 End Function -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin at Beach Access Software Sent: Wednesday, June 11, 2008 12:10 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Question I thought so to at first but there's something else I'm missing because I get 'Object doesn't support this property or method with Dim strWholeStory As String strWholeStory = objWord.ActiveDocument.Selection.WholeStory I think I have to make this a range or something? And then grab the text? TIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Wednesday, June 11, 2008 11:58 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Question Recorded a Macro in Word. Then looked at macro... Selection.WholeStory ... Seems to be what you want. :-) Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Wednesday, June 11, 2008 1:58 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Automation Question Dear List: What is the syntax for selecting all the text in a word document from VBA? I've got the document open. Just need to copy all the text from it into a string variable. MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 270.2.0/1497 - Release Date: 11/6/2008 08:32 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at smsconsulting.spb.ru Thu Jun 12 04:54:24 2008 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Thu, 12 Jun 2008 13:54:24 +0400 Subject: [AccessD] Automation Question In-Reply-To: <023401c8cbf8$6f919940$0301a8c0@HAL9005> Message-ID: <017d01c8cc72$4bea1830$6401a8c0@nant> Hi Rocky, objWord.ActiveDocument.Content.Text seems to be what "your doctor ordered" :) (I missed this simple solution yesterday) - Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Wednesday, June 11, 2008 11:22 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Question Shamil: I got to it another way (I hope). Please see my reply to Lambert. I think I'd still need the 'range' stuff, yes? Or not? Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, June 11, 2008 12:05 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Question Hi Rocky, I assume the code below is executed from within MS Word VBIDE and the doc to have all the text selected of is an ActiveDocument: Dim wdoc As Word.Document Set wdoc = Application.ActiveDocument wdoc.Application.Selection.WholeStory -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Wednesday, June 11, 2008 9:58 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Automation Question Dear List: What is the syntax for selecting all the text in a word document from VBA? I've got the document open. Just need to copy all the text from it into a string variable. MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 270.2.0/1497 - Release Date: 11/6/2008 08:32 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Thu Jun 12 10:16:52 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Thu, 12 Jun 2008 08:16:52 -0700 Subject: [AccessD] Automation Question In-Reply-To: <017d01c8cc72$4bea1830$6401a8c0@nant> References: <023401c8cbf8$6f919940$0301a8c0@HAL9005> <017d01c8cc72$4bea1830$6401a8c0@nant> Message-ID: <031d01c8cc9f$58100390$0301a8c0@HAL9005> Too easy!!! One line instead of 4? Works a treat. Thanks Shamil. Best, Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Thursday, June 12, 2008 2:54 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Question Hi Rocky, objWord.ActiveDocument.Content.Text seems to be what "your doctor ordered" :) (I missed this simple solution yesterday) - Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Wednesday, June 11, 2008 11:22 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Question Shamil: I got to it another way (I hope). Please see my reply to Lambert. I think I'd still need the 'range' stuff, yes? Or not? Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Shamil Salakhetdinov Sent: Wednesday, June 11, 2008 12:05 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Automation Question Hi Rocky, I assume the code below is executed from within MS Word VBIDE and the doc to have all the text selected of is an ActiveDocument: Dim wdoc As Word.Document Set wdoc = Application.ActiveDocument wdoc.Application.Selection.WholeStory -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Wednesday, June 11, 2008 9:58 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Automation Question Dear List: What is the syntax for selecting all the text in a word document from VBA? I've got the document open. Just need to copy all the text from it into a string variable. MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 270.2.0/1497 - Release Date: 11/6/2008 08:32 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 270.3.0/1499 - Release Date: 12/6/2008 07:13 From JHewson at nciinc.com Thu Jun 12 15:47:50 2008 From: JHewson at nciinc.com (Hewson, Jim ) Date: Thu, 12 Jun 2008 15:47:50 -0500 Subject: [AccessD] Hide datasheet view of table when appending Message-ID: <7E02B06E41E5404589EDDDA2BAA1C5A8157B16@sanex101.nciinc.com> I can't seem to figure this out.... Access 2003 I am importing data from an Excel workbook to a table in Access. All the worksheets will be imported and they have the same format. The Excel files are created from a download from another system. The smallest workbook has 80 worksheets. One test Excel file has about 2400 worksheets. I am able to work on each worksheet, grab the desired range (could be 1 or 100 rows involved), paste it into Access, and close Excel. I need to "hide" the table when the data is being appended. What happens is the table is opened and the data is pasted into it - everything shows in the database window. How can I hid the table and still paste the data into it? If I minimize it, I get an error message. If I hide the table, I get an error message. Any suggestions? Thanks, Jim Jim H. Hewson ################################################################################ This email transmission contains information from NCI Information Systems, Inc. that may be considered privileged or confidential and is intended solely for the named recipient. If you have received this message in error, please contact the sender immediately and be aware that the use, copying or dissemination of this information is prohibited. ################################################################################ From Lambert.Heenan at AIG.com Thu Jun 12 15:58:55 2008 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Thu, 12 Jun 2008 15:58:55 -0500 Subject: [AccessD] Hide datasheet view of table when appending Message-ID: <34C8A2AB1EF3564CB0D64DB6AFFDD5C215DB7496@XLIVMBX35bkup.aig.com> I'd suggest you stop using copy and paste and consider using the DoCmd.TransferSpreadsheet method. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hewson, Jim Sent: Thursday, June 12, 2008 4:48 PM To: Access Developers discussion and problem solving Subject: [AccessD] Hide datasheet view of table when appending I can't seem to figure this out.... Access 2003 I am importing data from an Excel workbook to a table in Access. All the worksheets will be imported and they have the same format. The Excel files are created from a download from another system. The smallest workbook has 80 worksheets. One test Excel file has about 2400 worksheets. I am able to work on each worksheet, grab the desired range (could be 1 or 100 rows involved), paste it into Access, and close Excel. I need to "hide" the table when the data is being appended. What happens is the table is opened and the data is pasted into it - everything shows in the database window. How can I hid the table and still paste the data into it? If I minimize it, I get an error message. If I hide the table, I get an error message. Any suggestions? Thanks, Jim Jim H. Hewson ############################################################################ #### This email transmission contains information from NCI Information Systems, Inc. that may be considered privileged or confidential and is intended solely for the named recipient. If you have received this message in error, please contact the sender immediately and be aware that the use, copying or dissemination of this information is prohibited. ############################################################################ #### -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From JHewson at nciinc.com Thu Jun 12 16:40:12 2008 From: JHewson at nciinc.com (Hewson, Jim ) Date: Thu, 12 Jun 2008 16:40:12 -0500 Subject: [AccessD] Hide datasheet view of table when appending In-Reply-To: <34C8A2AB1EF3564CB0D64DB6AFFDD5C215DB7496@XLIVMBX35bkup.aig.com> References: <34C8A2AB1EF3564CB0D64DB6AFFDD5C215DB7496@XLIVMBX35bkup.aig.com> Message-ID: <7E02B06E41E5404589EDDDA2BAA1C5A8157B19@sanex101.nciinc.com> Thanks, I tried that, but I kept getting an error when I defined the range to transfer. One range might be A4:S4 The next range might be A4:S30 The DoCmd.TransferSpreadsheet gave me an error when I tried to use variables in the range. How can I make it work? Jim jhewson at nciinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, June 12, 2008 3:59 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Hide datasheet view of table when appending I'd suggest you stop using copy and paste and consider using the DoCmd.TransferSpreadsheet method. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hewson, Jim Sent: Thursday, June 12, 2008 4:48 PM To: Access Developers discussion and problem solving Subject: [AccessD] Hide datasheet view of table when appending I can't seem to figure this out.... Access 2003 I am importing data from an Excel workbook to a table in Access. All the worksheets will be imported and they have the same format. The Excel files are created from a download from another system. The smallest workbook has 80 worksheets. One test Excel file has about 2400 worksheets. I am able to work on each worksheet, grab the desired range (could be 1 or 100 rows involved), paste it into Access, and close Excel. I need to "hide" the table when the data is being appended. What happens is the table is opened and the data is pasted into it - everything shows in the database window. How can I hid the table and still paste the data into it? If I minimize it, I get an error message. If I hide the table, I get an error message. Any suggestions? Thanks, Jim Jim H. Hewson ############################################################################ #### This email transmission contains information from NCI Information Systems, Inc. that may be considered privileged or confidential and is intended solely for the named recipient. If you have received this message in error, please contact the sender immediately and be aware that the use, copying or dissemination of this information is prohibited. ############################################################################ #### -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 email transmission contains information from NCI Information Systems, Inc. that may be considered privileged or confidential and is intended solely for the named recipient. If you have received this message in error, please contact the sender immediately and be aware that the use, copying or dissemination of this information is prohibited. ################################################################################ From Darryl.Collins at coles.com.au Thu Jun 12 19:39:36 2008 From: Darryl.Collins at coles.com.au (Darryl Collins) Date: Fri, 13 Jun 2008 10:39:36 +1000 Subject: [AccessD] Hide datasheet view of table when appending Message-ID: <49DFE57FB126044B8A8B934E7AEA09ED09FD750B@WPEXCH05.colesmyer.ad.cmltd.net.au> Jim, Being an Excel dude more than an Access Dude, I generally push the data from Excel to Access rather than Use Access to pull it in. I use code like this based in an Excel VBE module, but I am sure you could mod it so it runs from Access instead without too much bother. If you have multiple sheets you would want to add in something like -- air code --- Dim ws as Excel.Worksheet For each ws.thisworkbook.worksheets do ya thing Next ws --- end air code ---- Code I use is below. *** WATCH FOR WRAP **** ' ================Start Code ========================= Option Private Module Option Explicit ' Code Version: G4V000.2 ' Date Last Updated: 31-Mar-2007 Sub Upload_LTS_Database() Application.ScreenUpdating = False Application.StatusBar = "Writing to LTS Archive Database:..." Application.Calculation = xlCalculationManual ''' gsPATH is dimmed as a public variable Set gDB = Workspaces(0).OpenDatabase(gsPATH, False, False, dbLangGeneral & ";Pwd=MyPasswordHere") Set gRS = gDB.OpenRecordset("tbl_LTS_Archive", dbOpenTable) For Each grCEL In Sheet43.Range("nrLTS_FYP_KEY_ID") Application.StatusBar = "Writing to LTS Archive Database: " & grCEL.Row & " of " & Sheet43.Range _ ("nrLTS_FYP_KEY_ID").Rows.Count + 6 glLR = grCEL.Row With gRS .AddNew .Fields("Key_ID") = Sheet43.Range("B" & glLR).Value .Fields("Product") = Sheet43.Range("C" & glLR).Value .Fields("Project") = Sheet43.Range("D" & glLR).Value .Fields("Phase") = Sheet43.Range("E" & glLR).Value .Fields("Owner") = Sheet43.Range("F" & glLR).Value .Fields("OwnerData") = Sheet43.Range("G" & glLR).Value .Fields("FY") = Sheet43.Range("H" & glLR).Value .Fields("FYP") = Sheet43.Range("I" & glLR).Value .Fields("Status") = Sheet43.Range("J" & glLR).Value .Fields("OpexCapex") = Sheet43.Range("K" & glLR).Value .Fields("$AUD") = Sheet43.Range("L" & glLR).Value .Fields("MEC_Major") = Sheet43.Range("M" & glLR).Value .Fields("Date") = Sheet43.Range("N" & glLR).Value .Fields("AdjStatus") = Sheet43.Range("R" & glLR).Value .Fields("FYAdj") = Sheet43.Range("S" & glLR).Value .Fields("Segment") = Sheet43.Range("T" & glLR).Value .Fields("SourceData") = Sheet43.Range("U" & glLR).Value .Fields("Programme") = Sheet43.Range("W" & glLR).Value .Fields("EffortDays") = Sheet43.Range("X" & glLR).Value .Update End With Next grCEL gRS.Close Set gRS = Nothing gDB.Close Set gDB = Nothing End Sub ' ================End Code ========================= regards Darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Hewson, Jim Sent: Friday, 13 June 2008 7:40 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Hide datasheet view of table when appending Thanks, I tried that, but I kept getting an error when I defined the range to transfer. One range might be A4:S4 The next range might be A4:S30 The DoCmd.TransferSpreadsheet gave me an error when I tried to use variables in the range. How can I make it work? Jim jhewson at nciinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, June 12, 2008 3:59 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Hide datasheet view of table when appending I'd suggest you stop using copy and paste and consider using the DoCmd.TransferSpreadsheet method. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hewson, Jim Sent: Thursday, June 12, 2008 4:48 PM To: Access Developers discussion and problem solving Subject: [AccessD] Hide datasheet view of table when appending I can't seem to figure this out.... Access 2003 I am importing data from an Excel workbook to a table in Access. All the worksheets will be imported and they have the same format. The Excel files are created from a download from another system. The smallest workbook has 80 worksheets. One test Excel file has about 2400 worksheets. I am able to work on each worksheet, grab the desired range (could be 1 or 100 rows involved), paste it into Access, and close Excel. I need to "hide" the table when the data is being appended. What happens is the table is opened and the data is pasted into it - everything shows in the database window. How can I hid the table and still paste the data into it? If I minimize it, I get an error message. If I hide the table, I get an error message. Any suggestions? Thanks, Jim Jim H. Hewson ############################################################################ #### This email transmission contains information from NCI Information Systems, Inc. that may be considered privileged or confidential and is intended solely for the named recipient. If you have received this message in error, please contact the sender immediately and be aware that the use, copying or dissemination of this information is prohibited. ############################################################################ #### -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 email transmission contains information from NCI Information Systems, Inc. that may be considered privileged or confidential and is intended solely for the named recipient. If you have received this message in error, please contact the sender immediately and be aware that the use, copying or dissemination of this information is prohibited. ################################################################################ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. From DWUTKA at Marlow.com Thu Jun 12 20:04:14 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Thu, 12 Jun 2008 20:04:14 -0500 Subject: [AccessD] Hide datasheet view of table when appending In-Reply-To: <7E02B06E41E5404589EDDDA2BAA1C5A8157B16@sanex101.nciinc.com> Message-ID: Have you tried using ADO to read the excel files and then dumping the records? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hewson, Jim Sent: Thursday, June 12, 2008 3:48 PM To: Access Developers discussion and problem solving Subject: [AccessD] Hide datasheet view of table when appending I can't seem to figure this out.... Access 2003 I am importing data from an Excel workbook to a table in Access. All the worksheets will be imported and they have the same format. The Excel files are created from a download from another system. The smallest workbook has 80 worksheets. One test Excel file has about 2400 worksheets. I am able to work on each worksheet, grab the desired range (could be 1 or 100 rows involved), paste it into Access, and close Excel. I need to "hide" the table when the data is being appended. What happens is the table is opened and the data is pasted into it - everything shows in the database window. How can I hid the table and still paste the data into it? If I minimize it, I get an error message. If I hide the table, I get an error message. Any suggestions? Thanks, Jim Jim H. Hewson ######################################################################## ######## This email transmission contains information from NCI Information Systems, Inc. that may be considered privileged or confidential and is intended solely for the named recipient. If you have received this message in error, please contact the sender immediately and be aware that the use, copying or dissemination of this information is prohibited. ######################################################################## ######## -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From JHewson at nciinc.com Fri Jun 13 08:02:41 2008 From: JHewson at nciinc.com (Hewson, Jim ) Date: Fri, 13 Jun 2008 08:02:41 -0500 Subject: [AccessD] Hide datasheet view of table when appending In-Reply-To: <49DFE57FB126044B8A8B934E7AEA09ED09FD750B@WPEXCH05.colesmyer.ad.cmltd.net.au> References: <49DFE57FB126044B8A8B934E7AEA09ED09FD750B@WPEXCH05.colesmyer.ad.cmltd.net.au> Message-ID: <7E02B06E41E5404589EDDDA2BAA1C5A8157B31@sanex101.nciinc.com> Thanks, Darryl - I didn't think of pushing from Excel to Access. I use something similar to your "air code" below to move through the worksheets. The end result is a subset of two workbooks; both imported into Access, combined into one table. Than a subset of fields is then exported out of Access into a CSV file. This file is used to import the data into a large database maintained by a different company. My goal is to have Access import the data, manipulate it, and then export it. There are several steps involved for QC, so reviewing the data at certain steps is needed. I revisited Lambert's suggestion to use TransferSpreadsheet and I have it almost working now. Your code below to push the data from Excel to Access is interesting. I am trying to pull a larger range into Access - several rows and columns. Is there an advantage to only pushing one column at a time? Thanks again. Jim jhewson at nciinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Thursday, June 12, 2008 7:40 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Hide datasheet view of table when appending Jim, Being an Excel dude more than an Access Dude, I generally push the data from Excel to Access rather than Use Access to pull it in. I use code like this based in an Excel VBE module, but I am sure you could mod it so it runs from Access instead without too much bother. If you have multiple sheets you would want to add in something like -- air code --- Dim ws as Excel.Worksheet For each ws.thisworkbook.worksheets do ya thing Next ws --- end air code ---- Code I use is below. *** WATCH FOR WRAP **** ' ================Start Code ========================= Option Private Module Option Explicit ' Code Version: G4V000.2 ' Date Last Updated: 31-Mar-2007 Sub Upload_LTS_Database() Application.ScreenUpdating = False Application.StatusBar = "Writing to LTS Archive Database:..." Application.Calculation = xlCalculationManual ''' gsPATH is dimmed as a public variable Set gDB = Workspaces(0).OpenDatabase(gsPATH, False, False, dbLangGeneral & ";Pwd=MyPasswordHere") Set gRS = gDB.OpenRecordset("tbl_LTS_Archive", dbOpenTable) For Each grCEL In Sheet43.Range("nrLTS_FYP_KEY_ID") Application.StatusBar = "Writing to LTS Archive Database: " & grCEL.Row & " of " & Sheet43.Range _ ("nrLTS_FYP_KEY_ID").Rows.Count + 6 glLR = grCEL.Row With gRS .AddNew .Fields("Key_ID") = Sheet43.Range("B" & glLR).Value .Fields("Product") = Sheet43.Range("C" & glLR).Value .Fields("Project") = Sheet43.Range("D" & glLR).Value .Fields("Phase") = Sheet43.Range("E" & glLR).Value .Fields("Owner") = Sheet43.Range("F" & glLR).Value .Fields("OwnerData") = Sheet43.Range("G" & glLR).Value .Fields("FY") = Sheet43.Range("H" & glLR).Value .Fields("FYP") = Sheet43.Range("I" & glLR).Value .Fields("Status") = Sheet43.Range("J" & glLR).Value .Fields("OpexCapex") = Sheet43.Range("K" & glLR).Value .Fields("$AUD") = Sheet43.Range("L" & glLR).Value .Fields("MEC_Major") = Sheet43.Range("M" & glLR).Value .Fields("Date") = Sheet43.Range("N" & glLR).Value .Fields("AdjStatus") = Sheet43.Range("R" & glLR).Value .Fields("FYAdj") = Sheet43.Range("S" & glLR).Value .Fields("Segment") = Sheet43.Range("T" & glLR).Value .Fields("SourceData") = Sheet43.Range("U" & glLR).Value .Fields("Programme") = Sheet43.Range("W" & glLR).Value .Fields("EffortDays") = Sheet43.Range("X" & glLR).Value .Update End With Next grCEL gRS.Close Set gRS = Nothing gDB.Close Set gDB = Nothing End Sub ' ================End Code ========================= regards Darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Hewson, Jim Sent: Friday, 13 June 2008 7:40 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Hide datasheet view of table when appending Thanks, I tried that, but I kept getting an error when I defined the range to transfer. One range might be A4:S4 The next range might be A4:S30 The DoCmd.TransferSpreadsheet gave me an error when I tried to use variables in the range. How can I make it work? Jim jhewson at nciinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, June 12, 2008 3:59 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Hide datasheet view of table when appending I'd suggest you stop using copy and paste and consider using the DoCmd.TransferSpreadsheet method. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hewson, Jim Sent: Thursday, June 12, 2008 4:48 PM To: Access Developers discussion and problem solving Subject: [AccessD] Hide datasheet view of table when appending I can't seem to figure this out.... Access 2003 I am importing data from an Excel workbook to a table in Access. All the worksheets will be imported and they have the same format. The Excel files are created from a download from another system. The smallest workbook has 80 worksheets. One test Excel file has about 2400 worksheets. I am able to work on each worksheet, grab the desired range (could be 1 or 100 rows involved), paste it into Access, and close Excel. I need to "hide" the table when the data is being appended. What happens is the table is opened and the data is pasted into it - everything shows in the database window. How can I hid the table and still paste the data into it? If I minimize it, I get an error message. If I hide the table, I get an error message. Any suggestions? Thanks, Jim Jim H. Hewson ############################################################################ #### This email transmission contains information from NCI Information Systems, Inc. that may be considered privileged or confidential and is intended solely for the named recipient. If you have received this message in error, please contact the sender immediately and be aware that the use, copying or dissemination of this information is prohibited. ############################################################################ #### -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 email transmission contains information from NCI Information Systems, Inc. that may be considered privileged or confidential and is intended solely for the named recipient. If you have received this message in error, please contact the sender immediately and be aware that the use, copying or dissemination of this information is prohibited. ################################################################################ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ################################################################################ This email transmission contains information from NCI Information Systems, Inc. that may be considered privileged or confidential and is intended solely for the named recipient. If you have received this message in error, please contact the sender immediately and be aware that the use, copying or dissemination of this information is prohibited. ################################################################################ From JHewson at nciinc.com Fri Jun 13 08:05:44 2008 From: JHewson at nciinc.com (Hewson, Jim ) Date: Fri, 13 Jun 2008 08:05:44 -0500 Subject: [AccessD] Hide datasheet view of table when appending In-Reply-To: References: <7E02B06E41E5404589EDDDA2BAA1C5A8157B16@sanex101.nciinc.com> Message-ID: <7E02B06E41E5404589EDDDA2BAA1C5A8157B32@sanex101.nciinc.com> No, what would be the difference? Jim jhewson at nciinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, June 12, 2008 8:04 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Hide datasheet view of table when appending Have you tried using ADO to read the excel files and then dumping the records? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hewson, Jim Sent: Thursday, June 12, 2008 3:48 PM To: Access Developers discussion and problem solving Subject: [AccessD] Hide datasheet view of table when appending I can't seem to figure this out.... Access 2003 I am importing data from an Excel workbook to a table in Access. All the worksheets will be imported and they have the same format. The Excel files are created from a download from another system. The smallest workbook has 80 worksheets. One test Excel file has about 2400 worksheets. I am able to work on each worksheet, grab the desired range (could be 1 or 100 rows involved), paste it into Access, and close Excel. I need to "hide" the table when the data is being appended. What happens is the table is opened and the data is pasted into it - everything shows in the database window. How can I hid the table and still paste the data into it? If I minimize it, I get an error message. If I hide the table, I get an error message. Any suggestions? Thanks, Jim Jim H. Hewson ################################################################################ This email transmission contains information from NCI Information Systems, Inc. that may be considered privileged or confidential and is intended solely for the named recipient. If you have received this message in error, please contact the sender immediately and be aware that the use, copying or dissemination of this information is prohibited. ################################################################################ From rockysmolin at bchacc.com Fri Jun 13 09:24:30 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Fri, 13 Jun 2008 07:24:30 -0700 Subject: [AccessD] (no subject) Message-ID: <008001c8cd61$3292c360$0301a8c0@HAL9005> Dear List: I am having trouble calling a module in a main form from a subform. Syntax problem again. There's a module in the main form called FilterActionsSubform and I want to call that from the double-click event of a control on another subform but I can't seem to get the syntax right. Call Forms.Parent.FilterActionsSubform doesn't work. Call Forms.Matter.FilterActionsSubform doesn't work. Does anyone know the right way to do this? MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com From edzedz at comcast.net Fri Jun 13 10:38:23 2008 From: edzedz at comcast.net (Edward S Zuris) Date: Fri, 13 Jun 2008 08:38:23 -0700 Subject: [AccessD] (no subject) In-Reply-To: <008001c8cd61$3292c360$0301a8c0@HAL9005> Message-ID: <002f01c8cd6b$84e58c10$65dea8c0@dudley1> The subroutine you call has to be public. ================================================= ================================================= Dim zzForm As Form . . . ' *********************************************** ' Call some VBA Public Code from another Form. ' Set zzForm = [Forms]![zJP709aBookEdit] Call zzForm.aaLoadBookMark Set zzForm = Nothing ================================================= ================================================= -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin at Beach Access Software Sent: Friday, June 13, 2008 7:25 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] (no subject) Dear List: I am having trouble calling a module in a main form from a subform. Syntax problem again. There's a module in the main form called FilterActionsSubform and I want to call that from the double-click event of a control on another subform but I can't seem to get the syntax right. Call Forms.Parent.FilterActionsSubform doesn't work. Call Forms.Matter.FilterActionsSubform doesn't work. Does anyone know the right way to do this? MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From edzedz at comcast.net Fri Jun 13 10:41:28 2008 From: edzedz at comcast.net (Edward S Zuris) Date: Fri, 13 Jun 2008 08:41:28 -0700 Subject: [AccessD] Calling a module in a main form from a subform Message-ID: <003001c8cd6b$f2927b60$65dea8c0@dudley1> Calling a module in a main form from a subform The subroutine you call has to be public. ================================================= ================================================= Dim zzForm As Form . . . ' *********************************************** ' Call some VBA Public Code from another Form. ' Set zzForm = [Forms]![zJP709aBookEdit] Call zzForm.aaLoadBookMark Set zzForm = Nothing ================================================= ================================================= From dwaters at usinternet.com Fri Jun 13 09:41:31 2008 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 13 Jun 2008 09:41:31 -0500 Subject: [AccessD] (no subject) In-Reply-To: <008001c8cd61$3292c360$0301a8c0@HAL9005> References: <008001c8cd61$3292c360$0301a8c0@HAL9005> Message-ID: <7ADB3561599D4ABCA618F18EFC41EC12@danwaters> Rocky, You should be able to use something like: stgField = Me.Parent.FilterActionsSubform Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Friday, June 13, 2008 9:25 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] (no subject) Dear List: I am having trouble calling a module in a main form from a subform. Syntax problem again. There's a module in the main form called FilterActionsSubform and I want to call that from the double-click event of a control on another subform but I can't seem to get the syntax right. Call Forms.Parent.FilterActionsSubform doesn't work. Call Forms.Matter.FilterActionsSubform doesn't work. Does anyone know the right way to do this? MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Fri Jun 13 09:47:47 2008 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 13 Jun 2008 09:47:47 -0500 Subject: [AccessD] (no subject) In-Reply-To: <008001c8cd61$3292c360$0301a8c0@HAL9005> References: <008001c8cd61$3292c360$0301a8c0@HAL9005> Message-ID: And as Edward said, the FilterActionsSubform procedure in the parent form needs to be Public. Then Me.Parent.FilterActionsSubform will work from the subform. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Friday, June 13, 2008 9:25 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] (no subject) Dear List: I am having trouble calling a module in a main form from a subform. Syntax problem again. There's a module in the main form called FilterActionsSubform and I want to call that from the double-click event of a control on another subform but I can't seem to get the syntax right. Call Forms.Parent.FilterActionsSubform doesn't work. Call Forms.Matter.FilterActionsSubform doesn't work. Does anyone know the right way to do this? MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Fri Jun 13 09:50:21 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Fri, 13 Jun 2008 07:50:21 -0700 Subject: [AccessD] (no subject) In-Reply-To: <002f01c8cd6b$84e58c10$65dea8c0@dudley1> References: <008001c8cd61$3292c360$0301a8c0@HAL9005> <002f01c8cd6b$84e58c10$65dea8c0@dudley1> Message-ID: <008d01c8cd64$ce661780$0301a8c0@HAL9005> Public! Go it. Thanks Ed. And Dan. It's working now. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Edward S Zuris Sent: Friday, June 13, 2008 8:38 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] (no subject) The subroutine you call has to be public. ================================================= ================================================= Dim zzForm As Form . . . ' *********************************************** ' Call some VBA Public Code from another Form. ' Set zzForm = [Forms]![zJP709aBookEdit] Call zzForm.aaLoadBookMark Set zzForm = Nothing ================================================= ================================================= -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin at Beach Access Software Sent: Friday, June 13, 2008 7:25 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] (no subject) Dear List: I am having trouble calling a module in a main form from a subform. Syntax problem again. There's a module in the main form called FilterActionsSubform and I want to call that from the double-click event of a control on another subform but I can't seem to get the syntax right. Call Forms.Parent.FilterActionsSubform doesn't work. Call Forms.Matter.FilterActionsSubform doesn't work. Does anyone know the right way to do this? MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 270.3.0/1501 - Release Date: 13/6/2008 06:33 From DWUTKA at Marlow.com Fri Jun 13 14:47:32 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Fri, 13 Jun 2008 14:47:32 -0500 Subject: [AccessD] Hide datasheet view of table when appending In-Reply-To: <7E02B06E41E5404589EDDDA2BAA1C5A8157B32@sanex101.nciinc.com> Message-ID: The difference is control, without opening Excel. Have you ever used a recordset in code? With ADO, you can open an excel spreadsheet as a recordset. Don't even have to have Excel installed on the machine. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hewson, Jim Sent: Friday, June 13, 2008 8:06 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Hide datasheet view of table when appending No, what would be the difference? Jim jhewson at nciinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, June 12, 2008 8:04 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Hide datasheet view of table when appending Have you tried using ADO to read the excel files and then dumping the records? Drew The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From JHewson at nciinc.com Fri Jun 13 14:53:59 2008 From: JHewson at nciinc.com (Hewson, Jim ) Date: Fri, 13 Jun 2008 14:53:59 -0500 Subject: [AccessD] Hide datasheet view of table when appending In-Reply-To: References: <7E02B06E41E5404589EDDDA2BAA1C5A8157B32@sanex101.nciinc.com> Message-ID: <7E02B06E41E5404589EDDDA2BAA1C5A8157B44@sanex101.nciinc.com> I've used a Recordset before, I didn't think about using it. I have the TransferSpreadsheet working as Lambert suggested and everything is working. My only problem now is that Excel won't shut down even though I tell it to quit and set the reference to nothing. Thanks everyone for your help. Jim jhewson at nciinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, June 13, 2008 2:48 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Hide datasheet view of table when appending The difference is control, without opening Excel. Have you ever used a recordset in code? With ADO, you can open an excel spreadsheet as a recordset. Don't even have to have Excel installed on the machine. Drew ################################################################################ This email transmission contains information from NCI Information Systems, Inc. that may be considered privileged or confidential and is intended solely for the named recipient. If you have received this message in error, please contact the sender immediately and be aware that the use, copying or dissemination of this information is prohibited. ################################################################################ From Lambert.Heenan at AIG.com Fri Jun 13 16:13:13 2008 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Fri, 13 Jun 2008 16:13:13 -0500 Subject: [AccessD] Hide datasheet view of table when appending Message-ID: <34C8A2AB1EF3564CB0D64DB6AFFDD5C2161C76A7@XLIVMBX35bkup.aig.com> Quitting Excel. This is how I do it... Sub Excel_CloseWorkBook(xlApp As Excel.Application, Optional bSaveChanges As Boolean = False) Dim wb As Excel.Workbook On Error Resume Next If xlApp.Name > "" Then ' reference a property to see if we get an error End If If Err.Number <> 0 Then Exit Sub ' already closed On Error GoTo 0 For Each wb In xlApp.Workbooks 'Close all open workbooks wb.Close bSaveChanges Next wb xlApp.UserControl = False Set xlApp = Nothing End Sub The crucial statement is "xlApp.UserControl = False ". Leave it out and Excel will not shut down. In use it's a case of setting all your references to worksheets to nothing and then call Excel_CloseWorkBook objExlApp, [True|False] HTH - works for me. :-) Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hewson, Jim Sent: Friday, June 13, 2008 3:54 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Hide datasheet view of table when appending I've used a Recordset before, I didn't think about using it. I have the TransferSpreadsheet working as Lambert suggested and everything is working. My only problem now is that Excel won't shut down even though I tell it to quit and set the reference to nothing. Thanks everyone for your help. Jim jhewson at nciinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, June 13, 2008 2:48 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Hide datasheet view of table when appending The difference is control, without opening Excel. Have you ever used a recordset in code? With ADO, you can open an excel spreadsheet as a recordset. Don't even have to have Excel installed on the machine. Drew ############################################################################ #### This email transmission contains information from NCI Information Systems, Inc. that may be considered privileged or confidential and is intended solely for the named recipient. If you have received this message in error, please contact the sender immediately and be aware that the use, copying or dissemination of this information is prohibited. ############################################################################ #### -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Darryl.Collins at coles.com.au Sat Jun 14 00:50:35 2008 From: Darryl.Collins at coles.com.au (Darryl Collins) Date: Sat, 14 Jun 2008 15:50:35 +1000 Subject: [AccessD] Hide datasheet view of table when appending Message-ID: <49DFE57FB126044B8A8B934E7AEA09ED09FD751B@WPEXCH05.colesmyer.ad.cmltd.net.au> Hi Jim, "Is there an advantage to only pushing one column at a time?" Not that I know of, I used this method as it has proven to be flawless so far and it was fast enough not to investigate other methods. For example, I use it to load anywhere up to 30,000 plus rows of data with 15 columns in each row, and it usually only take a few seconds. I am sure some guru could use a different method that is virtually instant using an array or similar. I also use 'row at a time' if I am changing or removing selected entries before re-writing them. Really depends on what I need to do I guess. Always open for advice on this sort of thing. cheers Darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Hewson, Jim Sent: Friday, 13 June 2008 11:03 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Hide datasheet view of table when appending Thanks, Darryl - I didn't think of pushing from Excel to Access. I use something similar to your "air code" below to move through the worksheets. The end result is a subset of two workbooks; both imported into Access, combined into one table. Than a subset of fields is then exported out of Access into a CSV file. This file is used to import the data into a large database maintained by a different company. My goal is to have Access import the data, manipulate it, and then export it. There are several steps involved for QC, so reviewing the data at certain steps is needed. I revisited Lambert's suggestion to use TransferSpreadsheet and I have it almost working now. Your code below to push the data from Excel to Access is interesting. I am trying to pull a larger range into Access - several rows and columns. Is there an advantage to only pushing one column at a time? Thanks again. Jim jhewson at nciinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Thursday, June 12, 2008 7:40 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Hide datasheet view of table when appending Jim, Being an Excel dude more than an Access Dude, I generally push the data from Excel to Access rather than Use Access to pull it in. I use code like this based in an Excel VBE module, but I am sure you could mod it so it runs from Access instead without too much bother. If you have multiple sheets you would want to add in something like -- air code --- Dim ws as Excel.Worksheet For each ws.thisworkbook.worksheets do ya thing Next ws --- end air code ---- Code I use is below. *** WATCH FOR WRAP **** ' ================Start Code ========================= Option Private Module Option Explicit ' Code Version: G4V000.2 ' Date Last Updated: 31-Mar-2007 Sub Upload_LTS_Database() Application.ScreenUpdating = False Application.StatusBar = "Writing to LTS Archive Database:..." Application.Calculation = xlCalculationManual ''' gsPATH is dimmed as a public variable Set gDB = Workspaces(0).OpenDatabase(gsPATH, False, False, dbLangGeneral & ";Pwd=MyPasswordHere") Set gRS = gDB.OpenRecordset("tbl_LTS_Archive", dbOpenTable) For Each grCEL In Sheet43.Range("nrLTS_FYP_KEY_ID") Application.StatusBar = "Writing to LTS Archive Database: " & grCEL.Row & " of " & Sheet43.Range _ ("nrLTS_FYP_KEY_ID").Rows.Count + 6 glLR = grCEL.Row With gRS .AddNew .Fields("Key_ID") = Sheet43.Range("B" & glLR).Value .Fields("Product") = Sheet43.Range("C" & glLR).Value .Fields("Project") = Sheet43.Range("D" & glLR).Value .Fields("Phase") = Sheet43.Range("E" & glLR).Value .Fields("Owner") = Sheet43.Range("F" & glLR).Value .Fields("OwnerData") = Sheet43.Range("G" & glLR).Value .Fields("FY") = Sheet43.Range("H" & glLR).Value .Fields("FYP") = Sheet43.Range("I" & glLR).Value .Fields("Status") = Sheet43.Range("J" & glLR).Value .Fields("OpexCapex") = Sheet43.Range("K" & glLR).Value .Fields("$AUD") = Sheet43.Range("L" & glLR).Value .Fields("MEC_Major") = Sheet43.Range("M" & glLR).Value .Fields("Date") = Sheet43.Range("N" & glLR).Value .Fields("AdjStatus") = Sheet43.Range("R" & glLR).Value .Fields("FYAdj") = Sheet43.Range("S" & glLR).Value .Fields("Segment") = Sheet43.Range("T" & glLR).Value .Fields("SourceData") = Sheet43.Range("U" & glLR).Value .Fields("Programme") = Sheet43.Range("W" & glLR).Value .Fields("EffortDays") = Sheet43.Range("X" & glLR).Value .Update End With Next grCEL gRS.Close Set gRS = Nothing gDB.Close Set gDB = Nothing End Sub ' ================End Code ========================= regards Darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Hewson, Jim Sent: Friday, 13 June 2008 7:40 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Hide datasheet view of table when appending Thanks, I tried that, but I kept getting an error when I defined the range to transfer. One range might be A4:S4 The next range might be A4:S30 The DoCmd.TransferSpreadsheet gave me an error when I tried to use variables in the range. How can I make it work? Jim jhewson at nciinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Thursday, June 12, 2008 3:59 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Hide datasheet view of table when appending I'd suggest you stop using copy and paste and consider using the DoCmd.TransferSpreadsheet method. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hewson, Jim Sent: Thursday, June 12, 2008 4:48 PM To: Access Developers discussion and problem solving Subject: [AccessD] Hide datasheet view of table when appending I can't seem to figure this out.... Access 2003 I am importing data from an Excel workbook to a table in Access. All the worksheets will be imported and they have the same format. The Excel files are created from a download from another system. The smallest workbook has 80 worksheets. One test Excel file has about 2400 worksheets. I am able to work on each worksheet, grab the desired range (could be 1 or 100 rows involved), paste it into Access, and close Excel. I need to "hide" the table when the data is being appended. What happens is the table is opened and the data is pasted into it - everything shows in the database window. How can I hid the table and still paste the data into it? If I minimize it, I get an error message. If I hide the table, I get an error message. Any suggestions? Thanks, Jim Jim H. Hewson ############################################################################ #### This email transmission contains information from NCI Information Systems, Inc. that may be considered privileged or confidential and is intended solely for the named recipient. If you have received this message in error, please contact the sender immediately and be aware that the use, copying or dissemination of this information is prohibited. ############################################################################ #### -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 email transmission contains information from NCI Information Systems, Inc. that may be considered privileged or confidential and is intended solely for the named recipient. If you have received this message in error, please contact the sender immediately and be aware that the use, copying or dissemination of this information is prohibited. ################################################################################ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ################################################################################ This email transmission contains information from NCI Information Systems, Inc. that may be considered privileged or confidential and is intended solely for the named recipient. If you have received this message in error, please contact the sender immediately and be aware that the use, copying or dissemination of this information is prohibited. ################################################################################ -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. From DWUTKA at Marlow.com Sat Jun 14 09:55:58 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Sat, 14 Jun 2008 09:55:58 -0500 Subject: [AccessD] Hide datasheet view of table when appending In-Reply-To: <7E02B06E41E5404589EDDDA2BAA1C5A8157B44@sanex101.nciinc.com> Message-ID: Ok, well if you want to try the recordset method, here's an example. I've commented the important parts: Function ImportExcelData() Dim XLcnn As ADODB.Connection Dim XLrs As ADODB.Recordset Dim rs As ADODB.Recordset Dim strSheetName As String Dim i As Long 'Create Excel ADO Connection object Set XLcnn = New ADODB.Connection XLcnn.Provider = "Microsoft.Jet.OLEDB.4.0" 'Define Connection Object to connect to excel 'Note, HDR=No will not use the first fields as field names XLcnn.Properties("Extended Properties") = "Excel 8.0;HDR=Yes" 'Open the excel file XLcnn.Open "E:\tblRequests.xls" 'Get the list of tables names (sheet names, with a $) Set rs = XLcnn.OpenSchema(adSchemaTables) 'This line gets the first table/sheet rs.MoveFirst strSheetName = rs.Fields("TABLE_NAME").Value rs.Close 'Create and open the Access table recordset Set rs = New ADODB.Recordset rs.Open "tblRequests", CurrentProject.Connection, adOpenKeyset, adLockOptimistic, adCmdTableDirect 'Create and open the Excel recordset Set XLrs = New ADODB.Recordset XLrs.Open strSheetName, XLcnn, adOpenKeyset, adLockReadOnly, adCmdTableDirect If XLrs.EOF = False Then XLrs.MoveFirst Do Until XLrs.EOF = True 'We are adding a new record for each Excel record. rs.AddNew For i = 0 To XLrs.Fields.Count - 1 'This example uses an excel file and table with the same field names 'other methods could be used to match the fields 'We are also checking for nulls before we add data to the field If Not IsNull(XLrs.Fields(i).Value) Then rs.Fields(XLrs.Fields(i).Name).Value = XLrs.Fields(i) End If Next i rs.Update XLrs.MoveNext Loop 'close everything up rs.Close Set rs = Nothing XLrs.Close Set XLrs = Nothing XLcnn.Close Set XLcnn = Nothing MsgBox "Done" End Function There are several advantages to this method. One, Excel is never opening. It's all done with Jet's 'understanding' of Excel. Two, it's fast. A few years ago, I had to create a routine that automatically imported several spreadsheets into a network database. Using Automation took several minutes to import a few hundred. Using recordsets, it ran several hundred in a few seconds. I'm sure TransferSpreadsheet is pretty fast too. Three, unlike TransferSpreadsheet, you have complete control at the single field level to perform any kind of logic you might need (verifying data, etc). Four, though this probably won't apply, but you don't have to have Access OR Excel installed on a machine to run this kind of code (though my example is using currentproject.connection, because I wrote it in an Access .mdb. Put this code in VB, and a non-Office program can copy data from an .xls file to an .mdb file, without having office installed). Another advantage is that I believed you mentioned that there could be multiple spreadsheets, and a variable number of columns in each. Not sure what you are doing to determine these variables, using TransferSpreadsheet, but with the example above, you should be able to see that you can get how many sheets are in the spreadsheet, and how many fields/columns there are. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hewson, Jim Sent: Friday, June 13, 2008 2:54 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Hide datasheet view of table when appending I've used a Recordset before, I didn't think about using it. I have the TransferSpreadsheet working as Lambert suggested and everything is working. My only problem now is that Excel won't shut down even though I tell it to quit and set the reference to nothing. Thanks everyone for your help. Jim jhewson at nciinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, June 13, 2008 2:48 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Hide datasheet view of table when appending The difference is control, without opening Excel. Have you ever used a recordset in code? With ADO, you can open an excel spreadsheet as a recordset. Don't even have to have Excel installed on the machine. Drew The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From wdhindman at dejpolsystems.com Sat Jun 14 21:37:26 2008 From: wdhindman at dejpolsystems.com (William Hindman) Date: Sat, 14 Jun 2008 22:37:26 -0400 Subject: [AccessD] VBA Unbound data entry / update form References: <484ED36B.4080901@colbyconsulting.com> Message-ID: <5FECF728716948AAA8457F08E1FF3DC1@jislaptopdev> ...wow! ...I go away for a few days and AccessD turns into OT on steroids! ...JC ...you were once a respected leader here ...but this post is so far out of bounds it doesn't even compute. ...nothing Drew has posted exceeds the limits of what you yourself posted on many a pk or unbound thread in the past ...what got your ass so far out of kilter I don't know, but its certainly not anything posted in this thread. ...imnsho, you owe a public apology ...a big one. ...besides which, you can't even spell horseshit right. William -------------------------------------------------- From: "jwcolby" Sent: Tuesday, June 10, 2008 3:18 PM To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] VBA Unbound data entry / update form > > #1. You should NEVER have two users trying to edit the > same field in the same record at the same time, where BOTH > values being entered are correct. (ie, there should only be > one right 'Last Name' for a person, yes, it may change, but > there is only one correct value for it) > > HORSHESHIT! Hmmm... not enough emphasis there. > > !!!HORSHESHIT!!!!HORSHESHIT!!!!HORSHESHIT!!!!HORSHESHIT!!!! > > I have NO IDEA what world YOU live in but in my world people > can change whatever they want whenever they want. Person A > writes the name in the last name field from a hastily > scribbled form filled out by hand by a person who has a > sixth grade education. Person B is reading a form with the > information for that SAME person typed in by a doctor > office, the last name is different. They can change it if > they wish. Person C is on the phone with the mother of that > person. They are verifying the information and mom says "no > the name is spelled XXXXX. That person can change it. It > is NOT MY JOB to tell any of these people that they cannot > change the information in the database. > > !!!!THEY MIGHT BE DOING THESE THINGS AT THE SAME INSTANT!!!!! > > !!!!I MAY NEED TO DO THAT IN AN UNBOUND FORM!!!! > > NOW, DREW, THAT IS LEGAL. I AM !!!NOT!!! GOING TO DESIGNING > A TRANSACTION SYSTEM TO SAVE EVERY CHANGE EVER ENTERED BY > ANYONE IN A BRAND NEW RECORD AS A CONTINUOUS HISTORY. MY > CLIENT DID NOT ASK FOR THAT, WILL NOT PAY ME FOR THAT AND IT > AIN'T GONNA HAPPEN. > > !!!!I HAVE TO DEAL WITH THAT!!!! > > !!!YOU!!! ARE AN ARROGANT ASS IF YOU THINK ONLY YOU KNOWS > WHAT IS LEGAL OR POSSIBLE IN THIS WORLD. > > Go away. FAR FAR AWAY. JOIN THE FOREIGN LEGIONS AND TRY TO > CONVERT SOMEONE ELSE TO YOUR INSOLENT IDEAS. Quite > obviously I do not need, nor WANT your responses. > > Please do NOT respond to this thread EVER AGAIN. In case > you do not YET understand..... > > !!!HORSHESHIT!!!!HORSHESHIT!!!!HORSHESHIT!!!!HORSHESHIT!!!! > > ......to your silly ideas. > > Hmmmm.... I fear that I STILL was not speaking plainly enough... > > !!!HORSHESHIT!!!!HORSHESHIT!!!!HORSHESHIT!!!!HORSHESHIT!!!! > > ......to your silly ideas. > > Hmmmm.... I fear that I STILL was not speaking plainly enough... > > If you want to post solutions for questions I did not ask, > please feel free to do so, in some other thread. Hmmm... I > COULD SWEAR THAT I MADE THAT REQUEST BEFORE... > > John W. Colby > www.ColbyConsulting.com > > > Drew Wutka wrote: >> "What I have never done is build a coherent strategy for testing edited >> data against the current data in the same record being edited and >> handling edit collisions in a responsible manner, without the use of >> locks." >> >> JC, I explained this before. In quite lengthy terms. Let me try to >> summarize. >> >> #1. You should NEVER have two users trying to edit the same field in the >> same record at the same time, where BOTH values being entered are >> correct. (ie, there should only be one right 'Last Name' for a person, >> yes, it may change, but there is only one correct value for it) >> >> #2. You MAY have two people changing different fields in the same >> record. Not ideal, but granted, some systems may require this ability. >> >> To handle #2 is not very difficult. Especially if you have a few tools >> that help you build your data class/collection class modules. >> >> Build a Field Class that lets you put a field name, a current value and >> a new value. Then when you build your data class, create a field >> collection in it, populated with a FieldClass object for each datafield. >> On the Property Let statements, set the Data Class's internal variable's >> value, and the NewValue of your FieldClass object (for that field). (Set >> a 'ValueHasChanged' property in the FieldClass (returning true if >> newvalue isn't blank). Whalla, when you go to save the data for your >> collection class, just loop through your field collection, and if >> 'ValueHasChanged', THEN update that field, otherwise, leave it alone. >> >> Problem solved. >> >> Drew > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Sun Jun 15 09:33:23 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Sun, 15 Jun 2008 07:33:23 -0700 Subject: [AccessD] Testing Message-ID: <003801c8cef4$c3f981b0$0301a8c0@HAL9005> Testing 1, 2, 3...is this thing on? Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com From zora_db at yahoo.com Sun Jun 15 09:47:33 2008 From: zora_db at yahoo.com (Roz Clarke) Date: Sun, 15 Jun 2008 07:47:33 -0700 (PDT) Subject: [AccessD] Testing Message-ID: <396631.27426.qm@web50110.mail.re2.yahoo.com> It's on! ----- Original Message ---- From: Rocky Smolin at Beach Access Software To: Access Developers discussion and problem solving Sent: Sunday, 15 June, 2008 3:33:23 PM Subject: [AccessD] Testing Testing 1, 2, 3...is this thing on???? ??? Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com __________________________________________________________ Sent from Yahoo! Mail. A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html From andy at minstersystems.co.uk Sun Jun 15 13:47:43 2008 From: andy at minstersystems.co.uk (Andy Lacey) Date: Sun, 15 Jun 2008 19:47:43 +0100 Subject: [AccessD] Testing In-Reply-To: <396631.27426.qm@web50110.mail.re2.yahoo.com> Message-ID: <001401c8cf18$4bec4800$2bcd2a50@minster33c3r25> On but very quiet. -- Andy Lacey http://www.minstersystems.co.uk >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Roz Clarke >Sent: 15 June 2008 15:48 >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Testing > > >It's on! > >----- Original Message ---- >From: Rocky Smolin at Beach Access Software >To: Access Developers discussion and problem solving > >Sent: Sunday, 15 June, 2008 3:33:23 PM >Subject: [AccessD] Testing > > > > >Testing 1, 2, 3...is this thing on???? >??? > > >Rocky Smolin > >Beach Access Software > >858-259-4334 > >www.e-z-mrp.com > >www.bchacc.com > > > > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > > __________________________________________________________ >Sent from Yahoo! Mail. >A Smarter Email http://uk.docs.yahoo.com/nowyoucan.html > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > From DWUTKA at Marlow.com Sun Jun 15 15:22:38 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Sun, 15 Jun 2008 15:22:38 -0500 Subject: [AccessD] VBA Unbound data entry / update form In-Reply-To: <5FECF728716948AAA8457F08E1FF3DC1@jislaptopdev> Message-ID: Thanks for the support William. I've gotten a few offlist emails saying the same thing. He's deleting my posts now though, his prerogative. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Saturday, June 14, 2008 9:37 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] VBA Unbound data entry / update form ...wow! ...I go away for a few days and AccessD turns into OT on steroids! ...JC ...you were once a respected leader here ...but this post is so far out of bounds it doesn't even compute. ...nothing Drew has posted exceeds the limits of what you yourself posted on many a pk or unbound thread in the past ...what got your ass so far out of kilter I don't know, but its certainly not anything posted in this thread. ...imnsho, you owe a public apology ...a big one. ...besides which, you can't even spell horseshit right. William -------------------------------------------------- From: "jwcolby" Sent: Tuesday, June 10, 2008 3:18 PM To: "Access Developers discussion and problem solving" Subject: Re: [AccessD] VBA Unbound data entry / update form > > #1. You should NEVER have two users trying to edit the > same field in the same record at the same time, where BOTH > values being entered are correct. (ie, there should only be > one right 'Last Name' for a person, yes, it may change, but > there is only one correct value for it) > > HORSHESHIT! Hmmm... not enough emphasis there. > > !!!HORSHESHIT!!!!HORSHESHIT!!!!HORSHESHIT!!!!HORSHESHIT!!!! > The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From Darryl.Collins at coles.com.au Sun Jun 15 19:45:13 2008 From: Darryl.Collins at coles.com.au (Darryl Collins) Date: Mon, 16 Jun 2008 10:45:13 +1000 Subject: [AccessD] Hide datasheet view of table when appending Message-ID: <49DFE57FB126044B8A8B934E7AEA09ED09FD751F@WPEXCH05.colesmyer.ad.cmltd.net.au> Drew, Thanks heaps for this info, I will definately have a play with this technique later this week. Great Stuff. Cheers Darryl -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Drew Wutka Sent: Sunday, 15 June 2008 12:56 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Hide datasheet view of table when appending Ok, well if you want to try the recordset method, here's an example. I've commented the important parts: Function ImportExcelData() Dim XLcnn As ADODB.Connection Dim XLrs As ADODB.Recordset Dim rs As ADODB.Recordset Dim strSheetName As String Dim i As Long 'Create Excel ADO Connection object Set XLcnn = New ADODB.Connection XLcnn.Provider = "Microsoft.Jet.OLEDB.4.0" 'Define Connection Object to connect to excel 'Note, HDR=No will not use the first fields as field names XLcnn.Properties("Extended Properties") = "Excel 8.0;HDR=Yes" 'Open the excel file XLcnn.Open "E:\tblRequests.xls" 'Get the list of tables names (sheet names, with a $) Set rs = XLcnn.OpenSchema(adSchemaTables) 'This line gets the first table/sheet rs.MoveFirst strSheetName = rs.Fields("TABLE_NAME").Value rs.Close 'Create and open the Access table recordset Set rs = New ADODB.Recordset rs.Open "tblRequests", CurrentProject.Connection, adOpenKeyset, adLockOptimistic, adCmdTableDirect 'Create and open the Excel recordset Set XLrs = New ADODB.Recordset XLrs.Open strSheetName, XLcnn, adOpenKeyset, adLockReadOnly, adCmdTableDirect If XLrs.EOF = False Then XLrs.MoveFirst Do Until XLrs.EOF = True 'We are adding a new record for each Excel record. rs.AddNew For i = 0 To XLrs.Fields.Count - 1 'This example uses an excel file and table with the same field names 'other methods could be used to match the fields 'We are also checking for nulls before we add data to the field If Not IsNull(XLrs.Fields(i).Value) Then rs.Fields(XLrs.Fields(i).Name).Value = XLrs.Fields(i) End If Next i rs.Update XLrs.MoveNext Loop 'close everything up rs.Close Set rs = Nothing XLrs.Close Set XLrs = Nothing XLcnn.Close Set XLcnn = Nothing MsgBox "Done" End Function There are several advantages to this method. One, Excel is never opening. It's all done with Jet's 'understanding' of Excel. Two, it's fast. A few years ago, I had to create a routine that automatically imported several spreadsheets into a network database. Using Automation took several minutes to import a few hundred. Using recordsets, it ran several hundred in a few seconds. I'm sure TransferSpreadsheet is pretty fast too. Three, unlike TransferSpreadsheet, you have complete control at the single field level to perform any kind of logic you might need (verifying data, etc). Four, though this probably won't apply, but you don't have to have Access OR Excel installed on a machine to run this kind of code (though my example is using currentproject.connection, because I wrote it in an Access .mdb. Put this code in VB, and a non-Office program can copy data from an .xls file to an .mdb file, without having office installed). Another advantage is that I believed you mentioned that there could be multiple spreadsheets, and a variable number of columns in each. Not sure what you are doing to determine these variables, using TransferSpreadsheet, but with the example above, you should be able to see that you can get how many sheets are in the spreadsheet, and how many fields/columns there are. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hewson, Jim Sent: Friday, June 13, 2008 2:54 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Hide datasheet view of table when appending I've used a Recordset before, I didn't think about using it. I have the TransferSpreadsheet working as Lambert suggested and everything is working. My only problem now is that Excel won't shut down even though I tell it to quit and set the reference to nothing. Thanks everyone for your help. Jim jhewson at nciinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, June 13, 2008 2:48 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Hide datasheet view of table when appending The difference is control, without opening Excel. Have you ever used a recordset in code? With ADO, you can open an excel spreadsheet as a recordset. Don't even have to have Excel installed on the machine. Drew The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. From Darryl.Collins at coles.com.au Mon Jun 16 00:18:46 2008 From: Darryl.Collins at coles.com.au (Darryl Collins) Date: Mon, 16 Jun 2008 15:18:46 +1000 Subject: [AccessD] Hide datasheet view of table when appending Message-ID: <49DFE57FB126044B8A8B934E7AEA09ED0B270289@WPEXCH05.colesmyer.ad.cmltd.net.au> Drew, Could I please bug you for some advice with this? I have tested your code with a range of data in a workbook that starts at Range A1 (with headers) and it worked great. For most of the code I can what is happening but I am not sure how it can be tweaked in a couple of places. ' This line seems to get the names of all the sheets in the workbook. Set rs = XLcnn.OpenSchema(adSchemaTables) 'This line goes to the first sheet in the workbook (or more accurately the schematables I would think) rs.MoveFirst ' This line seems to define the data set to be used - not sure if "TABLE_NAME" can be anything or not? Actually not sure how this works at all. strSheetName = rs.Fields("TABLE_NAME").Value ' No need to explain - however what if the sheet you want is not the first sheet or you know exactly which sheet you do want? rs.MoveFirst I was also wondering if it was possible to use Excel's Named ranges instead of sheets. All of the dataset I use are in named ranges that automatically adjust shape as needed. Ideally I would like something like: Sheets("MyExcelSheet").Range("MyNamedRange") = rs.Fields("TABLE_NAME").Value That would be very cool indeed. - heh, actually I might try and play with that and let you know what happens. cheers Darryl. -----Original Message----- From: Darryl Collins Sent: Monday, 16 June 2008 10:45 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Hide datasheet view of table when appending Drew, Thanks heaps for this info, I will definately have a play with this technique later this week. Great Stuff. Cheers Darryl -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Drew Wutka Sent: Sunday, 15 June 2008 12:56 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Hide datasheet view of table when appending Ok, well if you want to try the recordset method, here's an example. I've commented the important parts: Function ImportExcelData() Dim XLcnn As ADODB.Connection Dim XLrs As ADODB.Recordset Dim rs As ADODB.Recordset Dim strSheetName As String Dim i As Long 'Create Excel ADO Connection object Set XLcnn = New ADODB.Connection XLcnn.Provider = "Microsoft.Jet.OLEDB.4.0" 'Define Connection Object to connect to excel 'Note, HDR=No will not use the first fields as field names XLcnn.Properties("Extended Properties") = "Excel 8.0;HDR=Yes" 'Open the excel file XLcnn.Open "E:\tblRequests.xls" 'Get the list of tables names (sheet names, with a $) Set rs = XLcnn.OpenSchema(adSchemaTables) 'This line gets the first table/sheet rs.MoveFirst strSheetName = rs.Fields("TABLE_NAME").Value rs.Close 'Create and open the Access table recordset Set rs = New ADODB.Recordset rs.Open "tblRequests", CurrentProject.Connection, adOpenKeyset, adLockOptimistic, adCmdTableDirect 'Create and open the Excel recordset Set XLrs = New ADODB.Recordset XLrs.Open strSheetName, XLcnn, adOpenKeyset, adLockReadOnly, adCmdTableDirect If XLrs.EOF = False Then XLrs.MoveFirst Do Until XLrs.EOF = True 'We are adding a new record for each Excel record. rs.AddNew For i = 0 To XLrs.Fields.Count - 1 'This example uses an excel file and table with the same field names 'other methods could be used to match the fields 'We are also checking for nulls before we add data to the field If Not IsNull(XLrs.Fields(i).Value) Then rs.Fields(XLrs.Fields(i).Name).Value = XLrs.Fields(i) End If Next i rs.Update XLrs.MoveNext Loop 'close everything up rs.Close Set rs = Nothing XLrs.Close Set XLrs = Nothing XLcnn.Close Set XLcnn = Nothing MsgBox "Done" End Function There are several advantages to this method. One, Excel is never opening. It's all done with Jet's 'understanding' of Excel. Two, it's fast. A few years ago, I had to create a routine that automatically imported several spreadsheets into a network database. Using Automation took several minutes to import a few hundred. Using recordsets, it ran several hundred in a few seconds. I'm sure TransferSpreadsheet is pretty fast too. Three, unlike TransferSpreadsheet, you have complete control at the single field level to perform any kind of logic you might need (verifying data, etc). Four, though this probably won't apply, but you don't have to have Access OR Excel installed on a machine to run this kind of code (though my example is using currentproject.connection, because I wrote it in an Access .mdb. Put this code in VB, and a non-Office program can copy data from an .xls file to an .mdb file, without having office installed). Another advantage is that I believed you mentioned that there could be multiple spreadsheets, and a variable number of columns in each. Not sure what you are doing to determine these variables, using TransferSpreadsheet, but with the example above, you should be able to see that you can get how many sheets are in the spreadsheet, and how many fields/columns there are. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hewson, Jim Sent: Friday, June 13, 2008 2:54 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Hide datasheet view of table when appending I've used a Recordset before, I didn't think about using it. I have the TransferSpreadsheet working as Lambert suggested and everything is working. My only problem now is that Excel won't shut down even though I tell it to quit and set the reference to nothing. Thanks everyone for your help. Jim jhewson at nciinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, June 13, 2008 2:48 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Hide datasheet view of table when appending The difference is control, without opening Excel. Have you ever used a recordset in code? With ADO, you can open an excel spreadsheet as a recordset. Don't even have to have Excel installed on the machine. Drew The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. From Gustav at cactus.dk Mon Jun 16 01:10:42 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 16 Jun 2008 08:10:42 +0200 Subject: [AccessD] Hide datasheet view of table when appending Message-ID: Hi Darryl > I was also wondering if it was possible to use Excel's Named ranges instead of sheets. .. You've seen the light. It should not be difficult. As Drew writes: 'Get the list of tables names (sheet names, with a $) Set rs = XLcnn.OpenSchema(adSchemaTables) 'This line gets the first table/sheet rs.MoveFirst strSheetName = rs.Fields("TABLE_NAME").Value rs.Close Just move on and list all the tables . Those not with a $ prefix are Named Ranges. /gustav >>> Darryl.Collins at coles.com.au 16-06-2008 07:18 >>> Drew, Could I please bug you for some advice with this? I have tested your code with a range of data in a workbook that starts at Range A1 (with headers) and it worked great. For most of the code I can what is happening but I am not sure how it can be tweaked in a couple of places. ' This line seems to get the names of all the sheets in the workbook. Set rs = XLcnn.OpenSchema(adSchemaTables) 'This line goes to the first sheet in the workbook (or more accurately the schematables I would think) rs.MoveFirst ' This line seems to define the data set to be used - not sure if "TABLE_NAME" can be anything or not? Actually not sure how this works at all. strSheetName = rs.Fields("TABLE_NAME").Value ' No need to explain - however what if the sheet you want is not the first sheet or you know exactly which sheet you do want? rs.MoveFirst I was also wondering if it was possible to use Excel's Named ranges instead of sheets. All of the dataset I use are in named ranges that automatically adjust shape as needed. Ideally I would like something like: Sheets("MyExcelSheet").Range("MyNamedRange") = rs.Fields("TABLE_NAME").Value That would be very cool indeed. - heh, actually I might try and play with that and let you know what happens. cheers Darryl. -----Original Message----- From: Darryl Collins Sent: Monday, 16 June 2008 10:45 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Hide datasheet view of table when appending Drew, Thanks heaps for this info, I will definately have a play with this technique later this week. Great Stuff. Cheers Darryl -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Drew Wutka Sent: Sunday, 15 June 2008 12:56 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Hide datasheet view of table when appending Ok, well if you want to try the recordset method, here's an example. I've commented the important parts: Function ImportExcelData() Dim XLcnn As ADODB.Connection Dim XLrs As ADODB.Recordset Dim rs As ADODB.Recordset Dim strSheetName As String Dim i As Long 'Create Excel ADO Connection object Set XLcnn = New ADODB.Connection XLcnn.Provider = "Microsoft.Jet.OLEDB.4.0" 'Define Connection Object to connect to excel 'Note, HDR=No will not use the first fields as field names XLcnn.Properties("Extended Properties") = "Excel 8.0;HDR=Yes" 'Open the excel file XLcnn.Open "E:\tblRequests.xls" 'Get the list of tables names (sheet names, with a $) Set rs = XLcnn.OpenSchema(adSchemaTables) 'This line gets the first table/sheet rs.MoveFirst strSheetName = rs.Fields("TABLE_NAME").Value rs.Close 'Create and open the Access table recordset Set rs = New ADODB.Recordset rs.Open "tblRequests", CurrentProject.Connection, adOpenKeyset, adLockOptimistic, adCmdTableDirect 'Create and open the Excel recordset Set XLrs = New ADODB.Recordset XLrs.Open strSheetName, XLcnn, adOpenKeyset, adLockReadOnly, adCmdTableDirect If XLrs.EOF = False Then XLrs.MoveFirst Do Until XLrs.EOF = True 'We are adding a new record for each Excel record. rs.AddNew For i = 0 To XLrs.Fields.Count - 1 'This example uses an excel file and table with the same field names 'other methods could be used to match the fields 'We are also checking for nulls before we add data to the field If Not IsNull(XLrs.Fields(i).Value) Then rs.Fields(XLrs.Fields(i).Name).Value = XLrs.Fields(i) End If Next i rs.Update XLrs.MoveNext Loop 'close everything up rs.Close Set rs = Nothing XLrs.Close Set XLrs = Nothing XLcnn.Close Set XLcnn = Nothing MsgBox "Done" End Function There are several advantages to this method. One, Excel is never opening. It's all done with Jet's 'understanding' of Excel. Two, it's fast. A few years ago, I had to create a routine that automatically imported several spreadsheets into a network database. Using Automation took several minutes to import a few hundred. Using recordsets, it ran several hundred in a few seconds. I'm sure TransferSpreadsheet is pretty fast too. Three, unlike TransferSpreadsheet, you have complete control at the single field level to perform any kind of logic you might need (verifying data, etc). Four, though this probably won't apply, but you don't have to have Access OR Excel installed on a machine to run this kind of code (though my example is using currentproject.connection, because I wrote it in an Access .mdb. Put this code in VB, and a non-Office program can copy data from an .xls file to an .mdb file, without having office installed). Another advantage is that I believed you mentioned that there could be multiple spreadsheets, and a variable number of columns in each. Not sure what you are doing to determine these variables, using TransferSpreadsheet, but with the example above, you should be able to see that you can get how many sheets are in the spreadsheet, and how many fields/columns there are. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hewson, Jim Sent: Friday, June 13, 2008 2:54 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Hide datasheet view of table when appending I've used a Recordset before, I didn't think about using it. I have the TransferSpreadsheet working as Lambert suggested and everything is working. My only problem now is that Excel won't shut down even though I tell it to quit and set the reference to nothing. Thanks everyone for your help. Jim jhewson at nciinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, June 13, 2008 2:48 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Hide datasheet view of table when appending The difference is control, without opening Excel. Have you ever used a recordset in code? With ADO, you can open an excel spreadsheet as a recordset. Don't even have to have Excel installed on the machine. Drew From rockysmolin at bchacc.com Mon Jun 16 07:20:48 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Mon, 16 Jun 2008 05:20:48 -0700 Subject: [AccessD] End of XP Message-ID: <003401c8cfab$693f6a20$0301a8c0@HAL9005> https://partner.microsoft.com/us/40068350 Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com From bbruen at unwired.com.au Mon Jun 16 08:16:29 2008 From: bbruen at unwired.com.au (Bruce Bruen) Date: Mon, 16 Jun 2008 23:16:29 +1000 Subject: [AccessD] End of XP In-Reply-To: <003401c8cfab$693f6a20$0301a8c0@HAL9005> References: <003401c8cfab$693f6a20$0301a8c0@HAL9005> Message-ID: <200806162316.29923.bbruen@unwired.com.au> On Mon, 16 Jun 2008 10:20:48 pm Rocky Smolin at Beach Access Software wrote: > partner Alternatively, http://forums.unwired.com.au/forum/viewtopic.php?t=2056&highlight=&sid=087efdbab9b40b013f013c6e1720a4d9 -- regards Bruce From krosenstiel at comcast.net Mon Jun 16 08:23:48 2008 From: krosenstiel at comcast.net (Karen Rosenstiel) Date: Mon, 16 Jun 2008 06:23:48 -0700 Subject: [AccessD] End of XP In-Reply-To: <200806162316.29923.bbruen@unwired.com.au> Message-ID: <200806161323.m5GDNaRX026326@databaseadvisors.com> No can do. "Your access to this forum has been removed." Regards, Karen Rosenstiel Seattle WA USA -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bruce Bruen Sent: Monday, June 16, 2008 6:16 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] End of XP On Mon, 16 Jun 2008 10:20:48 pm Rocky Smolin at Beach Access Software wrote: > partner Alternatively, http://forums.unwired.com.au/forum/viewtopic.php?t=2056&highlight=&sid=087ef dbab9b40b013f013c6e1720a4d9 -- regards Bruce -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 7.5.524 / Virus Database: 270.3.0/1504 - Release Date: 6/15/2008 5:52 PM No virus found in this outgoing message. Checked by AVG. Version: 7.5.524 / Virus Database: 270.3.0/1504 - Release Date: 6/15/2008 5:52 PM From fuller.artful at gmail.com Mon Jun 16 08:30:02 2008 From: fuller.artful at gmail.com (Arthur Fuller) Date: Mon, 16 Jun 2008 10:30:02 -0300 Subject: [AccessD] End of XP In-Reply-To: <200806161323.m5GDNaRX026326@databaseadvisors.com> References: <200806162316.29923.bbruen@unwired.com.au> <200806161323.m5GDNaRX026326@databaseadvisors.com> Message-ID: <29f585dd0806160630v5e025275w9137c2558be996b7@mail.gmail.com> I just tried and got the same message. Arthur Hamilton, Bermuda On Mon, Jun 16, 2008 at 10:23 AM, Karen Rosenstiel wrote: > No can do. > > "Your access to this forum has been removed." > > > Regards, > > Karen Rosenstiel > Seattle WA USA > From rockysmolin at bchacc.com Mon Jun 16 08:45:14 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Mon, 16 Jun 2008 06:45:14 -0700 Subject: [AccessD] Feedback Needed - Round 2 Message-ID: <005b01c8cfb7$34b76c60$0301a8c0@HAL9005> Dear List: First of all thanks to everyone who responded the first time with input on the Beach Access Software web site redesign. Karen has taken all of your input and reworked the site. So now we're ready to impose on you all again for your feedback. The site is temporarily stored at http://www.bchacc.com/beachtemp/index.html Any and all comments will be greatly appreciated. MTIA, Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com From robert at servicexp.com Mon Jun 16 09:10:09 2008 From: robert at servicexp.com (Robert) Date: Mon, 16 Jun 2008 10:10:09 -0400 Subject: [AccessD] Feedback Needed - Round 2 In-Reply-To: <005b01c8cfb7$34b76c60$0301a8c0@HAL9005> References: <005b01c8cfb7$34b76c60$0301a8c0@HAL9005> Message-ID: <000601c8cfba$b0accb00$12066100$@com> Rocky, Looks good, my only complaint is that gray background messes with my eyes when scrolling.. It maybe just my monitor though... WBR ~Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, June 16, 2008 9:45 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Feedback Needed - Round 2 Dear List: First of all thanks to everyone who responded the first time with input on the Beach Access Software web site redesign. Karen has taken all of your input and reworked the site. So now we're ready to impose on you all again for your feedback. The site is temporarily stored at http://www.bchacc.com/beachtemp/index.html Any and all comments will be greatly appreciated. MTIA, Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Mon Jun 16 09:15:21 2008 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 16 Jun 2008 14:15:21 +0000 Subject: [AccessD] End of XP In-Reply-To: <200806161323.m5GDNaRX026326@databaseadvisors.com> References: <200806162316.29923.bbruen@unwired.com.au> <200806161323.m5GDNaRX026326@databaseadvisors.com> Message-ID: Maybe check for line wrap in the link...because I got in just fine. Mark A. Matte > From: krosenstiel at comcast.net > To: accessd at databaseadvisors.com > Date: Mon, 16 Jun 2008 06:23:48 -0700 > Subject: Re: [AccessD] End of XP > > No can do. > > "Your access to this forum has been removed." > > > Regards, > > Karen Rosenstiel > Seattle WA USA > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bruce Bruen > Sent: Monday, June 16, 2008 6:16 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] End of XP > > On Mon, 16 Jun 2008 10:20:48 pm Rocky Smolin at Beach Access Software wrote: >> partner > > Alternatively, > http://forums.unwired.com.au/forum/viewtopic.php?t=2056&highlight=&sid=087ef > dbab9b40b013f013c6e1720a4d9 > > -- > regards > > Bruce > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > No virus found in this incoming message. > Checked by AVG. > Version: 7.5.524 / Virus Database: 270.3.0/1504 - Release Date: 6/15/2008 > 5:52 PM > > > No virus found in this outgoing message. > Checked by AVG. > Version: 7.5.524 / Virus Database: 270.3.0/1504 - Release Date: 6/15/2008 > 5:52 PM > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ Enjoy 5 GB of free, password-protected online storage. http://www.windowslive.com/skydrive/overview.html?ocid=TXT_TAGLM_WL_Refresh_skydrive_062008 From ssharkins at gmail.com Mon Jun 16 09:21:15 2008 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 16 Jun 2008 10:21:15 -0400 Subject: [AccessD] Feedback Needed - Round 2 References: <005b01c8cfb7$34b76c60$0301a8c0@HAL9005> Message-ID: <002501c8cfbc$42d5faa0$2f8601c7@SusanOne> Rocky, I like the banner and the colors. I don't like the font, but I can't tell you why and since I don't know anything about design, I would take that with a grain... I might be whacky. I keep seeing a thin red line under product names -- is that supposed to be there? I don't understand its purpose. On the homepage you have upper cased the word not -- NOT -- for emphasis. Donning my editor's pen, I would gently suggest that you go with lower case. If you truly feel this word must be emphasized, try italics. Professionals will read this and you don't need the pushy emphasis of upper case. In fact, some might see it as a .... lack of professionalism -- sort of like a misspelled word. Just a suggestion though, but I can tell you that in all my years writing, I've used an upper case word for emphasis only once. The phrase was something like, "... never, never, and I really mean NEVER.... " and then I followed it with something like, "but I know you're going to ignore me anyway and do this, so...." So, as you can see, it was a tool of sarcasm as much as emphasis. Susan H. > Dear List: > > First of all thanks to everyone who responded the first time with input on > the Beach Access Software web site redesign. > > Karen has taken all of your input and reworked the site. So now we're > ready > to impose on you all again for your feedback. > > The site is temporarily stored at > http://www.bchacc.com/beachtemp/index.html > > Any and all comments will be greatly appreciated. > > MTIA, > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > www.e-z-mrp.com > > www.bchacc.com > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From markamatte at hotmail.com Mon Jun 16 09:29:42 2008 From: markamatte at hotmail.com (Mark A Matte) Date: Mon, 16 Jun 2008 14:29:42 +0000 Subject: [AccessD] Feedback Needed - Round 2 In-Reply-To: <000601c8cfba$b0accb00$12066100$@com> References: <005b01c8cfb7$34b76c60$0301a8c0@HAL9005> <000601c8cfba$b0accb00$12066100$@com> Message-ID: Rocky, I think it is definitely looking better. There are some Javascript errors on the Projects page...and when you mouse over the grey areas at the bottom of that page...more items are loaded...not sure what they are...but you can see on the status bar...Java error...then about 10 things are reloaded. Also, Just my opinion...but I have never been a fan of scrolling if I don't have to. The top half of your page is logo and picture. To finish the first paragraph...I have to scroll...and your company name is no longer on the screen. Just some thoughts. Mark A. Matte > From: robert at servicexp.com > To: accessd at databaseadvisors.com > Date: Mon, 16 Jun 2008 10:10:09 -0400 > Subject: Re: [AccessD] Feedback Needed - Round 2 > > Rocky, > Looks good, my only complaint is that gray background messes with my eyes > when scrolling.. It maybe just my monitor though... > > > WBR > ~Robert > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at > Beach Access Software > Sent: Monday, June 16, 2008 9:45 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Feedback Needed - Round 2 > > Dear List: > > First of all thanks to everyone who responded the first time with input on > the Beach Access Software web site redesign. > > Karen has taken all of your input and reworked the site. So now we're ready > to impose on you all again for your feedback. > > The site is temporarily stored at http://www.bchacc.com/beachtemp/index.html > > Any and all comments will be greatly appreciated. > > MTIA, > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > www.e-z-mrp.com > > www.bchacc.com > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ Enjoy 5 GB of free, password-protected online storage. http://www.windowslive.com/skydrive/overview.html?ocid=TXT_TAGLM_WL_Refresh_skydrive_062008 From rockysmolin at bchacc.com Mon Jun 16 09:48:56 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Mon, 16 Jun 2008 07:48:56 -0700 Subject: [AccessD] Feedback Needed - Round 2 In-Reply-To: <002501c8cfbc$42d5faa0$2f8601c7@SusanOne> References: <005b01c8cfb7$34b76c60$0301a8c0@HAL9005> <002501c8cfbc$42d5faa0$2f8601c7@SusanOne> Message-ID: <007301c8cfc0$1aaaa2c0$0301a8c0@HAL9005> How about if the NOT was bolded in lower case instead? I would like the emphasis. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Monday, June 16, 2008 7:21 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Feedback Needed - Round 2 Rocky, I like the banner and the colors. I don't like the font, but I can't tell you why and since I don't know anything about design, I would take that with a grain... I might be whacky. I keep seeing a thin red line under product names -- is that supposed to be there? I don't understand its purpose. On the homepage you have upper cased the word not -- NOT -- for emphasis. Donning my editor's pen, I would gently suggest that you go with lower case. If you truly feel this word must be emphasized, try italics. Professionals will read this and you don't need the pushy emphasis of upper case. In fact, some might see it as a .... lack of professionalism -- sort of like a misspelled word. Just a suggestion though, but I can tell you that in all my years writing, I've used an upper case word for emphasis only once. The phrase was something like, "... never, never, and I really mean NEVER.... " and then I followed it with something like, "but I know you're going to ignore me anyway and do this, so...." So, as you can see, it was a tool of sarcasm as much as emphasis. Susan H. > Dear List: > > First of all thanks to everyone who responded the first time with > input on the Beach Access Software web site redesign. > > Karen has taken all of your input and reworked the site. So now we're > ready to impose on you all again for your feedback. > > The site is temporarily stored at > http://www.bchacc.com/beachtemp/index.html > > Any and all comments will be greatly appreciated. > > MTIA, > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > www.e-z-mrp.com > > www.bchacc.com > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 270.3.0/1505 - Release Date: 16/6/2008 07:20 From DWUTKA at Marlow.com Mon Jun 16 09:52:28 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Mon, 16 Jun 2008 09:52:28 -0500 Subject: [AccessD] Hide datasheet view of table when appending In-Reply-To: <49DFE57FB126044B8A8B934E7AEA09ED0B270289@WPEXCH05.colesmyer.ad.cmltd.net.au> Message-ID: >>>Answers in-line -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Monday, June 16, 2008 12:19 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Hide datasheet view of table when appending Drew, Could I please bug you for some advice with this? >>>Of course, and it's not bugging me... ;) I have tested your code with a range of data in a workbook that starts at Range A1 (with headers) and it worked great. For most of the code I can what is happening but I am not sure how it can be tweaked in a couple of places. ' This line seems to get the names of all the sheets in the workbook. Set rs = XLcnn.OpenSchema(adSchemaTables) >>>Yes, you can use this in ADO to get the list of all the tables in a database. I use this method because most processes where I am reading data from Excel, I don't necessarily know what the sheet name is. 'This line goes to the first sheet in the workbook (or more accurately the schematables I would think) rs.MoveFirst >>>Actually, to be more accurate the OpenSchema(adSchemaTables) returned a recordset with the following fields: TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE >>>so rs.movefirst is just going to the first record (which, when dealing with an excel spreadsheet, would be the record representing the info for the first sheet) ' This line seems to define the data set to be used - not sure if "TABLE_NAME" can be anything or not? Actually not sure how this works at all. strSheetName = rs.Fields("TABLE_NAME").Value >>>As I just mentioned, "TABLE_NAME" is a field in the adSchemaTables Schema. All this line is doing is storing the name of the sheet I want to open. ' No need to explain - however what if the sheet you want is not the first sheet or you know exactly which sheet you do want? rs.MoveFirst >>>Then you can completely skip the adschema stuff, and just open the sheet or range (sheets end with $, where ranges do not) I was also wondering if it was possible to use Excel's Named ranges instead of sheets. All of the dataset I use are in named ranges that automatically adjust shape as needed. Ideally I would like something like: Sheets("MyExcelSheet").Range("MyNamedRange") = rs.Fields("TABLE_NAME").Value >>>Yes, you can just open the range without using the schema, the same 'sample code' I posted with opening a known range would be like this: Function ImportExcelData() Dim XLcnn As ADODB.Connection Dim XLrs As ADODB.Recordset Dim rs As ADODB.Recordset Dim strSheetName As String Dim i As Long Set XLcnn = New ADODB.Connection XLcnn.Provider = "Microsoft.Jet.OLEDB.4.0" XLcnn.Properties("Extended Properties") = "Excel 8.0;HDR=No" XLcnn.Open "E:\tblRequests.xls" Set rs = New ADODB.Recordset rs.Open "tblRequests", CurrentProject.Connection, adOpenKeyset, adLockOptimistic, adCmdTableDirect Set XLrs = New ADODB.Recordset XLrs.Open "NameOfYourDataRange", XLcnn, adOpenKeyset, adLockReadOnly, adCmdTableDirect If XLrs.EOF = False Then XLrs.MoveFirst Do Until XLrs.EOF = True rs.AddNew For i = 0 To XLrs.Fields.Count - 1 If Not IsNull(XLrs.Fields(i).Value) Then rs.Fields(XLrs.Fields(i).Name).Value = XLrs.Fields(i) End If Next i rs.Update XLrs.MoveNext Loop rs.Close Set rs = Nothing XLrs.Close Set XLrs = Nothing XLcnn.Close Set XLcnn = Nothing MsgBox "Done" End Function >>>Where you would need to replace "NameOfYourDataRange" with the name of the range you want to use (and also the E:\tblRequests.xls with the name of the .xls file you want to use). That would be very cool indeed. - heh, actually I might try and play with that and let you know what happens. cheers Darryl. -----Original Message----- From: Darryl Collins Sent: Monday, 16 June 2008 10:45 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Hide datasheet view of table when appending Drew, Thanks heaps for this info, I will definately have a play with this technique later this week. Great Stuff. Cheers Darryl The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From ssharkins at gmail.com Mon Jun 16 10:27:53 2008 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 16 Jun 2008 11:27:53 -0400 Subject: [AccessD] Feedback Needed - Round 2 References: <005b01c8cfb7$34b76c60$0301a8c0@HAL9005><002501c8cfbc$42d5faa0$2f8601c7@SusanOne> <007301c8cfc0$1aaaa2c0$0301a8c0@HAL9005> Message-ID: <00fa01c8cfc5$8f936e50$2f8601c7@SusanOne> Rocky, I don't think there's any hard and fast rule. I would try it both ways and depending on how you want the statement to impact the reader, choose the one that works the best. FWIW, bold is more abrupt and is often used to highlight definitions, callouts -- a more technical emphasis. Italics is used far less and for that reason, is sometimes more appropriate when trying to emphasize an idea or thought. But, you must let the content be your guide. Susan H. > How about if the NOT was bolded in lower case instead? I would like the > emphasis. From JHewson at nciinc.com Mon Jun 16 10:25:38 2008 From: JHewson at nciinc.com (Hewson, Jim ) Date: Mon, 16 Jun 2008 10:25:38 -0500 Subject: [AccessD] Hide datasheet view of table when appending In-Reply-To: <34C8A2AB1EF3564CB0D64DB6AFFDD5C2161C76A7@XLIVMBX35bkup.aig.com> References: <34C8A2AB1EF3564CB0D64DB6AFFDD5C2161C76A7@XLIVMBX35bkup.aig.com> Message-ID: <7E02B06E41E5404589EDDDA2BAA1C5A8157B50@sanex101.nciinc.com> Thanks, Lambert. Sorry, it's taken so long to respond... I had the audacity to take a couple of days off. I still can't get Excel to shutdown, though. It's still open in the task manager. Jim jhewson at nciinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Friday, June 13, 2008 4:13 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Hide datasheet view of table when appending Quitting Excel. This is how I do it... Sub Excel_CloseWorkBook(xlApp As Excel.Application, Optional bSaveChanges As Boolean = False) Dim wb As Excel.Workbook On Error Resume Next If xlApp.Name > "" Then ' reference a property to see if we get an error End If If Err.Number <> 0 Then Exit Sub ' already closed On Error GoTo 0 For Each wb In xlApp.Workbooks 'Close all open workbooks wb.Close bSaveChanges Next wb xlApp.UserControl = False Set xlApp = Nothing End Sub The crucial statement is "xlApp.UserControl = False ". Leave it out and Excel will not shut down. In use it's a case of setting all your references to worksheets to nothing and then call Excel_CloseWorkBook objExlApp, [True|False] HTH - works for me. :-) Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hewson, Jim Sent: Friday, June 13, 2008 3:54 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Hide datasheet view of table when appending I've used a Recordset before, I didn't think about using it. I have the TransferSpreadsheet working as Lambert suggested and everything is working. My only problem now is that Excel won't shut down even though I tell it to quit and set the reference to nothing. Thanks everyone for your help. Jim jhewson at nciinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, June 13, 2008 2:48 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Hide datasheet view of table when appending The difference is control, without opening Excel. Have you ever used a recordset in code? With ADO, you can open an excel spreadsheet as a recordset. Don't even have to have Excel installed on the machine. Drew ############################################################################ #### This email transmission contains information from NCI Information Systems, Inc. that may be considered privileged or confidential and is intended solely for the named recipient. If you have received this message in error, please contact the sender immediately and be aware that the use, copying or dissemination of this information is prohibited. ############################################################################ #### -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 email transmission contains information from NCI Information Systems, Inc. that may be considered privileged or confidential and is intended solely for the named recipient. If you have received this message in error, please contact the sender immediately and be aware that the use, copying or dissemination of this information is prohibited. ################################################################################ From Gustav at cactus.dk Mon Jun 16 11:17:54 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 16 Jun 2008 18:17:54 +0200 Subject: [AccessD] Feedback Needed - Round 2 Message-ID: Hi Rocky Rolling for a moment back the years to my time at three of the major advertising agencies here as a copywriter, I can advise to remove the upper-case of "not", I would even remove the bolding of the keywords. Both add noise to the reading and neither are needed for such a short copy (some points deserved here to keep the text brief and strictly on topic). If you insist, use italic. Further, the font is very large. Make it smaller and - as a bonus - get rid of much of the scrolling. Also, underlining are used quite a few places, even in red. For book titles and the like, this is one situation where italics are much better reserving underlining for links only. On another note, you should decide if your business is "me" or "we". If "we", pull forward the products and throttle down the focus on you as a person (smaller picture, if any, remove private stuff leaving out story about wife etc.) but keep the info that you are the boss and key person. Right now the site is much more "me" which may be fine if you wish to market yourself as the expert to turn to, but then it is disturbing constantly to read about "us" and "we". Finally, the function of the gallery is very good - much better than the usual pop-up windows or links to other pages. However, I must admit your screen designs look quite old fashioned. I know this is difficult, but a brush up (just nice, not smart) would bring more appeal and would keep the attention from the casual reader some minutes more. /gustav > How about if the NOT was bolded in lower case instead? I would like the emphasis. From edzedz at comcast.net Mon Jun 16 12:39:21 2008 From: edzedz at comcast.net (Edward S Zuris) Date: Mon, 16 Jun 2008 10:39:21 -0700 Subject: [AccessD] Hide datasheet view of table when appending In-Reply-To: <7E02B06E41E5404589EDDDA2BAA1C5A8157B50@sanex101.nciinc.com> Message-ID: <006601c8cfd7$ea12d480$65dea8c0@dudley1> Looks like you are doing the early binding thus you shouldn't have trouble with orphan instances of Excel. Here is an example of how I shut down an instance of Excel. = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = ' ***************************************************** ' ***************************************************** ' Size First Worksheet Window ' ExcelCopy.sheets(1).Select ExcelCopy.sheets(1).Range("A1:A1").Select ExcelCopy.Application.ActiveWindow.Width = 680 ExcelCopy.Application.ActiveWindow.Height = 440 ' ***************************************************** ' Write the new Excel data to Disk. ' ExcelCopy.Application.DisplayAlerts = False ExcelCopy.SaveAs sXLSfilename ExcelSheet.Application.Quit ExcelCopy.Application.DisplayAlerts = True Set ExcelSheet = Nothing Set ExcelCopy = Nothing = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Hewson, Jim Sent: Monday, June 16, 2008 8:26 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Hide datasheet view of table when appending Thanks, Lambert. Sorry, it's taken so long to respond... I had the audacity to take a couple of days off. I still can't get Excel to shutdown, though. It's still open in the task manager. Jim jhewson at nciinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Heenan, Lambert Sent: Friday, June 13, 2008 4:13 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Hide datasheet view of table when appending Quitting Excel. This is how I do it... Sub Excel_CloseWorkBook(xlApp As Excel.Application, Optional bSaveChanges As Boolean = False) Dim wb As Excel.Workbook On Error Resume Next If xlApp.Name > "" Then ' reference a property to see if we get an error End If If Err.Number <> 0 Then Exit Sub ' already closed On Error GoTo 0 For Each wb In xlApp.Workbooks 'Close all open workbooks wb.Close bSaveChanges Next wb xlApp.UserControl = False Set xlApp = Nothing End Sub The crucial statement is "xlApp.UserControl = False ". Leave it out and Excel will not shut down. In use it's a case of setting all your references to worksheets to nothing and then call Excel_CloseWorkBook objExlApp, [True|False] HTH - works for me. :-) Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Hewson, Jim Sent: Friday, June 13, 2008 3:54 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Hide datasheet view of table when appending I've used a Recordset before, I didn't think about using it. I have the TransferSpreadsheet working as Lambert suggested and everything is working. My only problem now is that Excel won't shut down even though I tell it to quit and set the reference to nothing. Thanks everyone for your help. Jim jhewson at nciinc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Friday, June 13, 2008 2:48 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Hide datasheet view of table when appending The difference is control, without opening Excel. Have you ever used a recordset in code? With ADO, you can open an excel spreadsheet as a recordset. Don't even have to have Excel installed on the machine. Drew ############################################################################ #### This email transmission contains information from NCI Information Systems, Inc. that may be considered privileged or confidential and is intended solely for the named recipient. If you have received this message in error, please contact the sender immediately and be aware that the use, copying or dissemination of this information is prohibited. ############################################################################ #### -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 email transmission contains information from NCI Information Systems, Inc. that may be considered privileged or confidential and is intended solely for the named recipient. If you have received this message in error, please contact the sender immediately and be aware that the use, copying or dissemination of this information is prohibited. ############################################################################ #### -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From adtp at airtelmail.in Mon Jun 16 13:51:11 2008 From: adtp at airtelmail.in (A.D.Tejpal) Date: Tue, 17 Jun 2008 00:21:11 +0530 Subject: [AccessD] Hide datasheet view of table when appending References: <7E02B06E41E5404589EDDDA2BAA1C5A8157B16@sanex101.nciinc.com> Message-ID: <00f701c8cfe2$2f472790$0957a27a@personald6374f> Jim, If you are in a position to name the data range on each excel sheet in style R_01, R_02 etc., sample subroutine named P_ImportFromExcel(), as given below, should enable you to import the data from all relevant sheets into a common access table named T_Import. It is presumed that first row of excel data range consists of column headings. While creating the table T_Import, it should be ensured that all column headings existing in excel are included in field names, with correct data type. Ordinal position of fields visa vis sequence of excel columns is not important. If desired, access table can even have extra fields (over & above the number of columns in excel data range). Best wishes, A.D.Tejpal ------------ ' Sample subroutine (P_ImportFromExcel()) ' For importing data from multiple sheets in excel ' to table named T_Import ' It is to be ensured that column headings in first row of each ' data range are covered by field names in access table ' (The number and sequence of columns in excel need not ' necessarily match the number & sequence of fields in ' access table) '======================================= Sub P_ImportFromExcel(ExcelFilePath As String, _ NumberOfSheetRanges As Long) Dim Cnt As Long For Cnt = 1 To NumberOfSheetRanges DoCmd.TransferSpreadsheet acImport, , _ "T_Import", ExcelFilePath, True, _ "R_" & Format(Cnt, "00") Next End Sub '===================================== ----- Original Message ----- From: Hewson, Jim To: Access Developers discussion and problem solving Sent: Friday, June 13, 2008 02:17 Subject: [AccessD] Hide datasheet view of table when appending I can't seem to figure this out.... Access 2003 I am importing data from an Excel workbook to a table in Access. All the worksheets will be imported and they have the same format. The Excel files are created from a download from another system. The smallest workbook has 80 worksheets. One test Excel file has about 2400 worksheets. I am able to work on each worksheet, grab the desired range (could be 1 or 100 rows involved), paste it into Access, and close Excel. I need to "hide" the table when the data is being appended. What happens is the table is opened and the data is pasted into it - everything shows in the database window. How can I hid the table and still paste the data into it? If I minimize it, I get an error message. If I hide the table, I get an error message. Any suggestions? Thanks, Jim Jim H. Hewson From bbruen at unwired.com.au Mon Jun 16 16:02:54 2008 From: bbruen at unwired.com.au (Bruce Bruen) Date: Tue, 17 Jun 2008 07:02:54 +1000 Subject: [AccessD] End of XP In-Reply-To: <200806162316.29923.bbruen@unwired.com.au> References: <003401c8cfab$693f6a20$0301a8c0@HAL9005> <200806162316.29923.bbruen@unwired.com.au> Message-ID: <200806170702.55121.bbruen@unwired.com.au> It was the wrong link - sorry. Essentially (now I've lost the right one), it said "The following is copied from todays Sydney Morning Herald supplement, The Guide - ICON Digital Living - Author Simon Tsang. XP LIVES (Again) - Windows XP has been given a stay of execution (of sorts) with Microsoft backtracking on an earlier edict to stop the older operating system being shipped with new machines after June 30. The deadline was itself an extension due to consumer demand. However, at the Computex trade show in Taipei on June 4, Microsoft announced that computer companies can continue to ship Windows XP with low-cost PC's until Jun 2010, by which time the next version Windows 7, will be available, allowing customers to skip Vista altogether." -- regards Bruce From rockysmolin at bchacc.com Mon Jun 16 16:40:43 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Mon, 16 Jun 2008 14:40:43 -0700 Subject: [AccessD] End of XP In-Reply-To: <200806170702.55121.bbruen@unwired.com.au> References: <003401c8cfab$693f6a20$0301a8c0@HAL9005><200806162316.29923.bbruen@unwired.com.au> <200806170702.55121.bbruen@unwired.com.au> Message-ID: <00f501c8cff9$a12fa640$0301a8c0@HAL9005> My son is starting college in the fall - Medill School of Journalism at Northwestern - and they sent a spec for the laptop he needs which specifically said XP - NOT VISTA!! So he gets the 'downgrade'. This is the machine, BTW - http://premier.dell.com/portal/standardconfig.aspx?c=US&l=en&s=eep&cs=RC1102 437 Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bruce Bruen Sent: Monday, June 16, 2008 2:03 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] End of XP It was the wrong link - sorry. Essentially (now I've lost the right one), it said "The following is copied from todays Sydney Morning Herald supplement, The Guide - ICON Digital Living - Author Simon Tsang. XP LIVES (Again) - Windows XP has been given a stay of execution (of sorts) with Microsoft backtracking on an earlier edict to stop the older operating system being shipped with new machines after June 30. The deadline was itself an extension due to consumer demand. However, at the Computex trade show in Taipei on June 4, Microsoft announced that computer companies can continue to ship Windows XP with low-cost PC's until Jun 2010, by which time the next version Windows 7, will be available, allowing customers to skip Vista altogether." -- regards Bruce -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 270.3.0/1505 - Release Date: 16/6/2008 07:20 From wdhindman at dejpolsystems.com Mon Jun 16 18:34:52 2008 From: wdhindman at dejpolsystems.com (William Hindman) Date: Mon, 16 Jun 2008 19:34:52 -0400 Subject: [AccessD] Feedback Needed - Round 2 References: <005b01c8cfb7$34b76c60$0301a8c0@HAL9005> <000601c8cfba$b0accb00$12066100$@com> Message-ID: <67AAC550FF3A44CBADD525A2AF761C92@jislaptopdev> ...for starters, the header is way too big imnsho ...ditch the cityscape, pretty pic but its not you ...or if you must have it, background it with the Beach Access logo and name on top of it ...get your header and menu down to no more than 150px ...less if you can ...then focus on the pitch in the rest of the page ...if you manage the space properly, you can get the entire page in under 600px height which on most browsers and monitors will give you no scroll. William -------------------------------------------------- From: "Robert" Sent: Monday, June 16, 2008 10:10 AM To: "'Access Developers discussion and problem solving'" Subject: Re: [AccessD] Feedback Needed - Round 2 > Rocky, > Looks good, my only complaint is that gray background messes with my eyes > when scrolling.. It maybe just my monitor though... > > > WBR > ~Robert > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at > Beach Access Software > Sent: Monday, June 16, 2008 9:45 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Feedback Needed - Round 2 > > Dear List: > > First of all thanks to everyone who responded the first time with input on > the Beach Access Software web site redesign. > > Karen has taken all of your input and reworked the site. So now we're > ready > to impose on you all again for your feedback. > > The site is temporarily stored at > http://www.bchacc.com/beachtemp/index.html > > Any and all comments will be greatly appreciated. > > MTIA, > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > www.e-z-mrp.com > > www.bchacc.com > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Mon Jun 16 18:57:21 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Mon, 16 Jun 2008 16:57:21 -0700 Subject: [AccessD] Feedback Needed - Round 2 In-Reply-To: <67AAC550FF3A44CBADD525A2AF761C92@jislaptopdev> References: <005b01c8cfb7$34b76c60$0301a8c0@HAL9005><000601c8cfba$b0accb00$12066100$@com> <67AAC550FF3A44CBADD525A2AF761C92@jislaptopdev> Message-ID: <013f01c8d00c$b77da970$0301a8c0@HAL9005> Thanx. Will forward. Rocky Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Monday, June 16, 2008 4:35 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Feedback Needed - Round 2 ...for starters, the header is way too big imnsho ...ditch the cityscape, pretty pic but its not you ...or if you must have it, background it with the Beach Access logo and name on top of it ...get your header and menu down to no more than 150px ...less if you can ...then focus on the pitch in the rest of the page ...if you manage the space properly, you can get the entire page in under 600px height which on most browsers and monitors will give you no scroll. William -------------------------------------------------- From: "Robert" Sent: Monday, June 16, 2008 10:10 AM To: "'Access Developers discussion and problem solving'" Subject: Re: [AccessD] Feedback Needed - Round 2 > Rocky, > Looks good, my only complaint is that gray background messes with my > eyes when scrolling.. It maybe just my monitor though... > > > WBR > ~Robert > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > Smolin at Beach Access Software > Sent: Monday, June 16, 2008 9:45 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Feedback Needed - Round 2 > > Dear List: > > First of all thanks to everyone who responded the first time with > input on the Beach Access Software web site redesign. > > Karen has taken all of your input and reworked the site. So now we're > ready to impose on you all again for your feedback. > > The site is temporarily stored at > http://www.bchacc.com/beachtemp/index.html > > Any and all comments will be greatly appreciated. > > MTIA, > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > www.e-z-mrp.com > > www.bchacc.com > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 270.3.0/1505 - Release Date: 16/6/2008 07:20 From stuart at lexacorp.com.pg Mon Jun 16 19:03:16 2008 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Tue, 17 Jun 2008 10:03:16 +1000 Subject: [AccessD] Feedback Needed - Round 2 In-Reply-To: <67AAC550FF3A44CBADD525A2AF761C92@jislaptopdev> References: <005b01c8cfb7$34b76c60$0301a8c0@HAL9005>, <67AAC550FF3A44CBADD525A2AF761C92@jislaptopdev> Message-ID: <48578BE4.30986.37445E5C@stuart.lexacorp.com.pg> On the Gallery page: "Microsoft Office is known as a Rapid Application Development (RAD) product - meaning that custom applications can be quickly developed, debugged, and deployed." should that be "Microsoft Access...." ? > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at > > Beach Access Software > > Sent: Monday, June 16, 2008 9:45 AM > > To: 'Access Developers discussion and problem solving' > > Subject: [AccessD] Feedback Needed - Round 2 > > > > Dear List: > > > > First of all thanks to everyone who responded the first time with input on > > the Beach Access Software web site redesign. > > > > Karen has taken all of your input and reworked the site. So now we're > > ready > > to impose on you all again for your feedback. > > > > The site is temporarily stored at > > http://www.bchacc.com/beachtemp/index.html > > > > Any and all comments will be greatly appreciated. From ssharkins at gmail.com Mon Jun 16 19:23:53 2008 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 16 Jun 2008 20:23:53 -0400 Subject: [AccessD] Feedback Needed - Round 2 References: <005b01c8cfb7$34b76c60$0301a8c0@HAL9005><000601c8cfba$b0accb00$12066100$@com> <67AAC550FF3A44CBADD525A2AF761C92@jislaptopdev> Message-ID: <026a01c8d010$f08aedf0$2f8601c7@SusanOne> if you manage the space properly, you can get the entire page > in under 600px height which on most browsers and monitors will give you no > scroll. ========which you already know is a major beef of mine :) Notorious Apress Author From rockysmolin at bchacc.com Mon Jun 16 19:31:32 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Mon, 16 Jun 2008 17:31:32 -0700 Subject: [AccessD] Feedback Needed - Round 2 In-Reply-To: <48578BE4.30986.37445E5C@stuart.lexacorp.com.pg> References: <005b01c8cfb7$34b76c60$0301a8c0@HAL9005>, <67AAC550FF3A44CBADD525A2AF761C92@jislaptopdev> <48578BE4.30986.37445E5C@stuart.lexacorp.com.pg> Message-ID: <014801c8d011$7de85a20$0301a8c0@HAL9005> By gum, I think you're right! KAREN!! Stop the Presses! Thanks. Rocky Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Stuart McLachlan Sent: Monday, June 16, 2008 5:03 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Feedback Needed - Round 2 On the Gallery page: "Microsoft Office is known as a Rapid Application Development (RAD) product - meaning that custom applications can be quickly developed, debugged, and deployed." should that be "Microsoft Access...." ? > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > > Smolin at Beach Access Software > > Sent: Monday, June 16, 2008 9:45 AM > > To: 'Access Developers discussion and problem solving' > > Subject: [AccessD] Feedback Needed - Round 2 > > > > Dear List: > > > > First of all thanks to everyone who responded the first time with > > input on the Beach Access Software web site redesign. > > > > Karen has taken all of your input and reworked the site. So now > > we're ready to impose on you all again for your feedback. > > > > The site is temporarily stored at > > http://www.bchacc.com/beachtemp/index.html > > > > Any and all comments will be greatly appreciated. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 270.3.0/1505 - Release Date: 16/6/2008 07:20 From wdhindman at dejpolsystems.com Mon Jun 16 19:38:46 2008 From: wdhindman at dejpolsystems.com (William Hindman) Date: Mon, 16 Jun 2008 20:38:46 -0400 Subject: [AccessD] Feedback Needed - Round 2 References: <005b01c8cfb7$34b76c60$0301a8c0@HAL9005><000601c8cfba$b0accb00$12066100$@com><67AAC550FF3A44CBADD525A2AF761C92@jislaptopdev> <013f01c8d00c$b77da970$0301a8c0@HAL9005> Message-ID: ...you might consider putting one of those video interviews you've done in a box on the web site front page as a click to view ...gives instant credibility plus its can be a visual and technical sell for the page itself ...also clearly differentiates you from thousands of individual developer web sites ...you do the interviews well and that alone can make a potential client willing to give you a call. William "The truth is incontrovertible, malice may attack it, ignorance may deride it, but in the end; there it is." -------------------------------------------------- From: "Rocky Smolin at Beach Access Software" Sent: Monday, June 16, 2008 7:57 PM To: "'Access Developers discussion and problem solving'" Subject: Re: [AccessD] Feedback Needed - Round 2 > Thanx. Will forward. > > Rocky > > > > Rocky Smolin > Beach Access Software > 858-259-4334 > www.e-z-mrp.com > www.bchacc.com > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman > Sent: Monday, June 16, 2008 4:35 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Feedback Needed - Round 2 > > ...for starters, the header is way too big imnsho ...ditch the cityscape, > pretty pic but its not you ...or if you must have it, background it with > the > Beach Access logo and name on top of it ...get your header and menu down > to > no more than 150px ...less if you can ...then focus on the pitch in the > rest > of the page ...if you manage the space properly, you can get the entire > page > in under 600px height which on most browsers and monitors will give you no > scroll. > > William > > -------------------------------------------------- > From: "Robert" > Sent: Monday, June 16, 2008 10:10 AM > To: "'Access Developers discussion and problem solving'" > > Subject: Re: [AccessD] Feedback Needed - Round 2 > >> Rocky, >> Looks good, my only complaint is that gray background messes with my >> eyes when scrolling.. It maybe just my monitor though... >> >> >> WBR >> ~Robert >> >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky >> Smolin at Beach Access Software >> Sent: Monday, June 16, 2008 9:45 AM >> To: 'Access Developers discussion and problem solving' >> Subject: [AccessD] Feedback Needed - Round 2 >> >> Dear List: >> >> First of all thanks to everyone who responded the first time with >> input on the Beach Access Software web site redesign. >> >> Karen has taken all of your input and reworked the site. So now we're >> ready to impose on you all again for your feedback. >> >> The site is temporarily stored at >> http://www.bchacc.com/beachtemp/index.html >> >> Any and all comments will be greatly appreciated. >> >> MTIA, >> >> Rocky Smolin >> >> Beach Access Software >> >> 858-259-4334 >> >> www.e-z-mrp.com >> >> www.bchacc.com >> >> >> >> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > No virus found in this incoming message. > Checked by AVG. > Version: 8.0.100 / Virus Database: 270.3.0/1505 - Release Date: 16/6/2008 > 07:20 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From Darryl.Collins at coles.com.au Mon Jun 16 19:50:25 2008 From: Darryl.Collins at coles.com.au (Darryl Collins) Date: Tue, 17 Jun 2008 10:50:25 +1000 Subject: [AccessD] Hide datasheet view of table when appending Message-ID: <49DFE57FB126044B8A8B934E7AEA09ED09FD7530@WPEXCH05.colesmyer.ad.cmltd.net.au> Many thanks Gustav and Drew This is much clearer now and I understand how it is working. I might also add it is somewhat timely as well. I will be needing to use just this sort of method in the next week or so and was wondering how it could be done best. Great stuff!! :) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Drew Wutka Sent: Tuesday, 17 June 2008 12:52 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Hide datasheet view of table when appending >>>Answers in-line -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Monday, June 16, 2008 12:19 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Hide datasheet view of table when appending Drew, Could I please bug you for some advice with this? >>>Of course, and it's not bugging me... ;) I have tested your code with a range of data in a workbook that starts at Range A1 (with headers) and it worked great. For most of the code I can what is happening but I am not sure how it can be tweaked in a couple of places. ' This line seems to get the names of all the sheets in the workbook. Set rs = XLcnn.OpenSchema(adSchemaTables) >>>Yes, you can use this in ADO to get the list of all the tables in a database. I use this method because most processes where I am reading data from Excel, I don't necessarily know what the sheet name is. 'This line goes to the first sheet in the workbook (or more accurately the schematables I would think) rs.MoveFirst >>>Actually, to be more accurate the OpenSchema(adSchemaTables) returned a recordset with the following fields: TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE >>>so rs.movefirst is just going to the first record (which, when dealing with an excel spreadsheet, would be the record representing the info for the first sheet) ' This line seems to define the data set to be used - not sure if "TABLE_NAME" can be anything or not? Actually not sure how this works at all. strSheetName = rs.Fields("TABLE_NAME").Value >>>As I just mentioned, "TABLE_NAME" is a field in the adSchemaTables Schema. All this line is doing is storing the name of the sheet I want to open. ' No need to explain - however what if the sheet you want is not the first sheet or you know exactly which sheet you do want? rs.MoveFirst >>>Then you can completely skip the adschema stuff, and just open the sheet or range (sheets end with $, where ranges do not) I was also wondering if it was possible to use Excel's Named ranges instead of sheets. All of the dataset I use are in named ranges that automatically adjust shape as needed. Ideally I would like something like: Sheets("MyExcelSheet").Range("MyNamedRange") = rs.Fields("TABLE_NAME").Value >>>Yes, you can just open the range without using the schema, the same 'sample code' I posted with opening a known range would be like this: Function ImportExcelData() Dim XLcnn As ADODB.Connection Dim XLrs As ADODB.Recordset Dim rs As ADODB.Recordset Dim strSheetName As String Dim i As Long Set XLcnn = New ADODB.Connection XLcnn.Provider = "Microsoft.Jet.OLEDB.4.0" XLcnn.Properties("Extended Properties") = "Excel 8.0;HDR=No" XLcnn.Open "E:\tblRequests.xls" Set rs = New ADODB.Recordset rs.Open "tblRequests", CurrentProject.Connection, adOpenKeyset, adLockOptimistic, adCmdTableDirect Set XLrs = New ADODB.Recordset XLrs.Open "NameOfYourDataRange", XLcnn, adOpenKeyset, adLockReadOnly, adCmdTableDirect If XLrs.EOF = False Then XLrs.MoveFirst Do Until XLrs.EOF = True rs.AddNew For i = 0 To XLrs.Fields.Count - 1 If Not IsNull(XLrs.Fields(i).Value) Then rs.Fields(XLrs.Fields(i).Name).Value = XLrs.Fields(i) End If Next i rs.Update XLrs.MoveNext Loop rs.Close Set rs = Nothing XLrs.Close Set XLrs = Nothing XLcnn.Close Set XLcnn = Nothing MsgBox "Done" End Function >>>Where you would need to replace "NameOfYourDataRange" with the name of the range you want to use (and also the E:\tblRequests.xls with the name of the .xls file you want to use). That would be very cool indeed. - heh, actually I might try and play with that and let you know what happens. cheers Darryl. -----Original Message----- From: Darryl Collins Sent: Monday, 16 June 2008 10:45 AM To: 'Access Developers discussion and problem solving' Subject: RE: [AccessD] Hide datasheet view of table when appending Drew, Thanks heaps for this info, I will definately have a play with this technique later this week. Great Stuff. Cheers Darryl The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. From DWUTKA at Marlow.com Mon Jun 16 21:44:01 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Mon, 16 Jun 2008 21:44:01 -0500 Subject: [AccessD] Hide datasheet view of table when appending In-Reply-To: <49DFE57FB126044B8A8B934E7AEA09ED09FD7530@WPEXCH05.colesmyer.ad.cmltd.net.au> Message-ID: You're quite welcome. Have fun with it. Keep in mind, that you can do all the typical query stuff with the ADO 'excel' connection. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Monday, June 16, 2008 7:50 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Hide datasheet view of table when appending Many thanks Gustav and Drew This is much clearer now and I understand how it is working. I might also add it is somewhat timely as well. I will be needing to use just this sort of method in the next week or so and was wondering how it could be done best. Great stuff!! :) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Drew Wutka Sent: Tuesday, 17 June 2008 12:52 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Hide datasheet view of table when appending >>>Answers in-line The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From Darryl.Collins at coles.com.au Mon Jun 16 21:47:16 2008 From: Darryl.Collins at coles.com.au (Darryl Collins) Date: Tue, 17 Jun 2008 12:47:16 +1000 Subject: [AccessD] Feedback Needed - Round 2 Message-ID: <49DFE57FB126044B8A8B934E7AEA09ED0B27028A@WPEXCH05.colesmyer.ad.cmltd.net.au> Hey Rocky, I agree with others re: Home page header size. More than half my screen is logo, graphic and intro (I am using 1024 x 760) - needs to be a lot smaller - If you must have the graphic maybe put your logo on top of it or similar? Actually I found all the fonts way too big for me, but maybe that is just a personal thing? My first thought was "web site for the visually impaired"! I love the gallery drop downs for the clients - that is really tidy, clean and effective. I dont have any problems with the grey background using IE6 at any rate. Looking much better - nice work Karen. Cheers Darryl -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, 16 June 2008 11:45 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Feedback Needed - Round 2 Dear List: First of all thanks to everyone who responded the first time with input on the Beach Access Software web site redesign. Karen has taken all of your input and reworked the site. So now we're ready to impose on you all again for your feedback. The site is temporarily stored at http://www.bchacc.com/beachtemp/index.html Any and all comments will be greatly appreciated. MTIA, Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. From rbgajewski at adelphia.net Mon Jun 16 22:52:15 2008 From: rbgajewski at adelphia.net (Bob Gajewski) Date: Mon, 16 Jun 2008 23:52:15 -0400 Subject: [AccessD] Feedback Needed - Round 2 In-Reply-To: <005b01c8cfb7$34b76c60$0301a8c0@HAL9005> References: <005b01c8cfb7$34b76c60$0301a8c0@HAL9005> Message-ID: Rocky Much better, but I still don't like the 'feel'. - People know how to find a "Contact Us" page - the box takes up way too much real estate - on every page. - Having bold formatting on the menu mouseover is very annoying - because the text expands, the words bounce left and right. - On your "About Us" page, you should consider wrapping your program titles (such as "The Sleep Advisor (R)" ) in 'no-break' tags () - it doesn't flow well to have it broken across 2 lines. - On your "Projects" page, you should have all links to other websites open in a new tab/window ("target='_blank'"). This keeps your site active in the viewer's browser. Otherwise, your visitor has navigated away from your site with no easy way back. - .projects and .products are far too similar - can you think of another name for one of them? - Is "E-Z-MRP" not available in English? That's what your website states ... "and is currently available in Chinese, Spanish, and French.". - There are many grammatical errors throughout the site, especially with the placement - or lack thereof - of commas. - Between all of the wasted spaces vertically and the fixed table width horizontally, the pages are abnormally skewed to very narrow and tall - thus, the scrolling required on every page. Generally, you should not used fixed widths unless absolutely necessary - the page should be allowed to fill the visitor's window/screen. Best regards, Bob Gajewski PS - I'm still disappointed that you have direct email links in your source code :( -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, June 16, 2008 09:45 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Feedback Needed - Round 2 Dear List: First of all thanks to everyone who responded the first time with input on the Beach Access Software web site redesign. Karen has taken all of your input and reworked the site. So now we're ready to impose on you all again for your feedback. The site is temporarily stored at http://www.bchacc.com/beachtemp/index.html Any and all comments will be greatly appreciated. MTIA, Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ebarro at verizon.net Mon Jun 16 23:12:55 2008 From: ebarro at verizon.net (Eric Barro) Date: Mon, 16 Jun 2008 21:12:55 -0700 Subject: [AccessD] Feedback Needed - Round 2 In-Reply-To: References: <005b01c8cfb7$34b76c60$0301a8c0@HAL9005> Message-ID: <005a01c8d030$6bc35470$800101df@advancedinput.com> Rocky, It is a definite improvement over the initial release. Here's my two cents... 1. Get your web designer to be consistent with the font sizes. Some are larger than normal and some are normal size. About Us and Home have inconsistent font sizes. 2. For the boxes, I recommend using some neutral color (be consistent with the colors as well sincec you don't want it to be too colorful and distracting) to delineate them from the white background. 3. The blank grey spot on the main menu is out of place. 4. The navigational elements (main menu) should also be available at the bottom of the page so that the user doesn't have to scroll up to change to another section. They don't have to be the same font size, in fact a smaller than normal font will do. Narrow and tall isn't necessarily bad. Yes it would be nice to not have to scroll up or down or left and right but there's no telling what resolution the user will be looking at the page. Bottom line is...you can't please everybody. You can use tabs for your pages like the gallery page so that a user doesn't have to scroll down...they just have to tab over. Here's an easy to deploy tabbed interface that I use. http://www.barelyfitz.com/projects/tabber/ It's free and it's quite easy to modify and use on your projects. Eric -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Gajewski Sent: Monday, June 16, 2008 8:52 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feedback Needed - Round 2 Rocky Much better, but I still don't like the 'feel'. - People know how to find a "Contact Us" page - the box takes up way too much real estate - on every page. - Having bold formatting on the menu mouseover is very annoying - because the text expands, the words bounce left and right. - On your "About Us" page, you should consider wrapping your program titles (such as "The Sleep Advisor (R)" ) in 'no-break' tags () - it doesn't flow well to have it broken across 2 lines. - On your "Projects" page, you should have all links to other websites open in a new tab/window ("target='_blank'"). This keeps your site active in the viewer's browser. Otherwise, your visitor has navigated away from your site with no easy way back. - .projects and .products are far too similar - can you think of another name for one of them? - Is "E-Z-MRP" not available in English? That's what your website states ... "and is currently available in Chinese, Spanish, and French.". - There are many grammatical errors throughout the site, especially with the placement - or lack thereof - of commas. - Between all of the wasted spaces vertically and the fixed table width horizontally, the pages are abnormally skewed to very narrow and tall - thus, the scrolling required on every page. Generally, you should not used fixed widths unless absolutely necessary - the page should be allowed to fill the visitor's window/screen. Best regards, Bob Gajewski PS - I'm still disappointed that you have direct email links in your source code :( -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, June 16, 2008 09:45 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Feedback Needed - Round 2 Dear List: First of all thanks to everyone who responded the first time with input on the Beach Access Software web site redesign. Karen has taken all of your input and reworked the site. So now we're ready to impose on you all again for your feedback. The site is temporarily stored at http://www.bchacc.com/beachtemp/index.html Any and all comments will be greatly appreciated. MTIA, Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Tue Jun 17 00:50:40 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Mon, 16 Jun 2008 22:50:40 -0700 Subject: [AccessD] Feedback Needed - Round 2 In-Reply-To: <49DFE57FB126044B8A8B934E7AEA09ED0B27028A@WPEXCH05.colesmyer.ad.cmltd.net.au> References: <49DFE57FB126044B8A8B934E7AEA09ED0B27028A@WPEXCH05.colesmyer.ad.cmltd.net.au> Message-ID: <016401c8d03e$12e73070$0301a8c0@HAL9005> Thanks. Stay tuned for round 3! Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Monday, June 16, 2008 7:47 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Feedback Needed - Round 2 Hey Rocky, I agree with others re: Home page header size. More than half my screen is logo, graphic and intro (I am using 1024 x 760) - needs to be a lot smaller - If you must have the graphic maybe put your logo on top of it or similar? Actually I found all the fonts way too big for me, but maybe that is just a personal thing? My first thought was "web site for the visually impaired"! I love the gallery drop downs for the clients - that is really tidy, clean and effective. I dont have any problems with the grey background using IE6 at any rate. Looking much better - nice work Karen. Cheers Darryl -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, 16 June 2008 11:45 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Feedback Needed - Round 2 Dear List: First of all thanks to everyone who responded the first time with input on the Beach Access Software web site redesign. Karen has taken all of your input and reworked the site. So now we're ready to impose on you all again for your feedback. The site is temporarily stored at http://www.bchacc.com/beachtemp/index.html Any and all comments will be greatly appreciated. MTIA, Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 270.3.0/1505 - Release Date: 16/6/2008 07:20 From rockysmolin at bchacc.com Tue Jun 17 00:58:22 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Mon, 16 Jun 2008 22:58:22 -0700 Subject: [AccessD] Feedback Needed - Round 2 In-Reply-To: References: <005b01c8cfb7$34b76c60$0301a8c0@HAL9005> Message-ID: <016b01c8d03f$267b21e0$0301a8c0@HAL9005> Bob: Thanks again for those points. Round 3 should be coming up in a week or so. Regards, Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Gajewski Sent: Monday, June 16, 2008 8:52 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feedback Needed - Round 2 Rocky Much better, but I still don't like the 'feel'. - People know how to find a "Contact Us" page - the box takes up way too much real estate - on every page. - Having bold formatting on the menu mouseover is very annoying - because the text expands, the words bounce left and right. - On your "About Us" page, you should consider wrapping your program titles (such as "The Sleep Advisor (R)" ) in 'no-break' tags () - it doesn't flow well to have it broken across 2 lines. - On your "Projects" page, you should have all links to other websites open in a new tab/window ("target='_blank'"). This keeps your site active in the viewer's browser. Otherwise, your visitor has navigated away from your site with no easy way back. - .projects and .products are far too similar - can you think of another name for one of them? - Is "E-Z-MRP" not available in English? That's what your website states ... "and is currently available in Chinese, Spanish, and French.". - There are many grammatical errors throughout the site, especially with the placement - or lack thereof - of commas. - Between all of the wasted spaces vertically and the fixed table width horizontally, the pages are abnormally skewed to very narrow and tall - thus, the scrolling required on every page. Generally, you should not used fixed widths unless absolutely necessary - the page should be allowed to fill the visitor's window/screen. Best regards, Bob Gajewski PS - I'm still disappointed that you have direct email links in your source code :( -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, June 16, 2008 09:45 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Feedback Needed - Round 2 Dear List: First of all thanks to everyone who responded the first time with input on the Beach Access Software web site redesign. Karen has taken all of your input and reworked the site. So now we're ready to impose on you all again for your feedback. The site is temporarily stored at http://www.bchacc.com/beachtemp/index.html Any and all comments will be greatly appreciated. MTIA, Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 270.3.0/1505 - Release Date: 16/6/2008 07:20 From rockysmolin at bchacc.com Tue Jun 17 01:01:54 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Mon, 16 Jun 2008 23:01:54 -0700 Subject: [AccessD] Feedback Needed - Round 2 In-Reply-To: <005a01c8d030$6bc35470$800101df@advancedinput.com> References: <005b01c8cfb7$34b76c60$0301a8c0@HAL9005> <005a01c8d030$6bc35470$800101df@advancedinput.com> Message-ID: <017301c8d03f$a4ed47b0$0301a8c0@HAL9005> Thanks. Stay tuned for Version 3.0. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Eric Barro Sent: Monday, June 16, 2008 9:13 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feedback Needed - Round 2 Rocky, It is a definite improvement over the initial release. Here's my two cents... 1. Get your web designer to be consistent with the font sizes. Some are larger than normal and some are normal size. About Us and Home have inconsistent font sizes. 2. For the boxes, I recommend using some neutral color (be consistent with the colors as well sincec you don't want it to be too colorful and distracting) to delineate them from the white background. 3. The blank grey spot on the main menu is out of place. 4. The navigational elements (main menu) should also be available at the bottom of the page so that the user doesn't have to scroll up to change to another section. They don't have to be the same font size, in fact a smaller than normal font will do. Narrow and tall isn't necessarily bad. Yes it would be nice to not have to scroll up or down or left and right but there's no telling what resolution the user will be looking at the page. Bottom line is...you can't please everybody. You can use tabs for your pages like the gallery page so that a user doesn't have to scroll down...they just have to tab over. Here's an easy to deploy tabbed interface that I use. http://www.barelyfitz.com/projects/tabber/ It's free and it's quite easy to modify and use on your projects. Eric -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Bob Gajewski Sent: Monday, June 16, 2008 8:52 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feedback Needed - Round 2 Rocky Much better, but I still don't like the 'feel'. - People know how to find a "Contact Us" page - the box takes up way too much real estate - on every page. - Having bold formatting on the menu mouseover is very annoying - because the text expands, the words bounce left and right. - On your "About Us" page, you should consider wrapping your program titles (such as "The Sleep Advisor (R)" ) in 'no-break' tags () - it doesn't flow well to have it broken across 2 lines. - On your "Projects" page, you should have all links to other websites open in a new tab/window ("target='_blank'"). This keeps your site active in the viewer's browser. Otherwise, your visitor has navigated away from your site with no easy way back. - .projects and .products are far too similar - can you think of another name for one of them? - Is "E-Z-MRP" not available in English? That's what your website states ... "and is currently available in Chinese, Spanish, and French.". - There are many grammatical errors throughout the site, especially with the placement - or lack thereof - of commas. - Between all of the wasted spaces vertically and the fixed table width horizontally, the pages are abnormally skewed to very narrow and tall - thus, the scrolling required on every page. Generally, you should not used fixed widths unless absolutely necessary - the page should be allowed to fill the visitor's window/screen. Best regards, Bob Gajewski PS - I'm still disappointed that you have direct email links in your source code :( -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, June 16, 2008 09:45 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Feedback Needed - Round 2 Dear List: First of all thanks to everyone who responded the first time with input on the Beach Access Software web site redesign. Karen has taken all of your input and reworked the site. So now we're ready to impose on you all again for your feedback. The site is temporarily stored at http://www.bchacc.com/beachtemp/index.html Any and all comments will be greatly appreciated. MTIA, Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 270.3.0/1505 - Release Date: 16/6/2008 07:20 From accessd at shaw.ca Tue Jun 17 02:25:17 2008 From: accessd at shaw.ca (Jim Lawrence) Date: Tue, 17 Jun 2008 00:25:17 -0700 Subject: [AccessD] Feedback Needed - Round 2 In-Reply-To: <005a01c8d030$6bc35470$800101df@advancedinput.com> References: <005b01c8cfb7$34b76c60$0301a8c0@HAL9005> <005a01c8d030$6bc35470$800101df@advancedinput.com> Message-ID: <973A11AFFD03495CB45B7F21F16035A2@creativesystemdesigns.com> Hi Rocky: A few more things to resolve. Note: The navigation bar at the top of the page moves the whole line when selecting... a no no. Freeze the text movement using CSS. Note: 'Karen Rosenstiel' (email address) rolls over to white. A little more CSS script needed. Note: All the text looks too big. Even on a 1280 x 1024 screen the text is too big. Check out the differences between FF and IE. (I can not imagine what the size on a smaller screen would look... especially on IE.) Maybe the standard font-size text should be 1.0em to 0.8em Note: More of a suggestion; leave the large header font the same size or larger, but drop the weight, add spacing and change the font colour intensity. Note: Spacing around the boxes, on the right side particularly and on the left on left margin should be...maybe 10px instead of 5px. No point in crowding the text and it would balance the page text a bit better. Note: The box should have a font closer to the size of the standard font, with spacing slightly diminished. Try shading the text boxes with a very subtle tint/shade of grey or related colour. Note: The large BLUE header bar on the top appears out of place. Suggest refine the shading, change the bar colour to match something else on the page (or change/add something on the page to match.) The height of this bar is probably too much. I very much like your use of the 'Accordion Panel' on the Project page (lots of CSS and JS). But ...IMHO... Note: The selection bars' colours are too dark (background-color: #333333; !!) and should be dialed back a few notches. That large dark block is just a little over-whelming. This will take a bit of work but well worth it. Great work so far. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, June 16, 2008 09:45 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Feedback Needed - Round 2 Dear List: First of all thanks to everyone who responded the first time with input on the Beach Access Software web site redesign. Karen has taken all of your input and reworked the site. So now we're ready to impose on you all again for your feedback. The site is temporarily stored at http://www.bchacc.com/beachtemp/index.html Any and all comments will be greatly appreciated. MTIA, Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com From rockysmolin at bchacc.com Tue Jun 17 08:46:22 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Tue, 17 Jun 2008 06:46:22 -0700 Subject: [AccessD] Feedback Needed - Round 2 In-Reply-To: <973A11AFFD03495CB45B7F21F16035A2@creativesystemdesigns.com> References: <005b01c8cfb7$34b76c60$0301a8c0@HAL9005><005a01c8d030$6bc35470$800101df@advancedinput.com> <973A11AFFD03495CB45B7F21F16035A2@creativesystemdesigns.com> Message-ID: <01a301c8d080$87bc3930$0301a8c0@HAL9005> Thanks again, Jim. Useful stuff. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Lawrence Sent: Tuesday, June 17, 2008 12:25 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feedback Needed - Round 2 Hi Rocky: A few more things to resolve. Note: The navigation bar at the top of the page moves the whole line when selecting... a no no. Freeze the text movement using CSS. Note: 'Karen Rosenstiel' (email address) rolls over to white. A little more CSS script needed. Note: All the text looks too big. Even on a 1280 x 1024 screen the text is too big. Check out the differences between FF and IE. (I can not imagine what the size on a smaller screen would look... especially on IE.) Maybe the standard font-size text should be 1.0em to 0.8em Note: More of a suggestion; leave the large header font the same size or larger, but drop the weight, add spacing and change the font colour intensity. Note: Spacing around the boxes, on the right side particularly and on the left on left margin should be...maybe 10px instead of 5px. No point in crowding the text and it would balance the page text a bit better. Note: The box should have a font closer to the size of the standard font, with spacing slightly diminished. Try shading the text boxes with a very subtle tint/shade of grey or related colour. Note: The large BLUE header bar on the top appears out of place. Suggest refine the shading, change the bar colour to match something else on the page (or change/add something on the page to match.) The height of this bar is probably too much. I very much like your use of the 'Accordion Panel' on the Project page (lots of CSS and JS). But ...IMHO... Note: The selection bars' colours are too dark (background-color: #333333; !!) and should be dialed back a few notches. That large dark block is just a little over-whelming. This will take a bit of work but well worth it. Great work so far. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, June 16, 2008 09:45 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Feedback Needed - Round 2 Dear List: First of all thanks to everyone who responded the first time with input on the Beach Access Software web site redesign. Karen has taken all of your input and reworked the site. So now we're ready to impose on you all again for your feedback. The site is temporarily stored at http://www.bchacc.com/beachtemp/index.html Any and all comments will be greatly appreciated. MTIA, Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 270.3.0/1505 - Release Date: 16/6/2008 07:20 From dwaters at usinternet.com Tue Jun 17 10:42:11 2008 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 17 Jun 2008 10:42:11 -0500 Subject: [AccessD] Access 2000 and Access 2003 Runtime on a single PC Message-ID: Hello! I'm just starting with a new customer. They have a mix of Access 2000, 2002, and 2003 versions on the client PC's. I can deal with 2002/2003, but would rather not do reprogramming for 2000. I can create a runtime version of Access 2003, but will that coexist peacefully on a PC that has a full version of Access 2000? Thanks! Dan From markamatte at hotmail.com Wed Jun 18 08:30:18 2008 From: markamatte at hotmail.com (Mark A Matte) Date: Wed, 18 Jun 2008 13:30:18 +0000 Subject: [AccessD] OT: Test? In-Reply-To: References: Message-ID: Are we down...or just out of Access questions? _________________________________________________________________ The other season of giving begins 6/24/08. Check out the i?m Talkathon. http://www.imtalkathon.com?source=TXT_EML_WLH_SeasonOfGiving From Chris.Foote at uk.thalesgroup.com Wed Jun 18 08:48:12 2008 From: Chris.Foote at uk.thalesgroup.com (Foote, Chris) Date: Wed, 18 Jun 2008 14:48:12 +0100 Subject: [AccessD] OT: Test? Message-ID: <7303A459C921B5499AF732CCEEAD2B7F064D1584@craws161660.int.rdel.co.uk> I think we've resolved all the problems anyone's ever had ever ;-) Chris F > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte > Sent: Wednesday, June 18, 2008 2:30 PM > To: Access Developers discussion and problem solving > Subject: [AccessD] OT: Test? > > > > Are we down...or just out of Access questions? > _________________________________________________________________ > The other season of giving begins 6/24/08. Check out the i?m > Talkathon. > http://www.imtalkathon.com?source=TXT_EML_WLH_SeasonOfGiving > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rockysmolin at bchacc.com Wed Jun 18 08:54:36 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Wed, 18 Jun 2008 06:54:36 -0700 Subject: [AccessD] OT: Test? In-Reply-To: References: Message-ID: <029e01c8d14a$d855b5e0$0301a8c0@HAL9005> I guess all possible issues have been resolved. Great day for us! Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Wednesday, June 18, 2008 6:30 AM To: Access Developers discussion and problem solving Subject: [AccessD] OT: Test? Are we down...or just out of Access questions? _________________________________________________________________ The other season of giving begins 6/24/08. Check out the i'm Talkathon. http://www.imtalkathon.com?source=TXT_EML_WLH_SeasonOfGiving -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 270.4.0/1507 - Release Date: 18/6/2008 07:09 From dwaters at usinternet.com Wed Jun 18 08:56:54 2008 From: dwaters at usinternet.com (Dan Waters) Date: Wed, 18 Jun 2008 08:56:54 -0500 Subject: [AccessD] OT: Test? In-Reply-To: References: Message-ID: Hmmmm - no questions today! Although I may have some later about setting up a system with unbound forms. Wait - no I won't! ;-) Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Wednesday, June 18, 2008 8:30 AM To: Access Developers discussion and problem solving Subject: [AccessD] OT: Test? Are we down...or just out of Access questions? _________________________________________________________________ The other season of giving begins 6/24/08. Check out the i'm Talkathon. http://www.imtalkathon.com?source=TXT_EML_WLH_SeasonOfGiving -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Wed Jun 18 09:07:49 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Wed, 18 Jun 2008 09:07:49 -0500 Subject: [AccessD] OT: Test? In-Reply-To: Message-ID: Troublemaker! ;) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Wednesday, June 18, 2008 8:57 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Test? Hmmmm - no questions today! Although I may have some later about setting up a system with unbound forms. Wait - no I won't! ;-) Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Wednesday, June 18, 2008 8:30 AM To: Access Developers discussion and problem solving Subject: [AccessD] OT: Test? Are we down...or just out of Access questions? _________________________________________________________________ The other season of giving begins 6/24/08. Check out the i'm Talkathon. http://www.imtalkathon.com?source=TXT_EML_WLH_SeasonOfGiving -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From john at winhaven.net Wed Jun 18 10:35:22 2008 From: john at winhaven.net (John Bartow) Date: Wed, 18 Jun 2008 10:35:22 -0500 Subject: [AccessD] Slow day - normalization discusion In-Reply-To: <200806061512.m56FCf1J018021@databaseadvisors.com> Message-ID: <200806181535.m5IFZCGg031360@databaseadvisors.com> I recently had pull data from a contact mgt. app's database where the normalization brought up a question in my mind. The phone information was normalized as: tblPhone: fldPhoneID (PK) fldPhoneTypeID (FK) fldAreaCodeID (FK) fldPhoneNumber fldPhoneExtension tblPhoneType: fldPhoneTypeID (PK) fldPhoneType tblAreaCode: fldAreaCodeID (PK) fldAreaCode To be consistent with this level of normalization wouldn't it make sense to have the first three numbers separated from the back 4 numbers? The first three would be very repetitious also. So the table would appear as: tblPhone: fldPhoneID (PK) fldPhoneTypeID (FK) fldAreaCodeID (FK) fldPhoneNumberPrefixID (FK) fldPhoneNumber fldPhoneExtension tblPhoneType: fldPhoneTypeID (PK) fldPhoneType tblAreaCode: fldAreaCodeID (PK) fldAreaCode tblPhonePrefix: fldPhoneNumberPrefixID (PK) fldPhoneNumberPrefix From rockysmolin at bchacc.com Wed Jun 18 10:50:02 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Wed, 18 Jun 2008 08:50:02 -0700 Subject: [AccessD] Slow day - normalization discusion In-Reply-To: <200806181535.m5IFZCGg031360@databaseadvisors.com> References: <200806061512.m56FCf1J018021@databaseadvisors.com> <200806181535.m5IFZCGg031360@databaseadvisors.com> Message-ID: <02b801c8d15a$f8a93640$0301a8c0@HAL9005> It would be consistent but is it necessary. Depends somewhat on whether it will be all U.S. numbers. Given the wide variety of formats in phone numbers around the world, more and more I find that a free form text field for the phone number is easier on the users, unless you intend to do some reporting and sorting on the phone number. I'd stick with the first scheme, myself. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Wednesday, June 18, 2008 8:35 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Slow day - normalization discusion I recently had pull data from a contact mgt. app's database where the normalization brought up a question in my mind. The phone information was normalized as: tblPhone: fldPhoneID (PK) fldPhoneTypeID (FK) fldAreaCodeID (FK) fldPhoneNumber fldPhoneExtension tblPhoneType: fldPhoneTypeID (PK) fldPhoneType tblAreaCode: fldAreaCodeID (PK) fldAreaCode To be consistent with this level of normalization wouldn't it make sense to have the first three numbers separated from the back 4 numbers? The first three would be very repetitious also. So the table would appear as: tblPhone: fldPhoneID (PK) fldPhoneTypeID (FK) fldAreaCodeID (FK) fldPhoneNumberPrefixID (FK) fldPhoneNumber fldPhoneExtension tblPhoneType: fldPhoneTypeID (PK) fldPhoneType tblAreaCode: fldAreaCodeID (PK) fldAreaCode tblPhonePrefix: fldPhoneNumberPrefixID (PK) fldPhoneNumberPrefix -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 270.4.0/1507 - Release Date: 18/6/2008 07:09 From rosalyn.clarke at barclays.com Wed Jun 18 10:52:43 2008 From: rosalyn.clarke at barclays.com (rosalyn.clarke at barclays.com) Date: Wed, 18 Jun 2008 16:52:43 +0100 Subject: [AccessD] Slow day - normalization discusion In-Reply-To: <200806181535.m5IFZCGg031360@databaseadvisors.com> References: <200806061512.m56FCf1J018021@databaseadvisors.com> <200806181535.m5IFZCGg031360@databaseadvisors.com> Message-ID: Surely the degree of repetition depends on the homogeneity of the data - are the phone numbers likely to all be from the same area? Or are the entries in the database geographically widespread? If the numbers in the database are not clustered in the areas, having the same prefix codes, it won't make sense to pull the prefixes out. I don't know the exact mechanics of why, but I wouldn't separate data into another table unless the new table was going to contain significantly fewer rows than the original. You also have to account for how much this will speed up searches etc. versus the burden of performing the join slowing updates etc. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: 18 June 2008 16:35 To: 'Access Developers discussion and problem solving' Subject: [AccessD] Slow day - normalization discusion I recently had pull data from a contact mgt. app's database where the normalization brought up a question in my mind. The phone information was normalized as: tblPhone: fldPhoneID (PK) fldPhoneTypeID (FK) fldAreaCodeID (FK) fldPhoneNumber fldPhoneExtension tblPhoneType: fldPhoneTypeID (PK) fldPhoneType tblAreaCode: fldAreaCodeID (PK) fldAreaCode To be consistent with this level of normalization wouldn't it make sense to have the first three numbers separated from the back 4 numbers? The first three would be very repetitious also. So the table would appear as: tblPhone: fldPhoneID (PK) fldPhoneTypeID (FK) fldAreaCodeID (FK) fldPhoneNumberPrefixID (FK) fldPhoneNumber fldPhoneExtension tblPhoneType: fldPhoneTypeID (PK) fldPhoneType tblAreaCode: fldAreaCodeID (PK) fldAreaCode tblPhonePrefix: fldPhoneNumberPrefixID (PK) fldPhoneNumberPrefix -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments. Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. From jengross at gte.net Wed Jun 18 12:02:29 2008 From: jengross at gte.net (Jennifer Gross) Date: Wed, 18 Jun 2008 09:02:29 -0800 Subject: [AccessD] OT: solidDB to SQL Server Message-ID: <0K2O00BAN202NL1B@vms173003.mailsrvcs.net> Has anyone ever worked with solidDB? I have a client that wants to migrate a solidDB to SQL Server. At this point I don't know which version of either they are running. I am trying to get a feel for whether or not I want to tackle this project or take a pass. Any insights and experiences welcome. Thank you, Jennifer From DWUTKA at Marlow.com Wed Jun 18 11:33:54 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Wed, 18 Jun 2008 11:33:54 -0500 Subject: [AccessD] Slow day - normalization discusion In-Reply-To: <200806181535.m5IFZCGg031360@databaseadvisors.com> Message-ID: I would say that it would depend on how you are going to use the phone number. Having the area code separated only makes sense if you are actually going to query against the area code. The first 3 digits of the number itself can also be (sometimes) linked to specific areas, at least they used to be. Ie, the Area Code used to define specific areas that could include multiple cities and towns. The first three digits where then associated with a smaller area. However, I don't think that really applies anymore, especially in this age of cell phones. So if you aren't going to query against those first three digits, then I don't see any reason to separate it into another field. Another reason to split data up is for space considerations. However, in this case, you aren't really saving space by splitting the number OR the area code. Area code (three digit number): Storing this as text would be 3 bytes (actually 4, Jet prefixes the data with a length byte). Storing this as a Long Integer Key, that is going to be 4 bytes. Storing it as a number would also be 4 bytes (just wouldn't require a join to get the actual Area code). The same would apply to the 3 digit prefix, but if you look at the phone number itself, 7 digits, as text, that would require 8 bytes. But as a number, it would only require 4 bytes (again, long integer). The quirk with storing it as a number, is that you are going to be doing data conversions when trying to display it in a 'format'. Not that it's difficult to do, in fact, Access would probably do it automatically, but internally, it is going to be converting the number to a string constantly. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of John Bartow Sent: Wednesday, June 18, 2008 10:35 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Slow day - normalization discusion I recently had pull data from a contact mgt. app's database where the normalization brought up a question in my mind. The phone information was normalized as: tblPhone: fldPhoneID (PK) fldPhoneTypeID (FK) fldAreaCodeID (FK) fldPhoneNumber fldPhoneExtension tblPhoneType: fldPhoneTypeID (PK) fldPhoneType tblAreaCode: fldAreaCodeID (PK) fldAreaCode To be consistent with this level of normalization wouldn't it make sense to have the first three numbers separated from the back 4 numbers? The first three would be very repetitious also. So the table would appear as: tblPhone: fldPhoneID (PK) fldPhoneTypeID (FK) fldAreaCodeID (FK) fldPhoneNumberPrefixID (FK) fldPhoneNumber fldPhoneExtension tblPhoneType: fldPhoneTypeID (PK) fldPhoneType tblAreaCode: fldAreaCodeID (PK) fldAreaCode tblPhonePrefix: fldPhoneNumberPrefixID (PK) fldPhoneNumberPrefix -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From ssharkins at gmail.com Wed Jun 18 11:53:47 2008 From: ssharkins at gmail.com (Susan Harkins) Date: Wed, 18 Jun 2008 12:53:47 -0400 Subject: [AccessD] Slow day - normalization discusion References: <200806061512.m56FCf1J018021@databaseadvisors.com><200806181535.m5IFZCGg031360@databaseadvisors.com> Message-ID: <023801c8d163$f88851b0$2f8601c7@SusanOne> Repetition isn't the only thing to consider: 1.) Smallest unit -- we think of those 7 digits as its own value. Therefore, as a whole, the 7 digits aren't repeated, but some numbers have the same first 3 digits in common. You can find that commonality in all kinds of values. So, when you look at the digits as a whole, they aren't truly repeated values. 2.) Data entry -- consider how much work will be necessary to put those two values back together to faciliate data entry. Normalization aside, human beings aren't use to entering 3 digits and then 4 -- it will only confuse people and slow down data entry. Susan H. > If the numbers in the database are not clustered in the areas, having the > same prefix codes, it won't make sense to pull the prefixes out. I don't > know > the exact mechanics of why, but I wouldn't separate data into another > table > unless the new table was going to contain significantly fewer rows than > the > original. You also have to account for how much this will speed up > searches > etc. versus the burden of performing the join slowing updates etc. From wdhindman at dejpolsystems.com Wed Jun 18 12:34:19 2008 From: wdhindman at dejpolsystems.com (William Hindman) Date: Wed, 18 Jun 2008 13:34:19 -0400 Subject: [AccessD] Slow day - normalization discusion References: <200806181535.m5IFZCGg031360@databaseadvisors.com> Message-ID: <26F74AF39283448281CA07C40B85055F@jislaptopdev> ...I suspect what you are looking at is a design implemented in the days when area code changes were becoming common place and this design addresses that particular need and nothing else. ...I have to deal with thousands of foreign numbers which have to be formatted precisely in order to take advantage of the automated dialing in fax systems among other needs ...that requires a much more sophisticated format and validation lest the client get cops showing up at his door in response to his trying to send a fax to a 911 area code in India. ...but if the current format you have meets all your client's current and probable future needs, I'd leave it be ...breaking out the 3 digits in the 7 digit local number tells you nothing these days ...unlike the old days a 708 exchange number can be next door to a 402 and thus no longer conveys any useful data beyond the number itself. William "Sen. McCain will bring a lifetime of experience to the campaign... Sen. Obama will bring a speech that he gave." Hillary Clinton -------------------------------------------------- From: "John Bartow" Sent: Wednesday, June 18, 2008 11:35 AM To: "'Access Developers discussion and problem solving'" Subject: [AccessD] Slow day - normalization discusion > I recently had pull data from a contact mgt. app's database where the > normalization brought up a question in my mind. The phone information was > normalized as: > > tblPhone: > fldPhoneID (PK) > fldPhoneTypeID (FK) > fldAreaCodeID (FK) > fldPhoneNumber > fldPhoneExtension > > tblPhoneType: > fldPhoneTypeID (PK) > fldPhoneType > > tblAreaCode: > fldAreaCodeID (PK) > fldAreaCode > > To be consistent with this level of normalization wouldn't it make sense > to > have the first three numbers separated from the back 4 numbers? The first > three would be very repetitious also. So the table would appear as: > > tblPhone: > fldPhoneID (PK) > fldPhoneTypeID (FK) > fldAreaCodeID (FK) > fldPhoneNumberPrefixID (FK) > fldPhoneNumber > fldPhoneExtension > > tblPhoneType: > fldPhoneTypeID (PK) > fldPhoneType > > tblAreaCode: > fldAreaCodeID (PK) > fldAreaCode > > tblPhonePrefix: > fldPhoneNumberPrefixID (PK) > fldPhoneNumberPrefix > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From drboz at pacbell.net Wed Jun 18 13:47:21 2008 From: drboz at pacbell.net (Don Bozarth) Date: Wed, 18 Jun 2008 11:47:21 -0700 Subject: [AccessD] Slow day - normalization discusion References: <200806061512.m56FCf1J018021@databaseadvisors.com><200806181535.m5IFZCGg031360@databaseadvisors.com> <023801c8d163$f88851b0$2f8601c7@SusanOne> Message-ID: <015d01c8d173$bf9a8c00$6701a8c0@Don> Have to remember too, that some countries, like China, use a 3 digit prefix and a 5 number line (668-57175). Then there are those pesky country and city codes.... Don B. ----- Original Message ----- From: "Susan Harkins" To: "Access Developers discussion and problem solving" Sent: Wednesday, June 18, 2008 9:53 AM Subject: Re: [AccessD] Slow day - normalization discusion > Repetition isn't the only thing to consider: > > 1.) Smallest unit -- we think of those 7 digits as its own value. > Therefore, > as a whole, the 7 digits aren't repeated, but some numbers have the same > first 3 digits in common. You can find that commonality in all kinds of > values. So, when you look at the digits as a whole, they aren't truly > repeated values. > > 2.) Data entry -- consider how much work will be necessary to put those > two > values back together to faciliate data entry. Normalization aside, human > beings aren't use to entering 3 digits and then 4 -- it will only confuse > people and slow down data entry. > > Susan H. > > > >> If the numbers in the database are not clustered in the areas, having the >> same prefix codes, it won't make sense to pull the prefixes out. I don't >> know >> the exact mechanics of why, but I wouldn't separate data into another >> table >> unless the new table was going to contain significantly fewer rows than >> the >> original. You also have to account for how much this will speed up >> searches >> etc. versus the burden of performing the join slowing updates etc. > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From wdhindman at dejpolsystems.com Wed Jun 18 15:32:49 2008 From: wdhindman at dejpolsystems.com (William Hindman) Date: Wed, 18 Jun 2008 16:32:49 -0400 Subject: [AccessD] OT: Test? References: <7303A459C921B5499AF732CCEEAD2B7F064D1584@craws161660.int.rdel.co.uk> Message-ID: <3BDA23BA82734376A5237A8B2F4B1535@jislaptopdev> ...except for the grammar of course :) William -------------------------------------------------- From: "Foote, Chris" Sent: Wednesday, June 18, 2008 9:48 AM To: "'Access Developers discussion and problem solving'" Subject: Re: [AccessD] OT: Test? > > I think we've resolved all the problems anyone's ever had ever ;-) > > Chris F > > >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte >> Sent: Wednesday, June 18, 2008 2:30 PM >> To: Access Developers discussion and problem solving >> Subject: [AccessD] OT: Test? >> >> >> >> Are we down...or just out of Access questions? >> _________________________________________________________________ >> The other season of giving begins 6/24/08. Check out the i?m >> Talkathon. >> http://www.imtalkathon.com?source=TXT_EML_WLH_SeasonOfGiving >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> 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 Jun 18 16:17:39 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Wed, 18 Jun 2008 16:17:39 -0500 Subject: [AccessD] OT: Test? In-Reply-To: <3BDA23BA82734376A5237A8B2F4B1535@jislaptopdev> Message-ID: Well, if this list supported grammar and spelling support, I'd probably be getting a bill! ;) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Wednesday, June 18, 2008 3:33 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Test? ...except for the grammar of course :) William -------------------------------------------------- From: "Foote, Chris" Sent: Wednesday, June 18, 2008 9:48 AM To: "'Access Developers discussion and problem solving'" Subject: Re: [AccessD] OT: Test? > > I think we've resolved all the problems anyone's ever had ever ;-) > > Chris F > > >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte >> Sent: Wednesday, June 18, 2008 2:30 PM >> To: Access Developers discussion and problem solving >> Subject: [AccessD] OT: Test? >> >> >> >> Are we down...or just out of Access questions? >> _________________________________________________________________ >> The other season of giving begins 6/24/08. Check out the i'm >> Talkathon. >> http://www.imtalkathon.com?source=TXT_EML_WLH_SeasonOfGiving >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From Darryl.Collins at coles.com.au Wed Jun 18 20:23:16 2008 From: Darryl.Collins at coles.com.au (Darryl Collins) Date: Thu, 19 Jun 2008 11:23:16 +1000 Subject: [AccessD] SQL Server Advice Message-ID: <49DFE57FB126044B8A8B934E7AEA09ED09FD7559@WPEXCH05.colesmyer.ad.cmltd.net.au> Hey everyone, Most excited - somehow I have managed to sneak into a role at work which requires me to use an SQL Server backend to Access Front End. Very happy about this as I want to learn how SQL server ticks and there is nothing like a bit of deadline pressure to inspire one to hit the books/newgroups/etc... Going to be a steep learning curve as I have to get this app moved over from an Excel based tool to SQL Server. I always find it nicer if I get paid to learn stuff as well. I have had a look at SQL Server and it doesn't seem too complex to use (that probably means I really don't understand it all) - SQL syntax is different to Access though, hmmmm. sooooo.... So does anyone here have any advice of good sources of SQL Server info, website, or resources. Would be happy to get a book organised, but I am not sure if there is one that is "must have" or not. A peep at Amazon was inconclusive. All and any advice gratefully received. Cheers Darryl in Oz! This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. From stuart at lexacorp.com.pg Wed Jun 18 20:46:42 2008 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Thu, 19 Jun 2008 11:46:42 +1000 Subject: [AccessD] SQL Server Advice In-Reply-To: <49DFE57FB126044B8A8B934E7AEA09ED09FD7559@WPEXCH05.colesmyer.ad.cmltd.net.au> References: <49DFE57FB126044B8A8B934E7AEA09ED09FD7559@WPEXCH05.colesmyer.ad.cmltd.net.au> Message-ID: <485A4722.8984.4BE20B6@stuart.lexacorp.com.pg> 1. Browse through SQL Server Books Online (BOL) for a start. You'll find many of the concepts are very familiar to you as an Access developer. 2. To start getting to grips with TSQL, try looking at some of your exisiting Access queries in the SQL View window - you will get a good handle of the basic SQL syntax. 3. Join "Discussion concerning MS SQL Server" 4. Good sources for articles, tips etc are: http://www.sqlservercentral.com/ and http://www.simple-talk.com/default.aspx Cheers, Stuart On 19 Jun 2008 at 11:23, Darryl Collins wrote: > sooooo.... So does anyone here have any advice of good sources of > SQL Server info, website, or resources. Would be happy to get a book > organised, but I am not sure if there is one that is "must have" or > not. A peep at Amazon was inconclusive. > > All and any advice gratefully received. > > Cheers > Darryl in Oz! > From kp at sdsonline.net Wed Jun 18 21:31:23 2008 From: kp at sdsonline.net (Kath Pelletti) Date: Thu, 19 Jun 2008 12:31:23 +1000 Subject: [AccessD] SQL Server Advice References: <49DFE57FB126044B8A8B934E7AEA09ED09FD7559@WPEXCH05.colesmyer.ad.cmltd.net.au> Message-ID: <003e01c8d1b4$91e43630$6401a8c0@DELLAPTOP> Darryl - you probably already are - but in case not, don't forget there is an AccessD SQL Server list you can also subscribe to. Kath ----- Original Message ----- From: "Darryl Collins" To: "Access Developers discussion and problem solving" Sent: Thursday, June 19, 2008 11:23 AM Subject: [AccessD] SQL Server Advice > Hey everyone, > > Most excited - somehow I have managed to sneak into a role at work which > requires me to use an SQL Server backend to Access Front End. Very happy > about this as I want to learn how SQL server ticks and there is nothing > like a bit of deadline pressure to inspire one to hit the > books/newgroups/etc... > > Going to be a steep learning curve as I have to get this app moved over > from an Excel based tool to SQL Server. I always find it nicer if I get > paid to learn stuff as well. I have had a look at SQL Server and it > doesn't seem too complex to use (that probably means I really don't > understand it all) - SQL syntax is different to Access though, hmmmm. > > sooooo.... So does anyone here have any advice of good sources of SQL > Server info, website, or resources. Would be happy to get a book > organised, but I am not sure if there is one that is "must have" or not. > A peep at Amazon was inconclusive. > > All and any advice gratefully received. > > Cheers > Darryl in Oz! > > This email and any attachments may contain privileged and confidential > information and are intended for the named addressee only. If you have > received this e-mail in error, please notify the sender and delete this > e-mail immediately. Any confidentiality, privilege or copyright is not > waived or lost because this e-mail has been sent to you in error. It is > your responsibility to check this e-mail and any attachments for viruses. > No warranty is made that this material is free from computer virus or any > other defect or error. Any loss/damage incurred by using this material is > not the sender's responsibility. The sender's entire liability will be > limited to resupplying the material. > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From Darryl.Collins at coles.com.au Wed Jun 18 21:56:38 2008 From: Darryl.Collins at coles.com.au (Darryl Collins) Date: Thu, 19 Jun 2008 12:56:38 +1000 Subject: [AccessD] SQL Server Advice Message-ID: <49DFE57FB126044B8A8B934E7AEA09ED09FD7561@WPEXCH05.colesmyer.ad.cmltd.net.au> Hey Kath, I didn't know, but I do now :) going to sub up later today. I learn so much for just reading the problems and solutions from others! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Kath Pelletti Sent: Thursday, 19 June 2008 12:31 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SQL Server Advice Darryl - you probably already are - but in case not, don't forget there is an AccessD SQL Server list you can also subscribe to. Kath ----- Original Message ----- From: "Darryl Collins" To: "Access Developers discussion and problem solving" Sent: Thursday, June 19, 2008 11:23 AM Subject: [AccessD] SQL Server Advice > Hey everyone, > > Most excited - somehow I have managed to sneak into a role at work which > requires me to use an SQL Server backend to Access Front End. Very happy > about this as I want to learn how SQL server ticks and there is nothing > like a bit of deadline pressure to inspire one to hit the > books/newgroups/etc... > > Going to be a steep learning curve as I have to get this app moved over > from an Excel based tool to SQL Server. I always find it nicer if I get > paid to learn stuff as well. I have had a look at SQL Server and it > doesn't seem too complex to use (that probably means I really don't > understand it all) - SQL syntax is different to Access though, hmmmm. > > sooooo.... So does anyone here have any advice of good sources of SQL > Server info, website, or resources. Would be happy to get a book > organised, but I am not sure if there is one that is "must have" or not. > A peep at Amazon was inconclusive. > > All and any advice gratefully received. > > Cheers > Darryl in Oz! > > This email and any attachments may contain privileged and confidential > information and are intended for the named addressee only. If you have > received this e-mail in error, please notify the sender and delete this > e-mail immediately. Any confidentiality, privilege or copyright is not > waived or lost because this e-mail has been sent to you in error. It is > your responsibility to check this e-mail and any attachments for viruses. > No warranty is made that this material is free from computer virus or any > other defect or error. Any loss/damage incurred by using this material is > not the sender's responsibility. The sender's entire liability will be > limited to resupplying the material. > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. From spike at tenbus.co.uk Thu Jun 19 01:21:13 2008 From: spike at tenbus.co.uk (Webadmin - Tenbus) Date: Thu, 19 Jun 2008 07:21:13 +0100 Subject: [AccessD] OT: Test? In-Reply-To: <3BDA23BA82734376A5237A8B2F4B1535@jislaptopdev> References: <7303A459C921B5499AF732CCEEAD2B7F064D1584@craws161660.int.rdel.co.uk> <3BDA23BA82734376A5237A8B2F4B1535@jislaptopdev> Message-ID: <4859FAD9.7070708@tenbus.co.uk> LOL! Chris F William Hindman wrote: > ...except for the grammar of course :) > William > > -------------------------------------------------- > From: "Foote, Chris" > Sent: Wednesday, June 18, 2008 9:48 AM > To: "'Access Developers discussion and problem solving'" > > Subject: Re: [AccessD] OT: Test? > > >> I think we've resolved all the problems anyone's ever had ever ;-) >> >> Chris F >> >> >> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Mark A Matte >>> Sent: Wednesday, June 18, 2008 2:30 PM >>> To: Access Developers discussion and problem solving >>> Subject: [AccessD] OT: Test? >>> >>> >>> >>> Are we down...or just out of Access questions? From wdhindman at dejpolsystems.com Thu Jun 19 02:59:11 2008 From: wdhindman at dejpolsystems.com (William Hindman) Date: Thu, 19 Jun 2008 03:59:11 -0400 Subject: [AccessD] SQL Server Advice References: <49DFE57FB126044B8A8B934E7AEA09ED09FD7559@WPEXCH05.colesmyer.ad.cmltd.net.au> Message-ID: <3243BE0C366D43B0B47EA788DE1F0E67@jislaptopdev> ...our own Martin Reed and Susan Harkins wrote a "SQL: Access to SQL Server" book awhile back that I found particularly useful and was still available on Amazon last time I looked ...and since both still read this list, you can't beat the ability to ask questions if you run into a problem. William "Sen. McCain will bring a lifetime of experience to the campaign... Sen. Obama will bring a speech that he gave." Hillary Clinton -------------------------------------------------- From: "Darryl Collins" Sent: Wednesday, June 18, 2008 9:23 PM To: "Access Developers discussion and problem solving" Subject: [AccessD] SQL Server Advice > > Hey everyone, > > Most excited - somehow I have managed to sneak into a role at work which > requires me to use an SQL Server backend to Access Front End. Very happy > about this as I want to learn how SQL server ticks and there is nothing > like a bit of deadline pressure to inspire one to hit the > books/newgroups/etc... > > Going to be a steep learning curve as I have to get this app moved over > from an Excel based tool to SQL Server. I always find it nicer if I get > paid to learn stuff as well. I have had a look at SQL Server and it > doesn't seem too complex to use (that probably means I really don't > understand it all) - SQL syntax is different to Access though, hmmmm. > > sooooo.... So does anyone here have any advice of good sources of SQL > Server info, website, or resources. Would be happy to get a book > organised, but I am not sure if there is one that is "must have" or not. > A peep at Amazon was inconclusive. > > All and any advice gratefully received. > > Cheers > Darryl in Oz! > > This email and any attachments may contain privileged and confidential > information and are intended for the named addressee only. If you have > received this e-mail in error, please notify the sender and delete this > e-mail immediately. Any confidentiality, privilege or copyright is not > waived or lost because this e-mail has been sent to you in error. It is > your responsibility to check this e-mail and any attachments for viruses. > No warranty is made that this material is free from computer virus or any > other defect or error. Any loss/damage incurred by using this material is > not the sender's responsibility. The sender's entire liability will be > limited to resupplying the material. > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From ssharkins at gmail.com Thu Jun 19 07:40:08 2008 From: ssharkins at gmail.com (Susan Harkins) Date: Thu, 19 Jun 2008 08:40:08 -0400 Subject: [AccessD] SQL Server Advice References: <49DFE57FB126044B8A8B934E7AEA09ED09FD7559@WPEXCH05.colesmyer.ad.cmltd.net.au> <3243BE0C366D43B0B47EA788DE1F0E67@jislaptopdev> Message-ID: <058601c8d209$9fcd9c50$2f8601c7@SusanOne> > ...our own Martin Reed and Susan Harkins wrote a "SQL: Access to SQL > Server" > book awhile back that I found particularly useful and was still available > on > Amazon last time I looked ...and since both still read this list, you > can't > beat the ability to ask questions if you run into a problem. ==========Martin wrote the second half and yes, he would be the person I'd ask on this subject. :) Susan H. From fuller.artful at gmail.com Thu Jun 19 07:55:32 2008 From: fuller.artful at gmail.com (Arthur Fuller) Date: Thu, 19 Jun 2008 09:55:32 -0300 Subject: [AccessD] SQL Server Advice In-Reply-To: <058601c8d209$9fcd9c50$2f8601c7@SusanOne> References: <49DFE57FB126044B8A8B934E7AEA09ED09FD7559@WPEXCH05.colesmyer.ad.cmltd.net.au> <3243BE0C366D43B0B47EA788DE1F0E67@jislaptopdev> <058601c8d209$9fcd9c50$2f8601c7@SusanOne> Message-ID: <29f585dd0806190555v62fe590fnf576ca68f67e9361@mail.gmail.com> Just to add to the list of references, I've been reading Paul Neilson's SQL Bible and it is a fount of useful information. I'm learning a ton from it. Arthur From shamil at smsconsulting.spb.ru Thu Jun 19 08:37:15 2008 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Thu, 19 Jun 2008 17:37:15 +0400 Subject: [AccessD] MS Word - Copy and Paste contents of compound IF merge field... Message-ID: <004c01c8d211$9848e450$6401a8c0@nant> Hi All, I have got stuck here - I have to do the following in VBA code Context ======= - I have an MS Word document with IF Merge field having other MS Word fields as its content Task ==== - Copycat contents of the compound IF merge field including all (sub-)fields, formats etc. but do not copy "parent" IF merger field ========= It should be possible to do simple way somehow as far as I may guess - trying to find this simple solution here but not yet found it so far... Any hints, tips & tricks would be very welcome here! Thank you. -- Shamil From jengross at gte.net Thu Jun 19 12:17:49 2008 From: jengross at gte.net (Jennifer Gross) Date: Thu, 19 Jun 2008 09:17:49 -0800 Subject: [AccessD] OT: Abducted by Aliens Scenario Message-ID: <0K2P00FPBXDWKW30@vms042.mailsrvcs.net> Good Morning Everyone, For all of my clients I am their single point of contact for MS Access database development, modifications, complex queries, etc. I suspect that a lot of you are as well. I am interested to know what contractual and physical processes as emergency steps that you have in place to provide a modicum of continuity to the client should you be abducted by aliens or hit by a bus and no longer able to fulfill your role for your clients. How are you handling intellectual property issues? Do you install MDB or MDE to protect your copyright? In my thinking, if I were to suddenly go to the great beyond my children should inherit my copyrights as some of the systems that are single installs for my clients have the potentiality of being marketable software packages. In addition, each stand alone system has intellectual property value in and of itself. My newer contracts specify that I am only providing a license to the client to run the code. Older contracts are silent on this issue, which I have learned through legal battle means that I own the copyright. Also, aside from the copyright issues do you provide your clients with a list of individuals who could step in if you are out of commission, a means to access backup files, developer password information and any other issues that you have considered should aliens carry you off in the night. Thanks in advance for your thoughts, Jennifer From rockysmolin at bchacc.com Thu Jun 19 11:23:54 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Thu, 19 Jun 2008 09:23:54 -0700 Subject: [AccessD] Timer Event Message-ID: <03e801c8d228$de2439e0$0301a8c0@HAL9005> Dear List: The client would like a progress box to display during a lengthy calculation - can take up to a minute and I told him that some kind of indication should appear on the form so the user knows something is happening. I implemented one solution which is OK. I have a sub which adds a period to a text box on the calling form. And so I can lace calls to that routine throughout the calculations. Problem is that it doesn't produce these periods in equal time intervals. So what he really wants now is a progress indicator that would change every 1/4 second or so, and when it got to its maximum length would start over again. Not a difficult thing to do. I thought I could use the timer event on the form that calls the calculation, but the calculation is in a Public module and so, while it is running, the timer event doesn't trigger. Is there a way around this or another approach? MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com From rockysmolin at bchacc.com Thu Jun 19 11:35:56 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Thu, 19 Jun 2008 09:35:56 -0700 Subject: [AccessD] OT: Abducted by Aliens Scenario In-Reply-To: <0K2P00FPBXDWKW30@vms042.mailsrvcs.net> References: <0K2P00FPBXDWKW30@vms042.mailsrvcs.net> Message-ID: <03fc01c8d22a$8c8fc1b0$0301a8c0@HAL9005> Short answer - nothing. If I die my clients, who all have mdbs, will have to find another Access developer. What I have done is try to make my code as clear and commented as possible for whoever takes over. Otherwise they're on their own. There's nothing in there that's really so valuable that it represents an asset to my vast estate or something that my lucky heirs could turn into cash. Most of the good stuff I got from the list and the ADH anyway. :) I do have a commercial product which is distributed in an mde. I should probably escrow the code but I haven't. It's probably overkill. In the event that I kick, there is a guy I have asked to come in and manage my computer - notify people, do whatever support he thinks is needed, while Pundit figures out what to do with the product. Frankly, when I die, so, I think, does E-Z-MRP. So I don't worry about it now. And when I'm dead I won't worry about it either. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Thursday, June 19, 2008 10:18 AM To: AccessD List Subject: [AccessD] OT: Abducted by Aliens Scenario Good Morning Everyone, For all of my clients I am their single point of contact for MS Access database development, modifications, complex queries, etc. I suspect that a lot of you are as well. I am interested to know what contractual and physical processes as emergency steps that you have in place to provide a modicum of continuity to the client should you be abducted by aliens or hit by a bus and no longer able to fulfill your role for your clients. How are you handling intellectual property issues? Do you install MDB or MDE to protect your copyright? In my thinking, if I were to suddenly go to the great beyond my children should inherit my copyrights as some of the systems that are single installs for my clients have the potentiality of being marketable software packages. In addition, each stand alone system has intellectual property value in and of itself. My newer contracts specify that I am only providing a license to the client to run the code. Older contracts are silent on this issue, which I have learned through legal battle means that I own the copyright. Also, aside from the copyright issues do you provide your clients with a list of individuals who could step in if you are out of commission, a means to access backup files, developer password information and any other issues that you have considered should aliens carry you off in the night. Thanks in advance for your thoughts, Jennifer -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 270.4.0/1507 - Release Date: 18/6/2008 07:09 From DWUTKA at Marlow.com Thu Jun 19 11:41:28 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Thu, 19 Jun 2008 11:41:28 -0500 Subject: [AccessD] OT: Abducted by Aliens Scenario In-Reply-To: <0K2P00FPBXDWKW30@vms042.mailsrvcs.net> Message-ID: LOL, your topic reminded me of Prototype (the last school in the Naval Nuclear pipeline). The final qualification was an oral examination, where I was asked some pretty bizarre questions. I went to prototype at A1W, nicknamed Alice In Wonderland, which was a complete mockup of the #3 engine room on the USS Enterprise. (Actually, it was built before the Enterprise, thus, a 'prototype'). One of the questions was that the Starship Enterprise came into orbit and beamed the entire A1W crew onto it...what would happen to the plant!?! The next question, after I explained what would happen, and what we would have to do to recover when they beamed us back, was that S5G (an experimental sub plant next to us) fired a torpedo at us.... To answer your actual question, sort of, I tend to design my systems so that my personal involvement is usually unnecessary. The only catch to this is really .mdb corruption, which happens once in a blue moon, but any Access developer can deal with that, and it never happens on any of the systems I have running with a web interface. Right now, the only systems I have to 'support' are a few NT services I built which don't seem to 'restart' right when we reboot the servers. No big deal, and they are marked for replacement by systems we will be getting in the future. As for intellectual rights, well, I'm no expert on the legal options there. Hopefully someone else will chime in there. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Thursday, June 19, 2008 12:18 PM To: AccessD List Subject: [AccessD] OT: Abducted by Aliens Scenario Good Morning Everyone, For all of my clients I am their single point of contact for MS Access database development, modifications, complex queries, etc. I suspect that a lot of you are as well. I am interested to know what contractual and physical processes as emergency steps that you have in place to provide a modicum of continuity to the client should you be abducted by aliens or hit by a bus and no longer able to fulfill your role for your clients. How are you handling intellectual property issues? Do you install MDB or MDE to protect your copyright? In my thinking, if I were to suddenly go to the great beyond my children should inherit my copyrights as some of the systems that are single installs for my clients have the potentiality of being marketable software packages. In addition, each stand alone system has intellectual property value in and of itself. My newer contracts specify that I am only providing a license to the client to run the code. Older contracts are silent on this issue, which I have learned through legal battle means that I own the copyright. Also, aside from the copyright issues do you provide your clients with a list of individuals who could step in if you are out of commission, a means to access backup files, developer password information and any other issues that you have considered should aliens carry you off in the night. Thanks in advance for your thoughts, Jennifer -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From DWUTKA at Marlow.com Thu Jun 19 11:46:55 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Thu, 19 Jun 2008 11:46:55 -0500 Subject: [AccessD] Timer Event In-Reply-To: <03e801c8d228$de2439e0$0301a8c0@HAL9005> Message-ID: Unfortunately, Access VBA is single threaded, so while code is running, it has control. The only way to let something else happen is to intersperse 'DoEvents' lines into your calculation process, which will release the thread to run any waiting events (which would allow your timer to fire). Two options I can think of for your situation. #1. Cheat. Create an .avi of a 'progress bar' and run it before your calculation starts up. The animation should run regardless of what your code is doing. Of course, it would be no real indication of the actual process. #2. Give an actual indication. Is there some determination of how far the calculation has progressed? Why not give a progress of the actual progress, and give a 'pause/stop' option too? All possible with DoEvents. To be more specific, I would need more details on this 'calculation'. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Thursday, June 19, 2008 11:24 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Timer Event Dear List: The client would like a progress box to display during a lengthy calculation - can take up to a minute and I told him that some kind of indication should appear on the form so the user knows something is happening. I implemented one solution which is OK. I have a sub which adds a period to a text box on the calling form. And so I can lace calls to that routine throughout the calculations. Problem is that it doesn't produce these periods in equal time intervals. So what he really wants now is a progress indicator that would change every 1/4 second or so, and when it got to its maximum length would start over again. Not a difficult thing to do. I thought I could use the timer event on the form that calls the calculation, but the calculation is in a Public module and so, while it is running, the timer event doesn't trigger. Is there a way around this or another approach? MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From jengross at gte.net Thu Jun 19 12:54:53 2008 From: jengross at gte.net (Jennifer Gross) Date: Thu, 19 Jun 2008 09:54:53 -0800 Subject: [AccessD] OT: Abducted by Aliens Scenario In-Reply-To: <03fc01c8d22a$8c8fc1b0$0301a8c0@HAL9005> Message-ID: <0K2P00FUWZ3EKH70@vms042.mailsrvcs.net> Hi Rocky, Thanks for this. The issue was actually brought be me by a client - how would they maintain continuity if I suffered severe illness or injury. The issue of copyright comes up in my mind when trying to handle this because I had a client who had the MDB files, severed their relationship with me and then tried to sell the code for a substantial amount. Enough that I got attorneys involved, fought it and won. Basically my way of handling things is the same as yours (except for the computer manager). I am concerned that in developing this 'emergency plan' for my client I will inadvertently be giving them some sort of rights to the code, as my previous client asserted they had because I was providing them backup disks of the MDBs. This particular client that wants an emergency plan has a system in place that others in their industry have already approached me to adapt the system for their organization. It has a viable market that I have not yet tapped. I know that this is a contractual issue that will have to be negotiated and incorporated into 'the plan'. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Thursday, June 19, 2008 8:36 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Abducted by Aliens Scenario Short answer - nothing. If I die my clients, who all have mdbs, will have to find another Access developer. What I have done is try to make my code as clear and commented as possible for whoever takes over. Otherwise they're on their own. There's nothing in there that's really so valuable that it represents an asset to my vast estate or something that my lucky heirs could turn into cash. Most of the good stuff I got from the list and the ADH anyway. :) I do have a commercial product which is distributed in an mde. I should probably escrow the code but I haven't. It's probably overkill. In the event that I kick, there is a guy I have asked to come in and manage my computer - notify people, do whatever support he thinks is needed, while Pundit figures out what to do with the product. Frankly, when I die, so, I think, does E-Z-MRP. So I don't worry about it now. And when I'm dead I won't worry about it either. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Thursday, June 19, 2008 10:18 AM To: AccessD List Subject: [AccessD] OT: Abducted by Aliens Scenario Good Morning Everyone, For all of my clients I am their single point of contact for MS Access database development, modifications, complex queries, etc. I suspect that a lot of you are as well. I am interested to know what contractual and physical processes as emergency steps that you have in place to provide a modicum of continuity to the client should you be abducted by aliens or hit by a bus and no longer able to fulfill your role for your clients. How are you handling intellectual property issues? Do you install MDB or MDE to protect your copyright? In my thinking, if I were to suddenly go to the great beyond my children should inherit my copyrights as some of the systems that are single installs for my clients have the potentiality of being marketable software packages. In addition, each stand alone system has intellectual property value in and of itself. My newer contracts specify that I am only providing a license to the client to run the code. Older contracts are silent on this issue, which I have learned through legal battle means that I own the copyright. Also, aside from the copyright issues do you provide your clients with a list of individuals who could step in if you are out of commission, a means to access backup files, developer password information and any other issues that you have considered should aliens carry you off in the night. Thanks in advance for your thoughts, Jennifer -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 270.4.0/1507 - Release Date: 18/6/2008 07:09 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Thu Jun 19 12:25:58 2008 From: dwaters at usinternet.com (Dan Waters) Date: Thu, 19 Jun 2008 12:25:58 -0500 Subject: [AccessD] OT: Abducted by Aliens Scenario In-Reply-To: <0K2P00FPBXDWKW30@vms042.mailsrvcs.net> References: <0K2P00FPBXDWKW30@vms042.mailsrvcs.net> Message-ID: <4FA0AB1D7C5A42AA90EE4A6B9A8C4364@danwaters> Hi Jennifer, For my systems, I give the IT folks full rights to all code and software objects. They can also give full rights to others if someday they need to. The system is licensed, and I don't move ahead with them until my contract is signed. But, I haven't thought about inheritance issues for the copyright. So, if I am spirited away and my corporation dissolves (it's just me), then they own what they have since no other legal entity has a claim on the system I licensed to them. And, they can then find another Access and/or SQL developer - which everyone has been OK with up to this point. So far, no one has a problem with the potential issue of finding another developer. One customer had the belief that I might simply abandon them. So we set up a mechanism for them to 'prove' that I wasn't being supportive, then they had non-exclusive, non-distributable ownership. HTH! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Thursday, June 19, 2008 12:18 PM To: AccessD List Subject: [AccessD] OT: Abducted by Aliens Scenario Good Morning Everyone, For all of my clients I am their single point of contact for MS Access database development, modifications, complex queries, etc. I suspect that a lot of you are as well. I am interested to know what contractual and physical processes as emergency steps that you have in place to provide a modicum of continuity to the client should you be abducted by aliens or hit by a bus and no longer able to fulfill your role for your clients. How are you handling intellectual property issues? Do you install MDB or MDE to protect your copyright? In my thinking, if I were to suddenly go to the great beyond my children should inherit my copyrights as some of the systems that are single installs for my clients have the potentiality of being marketable software packages. In addition, each stand alone system has intellectual property value in and of itself. My newer contracts specify that I am only providing a license to the client to run the code. Older contracts are silent on this issue, which I have learned through legal battle means that I own the copyright. Also, aside from the copyright issues do you provide your clients with a list of individuals who could step in if you are out of commission, a means to access backup files, developer password information and any other issues that you have considered should aliens carry you off in the night. Thanks in advance for your thoughts, Jennifer -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rusty.hammond at cpiqpc.com Thu Jun 19 12:30:29 2008 From: rusty.hammond at cpiqpc.com (rusty.hammond at cpiqpc.com) Date: Thu, 19 Jun 2008 12:30:29 -0500 Subject: [AccessD] Timer Event Message-ID: <49A286ABF515E94A8505CD14DEB721704CFFF1@CPIEMAIL-EVS1.CPIQPC.NET> Since the client doesn't seem to need a progress bar that reflects an accurate progression of the calculation, how about just changing the mouse cursor? It's not a progress box but it's very simple to use: docmd.hourglass true run code docmd.hourglass false Rusty -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin at Beach Access Software Sent: Thursday, June 19, 2008 11:24 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Timer Event Dear List: The client would like a progress box to display during a lengthy calculation - can take up to a minute and I told him that some kind of indication should appear on the form so the user knows something is happening. I implemented one solution which is OK. I have a sub which adds a period to a text box on the calling form. And so I can lace calls to that routine throughout the calculations. Problem is that it doesn't produce these periods in equal time intervals. So what he really wants now is a progress indicator that would change every 1/4 second or so, and when it got to its maximum length would start over again. Not a difficult thing to do. I thought I could use the timer event on the form that calls the calculation, but the calculation is in a Public module and so, while it is running, the timer event doesn't trigger. Is there a way around this or another approach? MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** From rockysmolin at bchacc.com Thu Jun 19 12:37:54 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Thu, 19 Jun 2008 10:37:54 -0700 Subject: [AccessD] OT: Abducted by Aliens Scenario In-Reply-To: <0K2P00FUWZ3EKH70@vms042.mailsrvcs.net> References: <03fc01c8d22a$8c8fc1b0$0301a8c0@HAL9005> <0K2P00FUWZ3EKH70@vms042.mailsrvcs.net> Message-ID: <041701c8d233$34b7b980$0301a8c0@HAL9005> I don't see any way to avoid a lawyer at this point. But a good transactional lawyer will be able to structure an agreement which will protect your rights and make the client happy. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Thursday, June 19, 2008 10:55 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Abducted by Aliens Scenario Hi Rocky, Thanks for this. The issue was actually brought be me by a client - how would they maintain continuity if I suffered severe illness or injury. The issue of copyright comes up in my mind when trying to handle this because I had a client who had the MDB files, severed their relationship with me and then tried to sell the code for a substantial amount. Enough that I got attorneys involved, fought it and won. Basically my way of handling things is the same as yours (except for the computer manager). I am concerned that in developing this 'emergency plan' for my client I will inadvertently be giving them some sort of rights to the code, as my previous client asserted they had because I was providing them backup disks of the MDBs. This particular client that wants an emergency plan has a system in place that others in their industry have already approached me to adapt the system for their organization. It has a viable market that I have not yet tapped. I know that this is a contractual issue that will have to be negotiated and incorporated into 'the plan'. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Thursday, June 19, 2008 8:36 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Abducted by Aliens Scenario Short answer - nothing. If I die my clients, who all have mdbs, will have to find another Access developer. What I have done is try to make my code as clear and commented as possible for whoever takes over. Otherwise they're on their own. There's nothing in there that's really so valuable that it represents an asset to my vast estate or something that my lucky heirs could turn into cash. Most of the good stuff I got from the list and the ADH anyway. :) I do have a commercial product which is distributed in an mde. I should probably escrow the code but I haven't. It's probably overkill. In the event that I kick, there is a guy I have asked to come in and manage my computer - notify people, do whatever support he thinks is needed, while Pundit figures out what to do with the product. Frankly, when I die, so, I think, does E-Z-MRP. So I don't worry about it now. And when I'm dead I won't worry about it either. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Thursday, June 19, 2008 10:18 AM To: AccessD List Subject: [AccessD] OT: Abducted by Aliens Scenario Good Morning Everyone, For all of my clients I am their single point of contact for MS Access database development, modifications, complex queries, etc. I suspect that a lot of you are as well. I am interested to know what contractual and physical processes as emergency steps that you have in place to provide a modicum of continuity to the client should you be abducted by aliens or hit by a bus and no longer able to fulfill your role for your clients. How are you handling intellectual property issues? Do you install MDB or MDE to protect your copyright? In my thinking, if I were to suddenly go to the great beyond my children should inherit my copyrights as some of the systems that are single installs for my clients have the potentiality of being marketable software packages. In addition, each stand alone system has intellectual property value in and of itself. My newer contracts specify that I am only providing a license to the client to run the code. Older contracts are silent on this issue, which I have learned through legal battle means that I own the copyright. Also, aside from the copyright issues do you provide your clients with a list of individuals who could step in if you are out of commission, a means to access backup files, developer password information and any other issues that you have considered should aliens carry you off in the night. Thanks in advance for your thoughts, Jennifer -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 270.4.0/1507 - Release Date: 18/6/2008 07:09 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 270.4.0/1509 - Release Date: 19/6/2008 08:00 From rockysmolin at bchacc.com Thu Jun 19 12:37:54 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Thu, 19 Jun 2008 10:37:54 -0700 Subject: [AccessD] Timer Event In-Reply-To: References: <03e801c8d228$de2439e0$0301a8c0@HAL9005> Message-ID: <041801c8d233$34e9c600$0301a8c0@HAL9005> I actually implemented #2 - works great - I add a period to a string of periods in a module that displays the string in a text box on the calling form. Then I can just intersperse calls to that calculation function at random. Problem is that the periods don't get added in equal time intervals. The first couple take a long time. The last few come out real fast. User wants them equal intervals. So I said we can play with lacing a few more calls through the code. He wants it different. So I'm casting about. This will be a commercially distributed product eventually so I'd like to keep it as clean as possible. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, June 19, 2008 9:47 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Timer Event Unfortunately, Access VBA is single threaded, so while code is running, it has control. The only way to let something else happen is to intersperse 'DoEvents' lines into your calculation process, which will release the thread to run any waiting events (which would allow your timer to fire). Two options I can think of for your situation. #1. Cheat. Create an .avi of a 'progress bar' and run it before your calculation starts up. The animation should run regardless of what your code is doing. Of course, it would be no real indication of the actual process. #2. Give an actual indication. Is there some determination of how far the calculation has progressed? Why not give a progress of the actual progress, and give a 'pause/stop' option too? All possible with DoEvents. To be more specific, I would need more details on this 'calculation'. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Thursday, June 19, 2008 11:24 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Timer Event Dear List: The client would like a progress box to display during a lengthy calculation - can take up to a minute and I told him that some kind of indication should appear on the form so the user knows something is happening. I implemented one solution which is OK. I have a sub which adds a period to a text box on the calling form. And so I can lace calls to that routine throughout the calculations. Problem is that it doesn't produce these periods in equal time intervals. So what he really wants now is a progress indicator that would change every 1/4 second or so, and when it got to its maximum length would start over again. Not a difficult thing to do. I thought I could use the timer event on the form that calls the calculation, but the calculation is in a Public module and so, while it is running, the timer event doesn't trigger. Is there a way around this or another approach? MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 270.4.0/1509 - Release Date: 19/6/2008 08:00 From drawbridgej at sympatico.ca Thu Jun 19 12:44:46 2008 From: drawbridgej at sympatico.ca (Jack and Pat) Date: Thu, 19 Jun 2008 13:44:46 -0400 Subject: [AccessD] Timer Event In-Reply-To: <041801c8d233$34e9c600$0301a8c0@HAL9005> References: <03e801c8d228$de2439e0$0301a8c0@HAL9005> <041801c8d233$34e9c600$0301a8c0@HAL9005> Message-ID: <000401c8d234$2a9d66b0$6501a8c0@home6399619597> Rocky, John Colby showed us a timer event a couple of years ago. It's an elapsed time thingy. Perhaps you could start your process; call his timer ; Do Events; add a Period after a certain time based on John's timer, repeat until process is completed. Just a thought. jack Here's John's email reference (email to Martin) ================================================ Martin, I have a timer class with a test db to demonstrate it. The only way to time the opening of the form is to place the timer init in the button click that opens the form since the load happens BEFORE the code in the form is loaded. Go to my site, click Misc Demos, then click C2DbTimerClass. John W. Colby www.ColbyConsulting.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Martin Reid Sent: Monday, May 03, 2004 6:19 AM To: Access Developers discussion and problem solving Subject: [AccessD] Access Timer I want to test the time taken to Open a form - get the load time Run a query - named query - get the time take to produce the results or a file or a report. We may also require the database to send an eal but that is covered. Would anyone have a function that measures such things? Martin -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- _______________________________________________ AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Thursday, June 19, 2008 1:38 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Timer Event I actually implemented #2 - works great - I add a period to a string of periods in a module that displays the string in a text box on the calling form. Then I can just intersperse calls to that calculation function at random. Problem is that the periods don't get added in equal time intervals. The first couple take a long time. The last few come out real fast. User wants them equal intervals. So I said we can play with lacing a few more calls through the code. He wants it different. So I'm casting about. This will be a commercially distributed product eventually so I'd like to keep it as clean as possible. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, June 19, 2008 9:47 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Timer Event Unfortunately, Access VBA is single threaded, so while code is running, it has control. The only way to let something else happen is to intersperse 'DoEvents' lines into your calculation process, which will release the thread to run any waiting events (which would allow your timer to fire). Two options I can think of for your situation. #1. Cheat. Create an .avi of a 'progress bar' and run it before your calculation starts up. The animation should run regardless of what your code is doing. Of course, it would be no real indication of the actual process. #2. Give an actual indication. Is there some determination of how far the calculation has progressed? Why not give a progress of the actual progress, and give a 'pause/stop' option too? All possible with DoEvents. To be more specific, I would need more details on this 'calculation'. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Thursday, June 19, 2008 11:24 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Timer Event Dear List: The client would like a progress box to display during a lengthy calculation - can take up to a minute and I told him that some kind of indication should appear on the form so the user knows something is happening. I implemented one solution which is OK. I have a sub which adds a period to a text box on the calling form. And so I can lace calls to that routine throughout the calculations. Problem is that it doesn't produce these periods in equal time intervals. So what he really wants now is a progress indicator that would change every 1/4 second or so, and when it got to its maximum length would start over again. Not a difficult thing to do. I thought I could use the timer event on the form that calls the calculation, but the calculation is in a Public module and so, while it is running, the timer event doesn't trigger. Is there a way around this or another approach? MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 270.4.0/1509 - Release Date: 19/6/2008 08:00 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Thu Jun 19 12:46:13 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Thu, 19 Jun 2008 10:46:13 -0700 Subject: [AccessD] Timer Event In-Reply-To: <49A286ABF515E94A8505CD14DEB721704CFFF1@CPIEMAIL-EVS1.CPIQPC.NET> References: <49A286ABF515E94A8505CD14DEB721704CFFF1@CPIEMAIL-EVS1.CPIQPC.NET> Message-ID: <042501c8d234$5dd8c9c0$0301a8c0@HAL9005> He doesn't need a progress bar that reflects an accurate progression of the calculation but wants something that changes as it's calculating so the user knows something is going on and doesn't think the machine is hung up or in a loop. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rusty.hammond at cpiqpc.com Sent: Thursday, June 19, 2008 10:30 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Timer Event Since the client doesn't seem to need a progress bar that reflects an accurate progression of the calculation, how about just changing the mouse cursor? It's not a progress box but it's very simple to use: docmd.hourglass true run code docmd.hourglass false Rusty -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin at Beach Access Software Sent: Thursday, June 19, 2008 11:24 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Timer Event Dear List: The client would like a progress box to display during a lengthy calculation - can take up to a minute and I told him that some kind of indication should appear on the form so the user knows something is happening. I implemented one solution which is OK. I have a sub which adds a period to a text box on the calling form. And so I can lace calls to that routine throughout the calculations. Problem is that it doesn't produce these periods in equal time intervals. So what he really wants now is a progress indicator that would change every 1/4 second or so, and when it got to its maximum length would start over again. Not a difficult thing to do. I thought I could use the timer event on the form that calls the calculation, but the calculation is in a Public module and so, while it is running, the timer event doesn't trigger. Is there a way around this or another approach? MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 270.4.0/1509 - Release Date: 19/6/2008 08:00 From cfoust at infostatsystems.com Thu Jun 19 12:55:32 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 19 Jun 2008 10:55:32 -0700 Subject: [AccessD] Timer Event In-Reply-To: <042501c8d234$5dd8c9c0$0301a8c0@HAL9005> References: <49A286ABF515E94A8505CD14DEB721704CFFF1@CPIEMAIL-EVS1.CPIQPC.NET> <042501c8d234$5dd8c9c0$0301a8c0@HAL9005> Message-ID: Rocky, I hesitate to mention it, but what about using the built in stuff? ' Display progress in the status bar area. varReturn = SysCmd(acSysCmdInitMeter, "Doing Something...", 10) Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Thursday, June 19, 2008 10:46 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Timer Event He doesn't need a progress bar that reflects an accurate progression of the calculation but wants something that changes as it's calculating so the user knows something is going on and doesn't think the machine is hung up or in a loop. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com From dwaters at usinternet.com Thu Jun 19 12:58:58 2008 From: dwaters at usinternet.com (Dan Waters) Date: Thu, 19 Jun 2008 12:58:58 -0500 Subject: [AccessD] Timer Event In-Reply-To: <03e801c8d228$de2439e0$0301a8c0@HAL9005> References: <03e801c8d228$de2439e0$0301a8c0@HAL9005> Message-ID: Rocky, Access has a built in progress bar that I use frequently. The bar shows up as a green line in the left side of the status bar, which is at the bottom of the screen. It's simple and reliable and your customers have seen it or something like it before so no explanation will be needed. Step 1: Dim stgTitle as string Dim varReturn as variant Dim intCount as integer stgTitle = "Progress Bar Title" '-- Somehow get the count of total iterations intCount = rst.recordcount (for example) Step 2: '-- Initiate the progress bar - no green bars will be displayed yet varReturn = SysCmd(acSysCmdInitMeter, stgTitle, intCount) Step 3: intCount = 0 Do While X < Y '-- Calculations here intCount = intCount + 1 '-- Add proportional length to the progress bar varReturn = SysCmd(acSysUpdateMeter, intCount) Loop Step 4: '-- Remove the Progress Bar varReturn = SysCmd(acSysCmdClearStatus) Hope this works! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Thursday, June 19, 2008 11:24 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Timer Event Dear List: The client would like a progress box to display during a lengthy calculation - can take up to a minute and I told him that some kind of indication should appear on the form so the user knows something is happening. I implemented one solution which is OK. I have a sub which adds a period to a text box on the calling form. And so I can lace calls to that routine throughout the calculations. Problem is that it doesn't produce these periods in equal time intervals. So what he really wants now is a progress indicator that would change every 1/4 second or so, and when it got to its maximum length would start over again. Not a difficult thing to do. I thought I could use the timer event on the form that calls the calculation, but the calculation is in a Public module and so, while it is running, the timer event doesn't trigger. Is there a way around this or another approach? MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.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 Jun 19 13:00:31 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Thu, 19 Jun 2008 13:00:31 -0500 Subject: [AccessD] Timer Event In-Reply-To: <041801c8d233$34e9c600$0301a8c0@HAL9005> Message-ID: Well if you put DoEvents on every other line, your timer event should fire at a more consistent interval. Of course, if you have a single line of code which takes longer then 1/4 second, then it would pause until that line was done. 1/4 second 'progress' updates seems a bit much though....if your process takes 60 seconds, you're running update progress code 240 times. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Thursday, June 19, 2008 12:38 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Timer Event I actually implemented #2 - works great - I add a period to a string of periods in a module that displays the string in a text box on the calling form. Then I can just intersperse calls to that calculation function at random. Problem is that the periods don't get added in equal time intervals. The first couple take a long time. The last few come out real fast. User wants them equal intervals. So I said we can play with lacing a few more calls through the code. He wants it different. So I'm casting about. This will be a commercially distributed product eventually so I'd like to keep it as clean as possible. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, June 19, 2008 9:47 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Timer Event Unfortunately, Access VBA is single threaded, so while code is running, it has control. The only way to let something else happen is to intersperse 'DoEvents' lines into your calculation process, which will release the thread to run any waiting events (which would allow your timer to fire). Two options I can think of for your situation. #1. Cheat. Create an .avi of a 'progress bar' and run it before your calculation starts up. The animation should run regardless of what your code is doing. Of course, it would be no real indication of the actual process. #2. Give an actual indication. Is there some determination of how far the calculation has progressed? Why not give a progress of the actual progress, and give a 'pause/stop' option too? All possible with DoEvents. To be more specific, I would need more details on this 'calculation'. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Thursday, June 19, 2008 11:24 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Timer Event Dear List: The client would like a progress box to display during a lengthy calculation - can take up to a minute and I told him that some kind of indication should appear on the form so the user knows something is happening. I implemented one solution which is OK. I have a sub which adds a period to a text box on the calling form. And so I can lace calls to that routine throughout the calculations. Problem is that it doesn't produce these periods in equal time intervals. So what he really wants now is a progress indicator that would change every 1/4 second or so, and when it got to its maximum length would start over again. Not a difficult thing to do. I thought I could use the timer event on the form that calls the calculation, but the calculation is in a Public module and so, while it is running, the timer event doesn't trigger. Is there a way around this or another approach? MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 270.4.0/1509 - Release Date: 19/6/2008 08:00 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From fuller.artful at gmail.com Thu Jun 19 13:32:23 2008 From: fuller.artful at gmail.com (Arthur Fuller) Date: Thu, 19 Jun 2008 15:32:23 -0300 Subject: [AccessD] OT: Abducted by Aliens Scenario In-Reply-To: <0K2P00FUWZ3EKH70@vms042.mailsrvcs.net> References: <03fc01c8d22a$8c8fc1b0$0301a8c0@HAL9005> <0K2P00FUWZ3EKH70@vms042.mailsrvcs.net> Message-ID: <29f585dd0806191132h3f1abb1cs3da1ec864fd9379f@mail.gmail.com> I have a loose arrangement with two good friends and colleagues. Over the years, depending on who landed the original contracts, we have from time to time hired one another to help develop an app, particularly when time is an issue. The three of us always give the other two names as references in case of aliens or Mack truck events occur, or even just vacations. I think that once or twice in the last 10 years I have had to rescue one of Joe's customers, and he has covered me while I was on vacation. Most recently, when I landed my new job in Bermuda, I was just completing an app for the Ministry of Energy, so I brought Joe on for a couple of days just so he would know something about the app and how it was designed and why I made certain decisions. I know there is going to be a Phase 2 on this project, so now Joe is in a position to hit the ground running should the need arise. Local user groups are also good for this sort of thing. I belong to the Toronto SQL Users Group and so do several colleagues with whom I've worked on a couple of projects. In fact, whenever an opportunity arises where one of us is working, we always contact each other to see if anybody's free and looking for work. As to the copyright issues, I can only speak for Canada, but case law here has it that in the absence of a specific clause stating otherwise, copyright on the code stays with the developer. This applies most often to consultant-client situations. Most employers now have a specific clause in their employment offers. Arthur On Thu, Jun 19, 2008 at 2:54 PM, Jennifer Gross wrote: > Hi Rocky, > > Thanks for this. The issue was actually brought be me by a client - how > would they maintain continuity if I suffered severe illness or injury. The > issue of copyright comes up in my mind when trying to handle this because I > had a client who had the MDB files, severed their relationship with me and > then tried to sell the code for a substantial amount. Enough that I got > attorneys involved, fought it and won. > > Basically my way of handling things is the same as yours (except for the > computer manager). I am concerned that in developing this 'emergency plan' > for my client I will inadvertently be giving them some sort of rights to > the > code, as my previous client asserted they had because I was providing them > backup disks of the MDBs. This particular client that wants an emergency > plan has a system in place that others in their industry have already > approached me to adapt the system for their organization. It has a viable > market that I have not yet tapped. I know that this is a contractual issue > that will have to be negotiated and incorporated into 'the plan'. > > Jennifer > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at > Beach Access Software > Sent: Thursday, June 19, 2008 8:36 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] OT: Abducted by Aliens Scenario > > Short answer - nothing. > > If I die my clients, who all have mdbs, will have to find another Access > developer. What I have done is try to make my code as clear and commented > as possible for whoever takes over. Otherwise they're on their own. > There's nothing in there that's really so valuable that it represents an > asset to my vast estate or something that my lucky heirs could turn into > cash. Most of the good stuff I got from the list and the ADH anyway. :) > > I do have a commercial product which is distributed in an mde. I should > probably escrow the code but I haven't. It's probably overkill. > > In the event that I kick, there is a guy I have asked to come in and manage > my computer - notify people, do whatever support he thinks is needed, while > Pundit figures out what to do with the product. > > Frankly, when I die, so, I think, does E-Z-MRP. > > So I don't worry about it now. And when I'm dead I won't worry about it > either. > > > Rocky Smolin > Beach Access Software > 858-259-4334 > www.e-z-mrp.com > www.bchacc.com > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross > Sent: Thursday, June 19, 2008 10:18 AM > To: AccessD List > Subject: [AccessD] OT: Abducted by Aliens Scenario > > Good Morning Everyone, > > For all of my clients I am their single point of contact for MS Access > database development, modifications, complex queries, etc. I suspect that > a > lot of you are as well. I am interested to know what contractual and > physical processes as emergency steps that you have in place to provide a > modicum of continuity to the client should you be abducted by aliens or hit > by a bus and no longer able to fulfill your role for your clients. > > How are you handling intellectual property issues? Do you install MDB or > MDE to protect your copyright? In my thinking, if I were to suddenly go to > the great beyond my children should inherit my copyrights as some of the > systems that are single installs for my clients have the potentiality of > being marketable software packages. In addition, each stand alone system > has intellectual property value in and of itself. My newer contracts > specify that I am only providing a license to the client to run the code. > Older contracts are silent on this issue, which I have learned through > legal > battle means that I own the copyright. Also, aside from the copyright > issues do you provide your clients with a list of individuals who could > step > in if you are out of commission, a means to access backup files, developer > password information and any other issues that you have considered should > aliens carry you off in the night. > > Thanks in advance for your thoughts, > > Jennifer > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > No virus found in this incoming message. > Checked by AVG. > Version: 8.0.100 / Virus Database: 270.4.0/1507 - Release Date: 18/6/2008 > 07:09 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Jun 19 13:32:49 2008 From: dwaters at usinternet.com (Dan Waters) Date: Thu, 19 Jun 2008 13:32:49 -0500 Subject: [AccessD] Use a Class in a Library.mdb - Lebans' Calendar Message-ID: <93E300B0CA19454696A19AB25991311F@danwaters> Hello to all you class experts out there! Yesterday I downloaded Lebans' calendar - and it looks great! I worked with it yesterday in a copy of a customer system and it's working well But - this will be identically used at each customer, so I want to put the class module and the four standard modules that make up this calendar into my Library.mdb file, which is used identically at each customer. In one of the forms where the calendar will be used, the instructions are to put the following code into the Load event like this: Private Sub Form_Load() '-- Create an instance of our Class Set mc = New clsMonthCal '-- Set the hWndForm Property mc.hWndForm = Me.hWnd End Sub So, with Lebans' code out of this .mdb and placed into the Library.mdb, the second line does not compile. This .mdb references the Library.mdb. Can I change something so that I can place Leban's class module and standard modules in my Library.mdb instead of putting it in every customer's .mdb? Thanks for any help and suggestions! Dan From rockysmolin at bchacc.com Thu Jun 19 14:04:03 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Thu, 19 Jun 2008 12:04:03 -0700 Subject: [AccessD] Timer Event In-Reply-To: References: <49A286ABF515E94A8505CD14DEB721704CFFF1@CPIEMAIL-EVS1.CPIQPC.NET><042501c8d234$5dd8c9c0$0301a8c0@HAL9005> Message-ID: <043001c8d23f$3d7a3190$0301a8c0@HAL9005> Hmmm... That could be too simple. I used that once before many moons ago. I'll check it out. Thanks. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Thursday, June 19, 2008 10:56 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Timer Event Rocky, I hesitate to mention it, but what about using the built in stuff? ' Display progress in the status bar area. varReturn = SysCmd(acSysCmdInitMeter, "Doing Something...", 10) Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Thursday, June 19, 2008 10:46 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Timer Event He doesn't need a progress bar that reflects an accurate progression of the calculation but wants something that changes as it's calculating so the user knows something is going on and doesn't think the machine is hung up or in a loop. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 270.4.0/1509 - Release Date: 19/6/2008 08:00 From rockysmolin at bchacc.com Thu Jun 19 14:05:18 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Thu, 19 Jun 2008 12:05:18 -0700 Subject: [AccessD] Timer Event In-Reply-To: References: <041801c8d233$34e9c600$0301a8c0@HAL9005> Message-ID: <043101c8d23f$6a605590$0301a8c0@HAL9005> Yeah once per second is probably adequate. The calculations, however, is about 2000 lines. So that's a lot of DoEvents. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, June 19, 2008 11:01 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Timer Event Well if you put DoEvents on every other line, your timer event should fire at a more consistent interval. Of course, if you have a single line of code which takes longer then 1/4 second, then it would pause until that line was done. 1/4 second 'progress' updates seems a bit much though....if your process takes 60 seconds, you're running update progress code 240 times. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Thursday, June 19, 2008 12:38 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Timer Event I actually implemented #2 - works great - I add a period to a string of periods in a module that displays the string in a text box on the calling form. Then I can just intersperse calls to that calculation function at random. Problem is that the periods don't get added in equal time intervals. The first couple take a long time. The last few come out real fast. User wants them equal intervals. So I said we can play with lacing a few more calls through the code. He wants it different. So I'm casting about. This will be a commercially distributed product eventually so I'd like to keep it as clean as possible. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, June 19, 2008 9:47 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Timer Event Unfortunately, Access VBA is single threaded, so while code is running, it has control. The only way to let something else happen is to intersperse 'DoEvents' lines into your calculation process, which will release the thread to run any waiting events (which would allow your timer to fire). Two options I can think of for your situation. #1. Cheat. Create an .avi of a 'progress bar' and run it before your calculation starts up. The animation should run regardless of what your code is doing. Of course, it would be no real indication of the actual process. #2. Give an actual indication. Is there some determination of how far the calculation has progressed? Why not give a progress of the actual progress, and give a 'pause/stop' option too? All possible with DoEvents. To be more specific, I would need more details on this 'calculation'. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Thursday, June 19, 2008 11:24 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Timer Event Dear List: The client would like a progress box to display during a lengthy calculation - can take up to a minute and I told him that some kind of indication should appear on the form so the user knows something is happening. I implemented one solution which is OK. I have a sub which adds a period to a text box on the calling form. And so I can lace calls to that routine throughout the calculations. Problem is that it doesn't produce these periods in equal time intervals. So what he really wants now is a progress indicator that would change every 1/4 second or so, and when it got to its maximum length would start over again. Not a difficult thing to do. I thought I could use the timer event on the form that calls the calculation, but the calculation is in a Public module and so, while it is running, the timer event doesn't trigger. Is there a way around this or another approach? MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 270.4.0/1509 - Release Date: 19/6/2008 08:00 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 270.4.0/1509 - Release Date: 19/6/2008 08:00 From accessd at shaw.ca Thu Jun 19 14:23:57 2008 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 19 Jun 2008 12:23:57 -0700 Subject: [AccessD] Timer Event In-Reply-To: References: <03e801c8d228$de2439e0$0301a8c0@HAL9005> Message-ID: Hi Drew and Rocky: Cheat; is my suggestion as a timer consumes a lot of resources. MS uses this method when loading apps or doing system changes as no real indicator is accurate particularly when a series of complex events are taking place. MS also uses the infamous flexible timed process like when copying files. The indicator keeps adjusting the projected time of completion and only when the event is within seconds of the end is an accurate time displayed. You could go so far as to project a theoretical completion time... Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, June 19, 2008 9:47 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Timer Event Unfortunately, Access VBA is single threaded, so while code is running, it has control. The only way to let something else happen is to intersperse 'DoEvents' lines into your calculation process, which will release the thread to run any waiting events (which would allow your timer to fire). Two options I can think of for your situation. #1. Cheat. Create an .avi of a 'progress bar' and run it before your calculation starts up. The animation should run regardless of what your code is doing. Of course, it would be no real indication of the actual process. #2. Give an actual indication. Is there some determination of how far the calculation has progressed? Why not give a progress of the actual progress, and give a 'pause/stop' option too? All possible with DoEvents. To be more specific, I would need more details on this 'calculation'. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Thursday, June 19, 2008 11:24 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Timer Event Dear List: The client would like a progress box to display during a lengthy calculation - can take up to a minute and I told him that some kind of indication should appear on the form so the user knows something is happening. I implemented one solution which is OK. I have a sub which adds a period to a text box on the calling form. And so I can lace calls to that routine throughout the calculations. Problem is that it doesn't produce these periods in equal time intervals. So what he really wants now is a progress indicator that would change every 1/4 second or so, and when it got to its maximum length would start over again. Not a difficult thing to do. I thought I could use the timer event on the form that calls the calculation, but the calculation is in a Public module and so, while it is running, the timer event doesn't trigger. Is there a way around this or another approach? MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Jun 19 14:34:34 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 19 Jun 2008 12:34:34 -0700 Subject: [AccessD] Use a Class in a Library.mdb - Lebans' Calendar In-Reply-To: <93E300B0CA19454696A19AB25991311F@danwaters> References: <93E300B0CA19454696A19AB25991311F@danwaters> Message-ID: You have to expose the class object you're going to create in the library file, not just put it there. If I remember correctly, you need a public method for returning an instance of the class in question. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Thursday, June 19, 2008 11:33 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Use a Class in a Library.mdb - Lebans' Calendar Hello to all you class experts out there! Yesterday I downloaded Lebans' calendar - and it looks great! I worked with it yesterday in a copy of a customer system and it's working well But - this will be identically used at each customer, so I want to put the class module and the four standard modules that make up this calendar into my Library.mdb file, which is used identically at each customer. In one of the forms where the calendar will be used, the instructions are to put the following code into the Load event like this: Private Sub Form_Load() '-- Create an instance of our Class Set mc = New clsMonthCal '-- Set the hWndForm Property mc.hWndForm = Me.hWnd End Sub So, with Lebans' code out of this .mdb and placed into the Library.mdb, the second line does not compile. This .mdb references the Library.mdb. Can I change something so that I can place Leban's class module and standard modules in my Library.mdb instead of putting it in every customer's .mdb? Thanks for any help and suggestions! Dan -- 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 Jun 19 14:37:53 2008 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Thu, 19 Jun 2008 15:37:53 -0400 Subject: [AccessD] Use a Class in a Library.mdb - Lebans' Calendar Message-ID: <34C8A2AB1EF3564CB0D64DB6AFFDD5C21656DBFC@XLIVMBX35bkup.aig.com> Been there. Done that. :-) See http://www.mvps.org/access/modules/mdl0034.htm for the skinny on making classes usable in libraries. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Thursday, June 19, 2008 2:33 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Use a Class in a Library.mdb - Lebans' Calendar Hello to all you class experts out there! Yesterday I downloaded Lebans' calendar - and it looks great! I worked with it yesterday in a copy of a customer system and it's working well But - this will be identically used at each customer, so I want to put the class module and the four standard modules that make up this calendar into my Library.mdb file, which is used identically at each customer. In one of the forms where the calendar will be used, the instructions are to put the following code into the Load event like this: Private Sub Form_Load() '-- Create an instance of our Class Set mc = New clsMonthCal '-- Set the hWndForm Property mc.hWndForm = Me.hWnd End Sub So, with Lebans' code out of this .mdb and placed into the Library.mdb, the second line does not compile. This .mdb references the Library.mdb. Can I change something so that I can place Leban's class module and standard modules in my Library.mdb instead of putting it in every customer's .mdb? Thanks for any help and suggestions! Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Thu Jun 19 16:32:57 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 19 Jun 2008 23:32:57 +0200 Subject: [AccessD] Timer Event Message-ID: Hi Rocky That's a lot. Are you running many queries? Perhaps you could speed up the code replacing SQL with DAO? I've done that myself for code than ran nicely with the test data but ran slowly with real life data volumes. /gustav >>> rockysmolin at bchacc.com 19-06-2008 21:05 >>> Yeah once per second is probably adequate. The calculations, however, is about 2000 lines. So that's a lot of DoEvents. From dwaters at usinternet.com Thu Jun 19 16:44:58 2008 From: dwaters at usinternet.com (Dan Waters) Date: Thu, 19 Jun 2008 16:44:58 -0500 Subject: [AccessD] Timer Event Message-ID: Rocky, Access has a built in progress bar that I use frequently. The bar shows up as a green line in the left side of the status bar, which is at the bottom of the screen. It's simple and reliable and your customers have seen it or something like it before so no explanation will be needed. Step 1: Dim stgTitle as string Dim varReturn as variant Dim intCount as integer stgTitle = "Progress Bar Title" '-- Somehow get the count of total iterations intCount = rst.recordcount (for example) Step 2: '-- Initiate the progress bar - no green bars will be displayed yet varReturn = SysCmd(acSysCmdInitMeter, stgTitle, intCount) Step 3: intCount = 0 Do While X < Y '-- Calculations here intCount = intCount + 1 '-- Add proportional length to the progress bar varReturn = SysCmd(acSysUpdateMeter, intCount) Loop Step 4: '-- Remove the Progress Bar varReturn = SysCmd(acSysCmdClearStatus) Hope this works! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Thursday, June 19, 2008 11:24 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Timer Event Dear List: The client would like a progress box to display during a lengthy calculation - can take up to a minute and I told him that some kind of indication should appear on the form so the user knows something is happening. I implemented one solution which is OK. I have a sub which adds a period to a text box on the calling form. And so I can lace calls to that routine throughout the calculations. Problem is that it doesn't produce these periods in equal time intervals. So what he really wants now is a progress indicator that would change every 1/4 second or so, and when it got to its maximum length would start over again. Not a difficult thing to do. I thought I could use the timer event on the form that calls the calculation, but the calculation is in a Public module and so, while it is running, the timer event doesn't trigger. Is there a way around this or another approach? MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From edzedz at comcast.net Thu Jun 19 17:53:07 2008 From: edzedz at comcast.net (Edward S Zuris) Date: Thu, 19 Jun 2008 15:53:07 -0700 Subject: [AccessD] MS Word - Copy and Paste contents of compound IF mergefield... In-Reply-To: <004c01c8d211$9848e450$6401a8c0@nant> Message-ID: <014601c8d25f$3e6cc160$65dea8c0@dudley1> Maybe this will help. One clue is to turn on the MS Word Macro recorder for Word 2000 and analyze some Word VBA for a task. That and Google I was able to teach myself on how to do the following. = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = Concatenate Word Document files in Access 2000 VBA = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = ' ***************************************************** ' Merge Boiler Plate file Info ' sTmp1 = Trim$(rsBoil![zPath] & " ") sTmp2 = Trim$(rsBoil![zFileName] & " ") sTmp0 = sTmp1 & "/" & sTmp2 ' ***************************************************** ' Let Customer know what is going on ' DoCmd.Echo True, " Processing Boiler Plate: " & sTmp2 & " " & CStr(Now()) ' ***************************************************** ' Concatenate *.doc files, adding new sections ' to the bottom of the new word document ' objWd1App.Selection.InsertFile FileName:=sTmp0, Range:="", _ ConfirmConversions:=False, Link:=False, Attachment:=False = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = Stuffing data in a form field / Word Bookmark = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = ' ***************************************************** ' Get Data to merge with a Bookmark \ Form Field ' sBookData = "" sBookMark = "" sBookMark = rsBook![BookMark] sBookData = rsBook![ShowInDoc] ' ***************************************************** ' Jump to the desired Bookmark ' objWd1App.Selection.GoTo What:=wdGoToBookmark, Name:=sBookMark ' ************************************************ ' Stuff data into the desired Bookmark ' sBookData = sBookData & Space(1) objWd1App.Selection.TypeText Text:=CStr(sBookData) = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Shamil Salakhetdinov Sent: Thursday, June 19, 2008 6:37 AM To: 'Access-D' Subject: [AccessD] MS Word - Copy and Paste contents of compound IF mergefield... Hi All, I have got stuck here - I have to do the following in VBA code Context ======= - I have an MS Word document with IF Merge field having other MS Word fields as its content Task ==== - Copycat contents of the compound IF merge field including all (sub-)fields, formats etc. but do not copy "parent" IF merger field ========= It should be possible to do simple way somehow as far as I may guess - trying to find this simple solution here but not yet found it so far... Any hints, tips & tricks would be very welcome here! Thank you. -- Shamil -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Darryl.Collins at coles.com.au Thu Jun 19 16:54:12 2008 From: Darryl.Collins at coles.com.au (Darryl Collins) Date: Fri, 20 Jun 2008 07:54:12 +1000 Subject: [AccessD] SQL Server Advice Message-ID: <49DFE57FB126044B8A8B934E7AEA09ED09FD7579@WPEXCH05.colesmyer.ad.cmltd.net.au> Thank you everyone for their thoughts and input. Much appreciated :) -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Arthur Fuller Sent: Thursday, 19 June 2008 10:56 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SQL Server Advice Just to add to the list of references, I've been reading Paul Neilson's SQL Bible and it is a fount of useful information. I'm learning a ton from it. Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. From rockysmolin at bchacc.com Thu Jun 19 17:33:40 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Thu, 19 Jun 2008 15:33:40 -0700 Subject: [AccessD] Timer Event In-Reply-To: References: Message-ID: <044a01c8d25c$85d9d950$0301a8c0@HAL9005> Gustav: Legacy code - I don't want to mess with it unless I have to. It runs in a reasonable amount of time now. So there's no priority on optimizing it. IF it's necessary - I'm a big fan of DAO myself. It's a scheduling program so lots of date manipulation. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Thursday, June 19, 2008 2:33 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Timer Event Hi Rocky That's a lot. Are you running many queries? Perhaps you could speed up the code replacing SQL with DAO? I've done that myself for code than ran nicely with the test data but ran slowly with real life data volumes. /gustav >>> rockysmolin at bchacc.com 19-06-2008 21:05 >>> Yeah once per second is probably adequate. The calculations, however, is about 2000 lines. So that's a lot of DoEvents. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 270.4.0/1509 - Release Date: 19/6/2008 08:00 From rockysmolin at bchacc.com Thu Jun 19 17:35:14 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Thu, 19 Jun 2008 15:35:14 -0700 Subject: [AccessD] Timer Event In-Reply-To: References: Message-ID: <044b01c8d25c$bddeab50$0301a8c0@HAL9005> "'-- Somehow get the count of total iterations" That's going to be the trick. The Visio flowchart covers 12 pages. Lots of loops. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Thursday, June 19, 2008 2:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Timer Event Rocky, Access has a built in progress bar that I use frequently. The bar shows up as a green line in the left side of the status bar, which is at the bottom of the screen. It's simple and reliable and your customers have seen it or something like it before so no explanation will be needed. Step 1: Dim stgTitle as string Dim varReturn as variant Dim intCount as integer stgTitle = "Progress Bar Title" '-- Somehow get the count of total iterations intCount = rst.recordcount (for example) Step 2: '-- Initiate the progress bar - no green bars will be displayed yet varReturn = SysCmd(acSysCmdInitMeter, stgTitle, intCount) Step 3: intCount = 0 Do While X < Y '-- Calculations here intCount = intCount + 1 '-- Add proportional length to the progress bar varReturn = SysCmd(acSysUpdateMeter, intCount) Loop Step 4: '-- Remove the Progress Bar varReturn = SysCmd(acSysCmdClearStatus) Hope this works! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Thursday, June 19, 2008 11:24 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Timer Event Dear List: The client would like a progress box to display during a lengthy calculation - can take up to a minute and I told him that some kind of indication should appear on the form so the user knows something is happening. I implemented one solution which is OK. I have a sub which adds a period to a text box on the calling form. And so I can lace calls to that routine throughout the calculations. Problem is that it doesn't produce these periods in equal time intervals. So what he really wants now is a progress indicator that would change every 1/4 second or so, and when it got to its maximum length would start over again. Not a difficult thing to do. I thought I could use the timer event on the form that calls the calculation, but the calculation is in a Public module and so, while it is running, the timer event doesn't trigger. Is there a way around this or another approach? MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 270.4.0/1509 - Release Date: 19/6/2008 08:00 From shamil at smsconsulting.spb.ru Thu Jun 19 17:40:46 2008 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Fri, 20 Jun 2008 02:40:46 +0400 Subject: [AccessD] MS Word - Copy and Paste contents of compound IFmergefield... In-Reply-To: <014601c8d25f$3e6cc160$65dea8c0@dudley1> Message-ID: <000d01c8d25d$83d9a710$6401a8c0@nant> Hello Edward, Thank you for your response. I have got the subject task done this way (VB.NET - quick & dirty but worked well for me): Private Shared Sub ExtractEmbeddedFields2( _ ByVal wapp As Word.Application, _ ByVal wdoc As Word.Document, _ ByVal fld As Word.Field) Dim rng As Word.Range wdoc.Fields.ToggleShowCodes() fld.Select() rng = wapp.Selection.Range fld.code.Select() wapp.Selection.Copy() wdoc.Fields.ToggleShowCodes() fld.Select() rng = wapp.Selection.Range rng.Collapse(Word.WdCollapseDirection.wdCollapseStart) fld.Delete() wapp.Selection.Paste() End Sub I would be thankful if somebody gives more elegant solution here... Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Edward S Zuris Sent: Friday, June 20, 2008 2:53 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] MS Word - Copy and Paste contents of compound IFmergefield... Maybe this will help. One clue is to turn on the MS Word Macro recorder for Word 2000 and analyze some Word VBA for a task. That and Google I was able to teach myself on how to do the following. = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = Concatenate Word Document files in Access 2000 VBA = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = ' ***************************************************** ' Merge Boiler Plate file Info ' sTmp1 = Trim$(rsBoil![zPath] & " ") sTmp2 = Trim$(rsBoil![zFileName] & " ") sTmp0 = sTmp1 & "/" & sTmp2 ' ***************************************************** ' Let Customer know what is going on ' DoCmd.Echo True, " Processing Boiler Plate: " & sTmp2 & " " & CStr(Now()) ' ***************************************************** ' Concatenate *.doc files, adding new sections ' to the bottom of the new word document ' objWd1App.Selection.InsertFile FileName:=sTmp0, Range:="", _ ConfirmConversions:=False, Link:=False, Attachment:=False = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = Stuffing data in a form field / Word Bookmark = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = ' ***************************************************** ' Get Data to merge with a Bookmark \ Form Field ' sBookData = "" sBookMark = "" sBookMark = rsBook![BookMark] sBookData = rsBook![ShowInDoc] ' ***************************************************** ' Jump to the desired Bookmark ' objWd1App.Selection.GoTo What:=wdGoToBookmark, Name:=sBookMark ' ************************************************ ' Stuff data into the desired Bookmark ' sBookData = sBookData & Space(1) objWd1App.Selection.TypeText Text:=CStr(sBookData) = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Shamil Salakhetdinov Sent: Thursday, June 19, 2008 6:37 AM To: 'Access-D' Subject: [AccessD] MS Word - Copy and Paste contents of compound IF mergefield... Hi All, I have got stuck here - I have to do the following in VBA code Context ======= - I have an MS Word document with IF Merge field having other MS Word fields as its content Task ==== - Copycat contents of the compound IF merge field including all (sub-)fields, formats etc. but do not copy "parent" IF merger field ========= It should be possible to do simple way somehow as far as I may guess - trying to find this simple solution here but not yet found it so far... Any hints, tips & tricks would be very welcome here! Thank you. -- Shamil -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Jun 19 17:56:16 2008 From: dwaters at usinternet.com (Dan Waters) Date: Thu, 19 Jun 2008 17:56:16 -0500 Subject: [AccessD] Timer Event In-Reply-To: <044b01c8d25c$bddeab50$0301a8c0@HAL9005> References: <044b01c8d25c$bddeab50$0301a8c0@HAL9005> Message-ID: <9B70F89193FB4561B11E4BA67BEBCC4D@danwaters> Lets try this: | | Put this variable and this function into a standard module: | Public GintMeterCount as Integer | Public Function MeterCount() As Integer GintMeterCount = GintMeterCount + 1 MeterCount = GintMeterCount End Function | | Now put this line into your code at appropriate places: (varReturn might have to be Global) | varReturn = SysCmd(acSysCmdUpdateMeter, MeterCount) | | Now, the total iterations is simply the number of times you update the meter, or how many times you added the above line of code. However, when you do it this way you may not want to update the meter inside a loop because you might not know how many cycles that loop goes through. As long as people see the meter change at a reasonable pace, they'll be confident that the calculations are ongoing. Hope This Is Better! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Thursday, June 19, 2008 5:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Timer Event "'-- Somehow get the count of total iterations" That's going to be the trick. The Visio flowchart covers 12 pages. Lots of loops. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Thursday, June 19, 2008 2:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Timer Event Rocky, Access has a built in progress bar that I use frequently. The bar shows up as a green line in the left side of the status bar, which is at the bottom of the screen. It's simple and reliable and your customers have seen it or something like it before so no explanation will be needed. Step 1: Dim stgTitle as string Dim varReturn as variant Dim intCount as integer stgTitle = "Progress Bar Title" '-- Somehow get the count of total iterations intCount = rst.recordcount (for example) Step 2: '-- Initiate the progress bar - no green bars will be displayed yet varReturn = SysCmd(acSysCmdInitMeter, stgTitle, intCount) Step 3: intCount = 0 Do While X < Y '-- Calculations here intCount = intCount + 1 '-- Add proportional length to the progress bar varReturn = SysCmd(acSysUpdateMeter, intCount) Loop Step 4: '-- Remove the Progress Bar varReturn = SysCmd(acSysCmdClearStatus) Hope this works! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Thursday, June 19, 2008 11:24 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Timer Event Dear List: The client would like a progress box to display during a lengthy calculation - can take up to a minute and I told him that some kind of indication should appear on the form so the user knows something is happening. I implemented one solution which is OK. I have a sub which adds a period to a text box on the calling form. And so I can lace calls to that routine throughout the calculations. Problem is that it doesn't produce these periods in equal time intervals. So what he really wants now is a progress indicator that would change every 1/4 second or so, and when it got to its maximum length would start over again. Not a difficult thing to do. I thought I could use the timer event on the form that calls the calculation, but the calculation is in a Public module and so, while it is running, the timer event doesn't trigger. Is there a way around this or another approach? MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 270.4.0/1509 - Release Date: 19/6/2008 08:00 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From robert at servicexp.com Thu Jun 19 17:58:27 2008 From: robert at servicexp.com (Robert) Date: Thu, 19 Jun 2008 18:58:27 -0400 Subject: [AccessD] I give... Uncle.. In-Reply-To: <000d01c8d25d$83d9a710$6401a8c0@nant> References: <014601c8d25f$3e6cc160$65dea8c0@dudley1> <000d01c8d25d$83d9a710$6401a8c0@nant> Message-ID: <002901c8d25f$fd34ef50$f79ecdf0$@com> Holy Cow.. how in the world do you break (or create) a multiple selection group around controls In Access 2007? I have search high and low and nothing....? TIA ~Robert From jengross at gte.net Thu Jun 19 18:57:56 2008 From: jengross at gte.net (Jennifer Gross) Date: Thu, 19 Jun 2008 15:57:56 -0800 Subject: [AccessD] OT: Abducted by Aliens Scenario In-Reply-To: Message-ID: <0K2Q00K8MFWJXTT1@vms046.mailsrvcs.net> Drew, it's not that my systems need constant attention. It is that my clients are typically all very long term clients with very large appetites for moving their unique processes onto the computer or refining their processes or coordinating data flow with a vendor, or extracting data from the database for analysis in a new and different way. Once they see what is possible from a workflow and an analysis perspective by moving their paper or Excel processes to a database they can't seem to get enough of what I can do for them. For a lot of them I hold a very unique knowledge that in their mind is almost magical. They have no idea how what I do works and it is very scary to them to think that one day I might disappear and they would be left stranded. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, June 19, 2008 8:41 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Abducted by Aliens Scenario LOL, your topic reminded me of Prototype (the last school in the Naval Nuclear pipeline). The final qualification was an oral examination, where I was asked some pretty bizarre questions. I went to prototype at A1W, nicknamed Alice In Wonderland, which was a complete mockup of the #3 engine room on the USS Enterprise. (Actually, it was built before the Enterprise, thus, a 'prototype'). One of the questions was that the Starship Enterprise came into orbit and beamed the entire A1W crew onto it...what would happen to the plant!?! The next question, after I explained what would happen, and what we would have to do to recover when they beamed us back, was that S5G (an experimental sub plant next to us) fired a torpedo at us.... To answer your actual question, sort of, I tend to design my systems so that my personal involvement is usually unnecessary. The only catch to this is really .mdb corruption, which happens once in a blue moon, but any Access developer can deal with that, and it never happens on any of the systems I have running with a web interface. Right now, the only systems I have to 'support' are a few NT services I built which don't seem to 'restart' right when we reboot the servers. No big deal, and they are marked for replacement by systems we will be getting in the future. As for intellectual rights, well, I'm no expert on the legal options there. Hopefully someone else will chime in there. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Thursday, June 19, 2008 12:18 PM To: AccessD List Subject: [AccessD] OT: Abducted by Aliens Scenario Good Morning Everyone, For all of my clients I am their single point of contact for MS Access database development, modifications, complex queries, etc. I suspect that a lot of you are as well. I am interested to know what contractual and physical processes as emergency steps that you have in place to provide a modicum of continuity to the client should you be abducted by aliens or hit by a bus and no longer able to fulfill your role for your clients. How are you handling intellectual property issues? Do you install MDB or MDE to protect your copyright? In my thinking, if I were to suddenly go to the great beyond my children should inherit my copyrights as some of the systems that are single installs for my clients have the potentiality of being marketable software packages. In addition, each stand alone system has intellectual property value in and of itself. My newer contracts specify that I am only providing a license to the client to run the code. Older contracts are silent on this issue, which I have learned through legal battle means that I own the copyright. Also, aside from the copyright issues do you provide your clients with a list of individuals who could step in if you are out of commission, a means to access backup files, developer password information and any other issues that you have considered should aliens carry you off in the night. Thanks in advance for your thoughts, Jennifer -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jengross at gte.net Thu Jun 19 18:58:07 2008 From: jengross at gte.net (Jennifer Gross) Date: Thu, 19 Jun 2008 15:58:07 -0800 Subject: [AccessD] OT: Abducted by Aliens Scenario In-Reply-To: <29f585dd0806191132h3f1abb1cs3da1ec864fd9379f@mail.gmail.com> Message-ID: <0K2Q00K17FWRWYX1@vms046.mailsrvcs.net> Thanks everyone who got back to me for your insight and input. Arthur, it sounds like the laws in the US are consistent with those in Canada, absent a specific agreement transferring intellectual property rights, for a consultant-client relationship, copyright on the code stays with the developer. Having been bitten once by the copyright infringement bug I am cautious about creating a new vulnerability. One thing I learned from that experience was that there was an assumption on the part of the client that because they were paying me they owned the code. Though the law is clear on this issue and it may be common sense to us developers, the check writers seem to find it contrary to common sense - this seemed to be the steepest hurdle. According to the two different intellectual property attorneys that I dealt with, this was a very common misconception on the part of clients in the consultant-client relationship. Using a buddy system sounds like a good solution to the continuity of service issue. There are several local developers in my area that I may be able to work with on this type of arrangement. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Thursday, June 19, 2008 10:32 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Abducted by Aliens Scenario I have a loose arrangement with two good friends and colleagues. Over the years, depending on who landed the original contracts, we have from time to time hired one another to help develop an app, particularly when time is an issue. The three of us always give the other two names as references in case of aliens or Mack truck events occur, or even just vacations. I think that once or twice in the last 10 years I have had to rescue one of Joe's customers, and he has covered me while I was on vacation. Most recently, when I landed my new job in Bermuda, I was just completing an app for the Ministry of Energy, so I brought Joe on for a couple of days just so he would know something about the app and how it was designed and why I made certain decisions. I know there is going to be a Phase 2 on this project, so now Joe is in a position to hit the ground running should the need arise. Local user groups are also good for this sort of thing. I belong to the Toronto SQL Users Group and so do several colleagues with whom I've worked on a couple of projects. In fact, whenever an opportunity arises where one of us is working, we always contact each other to see if anybody's free and looking for work. As to the copyright issues, I can only speak for Canada, but case law here has it that in the absence of a specific clause stating otherwise, copyright on the code stays with the developer. This applies most often to consultant-client situations. Most employers now have a specific clause in their employment offers. Arthur On Thu, Jun 19, 2008 at 2:54 PM, Jennifer Gross wrote: > Hi Rocky, > > Thanks for this. The issue was actually brought be me by a client - > how would they maintain continuity if I suffered severe illness or > injury. The issue of copyright comes up in my mind when trying to > handle this because I had a client who had the MDB files, severed > their relationship with me and then tried to sell the code for a > substantial amount. Enough that I got attorneys involved, fought it and won. > > Basically my way of handling things is the same as yours (except for > the computer manager). I am concerned that in developing this 'emergency plan' > for my client I will inadvertently be giving them some sort of rights > to the code, as my previous client asserted they had because I was > providing them backup disks of the MDBs. This particular client that > wants an emergency plan has a system in place that others in their > industry have already approached me to adapt the system for their > organization. It has a viable market that I have not yet tapped. I > know that this is a contractual issue that will have to be negotiated > and incorporated into 'the plan'. > > Jennifer > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > Smolin at Beach Access Software > Sent: Thursday, June 19, 2008 8:36 AM > To: 'Access Developers discussion and problem solving' > Subject: Re: [AccessD] OT: Abducted by Aliens Scenario > > Short answer - nothing. > > If I die my clients, who all have mdbs, will have to find another > Access developer. What I have done is try to make my code as clear > and commented as possible for whoever takes over. Otherwise they're on their own. > There's nothing in there that's really so valuable that it represents > an asset to my vast estate or something that my lucky heirs could turn > into cash. Most of the good stuff I got from the list and the ADH > anyway. :) > > I do have a commercial product which is distributed in an mde. I > should probably escrow the code but I haven't. It's probably overkill. > > In the event that I kick, there is a guy I have asked to come in and > manage my computer - notify people, do whatever support he thinks is > needed, while Pundit figures out what to do with the product. > > Frankly, when I die, so, I think, does E-Z-MRP. > > So I don't worry about it now. And when I'm dead I won't worry about > it either. > > > Rocky Smolin > Beach Access Software > 858-259-4334 > www.e-z-mrp.com > www.bchacc.com > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer > Gross > Sent: Thursday, June 19, 2008 10:18 AM > To: AccessD List > Subject: [AccessD] OT: Abducted by Aliens Scenario > > Good Morning Everyone, > > For all of my clients I am their single point of contact for MS Access > database development, modifications, complex queries, etc. I suspect > that a lot of you are as well. I am interested to know what > contractual and physical processes as emergency steps that you have in > place to provide a modicum of continuity to the client should you be > abducted by aliens or hit by a bus and no longer able to fulfill your > role for your clients. > > How are you handling intellectual property issues? Do you install MDB > or MDE to protect your copyright? In my thinking, if I were to > suddenly go to the great beyond my children should inherit my > copyrights as some of the systems that are single installs for my > clients have the potentiality of being marketable software packages. > In addition, each stand alone system has intellectual property value > in and of itself. My newer contracts specify that I am only providing a license to the client to run the code. > Older contracts are silent on this issue, which I have learned through > legal battle means that I own the copyright. Also, aside from the > copyright issues do you provide your clients with a list of > individuals who could step in if you are out of commission, a means to > access backup files, developer password information and any other > issues that you have considered should aliens carry you off in the > night. > > Thanks in advance for your thoughts, > > Jennifer > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > No virus found in this incoming message. > Checked by AVG. > Version: 8.0.100 / Virus Database: 270.4.0/1507 - Release Date: > 18/6/2008 > 07:09 > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Jun 19 18:03:54 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Thu, 19 Jun 2008 18:03:54 -0500 Subject: [AccessD] OT: Abducted by Aliens Scenario In-Reply-To: <0K2Q00K8MFWJXTT1@vms046.mailsrvcs.net> Message-ID: I see. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Thursday, June 19, 2008 6:58 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: Abducted by Aliens Scenario Drew, it's not that my systems need constant attention. It is that my clients are typically all very long term clients with very large appetites for moving their unique processes onto the computer or refining their processes or coordinating data flow with a vendor, or extracting data from the database for analysis in a new and different way. Once they see what is possible from a workflow and an analysis perspective by moving their paper or Excel processes to a database they can't seem to get enough of what I can do for them. For a lot of them I hold a very unique knowledge that in their mind is almost magical. They have no idea how what I do works and it is very scary to them to think that one day I might disappear and they would be left stranded. Jennifer -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Thursday, June 19, 2008 8:41 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Abducted by Aliens Scenario LOL, your topic reminded me of Prototype (the last school in the Naval Nuclear pipeline). The final qualification was an oral examination, where I was asked some pretty bizarre questions. I went to prototype at A1W, nicknamed Alice In Wonderland, which was a complete mockup of the #3 engine room on the USS Enterprise. (Actually, it was built before the Enterprise, thus, a 'prototype'). One of the questions was that the Starship Enterprise came into orbit and beamed the entire A1W crew onto it...what would happen to the plant!?! The next question, after I explained what would happen, and what we would have to do to recover when they beamed us back, was that S5G (an experimental sub plant next to us) fired a torpedo at us.... To answer your actual question, sort of, I tend to design my systems so that my personal involvement is usually unnecessary. The only catch to this is really .mdb corruption, which happens once in a blue moon, but any Access developer can deal with that, and it never happens on any of the systems I have running with a web interface. Right now, the only systems I have to 'support' are a few NT services I built which don't seem to 'restart' right when we reboot the servers. No big deal, and they are marked for replacement by systems we will be getting in the future. As for intellectual rights, well, I'm no expert on the legal options there. Hopefully someone else will chime in there. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer Gross Sent: Thursday, June 19, 2008 12:18 PM To: AccessD List Subject: [AccessD] OT: Abducted by Aliens Scenario Good Morning Everyone, For all of my clients I am their single point of contact for MS Access database development, modifications, complex queries, etc. I suspect that a lot of you are as well. I am interested to know what contractual and physical processes as emergency steps that you have in place to provide a modicum of continuity to the client should you be abducted by aliens or hit by a bus and no longer able to fulfill your role for your clients. How are you handling intellectual property issues? Do you install MDB or MDE to protect your copyright? In my thinking, if I were to suddenly go to the great beyond my children should inherit my copyrights as some of the systems that are single installs for my clients have the potentiality of being marketable software packages. In addition, each stand alone system has intellectual property value in and of itself. My newer contracts specify that I am only providing a license to the client to run the code. Older contracts are silent on this issue, which I have learned through legal battle means that I own the copyright. Also, aside from the copyright issues do you provide your clients with a list of individuals who could step in if you are out of commission, a means to access backup files, developer password information and any other issues that you have considered should aliens carry you off in the night. Thanks in advance for your thoughts, Jennifer -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From ssharkins at gmail.com Thu Jun 19 18:41:40 2008 From: ssharkins at gmail.com (Susan Harkins) Date: Thu, 19 Jun 2008 19:41:40 -0400 Subject: [AccessD] I give... Uncle.. References: <014601c8d25f$3e6cc160$65dea8c0@dudley1><000d01c8d25d$83d9a710$6401a8c0@nant> <002901c8d25f$fd34ef50$f79ecdf0$@com> Message-ID: <0a9301c8d266$078011f0$2f8601c7@SusanOne> What do you mean by "multiple selection group" -- are you talking about in Design View, where you can create a group of controls? Right-click in the group and choose Ungroup from the Format menu. To create a temporary "group", hold down the Shift key while you click controls. Or, simply drag around all the controls you want to group. Then, choose Group from the Format menu. However, that seems simple enough that I probably don't understand what you're trying to do. Susan H. > Holy Cow.. how in the world do you break (or create) a multiple selection > group around controls In Access 2007? I have search high and low and > nothing....? > > > TIA > ~Robert > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From robert at servicexp.com Thu Jun 19 18:50:39 2008 From: robert at servicexp.com (Robert) Date: Thu, 19 Jun 2008 19:50:39 -0400 Subject: [AccessD] I give... Uncle.. In-Reply-To: <0a9301c8d266$078011f0$2f8601c7@SusanOne> References: <014601c8d25f$3e6cc160$65dea8c0@dudley1><000d01c8d25d$83d9a710$6401a8c0@nant> <002901c8d25f$fd34ef50$f79ecdf0$@com> <0a9301c8d266$078011f0$2f8601c7@SusanOne> Message-ID: <002a01c8d267$47b50810$d71f1830$@com> Susan, That's what I'm looking for, but I can't find it in Access 2007?? (not in the right click menu (or ribbon that I can find)) This could not be easier in prev. versions, except for Access 2007. :-) Any idea's? ~Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Thursday, June 19, 2008 7:42 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] I give... Uncle.. What do you mean by "multiple selection group" -- are you talking about in Design View, where you can create a group of controls? Right-click in the group and choose Ungroup from the Format menu. To create a temporary "group", hold down the Shift key while you click controls. Or, simply drag around all the controls you want to group. Then, choose Group from the Format menu. However, that seems simple enough that I probably don't understand what you're trying to do. Susan H. > Holy Cow.. how in the world do you break (or create) a multiple selection > group around controls In Access 2007? I have search high and low and > nothing....? > > > TIA > ~Robert > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 gmail.com Thu Jun 19 19:13:13 2008 From: ssharkins at gmail.com (Susan Harkins) Date: Thu, 19 Jun 2008 20:13:13 -0400 Subject: [AccessD] I give... Uncle.. References: <014601c8d25f$3e6cc160$65dea8c0@dudley1><000d01c8d25d$83d9a710$6401a8c0@nant> <002901c8d25f$fd34ef50$f79ecdf0$@com><0a9301c8d266$078011f0$2f8601c7@SusanOne> <002a01c8d267$47b50810$d71f1830$@com> Message-ID: <0afc01c8d26a$9b810770$2f8601c7@SusanOne> I'm not sure they have a permanent home in 2007, but you can add them to the Quick Access Toolbar (that little one at the top left). Click the Office button and click Access Options. Click Customize and then choose All Commands from the Choose Commands From control's dropdown list. That updates the list just below. Select Group and Ungroup and add them to the list to the right (click the Add button between the two lists). Then, click OK and they'll appear on the Quick Access Toolbar. There's probably a better place to put them, but this at least will allow you to use them right now. Susan H. Subject: Re: [AccessD] I give... Uncle.. > Susan, > That's what I'm looking for, but I can't find it in Access 2007?? (not in > the right click menu (or ribbon that I can find)) This could not be easier > in prev. versions, except for Access 2007. :-) > > > Any idea's? > > ~Robert > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins > Sent: Thursday, June 19, 2008 7:42 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] I give... Uncle.. > > What do you mean by "multiple selection group" -- are you talking about in > Design View, where you can create a group of controls? Right-click in the > group and choose Ungroup from the Format menu. > > To create a temporary "group", hold down the Shift key while you click > controls. Or, simply drag around all the controls you want to group. Then, > choose Group from the Format menu. > > However, that seems simple enough that I probably don't understand what > you're trying to do. > > Susan H. > > >> Holy Cow.. how in the world do you break (or create) a multiple selection >> group around controls In Access 2007? I have search high and low and >> nothing....? >> >> >> TIA >> ~Robert >> >> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From Darryl.Collins at coles.com.au Thu Jun 19 19:28:15 2008 From: Darryl.Collins at coles.com.au (Darryl Collins) Date: Fri, 20 Jun 2008 10:28:15 +1000 Subject: [AccessD] Timer Event Message-ID: <49DFE57FB126044B8A8B934E7AEA09ED09FD757F@WPEXCH05.colesmyer.ad.cmltd.net.au> I think it has already been implied, but is there any way you can speed up the calculation itself you you don't need a progress bar at all? I would imagine that you may have already considered this, but hey, just in case.... regards Darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin at Beach Access Software Sent: Friday, 20 June 2008 8:35 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Timer Event "'-- Somehow get the count of total iterations" That's going to be the trick. The Visio flowchart covers 12 pages. Lots of loops. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Thursday, June 19, 2008 2:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Timer Event Rocky, Access has a built in progress bar that I use frequently. The bar shows up as a green line in the left side of the status bar, which is at the bottom of the screen. It's simple and reliable and your customers have seen it or something like it before so no explanation will be needed. Step 1: Dim stgTitle as string Dim varReturn as variant Dim intCount as integer stgTitle = "Progress Bar Title" '-- Somehow get the count of total iterations intCount = rst.recordcount (for example) Step 2: '-- Initiate the progress bar - no green bars will be displayed yet varReturn = SysCmd(acSysCmdInitMeter, stgTitle, intCount) Step 3: intCount = 0 Do While X < Y '-- Calculations here intCount = intCount + 1 '-- Add proportional length to the progress bar varReturn = SysCmd(acSysUpdateMeter, intCount) Loop Step 4: '-- Remove the Progress Bar varReturn = SysCmd(acSysCmdClearStatus) Hope this works! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Thursday, June 19, 2008 11:24 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Timer Event Dear List: The client would like a progress box to display during a lengthy calculation - can take up to a minute and I told him that some kind of indication should appear on the form so the user knows something is happening. I implemented one solution which is OK. I have a sub which adds a period to a text box on the calling form. And so I can lace calls to that routine throughout the calculations. Problem is that it doesn't produce these periods in equal time intervals. So what he really wants now is a progress indicator that would change every 1/4 second or so, and when it got to its maximum length would start over again. Not a difficult thing to do. I thought I could use the timer event on the form that calls the calculation, but the calculation is in a Public module and so, while it is running, the timer event doesn't trigger. Is there a way around this or another approach? MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 270.4.0/1509 - Release Date: 19/6/2008 08:00 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. From robert at servicexp.com Thu Jun 19 19:51:56 2008 From: robert at servicexp.com (Robert) Date: Thu, 19 Jun 2008 20:51:56 -0400 Subject: [AccessD] I give... Uncle.. In-Reply-To: <0afc01c8d26a$9b810770$2f8601c7@SusanOne> References: <014601c8d25f$3e6cc160$65dea8c0@dudley1><000d01c8d25d$83d9a710$6401a8c0@nant> <002901c8d25f$fd34ef50$f79ecdf0$@com><0a9301c8d266$078011f0$2f8601c7@SusanOne> <002a01c8d267$47b50810$d71f1830$@com> <0afc01c8d26a$9b810770$2f8601c7@SusanOne> Message-ID: <002b01c8d26f$d7829040$8687b0c0$@com> Susan, Thank You, Thank You, Thank You. I looked everywhere (almost :-)) for those buttons... ~Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Thursday, June 19, 2008 8:13 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] I give... Uncle.. I'm not sure they have a permanent home in 2007, but you can add them to the Quick Access Toolbar (that little one at the top left). Click the Office button and click Access Options. Click Customize and then choose All Commands from the Choose Commands From control's dropdown list. That updates the list just below. Select Group and Ungroup and add them to the list to the right (click the Add button between the two lists). Then, click OK and they'll appear on the Quick Access Toolbar. There's probably a better place to put them, but this at least will allow you to use them right now. Susan H. Subject: Re: [AccessD] I give... Uncle.. > Susan, > That's what I'm looking for, but I can't find it in Access 2007?? (not in > the right click menu (or ribbon that I can find)) This could not be easier > in prev. versions, except for Access 2007. :-) > > > Any idea's? > > ~Robert > > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins > Sent: Thursday, June 19, 2008 7:42 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] I give... Uncle.. > > What do you mean by "multiple selection group" -- are you talking about in > Design View, where you can create a group of controls? Right-click in the > group and choose Ungroup from the Format menu. > > To create a temporary "group", hold down the Shift key while you click > controls. Or, simply drag around all the controls you want to group. Then, > choose Group from the Format menu. > > However, that seems simple enough that I probably don't understand what > you're trying to do. > > Susan H. > > >> Holy Cow.. how in the world do you break (or create) a multiple selection >> group around controls In Access 2007? I have search high and low and >> nothing....? >> >> >> TIA >> ~Robert >> >> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Darryl.Collins at coles.com.au Thu Jun 19 20:22:04 2008 From: Darryl.Collins at coles.com.au (Darryl Collins) Date: Fri, 20 Jun 2008 11:22:04 +1000 Subject: [AccessD] SQL Server Advice Message-ID: <49DFE57FB126044B8A8B934E7AEA09ED09FD7586@WPEXCH05.colesmyer.ad.cmltd.net.au> heh! Susan - it seems like your book is too heavy for most of the folks at Amazon to post to Oz... I will keep snooping around. cheers Darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Susan Harkins Sent: Thursday, 19 June 2008 10:40 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SQL Server Advice > ...our own Martin Reed and Susan Harkins wrote a "SQL: Access to SQL > Server" > book awhile back that I found particularly useful and was still available > on > Amazon last time I looked ...and since both still read this list, you > can't > beat the ability to ask questions if you run into a problem. ==========Martin wrote the second half and yes, he would be the person I'd ask on this subject. :) Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. From newsgrps at dalyn.co.nz Thu Jun 19 20:57:20 2008 From: newsgrps at dalyn.co.nz (David Emerson) Date: Fri, 20 Jun 2008 13:57:20 +1200 Subject: [AccessD] SQL Server Advice In-Reply-To: <49DFE57FB126044B8A8B934E7AEA09ED09FD7586@WPEXCH05.colesmye r.ad.cmltd.net.au> References: <49DFE57FB126044B8A8B934E7AEA09ED09FD7586@WPEXCH05.colesmyer.ad.cmltd.net.au> Message-ID: <20080620015519.BMBQ22898.mta04.xtra.co.nz@Dalyn.dalyn.co.nz> Darryl, I managed to get it posted to NZ. Maybe they thought that the Ozzies don't need any more programming help ;-) David At 20/06/2008, you wrote: >heh! Susan - it seems like your book is too heavy for most of the >folks at Amazon to post to Oz... I will keep snooping around. > >cheers >Darryl. > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Susan Harkins >Sent: Thursday, 19 June 2008 10:40 PM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] SQL Server Advice > > > > > > ...our own Martin Reed and Susan Harkins wrote a "SQL: Access to SQL > > Server" > > book awhile back that I found particularly useful and was still available > > on > > Amazon last time I looked ...and since both still read this list, you > > can't > > beat the ability to ask questions if you run into a problem. > >==========Martin wrote the second half and yes, he would be the person I'd >ask on this subject. :) > >Susan H. > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >This email and any attachments may contain privileged and >confidential information and are intended for the named addressee >only. If you have received this e-mail in error, please notify the >sender and delete this e-mail immediately. Any confidentiality, >privilege or copyright is not waived or lost because this e-mail has >been sent to you in error. It is your responsibility to check this >e-mail and any attachments for viruses. No warranty is made that >this material is free from computer virus or any other defect or >error. Any loss/damage incurred by using this material is not the >sender's responsibility. The sender's entire liability will be >limited to resupplying the material. > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Thu Jun 19 20:58:25 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Thu, 19 Jun 2008 18:58:25 -0700 Subject: [AccessD] Timer Event In-Reply-To: <49DFE57FB126044B8A8B934E7AEA09ED09FD757F@WPEXCH05.colesmyer.ad.cmltd.net.au> References: <49DFE57FB126044B8A8B934E7AEA09ED09FD757F@WPEXCH05.colesmyer.ad.cmltd.net.au> Message-ID: <046101c8d279$20ea2230$0301a8c0@HAL9005> Legacy code. I don't want to mess with it if I can avoid it. It runs fast enough - some things just take 1-5 minutes. Actually, at this point it's taking less than a minute but when it gets distributed it's hard to know how much data and in what form a user will have. Could conceivably run a few minutes. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Thursday, June 19, 2008 5:28 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Timer Event I think it has already been implied, but is there any way you can speed up the calculation itself you you don't need a progress bar at all? I would imagine that you may have already considered this, but hey, just in case.... regards Darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin at Beach Access Software Sent: Friday, 20 June 2008 8:35 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Timer Event "'-- Somehow get the count of total iterations" That's going to be the trick. The Visio flowchart covers 12 pages. Lots of loops. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Thursday, June 19, 2008 2:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Timer Event Rocky, Access has a built in progress bar that I use frequently. The bar shows up as a green line in the left side of the status bar, which is at the bottom of the screen. It's simple and reliable and your customers have seen it or something like it before so no explanation will be needed. Step 1: Dim stgTitle as string Dim varReturn as variant Dim intCount as integer stgTitle = "Progress Bar Title" '-- Somehow get the count of total iterations intCount = rst.recordcount (for example) Step 2: '-- Initiate the progress bar - no green bars will be displayed yet varReturn = SysCmd(acSysCmdInitMeter, stgTitle, intCount) Step 3: intCount = 0 Do While X < Y '-- Calculations here intCount = intCount + 1 '-- Add proportional length to the progress bar varReturn = SysCmd(acSysUpdateMeter, intCount) Loop Step 4: '-- Remove the Progress Bar varReturn = SysCmd(acSysCmdClearStatus) Hope this works! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Thursday, June 19, 2008 11:24 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Timer Event Dear List: The client would like a progress box to display during a lengthy calculation - can take up to a minute and I told him that some kind of indication should appear on the form so the user knows something is happening. I implemented one solution which is OK. I have a sub which adds a period to a text box on the calling form. And so I can lace calls to that routine throughout the calculations. Problem is that it doesn't produce these periods in equal time intervals. So what he really wants now is a progress indicator that would change every 1/4 second or so, and when it got to its maximum length would start over again. Not a difficult thing to do. I thought I could use the timer event on the form that calls the calculation, but the calculation is in a Public module and so, while it is running, the timer event doesn't trigger. Is there a way around this or another approach? MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 270.4.0/1509 - Release Date: 19/6/2008 08:00 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 270.4.0/1509 - Release Date: 19/6/2008 08:00 From wdhindman at dejpolsystems.com Thu Jun 19 21:03:11 2008 From: wdhindman at dejpolsystems.com (William Hindman) Date: Thu, 19 Jun 2008 22:03:11 -0400 Subject: [AccessD] Timer Event References: <03e801c8d228$de2439e0$0301a8c0@HAL9005> Message-ID: http://www.rogersaccesslibrary.com/Otherdownload.asp?SampleName='ProgressBar.mdb' ...Lambert has a pure Access code progress bar sample app that uses the API rather than a timer ...might be what you are looking for. William "Sen. McCain will bring a lifetime of experience to the campaign... Sen. Obama will bring a speech that he gave." Hillary Clinton -------------------------------------------------- From: "Rocky Smolin at Beach Access Software" Sent: Thursday, June 19, 2008 12:23 PM To: "'Access Developers discussion and problem solving'" Subject: [AccessD] Timer Event > > > > > Dear List: > > The client would like a progress box to display during a lengthy > calculation > - can take up to a minute and I told him that some kind of indication > should > appear on the form so the user knows something is happening. > > I implemented one solution which is OK. I have a sub which adds a period > to > a text box on the calling form. And so I can lace calls to that routine > throughout the calculations. Problem is that it doesn't produce these > periods in equal time intervals. > > So what he really wants now is a progress indicator that would change > every > 1/4 second or so, and when it got to its maximum length would start over > again. Not a difficult thing to do. > > I thought I could use the timer event on the form that calls the > calculation, but the calculation is in a Public module and so, while it is > running, the timer event doesn't trigger. > > Is there a way around this or another approach? > > MTIA > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > www.e-z-mrp.com > > www.bchacc.com > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From stephen at bondsoftware.co.nz Thu Jun 19 21:13:11 2008 From: stephen at bondsoftware.co.nz (Stephen) Date: Fri, 20 Jun 2008 14:13:11 +1200 Subject: [AccessD] SQL Server Advice Message-ID: <569E08FC48047F4F848850B118195FBE01A142@server.BondSoftware.local> Darryl. Amazon.com posted it to me in New Zealand a couple of years ago! Just now, I placed a phony-order for the book to be shipped to NZ and it was $usd49.44 ... plus shipping 9.98 for slow pony, or, 35.98 for Priority International courier. It must be retribution. They must know you just pilfered our best rugby coach ... ;-> Stephen Bond -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Friday, 20 June 2008 1:31 p.m. To: Stephen Subject: Re: [AccessD] SQL Server Advice heh! Susan - it seems like your book is too heavy for most of the folks at Amazon to post to Oz... I will keep snooping around. cheers Darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Susan Harkins Sent: Thursday, 19 June 2008 10:40 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SQL Server Advice > ...our own Martin Reed and Susan Harkins wrote a "SQL: Access to SQL > Server" > book awhile back that I found particularly useful and was still > available on Amazon last time I looked ...and since both still read > this list, you can't beat the ability to ask questions if you run into > a problem. ==========Martin wrote the second half and yes, he would be the person I'd ask on this subject. :) Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at gmail.com Fri Jun 20 07:59:42 2008 From: ssharkins at gmail.com (Susan Harkins) Date: Fri, 20 Jun 2008 08:59:42 -0400 Subject: [AccessD] SQL Server Advice References: <49DFE57FB126044B8A8B934E7AEA09ED09FD7586@WPEXCH05.colesmyer.ad.cmltd.net.au> Message-ID: <008c01c8d2d5$9295b190$2f8601c7@SusanOne> Well drat! You might talk to Martin or Apress. Martin still has a relationship with the Apress folks and maybe they're still selling them. Maybe you can get a copy that way. I'd send you a copy, but the author copies on that one disappeared fast. I use mine a lot. I don't see how some of you keep all that stuff crammed into your brains -- I have to look stuff up. Susan H. > > > heh! Susan - it seems like your book is too heavy for most of the folks at > Amazon to post to Oz... I will keep snooping around. From mwp.reid at qub.ac.uk Fri Jun 20 08:13:19 2008 From: mwp.reid at qub.ac.uk (Martin W Reid) Date: Fri, 20 Jun 2008 14:13:19 +0100 Subject: [AccessD] SQL Server Advice In-Reply-To: <008c01c8d2d5$9295b190$2f8601c7@SusanOne> References: <49DFE57FB126044B8A8B934E7AEA09ED09FD7586@WPEXCH05.colesmyer.ad.cmltd.net.au>, <008c01c8d2d5$9295b190$2f8601c7@SusanOne> Message-ID: I will ask at Apress. Martin Martin WP Reid Information Services Queen's University Riddel Hall 185 Stranmillis Road Belfast BT9 5EE Tel : 02890974465 Email : mwp.reid at qub.ac.uk ________________________________________ From: accessd-bounces at databaseadvisors.com [accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins [ssharkins at gmail.com] Sent: 20 June 2008 13:59 To: Access Developers discussion and problem solving Subject: Re: [AccessD] SQL Server Advice Well drat! You might talk to Martin or Apress. Martin still has a relationship with the Apress folks and maybe they're still selling them. Maybe you can get a copy that way. I'd send you a copy, but the author copies on that one disappeared fast. I use mine a lot. I don't see how some of you keep all that stuff crammed into your brains -- I have to look stuff up. Susan H. > > > heh! Susan - it seems like your book is too heavy for most of the folks at > Amazon to post to Oz... I will keep snooping around. -- 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 Jun 20 08:25:10 2008 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Fri, 20 Jun 2008 08:25:10 -0500 Subject: [AccessD] Timer Event Message-ID: <34C8A2AB1EF3564CB0D64DB6AFFDD5C21656DD2E@XLIVMBX35bkup.aig.com> Lots of software puts up progress bar that purports to show percentage complete information, but of course we all have seen examples where it's clearly only a very rough estimate: I like to talk about "Microsoft Minutes" when looking at the famous file copy progress indicator. The main thing is to give the user *some* indicator that things are moving along. So using SysCmd is not such a bad idea. You just use an arbitrary count of the "total number of steps", say 20. So you initialize the meter: SysCmd acSysCmdInitMeter, "Running a huge calculation", 20 Then in various places (20 of them) in your lengthy calculation process, as it moves from one step to the next increment a counter and call SysCmd to move the progress meter. n = n + 1 SysCmd acSysCmdUpdateMeter, n And at the end reset the meter SysCmd acSysCmdClearStatus HTH Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Thursday, June 19, 2008 6:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Timer Event "'-- Somehow get the count of total iterations" That's going to be the trick. The Visio flowchart covers 12 pages. Lots of loops. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Thursday, June 19, 2008 2:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Timer Event Rocky, Access has a built in progress bar that I use frequently. The bar shows up as a green line in the left side of the status bar, which is at the bottom of the screen. It's simple and reliable and your customers have seen it or something like it before so no explanation will be needed. Step 1: Dim stgTitle as string Dim varReturn as variant Dim intCount as integer stgTitle = "Progress Bar Title" '-- Somehow get the count of total iterations intCount = rst.recordcount (for example) Step 2: '-- Initiate the progress bar - no green bars will be displayed yet varReturn = SysCmd(acSysCmdInitMeter, stgTitle, intCount) Step 3: intCount = 0 Do While X < Y '-- Calculations here intCount = intCount + 1 '-- Add proportional length to the progress bar varReturn = SysCmd(acSysUpdateMeter, intCount) Loop Step 4: '-- Remove the Progress Bar varReturn = SysCmd(acSysCmdClearStatus) Hope this works! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Thursday, June 19, 2008 11:24 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Timer Event Dear List: The client would like a progress box to display during a lengthy calculation - can take up to a minute and I told him that some kind of indication should appear on the form so the user knows something is happening. I implemented one solution which is OK. I have a sub which adds a period to a text box on the calling form. And so I can lace calls to that routine throughout the calculations. Problem is that it doesn't produce these periods in equal time intervals. So what he really wants now is a progress indicator that would change every 1/4 second or so, and when it got to its maximum length would start over again. Not a difficult thing to do. I thought I could use the timer event on the form that calls the calculation, but the calculation is in a Public module and so, while it is running, the timer event doesn't trigger. Is there a way around this or another approach? MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 270.4.0/1509 - Release Date: 19/6/2008 08:00 -- 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 Jun 20 08:27:36 2008 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Fri, 20 Jun 2008 08:27:36 -0500 Subject: [AccessD] Timer Event Message-ID: <34C8A2AB1EF3564CB0D64DB6AFFDD5C21656DD31@XLIVMBX35bkup.aig.com> I have to say that it's pretty lame, has bugs, and I've not look at it since for ever. In any case, like SysCmd it depends on you knowing how many steps there are to begin with. Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Thursday, June 19, 2008 10:03 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Timer Event http://www.rogersaccesslibrary.com/Otherdownload.asp?SampleName='ProgressBar .mdb' ...Lambert has a pure Access code progress bar sample app that uses the API rather than a timer ...might be what you are looking for. William "Sen. McCain will bring a lifetime of experience to the campaign... Sen. Obama will bring a speech that he gave." Hillary Clinton -------------------------------------------------- From: "Rocky Smolin at Beach Access Software" Sent: Thursday, June 19, 2008 12:23 PM To: "'Access Developers discussion and problem solving'" Subject: [AccessD] Timer Event > > > > > Dear List: > > The client would like a progress box to display during a lengthy > calculation > - can take up to a minute and I told him that some kind of indication > should appear on the form so the user knows something is happening. > > I implemented one solution which is OK. I have a sub which adds a > period to a text box on the calling form. And so I can lace calls to > that routine throughout the calculations. Problem is that it doesn't > produce these periods in equal time intervals. > > So what he really wants now is a progress indicator that would change > every > 1/4 second or so, and when it got to its maximum length would start > over again. Not a difficult thing to do. > > I thought I could use the timer event on the form that calls the > calculation, but the calculation is in a Public module and so, while > it is running, the timer event doesn't trigger. > > Is there a way around this or another approach? > > MTIA > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > www.e-z-mrp.com > > www.bchacc.com > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Fri Jun 20 08:53:50 2008 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 20 Jun 2008 08:53:50 -0500 Subject: [AccessD] Timer Event Message-ID: <491BE2286C844749B1C25B055E4591B6@danwaters> (Note: I originally sent this yesterday - 2nd try!) Lets try this: | | Put this variable and this function into a standard module: | Public GintMeterCount as Integer | Public Function MeterCount() As Integer GintMeterCount = GintMeterCount + 1 MeterCount = GintMeterCount End Function | | Now put this line into your code at appropriate places: (varReturn might have to be Global) | varReturn = SysCmd(acSysCmdUpdateMeter, MeterCount) | | Now, the total iterations is simply the number of times you update the meter, or how many times you added the above line of code. However, when you do it this way you may not want to update the meter inside a loop because you might not know how many cycles that loop goes through. As long as people see the meter change at a reasonable pace, they'll be confident that the calculations are ongoing. Hope This Is Better! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Thursday, June 19, 2008 5:35 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Timer Event "'-- Somehow get the count of total iterations" That's going to be the trick. The Visio flowchart covers 12 pages. Lots of loops. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Thursday, June 19, 2008 2:45 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Timer Event Rocky, Access has a built in progress bar that I use frequently. The bar shows up as a green line in the left side of the status bar, which is at the bottom of the screen. It's simple and reliable and your customers have seen it or something like it before so no explanation will be needed. Step 1: Dim stgTitle as string Dim varReturn as variant Dim intCount as integer stgTitle = "Progress Bar Title" '-- Somehow get the count of total iterations intCount = rst.recordcount (for example) Step 2: '-- Initiate the progress bar - no green bars will be displayed yet varReturn = SysCmd(acSysCmdInitMeter, stgTitle, intCount) Step 3: intCount = 0 Do While X < Y '-- Calculations here intCount = intCount + 1 '-- Add proportional length to the progress bar varReturn = SysCmd(acSysUpdateMeter, intCount) Loop Step 4: '-- Remove the Progress Bar varReturn = SysCmd(acSysCmdClearStatus) Hope this works! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Thursday, June 19, 2008 11:24 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Timer Event Dear List: The client would like a progress box to display during a lengthy calculation - can take up to a minute and I told him that some kind of indication should appear on the form so the user knows something is happening. I implemented one solution which is OK. I have a sub which adds a period to a text box on the calling form. And so I can lace calls to that routine throughout the calculations. Problem is that it doesn't produce these periods in equal time intervals. So what he really wants now is a progress indicator that would change every 1/4 second or so, and when it got to its maximum length would start over again. Not a difficult thing to do. I thought I could use the timer event on the form that calls the calculation, but the calculation is in a Public module and so, while it is running, the timer event doesn't trigger. Is there a way around this or another approach? MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com No virus found in this incoming message. Checked by AVG. Version: 8.0.100 / Virus Database: 270.4.0/1509 - Release Date: 19/6/2008 08:00 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Fri Jun 20 08:57:18 2008 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 20 Jun 2008 08:57:18 -0500 Subject: [AccessD] SQL Server Advice In-Reply-To: <008c01c8d2d5$9295b190$2f8601c7@SusanOne> References: <49DFE57FB126044B8A8B934E7AEA09ED09FD7586@WPEXCH05.colesmyer.ad.cmltd.net.au> <008c01c8d2d5$9295b190$2f8601c7@SusanOne> Message-ID: <60CAAF1F23F74193A6C78CF3A21371E2@danwaters> I just came across this article from FMS, Inc. titled, "Database Evolution: Microsoft Access within an Organization's Database Strategy." http://www.fmsinc.com/tpapers/genaccess/DBOD.asp#solutioncosts It's not a how to, but it covers many subjects related to using or Access or using something else. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Friday, June 20, 2008 8:00 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SQL Server Advice Well drat! You might talk to Martin or Apress. Martin still has a relationship with the Apress folks and maybe they're still selling them. Maybe you can get a copy that way. I'd send you a copy, but the author copies on that one disappeared fast. I use mine a lot. I don't see how some of you keep all that stuff crammed into your brains -- I have to look stuff up. Susan H. > > > heh! Susan - it seems like your book is too heavy for most of the folks at > Amazon to post to Oz... I will keep snooping around. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at verizon.net Fri Jun 20 09:01:10 2008 From: jimdettman at verizon.net (Jim Dettman) Date: Fri, 20 Jun 2008 10:01:10 -0400 Subject: [AccessD] SQL Server Advice In-Reply-To: <29f585dd0806190555v62fe590fnf576ca68f67e9361@mail.gmail.com> References: <49DFE57FB126044B8A8B934E7AEA09ED09FD7559@WPEXCH05.colesmyer.ad.cmltd.net.au> <3243BE0C366D43B0B47EA788DE1F0E67@jislaptopdev> <058601c8d209$9fcd9c50$2f8601c7@SusanOne> <29f585dd0806190555v62fe590fnf576ca68f67e9361@mail.gmail.com> Message-ID: <008a01c8d2de$188fd070$8abea8c0@XPS> I would second that. Published by Wiley. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Thursday, June 19, 2008 8:56 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SQL Server Advice Just to add to the list of references, I've been reading Paul Neilson's SQL Bible and it is a fount of useful information. I'm learning a ton from it. Arthur -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From fuller.artful at gmail.com Fri Jun 20 04:54:44 2008 From: fuller.artful at gmail.com (Arthur Fuller) Date: Fri, 20 Jun 2008 06:54:44 -0300 Subject: [AccessD] OT: Abducted by Aliens Scenario In-Reply-To: <0K2Q00K17FWRWYX1@vms046.mailsrvcs.net> References: <29f585dd0806191132h3f1abb1cs3da1ec864fd9379f@mail.gmail.com> <0K2Q00K17FWRWYX1@vms046.mailsrvcs.net> Message-ID: <29f585dd0806200254x12af03fcq390c43683647828b@mail.gmail.com> I cannot say enough good things about the buddy system. It has worked out splendidly for me. And I further suggest that you attempt to find a local user group, and if there isn't one, then form one. It is constantly educational to me, not to mention making new friends and alliances. At our SQL group, which for a couple of years has remained at quantity 20 or so, word is getting around and we recently had 50 attend. This is way cool. We sort of do it like AA, you have to stand up on your first visit and say, "My name is Jennifer, and I am SQLholic." LOL. (God, I think I have got to go patent that word!) The astonishing thing about our SQL group is that of the core 20 or so, 6 or 7 of us have written books on the subj On Thu, Jun 19, 2008 at 8:58 PM, Jennifer Gross wrote: > Thanks everyone who got back to me for your insight and input. Arthur, it > sounds like the laws in the US are consistent with those in Canada, absent > a > specific agreement transferring intellectual property rights, for a > consultant-client relationship, copyright on the code stays with the > developer. > > Having been bitten once by the copyright infringement bug I am cautious > about creating a new vulnerability. One thing I learned from that > experience was that there was an assumption on the part of the client that > because they were paying me they owned the code. Though the law is clear > on > this issue and it may be common sense to us developers, the check writers > seem to find it contrary to common sense - this seemed to be the steepest > hurdle. According to the two different intellectual property attorneys > that > I dealt with, this was a very common misconception on the part of clients > in > the consultant-client relationship. > > Using a buddy system sounds like a good solution to the continuity of > service issue. There are several local developers in my area that I may be > able to work with on this type of arrangement. > > Jennifer > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller > Sent: Thursday, June 19, 2008 10:32 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] OT: Abducted by Aliens Scenario > > I have a loose arrangement with two good friends and colleagues. Over the > years, depending on who landed the original contracts, we have from time to > time hired one another to help develop an app, particularly when time is an > issue. The three of us always give the other two names as references in > case > of aliens or Mack truck events occur, or even just vacations. I think that > once or twice in the last 10 years I have had to rescue one of Joe's > customers, and he has covered me while I was on vacation. Most recently, > when I landed my new job in Bermuda, I was just completing an app for the > Ministry of Energy, so I brought Joe on for a couple of days just so he > would know something about the app and how it was designed and why I made > certain decisions. I know there is going to be a Phase 2 on this project, > so > now Joe is in a position to hit the ground running should the need arise. > > Local user groups are also good for this sort of thing. I belong to the > Toronto SQL Users Group and so do several colleagues with whom I've worked > on a couple of projects. In fact, whenever an opportunity arises where one > of us is working, we always contact each other to see if anybody's free and > looking for work. > > As to the copyright issues, I can only speak for Canada, but case law here > has it that in the absence of a specific clause stating otherwise, > copyright > on the code stays with the developer. This applies most often to > consultant-client situations. Most employers now have a specific clause in > their employment offers. > Arthur > > On Thu, Jun 19, 2008 at 2:54 PM, Jennifer Gross wrote: > > > Hi Rocky, > > > > Thanks for this. The issue was actually brought be me by a client - > > how would they maintain continuity if I suffered severe illness or > > injury. The issue of copyright comes up in my mind when trying to > > handle this because I had a client who had the MDB files, severed > > their relationship with me and then tried to sell the code for a > > substantial amount. Enough that I got attorneys involved, fought it and > won. > > > > Basically my way of handling things is the same as yours (except for > > the computer manager). I am concerned that in developing this 'emergency > plan' > > for my client I will inadvertently be giving them some sort of rights > > to the code, as my previous client asserted they had because I was > > providing them backup disks of the MDBs. This particular client that > > wants an emergency plan has a system in place that others in their > > industry have already approached me to adapt the system for their > > organization. It has a viable market that I have not yet tapped. I > > know that this is a contractual issue that will have to be negotiated > > and incorporated into 'the plan'. > > > > Jennifer > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky > > Smolin at Beach Access Software > > Sent: Thursday, June 19, 2008 8:36 AM > > To: 'Access Developers discussion and problem solving' > > Subject: Re: [AccessD] OT: Abducted by Aliens Scenario > > > > Short answer - nothing. > > > > If I die my clients, who all have mdbs, will have to find another > > Access developer. What I have done is try to make my code as clear > > and commented as possible for whoever takes over. Otherwise they're on > their own. > > There's nothing in there that's really so valuable that it represents > > an asset to my vast estate or something that my lucky heirs could turn > > into cash. Most of the good stuff I got from the list and the ADH > > anyway. :) > > > > I do have a commercial product which is distributed in an mde. I > > should probably escrow the code but I haven't. It's probably overkill. > > > > In the event that I kick, there is a guy I have asked to come in and > > manage my computer - notify people, do whatever support he thinks is > > needed, while Pundit figures out what to do with the product. > > > > Frankly, when I die, so, I think, does E-Z-MRP. > > > > So I don't worry about it now. And when I'm dead I won't worry about > > it either. > > > > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > www.e-z-mrp.com > > www.bchacc.com > > > > > > > > -----Original Message----- > > From: accessd-bounces at databaseadvisors.com > > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jennifer > > Gross > > Sent: Thursday, June 19, 2008 10:18 AM > > To: AccessD List > > Subject: [AccessD] OT: Abducted by Aliens Scenario > > > > Good Morning Everyone, > > > > For all of my clients I am their single point of contact for MS Access > > database development, modifications, complex queries, etc. I suspect > > that a lot of you are as well. I am interested to know what > > contractual and physical processes as emergency steps that you have in > > place to provide a modicum of continuity to the client should you be > > abducted by aliens or hit by a bus and no longer able to fulfill your > > role for your clients. > > > > How are you handling intellectual property issues? Do you install MDB > > or MDE to protect your copyright? In my thinking, if I were to > > suddenly go to the great beyond my children should inherit my > > copyrights as some of the systems that are single installs for my > > clients have the potentiality of being marketable software packages. > > In addition, each stand alone system has intellectual property value > > in and of itself. My newer contracts specify that I am only providing a > license to the client to run the code. > > Older contracts are silent on this issue, which I have learned through > > legal battle means that I own the copyright. Also, aside from the > > copyright issues do you provide your clients with a list of > > individuals who could step in if you are out of commission, a means to > > access backup files, developer password information and any other > > issues that you have considered should aliens carry you off in the > > night. > > > > Thanks in advance for your thoughts, > > > > Jennifer > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > No virus found in this incoming message. > > Checked by AVG. > > Version: 8.0.100 / Virus Database: 270.4.0/1507 - Release Date: > > 18/6/2008 > > 07:09 > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From dwaters at usinternet.com Fri Jun 20 10:42:57 2008 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 20 Jun 2008 10:42:57 -0500 Subject: [AccessD] Using 'IN' vs. Using Table Links Message-ID: <07F53FD0295D434597B1E149D99143BB@danwaters> When inserting data into a table I can do this if I have a table link to another database file: stg = "INSERT INTO tblSomeTable (Field1, Field2, Field3)" _ & " VALUES '" & txtField1 & "', '" & txtField2 & "', '" & txtField3 & "')" DoCmd.RunSQL stg Or I can do this without a table link to another database file: stg = "INSERT INTO tblSomeTable (Field1, Field2, Field3) IN '" & stgMDBPath & "'" _ & " VALUES '" & txtField1 & "', '" & txtField2 & "', '" & txtField3 & "')" DoCmd.RunSQL stg Does anyone know if one way is faster than another? I need to do this repeatedly. Thanks! Dan From Gustav at cactus.dk Fri Jun 20 11:18:32 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 20 Jun 2008 18:18:32 +0200 Subject: [AccessD] Timer Event Message-ID: Hi Rocky Another suggestion: http://msdn.microsoft.com/en-us/library/aa188220(office.10).aspx Chapter 9 Excerpt: Create a Generic, Reusable Status Meter /gustav -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Thursday, June 19, 2008 11:24 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Timer Event Dear List: The client would like a progress box to display during a lengthy calculation - can take up to a minute and I told him that some kind of indication should appear on the form so the user knows something is happening. I implemented one solution which is OK. I have a sub which adds a period to a text box on the calling form. And so I can lace calls to that routine throughout the calculations. Problem is that it doesn't produce these periods in equal time intervals. So what he really wants now is a progress indicator that would change every 1/4 second or so, and when it got to its maximum length would start over again. Not a difficult thing to do. I thought I could use the timer event on the form that calls the calculation, but the calculation is in a Public module and so, while it is running, the timer event doesn't trigger. Is there a way around this or another approach? MTIA Rocky Smolin From Gustav at cactus.dk Fri Jun 20 11:27:50 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 20 Jun 2008 18:27:50 +0200 Subject: [AccessD] Access: Book Excerpts Message-ID: Hi all Several good single chapters from various books on A2002/XP can be found here on-line (no download needed): http://msdn.microsoft.com/en-us/library/aa155045.aspx and even more here: http://msdn.microsoft.com/en-us/library/bb726434.aspx For each version, open sub menu Access. /gustav From ssharkins at gmail.com Fri Jun 20 12:53:46 2008 From: ssharkins at gmail.com (Susan Harkins) Date: Fri, 20 Jun 2008 13:53:46 -0400 Subject: [AccessD] VBA ADO Recordset question Message-ID: <040001c8d2fe$9ab3cd20$2f8601c7@SusanOne> When manipulating a Recordset object in ADO.NET, are you working with an ADO.NET Recordset or an ADO Recordset? There's no Recordset object in the ADO.NET Object Model, but I do see Recordsets used in ADO.NET. Susan H. From dwaters at usinternet.com Fri Jun 20 13:26:07 2008 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 20 Jun 2008 13:26:07 -0500 Subject: [AccessD] Using 'IN' vs. Using Table Links Message-ID: <3509DA8452B84C879ADF648A81DB047D@danwaters> When inserting data into a table I can do this if I have a table link to another database file: stg = "INSERT INTO tblSomeTable (Field1, Field2, Field3)" _ & " VALUES '" & txtField1 & "', '" & txtField2 & "', '" & txtField3 & "')" DoCmd.RunSQL stg Or I can do this without a table link to another database file: stg = "INSERT INTO tblSomeTable (Field1, Field2, Field3) IN '" & stgMDBPath & "'" _ & " VALUES '" & txtField1 & "', '" & txtField2 & "', '" & txtField3 & "')" DoCmd.RunSQL stg Does anyone know if one way is faster than another? I need to do this repeatedly. Thanks! Dan From Donald.A.McGillivray at sprint.com Fri Jun 20 13:28:12 2008 From: Donald.A.McGillivray at sprint.com (McGillivray, Don [IT]) Date: Fri, 20 Jun 2008 13:28:12 -0500 Subject: [AccessD] Error 3001 - invalid argument - What the . . . . ? Message-ID: <310215F6BEEEA84A8D6366F219C763313776EF9E93@PDAWM07C.ad.sprint.com> Out of the blue, I'm getting the above error (minus the "What the . . .?") in a proc that has been running rock solid forever. It's in a block of code where I'm using DAO to write a record to a table: .AddNew !field1 = SomeValue1 !field2 = SomeValue2 .Update Code is puking on the .Update line. I suspect some sort of corruption, but all my usual remedies (decompile/recompile, compact/repair) don't seem to be having any effect. This is probably my weakest area of understanding with Access, etc., so I'm not even sure I'm using those approaches correctly. Hoping somebody might be able to suggest a more reeliable way to the problem . . . . Don McGillivray From ssharkins at gmail.com Fri Jun 20 13:38:37 2008 From: ssharkins at gmail.com (Susan Harkins) Date: Fri, 20 Jun 2008 14:38:37 -0400 Subject: [AccessD] DAO Recordset properties and methods Message-ID: <045b01c8d304$dc798320$2f8601c7@SusanOne> I'm looking for a list of properties, methods, and events for the DAO Recorset object -- similar to the one for ADO at msdn: http://msdn.microsoft.com/en-us/library/ms675841(VS.85).aspx I'll be danged if I can find one. If anyone has a list bookmarked, would you please share the link. In the meantime, I'll keep looking. Susan H. From markamatte at hotmail.com Fri Jun 20 13:41:08 2008 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 20 Jun 2008 18:41:08 +0000 Subject: [AccessD] Error 3001 - invalid argument - What the . . . . ? In-Reply-To: <310215F6BEEEA84A8D6366F219C763313776EF9E93@PDAWM07C.ad.sprint.com> References: <310215F6BEEEA84A8D6366F219C763313776EF9E93@PDAWM07C.ad.sprint.com> Message-ID: Is there possibly a null being passed? Mark A. Matte > From: Donald.A.McGillivray at sprint.com> To: accessd at databaseadvisors.com> Date: Fri, 20 Jun 2008 13:28:12 -0500> Subject: [AccessD] Error 3001 - invalid argument - What the . . . . ?> > Out of the blue, I'm getting the above error (minus the "What the . . .?") in a proc that has been running rock solid forever. It's in a block of code where I'm using DAO to write a record to a table:> > .AddNew> !field1 = SomeValue1> !field2 = SomeValue2> .Update> > Code is puking on the .Update line.> > I suspect some sort of corruption, but all my usual remedies (decompile/recompile, compact/repair) don't seem to be having any effect. This is probably my weakest area of understanding with Access, etc., so I'm not even sure I'm using those approaches correctly.> > Hoping somebody might be able to suggest a more reeliable way to the problem . . . .> > Don McGillivray> > > -- > AccessD mailing list> AccessD at databaseadvisors.com> http://databaseadvisors.com/mailman/listinfo/accessd> Website: http://www.databaseadvisors.com _________________________________________________________________ The other season of giving begins 6/24/08. Check out the i?m Talkathon. http://www.imtalkathon.com?source=TXT_EML_WLH_SeasonOfGiving From Donald.A.McGillivray at sprint.com Fri Jun 20 13:47:52 2008 From: Donald.A.McGillivray at sprint.com (McGillivray, Don [IT]) Date: Fri, 20 Jun 2008 13:47:52 -0500 Subject: [AccessD] Error 3001 - invalid argument - What the . . . . ? In-Reply-To: References: <310215F6BEEEA84A8D6366F219C763313776EF9E93@PDAWM07C.ad.sprint.com> Message-ID: <310215F6BEEEA84A8D6366F219C763313776EF9F0E@PDAWM07C.ad.sprint.com> Hmmm. I'll check, but don't think so. If that were the case, wouldn't I expect the error to occur at the line where I attempt to assign the value, rather than the .Update line? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Friday, June 20, 2008 11:41 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Error 3001 - invalid argument - What the . . . . ? Is there possibly a null being passed? Mark A. Matte > From: Donald.A.McGillivray at sprint.com> To: accessd at databaseadvisors.com> Date: Fri, 20 Jun 2008 13:28:12 -0500> Subject: [AccessD] Error 3001 - invalid argument - What the . . . . ?> > Out of the blue, I'm getting the above error (minus the "What the . . .?") in a proc that has been running rock solid forever. It's in a block of code where I'm using DAO to write a record to a table:> > .AddNew> !field1 = SomeValue1> !field2 = SomeValue2> .Update> > Code is puking on the .Update line.> > I suspect some sort of corruption, but all my usual remedies (decompile/recompile, compact/repair) don't seem to be having any effect. This is probably my weakest area of understanding with Access, etc., so I'm not even sure I'm using those approaches correctly.> > Hoping somebody might be able to suggest a more reeliable way to the problem . . . .> > Don McGillivray> > > -- > AccessD mailing list> AccessD at databaseadvisors.com> http://databaseadvisors.com/mailman/listinfo/accessd> Website: http://www.databaseadvisors.com _________________________________________________________________ The other season of giving begins 6/24/08. Check out the i'm Talkathon. http://www.imtalkathon.com?source=TXT_EML_WLH_SeasonOfGiving -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at gmail.com Fri Jun 20 13:49:20 2008 From: ssharkins at gmail.com (Susan Harkins) Date: Fri, 20 Jun 2008 14:49:20 -0400 Subject: [AccessD] Error 3001 - invalid argument - What the . . . . ? References: <310215F6BEEEA84A8D6366F219C763313776EF9E93@PDAWM07C.ad.sprint.com> Message-ID: <047c01c8d306$5c1f9fa0$2f8601c7@SusanOne> I was wondering about the same thing sort of -- are you sure there's actually something to update? Also -- I can't remember the error when there's an ambiguity between DAO and ADO -- so I'd check the references just to make sure the right library's set. Susan H. Is there possibly a null being passed? From dwaters at usinternet.com Fri Jun 20 13:54:31 2008 From: dwaters at usinternet.com (Dan Waters) Date: Fri, 20 Jun 2008 13:54:31 -0500 Subject: [AccessD] Error 3001 - invalid argument - What the . . . . ? In-Reply-To: <310215F6BEEEA84A8D6366F219C763313776EF9E93@PDAWM07C.ad.sprint.com> References: <310215F6BEEEA84A8D6366F219C763313776EF9E93@PDAWM07C.ad.sprint.com> Message-ID: <9E3B9640AA82452C911173ACF8CFBCA3@danwaters> Be sure that field1 and field2 are not actually Key words. Example: I had a INSERT in access where one of the fields was called 'Note', which is a Key word. It worked for a long time, then failed and kept failing. I'm guessing that something in Windows or Access was updated to cause the sudden failure. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of McGillivray, Don [IT] Sent: Friday, June 20, 2008 1:28 PM To: Access Developers discussion and problem solving Subject: [AccessD] Error 3001 - invalid argument - What the . . . . ? Out of the blue, I'm getting the above error (minus the "What the . . .?") in a proc that has been running rock solid forever. It's in a block of code where I'm using DAO to write a record to a table: .AddNew !field1 = SomeValue1 !field2 = SomeValue2 .Update Code is puking on the .Update line. I suspect some sort of corruption, but all my usual remedies (decompile/recompile, compact/repair) don't seem to be having any effect. This is probably my weakest area of understanding with Access, etc., so I'm not even sure I'm using those approaches correctly. Hoping somebody might be able to suggest a more reeliable way to the problem . . . . Don McGillivray -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Donald.A.McGillivray at sprint.com Fri Jun 20 14:07:04 2008 From: Donald.A.McGillivray at sprint.com (McGillivray, Don [IT]) Date: Fri, 20 Jun 2008 14:07:04 -0500 Subject: [AccessD] Error 3001 - invalid argument - What the . . . . ? In-Reply-To: <047c01c8d306$5c1f9fa0$2f8601c7@SusanOne> References: <310215F6BEEEA84A8D6366F219C763313776EF9E93@PDAWM07C.ad.sprint.com> <047c01c8d306$5c1f9fa0$2f8601c7@SusanOne> Message-ID: <310215F6BEEEA84A8D6366F219C763313776EF9F8E@PDAWM07C.ad.sprint.com> Thanks, Susan My recordset object is declared explicitly as a DAO recordset, and the code is called only when there is something to add to the table and valid values have been passed to the proc. Since this has been running solid for so long, I really suspect some sort of corruption, but restoring a previous version of the front end didn't solve the problem. DLL corruption perhaps? But which one? And how to fix? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Friday, June 20, 2008 11:49 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Error 3001 - invalid argument - What the . . . . ? I was wondering about the same thing sort of -- are you sure there's actually something to update? Also -- I can't remember the error when there's an ambiguity between DAO and ADO -- so I'd check the references just to make sure the right library's set. Susan H. Is there possibly a null being passed? -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Fri Jun 20 14:09:46 2008 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 20 Jun 2008 19:09:46 +0000 Subject: [AccessD] Error 3001 - invalid argument - What the . . . . ? In-Reply-To: <310215F6BEEEA84A8D6366F219C763313776EF9F0E@PDAWM07C.ad.sprint.com> References: <310215F6BEEEA84A8D6366F219C763313776EF9E93@PDAWM07C.ad.sprint.com> <310215F6BEEEA84A8D6366F219C763313776EF9F0E@PDAWM07C.ad.sprint.com> Message-ID: You can assign nulls all day long...its when you do something with it that things get upset. Also, Susan's idea about references...specifically the order of references...is a good place to look. Thanks, Mark A. Matte > From: Donald.A.McGillivray at sprint.com > To: accessd at databaseadvisors.com > Date: Fri, 20 Jun 2008 13:47:52 -0500 > Subject: Re: [AccessD] Error 3001 - invalid argument - What the . . . . ? > > Hmmm. I'll check, but don't think so. If that were the case, wouldn't I expect the error to occur at the line where I attempt to assign the value, rather than the .Update line? > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > Sent: Friday, June 20, 2008 11:41 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Error 3001 - invalid argument - What the . . . . ? > > > Is there possibly a null being passed? > > Mark A. Matte > >> From: Donald.A.McGillivray at sprint.com> To: accessd at databaseadvisors.com> Date: Fri, 20 Jun 2008 13:28:12 -0500> Subject: [AccessD] Error 3001 - invalid argument - What the . . . . ?>> Out of the blue, I'm getting the above error (minus the "What the . . .?") in a proc that has been running rock solid forever. It's in a block of code where I'm using DAO to write a record to a table:>> .AddNew> !field1 = SomeValue1> !field2 = SomeValue2> .Update>> Code is puking on the .Update line.>> I suspect some sort of corruption, but all my usual remedies (decompile/recompile, compact/repair) don't seem to be having any effect. This is probably my weakest area of understanding with Access, etc., so I'm not even sure I'm using those approaches correctly.>> Hoping somebody might be able to suggest a more reeliable way to the problem . . . .>> Don McGillivray>>> --> AccessD mailing list> AccessD at databaseadvisors.com> http://databaseadvisors.com/mailman/listinfo/accessd> Website: ! > http://www.databaseadvisors.com > _________________________________________________________________ > The other season of giving begins 6/24/08. Check out the i'm Talkathon. > http://www.imtalkathon.com?source=TXT_EML_WLH_SeasonOfGiving > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ Earn cashback on your purchases with Live Search - the search that pays you back! http://search.live.com/cashback/?&pkw=form=MIJAAF/publ=HMTGL/crea=earncashback From Donald.A.McGillivray at sprint.com Fri Jun 20 14:10:08 2008 From: Donald.A.McGillivray at sprint.com (McGillivray, Don [IT]) Date: Fri, 20 Jun 2008 14:10:08 -0500 Subject: [AccessD] Error 3001 - invalid argument - What the . . . . ? In-Reply-To: <9E3B9640AA82452C911173ACF8CFBCA3@danwaters> References: <310215F6BEEEA84A8D6366F219C763313776EF9E93@PDAWM07C.ad.sprint.com> <9E3B9640AA82452C911173ACF8CFBCA3@danwaters> Message-ID: <310215F6BEEEA84A8D6366F219C763313776EF9F9B@PDAWM07C.ad.sprint.com> Thanks, Dan. My field names are prefixed with a table identifier, so keyword confusion is not an issue in this case. When tried and true procs start to fail like this, I always smell a corruption issue, but I'm not so good at tracing and repairing them. Looking for all ideas along those lines, or any others that might help me to ID and resolve the issue. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Friday, June 20, 2008 11:55 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 3001 - invalid argument - What the . . . . ? Be sure that field1 and field2 are not actually Key words. Example: I had a INSERT in access where one of the fields was called 'Note', which is a Key word. It worked for a long time, then failed and kept failing. I'm guessing that something in Windows or Access was updated to cause the sudden failure. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of McGillivray, Don [IT] Sent: Friday, June 20, 2008 1:28 PM To: Access Developers discussion and problem solving Subject: [AccessD] Error 3001 - invalid argument - What the . . . . ? Out of the blue, I'm getting the above error (minus the "What the . . .?") in a proc that has been running rock solid forever. It's in a block of code where I'm using DAO to write a record to a table: .AddNew !field1 = SomeValue1 !field2 = SomeValue2 .Update Code is puking on the .Update line. I suspect some sort of corruption, but all my usual remedies (decompile/recompile, compact/repair) don't seem to be having any effect. This is probably my weakest area of understanding with Access, etc., so I'm not even sure I'm using those approaches correctly. Hoping somebody might be able to suggest a more reeliable way to the problem . . . . Don McGillivray -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From markamatte at hotmail.com Fri Jun 20 14:11:39 2008 From: markamatte at hotmail.com (Mark A Matte) Date: Fri, 20 Jun 2008 19:11:39 +0000 Subject: [AccessD] Error 3001 - invalid argument - What the . . . . ? In-Reply-To: <310215F6BEEEA84A8D6366F219C763313776EF9F8E@PDAWM07C.ad.sprint.com> References: <310215F6BEEEA84A8D6366F219C763313776EF9E93@PDAWM07C.ad.sprint.com> <047c01c8d306$5c1f9fa0$2f8601c7@SusanOne> <310215F6BEEEA84A8D6366F219C763313776EF9F8E@PDAWM07C.ad.sprint.com> Message-ID: A couple of questions... 1. Will the mdb compile? 2. What version? > From: Donald.A.McGillivray at sprint.com > To: accessd at databaseadvisors.com > Date: Fri, 20 Jun 2008 14:07:04 -0500 > Subject: Re: [AccessD] Error 3001 - invalid argument - What the . . . . ? > > Thanks, Susan > > My recordset object is declared explicitly as a DAO recordset, and the code is called only when there is something to add to the table and valid values have been passed to the proc. > > Since this has been running solid for so long, I really suspect some sort of corruption, but restoring a previous version of the front end didn't solve the problem. DLL corruption perhaps? But which one? And how to fix? > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins > Sent: Friday, June 20, 2008 11:49 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Error 3001 - invalid argument - What the . . . . ? > > I was wondering about the same thing sort of -- are you sure there's > actually something to update? > > Also -- I can't remember the error when there's an ambiguity between DAO and > ADO -- so I'd check the references just to make sure the right library's > set. > > Susan H. > > > > Is there possibly a null being passed? > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ Introducing Live Search cashback . It's search that pays you back! http://search.live.com/cashback/?&pkw=form=MIJAAF/publ=HMTGL/crea=introsrchcashback From Elizabeth.J.Doering at wellsfargo.com Fri Jun 20 14:28:59 2008 From: Elizabeth.J.Doering at wellsfargo.com (Elizabeth.J.Doering at wellsfargo.com) Date: Fri, 20 Jun 2008 14:28:59 -0500 Subject: [AccessD] Error 3001 - invalid argument - What the . . . . ? References: <310215F6BEEEA84A8D6366F219C763313776EF9E93@PDAWM07C.ad.sprint.com> <310215F6BEEEA84A8D6366F219C763313776EF9F0E@PDAWM07C.ad.sprint.com> Message-ID: Because it is on the .update line, browse through the table you are updating, looking for nasty corrupt records there. Or, try doing a make table query to write your target table into a new temp table. If you have a corrupt record, the make table query will more than likely fail, maybe with a helpful message of some kind. HTH, Liz Liz Doering Systems Engineer Technology Information Group elizabeth.j.doering at wellsfargo.com 612.667.2447 (o) This message may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose, or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. Thank you for your cooperation. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of McGillivray, Don [IT] Sent: Friday, June 20, 2008 1:48 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Error 3001 - invalid argument - What the . . . . ? Hmmm. I'll check, but don't think so. If that were the case, wouldn't I expect the error to occur at the line where I attempt to assign the value, rather than the .Update line? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Friday, June 20, 2008 11:41 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Error 3001 - invalid argument - What the . . . . ? Is there possibly a null being passed? Mark A. Matte > From: Donald.A.McGillivray at sprint.com> To: accessd at databaseadvisors.com> Date: Fri, 20 Jun 2008 13:28:12 -0500> Subject: [AccessD] Error 3001 - invalid argument - What the . . . . ?> > Out of the blue, I'm getting the above error (minus the "What the . . .?") in a proc that has been running rock solid forever. It's in a block of code where I'm using DAO to write a record to a table:> > .AddNew> !field1 = SomeValue1> !field2 = SomeValue2> .Update> > Code is puking on the .Update line.> > I suspect some sort of corruption, but all my usual remedies (decompile/recompile, compact/repair) don't seem to be having any effect. This is probably my weakest area of understanding with Access, etc., so I'm not even sure I'm using those approaches correctly.> > Hoping somebody might be able to suggest a more reeliable way to the problem . . . .> > Don McGillivray> > > -- > AccessD mailing list> AccessD at databaseadvisors.com> http://databaseadvisors.com/mailman/listinfo/accessd> Website: ! http://www.databaseadvisors.com _________________________________________________________________ The other season of giving begins 6/24/08. Check out the i'm Talkathon. http://www.imtalkathon.com?source=TXT_EML_WLH_SeasonOfGiving -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 sprint.com Fri Jun 20 14:36:08 2008 From: Donald.A.McGillivray at sprint.com (McGillivray, Don [IT]) Date: Fri, 20 Jun 2008 14:36:08 -0500 Subject: [AccessD] Error 3001 - invalid argument - What the . . . . ? In-Reply-To: References: <310215F6BEEEA84A8D6366F219C763313776EF9E93@PDAWM07C.ad.sprint.com> <047c01c8d306$5c1f9fa0$2f8601c7@SusanOne> <310215F6BEEEA84A8D6366F219C763313776EF9F8E@PDAWM07C.ad.sprint.com> Message-ID: <310215F6BEEEA84A8D6366F219C763313776EFA03F@PDAWM07C.ad.sprint.com> Yes, it compiles. Version is 2003, SP3. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Friday, June 20, 2008 12:12 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Error 3001 - invalid argument - What the . . . . ? A couple of questions... 1. Will the mdb compile? 2. What version? > From: Donald.A.McGillivray at sprint.com > To: accessd at databaseadvisors.com > Date: Fri, 20 Jun 2008 14:07:04 -0500 > Subject: Re: [AccessD] Error 3001 - invalid argument - What the . . . . ? > > Thanks, Susan > > My recordset object is declared explicitly as a DAO recordset, and the code is called only when there is something to add to the table and valid values have been passed to the proc. > > Since this has been running solid for so long, I really suspect some sort of corruption, but restoring a previous version of the front end didn't solve the problem. DLL corruption perhaps? But which one? And how to fix? > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins > Sent: Friday, June 20, 2008 11:49 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Error 3001 - invalid argument - What the . . . . ? > > I was wondering about the same thing sort of -- are you sure there's > actually something to update? > > Also -- I can't remember the error when there's an ambiguity between DAO and > ADO -- so I'd check the references just to make sure the right library's > set. > > Susan H. > > > > Is there possibly a null being passed? > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ Introducing Live Search cashback . It's search that pays you back! http://search.live.com/cashback/?&pkw=form=MIJAAF/publ=HMTGL/crea=introsrchcashback -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at gmail.com Fri Jun 20 14:36:15 2008 From: ssharkins at gmail.com (Susan Harkins) Date: Fri, 20 Jun 2008 15:36:15 -0400 Subject: [AccessD] Error 3001 - invalid argument - What the . . . . ? References: <310215F6BEEEA84A8D6366F219C763313776EF9E93@PDAWM07C.ad.sprint.com><310215F6BEEEA84A8D6366F219C763313776EF9F0E@PDAWM07C.ad.sprint.com> Message-ID: <04da01c8d30c$f120dc30$2f8601c7@SusanOne> Nice tip Liz! Susan H. If you > have a corrupt record, the make table query will more than likely fail, > maybe with a helpful message of some kind. > From Donald.A.McGillivray at sprint.com Fri Jun 20 14:52:35 2008 From: Donald.A.McGillivray at sprint.com (McGillivray, Don [IT]) Date: Fri, 20 Jun 2008 14:52:35 -0500 Subject: [AccessD] Error 3001 - invalid argument - What the . . . . ? In-Reply-To: References: <310215F6BEEEA84A8D6366F219C763313776EF9E93@PDAWM07C.ad.sprint.com> <310215F6BEEEA84A8D6366F219C763313776EF9F0E@PDAWM07C.ad.sprint.com> Message-ID: <310215F6BEEEA84A8D6366F219C763313776EFA09D@PDAWM07C.ad.sprint.com> Thanks, Liz. Not the table, apparently, unless it's something that wouldn't appear using that test. New development . . . . The problem is causing the error ANY time my code uses the .AddNew . . . .Update structure. When I comment out the offending code, the next occurrence of that structure elsewhere in the system's code produces the error again. Pulling my hair . . . . -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Elizabeth.J.Doering at wellsfargo.com Sent: Friday, June 20, 2008 12:29 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Error 3001 - invalid argument - What the . . . . ? Because it is on the .update line, browse through the table you are updating, looking for nasty corrupt records there. Or, try doing a make table query to write your target table into a new temp table. If you have a corrupt record, the make table query will more than likely fail, maybe with a helpful message of some kind. HTH, Liz Liz Doering Systems Engineer Technology Information Group elizabeth.j.doering at wellsfargo.com 612.667.2447 (o) This message may contain confidential and/or privileged information. If you are not the addressee or authorized to receive this for the addressee, you must not use, copy, disclose, or take any action based on this message or any information herein. If you have received this message in error, please advise the sender immediately by reply e-mail and delete this message. Thank you for your cooperation. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of McGillivray, Don [IT] Sent: Friday, June 20, 2008 1:48 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Error 3001 - invalid argument - What the . . . . ? Hmmm. I'll check, but don't think so. If that were the case, wouldn't I expect the error to occur at the line where I attempt to assign the value, rather than the .Update line? -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Friday, June 20, 2008 11:41 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Error 3001 - invalid argument - What the . . . . ? Is there possibly a null being passed? Mark A. Matte > From: Donald.A.McGillivray at sprint.com> To: accessd at databaseadvisors.com> Date: Fri, 20 Jun 2008 13:28:12 -0500> Subject: [AccessD] Error 3001 - invalid argument - What the . . . . ?> > Out of the blue, I'm getting the above error (minus the "What the . . .?") in a proc that has been running rock solid forever. It's in a block of code where I'm using DAO to write a record to a table:> > .AddNew> !field1 = SomeValue1> !field2 = SomeValue2> .Update> > Code is puking on the .Update line.> > I suspect some sort of corruption, but all my usual remedies (decompile/recompile, compact/repair) don't seem to be having any effect. This is probably my weakest area of understanding with Access, etc., so I'm not even sure I'm using those approaches correctly.> > Hoping somebody might be able to suggest a more reeliable way to the problem . . . .> > Don McGillivray> > > -- > AccessD mailing list> AccessD at databaseadvisors.com> http://databaseadvisors.com/mailman/listinfo/accessd> Website: ! http://www.databaseadvisors.com _________________________________________________________________ The other season of giving begins 6/24/08. Check out the i'm Talkathon. http://www.imtalkathon.com?source=TXT_EML_WLH_SeasonOfGiving -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 gmail.com Fri Jun 20 15:06:47 2008 From: ssharkins at gmail.com (Susan Harkins) Date: Fri, 20 Jun 2008 16:06:47 -0400 Subject: [AccessD] Error 3001 - invalid argument - What the . . . . ? References: <310215F6BEEEA84A8D6366F219C763313776EF9E93@PDAWM07C.ad.sprint.com><310215F6BEEEA84A8D6366F219C763313776EF9F0E@PDAWM07C.ad.sprint.com> <310215F6BEEEA84A8D6366F219C763313776EFA09D@PDAWM07C.ad.sprint.com> Message-ID: <04f001c8d311$6da761d0$2f8601c7@SusanOne> Anything in here? http://support.microsoft.com/kb/935521 Susan H. > Thanks, Liz. > > Not the table, apparently, unless it's something that wouldn't appear > using that test. > > New development . . . . > > The problem is causing the error ANY time my code uses the .AddNew . . . > .Update structure. When I comment out the offending code, the next > occurrence of that structure elsewhere in the system's code produces the > error again. > > Pulling my hair . . . . > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Elizabeth.J.Doering at wellsfargo.com > Sent: Friday, June 20, 2008 12:29 PM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Error 3001 - invalid argument - What the . . . . ? > > Because it is on the .update line, browse through the table you are > updating, looking for nasty corrupt records there. Or, try doing a make > table query to write your target table into a new temp table. If you > have a corrupt record, the make table query will more than likely fail, > maybe with a helpful message of some kind. > > HTH, > > Liz > > > Liz Doering > Systems Engineer > Technology Information Group > elizabeth.j.doering at wellsfargo.com > 612.667.2447 (o) > > > > This message may contain confidential and/or privileged information. If > you are not the addressee or authorized to receive this for the > addressee, you must not use, copy, disclose, or take any action based on > this message or any information herein. If you have received this > message in error, please advise the sender immediately by reply e-mail > and delete this message. Thank you for your cooperation. > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of McGillivray, > Don [IT] > Sent: Friday, June 20, 2008 1:48 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Error 3001 - invalid argument - What the . . . . > ? > > Hmmm. I'll check, but don't think so. If that were the case, wouldn't > I expect the error to occur at the line where I attempt to assign the > value, rather than the .Update line? > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > Sent: Friday, June 20, 2008 11:41 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Error 3001 - invalid argument - What the . . . . > ? > > > Is there possibly a null being passed? > > Mark A. Matte > >> From: Donald.A.McGillivray at sprint.com> To: > accessd at databaseadvisors.com> Date: Fri, 20 Jun 2008 13:28:12 -0500> > Subject: [AccessD] Error 3001 - invalid argument - What the . . . . ?> > > Out of the blue, I'm getting the above error (minus the "What the . . > .?") in a proc that has been running rock solid forever. It's in a block > of code where I'm using DAO to write a record to a table:> > .AddNew> > !field1 = SomeValue1> !field2 = SomeValue2> .Update> > Code is puking on > the .Update line.> > I suspect some sort of corruption, but all my usual > remedies (decompile/recompile, compact/repair) don't seem to be having > any effect. This is probably my weakest area of understanding with > Access, etc., so I'm not even sure I'm using those approaches > correctly.> > Hoping somebody might be able to suggest a more reeliable > way to the problem . . . .> > Don McGillivray> > > -- > AccessD mailing > list> AccessD at databaseadvisors.com> > http://databaseadvisors.com/mailman/listinfo/accessd> Website: ! > http://www.databaseadvisors.com > _________________________________________________________________ > The other season of giving begins 6/24/08. Check out the i'm Talkathon. > http://www.imtalkathon.com?source=TXT_EML_WLH_SeasonOfGiving > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 gmail.com Fri Jun 20 15:08:36 2008 From: ssharkins at gmail.com (Susan Harkins) Date: Fri, 20 Jun 2008 16:08:36 -0400 Subject: [AccessD] Error 3001 - invalid argument - What the . . . . ? References: <310215F6BEEEA84A8D6366F219C763313776EF9E93@PDAWM07C.ad.sprint.com><310215F6BEEEA84A8D6366F219C763313776EF9F0E@PDAWM07C.ad.sprint.com> <310215F6BEEEA84A8D6366F219C763313776EFA09D@PDAWM07C.ad.sprint.com> Message-ID: <04f401c8d311$6ea68250$2f8601c7@SusanOne> Don, can you manually update the table by just running a fixed query? Is there anywhere that something's locking the table/database? I think you'd get a totally different error if that were the case though, but thought I'd throw it out there. Susan H. > Thanks, Liz. > > Not the table, apparently, unless it's something that wouldn't appear > using that test. > > New development . . . . > > The problem is causing the error ANY time my code uses the .AddNew . . . > .Update structure. When I comment out the offending code, the next > occurrence of that structure elsewhere in the system's code produces the > error again. > > Pulling my hair . . . . > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Elizabeth.J.Doering at wellsfargo.com > Sent: Friday, June 20, 2008 12:29 PM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Error 3001 - invalid argument - What the . . . . ? > > Because it is on the .update line, browse through the table you are > updating, looking for nasty corrupt records there. Or, try doing a make > table query to write your target table into a new temp table. If you > have a corrupt record, the make table query will more than likely fail, > maybe with a helpful message of some kind. > > HTH, > > Liz > > > Liz Doering > Systems Engineer > Technology Information Group > elizabeth.j.doering at wellsfargo.com > 612.667.2447 (o) > > > > This message may contain confidential and/or privileged information. If > you are not the addressee or authorized to receive this for the > addressee, you must not use, copy, disclose, or take any action based on > this message or any information herein. If you have received this > message in error, please advise the sender immediately by reply e-mail > and delete this message. Thank you for your cooperation. > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of McGillivray, > Don [IT] > Sent: Friday, June 20, 2008 1:48 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Error 3001 - invalid argument - What the . . . . > ? > > Hmmm. I'll check, but don't think so. If that were the case, wouldn't > I expect the error to occur at the line where I attempt to assign the > value, rather than the .Update line? > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > Sent: Friday, June 20, 2008 11:41 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Error 3001 - invalid argument - What the . . . . > ? > > > Is there possibly a null being passed? > > Mark A. Matte > >> From: Donald.A.McGillivray at sprint.com> To: > accessd at databaseadvisors.com> Date: Fri, 20 Jun 2008 13:28:12 -0500> > Subject: [AccessD] Error 3001 - invalid argument - What the . . . . ?> > > Out of the blue, I'm getting the above error (minus the "What the . . > .?") in a proc that has been running rock solid forever. It's in a block > of code where I'm using DAO to write a record to a table:> > .AddNew> > !field1 = SomeValue1> !field2 = SomeValue2> .Update> > Code is puking on > the .Update line.> > I suspect some sort of corruption, but all my usual > remedies (decompile/recompile, compact/repair) don't seem to be having > any effect. This is probably my weakest area of understanding with > Access, etc., so I'm not even sure I'm using those approaches > correctly.> > Hoping somebody might be able to suggest a more reeliable > way to the problem . . . .> > Don McGillivray> > > -- > AccessD mailing > list> AccessD at databaseadvisors.com> > http://databaseadvisors.com/mailman/listinfo/accessd> Website: ! > http://www.databaseadvisors.com > _________________________________________________________________ > The other season of giving begins 6/24/08. Check out the i'm Talkathon. > http://www.imtalkathon.com?source=TXT_EML_WLH_SeasonOfGiving > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From lembit.dbamail at t-online.de Fri Jun 20 16:09:15 2008 From: lembit.dbamail at t-online.de (Lembit Soobik) Date: Fri, 20 Jun 2008 23:09:15 +0200 Subject: [AccessD] Error 3001 - invalid argument - What the . . . . ? References: <310215F6BEEEA84A8D6366F219C763313776EF9E93@PDAWM07C.ad.sprint.com><310215F6BEEEA84A8D6366F219C763313776EF9F0E@PDAWM07C.ad.sprint.com> <310215F6BEEEA84A8D6366F219C763313776EFA09D@PDAWM07C.ad.sprint.com> Message-ID: <003601c8d319$e5d8e860$1800a8c0@s1800> a refernce missing? Lembit ----- Original Message ----- From: "McGillivray, Don [IT]" To: "Access Developers discussion and problem solving" Sent: Friday, June 20, 2008 9:52 PM Subject: Re: [AccessD] Error 3001 - invalid argument - What the . . . . ? > Thanks, Liz. > > Not the table, apparently, unless it's something that wouldn't appear > using that test. > > New development . . . . > > The problem is causing the error ANY time my code uses the .AddNew . . . > .Update structure. When I comment out the offending code, the next > occurrence of that structure elsewhere in the system's code produces the > error again. > > Pulling my hair . . . . > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of > Elizabeth.J.Doering at wellsfargo.com > Sent: Friday, June 20, 2008 12:29 PM > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Error 3001 - invalid argument - What the . . . . ? > > Because it is on the .update line, browse through the table you are > updating, looking for nasty corrupt records there. Or, try doing a make > table query to write your target table into a new temp table. If you > have a corrupt record, the make table query will more than likely fail, > maybe with a helpful message of some kind. > > HTH, > > Liz > > > Liz Doering > Systems Engineer > Technology Information Group > elizabeth.j.doering at wellsfargo.com > 612.667.2447 (o) > > > > This message may contain confidential and/or privileged information. If > you are not the addressee or authorized to receive this for the > addressee, you must not use, copy, disclose, or take any action based on > this message or any information herein. If you have received this > message in error, please advise the sender immediately by reply e-mail > and delete this message. Thank you for your cooperation. > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of McGillivray, > Don [IT] > Sent: Friday, June 20, 2008 1:48 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Error 3001 - invalid argument - What the . . . . > ? > > Hmmm. I'll check, but don't think so. If that were the case, wouldn't > I expect the error to occur at the line where I attempt to assign the > value, rather than the .Update line? > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > Sent: Friday, June 20, 2008 11:41 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Error 3001 - invalid argument - What the . . . . > ? > > > Is there possibly a null being passed? > > Mark A. Matte > >> From: Donald.A.McGillivray at sprint.com> To: > accessd at databaseadvisors.com> Date: Fri, 20 Jun 2008 13:28:12 -0500> > Subject: [AccessD] Error 3001 - invalid argument - What the . . . . ?> > > Out of the blue, I'm getting the above error (minus the "What the . . > .?") in a proc that has been running rock solid forever. It's in a block > of code where I'm using DAO to write a record to a table:> > .AddNew> > !field1 = SomeValue1> !field2 = SomeValue2> .Update> > Code is puking on > the .Update line.> > I suspect some sort of corruption, but all my usual > remedies (decompile/recompile, compact/repair) don't seem to be having > any effect. This is probably my weakest area of understanding with > Access, etc., so I'm not even sure I'm using those approaches > correctly.> > Hoping somebody might be able to suggest a more reeliable > way to the problem . . . .> > Don McGillivray> > > -- > AccessD mailing > list> AccessD at databaseadvisors.com> > http://databaseadvisors.com/mailman/listinfo/accessd> Website: ! > http://www.databaseadvisors.com > _________________________________________________________________ > The other season of giving begins 6/24/08. Check out the i'm Talkathon. > http://www.imtalkathon.com?source=TXT_EML_WLH_SeasonOfGiving > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > > -- > No virus found in this incoming message. > Checked by AVG. > Version: 7.5.524 / Virus Database: 270.4.1/1510 - Release Date: 19.06.2008 > 15:21 > > From Gustav at cactus.dk Fri Jun 20 16:16:57 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Fri, 20 Jun 2008 23:16:57 +0200 Subject: [AccessD] DAO Recordset properties and methods Message-ID: Hi Susan Here it is - or they are - as you now have a Recordset and a Recordset2 object: http://msdn.microsoft.com/en-us/library/bb244903.aspx /gustav >>> ssharkins at gmail.com 20-06-2008 20:38 >>> I'm looking for a list of properties, methods, and events for the DAO Recorset object -- similar to the one for ADO at msdn: http://msdn.microsoft.com/en-us/library/ms675841(VS.85).aspx I'll be danged if I can find one. If anyone has a list bookmarked, would you please share the link. In the meantime, I'll keep looking. Susan H. From fuller.artful at gmail.com Fri Jun 20 16:25:19 2008 From: fuller.artful at gmail.com (Arthur Fuller) Date: Fri, 20 Jun 2008 18:25:19 -0300 Subject: [AccessD] Friday: Croatia v. Turkey Message-ID: <29f585dd0806201425m586c576dq98c41ad583f291b@mail.gmail.com> Wow. A tense moment here and there for the first 115 minutes and then suddenly a goal apiece in 2 minutes. Wow. God, I love football. It is the beautiful game. My heart and money are still on Nederlands though. A. From cfoust at infostatsystems.com Fri Jun 20 16:29:58 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 20 Jun 2008 14:29:58 -0700 Subject: [AccessD] VBA ADO Recordset question In-Reply-To: <040001c8d2fe$9ab3cd20$2f8601c7@SusanOne> References: <040001c8d2fe$9ab3cd20$2f8601c7@SusanOne> Message-ID: If you're working with a recordset object in ADO.Net, it's an ADO Recordset being mapped to an ADO.Net dataset. ADO uses a DataSet or a DataAdapter, the latter of which allows you to specify behavior performed implicitly by the Recordset in ADO. The ADO.Net DataTable object is the equivalent of an ADO disconnected recordset. The DataReader in .Net is similar to a forward-only, read-only recordset. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Friday, 20 June 2008 10:54 a.m. To: AccessD at databaseadvisors.com Subject: [AccessD] VBA ADO Recordset question When manipulating a Recordset object in ADO.NET, are you working with an ADO.NET Recordset or an ADO Recordset? There's no Recordset object in the ADO.NET Object Model, but I do see Recordsets used in ADO.NET. Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Fri Jun 20 16:34:59 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Fri, 20 Jun 2008 14:34:59 -0700 Subject: [AccessD] VBA ADO Recordset question In-Reply-To: References: <040001c8d2fe$9ab3cd20$2f8601c7@SusanOne> Message-ID: And further, from a Microsoft .Net/Com Migration and Interoperability article ... The following sample code in C# demonstrates how to build an ADO .NET dataset from an ADO recordset. /* declare dataset and adapter. Assume for this sample that an ADODB.Recordset has been passed to us by some external code in the variable 'rs' */ DataSet myDataSet; System.Data.OleDb.OleDbDataAdapter myDataAdapter; myDataAdapter = new System.Data.OleDb.OleDbDataAdapter(); myDataSet = new DataSet(); /* copies the contents of the ADODB.recordset rs into the ADO .NET dataset */ myDataAdapter.Fill(myDataSet, rs); For a more complete example of translation between ADO and ADO .NET, refer to the ASPXToADO sample in the .NET Framework SDK. If you install the SDK to its default directory, the sample can be found at C:\Program Files\Microsoft.NET\FrameworkSDK\Samples\Technologies\Interop\Basic\ASPX ToADO. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Friday, 20 June 2008 2:30 p.m. To: Access Developers discussion and problem solving Subject: Re: [AccessD] VBA ADO Recordset question If you're working with a recordset object in ADO.Net, it's an ADO Recordset being mapped to an ADO.Net dataset. ADO uses a DataSet or a DataAdapter, the latter of which allows you to specify behavior performed implicitly by the Recordset in ADO. The ADO.Net DataTable object is the equivalent of an ADO disconnected recordset. The DataReader in .Net is similar to a forward-only, read-only recordset. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Friday, 20 June 2008 10:54 a.m. To: AccessD at databaseadvisors.com Subject: [AccessD] VBA ADO Recordset question When manipulating a Recordset object in ADO.NET, are you working with an ADO.NET Recordset or an ADO Recordset? There's no Recordset object in the ADO.NET Object Model, but I do see Recordsets used in ADO.NET. 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 shamil at smsconsulting.spb.ru Fri Jun 20 16:43:13 2008 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sat, 21 Jun 2008 01:43:13 +0400 Subject: [AccessD] Friday: Croatia v. Turkey In-Reply-To: <29f585dd0806201425m586c576dq98c41ad583f291b@mail.gmail.com> Message-ID: <001701c8d31e$a41183b0$6401a8c0@nant> Hi Arthur, Croatia lost - pity, but tonight they played not so good football they usually do... Russia vs. Netherlands tomorrow, with Russian team's coach being famous Guus Giddink (http://en.wikipedia.org/wiki/Guus_Hiddink ) from the Netherlands. That's a real intrigue coming... We will see... Have a nice weekend there on Bermuda. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Saturday, June 21, 2008 1:25 AM To: Access Developers discussion and problem solving Subject: [AccessD] Friday: Croatia v. Turkey Wow. A tense moment here and there for the first 115 minutes and then suddenly a goal apiece in 2 minutes. Wow. God, I love football. It is the beautiful game. My heart and money are still on Nederlands though. A. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Donald.A.McGillivray at sprint.com Fri Jun 20 16:54:47 2008 From: Donald.A.McGillivray at sprint.com (McGillivray, Don [IT]) Date: Fri, 20 Jun 2008 16:54:47 -0500 Subject: [AccessD] Error 3001 - invalid argument - What the . . . . ? In-Reply-To: <310215F6BEEEA84A8D6366F219C763313776EF9E93@PDAWM07C.ad.sprint.com> References: <310215F6BEEEA84A8D6366F219C763313776EF9E93@PDAWM07C.ad.sprint.com> Message-ID: <310215F6BEEEA84A8D6366F219C763313776EFA2B2@PDAWM07C.ad.sprint.com> Thanks to all who have responded so far. It's starting to look as if this problem is not Access/VBA related at all. A little background for those who may be interested, or in case it sparks some further helpful ideas . . . I manage a couple of apps that run in a terminal server environment, using Windows remote desktop services on a Win 2003 server. The one that I'm having trouble with runs basically 24 x 7 in a disconnected session, gathering data from text files on three different servers. Its processing is mostly about cataloguing and tracking those text files through their life cycles, then removing them from the servers, extracting summarized data from them, and archiving them for future reference. The extracted data is then made available to users for browsing and reporting thru another app that is served up in user sessions on the same server - one session per user. Both front ends are attached to the same back end data - one pushing data in, the other reading it only. This arrangement has been working well for several years, but recently we were forced by our network gestapo to migrate to a new server which is set up as a VM slice on a larger server. So, now we're one of many VM slices on some server in a farm somewhere in the wilds of Missouri, and (as I understand it) that VM slice is serving up the individual terminal sessions to my app and my users. Despite a few stutter steps at the beginning, even this arrangement has been working OK, though the new server (promised to be more reliable than our dedicated one) has had more unexpected outages in its first 3 months than we had in the last 4 years on the old one. But I digress . . . . I closed all my users' sessions and restarted the main app in a new session. To my surprise, the errors stopped. So, it looks as if the problem may be related to something in the configuration of the server where this all runs. Perhaps a lack of resources, or maybe a memory leak somewhere in one of the apps, or maybe the server needs to be re-booted. Maybe somebody out there has experience running Access apps in a similar configuration, and can share some stories and/or expertise. Or maybe comebody can validate or repudiate my sense of what's going on . . . I any case, it looks like I have a procedure that will get me back in business - however temporarily - if this happens again . . . Don -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of McGillivray, Don [IT] Sent: Friday, June 20, 2008 11:28 AM To: Access Developers discussion and problem solving Subject: [AccessD] Error 3001 - invalid argument - What the . . . . ? Out of the blue, I'm getting the above error (minus the "What the . . .?") in a proc that has been running rock solid forever. It's in a block of code where I'm using DAO to write a record to a table: .AddNew !field1 = SomeValue1 !field2 = SomeValue2 .Update Code is puking on the .Update line. I suspect some sort of corruption, but all my usual remedies (decompile/recompile, compact/repair) don't seem to be having any effect. This is probably my weakest area of understanding with Access, etc., so I'm not even sure I'm using those approaches correctly. Hoping somebody might be able to suggest a more reeliable way to the problem . . . . Don McGillivray -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From fuller.artful at gmail.com Fri Jun 20 17:09:54 2008 From: fuller.artful at gmail.com (Arthur Fuller) Date: Fri, 20 Jun 2008 19:09:54 -0300 Subject: [AccessD] Friday: Croatia v. Turkey In-Reply-To: <001701c8d31e$a41183b0$6401a8c0@nant> References: <29f585dd0806201425m586c576dq98c41ad583f291b@mail.gmail.com> <001701c8d31e$a41183b0$6401a8c0@nant> Message-ID: <29f585dd0806201509v6b3608dcxadb6d5ca2fc8ea64@mail.gmail.com> I know all about Guus and I agree that the drama will be interesting. No slam on Russia but I have an emotional attachment to Nederlands. I can even say the most difficult word in Dutch passably (hours and hours of practice) -- the word used in WW2 to test potential Nazi spys. I practised and practised and I am not perfect but pretty good at it now. It's the name of a town on the coast. Yeah, Croatia lost, but on the other hand Turkey won! You have to admire their stick-to-it-ness. A. On Fri, Jun 20, 2008 at 6:43 PM, Shamil Salakhetdinov < shamil at smsconsulting.spb.ru> wrote: > Hi Arthur, > > Croatia lost - pity, but tonight they played not so good football they > usually do... > > Russia vs. Netherlands tomorrow, with Russian team's coach being famous > Guus > Giddink (http://en.wikipedia.org/wiki/Guus_Hiddink ) from the Netherlands. > That's a real intrigue coming... > From ssharkins at gmail.com Fri Jun 20 17:51:18 2008 From: ssharkins at gmail.com (Susan Harkins) Date: Fri, 20 Jun 2008 18:51:18 -0400 Subject: [AccessD] DAO Recordset properties and methods References: Message-ID: <060701c8d328$781c6ae0$2f8601c7@SusanOne> I didn't know about Recordset2. Thanks for the link. I tried all kinds of search strings, and that never showed up. Susan H. > Hi Susan > > Here it is - or they are - as you now have a Recordset and a Recordset2 > object: > > http://msdn.microsoft.com/en-us/library/bb244903.aspx From ssharkins at gmail.com Fri Jun 20 17:52:07 2008 From: ssharkins at gmail.com (Susan Harkins) Date: Fri, 20 Jun 2008 18:52:07 -0400 Subject: [AccessD] VBA ADO Recordset question References: <040001c8d2fe$9ab3cd20$2f8601c7@SusanOne> Message-ID: <060a01c8d328$78e70de0$2f8601c7@SusanOne> Thanks Charlotte, I figured as much, but just don't know anything about .NET, so didn't know the specifics. This helps. Susan H. > If you're working with a recordset object in ADO.Net, it's an ADO > Recordset being mapped to an ADO.Net dataset. ADO uses a DataSet or a > DataAdapter, the latter of which allows you to specify behavior > performed implicitly by the Recordset in ADO. The ADO.Net DataTable > object is the equivalent of an ADO disconnected recordset. The > DataReader in .Net is similar to a forward-only, read-only recordset. From rockysmolin at bchacc.com Fri Jun 20 18:03:34 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Fri, 20 Jun 2008 16:03:34 -0700 Subject: [AccessD] Timer Event In-Reply-To: References: Message-ID: <008801c8d329$ddb5faf0$0301a8c0@HAL9005> Gustav: That will work if I can figure out the number of iterations and where they occur. This is a rather complex piece of code and has lots of phases and loops within the phases. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, June 20, 2008 9:19 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Timer Event Hi Rocky Another suggestion: http://msdn.microsoft.com/en-us/library/aa188220(office.10).aspx Chapter 9 Excerpt: Create a Generic, Reusable Status Meter /gustav -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Thursday, June 19, 2008 11:24 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Timer Event Dear List: The client would like a progress box to display during a lengthy calculation - can take up to a minute and I told him that some kind of indication should appear on the form so the user knows something is happening. I implemented one solution which is OK. I have a sub which adds a period to a text box on the calling form. And so I can lace calls to that routine throughout the calculations. Problem is that it doesn't produce these periods in equal time intervals. So what he really wants now is a progress indicator that would change every 1/4 second or so, and when it got to its maximum length would start over again. Not a difficult thing to do. I thought I could use the timer event on the form that calls the calculation, but the calculation is in a Public module and so, while it is running, the timer event doesn't trigger. Is there a way around this or another approach? MTIA Rocky Smolin -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Sat Jun 21 01:25:18 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 21 Jun 2008 08:25:18 +0200 Subject: [AccessD] DAO Recordset properties and methods Message-ID: Hi Susan Neither did I. It seems to be A2007 special: A Recordset2 object is contains all of the same properties and methods as the Recordset object. The Recordset2 object contains a new property, ParentRecordset, that support multi-valued field types. /gustav >>> ssharkins at gmail.com 21-06-2008 00:51 >>> I didn't know about Recordset2. Thanks for the link. I tried all kinds of search strings, and that never showed up. Susan H. > Hi Susan > > Here it is - or they are - as you now have a Recordset and a Recordset2 object: > > http://msdn.microsoft.com/en-us/library/bb244903.aspx From Gustav at cactus.dk Sat Jun 21 01:36:56 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 21 Jun 2008 08:36:56 +0200 Subject: [AccessD] Timer Event Message-ID: Hi Rocky As someone else suggested, invent your own increments. I just put in lines with a Debug.Print Timer around the code to get an idea of where a piece of code eats time. As said, the important part is that the user can see the bar moving to indicate the app is not frozen. As for the percentages - which can increment in irregular steps - we just tell the users that the percentage indication is not related to the total processing time but for the work done by the process(!) No one knows, but who can tell if the last 10% of "work" shouldn't eat 40% of the total time? /gustav >>> rockysmolin at bchacc.com 21-06-2008 01:03 >>> Gustav: That will work if I can figure out the number of iterations and where they occur. This is a rather complex piece of code and has lots of phases and loops within the phases. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, June 20, 2008 9:19 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Timer Event Hi Rocky Another suggestion: http://msdn.microsoft.com/en-us/library/aa188220(office.10).aspx Chapter 9 Excerpt: Create a Generic, Reusable Status Meter /gustav -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Thursday, June 19, 2008 11:24 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Timer Event Dear List: The client would like a progress box to display during a lengthy calculation - can take up to a minute and I told him that some kind of indication should appear on the form so the user knows something is happening. I implemented one solution which is OK. I have a sub which adds a period to a text box on the calling form. And so I can lace calls to that routine throughout the calculations. Problem is that it doesn't produce these periods in equal time intervals. So what he really wants now is a progress indicator that would change every 1/4 second or so, and when it got to its maximum length would start over again. Not a difficult thing to do. I thought I could use the timer event on the form that calls the calculation, but the calculation is in a Public module and so, while it is running, the timer event doesn't trigger. Is there a way around this or another approach? MTIA Rocky Smolin From dwaters at usinternet.com Sat Jun 21 06:47:31 2008 From: dwaters at usinternet.com (Dan Waters) Date: Sat, 21 Jun 2008 06:47:31 -0500 Subject: [AccessD] Use a Class in a Library.mdb - Lebans' Calendar In-Reply-To: <93E300B0CA19454696A19AB25991311F@danwaters> References: <93E300B0CA19454696A19AB25991311F@danwaters> Message-ID: Thanks to Charlotte and Lambert! The calendar is now working perfectly from the library file! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Thursday, June 19, 2008 1:33 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Use a Class in a Library.mdb - Lebans' Calendar Hello to all you class experts out there! Yesterday I downloaded Lebans' calendar - and it looks great! I worked with it yesterday in a copy of a customer system and it's working well But - this will be identically used at each customer, so I want to put the class module and the four standard modules that make up this calendar into my Library.mdb file, which is used identically at each customer. In one of the forms where the calendar will be used, the instructions are to put the following code into the Load event like this: Private Sub Form_Load() '-- Create an instance of our Class Set mc = New clsMonthCal '-- Set the hWndForm Property mc.hWndForm = Me.hWnd End Sub So, with Lebans' code out of this .mdb and placed into the Library.mdb, the second line does not compile. This .mdb references the Library.mdb. Can I change something so that I can place Leban's class module and standard modules in my Library.mdb instead of putting it in every customer's .mdb? Thanks for any help and suggestions! Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From tinanfields at torchlake.com Sat Jun 21 07:58:58 2008 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Sat, 21 Jun 2008 08:58:58 -0400 Subject: [AccessD] Feedback Needed - Round 2 In-Reply-To: <005b01c8cfb7$34b76c60$0301a8c0@HAL9005> References: <005b01c8cfb7$34b76c60$0301a8c0@HAL9005> Message-ID: <485CFB12.2060603@torchlake.com> Hi Rocky, I'm a little late getting to this thread, and I see that a number of the suggestions made have already been implemented. I'm using FireFox 5.0 and IE 7.0 to view your site. When I select a tab, and the new page is loaded, the heading for that page takes the top left position, which is really kind of nice. But, the tab for Home disappears completely. To return to the Home page, I must use the Back button on the toolbar. I don't find any link on the page to take me back to the Home page. I would like a consistent navigation bar somewhere on the page, one that includes the Home page link as well as all the others. Hope this is helpful, Tina Rocky Smolin at Beach Access Software wrote: > Dear List: > > First of all thanks to everyone who responded the first time with input on > the Beach Access Software web site redesign. > > Karen has taken all of your input and reworked the site. So now we're ready > to impose on you all again for your feedback. > > The site is temporarily stored at http://www.bchacc.com/beachtemp/index.html > > Any and all comments will be greatly appreciated. > > MTIA, > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > www.e-z-mrp.com > > www.bchacc.com > > > > > > > From rockysmolin at bchacc.com Sat Jun 21 08:12:14 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Sat, 21 Jun 2008 06:12:14 -0700 Subject: [AccessD] Feedback Needed - Round 2 In-Reply-To: <485CFB12.2060603@torchlake.com> References: <005b01c8cfb7$34b76c60$0301a8c0@HAL9005> <485CFB12.2060603@torchlake.com> Message-ID: <001301c8d3a0$6c6efbe0$0301a8c0@HAL9005> Very helpful. Stay tuned. Round 3 is coming up. I think we're close. Best, Rocky Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tina Norris Fields Sent: Saturday, June 21, 2008 5:59 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Feedback Needed - Round 2 Hi Rocky, I'm a little late getting to this thread, and I see that a number of the suggestions made have already been implemented. I'm using FireFox 5.0 and IE 7.0 to view your site. When I select a tab, and the new page is loaded, the heading for that page takes the top left position, which is really kind of nice. But, the tab for Home disappears completely. To return to the Home page, I must use the Back button on the toolbar. I don't find any link on the page to take me back to the Home page. I would like a consistent navigation bar somewhere on the page, one that includes the Home page link as well as all the others. Hope this is helpful, Tina Rocky Smolin at Beach Access Software wrote: > Dear List: > > First of all thanks to everyone who responded the first time with > input on the Beach Access Software web site redesign. > > Karen has taken all of your input and reworked the site. So now we're > ready to impose on you all again for your feedback. > > The site is temporarily stored at > http://www.bchacc.com/beachtemp/index.html > > Any and all comments will be greatly appreciated. > > MTIA, > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > www.e-z-mrp.com > > www.bchacc.com > > > > > > > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Sat Jun 21 09:34:43 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 21 Jun 2008 16:34:43 +0200 Subject: [AccessD] OT: "Baby Machine" 60 years today Message-ID: Hi all See the introduction to the forerunner of all modern computers, Baby Machine, which ran a stored program 60 years ago at the University of Manchester, UK. And listen to music played by the Ferranti Mark 1 computer, a commercial version of the Baby Machine. http://news.bbc.co.uk/2/hi/technology/7458479.stm /gustav From rockysmolin at bchacc.com Sat Jun 21 10:15:12 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Sat, 21 Jun 2008 08:15:12 -0700 Subject: [AccessD] Timer Event In-Reply-To: References: Message-ID: <004501c8d3b1$9a38e070$0301a8c0@HAL9005> Gustav: I kind of did that with a module that updates the progress bar. Then I experimented with lacing the calls throughout the algorithm. Now the user has it and, because he can do a bit of programming, he's going to lay with placing the calls in the algorithm until he gets the behavior he's looking for. Which is fine with me. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, June 20, 2008 11:37 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Timer Event Hi Rocky As someone else suggested, invent your own increments. I just put in lines with a Debug.Print Timer around the code to get an idea of where a piece of code eats time. As said, the important part is that the user can see the bar moving to indicate the app is not frozen. As for the percentages - which can increment in irregular steps - we just tell the users that the percentage indication is not related to the total processing time but for the work done by the process(!) No one knows, but who can tell if the last 10% of "work" shouldn't eat 40% of the total time? /gustav >>> rockysmolin at bchacc.com 21-06-2008 01:03 >>> Gustav: That will work if I can figure out the number of iterations and where they occur. This is a rather complex piece of code and has lots of phases and loops within the phases. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, June 20, 2008 9:19 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Timer Event Hi Rocky Another suggestion: http://msdn.microsoft.com/en-us/library/aa188220(office.10).aspx Chapter 9 Excerpt: Create a Generic, Reusable Status Meter /gustav -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Thursday, June 19, 2008 11:24 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Timer Event Dear List: The client would like a progress box to display during a lengthy calculation - can take up to a minute and I told him that some kind of indication should appear on the form so the user knows something is happening. I implemented one solution which is OK. I have a sub which adds a period to a text box on the calling form. And so I can lace calls to that routine throughout the calculations. Problem is that it doesn't produce these periods in equal time intervals. So what he really wants now is a progress indicator that would change every 1/4 second or so, and when it got to its maximum length would start over again. Not a difficult thing to do. I thought I could use the timer event on the form that calls the calculation, but the calculation is in a Public module and so, while it is running, the timer event doesn't trigger. Is there a way around this or another approach? MTIA Rocky Smolin -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Sat Jun 21 10:24:10 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 21 Jun 2008 17:24:10 +0200 Subject: [AccessD] Timer Event Message-ID: Hi Rocky Sounds like a great solution. Let the user decide when there is no "right" algorithm. /gustav >>> rockysmolin at bchacc.com 21-06-2008 17:15 >>> Gustav: I kind of did that with a module that updates the progress bar. Then I experimented with lacing the calls throughout the algorithm. Now the user has it and, because he can do a bit of programming, he's going to lay with placing the calls in the algorithm until he gets the behavior he's looking for. Which is fine with me. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, June 20, 2008 11:37 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Timer Event Hi Rocky As someone else suggested, invent your own increments. I just put in lines with a Debug.Print Timer around the code to get an idea of where a piece of code eats time. As said, the important part is that the user can see the bar moving to indicate the app is not frozen. As for the percentages - which can increment in irregular steps - we just tell the users that the percentage indication is not related to the total processing time but for the work done by the process(!) No one knows, but who can tell if the last 10% of "work" shouldn't eat 40% of the total time? /gustav >>> rockysmolin at bchacc.com 21-06-2008 01:03 >>> Gustav: That will work if I can figure out the number of iterations and where they occur. This is a rather complex piece of code and has lots of phases and loops within the phases. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Friday, June 20, 2008 9:19 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Timer Event Hi Rocky Another suggestion: http://msdn.microsoft.com/en-us/library/aa188220(office.10).aspx Chapter 9 Excerpt: Create a Generic, Reusable Status Meter /gustav -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Thursday, June 19, 2008 11:24 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Timer Event Dear List: The client would like a progress box to display during a lengthy calculation - can take up to a minute and I told him that some kind of indication should appear on the form so the user knows something is happening. I implemented one solution which is OK. I have a sub which adds a period to a text box on the calling form. And so I can lace calls to that routine throughout the calculations. Problem is that it doesn't produce these periods in equal time intervals. So what he really wants now is a progress indicator that would change every 1/4 second or so, and when it got to its maximum length would start over again. Not a difficult thing to do. I thought I could use the timer event on the form that calls the calculation, but the calculation is in a Public module and so, while it is running, the timer event doesn't trigger. Is there a way around this or another approach? MTIA Rocky Smolin From djkr at msn.com Sat Jun 21 12:06:47 2008 From: djkr at msn.com (DJK(John) Robinson) Date: Sat, 21 Jun 2008 18:06:47 +0100 Subject: [AccessD] OT: "Baby Machine" 60 years today In-Reply-To: Message-ID: Well spotted, Gustav. I was at the celebration last night at Manchester University. I am too young to have had anything to do with the original, but did get my first program working on the Ferranti Mark 1* just over 46 years ago. Even integer division (no floating-point at all!) had to be programmed, yet the machine I used spent much of its time doing matrix arithmetic, calculating the stresses and strains in an aircraft wing during take-off. I also used a powerful successor, Atlas, at MU, when the Atlas Bureau Service first opened in (?)January 1963; I was refining a technique for finding the roots of complex transcendental functions - just in case you were about to ask. One of the novel features of Atlas was the One-Level Store (virtual memory), 'invented' many years later by IBM. Hey ho. John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 21 June 2008 15:35 To: accessd at databaseadvisors.com Subject: [AccessD] OT: "Baby Machine" 60 years today Hi all See the introduction to the forerunner of all modern computers, Baby Machine, which ran a stored program 60 years ago at the University of Manchester, UK. And listen to music played by the Ferranti Mark 1 computer, a commercial version of the Baby Machine. http://news.bbc.co.uk/2/hi/technology/7458479.stm /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 Jun 21 15:53:57 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Sat, 21 Jun 2008 22:53:57 +0200 Subject: [AccessD] OT: "Baby Machine" 60 years today Message-ID: Hi John Really? I perhaps expected that some knew about these machines - I only recall the name Ferranti from Ferranti Semiconductor - but that you actually attended the celebration and know the Ferranti Mark 1 that good is quite a surprise! What a drive on Memory Lane it must have been. It is fascinating to hear what these machines were capable of given the modest storage and computing resources. It is only a few days ago I sat wondering why my Vista machine consumes 80 GB of diskspace with only VS2008, SQL Server local, and Office 2007 installed. Once a pc had 30 MB of harddisk space and a 4.77 MHZ CPU - that is about 1/2500(!) and 1/1000. I noticed the Wikipedia has much info on Ferranti should anyone else be interested: http://en.wikipedia.org/wiki/Ferranti Thanks for the insight John! /gustav >>> djkr at msn.com 21-06-2008 19:06 >>> Well spotted, Gustav. I was at the celebration last night at Manchester University. I am too young to have had anything to do with the original, but did get my first program working on the Ferranti Mark 1* just over 46 years ago. Even integer division (no floating-point at all!) had to be programmed, yet the machine I used spent much of its time doing matrix arithmetic, calculating the stresses and strains in an aircraft wing during take-off. I also used a powerful successor, Atlas, at MU, when the Atlas Bureau Service first opened in (?)January 1963; I was refining a technique for finding the roots of complex transcendental functions - just in case you were about to ask. One of the novel features of Atlas was the One-Level Store (virtual memory), 'invented' many years later by IBM. Hey ho. John -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: 21 June 2008 15:35 To: accessd at databaseadvisors.com Subject: [AccessD] OT: "Baby Machine" 60 years today Hi all See the introduction to the forerunner of all modern computers, Baby Machine, which ran a stored program 60 years ago at the University of Manchester, UK. And listen to music played by the Ferranti Mark 1 computer, a commercial version of the Baby Machine. http://news.bbc.co.uk/2/hi/technology/7458479.stm /gustav From shamil at smsconsulting.spb.ru Sat Jun 21 16:45:37 2008 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sun, 22 Jun 2008 01:45:37 +0400 Subject: [AccessD] OT: Saturday' EURO2008 Football: Russa - Netherlands - 3:1! Was: RE: Friday: Croatia v. Turkey In-Reply-To: <29f585dd0806201509v6b3608dcxadb6d5ca2fc8ea64@mail.gmail.com> Message-ID: <003101c8d3e8$264e2cb0$6401a8c0@nant> That was fantastic, especially the last 30 minutes of added time... I hear people are celebrating here on the nearby streets... Time to go to pub? - it's 1:44 a.m. here.... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Saturday, June 21, 2008 2:10 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Friday: Croatia v. Turkey I know all about Guus and I agree that the drama will be interesting. No slam on Russia but I have an emotional attachment to Nederlands. I can even say the most difficult word in Dutch passably (hours and hours of practice) -- the word used in WW2 to test potential Nazi spys. I practised and practised and I am not perfect but pretty good at it now. It's the name of a town on the coast. Yeah, Croatia lost, but on the other hand Turkey won! You have to admire their stick-to-it-ness. A. On Fri, Jun 20, 2008 at 6:43 PM, Shamil Salakhetdinov < shamil at smsconsulting.spb.ru> wrote: > Hi Arthur, > > Croatia lost - pity, but tonight they played not so good football they > usually do... > > Russia vs. Netherlands tomorrow, with Russian team's coach being famous > Guus > Giddink (http://en.wikipedia.org/wiki/Guus_Hiddink ) from the Netherlands. > That's a real intrigue coming... > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From tinanfields at torchlake.com Sat Jun 21 17:02:05 2008 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Sat, 21 Jun 2008 18:02:05 -0400 Subject: [AccessD] Merge Process Doesn't See All the Queries - Why? Message-ID: <485D7A5D.3060403@torchlake.com> Hi, This database has a query specifically for generating the records to be captured in a merge document. The query is qryPrintListForContributionTypeOfMember (I didn't make up this name - I have inherited it). The Donation letter is supposed to be linked to that query. When the Donation letter got moved into another folder, of course it could no longer find its supporting query. Hey, no problem, just point it back at the database, right, and select the appropriate query - but, when I do that, the query does not appear in the list. Not possible, say I to myself, I must have goofed up and pointed to the wrong copy of this silly database - do it again, and be careful this time. So, I did it again and again, and always the same result. Naturally, I'm thinking somehow I have lost this query - don't know how, but it must be gone. No, open the database normally, and there is the query. Open a fresh Word document to start the process over and reconstruct the letter, which must have something wrong with it, right, since it can't see the perfectly good query - oh no! - the same result. Looking for the data source, the query does not show up in the list of queries available in this database. Open the database itself, there is the query, just fine. What the . . . . ???? I've never seen this before and I don't know what the problem is. Any ideas? Thanks, Tina From hkotsch at arcor.de Sat Jun 21 17:10:51 2008 From: hkotsch at arcor.de (Helmut Kotsch) Date: Sun, 22 Jun 2008 00:10:51 +0200 Subject: [AccessD] Friday: Croatia v. Turkey In-Reply-To: <001701c8d31e$a41183b0$6401a8c0@nant> Message-ID: Shamil, congrats on your team winning against the Netherlands 3:1. Was a great game by a great team. When Germany will win against Turkey on Wednesday there is a good chance that we will play against Russia in the final game. As I understand from the TV reports a lot of Russian people would like to see this happen. Helmut -----Ursprungliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von Shamil Salakhetdinov Gesendet: Freitag, 20. Juni 2008 23:43 An: 'Access Developers discussion and problem solving' Betreff: Re: [AccessD] Friday: Croatia v. Turkey Hi Arthur, Croatia lost - pity, but tonight they played not so good football they usually do... Russia vs. Netherlands tomorrow, with Russian team's coach being famous Guus Giddink (http://en.wikipedia.org/wiki/Guus_Hiddink ) from the Netherlands. That's a real intrigue coming... We will see... Have a nice weekend there on Bermuda. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Saturday, June 21, 2008 1:25 AM To: Access Developers discussion and problem solving Subject: [AccessD] Friday: Croatia v. Turkey Wow. A tense moment here and there for the first 115 minutes and then suddenly a goal apiece in 2 minutes. Wow. God, I love football. It is the beautiful game. My heart and money are still on Nederlands though. A. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From hkotsch at arcor.de Sat Jun 21 17:17:09 2008 From: hkotsch at arcor.de (Helmut Kotsch) Date: Sun, 22 Jun 2008 00:17:09 +0200 Subject: [AccessD] OT: Saturday' EURO2008 Football: Russa - Netherlands -3:1! Was: RE: Friday: Croatia v. Turkey In-Reply-To: <003101c8d3e8$264e2cb0$6401a8c0@nant> Message-ID: Shamil, congrats on your team winning against the Netherlands 3:1. Was a great game by a great team. When Germany will win against Turkey on Wednesday there is a good chance that we will play against Russia in the final game. As I understand from the TV reports a lot of Russian people would like to see this happen. Helmut -----Ursprungliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von Shamil Salakhetdinov Gesendet: Samstag, 21. Juni 2008 23:46 An: 'Access Developers discussion and problem solving' Betreff: [AccessD] OT: Saturday' EURO2008 Football: Russa - Netherlands -3:1! Was: RE: Friday: Croatia v. Turkey That was fantastic, especially the last 30 minutes of added time... I hear people are celebrating here on the nearby streets... Time to go to pub? - it's 1:44 a.m. here.... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Saturday, June 21, 2008 2:10 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Friday: Croatia v. Turkey I know all about Guus and I agree that the drama will be interesting. No slam on Russia but I have an emotional attachment to Nederlands. I can even say the most difficult word in Dutch passably (hours and hours of practice) -- the word used in WW2 to test potential Nazi spys. I practised and practised and I am not perfect but pretty good at it now. It's the name of a town on the coast. Yeah, Croatia lost, but on the other hand Turkey won! You have to admire their stick-to-it-ness. A. On Fri, Jun 20, 2008 at 6:43 PM, Shamil Salakhetdinov < shamil at smsconsulting.spb.ru> wrote: > Hi Arthur, > > Croatia lost - pity, but tonight they played not so good football they > usually do... > > Russia vs. Netherlands tomorrow, with Russian team's coach being famous > Guus > Giddink (http://en.wikipedia.org/wiki/Guus_Hiddink ) from the Netherlands. > That's a real intrigue coming... > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Sat Jun 21 17:21:37 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Sat, 21 Jun 2008 15:21:37 -0700 Subject: [AccessD] Merge Process Doesn't See All the Queries - Why? In-Reply-To: <485D7A5D.3060403@torchlake.com> References: <485D7A5D.3060403@torchlake.com> Message-ID: <006501c8d3ed$2bf0a440$0301a8c0@HAL9005> No idea but I'd recreate the query with another name and see if you could link it to the new query. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tina Norris Fields Sent: Saturday, June 21, 2008 3:02 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Merge Process Doesn't See All the Queries - Why? Hi, This database has a query specifically for generating the records to be captured in a merge document. The query is qryPrintListForContributionTypeOfMember (I didn't make up this name - I have inherited it). The Donation letter is supposed to be linked to that query. When the Donation letter got moved into another folder, of course it could no longer find its supporting query. Hey, no problem, just point it back at the database, right, and select the appropriate query - but, when I do that, the query does not appear in the list. Not possible, say I to myself, I must have goofed up and pointed to the wrong copy of this silly database - do it again, and be careful this time. So, I did it again and again, and always the same result. Naturally, I'm thinking somehow I have lost this query - don't know how, but it must be gone. No, open the database normally, and there is the query. Open a fresh Word document to start the process over and reconstruct the letter, which must have something wrong with it, right, since it can't see the perfectly good query - oh no! - the same result. Looking for the data source, the query does not show up in the list of queries available in this database. Open the database itself, there is the query, just fine. What the . . . . ???? I've never seen this before and I don't know what the problem is. Any ideas? Thanks, Tina -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From shamil at smsconsulting.spb.ru Sat Jun 21 17:35:25 2008 From: shamil at smsconsulting.spb.ru (Shamil Salakhetdinov) Date: Sun, 22 Jun 2008 02:35:25 +0400 Subject: [AccessD] OT: Saturday' EURO2008 Football: Russa - Netherlands-3:1! Was: RE: Friday: Croatia v. Turkey In-Reply-To: Message-ID: <003701c8d3ef$19706560$6401a8c0@nant> Hi Helmut, We will see, Turkey is a "hardcore", who knows... And Italy or Spain vs. Russia in semi-final - that also promises to be a game! I'd prefer that would be Russia - Spain semi-final and then Russia vs. Germany or Turkey final... :) We, will see... People still celebrating here on the streets... I might still go outside in the nearby pub, which will close 4 or 5 a.m. in the morning - it's 2:33 a.m. but sunrise should start in 40 minutes - an hour - "White-Nights" season here... Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Helmut Kotsch Sent: Sunday, June 22, 2008 2:17 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Saturday' EURO2008 Football: Russa - Netherlands-3:1! Was: RE: Friday: Croatia v. Turkey Shamil, congrats on your team winning against the Netherlands 3:1. Was a great game by a great team. When Germany will win against Turkey on Wednesday there is a good chance that we will play against Russia in the final game. As I understand from the TV reports a lot of Russian people would like to see this happen. Helmut -----Ursprungliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von Shamil Salakhetdinov Gesendet: Samstag, 21. Juni 2008 23:46 An: 'Access Developers discussion and problem solving' Betreff: [AccessD] OT: Saturday' EURO2008 Football: Russa - Netherlands -3:1! Was: RE: Friday: Croatia v. Turkey That was fantastic, especially the last 30 minutes of added time... I hear people are celebrating here on the nearby streets... Time to go to pub? - it's 1:44 a.m. here.... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Saturday, June 21, 2008 2:10 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Friday: Croatia v. Turkey I know all about Guus and I agree that the drama will be interesting. No slam on Russia but I have an emotional attachment to Nederlands. I can even say the most difficult word in Dutch passably (hours and hours of practice) -- the word used in WW2 to test potential Nazi spys. I practised and practised and I am not perfect but pretty good at it now. It's the name of a town on the coast. Yeah, Croatia lost, but on the other hand Turkey won! You have to admire their stick-to-it-ness. A. On Fri, Jun 20, 2008 at 6:43 PM, Shamil Salakhetdinov < shamil at smsconsulting.spb.ru> wrote: > Hi Arthur, > > Croatia lost - pity, but tonight they played not so good football they > usually do... > > Russia vs. Netherlands tomorrow, with Russian team's coach being famous > Guus > Giddink (http://en.wikipedia.org/wiki/Guus_Hiddink ) from the Netherlands. > That's a real intrigue coming... > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Sat Jun 21 17:43:46 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Sat, 21 Jun 2008 17:43:46 -0500 Subject: [AccessD] OT: "Baby Machine" 60 years today In-Reply-To: Message-ID: Reminded me about Scream Tracker: http://en.wikipedia.org/wiki/ScreamTracker Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Saturday, June 21, 2008 9:35 AM To: accessd at databaseadvisors.com Subject: [AccessD] OT: "Baby Machine" 60 years today Hi all See the introduction to the forerunner of all modern computers, Baby Machine, which ran a stored program 60 years ago at the University of Manchester, UK. And listen to music played by the Ferranti Mark 1 computer, a commercial version of the Baby Machine. http://news.bbc.co.uk/2/hi/technology/7458479.stm /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From wdhindman at dejpolsystems.com Sat Jun 21 17:47:48 2008 From: wdhindman at dejpolsystems.com (William Hindman) Date: Sat, 21 Jun 2008 18:47:48 -0400 Subject: [AccessD] Merge Process Doesn't See All the Queries - Why? References: <485D7A5D.3060403@torchlake.com> Message-ID: <34EB8CADFE7040F8AEF0125D0DD03738@jislaptopdev> Tina ...can't recall the particular reason at the moment but you can only merge Word to certain query structures ...either updateable ones or non-mm ...that's most likely your problem ...in some cases I've had to create temp tables and merge from them instead of the query itself. William "Sen. McCain will bring a lifetime of experience to the campaign... Sen. Obama will bring a speech that he gave." Hillary Clinton -------------------------------------------------- From: "Tina Norris Fields" Sent: Saturday, June 21, 2008 6:02 PM To: "'Access Developers discussion and problem solving'" Subject: [AccessD] Merge Process Doesn't See All the Queries - Why? > Hi, > > This database has a query specifically for generating the records to be > captured in a merge document. The query is > qryPrintListForContributionTypeOfMember (I didn't make up this name - I > have inherited it). The Donation letter is supposed to be linked to > that query. When the Donation letter got moved into another folder, of > course it could no longer find its supporting query. Hey, no problem, > just point it back at the database, right, and select the appropriate > query - but, when I do that, the query does not appear in the list. Not > possible, say I to myself, I must have goofed up and pointed to the > wrong copy of this silly database - do it again, and be careful this > time. So, I did it again and again, and always the same result. > Naturally, I'm thinking somehow I have lost this query - don't know how, > but it must be gone. No, open the database normally, and there is the > query. Open a fresh Word document to start the process over and > reconstruct the letter, which must have something wrong with it, right, > since it can't see the perfectly good query - oh no! - the same result. > Looking for the data source, the query does not show up in the list of > queries available in this database. Open the database itself, there is > the query, just fine. What the . . . . ???? > > I've never seen this before and I don't know what the problem is. Any > ideas? > > Thanks, > Tina > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From hkotsch at arcor.de Sat Jun 21 17:54:43 2008 From: hkotsch at arcor.de (Helmut Kotsch) Date: Sun, 22 Jun 2008 00:54:43 +0200 Subject: [AccessD] OT: Saturday' EURO2008 Football: Russa -Netherlands-3:1! Was: RE: Friday: Croatia v. Turkey In-Reply-To: <003701c8d3ef$19706560$6401a8c0@nant> Message-ID: Hi Shamil, just saw on television that a lot of Russian people also celebrate on the streets in Hamburg and Berlin. Isn't it nice how people can enjoy this sport? Helmut -----Ursprungliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von Shamil Salakhetdinov Gesendet: Sonntag, 22. Juni 2008 00:35 An: 'Access Developers discussion and problem solving' Betreff: Re: [AccessD] OT: Saturday' EURO2008 Football: Russa -Netherlands-3:1! Was: RE: Friday: Croatia v. Turkey Hi Helmut, We will see, Turkey is a "hardcore", who knows... And Italy or Spain vs. Russia in semi-final - that also promises to be a game! I'd prefer that would be Russia - Spain semi-final and then Russia vs. Germany or Turkey final... :) We, will see... People still celebrating here on the streets... I might still go outside in the nearby pub, which will close 4 or 5 a.m. in the morning - it's 2:33 a.m. but sunrise should start in 40 minutes - an hour - "White-Nights" season here... Thank you. -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Helmut Kotsch Sent: Sunday, June 22, 2008 2:17 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: Saturday' EURO2008 Football: Russa - Netherlands-3:1! Was: RE: Friday: Croatia v. Turkey Shamil, congrats on your team winning against the Netherlands 3:1. Was a great game by a great team. When Germany will win against Turkey on Wednesday there is a good chance that we will play against Russia in the final game. As I understand from the TV reports a lot of Russian people would like to see this happen. Helmut -----Ursprungliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von Shamil Salakhetdinov Gesendet: Samstag, 21. Juni 2008 23:46 An: 'Access Developers discussion and problem solving' Betreff: [AccessD] OT: Saturday' EURO2008 Football: Russa - Netherlands -3:1! Was: RE: Friday: Croatia v. Turkey That was fantastic, especially the last 30 minutes of added time... I hear people are celebrating here on the nearby streets... Time to go to pub? - it's 1:44 a.m. here.... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Saturday, June 21, 2008 2:10 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Friday: Croatia v. Turkey I know all about Guus and I agree that the drama will be interesting. No slam on Russia but I have an emotional attachment to Nederlands. I can even say the most difficult word in Dutch passably (hours and hours of practice) -- the word used in WW2 to test potential Nazi spys. I practised and practised and I am not perfect but pretty good at it now. It's the name of a town on the coast. Yeah, Croatia lost, but on the other hand Turkey won! You have to admire their stick-to-it-ness. A. On Fri, Jun 20, 2008 at 6:43 PM, Shamil Salakhetdinov < shamil at smsconsulting.spb.ru> wrote: > Hi Arthur, > > Croatia lost - pity, but tonight they played not so good football they > usually do... > > Russia vs. Netherlands tomorrow, with Russian team's coach being famous > Guus > Giddink (http://en.wikipedia.org/wiki/Guus_Hiddink ) from the Netherlands. > That's a real intrigue coming... > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ab-mi at post3.tele.dk Sat Jun 21 18:16:09 2008 From: ab-mi at post3.tele.dk (Asger Blond) Date: Sun, 22 Jun 2008 01:16:09 +0200 Subject: [AccessD] OT: Saturday' EURO2008 Football: Russa - Netherlands-3:1! Was: RE: Friday: Croatia v. Turkey In-Reply-To: Message-ID: <000701c8d3f4$df323670$2101a8c0@AB> Hi Helmut, Suppose this OT-duplicate of your previous non-OT posting was meant as an example of "eine Fieber Rettung". - good luck against Russia if you beat Turkey, Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Helmut Kotsch Sendt: 22. juni 2008 00:17 Til: Access Developers discussion and problem solving Emne: Re: [AccessD] OT: Saturday' EURO2008 Football: Russa - Netherlands-3:1! Was: RE: Friday: Croatia v. Turkey Shamil, congrats on your team winning against the Netherlands 3:1. Was a great game by a great team. When Germany will win against Turkey on Wednesday there is a good chance that we will play against Russia in the final game. As I understand from the TV reports a lot of Russian people would like to see this happen. Helmut -----Ursprungliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von Shamil Salakhetdinov Gesendet: Samstag, 21. Juni 2008 23:46 An: 'Access Developers discussion and problem solving' Betreff: [AccessD] OT: Saturday' EURO2008 Football: Russa - Netherlands -3:1! Was: RE: Friday: Croatia v. Turkey That was fantastic, especially the last 30 minutes of added time... I hear people are celebrating here on the nearby streets... Time to go to pub? - it's 1:44 a.m. here.... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Saturday, June 21, 2008 2:10 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Friday: Croatia v. Turkey I know all about Guus and I agree that the drama will be interesting. No slam on Russia but I have an emotional attachment to Nederlands. I can even say the most difficult word in Dutch passably (hours and hours of practice) -- the word used in WW2 to test potential Nazi spys. I practised and practised and I am not perfect but pretty good at it now. It's the name of a town on the coast. Yeah, Croatia lost, but on the other hand Turkey won! You have to admire their stick-to-it-ness. A. On Fri, Jun 20, 2008 at 6:43 PM, Shamil Salakhetdinov < shamil at smsconsulting.spb.ru> wrote: > Hi Arthur, > > Croatia lost - pity, but tonight they played not so good football they > usually do... > > Russia vs. Netherlands tomorrow, with Russian team's coach being famous > Guus > Giddink (http://en.wikipedia.org/wiki/Guus_Hiddink ) from the Netherlands. > That's a real intrigue coming... > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From hkotsch at arcor.de Sat Jun 21 18:18:34 2008 From: hkotsch at arcor.de (Helmut Kotsch) Date: Sun, 22 Jun 2008 01:18:34 +0200 Subject: [AccessD] OT: Saturday' EURO2008 Football: Russa -Netherlands-3:1! Was: RE: Friday: Croatia v. Turkey In-Reply-To: <000701c8d3f4$df323670$2101a8c0@AB> Message-ID: Hi Asger, I don't know what "eine Fieber Rettung" means. But I for sure know that we need lots of luck against Turkey and if we beat them we need lots of luck against Russia. We all know luck is a part of the game. Helmut -----Urspr?ngliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von Asger Blond Gesendet: Sonntag, 22. Juni 2008 01:16 An: 'Access Developers discussion and problem solving' Betreff: Re: [AccessD] OT: Saturday' EURO2008 Football: Russa -Netherlands-3:1! Was: RE: Friday: Croatia v. Turkey Hi Helmut, Suppose this OT-duplicate of your previous non-OT posting was meant as an example of "eine Fieber Rettung". - good luck against Russia if you beat Turkey, Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Helmut Kotsch Sendt: 22. juni 2008 00:17 Til: Access Developers discussion and problem solving Emne: Re: [AccessD] OT: Saturday' EURO2008 Football: Russa - Netherlands-3:1! Was: RE: Friday: Croatia v. Turkey Shamil, congrats on your team winning against the Netherlands 3:1. Was a great game by a great team. When Germany will win against Turkey on Wednesday there is a good chance that we will play against Russia in the final game. As I understand from the TV reports a lot of Russian people would like to see this happen. Helmut -----Ursprungliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von Shamil Salakhetdinov Gesendet: Samstag, 21. Juni 2008 23:46 An: 'Access Developers discussion and problem solving' Betreff: [AccessD] OT: Saturday' EURO2008 Football: Russa - Netherlands -3:1! Was: RE: Friday: Croatia v. Turkey That was fantastic, especially the last 30 minutes of added time... I hear people are celebrating here on the nearby streets... Time to go to pub? - it's 1:44 a.m. here.... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Saturday, June 21, 2008 2:10 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Friday: Croatia v. Turkey I know all about Guus and I agree that the drama will be interesting. No slam on Russia but I have an emotional attachment to Nederlands. I can even say the most difficult word in Dutch passably (hours and hours of practice) -- the word used in WW2 to test potential Nazi spys. I practised and practised and I am not perfect but pretty good at it now. It's the name of a town on the coast. Yeah, Croatia lost, but on the other hand Turkey won! You have to admire their stick-to-it-ness. A. On Fri, Jun 20, 2008 at 6:43 PM, Shamil Salakhetdinov < shamil at smsconsulting.spb.ru> wrote: > Hi Arthur, > > Croatia lost - pity, but tonight they played not so good football they > usually do... > > Russia vs. Netherlands tomorrow, with Russian team's coach being famous > Guus > Giddink (http://en.wikipedia.org/wiki/Guus_Hiddink ) from the Netherlands. > That's a real intrigue coming... > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From djkr at msn.com Sat Jun 21 18:54:57 2008 From: djkr at msn.com (DJK(John) Robinson) Date: Sun, 22 Jun 2008 00:54:57 +0100 Subject: [AccessD] OT: "Baby Machine" 60 years today In-Reply-To: Message-ID: How good is ScreamTracker at matrix inversion ...? ;-) J -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: 21 June 2008 23:44 To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: "Baby Machine" 60 years today Reminded me about Scream Tracker: http://en.wikipedia.org/wiki/ScreamTracker Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Saturday, June 21, 2008 9:35 AM To: accessd at databaseadvisors.com Subject: [AccessD] OT: "Baby Machine" 60 years today Hi all See the introduction to the forerunner of all modern computers, Baby Machine, which ran a stored program 60 years ago at the University of Manchester, UK. And listen to music played by the Ferranti Mark 1 computer, a commercial version of the Baby Machine. http://news.bbc.co.uk/2/hi/technology/7458479.stm /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ab-mi at post3.tele.dk Sat Jun 21 19:27:51 2008 From: ab-mi at post3.tele.dk (Asger Blond) Date: Sun, 22 Jun 2008 02:27:51 +0200 Subject: [AccessD] OT: Saturday' EURO2008 Football: Russa-Netherlands-3:1! Was: RE: Friday: Croatia v. Turkey In-Reply-To: Message-ID: <000801c8d3fe$ce4ff680$2101a8c0@AB> Hi Helmut, Sorry, just made a quick-and-dirty translation from danish to german: "feberredning" --> "Fieberrettung": goalkeepers quick-and-dirty saving. - hope this makes sense Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Helmut Kotsch Sendt: 22. juni 2008 01:19 Til: Access Developers discussion and problem solving Emne: Re: [AccessD] OT: Saturday' EURO2008 Football: Russa-Netherlands-3:1! Was: RE: Friday: Croatia v. Turkey Hi Asger, I don't know what "eine Fieber Rettung" means. But I for sure know that we need lots of luck against Turkey and if we beat them we need lots of luck against Russia. We all know luck is a part of the game. Helmut -----Urspr?ngliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von Asger Blond Gesendet: Sonntag, 22. Juni 2008 01:16 An: 'Access Developers discussion and problem solving' Betreff: Re: [AccessD] OT: Saturday' EURO2008 Football: Russa -Netherlands-3:1! Was: RE: Friday: Croatia v. Turkey Hi Helmut, Suppose this OT-duplicate of your previous non-OT posting was meant as an example of "eine Fieber Rettung". - good luck against Russia if you beat Turkey, Asger -----Oprindelig meddelelse----- Fra: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] P? vegne af Helmut Kotsch Sendt: 22. juni 2008 00:17 Til: Access Developers discussion and problem solving Emne: Re: [AccessD] OT: Saturday' EURO2008 Football: Russa - Netherlands-3:1! Was: RE: Friday: Croatia v. Turkey Shamil, congrats on your team winning against the Netherlands 3:1. Was a great game by a great team. When Germany will win against Turkey on Wednesday there is a good chance that we will play against Russia in the final game. As I understand from the TV reports a lot of Russian people would like to see this happen. Helmut -----Ursprungliche Nachricht----- Von: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von Shamil Salakhetdinov Gesendet: Samstag, 21. Juni 2008 23:46 An: 'Access Developers discussion and problem solving' Betreff: [AccessD] OT: Saturday' EURO2008 Football: Russa - Netherlands -3:1! Was: RE: Friday: Croatia v. Turkey That was fantastic, especially the last 30 minutes of added time... I hear people are celebrating here on the nearby streets... Time to go to pub? - it's 1:44 a.m. here.... -- Shamil -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Arthur Fuller Sent: Saturday, June 21, 2008 2:10 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Friday: Croatia v. Turkey I know all about Guus and I agree that the drama will be interesting. No slam on Russia but I have an emotional attachment to Nederlands. I can even say the most difficult word in Dutch passably (hours and hours of practice) -- the word used in WW2 to test potential Nazi spys. I practised and practised and I am not perfect but pretty good at it now. It's the name of a town on the coast. Yeah, Croatia lost, but on the other hand Turkey won! You have to admire their stick-to-it-ness. A. On Fri, Jun 20, 2008 at 6:43 PM, Shamil Salakhetdinov < shamil at smsconsulting.spb.ru> wrote: > Hi Arthur, > > Croatia lost - pity, but tonight they played not so good football they > usually do... > > Russia vs. Netherlands tomorrow, with Russian team's coach being famous > Guus > Giddink (http://en.wikipedia.org/wiki/Guus_Hiddink ) from the Netherlands. > That's a real intrigue coming... > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jedi at charm.net Sat Jun 21 22:41:02 2008 From: jedi at charm.net (Michael Bahr) Date: Sat, 21 Jun 2008 23:41:02 -0400 (EDT) Subject: [AccessD] Feedback Needed - Round 2 In-Reply-To: <485CFB12.2060603@torchlake.com> References: <005b01c8cfb7$34b76c60$0301a8c0@HAL9005> <485CFB12.2060603@torchlake.com> Message-ID: <1419.24.35.45.228.1214106062.squirrel@mail.expedient.net> Tina, as a web developer you must take into account that users do not have the latest browsers. In other words design a web site for the lowest common browser (to a point) and/or include checks for which browser and version and use appropriate code. A lot of people still have IE6 and FF2.x. Btw FF just released 3.0 this past week on Wednesday I believe--how did you get hold of FF5(??). I know that IE7 breaks some things that work in IE5/6 and FF sometimes does not display things correctly as IE does. And then there is Opera and ... Mike... > Hi Rocky, > > I'm a little late getting to this thread, and I see that a number of the > suggestions made have already been implemented. I'm using FireFox 5.0 > and IE 7.0 to view your site. When I select a tab, and the new page is > loaded, the heading for that page takes the top left position, which is > really kind of nice. But, the tab for Home disappears completely. To > return to the Home page, I must use the Back button on the toolbar. I > don't find any link on the page to take me back to the Home page. I > would like a consistent navigation bar somewhere on the page, one that > includes the Home page link as well as all the others. > > Hope this is helpful, > Tina > > Rocky Smolin at Beach Access Software wrote: >> Dear List: >> >> First of all thanks to everyone who responded the first time with input >> on >> the Beach Access Software web site redesign. >> >> Karen has taken all of your input and reworked the site. So now we're >> ready >> to impose on you all again for your feedback. >> >> The site is temporarily stored at >> http://www.bchacc.com/beachtemp/index.html >> >> Any and all comments will be greatly appreciated. >> >> MTIA, >> >> Rocky Smolin >> >> Beach Access Software >> >> 858-259-4334 >> >> www.e-z-mrp.com >> >> www.bchacc.com >> >> >> >> >> >> >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From rbgajewski at adelphia.net Sat Jun 21 23:05:03 2008 From: rbgajewski at adelphia.net (Bob Gajewski) Date: Sun, 22 Jun 2008 00:05:03 -0400 Subject: [AccessD] Feedback Needed - Round 2 In-Reply-To: <1419.24.35.45.228.1214106062.squirrel@mail.expedient.net> References: <005b01c8cfb7$34b76c60$0301a8c0@HAL9005><485CFB12.2060603@torchlake.com> <1419.24.35.45.228.1214106062.squirrel@mail.expedient.net> Message-ID: <997AFE47224D4C0AAA0CA7AEA146BBD3@DCYN3T81> Mike I'm running IE8 beta ... It *really* doesn't like Rocky's site, but if I turn on the built-in IE7 emulation, it's okay. Bob Gajewski -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Bahr Sent: Saturday, June 21, 2008 23:41 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Feedback Needed - Round 2 Tina, as a web developer you must take into account that users do not have the latest browsers. In other words design a web site for the lowest common browser (to a point) and/or include checks for which browser and version and use appropriate code. A lot of people still have IE6 and FF2.x. Btw FF just released 3.0 this past week on Wednesday I believe--how did you get hold of FF5(??). I know that IE7 breaks some things that work in IE5/6 and FF sometimes does not display things correctly as IE does. And then there is Opera and ... Mike... > Hi Rocky, > > I'm a little late getting to this thread, and I see that a number of > the suggestions made have already been implemented. I'm using FireFox > 5.0 and IE 7.0 to view your site. When I select a tab, and the new > page is loaded, the heading for that page takes the top left position, > which is really kind of nice. But, the tab for Home disappears > completely. To return to the Home page, I must use the Back button on > the toolbar. I don't find any link on the page to take me back to the > Home page. I would like a consistent navigation bar somewhere on the > page, one that includes the Home page link as well as all the others. > > Hope this is helpful, > Tina > > Rocky Smolin at Beach Access Software wrote: >> Dear List: >> >> First of all thanks to everyone who responded the first time with >> input on the Beach Access Software web site redesign. >> >> Karen has taken all of your input and reworked the site. So now >> we're ready to impose on you all again for your feedback. >> >> The site is temporarily stored at >> http://www.bchacc.com/beachtemp/index.html >> >> Any and all comments will be greatly appreciated. >> >> MTIA, >> >> Rocky Smolin >> >> Beach Access Software >> >> 858-259-4334 >> >> www.e-z-mrp.com >> >> www.bchacc.com >> >> >> >> >> >> >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 at bondsoftware.co.nz Sun Jun 22 00:10:00 2008 From: stephen at bondsoftware.co.nz (Stephen) Date: Sun, 22 Jun 2008 17:10:00 +1200 Subject: [AccessD] Minimum number of decimal places Message-ID: <569E08FC48047F4F848850B118195FBE01A153@server.BondSoftware.local> The table has a currency field which (in my case) stores numbers with 0 or 1 or 2 decimal places. I want to generate a query which shows a minimum of 1 dp (so value 3 becomes 3.0) while leaving - for example - the value 2.6 to show as 2.6 and the value 2.05 to show as 2.05. There must be a simple Format string to do this - any help please. Stephen Bond From stephen at bondsoftware.co.nz Sun Jun 22 03:07:19 2008 From: stephen at bondsoftware.co.nz (Stephen) Date: Sun, 22 Jun 2008 20:07:19 +1200 Subject: [AccessD] Minimum number of decimal places Message-ID: <569E08FC48047F4F848850B118195FBE01A154@server.BondSoftware.local> Got it. Format(field,"##0.0##) does perfectly. Stephen Bond -----Original Message----- From: Stephen Sent: Sunday, 22 June 2008 5:10 p.m. To: 'Access Developers discussion and problem solving' Subject: Minimum number of decimal places The table has a currency field which (in my case) stores numbers with 0 or 1 or 2 decimal places. I want to generate a query which shows a minimum of 1 dp (so value 3 becomes 3.0) while leaving - for example - the value 2.6 to show as 2.6 and the value 2.05 to show as 2.05. There must be a simple Format string to do this - any help please. Stephen Bond From DWUTKA at Marlow.com Sun Jun 22 04:26:24 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Sun, 22 Jun 2008 04:26:24 -0500 Subject: [AccessD] OT: "Baby Machine" 60 years today In-Reply-To: <000601c8d3fa$35c2c220$4201a8c0@dabsight> Message-ID: What's matrix inversion? LOL Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of DJK(John) Robinson Sent: Saturday, June 21, 2008 6:55 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] OT: "Baby Machine" 60 years today How good is ScreamTracker at matrix inversion ...? ;-) J -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: 21 June 2008 23:44 To: Access Developers discussion and problem solving Subject: Re: [AccessD] OT: "Baby Machine" 60 years today Reminded me about Scream Tracker: http://en.wikipedia.org/wiki/ScreamTracker Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Saturday, June 21, 2008 9:35 AM To: accessd at databaseadvisors.com Subject: [AccessD] OT: "Baby Machine" 60 years today Hi all See the introduction to the forerunner of all modern computers, Baby Machine, which ran a stored program 60 years ago at the University of Manchester, UK. And listen to music played by the Ferranti Mark 1 computer, a commercial version of the Baby Machine. http://news.bbc.co.uk/2/hi/technology/7458479.stm /gustav -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From tinanfields at torchlake.com Sun Jun 22 05:30:00 2008 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Sun, 22 Jun 2008 06:30:00 -0400 Subject: [AccessD] Merge Process Doesn't See All the Queries - Why? In-Reply-To: <34EB8CADFE7040F8AEF0125D0DD03738@jislaptopdev> References: <485D7A5D.3060403@torchlake.com> <34EB8CADFE7040F8AEF0125D0DD03738@jislaptopdev> Message-ID: <485E29A8.2070603@torchlake.com> Thank you, William, that does seem to be the problem. What I'm muddling about with, here, is that Habitat database I spoke of last March. By now, we have upgraded the equipment and the software - nice WinXP boxen and Office 2003 (that reminds me, I need to check whether any SPs are in place). The database has been converted from A97 to A2K format. I'm tweaking things so they can go on using this thing as we remodel it. It's rather like living in a house as you gut it and reconstruct it, trying to keep the living room presentable while all the sawdust and plaster are flying freely through the air, and still insisting on a fully dressed table for dinner time. Of course, this means that some things that used to work fine in A97 do not work now, and won't work until they are refashioned to meet the new standards. Part of my job is to keep the pain level as low as possible for my good friends at Habitat. Ultimately, I will give them a truly functional application that will serve them well. Thanks for helping me think about this, Tina William Hindman wrote: > Tina > > ...can't recall the particular reason at the moment but you can only merge > Word to certain query structures ...either updateable ones or non-mm > ...that's most likely your problem ...in some cases I've had to create temp > tables and merge from them instead of the query itself. > > William > "Sen. McCain will bring a lifetime of experience to the campaign... Sen. > Obama will bring a speech that he gave." Hillary Clinton > > -------------------------------------------------- > From: "Tina Norris Fields" > Sent: Saturday, June 21, 2008 6:02 PM > To: "'Access Developers discussion and problem solving'" > > Subject: [AccessD] Merge Process Doesn't See All the Queries - Why? > > >> Hi, >> >> This database has a query specifically for generating the records to be >> captured in a merge document. The query is >> qryPrintListForContributionTypeOfMember (I didn't make up this name - I >> have inherited it). The Donation letter is supposed to be linked to >> that query. When the Donation letter got moved into another folder, of >> course it could no longer find its supporting query. Hey, no problem, >> just point it back at the database, right, and select the appropriate >> query - but, when I do that, the query does not appear in the list. Not >> possible, say I to myself, I must have goofed up and pointed to the >> wrong copy of this silly database - do it again, and be careful this >> time. So, I did it again and again, and always the same result. >> Naturally, I'm thinking somehow I have lost this query - don't know how, >> but it must be gone. No, open the database normally, and there is the >> query. Open a fresh Word document to start the process over and >> reconstruct the letter, which must have something wrong with it, right, >> since it can't see the perfectly good query - oh no! - the same result. >> Looking for the data source, the query does not show up in the list of >> queries available in this database. Open the database itself, there is >> the query, just fine. What the . . . . ???? >> >> I've never seen this before and I don't know what the problem is. Any >> ideas? >> >> Thanks, >> Tina >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > From wdhindman at dejpolsystems.com Sun Jun 22 06:49:16 2008 From: wdhindman at dejpolsystems.com (William Hindman) Date: Sun, 22 Jun 2008 07:49:16 -0400 Subject: [AccessD] Feedback Needed - Round 2 References: <005b01c8cfb7$34b76c60$0301a8c0@HAL9005><485CFB12.2060603@torchlake.com><1419.24.35.45.228.1214106062.squirrel@mail.expedient.net> <997AFE47224D4C0AAA0CA7AEA146BBD3@DCYN3T81> Message-ID: <248CFC45AA09430AAA027E9A1EC00CB2@jislaptopdev> ...just trying to get a site fully operational in ie6/7/8 and ff2/3 is at least 1/4 of the time spent in building them and limits a lot of choices ...and then the client hears from a Safari user :( William -------------------------------------------------- From: "Bob Gajewski" Sent: Sunday, June 22, 2008 12:05 AM To: "'Access Developers discussion and problem solving'" Subject: Re: [AccessD] Feedback Needed - Round 2 > Mike > > I'm running IE8 beta ... It *really* doesn't like Rocky's site, but if I > turn on the built-in IE7 emulation, it's okay. > > Bob Gajewski > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Bahr > Sent: Saturday, June 21, 2008 23:41 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Feedback Needed - Round 2 > > Tina, as a web developer you must take into account that users do not have > the latest browsers. In other words design a web site for the lowest > common > browser (to a point) and/or include checks for which browser and version > and > use appropriate code. A lot of people still have IE6 and FF2.x. Btw FF > just released 3.0 this past week on Wednesday I believe--how did you get > hold of FF5(??). I know that IE7 breaks some things that work in IE5/6 > and > FF sometimes does not display things correctly as IE does. And then there > is Opera and ... > > Mike... > > >> Hi Rocky, >> >> I'm a little late getting to this thread, and I see that a number of >> the suggestions made have already been implemented. I'm using FireFox >> 5.0 and IE 7.0 to view your site. When I select a tab, and the new >> page is loaded, the heading for that page takes the top left position, >> which is really kind of nice. But, the tab for Home disappears >> completely. To return to the Home page, I must use the Back button on >> the toolbar. I don't find any link on the page to take me back to the >> Home page. I would like a consistent navigation bar somewhere on the >> page, one that includes the Home page link as well as all the others. >> >> Hope this is helpful, >> Tina >> >> Rocky Smolin at Beach Access Software wrote: >>> Dear List: >>> >>> First of all thanks to everyone who responded the first time with >>> input on the Beach Access Software web site redesign. >>> >>> Karen has taken all of your input and reworked the site. So now >>> we're ready to impose on you all again for your feedback. >>> >>> The site is temporarily stored at >>> http://www.bchacc.com/beachtemp/index.html >>> >>> Any and all comments will be greatly appreciated. >>> >>> MTIA, >>> >>> Rocky Smolin >>> >>> Beach Access Software >>> >>> 858-259-4334 >>> >>> www.e-z-mrp.com >>> >>> www.bchacc.com >>> >>> >>> >>> >>> >>> >>> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From iggy at nanaimo.ark.com Sun Jun 22 07:37:34 2008 From: iggy at nanaimo.ark.com (Tony Septav) Date: Sun, 22 Jun 2008 05:37:34 -0700 Subject: [AccessD] Form BeforeUpdate Message-ID: <485E478E.9000207@nanaimo.ark.com> Hey All I am trying to use the BeforeUpdate on a bound continuous form. The code works and checks the data in the current record for validation and if an error is found it pops up a message and fires the docmd.cancelevent (or cancel = true). Everything works fine, except when I click on the add, delete, or close buttons (mine) in the form's footer, then the code works fine and the message pops up, but the docmd.cancelevent doesn't fire. Is this a bug, or am I missing something. From Gustav at cactus.dk Sun Jun 22 09:18:30 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Sun, 22 Jun 2008 16:18:30 +0200 Subject: [AccessD] Minimum number of decimal places Message-ID: Hi Stephen I would rather use: Format(field, "#0.0#") /gustav >>> stephen at bondsoftware.co.nz 22-06-2008 10:07 >>> Got it. Format(field,"##0.0##) does perfectly. Stephen Bond -----Original Message----- From: Stephen Sent: Sunday, 22 June 2008 5:10 p.m. To: 'Access Developers discussion and problem solving' Subject: Minimum number of decimal places The table has a currency field which (in my case) stores numbers with 0 or 1 or 2 decimal places. I want to generate a query which shows a minimum of 1 dp (so value 3 becomes 3.0) while leaving - for example - the value 2.6 to show as 2.6 and the value 2.05 to show as 2.05. There must be a simple Format string to do this - any help please. Stephen Bond From Gustav at cactus.dk Sun Jun 22 09:33:49 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Sun, 22 Jun 2008 16:33:49 +0200 Subject: [AccessD] Form BeforeUpdate Message-ID: Hi Tony I've never had much success with CancelEvent, at least not consistent. It seems to be a macro thing which cannot cancel keypress events: http://msdn.microsoft.com/en-us/library/bb237789.aspx I have had to revert to SendKeys to press Esc once or twice. /gustav >>> iggy at nanaimo.ark.com 22-06-2008 14:37 >>> Hey All I am trying to use the BeforeUpdate on a bound continuous form. The code works and checks the data in the current record for validation and if an error is found it pops up a message and fires the docmd.cancelevent (or cancel = true). Everything works fine, except when I click on the add, delete, or close buttons (mine) in the form's footer, then the code works fine and the message pops up, but the docmd.cancelevent doesn't fire. Is this a bug, or am I missing something. From iggy at nanaimo.ark.com Sun Jun 22 09:48:47 2008 From: iggy at nanaimo.ark.com (Tony Septav) Date: Sun, 22 Jun 2008 07:48:47 -0700 Subject: [AccessD] Forms BeforeUpdate - Solved Message-ID: <485E664F.5030708@nanaimo.ark.com> Hey All Thanks Gustav. What I found. BeforeUpdate on a control fires before the code in a button on the form when it is clicked. BeforeUpDate on a form fires after the code in a button on the form when it is clicked. What I did (still needs to be fully tested). Added my main form as a subform to a blank main form, and moved my buttons from the (now) subform to the main form. At the moment (as mentioned a few scenarios to test), the BeforeUpate in the subform fires before the code in the button on the main form, so the docmd.cancelevent works. From andy at minstersystems.co.uk Sun Jun 22 10:00:38 2008 From: andy at minstersystems.co.uk (Andy Lacey) Date: Sun, 22 Jun 2008 16:00:38 +0100 Subject: [AccessD] OT: Saturday' EURO2008 Football:Russa-Netherlands-3:1! Was: RE: Friday: Croatia v. Turkey In-Reply-To: <000801c8d3fe$ce4ff680$2101a8c0@AB> Message-ID: <002101c8d478$bb645d20$cb982a50@minster33c3r25> Hey guys. Much as I would like to join in on the Euros chat my moderator's hat says this really belongs over on the OT list. And that's not just sour grapes because we didn't qualify - honest :-) -- Andy Lacey http://www.minstersystems.co.uk >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Asger Blond >Sent: 22 June 2008 01:28 >To: 'Access Developers discussion and problem solving' >Subject: Re: [AccessD] OT: Saturday' EURO2008 >Football:Russa-Netherlands-3:1! Was: RE: Friday: Croatia v. Turkey > > > >Hi Helmut, >Sorry, just made a quick-and-dirty translation from danish to >german: "feberredning" --> "Fieberrettung": goalkeepers >quick-and-dirty saving. >- hope this makes sense >Asger > >-----Oprindelig meddelelse----- >Fra: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] P? vegne af Helmut Kotsch >Sendt: 22. juni 2008 01:19 >Til: Access Developers discussion and problem solving >Emne: Re: [AccessD] OT: Saturday' EURO2008 Football: >Russa-Netherlands-3:1! >Was: RE: Friday: Croatia v. Turkey > >Hi Asger, >I don't know what "eine Fieber Rettung" means. But I for sure >know that we need lots of luck against Turkey and if we beat >them we need lots of luck against Russia. We all know luck is >a part of the game. > >Helmut > > >-----Urspr?ngliche Nachricht----- >Von: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von Asger Blond >Gesendet: Sonntag, 22. Juni 2008 01:16 >An: 'Access Developers discussion and problem solving' >Betreff: Re: [AccessD] OT: Saturday' EURO2008 Football: Russa >-Netherlands-3:1! Was: RE: Friday: Croatia v. Turkey > > >Hi Helmut, > >Suppose this OT-duplicate of your previous non-OT posting was >meant as an example of "eine Fieber Rettung". > >- good luck against Russia if you beat Turkey, >Asger > > > >-----Oprindelig meddelelse----- >Fra: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] P? vegne af Helmut Kotsch >Sendt: 22. juni 2008 00:17 >Til: Access Developers discussion and problem solving >Emne: Re: [AccessD] OT: Saturday' EURO2008 Football: Russa - >Netherlands-3:1! Was: RE: Friday: Croatia v. Turkey > >Shamil, >congrats on your team winning against the Netherlands 3:1. Was >a great game by a great team. When Germany will win against >Turkey on Wednesday there is a good chance that we will play >against Russia in the final game. As I understand from the TV >reports a lot of Russian people would like to see this happen. > >Helmut > >-----Ursprungliche Nachricht----- >Von: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com]Im Auftrag von >Shamil Salakhetdinov >Gesendet: Samstag, 21. Juni 2008 23:46 >An: 'Access Developers discussion and problem solving' >Betreff: [AccessD] OT: Saturday' EURO2008 Football: Russa - >Netherlands -3:1! Was: RE: Friday: Croatia v. Turkey > > > >That was fantastic, especially the last 30 minutes of added time... > >I hear people are celebrating here on the nearby streets... > >Time to go to pub? - it's 1:44 a.m. here.... > >-- >Shamil > > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >Arthur Fuller >Sent: Saturday, June 21, 2008 2:10 AM >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Friday: Croatia v. Turkey > >I know all about Guus and I agree that the drama will be >interesting. No slam on Russia but I have an emotional >attachment to Nederlands. I can even say the most difficult >word in Dutch passably (hours and hours of practice) >-- the word used in WW2 to test potential Nazi spys. I >practised and practised and I am not perfect but pretty good >at it now. It's the name of a town on the coast. > >Yeah, Croatia lost, but on the other hand Turkey won! You have >to admire their stick-to-it-ness. > >A. > >On Fri, Jun 20, 2008 at 6:43 PM, Shamil Salakhetdinov < >shamil at smsconsulting.spb.ru> wrote: > >> Hi Arthur, >> >> Croatia lost - pity, but tonight they played not so good >football they >> usually do... >> >> Russia vs. Netherlands tomorrow, with Russian team's coach being >> famous Guus Giddink >(http://en.wikipedia.org/wiki/Guus_Hiddink ) from >> the Netherlands. That's a real intrigue coming... >> >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >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 Sun Jun 22 10:06:01 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Sun, 22 Jun 2008 17:06:01 +0200 Subject: [AccessD] Forms BeforeUpdate - Solved Message-ID: Hi Tony But then setting Cancel = True should work just as well. Looks much more clean to me. /gustav >>> iggy at nanaimo.ark.com 22-06-2008 16:48 >>> Hey All Thanks Gustav. What I found. BeforeUpdate on a control fires before the code in a button on the form when it is clicked. BeforeUpDate on a form fires after the code in a button on the form when it is clicked. What I did (still needs to be fully tested). Added my main form as a subform to a blank main form, and moved my buttons from the (now) subform to the main form. At the moment (as mentioned a few scenarios to test), the BeforeUpate in the subform fires before the code in the button on the main form, so the docmd.cancelevent works. From iggy at nanaimo.ark.com Sun Jun 22 10:11:57 2008 From: iggy at nanaimo.ark.com (Tony Septav) Date: Sun, 22 Jun 2008 08:11:57 -0700 Subject: [AccessD] Forms BeforeUpdate - Solved In-Reply-To: References: Message-ID: <485E6BBD.6040904@nanaimo.ark.com> Hey Gustav Yup, either method seems to be working. Gustav Brock wrote: >Hi Tony > >But then setting > > Cancel = True > >should work just as well. Looks much more clean to me. > >/gustav > > > >>>>iggy at nanaimo.ark.com 22-06-2008 16:48 >>> >>>> >>>> >Hey All >Thanks Gustav. > >What I found. >BeforeUpdate on a control fires before the code in a button on the form >when it is clicked. >BeforeUpDate on a form fires after the code in a button on the form when >it is clicked. > >What I did (still needs to be fully tested). >Added my main form as a subform to a blank main form, and moved my >buttons from the (now) subform to the main form. At the moment (as >mentioned a few scenarios to test), the BeforeUpate in the subform fires >before the code in the button on the main form, so the docmd.cancelevent >works. > > > > > From tinanfields at torchlake.com Sun Jun 22 11:43:57 2008 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Sun, 22 Jun 2008 12:43:57 -0400 Subject: [AccessD] Feedback Needed - Round 2 In-Reply-To: <1419.24.35.45.228.1214106062.squirrel@mail.expedient.net> References: <005b01c8cfb7$34b76c60$0301a8c0@HAL9005> <485CFB12.2060603@torchlake.com> <1419.24.35.45.228.1214106062.squirrel@mail.expedient.net> Message-ID: <485E814D.8040104@torchlake.com> Mike, I just read too quickly, sorry. What it says in "about" is this: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.12) Gecko/20080201 Firefox/2.0.0.12 I grabbed the 5.0 from "Mozilla/5.0," instead of going all the way to "Firefox/2.0.0.12." Thanks for picking up on that and drawing my attention to it. Tina Michael Bahr wrote: > Tina, as a web developer you must take into account that users do not have > the latest browsers. In other words design a web site for the lowest > common browser (to a point) and/or include checks for which browser and > version and use appropriate code. A lot of people still have IE6 and > FF2.x. Btw FF just released 3.0 this past week on Wednesday I > believe--how did you get hold of FF5(??). I know that IE7 breaks some > things that work in IE5/6 and FF sometimes does not display things > correctly as IE does. And then there is Opera and ... > > Mike... > > > >> Hi Rocky, >> >> I'm a little late getting to this thread, and I see that a number of the >> suggestions made have already been implemented. I'm using FireFox 5.0 >> and IE 7.0 to view your site. When I select a tab, and the new page is >> loaded, the heading for that page takes the top left position, which is >> really kind of nice. But, the tab for Home disappears completely. To >> return to the Home page, I must use the Back button on the toolbar. I >> don't find any link on the page to take me back to the Home page. I >> would like a consistent navigation bar somewhere on the page, one that >> includes the Home page link as well as all the others. >> >> Hope this is helpful, >> Tina >> >> Rocky Smolin at Beach Access Software wrote: >> >>> Dear List: >>> >>> First of all thanks to everyone who responded the first time with input >>> on >>> the Beach Access Software web site redesign. >>> >>> Karen has taken all of your input and reworked the site. So now we're >>> ready >>> to impose on you all again for your feedback. >>> >>> The site is temporarily stored at >>> http://www.bchacc.com/beachtemp/index.html >>> >>> Any and all comments will be greatly appreciated. >>> >>> MTIA, >>> >>> Rocky Smolin >>> >>> Beach Access Software >>> >>> 858-259-4334 >>> >>> www.e-z-mrp.com >>> >>> www.bchacc.com >>> >>> >>> >>> >>> >>> >>> >>> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> > > > From tinanfields at torchlake.com Sun Jun 22 12:02:29 2008 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Sun, 22 Jun 2008 13:02:29 -0400 Subject: [AccessD] Merge Process Doesn't See All the Queries - Why? - SOLVED In-Reply-To: <485D7A5D.3060403@torchlake.com> References: <485D7A5D.3060403@torchlake.com> Message-ID: <485E85A5.7060103@torchlake.com> My thanks to Rocky and William for their suggestions. Here is how it all came down: the query was not updateable, and Word's merge-find-my-data-source list did not and would not display that query's name. I decided to copy the query and craft a make-table query from it. Instantly, it complained that there could not be more than one autonumber field in a make-table query. Well, of course, I hadn't checked all the fields that had been selected for this rather complex query. This query was based on six tables and one query. So, I went through to find where all the autonumber fields were. There were four of them, only one of which was really of any use in the query. The others were there for reasons that are not apparent to me, for they were followed by the description values in their respective tables. The included query did not do anything at all, it was just a dataset of all the records in one of the six tables. So, I stripped out the redundant select query and the unwanted autonumber fields, and made my make-table query. Then, I pointed the merge form document at the new table, and, hallelujah, it works as it should. There will be quite a bit of editing and remodeling to make this little database do what its users really want it to do. The sooner I can get that done, the sooner my friends will be up and running and happy again, and the sooner I get paid. I used to donate my time to them, because I really value their mission and all they ever needed was a new query now and then for a report they suddenly realized they would like to have, or they moved onto a new system and broke the links for their merge documents. But for this, I told them I could not afford to just donate the time, and they completely agreed. Wow! Well, the letter works. Now on to crafting a process form, where they can select the date from a calendar control, click the button to run the query, click the button to launch the Word merge document, print their letters and close Word, then click the button to close the form. They will love that. I'll be back here with the next puzzle. Thanks again. Tina Tina Norris Fields wrote: > Hi, > > This database has a query specifically for generating the records to be > captured in a merge document. The query is > qryPrintListForContributionTypeOfMember (I didn't make up this name - I > have inherited it). The Donation letter is supposed to be linked to > that query. When the Donation letter got moved into another folder, of > course it could no longer find its supporting query. Hey, no problem, > just point it back at the database, right, and select the appropriate > query - but, when I do that, the query does not appear in the list. Not > possible, say I to myself, I must have goofed up and pointed to the > wrong copy of this silly database - do it again, and be careful this > time. So, I did it again and again, and always the same result. > Naturally, I'm thinking somehow I have lost this query - don't know how, > but it must be gone. No, open the database normally, and there is the > query. Open a fresh Word document to start the process over and > reconstruct the letter, which must have something wrong with it, right, > since it can't see the perfectly good query - oh no! - the same result. > Looking for the data source, the query does not show up in the list of > queries available in this database. Open the database itself, there is > the query, just fine. What the . . . . ???? > > I've never seen this before and I don't know what the problem is. Any > ideas? > > Thanks, > Tina > From accessd at shaw.ca Sun Jun 22 12:34:02 2008 From: accessd at shaw.ca (Jim Lawrence) Date: Sun, 22 Jun 2008 10:34:02 -0700 Subject: [AccessD] Feedback Needed - Round 2 In-Reply-To: <248CFC45AA09430AAA027E9A1EC00CB2@jislaptopdev> References: <005b01c8cfb7$34b76c60$0301a8c0@HAL9005> <485CFB12.2060603@torchlake.com> <1419.24.35.45.228.1214106062.squirrel@mail.expedient.net> <997AFE47224D4C0AAA0CA7AEA146BBD3@DCYN3T81> <248CFC45AA09430AAA027E9A1EC00CB2@jislaptopdev> Message-ID: Hi All: Actually Safari and FF tend to be very much alike as they both have the same engine. IE prides it's self on never being compatible, having a better way to do things and ignoring W3C standard of which MS agreed to only months before. There is hardly a web site that I have completed that do not have something like: ...In the header so that IE deviations can be managed. AJAX is even more fun where all other browsers have only one way to connect to the server software and IE has three... so far. ...and then if you get any more involved with JavaScript than the basics there is always a standard way to code for most major browsers and then there is a way to code for IE. Any of us who have used JS classes will know the pain. I could rant on for some time but I am sure no one at MS is listening. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Sunday, June 22, 2008 4:49 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Feedback Needed - Round 2 ...just trying to get a site fully operational in ie6/7/8 and ff2/3 is at least 1/4 of the time spent in building them and limits a lot of choices ...and then the client hears from a Safari user :( William -------------------------------------------------- From: "Bob Gajewski" Sent: Sunday, June 22, 2008 12:05 AM To: "'Access Developers discussion and problem solving'" Subject: Re: [AccessD] Feedback Needed - Round 2 > Mike > > I'm running IE8 beta ... It *really* doesn't like Rocky's site, but if I > turn on the built-in IE7 emulation, it's okay. > > Bob Gajewski > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Bahr > Sent: Saturday, June 21, 2008 23:41 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Feedback Needed - Round 2 > > Tina, as a web developer you must take into account that users do not have > the latest browsers. In other words design a web site for the lowest > common > browser (to a point) and/or include checks for which browser and version > and > use appropriate code. A lot of people still have IE6 and FF2.x. Btw FF > just released 3.0 this past week on Wednesday I believe--how did you get > hold of FF5(??). I know that IE7 breaks some things that work in IE5/6 > and > FF sometimes does not display things correctly as IE does. And then there > is Opera and ... > > Mike... > > >> Hi Rocky, >> >> I'm a little late getting to this thread, and I see that a number of >> the suggestions made have already been implemented. I'm using FireFox >> 5.0 and IE 7.0 to view your site. When I select a tab, and the new >> page is loaded, the heading for that page takes the top left position, >> which is really kind of nice. But, the tab for Home disappears >> completely. To return to the Home page, I must use the Back button on >> the toolbar. I don't find any link on the page to take me back to the >> Home page. I would like a consistent navigation bar somewhere on the >> page, one that includes the Home page link as well as all the others. >> >> Hope this is helpful, >> Tina >> >> Rocky Smolin at Beach Access Software wrote: >>> Dear List: >>> >>> First of all thanks to everyone who responded the first time with >>> input on the Beach Access Software web site redesign. >>> >>> Karen has taken all of your input and reworked the site. So now >>> we're ready to impose on you all again for your feedback. >>> >>> The site is temporarily stored at >>> http://www.bchacc.com/beachtemp/index.html >>> >>> Any and all comments will be greatly appreciated. >>> >>> MTIA, >>> >>> Rocky Smolin >>> >>> Beach Access Software >>> >>> 858-259-4334 >>> >>> www.e-z-mrp.com >>> >>> www.bchacc.com >>> >>> >>> >>> >>> >>> >>> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From tinanfields at torchlake.com Sun Jun 22 14:46:17 2008 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Sun, 22 Jun 2008 15:46:17 -0400 Subject: [AccessD] Multiple Frontend Users In-Reply-To: <483B8462.3000200@tenbus.co.uk> References: <7303A459C921B5499AF732CCEEAD2B7F064D1504@craws161660.int.rdel.co.uk> <200805260003.m4Q03MvO024554@databaseadvisors.com> <729EB32B2FED4131A845FC9A19661387@speedy> <483B8462.3000200@tenbus.co.uk> Message-ID: <485EAC09.2090108@torchlake.com> Chris, I'm late getting to this thread, but I know I'm going to need your Bat file in the not too distant future. So, here's another "me too." Tina Webadmin - Tenbus wrote: > Of course! > > I've had several "me toos" over the weekend - I'm sorry I've not > responded as yet - quite busy ATM. > > I'll put together something in the next couple of days and post it to > the list (in the first instance). > > Regards and thanks for the interest. > Chris Foote > > > Bob Heygood wrote: > >> Could we post this bat file on a web site? >> >> Bob Heygood >> >> >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Catherine >> Blansett >> Sent: Sunday, May 25, 2008 5:03 PM >> To: 'Access Developers discussion and problem solving' >> Subject: Re: [AccessD] Multiple Frontend Users >> >> Chris, I would be interested in the Bat file. >> >> Thanks >> >> CB >> >> catheirne.blansett at infocentraldata.org >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Foote, Chris >> Sent: Tuesday, May 20, 2008 7:22 AM >> To: 'Access Developers discussion and problem solving' >> Subject: Re: [AccessD] Multiple Frontend Users >> >> Arthur! >> >> I've had similar arguments with our IT "professionals"! >> >> My multi-user split FE/BE database worked as follows: >> >> BE and copy of FE stored on network "share" along with bat file. >> User has shortcut to bat file on desktop When user needs to use database >> they double-click on shortcut to bat file. >> Bat file looks to see if user has latest version of FE on their C: drive, if >> not, it copies file for network share and runs it, if it is latest it runs >> it. >> >> Simple! >> >> The only this you need to do if user gets a new machine is to create the >> shortcut to the bat file. I would have automated that if I could have been >> bothered ;-) >> >> If you need any more info of a copy to my super-duper bat file please let me >> know. >> >> Regards >> Chris Foote >> >> >> >> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Arthur >>> Fuller >>> Sent: Tuesday, May 20, 2008 12:53 PM >>> To: Access Developers discussion and problem solving >>> Subject: Re: [AccessD] Multiple Frontend Users >>> >>> >>> I was presented with this problem recently and recommended this >>> solution. >>> The network support people flatly refused it. They argued that in >>> their setup (with hundreds of users) virtually nothing on the local >>> PCs was backed up. The local PCs can be replaced and/re-imaged >>> anytime, and users are warned not to store anything locally, otherwise >>> it won't be backed up. So I had no choice but to put both the FE and >>> the BE on a network share. The argument makes perfect sense to me, but >>> I've never done it that way before. >>> What will happen when a hundred users open a single FE? >>> Should I replace the >>> FE MDB with an MDE? >>> >>> Thanks, >>> Arthur >>> >>> On Mon, May 19, 2008 at 10:42 AM, Dan Waters >>> wrote: >>> >>> >>> >>>> Ed, >>>> >>>> Even with 3 users, splitting is a good preventive measure >>>> >>>> >>> to avoid data >>> >>> >>>> corruption. You can put the Access Back End .mdb file on >>>> >>>> >>> the server, and >>> >>> >>>> put the Front end .mdb files on each user's PC. Managing 3 >>>> >>>> >>> users shouldn't >>> >>> >>>> be difficult. >>>> >>>> >>>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >>> >>> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> No virus found in this incoming message. >> Checked by AVG. >> Version: 7.5.523 / Virus Database: 269.23.21/1457 - Release Date: 5/20/2008 >> 4:45 PM >> >> >> No virus found in this outgoing message. >> Checked by AVG. >> Version: 7.5.523 / Virus Database: 269.24.1/1465 - Release Date: 5/25/2008 >> 1:22 PM >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> >> > > > From wdhindman at dejpolsystems.com Sun Jun 22 15:27:00 2008 From: wdhindman at dejpolsystems.com (William Hindman) Date: Sun, 22 Jun 2008 16:27:00 -0400 Subject: [AccessD] Feedback Needed - Round 2 References: <005b01c8cfb7$34b76c60$0301a8c0@HAL9005><485CFB12.2060603@torchlake.com><1419.24.35.45.228.1214106062.squirrel@mail.expedient.net><997AFE47224D4C0AAA0CA7AEA146BBD3@DCYN3T81><248CFC45AA09430AAA027E9A1EC00CB2@jislaptopdev> Message-ID: <3DA726A2E3AD4E409AB2440730D701FD@jislaptopdev> ...actually MS is apparently listening ...IE8 beta defaults to Strict mode which to all appearances is strictly and fully W3C compliant ...the first browser to do so ...and of course, in that mode, it breaks virtually every existing website because despite all the blather, no one else is fully compliant either ...be careful you don't get what you wish for :) William "Sen. McCain will bring a lifetime of experience to the campaign... Sen. Obama will bring a speech that he gave." Hillary Clinton -------------------------------------------------- From: "Jim Lawrence" Sent: Sunday, June 22, 2008 1:34 PM To: "'Access Developers discussion and problem solving'" Subject: Re: [AccessD] Feedback Needed - Round 2 > Hi All: > > Actually Safari and FF tend to be very much alike as they both have the > same > engine. IE prides it's self on never being compatible, having a better way > to do things and ignoring W3C standard of which MS agreed to only months > before. > > There is hardly a web site that I have completed that do not have > something > like: > > href='http://www.someoneswebsite.com/css/standard.css' type="text/css" > media="screen, projection" /> > > > > ...In the header so that IE deviations can be managed. > > AJAX is even more fun where all other browsers have only one way to > connect > to the server software and IE has three... so far. > > ...and then if you get any more involved with JavaScript than the basics > there is always a standard way to code for most major browsers and then > there is a way to code for IE. Any of us who have used JS classes will > know > the pain. > > I could rant on for some time but I am sure no one at MS is listening. > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman > Sent: Sunday, June 22, 2008 4:49 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Feedback Needed - Round 2 > > ...just trying to get a site fully operational in ie6/7/8 and ff2/3 is at > least 1/4 of the time spent in building them and limits a lot of choices > ...and then the client hears from a Safari user :( > > William > > -------------------------------------------------- > From: "Bob Gajewski" > Sent: Sunday, June 22, 2008 12:05 AM > To: "'Access Developers discussion and problem solving'" > > Subject: Re: [AccessD] Feedback Needed - Round 2 > >> Mike >> >> I'm running IE8 beta ... It *really* doesn't like Rocky's site, but if I >> turn on the built-in IE7 emulation, it's okay. >> >> Bob Gajewski >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Bahr >> Sent: Saturday, June 21, 2008 23:41 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Feedback Needed - Round 2 >> >> Tina, as a web developer you must take into account that users do not >> have >> the latest browsers. In other words design a web site for the lowest >> common >> browser (to a point) and/or include checks for which browser and version >> and >> use appropriate code. A lot of people still have IE6 and FF2.x. Btw FF >> just released 3.0 this past week on Wednesday I believe--how did you get >> hold of FF5(??). I know that IE7 breaks some things that work in IE5/6 >> and >> FF sometimes does not display things correctly as IE does. And then >> there >> is Opera and ... >> >> Mike... >> >> >>> Hi Rocky, >>> >>> I'm a little late getting to this thread, and I see that a number of >>> the suggestions made have already been implemented. I'm using FireFox >>> 5.0 and IE 7.0 to view your site. When I select a tab, and the new >>> page is loaded, the heading for that page takes the top left position, >>> which is really kind of nice. But, the tab for Home disappears >>> completely. To return to the Home page, I must use the Back button on >>> the toolbar. I don't find any link on the page to take me back to the >>> Home page. I would like a consistent navigation bar somewhere on the >>> page, one that includes the Home page link as well as all the others. >>> >>> Hope this is helpful, >>> Tina >>> >>> Rocky Smolin at Beach Access Software wrote: >>>> Dear List: >>>> >>>> First of all thanks to everyone who responded the first time with >>>> input on the Beach Access Software web site redesign. >>>> >>>> Karen has taken all of your input and reworked the site. So now >>>> we're ready to impose on you all again for your feedback. >>>> >>>> The site is temporarily stored at >>>> http://www.bchacc.com/beachtemp/index.html >>>> >>>> Any and all comments will be greatly appreciated. >>>> >>>> MTIA, >>>> >>>> Rocky Smolin >>>> >>>> Beach Access Software >>>> >>>> 858-259-4334 >>>> >>>> www.e-z-mrp.com >>>> >>>> www.bchacc.com >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > 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 Sun Jun 22 16:41:24 2008 From: accessd at shaw.ca (Jim Lawrence) Date: Sun, 22 Jun 2008 14:41:24 -0700 Subject: [AccessD] Feedback Needed - Round 2 In-Reply-To: <3DA726A2E3AD4E409AB2440730D701FD@jislaptopdev> References: <005b01c8cfb7$34b76c60$0301a8c0@HAL9005> <485CFB12.2060603@torchlake.com> <1419.24.35.45.228.1214106062.squirrel@mail.expedient.net> <997AFE47224D4C0AAA0CA7AEA146BBD3@DCYN3T81> <248CFC45AA09430AAA027E9A1EC00CB2@jislaptopdev> <3DA726A2E3AD4E409AB2440730D701FD@jislaptopdev> Message-ID: <70F56BA90E7A4D4B8DD8829F5CF8173C@creativesystemdesigns.com> If that is the case then I will be very pleased. FF and most of it Mozilla derivatives, though not perfect have been very close to complete compliance. This of course means that there will now be an additional IE to program for. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman Sent: Sunday, June 22, 2008 1:27 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Feedback Needed - Round 2 ...actually MS is apparently listening ...IE8 beta defaults to Strict mode which to all appearances is strictly and fully W3C compliant ...the first browser to do so ...and of course, in that mode, it breaks virtually every existing website because despite all the blather, no one else is fully compliant either ...be careful you don't get what you wish for :) William "Sen. McCain will bring a lifetime of experience to the campaign... Sen. Obama will bring a speech that he gave." Hillary Clinton -------------------------------------------------- From: "Jim Lawrence" Sent: Sunday, June 22, 2008 1:34 PM To: "'Access Developers discussion and problem solving'" Subject: Re: [AccessD] Feedback Needed - Round 2 > Hi All: > > Actually Safari and FF tend to be very much alike as they both have the > same > engine. IE prides it's self on never being compatible, having a better way > to do things and ignoring W3C standard of which MS agreed to only months > before. > > There is hardly a web site that I have completed that do not have > something > like: > > href='http://www.someoneswebsite.com/css/standard.css' type="text/css" > media="screen, projection" /> > > > > ...In the header so that IE deviations can be managed. > > AJAX is even more fun where all other browsers have only one way to > connect > to the server software and IE has three... so far. > > ...and then if you get any more involved with JavaScript than the basics > there is always a standard way to code for most major browsers and then > there is a way to code for IE. Any of us who have used JS classes will > know > the pain. > > I could rant on for some time but I am sure no one at MS is listening. > > Jim > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of William Hindman > Sent: Sunday, June 22, 2008 4:49 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Feedback Needed - Round 2 > > ...just trying to get a site fully operational in ie6/7/8 and ff2/3 is at > least 1/4 of the time spent in building them and limits a lot of choices > ...and then the client hears from a Safari user :( > > William > > -------------------------------------------------- > From: "Bob Gajewski" > Sent: Sunday, June 22, 2008 12:05 AM > To: "'Access Developers discussion and problem solving'" > > Subject: Re: [AccessD] Feedback Needed - Round 2 > >> Mike >> >> I'm running IE8 beta ... It *really* doesn't like Rocky's site, but if I >> turn on the built-in IE7 emulation, it's okay. >> >> Bob Gajewski >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Bahr >> Sent: Saturday, June 21, 2008 23:41 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Feedback Needed - Round 2 >> >> Tina, as a web developer you must take into account that users do not >> have >> the latest browsers. In other words design a web site for the lowest >> common >> browser (to a point) and/or include checks for which browser and version >> and >> use appropriate code. A lot of people still have IE6 and FF2.x. Btw FF >> just released 3.0 this past week on Wednesday I believe--how did you get >> hold of FF5(??). I know that IE7 breaks some things that work in IE5/6 >> and >> FF sometimes does not display things correctly as IE does. And then >> there >> is Opera and ... >> >> Mike... >> >> >>> Hi Rocky, >>> >>> I'm a little late getting to this thread, and I see that a number of >>> the suggestions made have already been implemented. I'm using FireFox >>> 5.0 and IE 7.0 to view your site. When I select a tab, and the new >>> page is loaded, the heading for that page takes the top left position, >>> which is really kind of nice. But, the tab for Home disappears >>> completely. To return to the Home page, I must use the Back button on >>> the toolbar. I don't find any link on the page to take me back to the >>> Home page. I would like a consistent navigation bar somewhere on the >>> page, one that includes the Home page link as well as all the others. >>> >>> Hope this is helpful, >>> Tina >>> >>> Rocky Smolin at Beach Access Software wrote: >>>> Dear List: >>>> >>>> First of all thanks to everyone who responded the first time with >>>> input on the Beach Access Software web site redesign. >>>> >>>> Karen has taken all of your input and reworked the site. So now >>>> we're ready to impose on you all again for your feedback. >>>> >>>> The site is temporarily stored at >>>> http://www.bchacc.com/beachtemp/index.html >>>> >>>> Any and all comments will be greatly appreciated. >>>> >>>> MTIA, >>>> >>>> Rocky Smolin >>>> >>>> Beach Access Software >>>> >>>> 858-259-4334 >>>> >>>> www.e-z-mrp.com >>>> >>>> www.bchacc.com >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Darryl.Collins at coles.com.au Sun Jun 22 18:42:43 2008 From: Darryl.Collins at coles.com.au (Darryl Collins) Date: Mon, 23 Jun 2008 09:42:43 +1000 Subject: [AccessD] SQL Server Advice Message-ID: <49DFE57FB126044B8A8B934E7AEA09ED09FD7591@WPEXCH05.colesmyer.ad.cmltd.net.au> Thanks Martin. cheers Darryl -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Martin W Reid Sent: Friday, 20 June 2008 11:13 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] SQL Server Advice I will ask at Apress. Martin Martin WP Reid Information Services Queen's University Riddel Hall 185 Stranmillis Road Belfast BT9 5EE Tel : 02890974465 Email : mwp.reid at qub.ac.uk ________________________________________ From: accessd-bounces at databaseadvisors.com [accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins [ssharkins at gmail.com] Sent: 20 June 2008 13:59 To: Access Developers discussion and problem solving Subject: Re: [AccessD] SQL Server Advice Well drat! You might talk to Martin or Apress. Martin still has a relationship with the Apress folks and maybe they're still selling them. Maybe you can get a copy that way. I'd send you a copy, but the author copies on that one disappeared fast. I use mine a lot. I don't see how some of you keep all that stuff crammed into your brains -- I have to look stuff up. Susan H. > > > heh! Susan - it seems like your book is too heavy for most of the folks at > Amazon to post to Oz... I will keep snooping around. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. From tom.p at piedpiper.com.au Mon Jun 23 05:19:28 2008 From: tom.p at piedpiper.com.au (Tom Keatley) Date: Mon, 23 Jun 2008 18:19:28 +0800 Subject: [AccessD] Syntax for using table field values as controlnames and values References: <49DFE57FB126044B8A8B934E7AEA09ED09FD7591@WPEXCH05.colesmyer.ad.cmltd.net.au> Message-ID: <00f801c8d51a$9fab0370$4d00a8c0@TomWork> Hi all ...... I am saving report control placement values (control name, left, top, width, height) in a table and then want to retrieve those values for use back in the report. This will allow me to quickly set up reports with different placement of controls on the fly. I am not having any trouble saving the parameters but I think I am having syntax problems when trying to use the values back in the report The syntax usually for setting say the distance from left for a control would be ControlName.left = 1440 (that is if you were to type it in code). But if you were to use BOTH the control name and its value from two table fields what would the syntax be ....I have tried quite a few variations but am yet to get one to work successfully .... My recordset IS returning the correct string values and the code is running without errors (depending of course on my syntax) A bit of the code I am using is below....... Of course the particular string I am building there for VarCtl DOES NOT work it is just one of the variations I have tried ... ParamRs.MoveFirst While Not ParamRs.EOF Select Case ParamRs!ctlname Case "aStoregraph" 'Image Ctrl Dim VarCtl As String VarCtl = "[" & ParamRs!ctlname & "]" & ".[left]" VarCtl = ParamRs!CtlLeft Case Else End Select ParamRs.movenext wend Any assistance would be valued Thank You Tom Keatley From Gustav at cactus.dk Mon Jun 23 06:15:21 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Mon, 23 Jun 2008 13:15:21 +0200 Subject: [AccessD] Syntax for using table field values as controlnames and values Message-ID: Hi Tom Not quite sure what you are doing, but to refer to create a control and assign it a name you could use: Dim ctlCtl As Control ctlCtl = CreateControl(Me.Name ...) ctlCtl.Name = ParamRs!ctlname ctlCtl.Left = somevalue or later: Controls(ParamRs!ctlname).Left = somevalue /gustav >>> tom.p at piedpiper.com.au 23-06-2008 12:19:28 >>> Hi all ...... I am saving report control placement values (control name, left, top, width, height) in a table and then want to retrieve those values for use back in the report. This will allow me to quickly set up reports with different placement of controls on the fly. I am not having any trouble saving the parameters but I think I am having syntax problems when trying to use the values back in the report The syntax usually for setting say the distance from left for a control would be ControlName.left = 1440 (that is if you were to type it in code). But if you were to use BOTH the control name and its value from two table fields what would the syntax be ....I have tried quite a few variations but am yet to get one to work successfully .... My recordset IS returning the correct string values and the code is running without errors (depending of course on my syntax) A bit of the code I am using is below....... Of course the particular string I am building there for VarCtl DOES NOT work it is just one of the variations I have tried ... ParamRs.MoveFirst While Not ParamRs.EOF Select Case ParamRs!ctlname Case "aStoregraph" 'Image Ctrl Dim VarCtl As String VarCtl = "[" & ParamRs!ctlname & "]" & ".[left]" VarCtl = ParamRs!CtlLeft Case Else End Select ParamRs.movenext wend Any assistance would be valued Thank You Tom Keatley From robert at servicexp.com Mon Jun 23 06:39:57 2008 From: robert at servicexp.com (Robert) Date: Mon, 23 Jun 2008 07:39:57 -0400 Subject: [AccessD] Filter Main Form with Subform... In-Reply-To: <49DFE57FB126044B8A8B934E7AEA09ED09FD7591@WPEXCH05.colesmyer.ad.cmltd.net.au> References: <49DFE57FB126044B8A8B934E7AEA09ED09FD7591@WPEXCH05.colesmyer.ad.cmltd.net.au> Message-ID: <000001c8d525$ded275a0$9c7760e0$@com> I'm trying to filter the main form (and a 2nd subform) from a selection in the 1st subform like this.. (Both subforms are not linked whatsoever they just sit on the main form) Access 2007 (but does the same thing in 2003) Me.parent.form.filter = "[Customer ID] = " & CID Me.parent.form.filterOn = True Me.parent.ctrsubform.form.filter = "[lEKey] = " & m_lEKey Me.parent.ctrsubform.form.filterOn = True The problem is when the code hits the first Me.parent.form.filter = "[Customer ID] = " & CID, the 1st subform requery, and the record position the user selected is lost (record at top of list is highlighted). (But the main form (and 2nd subform are filtered correctly) I have tried to store the Bookmark and re-apply but for some reason I can't grab a valid Bookmark from the subform. So I ended up using the subform PK to perform a search and then move to the record that was selected in the subform. The problem with this approach is it takes a bit of time to complete the cycle and re-look up the selected record. Is there a way to keep the 1st subfrom from requiring? PS: I'm terrible at SQL.... TIA ~Robert From dwaters at usinternet.com Mon Jun 23 07:09:40 2008 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 23 Jun 2008 07:09:40 -0500 Subject: [AccessD] Syntax for using table field values as controlnames and values In-Reply-To: <00f801c8d51a$9fab0370$4d00a8c0@TomWork> References: <49DFE57FB126044B8A8B934E7AEA09ED09FD7591@WPEXCH05.colesmyer.ad.cmltd.net.au> <00f801c8d51a$9fab0370$4d00a8c0@TomWork> Message-ID: Hi Tom, You didn't mention which report event you were using. I've done this a ways back and do remember that you need to be using a specific event - I think it's either Format or Print. HTH, Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tom Keatley Sent: Monday, June 23, 2008 5:19 AM To: Access Developers discussion and problem solving Subject: [AccessD] Syntax for using table field values as controlnames and values Hi all ...... I am saving report control placement values (control name, left, top, width, height) in a table and then want to retrieve those values for use back in the report. This will allow me to quickly set up reports with different placement of controls on the fly. I am not having any trouble saving the parameters but I think I am having syntax problems when trying to use the values back in the report The syntax usually for setting say the distance from left for a control would be ControlName.left = 1440 (that is if you were to type it in code). But if you were to use BOTH the control name and its value from two table fields what would the syntax be ....I have tried quite a few variations but am yet to get one to work successfully .... My recordset IS returning the correct string values and the code is running without errors (depending of course on my syntax) A bit of the code I am using is below....... Of course the particular string I am building there for VarCtl DOES NOT work it is just one of the variations I have tried ... ParamRs.MoveFirst While Not ParamRs.EOF Select Case ParamRs!ctlname Case "aStoregraph" 'Image Ctrl Dim VarCtl As String VarCtl = "[" & ParamRs!ctlname & "]" & ".[left]" VarCtl = ParamRs!CtlLeft Case Else End Select ParamRs.movenext wend Any assistance would be valued Thank You Tom Keatley -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Mon Jun 23 08:44:59 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Mon, 23 Jun 2008 06:44:59 -0700 Subject: [AccessD] Archiving Records Message-ID: <000001c8d537$54fe5210$0301a8c0@HAL9005> Dear List: I would like to add an archiving function to an app so that the user could identify a group of records and copy them to another database. Also, reload them if needed. Is there an easy way to do this without creating a copy of each records by looping through each field in the source record to create the target record and then writing it to the target database? MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com From ssharkins at gmail.com Mon Jun 23 09:02:08 2008 From: ssharkins at gmail.com (Susan Harkins) Date: Mon, 23 Jun 2008 10:02:08 -0400 Subject: [AccessD] Archiving Records References: <000001c8d537$54fe5210$0301a8c0@HAL9005> Message-ID: <012e01c8d539$bbc01900$2f8601c7@SusanOne> > Is there an easy way to do this without creating a copy of each records by > looping through each field in the source record to create the target > record > and then writing it to the target database? =======The simplest way is to leave the record where it is and flag it as active/inactive, whatever. Then, update all your queries to accommodate this value. I realize this isn't a good solution if the problem is resources. If resources aren't a problem, I wouldn't go to the trouble to actually move records. The next option is to come up with some condition -- the record's date is usually a good one -- to use as criteria for moving the records to an archive table -- you don't have to loop through anything, just use a SQL INSERT INTO to "append" a recordset to an existing table -- it's the same as an Append query. Then, use the same action with a Delete query on the original source. You just need some kind of anchor to identify the records you want to archive (move). Susan H. From dwaters at usinternet.com Mon Jun 23 09:04:09 2008 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 23 Jun 2008 09:04:09 -0500 Subject: [AccessD] Lebans' Calendar Screen Message-ID: <59DF6BA0D1CE4314B7D19B95DA06AEE3@danwaters> Hello to Everyone! Last week I learned how to use Stephen Lebans' date selection calendar. This is not an ActiveX control, but uses API calls. If you haven't looked at this calendar you should. It's quite versatile and is user-configurable. For my customers' use I often record short tutorial videos. If you'd like to view the video I made for this Calendar, you can go to http://www.promationsystems.com/demo.htm. The link is at the bottom of the page. The video is in WMV format, is about 11 minutes long, and goes through all the features. I also may have 'stumbled' across a way of using this on a subform. Instead of instantiating the class (clsMonthCal) in the form as per the instructions on Lebans' site, I instantiated this in a standard module (thanks to Lambert and Charlotte!). I'm posting the code to do this below: '-------------------------------------- '-- In a form or subform (I have only tried a 1st level subform) Private Sub butGetDates_Click() '-- The End Date is optional but is needed if you want a date range. '-- Pass the complete reference to the date controls so that _ the standard module can write back to them. Call OpenCalendar(Forms("frmMain")("txtStartDate"), Me.hWnd, Forms("frmMain")("txtEndDate")) End Sub '-------------------------------------- '-- In a standard module '-- Get the example .mdb from Lebans' site. _ It contains the class module (clsMonthCal) and 4 standard modules. _ Instructions are on the page for this Calendar. Private mc As clsMonthCal Public Sub OpenCalendar(txtStartDateOnForm As TextBox, lnghwnd As Long, Optional txtEndDateOnForm As TextBox) Dim blnRet As Boolean Dim dteStart As Date Dim dteEnd As Date '-- Create an instance of our Class Set mc = New clsMonthCal '-- Set the hWndForm Property mc.hWndForm = lnghwnd '-- Date fields are typically empty to start with dteStart = Nz(txtStartDateOnForm, 0) dteEnd = 0 '-- Run the calendar. The calendar is modal during this line blnRet = ShowMonthCalendar(mc, dteStart, dteEnd) If blnRet = True Then txtStartDateOnForm = dteStart If Not txtEndDateOnForm Is Nothing Then txtEndDateOnForm = dteEnd End If Else '-- Add any message here if you want to _ inform the user that no date was selected End If End Sub '----------------------------- Perhaps someone will find this to be helpful! Dan From rosalyn.clarke at barclays.com Mon Jun 23 09:36:01 2008 From: rosalyn.clarke at barclays.com (rosalyn.clarke at barclays.com) Date: Mon, 23 Jun 2008 15:36:01 +0100 Subject: [AccessD] Archiving Records In-Reply-To: <012e01c8d539$bbc01900$2f8601c7@SusanOne> References: <000001c8d537$54fe5210$0301a8c0@HAL9005> <012e01c8d539$bbc01900$2f8601c7@SusanOne> Message-ID: As a halfway house you could set an 'archive' flag in each record and use this as the condition for your SQL statement. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: 23 June 2008 15:02 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Archiving Records > Is there an easy way to do this without creating a copy of each > records by looping through each field in the source record to create > the target record and then writing it to the target database? =======The simplest way is to leave the record where it is and flag it as active/inactive, whatever. Then, update all your queries to accommodate this value. I realize this isn't a good solution if the problem is resources. If resources aren't a problem, I wouldn't go to the trouble to actually move records. The next option is to come up with some condition -- the record's date is usually a good one -- to use as criteria for moving the records to an archive table -- you don't have to loop through anything, just use a SQL INSERT INTO to "append" a recordset to an existing table -- it's the same as an Append query. Then, use the same action with a Delete query on the original source. You just need some kind of anchor to identify the records you want to archive (move). Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments. Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. From rockysmolin at bchacc.com Mon Jun 23 10:29:40 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Mon, 23 Jun 2008 08:29:40 -0700 Subject: [AccessD] Archiving Records In-Reply-To: <012e01c8d539$bbc01900$2f8601c7@SusanOne> References: <000001c8d537$54fe5210$0301a8c0@HAL9005> <012e01c8d539$bbc01900$2f8601c7@SusanOne> Message-ID: <000e01c8d545$f420d030$0301a8c0@HAL9005> Susan: Gotta move the records to reduce the size of the database. So it sounds like your INSERT INTO solution would work. Have the user point to the external database. Link the appropriate tables, I guess. INSERT the desired records in the target mdb and delete them from the source mdb. Regards, Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Monday, June 23, 2008 7:02 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Archiving Records > Is there an easy way to do this without creating a copy of each > records by looping through each field in the source record to create > the target record and then writing it to the target database? =======The simplest way is to leave the record where it is and flag it as active/inactive, whatever. Then, update all your queries to accommodate this value. I realize this isn't a good solution if the problem is resources. If resources aren't a problem, I wouldn't go to the trouble to actually move records. The next option is to come up with some condition -- the record's date is usually a good one -- to use as criteria for moving the records to an archive table -- you don't have to loop through anything, just use a SQL INSERT INTO to "append" a recordset to an existing table -- it's the same as an Append query. Then, use the same action with a Delete query on the original source. You just need some kind of anchor to identify the records you want to archive (move). Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Mon Jun 23 10:32:16 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Mon, 23 Jun 2008 08:32:16 -0700 Subject: [AccessD] Archiving Records In-Reply-To: References: <000001c8d537$54fe5210$0301a8c0@HAL9005><012e01c8d539$bbc01900$2f8601c7@SusanOne> Message-ID: <000f01c8d546$51724750$0301a8c0@HAL9005> I actually have to get the records out of the db and delete them. (JC will have a fit:o)) Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rosalyn.clarke at barclays.com Sent: Monday, June 23, 2008 7:36 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Archiving Records As a halfway house you could set an 'archive' flag in each record and use this as the condition for your SQL statement. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: 23 June 2008 15:02 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Archiving Records > Is there an easy way to do this without creating a copy of each > records by looping through each field in the source record to create > the target record and then writing it to the target database? =======The simplest way is to leave the record where it is and flag it as active/inactive, whatever. Then, update all your queries to accommodate this value. I realize this isn't a good solution if the problem is resources. If resources aren't a problem, I wouldn't go to the trouble to actually move records. The next option is to come up with some condition -- the record's date is usually a good one -- to use as criteria for moving the records to an archive table -- you don't have to loop through anything, just use a SQL INSERT INTO to "append" a recordset to an existing table -- it's the same as an Append query. Then, use the same action with a Delete query on the original source. You just need some kind of anchor to identify the records you want to archive (move). Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments. Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rosalyn.clarke at barclays.com Mon Jun 23 10:39:11 2008 From: rosalyn.clarke at barclays.com (rosalyn.clarke at barclays.com) Date: Mon, 23 Jun 2008 16:39:11 +0100 Subject: [AccessD] Archiving Records In-Reply-To: <000f01c8d546$51724750$0301a8c0@HAL9005> References: <000001c8d537$54fe5210$0301a8c0@HAL9005><012e01c8d539$bbc01900$2f8601c7@SusanOne> <000f01c8d546$51724750$0301a8c0@HAL9005> Message-ID: I know, I was just trying to cover the 'user wants to select records and there's no rule about which ones to archive' scenario, whilst allowing use of a simple SELECT INTO. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: 23 June 2008 16:32 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Archiving Records I actually have to get the records out of the db and delete them. (JC will have a fit:o)) Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rosalyn.clarke at barclays.com Sent: Monday, June 23, 2008 7:36 AM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Archiving Records As a halfway house you could set an 'archive' flag in each record and use this as the condition for your SQL statement. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: 23 June 2008 15:02 To: Access Developers discussion and problem solving Subject: Re: [AccessD] Archiving Records > Is there an easy way to do this without creating a copy of each > records by looping through each field in the source record to create > the target record and then writing it to the target database? =======The simplest way is to leave the record where it is and flag it as active/inactive, whatever. Then, update all your queries to accommodate this value. I realize this isn't a good solution if the problem is resources. If resources aren't a problem, I wouldn't go to the trouble to actually move records. The next option is to come up with some condition -- the record's date is usually a good one -- to use as criteria for moving the records to an archive table -- you don't have to loop through anything, just use a SQL INSERT INTO to "append" a recordset to an existing table -- it's the same as an Append query. Then, use the same action with a Delete query on the original source. You just need some kind of anchor to identify the records you want to archive (move). Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments. Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments. Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. From dw-murphy at cox.net Mon Jun 23 10:42:58 2008 From: dw-murphy at cox.net (Doug Murphy) Date: Mon, 23 Jun 2008 08:42:58 -0700 Subject: [AccessD] Lebans' Calendar Screen In-Reply-To: <59DF6BA0D1CE4314B7D19B95DA06AEE3@danwaters> References: <59DF6BA0D1CE4314B7D19B95DA06AEE3@danwaters> Message-ID: <003e01c8d547$cff344c0$0200a8c0@murphy3234aaf1> Hi Dan, Cool. I also like the concept of your instruction site. What do you use to create your videos? Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, June 23, 2008 7:04 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Lebans' Calendar Screen Hello to Everyone! Last week I learned how to use Stephen Lebans' date selection calendar. This is not an ActiveX control, but uses API calls. If you haven't looked at this calendar you should. It's quite versatile and is user-configurable. For my customers' use I often record short tutorial videos. If you'd like to view the video I made for this Calendar, you can go to http://www.promationsystems.com/demo.htm. The link is at the bottom of the page. The video is in WMV format, is about 11 minutes long, and goes through all the features. I also may have 'stumbled' across a way of using this on a subform. Instead of instantiating the class (clsMonthCal) in the form as per the instructions on Lebans' site, I instantiated this in a standard module (thanks to Lambert and Charlotte!). I'm posting the code to do this below: '-------------------------------------- '-- In a form or subform (I have only tried a 1st level subform) Private Sub butGetDates_Click() '-- The End Date is optional but is needed if you want a date range. '-- Pass the complete reference to the date controls so that _ the standard module can write back to them. Call OpenCalendar(Forms("frmMain")("txtStartDate"), Me.hWnd, Forms("frmMain")("txtEndDate")) End Sub '-------------------------------------- '-- In a standard module '-- Get the example .mdb from Lebans' site. _ It contains the class module (clsMonthCal) and 4 standard modules. _ Instructions are on the page for this Calendar. Private mc As clsMonthCal Public Sub OpenCalendar(txtStartDateOnForm As TextBox, lnghwnd As Long, Optional txtEndDateOnForm As TextBox) Dim blnRet As Boolean Dim dteStart As Date Dim dteEnd As Date '-- Create an instance of our Class Set mc = New clsMonthCal '-- Set the hWndForm Property mc.hWndForm = lnghwnd '-- Date fields are typically empty to start with dteStart = Nz(txtStartDateOnForm, 0) dteEnd = 0 '-- Run the calendar. The calendar is modal during this line blnRet = ShowMonthCalendar(mc, dteStart, dteEnd) If blnRet = True Then txtStartDateOnForm = dteStart If Not txtEndDateOnForm Is Nothing Then txtEndDateOnForm = dteEnd End If Else '-- Add any message here if you want to _ inform the user that no date was selected End If End Sub '----------------------------- Perhaps someone will find this to be helpful! Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jedi at charm.net Mon Jun 23 11:48:53 2008 From: jedi at charm.net (Michael Bahr) Date: Mon, 23 Jun 2008 12:48:53 -0400 (EDT) Subject: [AccessD] Feedback Needed - Round 2 In-Reply-To: <248CFC45AA09430AAA027E9A1EC00CB2@jislaptopdev> References: <005b01c8cfb7$34b76c60$0301a8c0@HAL9005><485CFB12.2060603@torchlake.com><1419.24.35.45.228.1214106062.squirrel@mail.expedient.net> <997AFE47224D4C0AAA0CA7AEA146BBD3@DCYN3T81> <248CFC45AA09430AAA027E9A1EC00CB2@jislaptopdev> Message-ID: <42997.198.118.127.183.1214239733.squirrel@mail.expedient.net> All the more reason to just Keep It Simple. It is safe and easy. Mike... > ...just trying to get a site fully operational in ie6/7/8 and ff2/3 is at > least 1/4 of the time spent in building them and limits a lot of choices > ...and then the client hears from a Safari user :( > > William > > -------------------------------------------------- > From: "Bob Gajewski" > Sent: Sunday, June 22, 2008 12:05 AM > To: "'Access Developers discussion and problem solving'" > > Subject: Re: [AccessD] Feedback Needed - Round 2 > >> Mike >> >> I'm running IE8 beta ... It *really* doesn't like Rocky's site, but if I >> turn on the built-in IE7 emulation, it's okay. >> >> Bob Gajewski >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Michael Bahr >> Sent: Saturday, June 21, 2008 23:41 PM >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Feedback Needed - Round 2 >> >> Tina, as a web developer you must take into account that users do not >> have >> the latest browsers. In other words design a web site for the lowest >> common >> browser (to a point) and/or include checks for which browser and version >> and >> use appropriate code. A lot of people still have IE6 and FF2.x. Btw FF >> just released 3.0 this past week on Wednesday I believe--how did you get >> hold of FF5(??). I know that IE7 breaks some things that work in IE5/6 >> and >> FF sometimes does not display things correctly as IE does. And then >> there >> is Opera and ... >> >> Mike... >> >> >>> Hi Rocky, >>> >>> I'm a little late getting to this thread, and I see that a number of >>> the suggestions made have already been implemented. I'm using FireFox >>> 5.0 and IE 7.0 to view your site. When I select a tab, and the new >>> page is loaded, the heading for that page takes the top left position, >>> which is really kind of nice. But, the tab for Home disappears >>> completely. To return to the Home page, I must use the Back button on >>> the toolbar. I don't find any link on the page to take me back to the >>> Home page. I would like a consistent navigation bar somewhere on the >>> page, one that includes the Home page link as well as all the others. >>> >>> Hope this is helpful, >>> Tina >>> >>> Rocky Smolin at Beach Access Software wrote: >>>> Dear List: >>>> >>>> First of all thanks to everyone who responded the first time with >>>> input on the Beach Access Software web site redesign. >>>> >>>> Karen has taken all of your input and reworked the site. So now >>>> we're ready to impose on you all again for your feedback. >>>> >>>> The site is temporarily stored at >>>> http://www.bchacc.com/beachtemp/index.html >>>> >>>> Any and all comments will be greatly appreciated. >>>> >>>> MTIA, >>>> >>>> Rocky Smolin >>>> >>>> Beach Access Software >>>> >>>> 858-259-4334 >>>> >>>> www.e-z-mrp.com >>>> >>>> www.bchacc.com >>>> >>>> >>>> >>>> >>>> >>>> >>>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >> >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> 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 Jun 23 12:03:26 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 23 Jun 2008 10:03:26 -0700 Subject: [AccessD] Form BeforeUpdate In-Reply-To: <485E478E.9000207@nanaimo.ark.com> References: <485E478E.9000207@nanaimo.ark.com> Message-ID: I don't believe you can cancel the form's close event. You have to use the Unload event instead if you want to cancel. However, a lot depends on how your close button behaves. If it just calls close, then a CancelEvent is not going to change that. If it calls Form_Unload and the Unload event calls DoCmd.Close, then the CancelEvent should work, I think. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav Sent: Sunday, 22 June 2008 5:38 a.m. To: Access Developers discussion and problem solving Subject: [AccessD] Form BeforeUpdate Hey All I am trying to use the BeforeUpdate on a bound continuous form. The code works and checks the data in the current record for validation and if an error is found it pops up a message and fires the docmd.cancelevent (or cancel = true). Everything works fine, except when I click on the add, delete, or close buttons (mine) in the form's footer, then the code works fine and the message pops up, but the docmd.cancelevent doesn't fire. Is this a bug, or am I missing something. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Mon Jun 23 12:05:24 2008 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 23 Jun 2008 12:05:24 -0500 Subject: [AccessD] Lebans' Calendar Screen In-Reply-To: <003e01c8d547$cff344c0$0200a8c0@murphy3234aaf1> References: <59DF6BA0D1CE4314B7D19B95DA06AEE3@danwaters> <003e01c8d547$cff344c0$0200a8c0@murphy3234aaf1> Message-ID: <09E3AF6BF22E42EEB4CBFF76A2ABD201@danwaters> Hi Doug, I'm using Camtasia Studio 5. I just checked - it's $299 - worth it for me. As a bonus you get a copy of SnagIt, which I end up using more than Camtasia. It's at www.techsmith.com. Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Monday, June 23, 2008 10:43 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Lebans' Calendar Screen Hi Dan, Cool. I also like the concept of your instruction site. What do you use to create your videos? Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, June 23, 2008 7:04 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Lebans' Calendar Screen Hello to Everyone! Last week I learned how to use Stephen Lebans' date selection calendar. This is not an ActiveX control, but uses API calls. If you haven't looked at this calendar you should. It's quite versatile and is user-configurable. For my customers' use I often record short tutorial videos. If you'd like to view the video I made for this Calendar, you can go to http://www.promationsystems.com/demo.htm. The link is at the bottom of the page. The video is in WMV format, is about 11 minutes long, and goes through all the features. I also may have 'stumbled' across a way of using this on a subform. Instead of instantiating the class (clsMonthCal) in the form as per the instructions on Lebans' site, I instantiated this in a standard module (thanks to Lambert and Charlotte!). I'm posting the code to do this below: '-------------------------------------- '-- In a form or subform (I have only tried a 1st level subform) Private Sub butGetDates_Click() '-- The End Date is optional but is needed if you want a date range. '-- Pass the complete reference to the date controls so that _ the standard module can write back to them. Call OpenCalendar(Forms("frmMain")("txtStartDate"), Me.hWnd, Forms("frmMain")("txtEndDate")) End Sub '-------------------------------------- '-- In a standard module '-- Get the example .mdb from Lebans' site. _ It contains the class module (clsMonthCal) and 4 standard modules. _ Instructions are on the page for this Calendar. Private mc As clsMonthCal Public Sub OpenCalendar(txtStartDateOnForm As TextBox, lnghwnd As Long, Optional txtEndDateOnForm As TextBox) Dim blnRet As Boolean Dim dteStart As Date Dim dteEnd As Date '-- Create an instance of our Class Set mc = New clsMonthCal '-- Set the hWndForm Property mc.hWndForm = lnghwnd '-- Date fields are typically empty to start with dteStart = Nz(txtStartDateOnForm, 0) dteEnd = 0 '-- Run the calendar. The calendar is modal during this line blnRet = ShowMonthCalendar(mc, dteStart, dteEnd) If blnRet = True Then txtStartDateOnForm = dteStart If Not txtEndDateOnForm Is Nothing Then txtEndDateOnForm = dteEnd End If Else '-- Add any message here if you want to _ inform the user that no date was selected End If End Sub '----------------------------- Perhaps someone will find this to be helpful! Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Jun 23 12:13:47 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Mon, 23 Jun 2008 12:13:47 -0500 Subject: [AccessD] Archiving Records In-Reply-To: <000e01c8d545$f420d030$0301a8c0@HAL9005> Message-ID: Here's another approach Rocky. Change the name of the table you want to 'archive' to Current+the name of the table. (ie, so if the table is "tblSomeTable", change it's name to "CurrenttblSomeTable". Now build a query, with "CurrenttblSomeTable" select all the fields (not the *) and save the query as the original table name ("tblSomeTable"). Go into the design of that query and remove the semicolon at the end, and save the query. Now make a blank database in the same folder as the original database, and name that new blank database Blank.mdb. Put the following code into a module: Private Declare Function CopyFile Lib "kernel32" Alias "CopyFileA" (ByVal lpExistingFileName As String, ByVal lpNewFileName As String, ByVal bFailIfExists As Long) As Long Function ArchiveRecords(strTableName As String) Dim strTemp As String Dim i As Long Dim strNewDBName As String Dim strCurrentPath As String Dim strSQL As String Dim qry As QueryDef Dim rs As ADODB.Recordset Dim tmpDBName As String strNewDBName = Dir(Application.CurrentDb.Name) strCurrentPath = Left(Application.CurrentDb.Name, Len(Application.CurrentDb.Name) - Len(strNewDBName)) strNewDBName = Left(strNewDBName, Len(strNewDBName) - 4) tmpDBName = strNewDBName & Format(Date, "DDMMYYYY") & ".mdb" strTemp = Dir(strCurrentPath & tmpDBName) i = 1 Do Until strTemp = "" tmpDBName = strNewDBName & Format(Date, "DDMMYYYY") & "-" & i & ".mdb" strTemp = Dir(strCurrentPath & tmpDBName) i = i + 1 Loop strNewDBName = tmpDBName CopyFile strCurrentPath & "Blank.mdb", strCurrentPath & strNewDBName, True strSQL = "SELECT * INTO " & strTableName & " IN """ & strCurrentPath & strNewDBName & """ FROM " & strTableName DoCmd.RunSQL strSQL strSQL = "DELETE * FROM " & strTableName DoCmd.RunSQL strSQL Set qry = CurrentDb.QueryDefs(Mid(strTableName, 8)) strSQL = qry.SQL strSQL = strSQL & vbCrLf & "UNION SELECT " Set rs = New ADODB.Recordset rs.Open strTableName, CurrentProject.Connection, adOpenKeyset, adLockReadOnly For i = 0 To rs.Fields.Count - 1 strSQL = strSQL & rs.Fields(i).Name & ", " Next i strSQL = Left(strSQL, Len(strSQL) - 2) & vbCrLf & "FROM " & strTableName & " IN """ & strCurrentPath & strNewDBName & """" qry.SQL = strSQL Set qry = Nothing MsgBox "Please Compact the Database Now" End Function Run the function above with the new table name. ie, ?ArchiveRecords("CurrenttblSomeTable") Whalla. All of the records in that table are now stored in a new database, with the name of the existing database + the current date (and -1, -2, etc, if this is done multiple times in the same day). Also, the 'original table' is now a union query, that will display ALL the records, even though the archived data is stored in separate MDBs. A few caveats with this approach. First, I didn't set the warnings off, you can do that if you want. Second, if you are using an Autonumber field in the table you are archiving, if the user then compacts the database, the autonumber is reset to 0. The next time you archive, you will have duplicate primary keys. To get around this, either change the SQL statements in the DoCmd.RunSQL statements to leave a few records behind, or find the last ID, and after they compact the database, insert and delete a record with that last ID. (which will set the Autonumber back on track). In case you are wondering, having a query named with the original table name, you will not need to change anything else in your project. All forms, reports, code, even other queries should automatically use the new query just like it was the old table. The exception to that would be wherever you are adding records to that table. That will need to be changed to use the 'CurrenttblSomeTable'. Also, any process where you don't want to see 'archived' records, you can point those to the actual table too. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Monday, June 23, 2008 10:30 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Archiving Records Susan: Gotta move the records to reduce the size of the database. So it sounds like your INSERT INTO solution would work. Have the user point to the external database. Link the appropriate tables, I guess. INSERT the desired records in the target mdb and delete them from the source mdb. Regards, Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From cfoust at infostatsystems.com Mon Jun 23 12:56:25 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Mon, 23 Jun 2008 10:56:25 -0700 Subject: [AccessD] Lebans' Calendar Screen In-Reply-To: <09E3AF6BF22E42EEB4CBFF76A2ABD201@danwaters> References: <59DF6BA0D1CE4314B7D19B95DA06AEE3@danwaters><003e01c8d547$cff344c0$0200a8c0@murphy3234aaf1> <09E3AF6BF22E42EEB4CBFF76A2ABD201@danwaters> Message-ID: We use Camtasia for our tutorials as well. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, 23 June 2008 10:05 a.m. To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Lebans' Calendar Screen Hi Doug, I'm using Camtasia Studio 5. I just checked - it's $299 - worth it for me. As a bonus you get a copy of SnagIt, which I end up using more than Camtasia. It's at www.techsmith.com. Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Doug Murphy Sent: Monday, June 23, 2008 10:43 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Lebans' Calendar Screen Hi Dan, Cool. I also like the concept of your instruction site. What do you use to create your videos? Doug -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, June 23, 2008 7:04 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Lebans' Calendar Screen Hello to Everyone! Last week I learned how to use Stephen Lebans' date selection calendar. This is not an ActiveX control, but uses API calls. If you haven't looked at this calendar you should. It's quite versatile and is user-configurable. For my customers' use I often record short tutorial videos. If you'd like to view the video I made for this Calendar, you can go to http://www.promationsystems.com/demo.htm. The link is at the bottom of the page. The video is in WMV format, is about 11 minutes long, and goes through all the features. I also may have 'stumbled' across a way of using this on a subform. Instead of instantiating the class (clsMonthCal) in the form as per the instructions on Lebans' site, I instantiated this in a standard module (thanks to Lambert and Charlotte!). I'm posting the code to do this below: '-------------------------------------- '-- In a form or subform (I have only tried a 1st level subform) Private Sub butGetDates_Click() '-- The End Date is optional but is needed if you want a date range. '-- Pass the complete reference to the date controls so that _ the standard module can write back to them. Call OpenCalendar(Forms("frmMain")("txtStartDate"), Me.hWnd, Forms("frmMain")("txtEndDate")) End Sub '-------------------------------------- '-- In a standard module '-- Get the example .mdb from Lebans' site. _ It contains the class module (clsMonthCal) and 4 standard modules. _ Instructions are on the page for this Calendar. Private mc As clsMonthCal Public Sub OpenCalendar(txtStartDateOnForm As TextBox, lnghwnd As Long, Optional txtEndDateOnForm As TextBox) Dim blnRet As Boolean Dim dteStart As Date Dim dteEnd As Date '-- Create an instance of our Class Set mc = New clsMonthCal '-- Set the hWndForm Property mc.hWndForm = lnghwnd '-- Date fields are typically empty to start with dteStart = Nz(txtStartDateOnForm, 0) dteEnd = 0 '-- Run the calendar. The calendar is modal during this line blnRet = ShowMonthCalendar(mc, dteStart, dteEnd) If blnRet = True Then txtStartDateOnForm = dteStart If Not txtEndDateOnForm Is Nothing Then txtEndDateOnForm = dteEnd End If Else '-- Add any message here if you want to _ inform the user that no date was selected End If End Sub '----------------------------- Perhaps someone will find this to be helpful! Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Jun 23 15:13:26 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Mon, 23 Jun 2008 15:13:26 -0500 Subject: [AccessD] Lebans' Calendar Screen In-Reply-To: <59DF6BA0D1CE4314B7D19B95DA06AEE3@danwaters> Message-ID: I was working on a newer version of the 'minicalendar' form I had built years ago. The new one has a lot of bells and whistles, and one of the features I wanted to put into it was to be able to set it as a subform. The problem I ran into (other then lack of time to work on it), is that one of the 'new' features was that the form was shaped. Had some 'animation' with it too (sliding menus for different functions). That is when I discovered how goofy Access forms are. Windows, in Windows, are very simple creatures. On a typical window, each control is another window, usually of a specific class. There are API calls to deal with special windows, and APIs to deal with generic windows. For example, if you want to read the text of a textbox on a window, you just find it's API, and the text is the 'window text' property, where as the same property for a normal window would be it's caption. You can also programmatically run through the contents of a listbox or combobox this way. (I used that one time in an application where I had to take the contents of a listbox with thousands of entries, and put them in a text file. The Listbox was running in a window of a out of the box application, and I had no programming interface to read it, but thanks to how windows work, I was able to use standard window API's to programmatically read the contents of the listbox). Anywho, back to Access forms. In an Access form, the controls on the form aren't actually windows, instead, everything is actually an 'image' and only the current control is a separate window...which is really crazy, because as you move focus from control to control, Access is literally changing that window and turning the previous control to an image. Go figure. So since that new MiniCalendar was trying to modify itself as a window, and it no longer had true window properties, it wouldn't work as a subform. Ok, did I just type all this out cause I'm bored today? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, June 23, 2008 9:04 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Lebans' Calendar Screen Hello to Everyone! Last week I learned how to use Stephen Lebans' date selection calendar. This is not an ActiveX control, but uses API calls. If you haven't looked at this calendar you should. It's quite versatile and is user-configurable. For my customers' use I often record short tutorial videos. If you'd like to view the video I made for this Calendar, you can go to http://www.promationsystems.com/demo.htm. The link is at the bottom of the page. The video is in WMV format, is about 11 minutes long, and goes through all the features. I also may have 'stumbled' across a way of using this on a subform. Instead of instantiating the class (clsMonthCal) in the form as per the instructions on Lebans' site, I instantiated this in a standard module (thanks to Lambert and Charlotte!). I'm posting the code to do this below: '-------------------------------------- '-- In a form or subform (I have only tried a 1st level subform) Private Sub butGetDates_Click() '-- The End Date is optional but is needed if you want a date range. '-- Pass the complete reference to the date controls so that _ the standard module can write back to them. Call OpenCalendar(Forms("frmMain")("txtStartDate"), Me.hWnd, Forms("frmMain")("txtEndDate")) End Sub '-------------------------------------- '-- In a standard module '-- Get the example .mdb from Lebans' site. _ It contains the class module (clsMonthCal) and 4 standard modules. _ Instructions are on the page for this Calendar. Private mc As clsMonthCal Public Sub OpenCalendar(txtStartDateOnForm As TextBox, lnghwnd As Long, Optional txtEndDateOnForm As TextBox) Dim blnRet As Boolean Dim dteStart As Date Dim dteEnd As Date '-- Create an instance of our Class Set mc = New clsMonthCal '-- Set the hWndForm Property mc.hWndForm = lnghwnd '-- Date fields are typically empty to start with dteStart = Nz(txtStartDateOnForm, 0) dteEnd = 0 '-- Run the calendar. The calendar is modal during this line blnRet = ShowMonthCalendar(mc, dteStart, dteEnd) If blnRet = True Then txtStartDateOnForm = dteStart If Not txtEndDateOnForm Is Nothing Then txtEndDateOnForm = dteEnd End If Else '-- Add any message here if you want to _ inform the user that no date was selected End If End Sub '----------------------------- Perhaps someone will find this to be helpful! Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From dwaters at usinternet.com Mon Jun 23 15:42:52 2008 From: dwaters at usinternet.com (Dan Waters) Date: Mon, 23 Jun 2008 15:42:52 -0500 Subject: [AccessD] Lebans' Calendar Screen In-Reply-To: References: <59DF6BA0D1CE4314B7D19B95DA06AEE3@danwaters> Message-ID: <5A4158B6851F4598B56545BE0B03D285@danwaters> Hey - I Learned! Ya know, MS must have some reason to go to all the trouble of creating Access in a non-standard way. Wonder what it was? Thanks! Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Monday, June 23, 2008 3:13 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Lebans' Calendar Screen I was working on a newer version of the 'minicalendar' form I had built years ago. The new one has a lot of bells and whistles, and one of the features I wanted to put into it was to be able to set it as a subform. The problem I ran into (other then lack of time to work on it), is that one of the 'new' features was that the form was shaped. Had some 'animation' with it too (sliding menus for different functions). That is when I discovered how goofy Access forms are. Windows, in Windows, are very simple creatures. On a typical window, each control is another window, usually of a specific class. There are API calls to deal with special windows, and APIs to deal with generic windows. For example, if you want to read the text of a textbox on a window, you just find it's API, and the text is the 'window text' property, where as the same property for a normal window would be it's caption. You can also programmatically run through the contents of a listbox or combobox this way. (I used that one time in an application where I had to take the contents of a listbox with thousands of entries, and put them in a text file. The Listbox was running in a window of a out of the box application, and I had no programming interface to read it, but thanks to how windows work, I was able to use standard window API's to programmatically read the contents of the listbox). Anywho, back to Access forms. In an Access form, the controls on the form aren't actually windows, instead, everything is actually an 'image' and only the current control is a separate window...which is really crazy, because as you move focus from control to control, Access is literally changing that window and turning the previous control to an image. Go figure. So since that new MiniCalendar was trying to modify itself as a window, and it no longer had true window properties, it wouldn't work as a subform. Ok, did I just type all this out cause I'm bored today? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, June 23, 2008 9:04 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Lebans' Calendar Screen Hello to Everyone! Last week I learned how to use Stephen Lebans' date selection calendar. This is not an ActiveX control, but uses API calls. If you haven't looked at this calendar you should. It's quite versatile and is user-configurable. For my customers' use I often record short tutorial videos. If you'd like to view the video I made for this Calendar, you can go to http://www.promationsystems.com/demo.htm. The link is at the bottom of the page. The video is in WMV format, is about 11 minutes long, and goes through all the features. I also may have 'stumbled' across a way of using this on a subform. Instead of instantiating the class (clsMonthCal) in the form as per the instructions on Lebans' site, I instantiated this in a standard module (thanks to Lambert and Charlotte!). I'm posting the code to do this below: '-------------------------------------- '-- In a form or subform (I have only tried a 1st level subform) Private Sub butGetDates_Click() '-- The End Date is optional but is needed if you want a date range. '-- Pass the complete reference to the date controls so that _ the standard module can write back to them. Call OpenCalendar(Forms("frmMain")("txtStartDate"), Me.hWnd, Forms("frmMain")("txtEndDate")) End Sub '-------------------------------------- '-- In a standard module '-- Get the example .mdb from Lebans' site. _ It contains the class module (clsMonthCal) and 4 standard modules. _ Instructions are on the page for this Calendar. Private mc As clsMonthCal Public Sub OpenCalendar(txtStartDateOnForm As TextBox, lnghwnd As Long, Optional txtEndDateOnForm As TextBox) Dim blnRet As Boolean Dim dteStart As Date Dim dteEnd As Date '-- Create an instance of our Class Set mc = New clsMonthCal '-- Set the hWndForm Property mc.hWndForm = lnghwnd '-- Date fields are typically empty to start with dteStart = Nz(txtStartDateOnForm, 0) dteEnd = 0 '-- Run the calendar. The calendar is modal during this line blnRet = ShowMonthCalendar(mc, dteStart, dteEnd) If blnRet = True Then txtStartDateOnForm = dteStart If Not txtEndDateOnForm Is Nothing Then txtEndDateOnForm = dteEnd End If Else '-- Add any message here if you want to _ inform the user that no date was selected End If End Sub '----------------------------- Perhaps someone will find this to be helpful! Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jimdettman at verizon.net Mon Jun 23 16:06:20 2008 From: jimdettman at verizon.net (Jim Dettman) Date: Mon, 23 Jun 2008 17:06:20 -0400 Subject: [AccessD] Lebans' Calendar Screen In-Reply-To: References: <59DF6BA0D1CE4314B7D19B95DA06AEE3@danwaters> Message-ID: <001501c8d574$fc8bc480$8abea8c0@XPS> Drew, <> The original reason given for this was to conserve resources when running. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Monday, June 23, 2008 4:13 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Lebans' Calendar Screen I was working on a newer version of the 'minicalendar' form I had built years ago. The new one has a lot of bells and whistles, and one of the features I wanted to put into it was to be able to set it as a subform. The problem I ran into (other then lack of time to work on it), is that one of the 'new' features was that the form was shaped. Had some 'animation' with it too (sliding menus for different functions). That is when I discovered how goofy Access forms are. Windows, in Windows, are very simple creatures. On a typical window, each control is another window, usually of a specific class. There are API calls to deal with special windows, and APIs to deal with generic windows. For example, if you want to read the text of a textbox on a window, you just find it's API, and the text is the 'window text' property, where as the same property for a normal window would be it's caption. You can also programmatically run through the contents of a listbox or combobox this way. (I used that one time in an application where I had to take the contents of a listbox with thousands of entries, and put them in a text file. The Listbox was running in a window of a out of the box application, and I had no programming interface to read it, but thanks to how windows work, I was able to use standard window API's to programmatically read the contents of the listbox). Anywho, back to Access forms. In an Access form, the controls on the form aren't actually windows, instead, everything is actually an 'image' and only the current control is a separate window...which is really crazy, because as you move focus from control to control, Access is literally changing that window and turning the previous control to an image. Go figure. So since that new MiniCalendar was trying to modify itself as a window, and it no longer had true window properties, it wouldn't work as a subform. Ok, did I just type all this out cause I'm bored today? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, June 23, 2008 9:04 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Lebans' Calendar Screen Hello to Everyone! Last week I learned how to use Stephen Lebans' date selection calendar. This is not an ActiveX control, but uses API calls. If you haven't looked at this calendar you should. It's quite versatile and is user-configurable. For my customers' use I often record short tutorial videos. If you'd like to view the video I made for this Calendar, you can go to http://www.promationsystems.com/demo.htm. The link is at the bottom of the page. The video is in WMV format, is about 11 minutes long, and goes through all the features. I also may have 'stumbled' across a way of using this on a subform. Instead of instantiating the class (clsMonthCal) in the form as per the instructions on Lebans' site, I instantiated this in a standard module (thanks to Lambert and Charlotte!). I'm posting the code to do this below: '-------------------------------------- '-- In a form or subform (I have only tried a 1st level subform) Private Sub butGetDates_Click() '-- The End Date is optional but is needed if you want a date range. '-- Pass the complete reference to the date controls so that _ the standard module can write back to them. Call OpenCalendar(Forms("frmMain")("txtStartDate"), Me.hWnd, Forms("frmMain")("txtEndDate")) End Sub '-------------------------------------- '-- In a standard module '-- Get the example .mdb from Lebans' site. _ It contains the class module (clsMonthCal) and 4 standard modules. _ Instructions are on the page for this Calendar. Private mc As clsMonthCal Public Sub OpenCalendar(txtStartDateOnForm As TextBox, lnghwnd As Long, Optional txtEndDateOnForm As TextBox) Dim blnRet As Boolean Dim dteStart As Date Dim dteEnd As Date '-- Create an instance of our Class Set mc = New clsMonthCal '-- Set the hWndForm Property mc.hWndForm = lnghwnd '-- Date fields are typically empty to start with dteStart = Nz(txtStartDateOnForm, 0) dteEnd = 0 '-- Run the calendar. The calendar is modal during this line blnRet = ShowMonthCalendar(mc, dteStart, dteEnd) If blnRet = True Then txtStartDateOnForm = dteStart If Not txtEndDateOnForm Is Nothing Then txtEndDateOnForm = dteEnd End If Else '-- Add any message here if you want to _ inform the user that no date was selected End If End Sub '----------------------------- Perhaps someone will find this to be helpful! Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Mon Jun 23 17:10:42 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Mon, 23 Jun 2008 17:10:42 -0500 Subject: [AccessD] Lebans' Calendar Screen In-Reply-To: <001501c8d574$fc8bc480$8abea8c0@XPS> Message-ID: Ummmm, ya. LOL ;) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Monday, June 23, 2008 4:06 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Lebans' Calendar Screen Drew, <> The original reason given for this was to conserve resources when running. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Monday, June 23, 2008 4:13 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Lebans' Calendar Screen I was working on a newer version of the 'minicalendar' form I had built years ago. The new one has a lot of bells and whistles, and one of the features I wanted to put into it was to be able to set it as a subform. The problem I ran into (other then lack of time to work on it), is that one of the 'new' features was that the form was shaped. Had some 'animation' with it too (sliding menus for different functions). That is when I discovered how goofy Access forms are. Windows, in Windows, are very simple creatures. On a typical window, each control is another window, usually of a specific class. There are API calls to deal with special windows, and APIs to deal with generic windows. For example, if you want to read the text of a textbox on a window, you just find it's API, and the text is the 'window text' property, where as the same property for a normal window would be it's caption. You can also programmatically run through the contents of a listbox or combobox this way. (I used that one time in an application where I had to take the contents of a listbox with thousands of entries, and put them in a text file. The Listbox was running in a window of a out of the box application, and I had no programming interface to read it, but thanks to how windows work, I was able to use standard window API's to programmatically read the contents of the listbox). Anywho, back to Access forms. In an Access form, the controls on the form aren't actually windows, instead, everything is actually an 'image' and only the current control is a separate window...which is really crazy, because as you move focus from control to control, Access is literally changing that window and turning the previous control to an image. Go figure. So since that new MiniCalendar was trying to modify itself as a window, and it no longer had true window properties, it wouldn't work as a subform. Ok, did I just type all this out cause I'm bored today? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, June 23, 2008 9:04 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Lebans' Calendar Screen Hello to Everyone! Last week I learned how to use Stephen Lebans' date selection calendar. This is not an ActiveX control, but uses API calls. If you haven't looked at this calendar you should. It's quite versatile and is user-configurable. For my customers' use I often record short tutorial videos. If you'd like to view the video I made for this Calendar, you can go to http://www.promationsystems.com/demo.htm. The link is at the bottom of the page. The video is in WMV format, is about 11 minutes long, and goes through all the features. I also may have 'stumbled' across a way of using this on a subform. Instead of instantiating the class (clsMonthCal) in the form as per the instructions on Lebans' site, I instantiated this in a standard module (thanks to Lambert and Charlotte!). I'm posting the code to do this below: '-------------------------------------- '-- In a form or subform (I have only tried a 1st level subform) Private Sub butGetDates_Click() '-- The End Date is optional but is needed if you want a date range. '-- Pass the complete reference to the date controls so that _ the standard module can write back to them. Call OpenCalendar(Forms("frmMain")("txtStartDate"), Me.hWnd, Forms("frmMain")("txtEndDate")) End Sub '-------------------------------------- '-- In a standard module '-- Get the example .mdb from Lebans' site. _ It contains the class module (clsMonthCal) and 4 standard modules. _ Instructions are on the page for this Calendar. Private mc As clsMonthCal Public Sub OpenCalendar(txtStartDateOnForm As TextBox, lnghwnd As Long, Optional txtEndDateOnForm As TextBox) Dim blnRet As Boolean Dim dteStart As Date Dim dteEnd As Date '-- Create an instance of our Class Set mc = New clsMonthCal '-- Set the hWndForm Property mc.hWndForm = lnghwnd '-- Date fields are typically empty to start with dteStart = Nz(txtStartDateOnForm, 0) dteEnd = 0 '-- Run the calendar. The calendar is modal during this line blnRet = ShowMonthCalendar(mc, dteStart, dteEnd) If blnRet = True Then txtStartDateOnForm = dteStart If Not txtEndDateOnForm Is Nothing Then txtEndDateOnForm = dteEnd End If Else '-- Add any message here if you want to _ inform the user that no date was selected End If End Sub '----------------------------- Perhaps someone will find this to be helpful! Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From iggy at nanaimo.ark.com Tue Jun 24 08:08:22 2008 From: iggy at nanaimo.ark.com (Tony Septav) Date: Tue, 24 Jun 2008 06:08:22 -0700 Subject: [AccessD] Form BeforeUpdate In-Reply-To: References: <485E478E.9000207@nanaimo.ark.com> Message-ID: <4860F1C6.2060208@nanaimo.ark.com> Hey Charlotte Thank you. But I wasn't trying to cancel the close the form per se. It was about the BeforeUpdate I will try to keep this short, maybe I am doing something wrong but.... If I simply have a bound form with 1 field "Product" and a button with Msgbox 1 DoCmd.Close And on the BeforeUpdate for the form Msgbox 2 DoCmd.CancelEvent And I change the contents of the field. Then click the button. Msgbox 1 fires first (and close) and then MsgBox 2 fires (and cancelevent) next and of course the form closes, which is not what you want to happen, you want to show the user the validation tests failed and return them to the record in the form. If remove the BeforeUpDate for the form and put it in the BeforeUpdate in the Product field Msgbox 2 DoCmd.CancelEvent And I change the contents of the field. Then click the button. Msgbox 2 fires first and the DoCmd.CancelEvent fires and I never get the MsgBox 1 and the close. This is what you would expect, but I didn't want to put BeforeUpdates on all my fields in a form, rather one global check. I know this logic, form vs control BeforeUpdate probably is due to the difference between a form versus a controls actions. So by using a subform I was able to run my validations using the subform BeforeUpdate and a close button on the main form. Charlotte Foust wrote: >I don't believe you can cancel the form's close event. You have to use >the Unload event instead if you want to cancel. However, a lot depends >on how your close button behaves. If it just calls close, then a >CancelEvent is not going to change that. If it calls Form_Unload and >the Unload event calls DoCmd.Close, then the CancelEvent should work, I >think. > >Charlotte Foust > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav >Sent: Sunday, 22 June 2008 5:38 a.m. >To: Access Developers discussion and problem solving >Subject: [AccessD] Form BeforeUpdate > >Hey All >I am trying to use the BeforeUpdate on a bound continuous form. The code >works and checks the data in the current record for validation and if an >error is found it pops up a message and fires the docmd.cancelevent (or >cancel = true). >Everything works fine, except when I click on the add, delete, or close >buttons (mine) in the form's footer, then the code works fine and the >message pops up, but the docmd.cancelevent doesn't fire. Is this a bug, >or am I missing something. >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > > From ssharkins at gmail.com Tue Jun 24 08:23:40 2008 From: ssharkins at gmail.com (Susan Harkins) Date: Tue, 24 Jun 2008 09:23:40 -0400 Subject: [AccessD] Access 2007 tab question Message-ID: <000701c8d5fd$87917c40$2f8601c7@SusanOne> In Access 2007 Help, I've seen references to a Review tab. However, when I try to find that tab to display it (using the Customize tools), it isn't listed. In addition, when searching in Help to find information on it, nothing shows up. Is there a Review tab? If so, how do I display it? Susan H. From markamatte at hotmail.com Tue Jun 24 09:47:50 2008 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 24 Jun 2008 14:47:50 +0000 Subject: [AccessD] Form BeforeUpdate In-Reply-To: <4860F1C6.2060208@nanaimo.ark.com> References: <485E478E.9000207@nanaimo.ark.com> <4860F1C6.2060208@nanaimo.ark.com> Message-ID: I'm not sure the exact question here...but one point I see...when you click your button on the main form...your BEFORE UPDATE on the subform does not fire because you did't get to that point...you'r subform lost focus. Could you use subform.lost focus event for your validation? Mark A. Matte > Date: Tue, 24 Jun 2008 06:08:22 -0700 > From: iggy at nanaimo.ark.com > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Form BeforeUpdate > > Hey Charlotte > Thank you. > But I wasn't trying to cancel the close the form per se. It was about > the BeforeUpdate > I will try to keep this short, maybe I am doing something wrong but.... > If I simply have a bound form with 1 field "Product" and a > button with > Msgbox 1 > DoCmd.Close > And on the BeforeUpdate for the form > Msgbox 2 > DoCmd.CancelEvent > And I change the contents of the field. Then click the button. > Msgbox 1 fires first (and close) and then MsgBox 2 fires (and > cancelevent) next and of course the form closes, which is not what you > want to happen, you want to show the user the validation tests failed > and return them to the record in the form. > If remove the BeforeUpDate for the form and put it in the BeforeUpdate > in the Product field > Msgbox 2 > DoCmd.CancelEvent > And I change the contents of the field. Then click the button. > Msgbox 2 fires first and the DoCmd.CancelEvent fires and I never get > the MsgBox 1 and the close. This is what you would expect, but I didn't > want to put BeforeUpdates on all my fields in a form, rather one global > check. > I know this logic, form vs control BeforeUpdate probably is due to the > difference between a form versus a controls actions. > So by using a subform I was able to run my validations using the subform > BeforeUpdate and a close button on the main form. > > > Charlotte Foust wrote: > >>I don't believe you can cancel the form's close event. You have to use >>the Unload event instead if you want to cancel. However, a lot depends >>on how your close button behaves. If it just calls close, then a >>CancelEvent is not going to change that. If it calls Form_Unload and >>the Unload event calls DoCmd.Close, then the CancelEvent should work, I >>think. >> >>Charlotte Foust >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav >>Sent: Sunday, 22 June 2008 5:38 a.m. >>To: Access Developers discussion and problem solving >>Subject: [AccessD] Form BeforeUpdate >> >>Hey All >>I am trying to use the BeforeUpdate on a bound continuous form. The code >>works and checks the data in the current record for validation and if an >>error is found it pops up a message and fires the docmd.cancelevent (or >>cancel = true). >>Everything works fine, except when I click on the add, delete, or close >>buttons (mine) in the form's footer, then the code works fine and the >>message pops up, but the docmd.cancelevent doesn't fire. Is this a bug, >>or am I missing something. >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/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 i?m Talkathon starts 6/24/08.? For now, give amongst yourselves. http://www.imtalkathon.com?source=TXT_EML_WLH_LearnMore_GiveAmongst From jimdettman at verizon.net Tue Jun 24 09:52:05 2008 From: jimdettman at verizon.net (Jim Dettman) Date: Tue, 24 Jun 2008 10:52:05 -0400 Subject: [AccessD] Lebans' Calendar Screen In-Reply-To: References: <001501c8d574$fc8bc480$8abea8c0@XPS> Message-ID: <00f401c8d609$df1e1700$8abea8c0@XPS> Drew, Well remember that Access started out under Win 3.x, which had fixed and limited resource stacks. Microsoft said at the time that the intent was to limit the number of windows, especially with continuous forms to get around that limitation. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Monday, June 23, 2008 6:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Lebans' Calendar Screen Ummmm, ya. LOL ;) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Monday, June 23, 2008 4:06 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Lebans' Calendar Screen Drew, <> The original reason given for this was to conserve resources when running. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Monday, June 23, 2008 4:13 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Lebans' Calendar Screen I was working on a newer version of the 'minicalendar' form I had built years ago. The new one has a lot of bells and whistles, and one of the features I wanted to put into it was to be able to set it as a subform. The problem I ran into (other then lack of time to work on it), is that one of the 'new' features was that the form was shaped. Had some 'animation' with it too (sliding menus for different functions). That is when I discovered how goofy Access forms are. Windows, in Windows, are very simple creatures. On a typical window, each control is another window, usually of a specific class. There are API calls to deal with special windows, and APIs to deal with generic windows. For example, if you want to read the text of a textbox on a window, you just find it's API, and the text is the 'window text' property, where as the same property for a normal window would be it's caption. You can also programmatically run through the contents of a listbox or combobox this way. (I used that one time in an application where I had to take the contents of a listbox with thousands of entries, and put them in a text file. The Listbox was running in a window of a out of the box application, and I had no programming interface to read it, but thanks to how windows work, I was able to use standard window API's to programmatically read the contents of the listbox). Anywho, back to Access forms. In an Access form, the controls on the form aren't actually windows, instead, everything is actually an 'image' and only the current control is a separate window...which is really crazy, because as you move focus from control to control, Access is literally changing that window and turning the previous control to an image. Go figure. So since that new MiniCalendar was trying to modify itself as a window, and it no longer had true window properties, it wouldn't work as a subform. Ok, did I just type all this out cause I'm bored today? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, June 23, 2008 9:04 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Lebans' Calendar Screen Hello to Everyone! Last week I learned how to use Stephen Lebans' date selection calendar. This is not an ActiveX control, but uses API calls. If you haven't looked at this calendar you should. It's quite versatile and is user-configurable. For my customers' use I often record short tutorial videos. If you'd like to view the video I made for this Calendar, you can go to http://www.promationsystems.com/demo.htm. The link is at the bottom of the page. The video is in WMV format, is about 11 minutes long, and goes through all the features. I also may have 'stumbled' across a way of using this on a subform. Instead of instantiating the class (clsMonthCal) in the form as per the instructions on Lebans' site, I instantiated this in a standard module (thanks to Lambert and Charlotte!). I'm posting the code to do this below: '-------------------------------------- '-- In a form or subform (I have only tried a 1st level subform) Private Sub butGetDates_Click() '-- The End Date is optional but is needed if you want a date range. '-- Pass the complete reference to the date controls so that _ the standard module can write back to them. Call OpenCalendar(Forms("frmMain")("txtStartDate"), Me.hWnd, Forms("frmMain")("txtEndDate")) End Sub '-------------------------------------- '-- In a standard module '-- Get the example .mdb from Lebans' site. _ It contains the class module (clsMonthCal) and 4 standard modules. _ Instructions are on the page for this Calendar. Private mc As clsMonthCal Public Sub OpenCalendar(txtStartDateOnForm As TextBox, lnghwnd As Long, Optional txtEndDateOnForm As TextBox) Dim blnRet As Boolean Dim dteStart As Date Dim dteEnd As Date '-- Create an instance of our Class Set mc = New clsMonthCal '-- Set the hWndForm Property mc.hWndForm = lnghwnd '-- Date fields are typically empty to start with dteStart = Nz(txtStartDateOnForm, 0) dteEnd = 0 '-- Run the calendar. The calendar is modal during this line blnRet = ShowMonthCalendar(mc, dteStart, dteEnd) If blnRet = True Then txtStartDateOnForm = dteStart If Not txtEndDateOnForm Is Nothing Then txtEndDateOnForm = dteEnd End If Else '-- Add any message here if you want to _ inform the user that no date was selected End If End Sub '----------------------------- Perhaps someone will find this to be helpful! Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From iggy at nanaimo.ark.com Tue Jun 24 10:15:27 2008 From: iggy at nanaimo.ark.com (Tony Septav) Date: Tue, 24 Jun 2008 08:15:27 -0700 Subject: [AccessD] Form BeforeUpdate In-Reply-To: References: <485E478E.9000207@nanaimo.ark.com> <4860F1C6.2060208@nanaimo.ark.com> Message-ID: <48610F8F.7080000@nanaimo.ark.com> Hey Mark Maybe I have gone brain dead, and I am not explaining myself very well, I apologize. Having the Form BeforeUpdate and button on the all on one main form was causing the problem. So I created a blank main form, and placed my original form in it as a subform. Putting the Form BeforeUpdate in the subform and the button on the Main form solved the problem and I can do the validation and show the user the problem record without the DoCmd.Close firing. Mark A Matte wrote: >I'm not sure the exact question here...but one point I see...when you click your button on the main form...your BEFORE UPDATE on the subform does not fire because you did't get to that point...you'r subform lost focus. Could you use subform.lost focus event for your validation? > >Mark A. Matte > > > > >>Date: Tue, 24 Jun 2008 06:08:22 -0700 >>From: iggy at nanaimo.ark.com >>To: accessd at databaseadvisors.com >>Subject: Re: [AccessD] Form BeforeUpdate >> >>Hey Charlotte >>Thank you. >>But I wasn't trying to cancel the close the form per se. It was about >>the BeforeUpdate >>I will try to keep this short, maybe I am doing something wrong but.... >>If I simply have a bound form with 1 field "Product" and a >>button with >>Msgbox 1 >>DoCmd.Close >>And on the BeforeUpdate for the form >>Msgbox 2 >>DoCmd.CancelEvent >>And I change the contents of the field. Then click the button. >>Msgbox 1 fires first (and close) and then MsgBox 2 fires (and >>cancelevent) next and of course the form closes, which is not what you >>want to happen, you want to show the user the validation tests failed >>and return them to the record in the form. >>If remove the BeforeUpDate for the form and put it in the BeforeUpdate >>in the Product field >>Msgbox 2 >>DoCmd.CancelEvent >>And I change the contents of the field. Then click the button. >>Msgbox 2 fires first and the DoCmd.CancelEvent fires and I never get >>the MsgBox 1 and the close. This is what you would expect, but I didn't >>want to put BeforeUpdates on all my fields in a form, rather one global >>check. >>I know this logic, form vs control BeforeUpdate probably is due to the >>difference between a form versus a controls actions. >>So by using a subform I was able to run my validations using the subform >>BeforeUpdate and a close button on the main form. >> >> >>Charlotte Foust wrote: >> >> >> >>>I don't believe you can cancel the form's close event. You have to use >>>the Unload event instead if you want to cancel. However, a lot depends >>>on how your close button behaves. If it just calls close, then a >>>CancelEvent is not going to change that. If it calls Form_Unload and >>>the Unload event calls DoCmd.Close, then the CancelEvent should work, I >>>think. >>> >>>Charlotte Foust >>> >>>-----Original Message----- >>>From: accessd-bounces at databaseadvisors.com >>>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav >>>Sent: Sunday, 22 June 2008 5:38 a.m. >>>To: Access Developers discussion and problem solving >>>Subject: [AccessD] Form BeforeUpdate >>> >>>Hey All >>>I am trying to use the BeforeUpdate on a bound continuous form. The code >>>works and checks the data in the current record for validation and if an >>>error is found it pops up a message and fires the docmd.cancelevent (or >>>cancel = true). >>>Everything works fine, except when I click on the add, delete, or close >>>buttons (mine) in the form's footer, then the code works fine and the >>>message pops up, but the docmd.cancelevent doesn't fire. Is this a bug, >>>or am I missing something. >>>-- >>>AccessD mailing list >>>AccessD at databaseadvisors.com >>>http://databaseadvisors.com/mailman/listinfo/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 i?m Talkathon starts 6/24/08. For now, give amongst yourselves. >http://www.imtalkathon.com?source=TXT_EML_WLH_LearnMore_GiveAmongst > > From cfoust at infostatsystems.com Tue Jun 24 10:14:34 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 24 Jun 2008 08:14:34 -0700 Subject: [AccessD] Form BeforeUpdate In-Reply-To: <4860F1C6.2060208@nanaimo.ark.com> References: <485E478E.9000207@nanaimo.ark.com> <4860F1C6.2060208@nanaimo.ark.com> Message-ID: You can get totally entangled in the order of events within a form, let along between a parent and child form. And some events don't happen when an object is used as a subform but they do when it's used as a form. I must have missed the form/subform combination in the thread. Sorry. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav Sent: Tuesday, 24 June 2008 6:08 a.m. To: Access Developers discussion and problem solving Subject: Re: [AccessD] Form BeforeUpdate Hey Charlotte Thank you. But I wasn't trying to cancel the close the form per se. It was about the BeforeUpdate I will try to keep this short, maybe I am doing something wrong but.... If I simply have a bound form with 1 field "Product" and a button with Msgbox 1 DoCmd.Close And on the BeforeUpdate for the form Msgbox 2 DoCmd.CancelEvent And I change the contents of the field. Then click the button. Msgbox 1 fires first (and close) and then MsgBox 2 fires (and cancelevent) next and of course the form closes, which is not what you want to happen, you want to show the user the validation tests failed and return them to the record in the form. If remove the BeforeUpDate for the form and put it in the BeforeUpdate in the Product field Msgbox 2 DoCmd.CancelEvent And I change the contents of the field. Then click the button. Msgbox 2 fires first and the DoCmd.CancelEvent fires and I never get the MsgBox 1 and the close. This is what you would expect, but I didn't want to put BeforeUpdates on all my fields in a form, rather one global check. I know this logic, form vs control BeforeUpdate probably is due to the difference between a form versus a controls actions. So by using a subform I was able to run my validations using the subform BeforeUpdate and a close button on the main form. Charlotte Foust wrote: >I don't believe you can cancel the form's close event. You have to use >the Unload event instead if you want to cancel. However, a lot depends >on how your close button behaves. If it just calls close, then a >CancelEvent is not going to change that. If it calls Form_Unload and >the Unload event calls DoCmd.Close, then the CancelEvent should work, I >think. > >Charlotte Foust > >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav >Sent: Sunday, 22 June 2008 5:38 a.m. >To: Access Developers discussion and problem solving >Subject: [AccessD] Form BeforeUpdate > >Hey All >I am trying to use the BeforeUpdate on a bound continuous form. The >code works and checks the data in the current record for validation and >if an error is found it pops up a message and fires the >docmd.cancelevent (or cancel = true). >Everything works fine, except when I click on the add, delete, or close >buttons (mine) in the form's footer, then the code works fine and the >message pops up, but the docmd.cancelevent doesn't fire. Is this a bug, >or am I missing something. >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >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 Tue Jun 24 10:25:27 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 24 Jun 2008 10:25:27 -0500 Subject: [AccessD] Form BeforeUpdate In-Reply-To: Message-ID: But you couldn't run Access 97 in Windows 3.1, right? Reminds me of the volkswagon bug distributor design. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Tuesday, June 24, 2008 9:48 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Form BeforeUpdate I'm not sure the exact question here...but one point I see...when you click your button on the main form...your BEFORE UPDATE on the subform does not fire because you did't get to that point...you'r subform lost focus. Could you use subform.lost focus event for your validation? Mark A. Matte > Date: Tue, 24 Jun 2008 06:08:22 -0700 > From: iggy at nanaimo.ark.com > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Form BeforeUpdate > > Hey Charlotte > Thank you. > But I wasn't trying to cancel the close the form per se. It was about > the BeforeUpdate > I will try to keep this short, maybe I am doing something wrong but.... > If I simply have a bound form with 1 field "Product" and a > button with > Msgbox 1 > DoCmd.Close > And on the BeforeUpdate for the form > Msgbox 2 > DoCmd.CancelEvent > And I change the contents of the field. Then click the button. > Msgbox 1 fires first (and close) and then MsgBox 2 fires (and > cancelevent) next and of course the form closes, which is not what you > want to happen, you want to show the user the validation tests failed > and return them to the record in the form. > If remove the BeforeUpDate for the form and put it in the BeforeUpdate > in the Product field > Msgbox 2 > DoCmd.CancelEvent > And I change the contents of the field. Then click the button. > Msgbox 2 fires first and the DoCmd.CancelEvent fires and I never get > the MsgBox 1 and the close. This is what you would expect, but I didn't > want to put BeforeUpdates on all my fields in a form, rather one global > check. > I know this logic, form vs control BeforeUpdate probably is due to the > difference between a form versus a controls actions. > So by using a subform I was able to run my validations using the subform > BeforeUpdate and a close button on the main form. > > > Charlotte Foust wrote: > >>I don't believe you can cancel the form's close event. You have to use >>the Unload event instead if you want to cancel. However, a lot depends >>on how your close button behaves. If it just calls close, then a >>CancelEvent is not going to change that. If it calls Form_Unload and >>the Unload event calls DoCmd.Close, then the CancelEvent should work, I >>think. >> >>Charlotte Foust >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav >>Sent: Sunday, 22 June 2008 5:38 a.m. >>To: Access Developers discussion and problem solving >>Subject: [AccessD] Form BeforeUpdate >> >>Hey All >>I am trying to use the BeforeUpdate on a bound continuous form. The code >>works and checks the data in the current record for validation and if an >>error is found it pops up a message and fires the docmd.cancelevent (or >>cancel = true). >>Everything works fine, except when I click on the add, delete, or close >>buttons (mine) in the form's footer, then the code works fine and the >>message pops up, but the docmd.cancelevent doesn't fire. Is this a bug, >>or am I missing something. >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/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 i'm Talkathon starts 6/24/08.? For now, give amongst yourselves. http://www.imtalkathon.com?source=TXT_EML_WLH_LearnMore_GiveAmongst -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From cfoust at infostatsystems.com Tue Jun 24 11:01:15 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 24 Jun 2008 09:01:15 -0700 Subject: [AccessD] Form BeforeUpdate In-Reply-To: References: Message-ID: Um, is this the right thread, Drew? Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Tuesday, 24 June 2008 8:25 a.m. To: Access Developers discussion and problem solving Subject: Re: [AccessD] Form BeforeUpdate But you couldn't run Access 97 in Windows 3.1, right? Reminds me of the volkswagon bug distributor design. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Tuesday, June 24, 2008 9:48 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Form BeforeUpdate I'm not sure the exact question here...but one point I see...when you click your button on the main form...your BEFORE UPDATE on the subform does not fire because you did't get to that point...you'r subform lost focus. Could you use subform.lost focus event for your validation? Mark A. Matte > Date: Tue, 24 Jun 2008 06:08:22 -0700 > From: iggy at nanaimo.ark.com > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Form BeforeUpdate > > Hey Charlotte > Thank you. > But I wasn't trying to cancel the close the form per se. It was about > the BeforeUpdate I will try to keep this short, maybe I am doing > something wrong but.... > If I simply have a bound form with 1 field "Product" and a button with > Msgbox 1 DoCmd.Close And on the BeforeUpdate for the form Msgbox 2 > DoCmd.CancelEvent And I change the contents of the field. Then click > the button. > Msgbox 1 fires first (and close) and then MsgBox 2 fires (and > cancelevent) next and of course the form closes, which is not what you > want to happen, you want to show the user the validation tests failed > and return them to the record in the form. > If remove the BeforeUpDate for the form and put it in the BeforeUpdate > in the Product field Msgbox 2 DoCmd.CancelEvent And I change the > contents of the field. Then click the button. > Msgbox 2 fires first and the DoCmd.CancelEvent fires and I never get > the MsgBox 1 and the close. This is what you would expect, but I > didn't want to put BeforeUpdates on all my fields in a form, rather > one global check. > I know this logic, form vs control BeforeUpdate probably is due to the > difference between a form versus a controls actions. > So by using a subform I was able to run my validations using the > subform BeforeUpdate and a close button on the main form. > > > Charlotte Foust wrote: > >>I don't believe you can cancel the form's close event. You have to use >>the Unload event instead if you want to cancel. However, a lot depends >>on how your close button behaves. If it just calls close, then a >>CancelEvent is not going to change that. If it calls Form_Unload and >>the Unload event calls DoCmd.Close, then the CancelEvent should work, >>I think. >> >>Charlotte Foust >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav >>Sent: Sunday, 22 June 2008 5:38 a.m. >>To: Access Developers discussion and problem solving >>Subject: [AccessD] Form BeforeUpdate >> >>Hey All >>I am trying to use the BeforeUpdate on a bound continuous form. The >>code works and checks the data in the current record for validation >>and if an error is found it pops up a message and fires the >>docmd.cancelevent (or cancel = true). >>Everything works fine, except when I click on the add, delete, or >>close buttons (mine) in the form's footer, then the code works fine >>and the message pops up, but the docmd.cancelevent doesn't fire. Is >>this a bug, or am I missing something. >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/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 i'm Talkathon starts 6/24/08.? For now, give amongst yourselves. http://www.imtalkathon.com?source=TXT_EML_WLH_LearnMore_GiveAmongst -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From DWUTKA at Marlow.com Tue Jun 24 11:42:56 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 24 Jun 2008 11:42:56 -0500 Subject: [AccessD] Lebans' Calendar Screen In-Reply-To: <00f401c8d609$df1e1700$8abea8c0@XPS> Message-ID: But you couldn't run Access 97 in Windows 3.1, right? Reminds me of the volkswagon bug distributor design. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Tuesday, June 24, 2008 9:52 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Lebans' Calendar Screen Drew, Well remember that Access started out under Win 3.x, which had fixed and limited resource stacks. Microsoft said at the time that the intent was to limit the number of windows, especially with continuous forms to get around that limitation. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Monday, June 23, 2008 6:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Lebans' Calendar Screen Ummmm, ya. LOL ;) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Monday, June 23, 2008 4:06 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Lebans' Calendar Screen Drew, <> The original reason given for this was to conserve resources when running. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Monday, June 23, 2008 4:13 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Lebans' Calendar Screen I was working on a newer version of the 'minicalendar' form I had built years ago. The new one has a lot of bells and whistles, and one of the features I wanted to put into it was to be able to set it as a subform. The problem I ran into (other then lack of time to work on it), is that one of the 'new' features was that the form was shaped. Had some 'animation' with it too (sliding menus for different functions). That is when I discovered how goofy Access forms are. Windows, in Windows, are very simple creatures. On a typical window, each control is another window, usually of a specific class. There are API calls to deal with special windows, and APIs to deal with generic windows. For example, if you want to read the text of a textbox on a window, you just find it's API, and the text is the 'window text' property, where as the same property for a normal window would be it's caption. You can also programmatically run through the contents of a listbox or combobox this way. (I used that one time in an application where I had to take the contents of a listbox with thousands of entries, and put them in a text file. The Listbox was running in a window of a out of the box application, and I had no programming interface to read it, but thanks to how windows work, I was able to use standard window API's to programmatically read the contents of the listbox). Anywho, back to Access forms. In an Access form, the controls on the form aren't actually windows, instead, everything is actually an 'image' and only the current control is a separate window...which is really crazy, because as you move focus from control to control, Access is literally changing that window and turning the previous control to an image. Go figure. So since that new MiniCalendar was trying to modify itself as a window, and it no longer had true window properties, it wouldn't work as a subform. Ok, did I just type all this out cause I'm bored today? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, June 23, 2008 9:04 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Lebans' Calendar Screen Hello to Everyone! Last week I learned how to use Stephen Lebans' date selection calendar. This is not an ActiveX control, but uses API calls. If you haven't looked at this calendar you should. It's quite versatile and is user-configurable. For my customers' use I often record short tutorial videos. If you'd like to view the video I made for this Calendar, you can go to http://www.promationsystems.com/demo.htm. The link is at the bottom of the page. The video is in WMV format, is about 11 minutes long, and goes through all the features. I also may have 'stumbled' across a way of using this on a subform. Instead of instantiating the class (clsMonthCal) in the form as per the instructions on Lebans' site, I instantiated this in a standard module (thanks to Lambert and Charlotte!). I'm posting the code to do this below: '-------------------------------------- '-- In a form or subform (I have only tried a 1st level subform) Private Sub butGetDates_Click() '-- The End Date is optional but is needed if you want a date range. '-- Pass the complete reference to the date controls so that _ the standard module can write back to them. Call OpenCalendar(Forms("frmMain")("txtStartDate"), Me.hWnd, Forms("frmMain")("txtEndDate")) End Sub '-------------------------------------- '-- In a standard module '-- Get the example .mdb from Lebans' site. _ It contains the class module (clsMonthCal) and 4 standard modules. _ Instructions are on the page for this Calendar. Private mc As clsMonthCal Public Sub OpenCalendar(txtStartDateOnForm As TextBox, lnghwnd As Long, Optional txtEndDateOnForm As TextBox) Dim blnRet As Boolean Dim dteStart As Date Dim dteEnd As Date '-- Create an instance of our Class Set mc = New clsMonthCal '-- Set the hWndForm Property mc.hWndForm = lnghwnd '-- Date fields are typically empty to start with dteStart = Nz(txtStartDateOnForm, 0) dteEnd = 0 '-- Run the calendar. The calendar is modal during this line blnRet = ShowMonthCalendar(mc, dteStart, dteEnd) If blnRet = True Then txtStartDateOnForm = dteStart If Not txtEndDateOnForm Is Nothing Then txtEndDateOnForm = dteEnd End If Else '-- Add any message here if you want to _ inform the user that no date was selected End If End Sub '----------------------------- Perhaps someone will find this to be helpful! Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From DWUTKA at Marlow.com Tue Jun 24 11:43:18 2008 From: DWUTKA at Marlow.com (Drew Wutka) Date: Tue, 24 Jun 2008 11:43:18 -0500 Subject: [AccessD] Form BeforeUpdate In-Reply-To: Message-ID: Nope. Not sure what happened there...brain fart? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust Sent: Tuesday, June 24, 2008 11:01 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Form BeforeUpdate Um, is this the right thread, Drew? Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Tuesday, 24 June 2008 8:25 a.m. To: Access Developers discussion and problem solving Subject: Re: [AccessD] Form BeforeUpdate But you couldn't run Access 97 in Windows 3.1, right? Reminds me of the volkswagon bug distributor design. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte Sent: Tuesday, June 24, 2008 9:48 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Form BeforeUpdate I'm not sure the exact question here...but one point I see...when you click your button on the main form...your BEFORE UPDATE on the subform does not fire because you did't get to that point...you'r subform lost focus. Could you use subform.lost focus event for your validation? Mark A. Matte > Date: Tue, 24 Jun 2008 06:08:22 -0700 > From: iggy at nanaimo.ark.com > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Form BeforeUpdate > > Hey Charlotte > Thank you. > But I wasn't trying to cancel the close the form per se. It was about > the BeforeUpdate I will try to keep this short, maybe I am doing > something wrong but.... > If I simply have a bound form with 1 field "Product" and a button with > Msgbox 1 DoCmd.Close And on the BeforeUpdate for the form Msgbox 2 > DoCmd.CancelEvent And I change the contents of the field. Then click > the button. > Msgbox 1 fires first (and close) and then MsgBox 2 fires (and > cancelevent) next and of course the form closes, which is not what you > want to happen, you want to show the user the validation tests failed > and return them to the record in the form. > If remove the BeforeUpDate for the form and put it in the BeforeUpdate > in the Product field Msgbox 2 DoCmd.CancelEvent And I change the > contents of the field. Then click the button. > Msgbox 2 fires first and the DoCmd.CancelEvent fires and I never get > the MsgBox 1 and the close. This is what you would expect, but I > didn't want to put BeforeUpdates on all my fields in a form, rather > one global check. > I know this logic, form vs control BeforeUpdate probably is due to the > difference between a form versus a controls actions. > So by using a subform I was able to run my validations using the > subform BeforeUpdate and a close button on the main form. > > > Charlotte Foust wrote: > >>I don't believe you can cancel the form's close event. You have to use >>the Unload event instead if you want to cancel. However, a lot depends >>on how your close button behaves. If it just calls close, then a >>CancelEvent is not going to change that. If it calls Form_Unload and >>the Unload event calls DoCmd.Close, then the CancelEvent should work, >>I think. >> >>Charlotte Foust >> >>-----Original Message----- >>From: accessd-bounces at databaseadvisors.com >>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav >>Sent: Sunday, 22 June 2008 5:38 a.m. >>To: Access Developers discussion and problem solving >>Subject: [AccessD] Form BeforeUpdate >> >>Hey All >>I am trying to use the BeforeUpdate on a bound continuous form. The >>code works and checks the data in the current record for validation >>and if an error is found it pops up a message and fires the >>docmd.cancelevent (or cancel = true). >>Everything works fine, except when I click on the add, delete, or >>close buttons (mine) in the form's footer, then the code works fine >>and the message pops up, but the docmd.cancelevent doesn't fire. Is >>this a bug, or am I missing something. >>-- >>AccessD mailing list >>AccessD at databaseadvisors.com >>http://databaseadvisors.com/mailman/listinfo/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 i'm Talkathon starts 6/24/08.? For now, give amongst yourselves. http://www.imtalkathon.com?source=TXT_EML_WLH_LearnMore_GiveAmongst -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. From markamatte at hotmail.com Tue Jun 24 12:04:49 2008 From: markamatte at hotmail.com (Mark A Matte) Date: Tue, 24 Jun 2008 17:04:49 +0000 Subject: [AccessD] Form BeforeUpdate In-Reply-To: References: Message-ID: Glad to know...for a minute I was thinking I must have typed something really stupid to get that kind of response from Drew...then I was looking for a correlation between VW Bug distributor and a form losing focus??? Did we actually answer the original question somewhere???? Mark A. Matte > Date: Tue, 24 Jun 2008 11:43:18 -0500 > From: DWUTKA at marlow.com > To: accessd at databaseadvisors.com > Subject: Re: [AccessD] Form BeforeUpdate > > Nope. Not sure what happened there...brain fart? > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Charlotte Foust > Sent: Tuesday, June 24, 2008 11:01 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Form BeforeUpdate > > Um, is this the right thread, Drew? > > Charlotte > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka > Sent: Tuesday, 24 June 2008 8:25 a.m. > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Form BeforeUpdate > > But you couldn't run Access 97 in Windows 3.1, right? Reminds me of the volkswagon bug distributor design. > > Drew > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark A Matte > Sent: Tuesday, June 24, 2008 9:48 AM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Form BeforeUpdate > > > I'm not sure the exact question here...but one point I see...when you click your button on the main form...your BEFORE UPDATE on the subform does not fire because you did't get to that point...you'r subform lost focus. Could you use subform.lost focus event for your validation? > > Mark A. Matte > > >> Date: Tue, 24 Jun 2008 06:08:22 -0700 >> From: iggy at nanaimo.ark.com >> To: accessd at databaseadvisors.com >> Subject: Re: [AccessD] Form BeforeUpdate >> >> Hey Charlotte >> Thank you. >> But I wasn't trying to cancel the close the form per se. It was about >> the BeforeUpdate I will try to keep this short, maybe I am doing >> something wrong but.... >> If I simply have a bound form with 1 field "Product" and a button with >> Msgbox 1 DoCmd.Close And on the BeforeUpdate for the form Msgbox 2 >> DoCmd.CancelEvent And I change the contents of the field. Then click >> the button. >> Msgbox 1 fires first (and close) and then MsgBox 2 fires (and >> cancelevent) next and of course the form closes, which is not what you >> want to happen, you want to show the user the validation tests failed >> and return them to the record in the form. >> If remove the BeforeUpDate for the form and put it in the BeforeUpdate >> in the Product field Msgbox 2 DoCmd.CancelEvent And I change the >> contents of the field. Then click the button. >> Msgbox 2 fires first and the DoCmd.CancelEvent fires and I never get >> the MsgBox 1 and the close. This is what you would expect, but I >> didn't want to put BeforeUpdates on all my fields in a form, rather >> one global check. >> I know this logic, form vs control BeforeUpdate probably is due to the >> difference between a form versus a controls actions. >> So by using a subform I was able to run my validations using the >> subform BeforeUpdate and a close button on the main form. >> >> >> Charlotte Foust wrote: >> >>>I don't believe you can cancel the form's close event. You have to use >>>the Unload event instead if you want to cancel. However, a lot depends >>>on how your close button behaves. If it just calls close, then a >>>CancelEvent is not going to change that. If it calls Form_Unload and >>>the Unload event calls DoCmd.Close, then the CancelEvent should work, >>>I think. >>> >>>Charlotte Foust >>> >>>-----Original Message----- >>>From: accessd-bounces at databaseadvisors.com >>>[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tony Septav >>>Sent: Sunday, 22 June 2008 5:38 a.m. >>>To: Access Developers discussion and problem solving >>>Subject: [AccessD] Form BeforeUpdate >>> >>>Hey All >>>I am trying to use the BeforeUpdate on a bound continuous form. The >>>code works and checks the data in the current record for validation >>>and if an error is found it pops up a message and fires the >>>docmd.cancelevent (or cancel = true). >>>Everything works fine, except when I click on the add, delete, or >>>close buttons (mine) in the form's footer, then the code works fine >>>and the message pops up, but the docmd.cancelevent doesn't fire. Is >>>this a bug, or am I missing something. >>>-- >>>AccessD mailing list >>>AccessD at databaseadvisors.com >>>http://databaseadvisors.com/mailman/listinfo/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 i'm Talkathon starts 6/24/08. For now, give amongst yourselves. > http://www.imtalkathon.com?source=TXT_EML_WLH_LearnMore_GiveAmongst > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/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 contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ The i?m Talkathon starts 6/24/08.? For now, give amongst yourselves. http://www.imtalkathon.com?source=TXT_EML_WLH_LearnMore_GiveAmongst From jimdettman at verizon.net Tue Jun 24 12:32:48 2008 From: jimdettman at verizon.net (Jim Dettman) Date: Tue, 24 Jun 2008 13:32:48 -0400 Subject: [AccessD] Lebans' Calendar Screen In-Reply-To: References: <00f401c8d609$df1e1700$8abea8c0@XPS> Message-ID: <000b01c8d620$52459ad0$8abea8c0@XPS> Drew, No, but you don't fundamentally change a product if it's working. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Tuesday, June 24, 2008 12:43 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Lebans' Calendar Screen But you couldn't run Access 97 in Windows 3.1, right? Reminds me of the volkswagon bug distributor design. Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Tuesday, June 24, 2008 9:52 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Lebans' Calendar Screen Drew, Well remember that Access started out under Win 3.x, which had fixed and limited resource stacks. Microsoft said at the time that the intent was to limit the number of windows, especially with continuous forms to get around that limitation. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Monday, June 23, 2008 6:11 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Lebans' Calendar Screen Ummmm, ya. LOL ;) Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Jim Dettman Sent: Monday, June 23, 2008 4:06 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Lebans' Calendar Screen Drew, <> The original reason given for this was to conserve resources when running. Jim. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Monday, June 23, 2008 4:13 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Lebans' Calendar Screen I was working on a newer version of the 'minicalendar' form I had built years ago. The new one has a lot of bells and whistles, and one of the features I wanted to put into it was to be able to set it as a subform. The problem I ran into (other then lack of time to work on it), is that one of the 'new' features was that the form was shaped. Had some 'animation' with it too (sliding menus for different functions). That is when I discovered how goofy Access forms are. Windows, in Windows, are very simple creatures. On a typical window, each control is another window, usually of a specific class. There are API calls to deal with special windows, and APIs to deal with generic windows. For example, if you want to read the text of a textbox on a window, you just find it's API, and the text is the 'window text' property, where as the same property for a normal window would be it's caption. You can also programmatically run through the contents of a listbox or combobox this way. (I used that one time in an application where I had to take the contents of a listbox with thousands of entries, and put them in a text file. The Listbox was running in a window of a out of the box application, and I had no programming interface to read it, but thanks to how windows work, I was able to use standard window API's to programmatically read the contents of the listbox). Anywho, back to Access forms. In an Access form, the controls on the form aren't actually windows, instead, everything is actually an 'image' and only the current control is a separate window...which is really crazy, because as you move focus from control to control, Access is literally changing that window and turning the previous control to an image. Go figure. So since that new MiniCalendar was trying to modify itself as a window, and it no longer had true window properties, it wouldn't work as a subform. Ok, did I just type all this out cause I'm bored today? Drew -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Monday, June 23, 2008 9:04 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Lebans' Calendar Screen Hello to Everyone! Last week I learned how to use Stephen Lebans' date selection calendar. This is not an ActiveX control, but uses API calls. If you haven't looked at this calendar you should. It's quite versatile and is user-configurable. For my customers' use I often record short tutorial videos. If you'd like to view the video I made for this Calendar, you can go to http://www.promationsystems.com/demo.htm. The link is at the bottom of the page. The video is in WMV format, is about 11 minutes long, and goes through all the features. I also may have 'stumbled' across a way of using this on a subform. Instead of instantiating the class (clsMonthCal) in the form as per the instructions on Lebans' site, I instantiated this in a standard module (thanks to Lambert and Charlotte!). I'm posting the code to do this below: '-------------------------------------- '-- In a form or subform (I have only tried a 1st level subform) Private Sub butGetDates_Click() '-- The End Date is optional but is needed if you want a date range. '-- Pass the complete reference to the date controls so that _ the standard module can write back to them. Call OpenCalendar(Forms("frmMain")("txtStartDate"), Me.hWnd, Forms("frmMain")("txtEndDate")) End Sub '-------------------------------------- '-- In a standard module '-- Get the example .mdb from Lebans' site. _ It contains the class module (clsMonthCal) and 4 standard modules. _ Instructions are on the page for this Calendar. Private mc As clsMonthCal Public Sub OpenCalendar(txtStartDateOnForm As TextBox, lnghwnd As Long, Optional txtEndDateOnForm As TextBox) Dim blnRet As Boolean Dim dteStart As Date Dim dteEnd As Date '-- Create an instance of our Class Set mc = New clsMonthCal '-- Set the hWndForm Property mc.hWndForm = lnghwnd '-- Date fields are typically empty to start with dteStart = Nz(txtStartDateOnForm, 0) dteEnd = 0 '-- Run the calendar. The calendar is modal during this line blnRet = ShowMonthCalendar(mc, dteStart, dteEnd) If blnRet = True Then txtStartDateOnForm = dteStart If Not txtEndDateOnForm Is Nothing Then txtEndDateOnForm = dteEnd End If Else '-- Add any message here if you want to _ inform the user that no date was selected End If End Sub '----------------------------- Perhaps someone will find this to be helpful! Dan -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com The information contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 contained in this transmission is intended only for the person or entity to which it is addressed and may contain II-VI Proprietary and/or II-VI Business Sensitive material. If you are not the intended recipient, please contact the sender immediately and destroy the material in its entirety, whether electronic or hard copy. You are notified that any review, retransmission, copying, disclosure, dissemination, or other use of, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From tinanfields at torchlake.com Tue Jun 24 13:50:58 2008 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Tue, 24 Jun 2008 14:50:58 -0400 Subject: [AccessD] How to turn off the warning messages Message-ID: <48614212.9000203@torchlake.com> Hi Group, I know we've talked about this one before, but at that time I wasn't paying attention. Now, I need to know how to do it, so, I apologize before putting the question out there to you all. I have a form with a calendar control for setting the "deposit date." Then there is a button for running a make-table query that will build a temporary table of contributions matching that "deposit date." I want it to run without warning the user about deleting the existing table, or about making a new table, or about appending the records to the new table. Once the table is created, the user will click a button to get the Word document into which the contributions information will be merged. I need to know if I can turn off those warning messages generated by the make-table query - and how to do it. Thanks very much, Tina From rusty.hammond at cpiqpc.com Tue Jun 24 13:58:13 2008 From: rusty.hammond at cpiqpc.com (rusty.hammond at cpiqpc.com) Date: Tue, 24 Jun 2008 13:58:13 -0500 Subject: [AccessD] How to turn off the warning messages Message-ID: <49A286ABF515E94A8505CD14DEB721704D001D@CPIEMAIL-EVS1.CPIQPC.NET> To turn the warnings off before running the query docmd.setwarnings false Then to turn then back on after running your query docmd.setwarnings true ie DoCmd.SetWarnings False DoCmd.OpenQuery "qryYourQuery" DoCmd.SetWarnings True HTH Rusty -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Tina Norris Fields Sent: Tuesday, June 24, 2008 1:51 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] How to turn off the warning messages Hi Group, I know we've talked about this one before, but at that time I wasn't paying attention. Now, I need to know how to do it, so, I apologize before putting the question out there to you all. I have a form with a calendar control for setting the "deposit date." Then there is a button for running a make-table query that will build a temporary table of contributions matching that "deposit date." I want it to run without warning the user about deleting the existing table, or about making a new table, or about appending the records to the new table. Once the table is created, the user will click a button to get the Word document into which the contributions information will be merged. I need to know if I can turn off those warning messages generated by the make-table query - and how to do it. Thanks very much, Tina -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com ********************************************************************** WARNING: All e-mail sent to and from this address will be received, scanned or otherwise recorded by the CPI Qualified Plan Consultants, Inc. corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ********************************************************************** From tinanfields at torchlake.com Tue Jun 24 14:25:14 2008 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Tue, 24 Jun 2008 15:25:14 -0400 Subject: [AccessD] How to turn off the warning messages In-Reply-To: <49A286ABF515E94A8505CD14DEB721704D001D@CPIEMAIL-EVS1.CPIQPC.NET> References: <49A286ABF515E94A8505CD14DEB721704D001D@CPIEMAIL-EVS1.CPIQPC.NET> Message-ID: <48614A1A.1090403@torchlake.com> Thanks Rusty - that's exactly what I needed. Tina rusty.hammond at cpiqpc.com wrote: > To turn the warnings off before running the query > docmd.setwarnings false > > Then to turn then back on after running your query > docmd.setwarnings true > > ie > > DoCmd.SetWarnings False > DoCmd.OpenQuery "qryYourQuery" > DoCmd.SetWarnings True > > HTH > > Rusty > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Tina Norris > Fields > Sent: Tuesday, June 24, 2008 1:51 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] How to turn off the warning messages > > > Hi Group, > > I know we've talked about this one before, but at that time I wasn't > paying attention. Now, I need to know how to do it, so, I apologize > before putting the question out there to you all. > > I have a form with a calendar control for setting the "deposit date." > Then there is a button for running a make-table query that will build a > temporary table of contributions matching that "deposit date." I want > it to run without warning the user about deleting the existing table, or > about making a new table, or about appending the records to the new table. > > Once the table is created, the user will click a button to get the Word > document into which the contributions information will be merged. > > I need to know if I can turn off those warning messages generated by the > make-table query - and how to do it. > > Thanks very much, > Tina > From Lambert.Heenan at AIG.com Tue Jun 24 15:56:34 2008 From: Lambert.Heenan at AIG.com (Heenan, Lambert) Date: Tue, 24 Jun 2008 16:56:34 -0400 Subject: [AccessD] How to turn off the warning messages Message-ID: <34C8A2AB1EF3564CB0D64DB6AFFDD5C21656E615@XLIVMBX35bkup.aig.com> Just to add one thing. In any routine that turns warnings off, be sure that the routine has an error handler and that the warnings are turned back on in the error handler. If you don't do that and an error does happen, then your application will merrily run on, with warnings turned off when you most probably don't want that to be the case. So for example... Sub SomeSub On Error Goto Error_SomeSub DoCmd.SetWarnings False DoCmd.OpenQuery "qryYourQuery" DoCmd.SetWarnings True Exit Sub :Error_SomeSub DoCmd.SetWarnings True ' The do whatever to handle the error ... End Sub Lambert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tina Norris Fields Sent: Tuesday, June 24, 2008 3:25 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] How to turn off the warning messages Thanks Rusty - that's exactly what I needed. Tina rusty.hammond at cpiqpc.com wrote: > To turn the warnings off before running the query docmd.setwarnings > false > > Then to turn then back on after running your query docmd.setwarnings > true > > ie > > DoCmd.SetWarnings False > DoCmd.OpenQuery "qryYourQuery" > DoCmd.SetWarnings True > > HTH > > Rusty > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Tina Norris > Fields > Sent: Tuesday, June 24, 2008 1:51 PM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] How to turn off the warning messages > > > Hi Group, > > I know we've talked about this one before, but at that time I wasn't > paying attention. Now, I need to know how to do it, so, I apologize > before putting the question out there to you all. > > I have a form with a calendar control for setting the "deposit date." > Then there is a button for running a make-table query that will build > a temporary table of contributions matching that "deposit date." I > want it to run without warning the user about deleting the existing > table, or about making a new table, or about appending the records to the new table. > > Once the table is created, the user will click a button to get the > Word document into which the contributions information will be merged. > > I need to know if I can turn off those warning messages generated by > the make-table query - and how to do it. > > Thanks very much, > Tina > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From robert at servicexp.com Tue Jun 24 16:21:01 2008 From: robert at servicexp.com (Robert) Date: Tue, 24 Jun 2008 17:21:01 -0400 Subject: [AccessD] Access 2007 tab question In-Reply-To: <000701c8d5fd$87917c40$2f8601c7@SusanOne> References: <000701c8d5fd$87917c40$2f8601c7@SusanOne> Message-ID: <001201c8d640$3618b8e0$a24a2aa0$@com> Susan, I have only been using A07 for a month or so now, but I have not seen any mention of a "Review Tab", sounds interesting though... WBR ~Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Tuesday, June 24, 2008 9:24 AM To: AccessD at databaseadvisors.com Subject: [AccessD] Access 2007 tab question In Access 2007 Help, I've seen references to a Review tab. However, when I try to find that tab to display it (using the Customize tools), it isn't listed. In addition, when searching in Help to find information on it, nothing shows up. Is there a Review tab? If so, how do I display it? Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From robert at servicexp.com Tue Jun 24 16:23:28 2008 From: robert at servicexp.com (Robert) Date: Tue, 24 Jun 2008 17:23:28 -0400 Subject: [AccessD] Filter Main Form with Subform... In-Reply-To: <000001c8d525$ded275a0$9c7760e0$@com> References: <49DFE57FB126044B8A8B934E7AEA09ED09FD7591@WPEXCH05.colesmyer.ad.cmltd.net.au> <000001c8d525$ded275a0$9c7760e0$@com> Message-ID: <001301c8d640$8c565be0$a50313a0$@com> Nobody...? ~Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Robert Sent: Monday, June 23, 2008 7:40 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Filter Main Form with Subform... I'm trying to filter the main form (and a 2nd subform) from a selection in the 1st subform like this.. (Both subforms are not linked whatsoever they just sit on the main form) Access 2007 (but does the same thing in 2003) Me.parent.form.filter = "[Customer ID] = " & CID Me.parent.form.filterOn = True Me.parent.ctrsubform.form.filter = "[lEKey] = " & m_lEKey Me.parent.ctrsubform.form.filterOn = True The problem is when the code hits the first Me.parent.form.filter = "[Customer ID] = " & CID, the 1st subform requery, and the record position the user selected is lost (record at top of list is highlighted). (But the main form (and 2nd subform are filtered correctly) I have tried to store the Bookmark and re-apply but for some reason I can't grab a valid Bookmark from the subform. So I ended up using the subform PK to perform a search and then move to the record that was selected in the subform. The problem with this approach is it takes a bit of time to complete the cycle and re-look up the selected record. Is there a way to keep the 1st subfrom from requiring? PS: I'm terrible at SQL.... TIA ~Robert -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From tinanfields at torchlake.com Tue Jun 24 16:51:18 2008 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Tue, 24 Jun 2008 17:51:18 -0400 Subject: [AccessD] How to turn off the warning messages In-Reply-To: <34C8A2AB1EF3564CB0D64DB6AFFDD5C21656E615@XLIVMBX35bkup.aig.com> References: <34C8A2AB1EF3564CB0D64DB6AFFDD5C21656E615@XLIVMBX35bkup.aig.com> Message-ID: <48616C56.3030107@torchlake.com> Lambert, Thanks for that very good additional point. Yup, I'll do that and make it a habit. Tian Heenan, Lambert wrote: > Just to add one thing. In any routine that turns warnings off, be sure that > the routine has an error handler and that the warnings are turned back on in > the error handler. If you don't do that and an error does happen, then your > application will merrily run on, with warnings turned off when you most > probably don't want that to be the case. > > So for example... > > Sub SomeSub > > On Error Goto Error_SomeSub > > DoCmd.SetWarnings False > DoCmd.OpenQuery "qryYourQuery" > DoCmd.SetWarnings True > Exit Sub > :Error_SomeSub > DoCmd.SetWarnings True > ' The do whatever to handle the error > ... > End Sub > > > Lambert > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tina Norris > Fields > Sent: Tuesday, June 24, 2008 3:25 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] How to turn off the warning messages > > Thanks Rusty - that's exactly what I needed. > Tina > > rusty.hammond at cpiqpc.com wrote: > >> To turn the warnings off before running the query docmd.setwarnings >> false >> >> Then to turn then back on after running your query docmd.setwarnings >> true >> >> ie >> >> DoCmd.SetWarnings False >> DoCmd.OpenQuery "qryYourQuery" >> DoCmd.SetWarnings True >> >> HTH >> >> Rusty >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Tina Norris >> Fields >> Sent: Tuesday, June 24, 2008 1:51 PM >> To: 'Access Developers discussion and problem solving' >> Subject: [AccessD] How to turn off the warning messages >> >> >> Hi Group, >> >> I know we've talked about this one before, but at that time I wasn't >> paying attention. Now, I need to know how to do it, so, I apologize >> before putting the question out there to you all. >> >> I have a form with a calendar control for setting the "deposit date." >> Then there is a button for running a make-table query that will build >> a temporary table of contributions matching that "deposit date." I >> want it to run without warning the user about deleting the existing >> table, or about making a new table, or about appending the records to the >> > new table. > >> Once the table is created, the user will click a button to get the >> Word document into which the contributions information will be merged. >> >> I need to know if I can turn off those warning messages generated by >> the make-table query - and how to do it. >> >> Thanks very much, >> Tina >> >> > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > From tinanfields at torchlake.com Tue Jun 24 17:11:18 2008 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Tue, 24 Jun 2008 18:11:18 -0400 Subject: [AccessD] How to get my Word document open Message-ID: <48617106.5020504@torchlake.com> Hi Group, Again, I know I've seen something on this before, but what I've found so far doesn't quite work, so I'm looking for help. On my form, I have a nice button that will launch Word for me, but I want it to open a particular document. The things I have tried so far are not working. So, once again I turn to this knowledgeable group for assistance. How do I make Access launch Word and open a specific document? Thanks for your help, Tina From ssharkins at gmail.com Tue Jun 24 17:25:12 2008 From: ssharkins at gmail.com (Susan Harkins) Date: Tue, 24 Jun 2008 18:25:12 -0400 Subject: [AccessD] Filter Main Form with Subform... References: <49DFE57FB126044B8A8B934E7AEA09ED09FD7591@WPEXCH05.colesmyer.ad.cmltd.net.au><000001c8d525$ded275a0$9c7760e0$@com> <001301c8d640$8c565be0$a50313a0$@com> Message-ID: <011a01c8d649$bd2319d0$2f8601c7@SusanOne> > The problem with this approach is it takes a bit of time to complete the > cycle and re-look up the selected record. Is there a way to keep the 1st > subfrom from requiring? ======Requerying the second subform requeries the first, even though they're not linked? Are you sure they're not linked? Or, did I misunderstand the problem? Susan H. From ssharkins at gmail.com Tue Jun 24 17:22:41 2008 From: ssharkins at gmail.com (Susan Harkins) Date: Tue, 24 Jun 2008 18:22:41 -0400 Subject: [AccessD] Access 2007 tab question References: <000701c8d5fd$87917c40$2f8601c7@SusanOne> <001201c8d640$3618b8e0$a24a2aa0$@com> Message-ID: <011901c8d649$bc3bee20$2f8601c7@SusanOne> Well, I think it's just a mistake in Help. Susan H. > Susan, > I have only been using A07 for a month or so now, but I have not seen any > mention of a "Review Tab", sounds interesting though... > > > WBR > ~Robert > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins > Sent: Tuesday, June 24, 2008 9:24 AM > To: AccessD at databaseadvisors.com > Subject: [AccessD] Access 2007 tab question > > In Access 2007 Help, I've seen references to a Review tab. However, when I > try to find that tab to display it (using the Customize tools), it isn't > listed. In addition, when searching in Help to find information on it, > nothing shows up. > > Is there a Review tab? If so, how do I display it? > > 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 robert at servicexp.com Tue Jun 24 18:41:41 2008 From: robert at servicexp.com (Robert) Date: Tue, 24 Jun 2008 19:41:41 -0400 Subject: [AccessD] Filter Main Form with Subform... In-Reply-To: <011a01c8d649$bd2319d0$2f8601c7@SusanOne> References: <49DFE57FB126044B8A8B934E7AEA09ED09FD7591@WPEXCH05.colesmyer.ad.cmltd.net.au><000001c8d525$ded275a0$9c7760e0$@com> <001301c8d640$8c565be0$a50313a0$@com> <011a01c8d649$bd2319d0$2f8601c7@SusanOne> Message-ID: <001701c8d653$db149d10$913dd730$@com> Susan, Completely unlinked. It seems whenever you apply a .filter to the main form, the subforms do something that looks like requerying, and the users record position is lost in the subform. I ran into this problem years ago when working with A2000, but in that design I was able to change the way the user selected the records. I cannot do that with this design, so I really need a better solution than the one I created... This, or any variation will cause the subform to 'requery' With Me.Parent .Filter = "[Customer ID] Like " & Me!CID .FilterOn = True End With Thanks for your help! ~Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Tuesday, June 24, 2008 6:25 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Filter Main Form with Subform... > The problem with this approach is it takes a bit of time to complete the > cycle and re-look up the selected record. Is there a way to keep the 1st > subfrom from requiring? ======Requerying the second subform requeries the first, even though they're not linked? Are you sure they're not linked? Or, did I misunderstand the problem? Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at gmail.com Tue Jun 24 18:48:29 2008 From: ssharkins at gmail.com (Susan Harkins) Date: Tue, 24 Jun 2008 19:48:29 -0400 Subject: [AccessD] Filter Main Form with Subform... References: <49DFE57FB126044B8A8B934E7AEA09ED09FD7591@WPEXCH05.colesmyer.ad.cmltd.net.au><000001c8d525$ded275a0$9c7760e0$@com> <001301c8d640$8c565be0$a50313a0$@com><011a01c8d649$bd2319d0$2f8601c7@SusanOne> <001701c8d653$db149d10$913dd730$@com> Message-ID: <021001c8d654$cf64dd30$2f8601c7@SusanOne> > Completely unlinked. It seems whenever you apply a .filter to the main > form, the subforms do something that looks like requerying, and the users > record position is lost in the subform. > > I ran into this problem years ago when working with A2000, but in that > design I was able to change the way the user selected the records. I > cannot > do that with this design, so I really need a better solution than the one > I > created... > > This, or any variation will cause the subform to 'requery' ========Well that's interesting -- it doesn't actually requery the records, it just changes the selected record in the subforms? I wonder -- have you tried another filtering method? Is it just the method you're using or will any requery of the main form do this? I don't know why you can't get a bookmark for the subforms though. I've never tried, but have to wonder if it's not a simple syntax problem. Are you storing the bookmark as a Static variable? Susan H. From cfoust at infostatsystems.com Tue Jun 24 18:46:06 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Tue, 24 Jun 2008 16:46:06 -0700 Subject: [AccessD] Access 2007 tab question In-Reply-To: <011901c8d649$bc3bee20$2f8601c7@SusanOne> References: <000701c8d5fd$87917c40$2f8601c7@SusanOne><001201c8d640$3618b8e0$a24a2aa0$@com> <011901c8d649$bc3bee20$2f8601c7@SusanOne> Message-ID: Maybe a "Preview" tab? Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Tuesday, June 24, 2008 3:23 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Access 2007 tab question Well, I think it's just a mistake in Help. Susan H. > Susan, > I have only been using A07 for a month or so now, but I have not seen > any mention of a "Review Tab", sounds interesting though... > > > WBR > ~Robert > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan > Harkins > Sent: Tuesday, June 24, 2008 9:24 AM > To: AccessD at databaseadvisors.com > Subject: [AccessD] Access 2007 tab question > > In Access 2007 Help, I've seen references to a Review tab. However, > when I try to find that tab to display it (using the Customize tools), > it isn't listed. In addition, when searching in Help to find > information on it, nothing shows up. > > Is there a Review tab? If so, how do I display it? > > 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 gmail.com Tue Jun 24 19:04:34 2008 From: ssharkins at gmail.com (Susan Harkins) Date: Tue, 24 Jun 2008 20:04:34 -0400 Subject: [AccessD] upgrading References: <00da01c8caf6$f3ca0dd0$2f8601c7@SusanOne> <7780BBC0A3E14F748F7ECF756DA1B9E3@danwaters> Message-ID: <000e01c8d657$148c7fb0$2f8601c7@SusanOne> Dan, how's the upgrading project going? Susan H. > Hi Susan, > > I am going to start next week! I am planning to use SQL Server Migration > Assistant (SSMA) for Access, which I believe will help significantly. > SSMA > will convert many select queries in Access to views in SQL. > From dwaters at usinternet.com Tue Jun 24 21:57:26 2008 From: dwaters at usinternet.com (Dan Waters) Date: Tue, 24 Jun 2008 21:57:26 -0500 Subject: [AccessD] upgrading In-Reply-To: <000e01c8d657$148c7fb0$2f8601c7@SusanOne> References: <00da01c8caf6$f3ca0dd0$2f8601c7@SusanOne><7780BBC0A3E14F748F7ECF756DA1B9E3@danwaters> <000e01c8d657$148c7fb0$2f8601c7@SusanOne> Message-ID: <979037ACC8614058A7E97D3913E4FEFA@danwaters> Hi Susan, Not started. Customer is has still not signed work order for this job. They definitely will - just a little coordination needed. I'll probably start next week. Hopefully. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Tuesday, June 24, 2008 7:05 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] upgrading Dan, how's the upgrading project going? Susan H. > Hi Susan, > > I am going to start next week! I am planning to use SQL Server Migration > Assistant (SSMA) for Access, which I believe will help significantly. > SSMA > will convert many select queries in Access to views in SQL. > -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From joeo at appoli.com Tue Jun 24 23:01:18 2008 From: joeo at appoli.com (Joe O'Connell) Date: Wed, 25 Jun 2008 00:01:18 -0400 Subject: [AccessD] How to get my Word document open In-Reply-To: <48617106.5020504@torchlake.com> References: <48617106.5020504@torchlake.com> Message-ID: Tina, Dim appWord As Word.Application Dim docWord As Word.Document Set appWord = New Word.Application Set docWord = appWord.Documents.Add("path and name of your document") appWord.Visible = True appWord.Activate Joe O'Connell -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tina Norris Fields Sent: Tuesday, June 24, 2008 6:11 PM To: AccessD at databaseadvisors.com Subject: [AccessD] How to get my Word document open Hi Group, Again, I know I've seen something on this before, but what I've found so far doesn't quite work, so I'm looking for help. On my form, I have a nice button that will launch Word for me, but I want it to open a particular document. The things I have tried so far are not working. So, once again I turn to this knowledgeable group for assistance. How do I make Access launch Word and open a specific document? Thanks for your help, Tina -- 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 Jun 25 01:33:55 2008 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 25 Jun 2008 07:33:55 +0100 Subject: [AccessD] How to get my Word document open In-Reply-To: <48617106.5020504@torchlake.com> Message-ID: <000b01c8d68d$74387910$cb982a50@minster33c3r25> Hi Tina My suggestion is to create a module and put this RunApp function in it -------------------------------------------------- Declare Function ShellExecute Lib "shell32" Alias "ShellExecuteA" (ByVal hWnd As Long, _ ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, _ ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long Function RunApp(strFile As String, bytSize) As Boolean Dim lngRet As Long Dim varTaskID As Variant Dim strRet As String lngRet = ShellExecute(hWndAccessApp, vbNullString, strFile, vbNullString, vbNullString, bytSize) If lngRet > Success Then strRet = vbNullString lngRet = -1 RunApp = True Else RunApp = False Select Case lngRet Case NotRegistered varTaskID = Shell("rundll32.exe shell32.dll,OpenAs_RunDLL " & strFile, bytSize) lngRet = (varTaskID <> 0) Case InadequateMemory MsgBox "Error: Out of Memory/Resources!" Case FileNotFound MsgBox "Error: File not found!" Case PathNotFound MsgBox "Error: Path not found!" Case BadFormat MsgBox "Error: Bad File Format!" Case 5 MsgBox "Error: Unauthorized due to Security restrictions!" End Select End If End Function ------------------------------------------------ Then you can open a Word doc, an Excel sheet, a PDF or anything else just by a simple call to that, ie Call RunApp("C:\Wherever\Whatever.doc", 1) -- Andy Lacey http://www.minstersystems.co.uk >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >Tina Norris Fields >Sent: 24 June 2008 23:11 >To: AccessD at databaseadvisors.com >Subject: [AccessD] How to get my Word document open > > >Hi Group, > >Again, I know I've seen something on this before, but what >I've found so >far doesn't quite work, so I'm looking for help. > >On my form, I have a nice button that will launch Word for me, but I >want it to open a particular document. The things I have tried so far >are not working. So, once again I turn to this knowledgeable >group for >assistance. How do I make Access launch Word and open a >specific document? > >Thanks for your help, >Tina >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > From tinanfields at torchlake.com Wed Jun 25 06:06:16 2008 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Wed, 25 Jun 2008 07:06:16 -0400 Subject: [AccessD] How to get my Word document open In-Reply-To: References: <48617106.5020504@torchlake.com> Message-ID: <486226A8.9060001@torchlake.com> Joe, Thanks. I had been using GetObject and that kept giving me an error. I appreciate this very much. Tina Joe O'Connell wrote: > Tina, > > Dim appWord As Word.Application > Dim docWord As Word.Document > Set appWord = New Word.Application > Set docWord = appWord.Documents.Add("path and name of your > document") > appWord.Visible = True > appWord.Activate > > > Joe O'Connell > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tina Norris > Fields > Sent: Tuesday, June 24, 2008 6:11 PM > To: AccessD at databaseadvisors.com > Subject: [AccessD] How to get my Word document open > > Hi Group, > > Again, I know I've seen something on this before, but what I've found so > > far doesn't quite work, so I'm looking for help. > > On my form, I have a nice button that will launch Word for me, but I > want it to open a particular document. The things I have tried so far > are not working. So, once again I turn to this knowledgeable group for > assistance. How do I make Access launch Word and open a specific > document? > > Thanks for your help, > Tina > From tinanfields at torchlake.com Wed Jun 25 06:13:00 2008 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Wed, 25 Jun 2008 07:13:00 -0400 Subject: [AccessD] How to get my Word document open In-Reply-To: <000b01c8d68d$74387910$cb982a50@minster33c3r25> References: <000b01c8d68d$74387910$cb982a50@minster33c3r25> Message-ID: <4862283C.6050506@torchlake.com> Hi Andy, Many thanks for this. There's a lot here, so I'm digesting it still, but my understanding is that this function checks for all the things that might interfere with opening the target file, and if everything is okay the file will open. Terrific! Tina Andy Lacey wrote: > Hi Tina > My suggestion is to create a module and put this RunApp function in it > > -------------------------------------------------- > Declare Function ShellExecute Lib "shell32" Alias "ShellExecuteA" (ByVal > hWnd As Long, _ > ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As > String, _ > ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long > > Function RunApp(strFile As String, bytSize) As Boolean > Dim lngRet As Long > Dim varTaskID As Variant > Dim strRet As String > > lngRet = ShellExecute(hWndAccessApp, vbNullString, strFile, > vbNullString, vbNullString, bytSize) > If lngRet > Success Then > strRet = vbNullString > lngRet = -1 > RunApp = True > Else > RunApp = False > Select Case lngRet > Case NotRegistered > varTaskID = Shell("rundll32.exe shell32.dll,OpenAs_RunDLL " > & strFile, bytSize) > lngRet = (varTaskID <> 0) > Case InadequateMemory > MsgBox "Error: Out of Memory/Resources!" > Case FileNotFound > MsgBox "Error: File not found!" > Case PathNotFound > MsgBox "Error: Path not found!" > Case BadFormat > MsgBox "Error: Bad File Format!" > Case 5 > MsgBox "Error: Unauthorized due to Security restrictions!" > End Select > End If > End Function > ------------------------------------------------ > > Then you can open a Word doc, an Excel sheet, a PDF or anything else just by > a simple call to that, ie > > Call RunApp("C:\Wherever\Whatever.doc", 1) > > > -- Andy Lacey > http://www.minstersystems.co.uk > > >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >> Tina Norris Fields >> Sent: 24 June 2008 23:11 >> To: AccessD at databaseadvisors.com >> Subject: [AccessD] How to get my Word document open >> >> >> Hi Group, >> >> Again, I know I've seen something on this before, but what >> I've found so >> far doesn't quite work, so I'm looking for help. >> >> On my form, I have a nice button that will launch Word for me, but I >> want it to open a particular document. The things I have tried so far >> are not working. So, once again I turn to this knowledgeable >> group for >> assistance. How do I make Access launch Word and open a >> specific document? >> >> Thanks for your help, >> Tina >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> >> > > > > From tinanfields at torchlake.com Wed Jun 25 06:15:21 2008 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Wed, 25 Jun 2008 07:15:21 -0400 Subject: [AccessD] Access 2007 tab question In-Reply-To: <011901c8d649$bc3bee20$2f8601c7@SusanOne> References: <000701c8d5fd$87917c40$2f8601c7@SusanOne><001201c8d640$3618b8e0$a24a2aa0$@com> <011901c8d649$bc3bee20$2f8601c7@SusanOne> Message-ID: <486228C9.8090400@torchlake.com> Hi Susan, I think it is, too. There's a "review" tab in Word, but I don't think there's one in Access. Tina Susan Harkins wrote: > Well, I think it's just a mistake in Help. > > Susan H. > > > >> Susan, >> I have only been using A07 for a month or so now, but I have not seen any >> mention of a "Review Tab", sounds interesting though... >> >> >> WBR >> ~Robert >> >> >> >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins >> Sent: Tuesday, June 24, 2008 9:24 AM >> To: AccessD at databaseadvisors.com >> Subject: [AccessD] Access 2007 tab question >> >> In Access 2007 Help, I've seen references to a Review tab. However, when I >> try to find that tab to display it (using the Customize tools), it isn't >> listed. In addition, when searching in Help to find information on it, >> nothing shows up. >> >> Is there a Review tab? If so, how do I display it? >> >> 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 robert at servicexp.com Wed Jun 25 06:24:13 2008 From: robert at servicexp.com (Robert) Date: Wed, 25 Jun 2008 07:24:13 -0400 Subject: [AccessD] Filter Main Form with Subform... In-Reply-To: <021001c8d654$cf64dd30$2f8601c7@SusanOne> References: <49DFE57FB126044B8A8B934E7AEA09ED09FD7591@WPEXCH05.colesmyer.ad.cmltd.net.au><000001c8d525$ded275a0$9c7760e0$@com> <001301c8d640$8c565be0$a50313a0$@com><011a01c8d649$bd2319d0$2f8601c7@SusanOne> <001701c8d653$db149d10$913dd730$@com> <021001c8d654$cf64dd30$2f8601c7@SusanOne> Message-ID: <000001c8d6b5$ffedac50$ffc904f0$@com> Susan, It really Looks like it's a requery, acts just like a requery would, and yes if the user has selected say the 4th record down from the top, as soon as the code hits the .Filter command the selected record moves to the top of the subform, but the main form correctly filters to the users selected record. I was hoping on some insight on another way to filter the records that would not cause this problem? The bookmark issue is a bit strange, I think it fails because of the 'requerying' of the subform, but I can't really tell. I do know the work around that I'm using now (and don't like) uses the records PK to lookup the record (in a clone), grab the bookmark and then set it to the subform, which works but is just way to slow. If I try the same exact code to grab the bookmark from the subform before .filter fires, I get an empty bookmark, every time without exception. WBR ~Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Tuesday, June 24, 2008 7:48 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Filter Main Form with Subform... > Completely unlinked. It seems whenever you apply a .filter to the main > form, the subforms do something that looks like requerying, and the users > record position is lost in the subform. > > I ran into this problem years ago when working with A2000, but in that > design I was able to change the way the user selected the records. I > cannot > do that with this design, so I really need a better solution than the one > I > created... > > This, or any variation will cause the subform to 'requery' ========Well that's interesting -- it doesn't actually requery the records, it just changes the selected record in the subforms? I wonder -- have you tried another filtering method? Is it just the method you're using or will any requery of the main form do this? I don't know why you can't get a bookmark for the subforms though. I've never tried, but have to wonder if it's not a simple syntax problem. Are you storing the bookmark as a Static variable? Susan H. -- 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 Jun 25 07:46:41 2008 From: andy at minstersystems.co.uk (Andy Lacey) Date: Wed, 25 Jun 2008 13:46:41 +0100 Subject: [AccessD] How to get my Word document open Message-ID: <200806251246.m5PCkie8016409@databaseadvisors.com> Hi Tina Effectively it does what Windows does if you double-click on a file in Explorer, ie uses the rergistered app for that file type to open the file. It's no use if you want to manipulate the file via, say, the Word object model, but great if all you want to do is open it. -- 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] How to get my Word document open Date: 25/06/08 11:16 Hi Andy, Many thanks for this. There's a lot here, so I'm digesting it still, but my understanding is that this function checks for all the things that might interfere with opening the target file, and if everything is okay the file will open. Terrific! Tina Andy Lacey wrote: > Hi Tina > My suggestion is to create a module and put this RunApp function in it > > -------------------------------------------------- > Declare Function ShellExecute Lib "shell32" Alias "ShellExecuteA" (ByVal > hWnd As Long, _ > ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As > String, _ > ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long > > Function RunApp(strFile As String, bytSize) As Boolean > Dim lngRet As Long > Dim varTaskID As Variant > Dim strRet As String > > lngRet = ShellExecute(hWndAccessApp, vbNullString, strFile, > vbNullString, vbNullString, bytSize) > If lngRet > Success Then > strRet = vbNullString > lngRet = -1 > RunApp = True > Else > RunApp = False > Select Case lngRet > Case NotRegistered > varTaskID = Shell("rundll32.exe shell32.dll,OpenAs_RunDLL " > & strFile, bytSize) > lngRet = (varTaskID <> 0) > Case InadequateMemory > MsgBox "Error: Out of Memory/Resources!" > Case FileNotFound > MsgBox "Error: File not found!" > Case PathNotFound > MsgBox "Error: Path not found!" > Case BadFormat > MsgBox "Error: Bad File Format!" > Case 5 > MsgBox "Error: Unauthorized due to Security restrictions!" > End Select > End If > End Function > ------------------------------------------------ > > Then you can open a Word doc, an Excel sheet, a PDF or anything else just by > a simple call to that, ie > > Call RunApp("C:WhereverWhatever.doc", 1) > > > -- Andy Lacey > http://www.minstersystems.co.uk > > >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >> Tina Norris Fields >> Sent: 24 June 2008 23:11 >> To: AccessD at databaseadvisors.com >> Subject: [AccessD] How to get my Word document open >> >> >> Hi Group, >> >> Again, I know I've seen something on this before, but what >> I've found so >> far doesn't quite work, so I'm looking for help. >> >> On my form, I have a nice button that will launch Word for me, but I >> want it to open a particular document. The things I have tried so far >> are not working. So, once again I turn to this knowledgeable >> group for >> assistance. How do I make Access launch Word and open a >> specific document? >> >> Thanks for your help, >> Tina >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/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 gmail.com Wed Jun 25 08:20:09 2008 From: ssharkins at gmail.com (Susan Harkins) Date: Wed, 25 Jun 2008 09:20:09 -0400 Subject: [AccessD] Filter Main Form with Subform... References: <49DFE57FB126044B8A8B934E7AEA09ED09FD7591@WPEXCH05.colesmyer.ad.cmltd.net.au><000001c8d525$ded275a0$9c7760e0$@com> <001301c8d640$8c565be0$a50313a0$@com><011a01c8d649$bd2319d0$2f8601c7@SusanOne> <001701c8d653$db149d10$913dd730$@com><021001c8d654$cf64dd30$2f8601c7@SusanOne> <000001c8d6b5$ffedac50$ffc904f0$@com> Message-ID: <016001c8d6c6$3755fcf0$2f8601c7@SusanOne> > > I was hoping on some insight on another way to filter the records that > would not cause this problem? =========You want to filter the main form without affecting the subforms, is this correct? I admit, I don't really understand this decision, but there are tons of ways to filter the main form -- you don't need to use .filter. I prefer SQL myself. Is the user choosing the criteria? My favorite and overused method is to let the user choose and then click a Command button that executes a SQL statement that evaluates the values in the "criteria" controls. This is pretty standard and easy to do -- I suspect you've got something unique going on? > > The bookmark issue is a bit strange, I think it fails because of the > 'requerying' of the subform, but I can't really tell. I do know the work > around that I'm using now (and don't like) uses the records PK to lookup > the > record (in a clone), grab the bookmark and then set it to the subform, > which > works but is just way to slow. > > If I try the same exact code to grab the bookmark from the subform before > .filter fires, I get an empty bookmark, every time without exception. =========You are declaring the bookmark variable as a Static, right? Susan H. From rosalyn.clarke at barclays.com Wed Jun 25 08:32:51 2008 From: rosalyn.clarke at barclays.com (rosalyn.clarke at barclays.com) Date: Wed, 25 Jun 2008 14:32:51 +0100 Subject: [AccessD] Error 2501, 'the open form action was cancelled' In-Reply-To: <016001c8d6c6$3755fcf0$2f8601c7@SusanOne> References: <49DFE57FB126044B8A8B934E7AEA09ED09FD7591@WPEXCH05.colesmyer.ad.cmltd.net.au><000001c8d525$ded275a0$9c7760e0$@com> <001301c8d640$8c565be0$a50313a0$@com><011a01c8d649$bd2319d0$2f8601c7@SusanOne> <001701c8d653$db149d10$913dd730$@com><021001c8d654$cf64dd30$2f8601c7@SusanOne><000001c8d6b5$ffedac50$ffc904f0$@com> <016001c8d6c6$3755fcf0$2f8601c7@SusanOne> Message-ID: Hi all A quickie, I hope... I am getting error 2501 when trying to open a form and filter it to a single record. The thing is this only happens for certain records - for most records it is fine, but when it breaks, it breaks reliably. The records are in the dataset behind the target form. I can open the form showing all records and filter for the specific ones I want, using the same field I'm passing in the openform statement. I can stick the criterion in the underlying query and that works fine too. But it won't open the form to these records using docmd.openform. I have compacted and repaired the database, and I've tried creating a new form and linking from there in case the calling form was corrupt. It doesn't work from the new form either. Any ideas? Any help would be much appreciated Roz This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments. Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. From rockysmolin at bchacc.com Wed Jun 25 08:46:26 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Wed, 25 Jun 2008 06:46:26 -0700 Subject: [AccessD] Error 2501, 'the open form action was cancelled' In-Reply-To: References: <49DFE57FB126044B8A8B934E7AEA09ED09FD7591@WPEXCH05.colesmyer.ad.cmltd.net.au><000001c8d525$ded275a0$9c7760e0$@com><001301c8d640$8c565be0$a50313a0$@com><011a01c8d649$bd2319d0$2f8601c7@SusanOne><001701c8d653$db149d10$913dd730$@com><021001c8d654$cf64dd30$2f8601c7@SusanOne><000001c8d6b5$ffedac50$ffc904f0$@com><016001c8d6c6$3755fcf0$2f8601c7@SusanOne> Message-ID: <001401c8d6c9$dd16d210$0301a8c0@HAL9005> Is the description of the error "The OpenForm action was cancelled". I usually trap this if a report has no data. Is it possible the form has no records? How are you filtering form? Modifying a stored query? Modifying the RecordSource? Using Me.Filter? Using the Where clause in the OpenForm? Which ever one you're using I'd try one of the alternatives. HTH Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rosalyn.clarke at barclays.com Sent: Wednesday, June 25, 2008 6:33 AM To: accessd at databaseadvisors.com Subject: [AccessD] Error 2501, 'the open form action was cancelled' Hi all A quickie, I hope... I am getting error 2501 when trying to open a form and filter it to a single record. The thing is this only happens for certain records - for most records it is fine, but when it breaks, it breaks reliably. The records are in the dataset behind the target form. I can open the form showing all records and filter for the specific ones I want, using the same field I'm passing in the openform statement. I can stick the criterion in the underlying query and that works fine too. But it won't open the form to these records using docmd.openform. I have compacted and repaired the database, and I've tried creating a new form and linking from there in case the calling form was corrupt. It doesn't work from the new form either. Any ideas? Any help would be much appreciated Roz This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments. Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rosalyn.clarke at barclays.com Wed Jun 25 09:25:58 2008 From: rosalyn.clarke at barclays.com (rosalyn.clarke at barclays.com) Date: Wed, 25 Jun 2008 15:25:58 +0100 Subject: [AccessD] Error 2501, 'the open form action was cancelled' In-Reply-To: <001401c8d6c9$dd16d210$0301a8c0@HAL9005> References: <49DFE57FB126044B8A8B934E7AEA09ED09FD7591@WPEXCH05.colesmyer.ad.cmltd.net.au><000001c8d525$ded275a0$9c7760e0$@com><001301c8d640$8c565be0$a50313a0$@com><011a01c8d649$bd2319d0$2f8601c7@SusanOne><001701c8d653$db149d10$913dd730$@com><021001c8d654$cf64dd30$2f8601c7@SusanOne><000001c8d6b5$ffedac50$ffc904f0$@com><016001c8d6c6$3755fcf0$2f8601c7@SusanOne> <001401c8d6c9$dd16d210$0301a8c0@HAL9005> Message-ID: Yes, "the OpenForm action was cancelled". No, the form has records all right - I'm filtering using the Where clause in the OpenForm. The form's based on a stored SQL statement. Both the underlying SQL and the form itself show all records when opened directly, including the offending ones. Nothing wrong with the OpenForm statement itself - it opens at the right record for 95% of records in the database. Modifying the recordsource doesn't work either. This time I get error 2001 "the previous action was cancelled". This is the code: Dim stLinkCriteria As String stLinkCriteria = "[fldTi_ID]='" & Me![fldTi_ID] & "'" 'DoCmd.OpenForm "frmTicketLive", , , stLinkCriteria (the old way that's not working) DoCmd.OpenForm "frmTicketLive" Forms!frmTicketLive.RecordSource = "SELECT DISTINCTROW " _ & "FROM tlkpSector INNER JOIN (tblNetworkTeamLocal INNER JOIN (tblHandlerLocal RIGHT JOIN tblTicketLive ON tblHandlerLocal.fldID = tblTicketLive.fldTi_Handler) ON tblNetworkTeamLocal.fldNetworkTeamID = tblTicketLive.fldTi_NetworkTeam) ON tlkpSector.fldSectorID = tblNetworkTeamLocal.fldSectorID " _ & "WHERE fldTi_ID = '" & Me.fldTi_ID & "' " _ & "ORDER BY tblTicketLive.fldTi_Seq;" Again, taking this SQL and running it with the syntax [forms]![frmCallingForm]![fldTi_ID] in place of me.fldTi_ID works perfectly. Stepping through the code shows fldTi_ID being passed to the SQL statement correctly. Huff. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: 25 June 2008 14:46 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 2501, 'the open form action was cancelled' Is the description of the error "The OpenForm action was cancelled". I usually trap this if a report has no data. Is it possible the form has no records? How are you filtering form? Modifying a stored query? Modifying the RecordSource? Using Me.Filter? Using the Where clause in the OpenForm? Which ever one you're using I'd try one of the alternatives. HTH Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rosalyn.clarke at barclays.com Sent: Wednesday, June 25, 2008 6:33 AM To: accessd at databaseadvisors.com Subject: [AccessD] Error 2501, 'the open form action was cancelled' Hi all A quickie, I hope... I am getting error 2501 when trying to open a form and filter it to a single record. The thing is this only happens for certain records - for most records it is fine, but when it breaks, it breaks reliably. The records are in the dataset behind the target form. I can open the form showing all records and filter for the specific ones I want, using the same field I'm passing in the openform statement. I can stick the criterion in the underlying query and that works fine too. But it won't open the form to these records using docmd.openform. I have compacted and repaired the database, and I've tried creating a new form and linking from there in case the calling form was corrupt. It doesn't work from the new form either. Any ideas? Any help would be much appreciated Roz This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments. Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments. Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. From rosalyn.clarke at barclays.com Wed Jun 25 09:31:52 2008 From: rosalyn.clarke at barclays.com (rosalyn.clarke at barclays.com) Date: Wed, 25 Jun 2008 15:31:52 +0100 Subject: [AccessD] Error 2501, 'the open form action was cancelled' In-Reply-To: References: <49DFE57FB126044B8A8B934E7AEA09ED09FD7591@WPEXCH05.colesmyer.ad.cmltd.net.au><000001c8d525$ded275a0$9c7760e0$@com><001301c8d640$8c565be0$a50313a0$@com><011a01c8d649$bd2319d0$2f8601c7@SusanOne><001701c8d653$db149d10$913dd730$@com><021001c8d654$cf64dd30$2f8601c7@SusanOne><000001c8d6b5$ffedac50$ffc904f0$@com><016001c8d6c6$3755fcf0$2f8601c7@SusanOne><001401c8d6c9$dd16d210$0301a8c0@HAL9005> Message-ID: OK - once I took the quote marks out of the SQL the recordsource method worked. Gah. Thanks Rocky! -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Clarke, Rosalyn : UK CIO GRCB Sent: 25 June 2008 15:26 To: accessd at databaseadvisors.com Subject: Re: [AccessD] Error 2501, 'the open form action was cancelled' Yes, "the OpenForm action was cancelled". No, the form has records all right - I'm filtering using the Where clause in the OpenForm. The form's based on a stored SQL statement. Both the underlying SQL and the form itself show all records when opened directly, including the offending ones. Nothing wrong with the OpenForm statement itself - it opens at the right record for 95% of records in the database. Modifying the recordsource doesn't work either. This time I get error 2001 "the previous action was cancelled". This is the code: Dim stLinkCriteria As String stLinkCriteria = "[fldTi_ID]='" & Me![fldTi_ID] & "'" 'DoCmd.OpenForm "frmTicketLive", , , stLinkCriteria (the old way that's not working) DoCmd.OpenForm "frmTicketLive" Forms!frmTicketLive.RecordSource = "SELECT DISTINCTROW " _ & "FROM tlkpSector INNER JOIN (tblNetworkTeamLocal INNER JOIN (tblHandlerLocal RIGHT JOIN tblTicketLive ON tblHandlerLocal.fldID = tblTicketLive.fldTi_Handler) ON tblNetworkTeamLocal.fldNetworkTeamID = tblTicketLive.fldTi_NetworkTeam) ON tlkpSector.fldSectorID = tblNetworkTeamLocal.fldSectorID " _ & "WHERE fldTi_ID = '" & Me.fldTi_ID & "' " _ & "ORDER BY tblTicketLive.fldTi_Seq;" Again, taking this SQL and running it with the syntax [forms]![frmCallingForm]![fldTi_ID] in place of me.fldTi_ID works perfectly. Stepping through the code shows fldTi_ID being passed to the SQL statement correctly. Huff. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: 25 June 2008 14:46 To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Error 2501, 'the open form action was cancelled' Is the description of the error "The OpenForm action was cancelled". I usually trap this if a report has no data. Is it possible the form has no records? How are you filtering form? Modifying a stored query? Modifying the RecordSource? Using Me.Filter? Using the Where clause in the OpenForm? Which ever one you're using I'd try one of the alternatives. HTH Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of rosalyn.clarke at barclays.com Sent: Wednesday, June 25, 2008 6:33 AM To: accessd at databaseadvisors.com Subject: [AccessD] Error 2501, 'the open form action was cancelled' Hi all A quickie, I hope... I am getting error 2501 when trying to open a form and filter it to a single record. The thing is this only happens for certain records - for most records it is fine, but when it breaks, it breaks reliably. The records are in the dataset behind the target form. I can open the form showing all records and filter for the specific ones I want, using the same field I'm passing in the openform statement. I can stick the criterion in the underlying query and that works fine too. But it won't open the form to these records using docmd.openform. I have compacted and repaired the database, and I've tried creating a new form and linking from there in case the calling form was corrupt. It doesn't work from the new form either. Any ideas? Any help would be much appreciated Roz This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments. Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments. Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This e-mail and any attachments are confidential and intended solely for the addressee and may also be privileged or exempt from disclosure under applicable law. If you are not the addressee, or have received this e-mail in error, please notify the sender immediately, delete it from your system and do not copy, disclose or otherwise act upon any part of this e-mail or its attachments. Internet communications are not guaranteed to be secure or virus-free. The Barclays Group does not accept responsibility for any loss arising from unauthorised access to, or interference with, any Internet communications by any third party, or from the transmission of any viruses. Replies to this e-mail may be monitored by the Barclays Group for operational or business reasons. Any opinion or other information in this e-mail or its attachments that does not relate to the business of the Barclays Group is personal to the sender and is not given or endorsed by the Barclays Group. Barclays Bank PLC.Registered in England and Wales (registered no. 1026167). Registered Office: 1 Churchill Place, London, E14 5HP, United Kingdom. Barclays Bank PLC is authorised and regulated by the Financial Services Authority. From sturner at mseco.com Wed Jun 25 10:30:36 2008 From: sturner at mseco.com (Steve Turner) Date: Wed, 25 Jun 2008 10:30:36 -0500 Subject: [AccessD] Do While in VBA Message-ID: <31B7F3CC8CC4454F87FCBEFF82B6189201E1FF25@PE2850-03.mseco.com> Hello, Quick question I know someone can help with. I have a VBA macro in Excel I'm working on with a Do While loop in it. I want it to stop on a cell I put something in to make it stop. Right now it just bypasses what ever I put in the cell. Its puzzling why. Can't use the "" blank cell because the macro is deleting blank rows. Declared a string var but what I put in it may be somehow different than what shows up in the cell by some small amount like Stop, "Stop" tried both but it didn't work. Using Dim dontdo$ dontdo = "Stop" x = ActiveCell.Row Do While ActiveCell(x, 1).Value <> dontdo. Steve A. Turner Controller Mid-South Engineering Co. Inc P.O. Box 1399 Hot Springs, AR 71902 E-Mail: sturner at mseco.com and saturner at mseco.com Phone:(501)321-2276 Fax: (501)321-4750 From rockysmolin at bchacc.com Wed Jun 25 10:41:37 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Wed, 25 Jun 2008 08:41:37 -0700 Subject: [AccessD] Do While in VBA In-Reply-To: <31B7F3CC8CC4454F87FCBEFF82B6189201E1FF25@PE2850-03.mseco.com> References: <31B7F3CC8CC4454F87FCBEFF82B6189201E1FF25@PE2850-03.mseco.com> Message-ID: <004001c8d6d9$f4a1f080$0301a8c0@HAL9005> If Cell has 'something' then Exit Do? Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Turner Sent: Wednesday, June 25, 2008 8:31 AM To: Access Developers discussion and problem solving Subject: [AccessD] Do While in VBA Hello, Quick question I know someone can help with. I have a VBA macro in Excel I'm working on with a Do While loop in it. I want it to stop on a cell I put something in to make it stop. Right now it just bypasses what ever I put in the cell. Its puzzling why. Can't use the "" blank cell because the macro is deleting blank rows. Declared a string var but what I put in it may be somehow different than what shows up in the cell by some small amount like Stop, "Stop" tried both but it didn't work. Using Dim dontdo$ dontdo = "Stop" x = ActiveCell.Row Do While ActiveCell(x, 1).Value <> dontdo. Steve A. Turner Controller Mid-South Engineering Co. Inc P.O. Box 1399 Hot Springs, AR 71902 E-Mail: sturner at mseco.com and saturner at mseco.com Phone:(501)321-2276 Fax: (501)321-4750 From sturner at mseco.com Wed Jun 25 10:54:55 2008 From: sturner at mseco.com (Steve Turner) Date: Wed, 25 Jun 2008 10:54:55 -0500 Subject: [AccessD] Do While in VBA In-Reply-To: <004001c8d6d9$f4a1f080$0301a8c0@HAL9005> References: <31B7F3CC8CC4454F87FCBEFF82B6189201E1FF25@PE2850-03.mseco.com> <004001c8d6d9$f4a1f080$0301a8c0@HAL9005> Message-ID: <31B7F3CC8CC4454F87FCBEFF82B6189201E1FF41@PE2850-03.mseco.com> SO simple thanks Rocky, none of the example's in the book or code had that simple phrase just End Sub after the loop phrase. I've sent emails to two excel groups trying to find this answer and none replied. Access d Is the greatest. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Wednesday, June 25, 2008 10:42 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Do While in VBA If Cell has 'something' then Exit Do? Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Turner Sent: Wednesday, June 25, 2008 8:31 AM To: Access Developers discussion and problem solving Subject: [AccessD] Do While in VBA Hello, Quick question I know someone can help with. I have a VBA macro in Excel I'm working on with a Do While loop in it. I want it to stop on a cell I put something in to make it stop. Right now it just bypasses what ever I put in the cell. Its puzzling why. Can't use the "" blank cell because the macro is deleting blank rows. Declared a string var but what I put in it may be somehow different than what shows up in the cell by some small amount like Stop, "Stop" tried both but it didn't work. Using Dim dontdo$ dontdo = "Stop" x = ActiveCell.Row Do While ActiveCell(x, 1).Value <> dontdo. Steve A. Turner Controller Mid-South Engineering Co. Inc P.O. Box 1399 Hot Springs, AR 71902 E-Mail: sturner at mseco.com and saturner at mseco.com Phone:(501)321-2276 Fax: (501)321-4750 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From fuller.artful at gmail.com Wed Jun 25 11:26:11 2008 From: fuller.artful at gmail.com (Arthur Fuller) Date: Wed, 25 Jun 2008 13:26:11 -0300 Subject: [AccessD] Do While in VBA In-Reply-To: <31B7F3CC8CC4454F87FCBEFF82B6189201E1FF41@PE2850-03.mseco.com> References: <31B7F3CC8CC4454F87FCBEFF82B6189201E1FF25@PE2850-03.mseco.com> <004001c8d6d9$f4a1f080$0301a8c0@HAL9005> <31B7F3CC8CC4454F87FCBEFF82B6189201E1FF41@PE2850-03.mseco.com> Message-ID: <29f585dd0806250926u4b609661sc93b44eef6b37239@mail.gmail.com> Yes, AccessD is the greatest. So are (on related subjects) dba-SQL and dba-Tech. Arthur On Wed, Jun 25, 2008 at 12:54 PM, Steve Turner wrote: > SO simple thanks Rocky, none of the example's in the book or code had > that simple phrase just End Sub after the loop phrase. I've sent emails > to two excel groups trying to find this answer and none replied. Access > d Is the greatest. > From tinanfields at torchlake.com Wed Jun 25 15:44:34 2008 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Wed, 25 Jun 2008 16:44:34 -0400 Subject: [AccessD] Two more issues on my Word document automation Message-ID: <4862AE32.5030407@torchlake.com> Hi again, First, thanks for the wonderful help so far. My form is coming along very nicely. The user selects the date from a calendar control for records to be processed and clicks a button to set that date. The user then clicks a button to run the make-table query, a message box appears to let the user know that is completed, and the user clicks OK to dismiss message box. The user then clicks a button to launch Word and open the contributions merge letter. So far, so good. Two issues: 1. The Word document is a merge form letter expecting data from the temporary table in the database. I would like to dismiss the message box that pops up asking the user to confirm that he (or she) wants the form letter to accept the data from the database - that is, I don't want that message box to appear, but I don't see where in the Word document to turn it off. If it's something I can set for this document, does anybody know where that setting is? If I can't set it in the Word document, is there a way for me to turn off that message box programmatically from the database? 2. Other issue - if a user selects a date for which there are no records, and clicks the button to run the query, I want the message box to tell the user there are no records for that date. If all this works well, a user will get into the Word document, ready to complete the merge, with 4 mouse-clicks. That will make my friends at Habitat very happy. Down the road, when I am confident the automation is working right, and the BE and FE are properly in place, I want to combine the actions of the buttons on the form so that the user will simply pick the appropriate date and click a GO button. But, as I mentioned earlier, we are trying to live in this house while we gut it and totally remodel it - so I will be very happy with incremental improvements. Thanks again for all the help, Tina From robert at servicexp.com Wed Jun 25 16:29:11 2008 From: robert at servicexp.com (Robert) Date: Wed, 25 Jun 2008 17:29:11 -0400 Subject: [AccessD] Filter Main Form with Subform... In-Reply-To: <016001c8d6c6$3755fcf0$2f8601c7@SusanOne> References: <49DFE57FB126044B8A8B934E7AEA09ED09FD7591@WPEXCH05.colesmyer.ad.cmltd.net.au><000001c8d525$ded275a0$9c7760e0$@com> <001301c8d640$8c565be0$a50313a0$@com><011a01c8d649$bd2319d0$2f8601c7@SusanOne> <001701c8d653$db149d10$913dd730$@com><021001c8d654$cf64dd30$2f8601c7@SusanOne> <000001c8d6b5$ffedac50$ffc904f0$@com> <016001c8d6c6$3755fcf0$2f8601c7@SusanOne> Message-ID: <000001c8d70a$833766b0$89a63410$@com> Susan, If a picture is worth a thousand words then maybe this will help... http://www.servicexp.com/WOPic.png The form is not finished so no grief... :-) The field in the upper right corner is used as a quick search to narrow the "Billing Address" subform underneath. (both subforms and main forms open without any records) Then the user selects the customer in the billing address, which then loads the customer info on the main form (very similar queries) and filters the "Service Location" subform. (highlighted Service Location Indicates the billing address) Does this help any..? So I guess from what your saying is that I need to look at using SQL to filter the main forms query? How would I apply that SQL to the existing query in the main form? If you could not tell I don't know much about SQL. :-( Thanks for your help!! PS: The bookmark returns empty no matter how I dim it. WBR ~Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, June 25, 2008 9:20 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Filter Main Form with Subform... > > I was hoping on some insight on another way to filter the records that > would not cause this problem? =========You want to filter the main form without affecting the subforms, is this correct? I admit, I don't really understand this decision, but there are tons of ways to filter the main form -- you don't need to use .filter. I prefer SQL myself. Is the user choosing the criteria? My favorite and overused method is to let the user choose and then click a Command button that executes a SQL statement that evaluates the values in the "criteria" controls. This is pretty standard and easy to do -- I suspect you've got something unique going on? > > The bookmark issue is a bit strange, I think it fails because of the > 'requerying' of the subform, but I can't really tell. I do know the work > around that I'm using now (and don't like) uses the records PK to lookup > the > record (in a clone), grab the bookmark and then set it to the subform, > which > works but is just way to slow. > > If I try the same exact code to grab the bookmark from the subform before > .filter fires, I get an empty bookmark, every time without exception. =========You are declaring the bookmark variable as a Static, right? Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From ssharkins at gmail.com Wed Jun 25 16:44:57 2008 From: ssharkins at gmail.com (Susan Harkins) Date: Wed, 25 Jun 2008 17:44:57 -0400 Subject: [AccessD] Filter Main Form with Subform... References: <49DFE57FB126044B8A8B934E7AEA09ED09FD7591@WPEXCH05.colesmyer.ad.cmltd.net.au><000001c8d525$ded275a0$9c7760e0$@com> <001301c8d640$8c565be0$a50313a0$@com><011a01c8d649$bd2319d0$2f8601c7@SusanOne> <001701c8d653$db149d10$913dd730$@com><021001c8d654$cf64dd30$2f8601c7@SusanOne> <000001c8d6b5$ffedac50$ffc904f0$@com><016001c8d6c6$3755fcf0$2f8601c7@SusanOne> <000001c8d70a$833766b0$89a63410$@com> Message-ID: <02c501c8d70c$bafbe970$2f8601c7@SusanOne> > So I guess from what your saying is that I need to look at using SQL to > filter the main forms query? How would I apply that SQL to the existing > query in the main form? If you could not tell I don't know much about > SQL. > :-( ========Use the subform's Double Click event (or the After Update, whatever works best, I just like the Double Click in a subform) to force the main form to requery, using the subform's value as the filtering criteria: Dim strSQL As String strSQL = "SELECT * FROM table WHERE criteriafield = " & subform.Value Forms!mainform.RecordSource = strSQL A couple of things -- don't forget to add string delimiters if needed: strSQL = "SELECT * FROM table WHERE criteriafield = '" & subform.Value & "'" Forms!mainform.RecordSource = strSQL And that relies on the subform's value equaling the criteria value, which it might not -- you'll have to accommodate for that. But this is just one way -- lots of ways and I think using the subform's parent and child link properties to specify the main form is probably easier and might have the same results. Susan H. From Darryl.Collins at coles.com.au Wed Jun 25 19:44:42 2008 From: Darryl.Collins at coles.com.au (Darryl Collins) Date: Thu, 26 Jun 2008 10:44:42 +1000 Subject: [AccessD] Do While in VBA Message-ID: <49DFE57FB126044B8A8B934E7AEA09ED09FD75D4@WPEXCH05.colesmyer.ad.cmltd.net.au> If any of you have Excel issues, I highly recommend one of the Excel lists here. I have been subbed to both for years. L list is for Developer type issues http://peach.ease.lsoft.com/archives/excel-l.html G list is for more mundane Excel stuff. http://peach.ease.lsoft.com/archives/excel-g.html Both lists are very friendly and full of MVP types who really know their stuff. Also lots of fun like AccessD, and of course, free to sub and unsub. hth Darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Steve Turner Sent: Thursday, 26 June 2008 1:55 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Do While in VBA SO simple thanks Rocky, none of the example's in the book or code had that simple phrase just End Sub after the loop phrase. I've sent emails to two excel groups trying to find this answer and none replied. Access d Is the greatest. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Wednesday, June 25, 2008 10:42 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Do While in VBA If Cell has 'something' then Exit Do? Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Turner Sent: Wednesday, June 25, 2008 8:31 AM To: Access Developers discussion and problem solving Subject: [AccessD] Do While in VBA Hello, Quick question I know someone can help with. I have a VBA macro in Excel I'm working on with a Do While loop in it. I want it to stop on a cell I put something in to make it stop. Right now it just bypasses what ever I put in the cell. Its puzzling why. Can't use the "" blank cell because the macro is deleting blank rows. Declared a string var but what I put in it may be somehow different than what shows up in the cell by some small amount like Stop, "Stop" tried both but it didn't work. Using Dim dontdo$ dontdo = "Stop" x = ActiveCell.Row Do While ActiveCell(x, 1).Value <> dontdo. Steve A. Turner Controller Mid-South Engineering Co. Inc P.O. Box 1399 Hot Springs, AR 71902 E-Mail: sturner at mseco.com and saturner at mseco.com Phone:(501)321-2276 Fax: (501)321-4750 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. From Gustav at cactus.dk Thu Jun 26 01:55:08 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 26 Jun 2008 08:55:08 +0200 Subject: [AccessD] Excel addition woes (was: Do While in VBA) Message-ID: Hi Darryl So do these lists express a consensus regarding Woody's recent stupid "discovery" of a "bug" i Excel caused by floating point issues when performing arithmetic? First article is here: http://news.office-watch.com/t/n.aspx?a=609 I wrote Peter Deegan about this and how it can be demonstrated much simpler: You are demonstration nothing but the extreme basics of floating number handling by computers. This has nothing to do with Excel, only the way the user misbehaves by not applying the correct rounding (format). In the attached worksheet you'll se that this "error" can be demonstrated with two (2!) numbers only if a rounding of 16 decimals is applied. Contrary, your example will display correctly - as shown - if a format of two decimals is applied. The big error source regarding this topic is not Excel but the fact that so many users do not know which tool they have at hand and how to utilize it. You don't that many numbers as the article outlines. My attached Excel sheet contained only two values and their sum (a true classic): 11,1100000000000000 -11,0100000000000000 0,0999999999999996 To be fair, Peter later moderated this to some "Excel addition woes" but still named it "a strange Excel addition bug": http://news.office-watch.com/t/n.aspx?a=618 Thus, a lot of basic education about computers is still needed, so it seems. /gustav >>> Darryl.Collins at coles.com.au 26-06-2008 02:44 >>> If any of you have Excel issues, I highly recommend one of the Excel lists here. I have been subbed to both for years. L list is for Developer type issues http://peach.ease.lsoft.com/archives/excel-l.html G list is for more mundane Excel stuff. http://peach.ease.lsoft.com/archives/excel-g.html Both lists are very friendly and full of MVP types who really know their stuff. Also lots of fun like AccessD, and of course, free to sub and unsub. hth Darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Steve Turner Sent: Thursday, 26 June 2008 1:55 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Do While in VBA SO simple thanks Rocky, none of the example's in the book or code had that simple phrase just End Sub after the loop phrase. I've sent emails to two excel groups trying to find this answer and none replied. Access d Is the greatest. From Darryl.Collins at coles.com.au Thu Jun 26 02:25:26 2008 From: Darryl.Collins at coles.com.au (Darryl Collins) Date: Thu, 26 Jun 2008 17:25:26 +1000 Subject: [AccessD] Excel addition woes (was: Do While in VBA) Message-ID: <49DFE57FB126044B8A8B934E7AEA09ED09FD75E8@WPEXCH05.colesmyer.ad.cmltd.net.au> Gustav, yeah, we have this sort of thing pop up from time to time with folks asking why things don't seem to add up correctly. Old timer Doug McNutt from Excel-L normally pipes up and puts folks right - not sure they all understand what he is saying thought. Doug is pretty passionate about the whole 'floating point' issue. Here is a some basic info on this that he provided a while back. http://www.excelyourbusiness.com.au/FormulaHelp.htm#FormulaGreaterThan15 that I thought was worth keeping for future reference. Actually the whole "I have a some 17 digit numbers that wont add up" also comes around a few times a year. cheers Darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Gustav Brock Sent: Thursday, 26 June 2008 4:55 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Excel addition woes (was: Do While in VBA) Hi Darryl So do these lists express a consensus regarding Woody's recent stupid "discovery" of a "bug" i Excel caused by floating point issues when performing arithmetic? First article is here: http://news.office-watch.com/t/n.aspx?a=609 I wrote Peter Deegan about this and how it can be demonstrated much simpler: You are demonstration nothing but the extreme basics of floating number handling by computers. This has nothing to do with Excel, only the way the user misbehaves by not applying the correct rounding (format). In the attached worksheet you'll se that this "error" can be demonstrated with two (2!) numbers only if a rounding of 16 decimals is applied. Contrary, your example will display correctly - as shown - if a format of two decimals is applied. The big error source regarding this topic is not Excel but the fact that so many users do not know which tool they have at hand and how to utilize it. You don't that many numbers as the article outlines. My attached Excel sheet contained only two values and their sum (a true classic): 11,1100000000000000 -11,0100000000000000 0,0999999999999996 To be fair, Peter later moderated this to some "Excel addition woes" but still named it "a strange Excel addition bug": http://news.office-watch.com/t/n.aspx?a=618 Thus, a lot of basic education about computers is still needed, so it seems. /gustav >>> Darryl.Collins at coles.com.au 26-06-2008 02:44 >>> If any of you have Excel issues, I highly recommend one of the Excel lists here. I have been subbed to both for years. L list is for Developer type issues http://peach.ease.lsoft.com/archives/excel-l.html G list is for more mundane Excel stuff. http://peach.ease.lsoft.com/archives/excel-g.html Both lists are very friendly and full of MVP types who really know their stuff. Also lots of fun like AccessD, and of course, free to sub and unsub. hth Darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Steve Turner Sent: Thursday, 26 June 2008 1:55 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Do While in VBA SO simple thanks Rocky, none of the example's in the book or code had that simple phrase just End Sub after the loop phrase. I've sent emails to two excel groups trying to find this answer and none replied. Access d Is the greatest. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. From robert at servicexp.com Thu Jun 26 06:20:55 2008 From: robert at servicexp.com (Robert) Date: Thu, 26 Jun 2008 07:20:55 -0400 Subject: [AccessD] Filter Main Form with Subform... In-Reply-To: <02c501c8d70c$bafbe970$2f8601c7@SusanOne> References: <49DFE57FB126044B8A8B934E7AEA09ED09FD7591@WPEXCH05.colesmyer.ad.cmltd.net.au><000001c8d525$ded275a0$9c7760e0$@com> <001301c8d640$8c565be0$a50313a0$@com><011a01c8d649$bd2319d0$2f8601c7@SusanOne> <001701c8d653$db149d10$913dd730$@com><021001c8d654$cf64dd30$2f8601c7@SusanOne> <000001c8d6b5$ffedac50$ffc904f0$@com><016001c8d6c6$3755fcf0$2f8601c7@SusanOne> <000001c8d70a$833766b0$89a63410$@com> <02c501c8d70c$bafbe970$2f8601c7@SusanOne> Message-ID: <000601c8d77e$b4242d20$1c6c8760$@com> Thanks Susan, I will look further into it.. WBR ~Robert -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Susan Harkins Sent: Wednesday, June 25, 2008 5:45 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Filter Main Form with Subform... > So I guess from what your saying is that I need to look at using SQL to > filter the main forms query? How would I apply that SQL to the existing > query in the main form? If you could not tell I don't know much about > SQL. > :-( ========Use the subform's Double Click event (or the After Update, whatever works best, I just like the Double Click in a subform) to force the main form to requery, using the subform's value as the filtering criteria: Dim strSQL As String strSQL = "SELECT * FROM table WHERE criteriafield = " & subform.Value Forms!mainform.RecordSource = strSQL A couple of things -- don't forget to add string delimiters if needed: strSQL = "SELECT * FROM table WHERE criteriafield = '" & subform.Value & "'" Forms!mainform.RecordSource = strSQL And that relies on the subform's value equaling the criteria value, which it might not -- you'll have to accommodate for that. But this is just one way -- lots of ways and I think using the subform's parent and child link properties to specify the main form is probably easier and might have the same results. Susan H. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From sturner at mseco.com Thu Jun 26 09:05:15 2008 From: sturner at mseco.com (Steve Turner) Date: Thu, 26 Jun 2008 09:05:15 -0500 Subject: [AccessD] Do While in VBA In-Reply-To: <49DFE57FB126044B8A8B934E7AEA09ED09FD75D4@WPEXCH05.colesmyer.ad.cmltd.net.au> References: <49DFE57FB126044B8A8B934E7AEA09ED09FD75D4@WPEXCH05.colesmyer.ad.cmltd.net.au> Message-ID: <31B7F3CC8CC4454F87FCBEFF82B6189201E200C2@PE2850-03.mseco.com> Thanks Darryl, I'll look at them. I should have taken the time to get more familiar with Excel VBA years ago but it takes time I don't have sometimes. I learned lotus macros years ago and still use some today because they are simple and can do things easier for me. What's a pain in Excel is that sometimes I have a macro in one sheet that doesn't work in another like the Do while loop I was using. My old brain is suffering from information overload. Every time I put something in something goes out. Steve -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Wednesday, June 25, 2008 7:45 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Do While in VBA If any of you have Excel issues, I highly recommend one of the Excel lists here. I have been subbed to both for years. L list is for Developer type issues http://peach.ease.lsoft.com/archives/excel-l.html G list is for more mundane Excel stuff. http://peach.ease.lsoft.com/archives/excel-g.html Both lists are very friendly and full of MVP types who really know their stuff. Also lots of fun like AccessD, and of course, free to sub and unsub. hth Darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Steve Turner Sent: Thursday, 26 June 2008 1:55 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Do While in VBA SO simple thanks Rocky, none of the example's in the book or code had that simple phrase just End Sub after the loop phrase. I've sent emails to two excel groups trying to find this answer and none replied. Access d Is the greatest. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Wednesday, June 25, 2008 10:42 AM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Do While in VBA If Cell has 'something' then Exit Do? Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Steve Turner Sent: Wednesday, June 25, 2008 8:31 AM To: Access Developers discussion and problem solving Subject: [AccessD] Do While in VBA Hello, Quick question I know someone can help with. I have a VBA macro in Excel I'm working on with a Do While loop in it. I want it to stop on a cell I put something in to make it stop. Right now it just bypasses what ever I put in the cell. Its puzzling why. Can't use the "" blank cell because the macro is deleting blank rows. Declared a string var but what I put in it may be somehow different than what shows up in the cell by some small amount like Stop, "Stop" tried both but it didn't work. Using Dim dontdo$ dontdo = "Stop" x = ActiveCell.Row Do While ActiveCell(x, 1).Value <> dontdo. Steve A. Turner Controller Mid-South Engineering Co. Inc P.O. Box 1399 Hot Springs, AR 71902 E-Mail: sturner at mseco.com and saturner at mseco.com Phone:(501)321-2276 Fax: (501)321-4750 -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/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 email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Jun 26 09:50:45 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 26 Jun 2008 07:50:45 -0700 Subject: [AccessD] Excel addition woes (was: Do While in VBA) In-Reply-To: References: Message-ID: Sure, Gustav, but Excel is where people usually encounter floating point errors for the first time, so they think of it as an Excel problem even though we all know it isn't. Newsletters like that tend to aim at the lowest common denominator, as you know very well. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, June 25, 2008 11:55 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Excel addition woes (was: Do While in VBA) Hi Darryl So do these lists express a consensus regarding Woody's recent stupid "discovery" of a "bug" i Excel caused by floating point issues when performing arithmetic? First article is here: http://news.office-watch.com/t/n.aspx?a=609 I wrote Peter Deegan about this and how it can be demonstrated much simpler: You are demonstration nothing but the extreme basics of floating number handling by computers. This has nothing to do with Excel, only the way the user misbehaves by not applying the correct rounding (format). In the attached worksheet you'll se that this "error" can be demonstrated with two (2!) numbers only if a rounding of 16 decimals is applied. Contrary, your example will display correctly - as shown - if a format of two decimals is applied. The big error source regarding this topic is not Excel but the fact that so many users do not know which tool they have at hand and how to utilize it. You don't that many numbers as the article outlines. My attached Excel sheet contained only two values and their sum (a true classic): 11,1100000000000000 -11,0100000000000000 0,0999999999999996 To be fair, Peter later moderated this to some "Excel addition woes" but still named it "a strange Excel addition bug": http://news.office-watch.com/t/n.aspx?a=618 Thus, a lot of basic education about computers is still needed, so it seems. /gustav >>> Darryl.Collins at coles.com.au 26-06-2008 02:44 >>> If any of you have Excel issues, I highly recommend one of the Excel lists here. I have been subbed to both for years. L list is for Developer type issues http://peach.ease.lsoft.com/archives/excel-l.html G list is for more mundane Excel stuff. http://peach.ease.lsoft.com/archives/excel-g.html Both lists are very friendly and full of MVP types who really know their stuff. Also lots of fun like AccessD, and of course, free to sub and unsub. hth Darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Steve Turner Sent: Thursday, 26 June 2008 1:55 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Do While in VBA SO simple thanks Rocky, none of the example's in the book or code had that simple phrase just End Sub after the loop phrase. I've sent emails to two excel groups trying to find this answer and none replied. Access d Is the greatest. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Gustav at cactus.dk Thu Jun 26 10:18:47 2008 From: Gustav at cactus.dk (Gustav Brock) Date: Thu, 26 Jun 2008 17:18:47 +0200 Subject: [AccessD] Excel addition woes (was: Do While in VBA) Message-ID: Hi Charlotte Right, but Woody & Co. should know better than the average user of Excel. This also shows, that perhaps MS should pay less attention to fancy no-value topics as ribbons, smarttags and so on, and focus on key issues like this. For example, Excel could (by default) pop a message first time you open a new WorkSheet: Do you wish to switch from scientific numbers to financial numbers? Yes - No - Help If the user answer Yes, default formatting would be set to decimal and two decimals. /gustav >>> cfoust at infostatsystems.com 26-06-2008 16:50 >>> Sure, Gustav, but Excel is where people usually encounter floating point errors for the first time, so they think of it as an Excel problem even though we all know it isn't. Newsletters like that tend to aim at the lowest common denominator, as you know very well. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gustav Brock Sent: Wednesday, June 25, 2008 11:55 PM To: accessd at databaseadvisors.com Subject: Re: [AccessD] Excel addition woes (was: Do While in VBA) Hi Darryl So do these lists express a consensus regarding Woody's recent stupid "discovery" of a "bug" i Excel caused by floating point issues when performing arithmetic? First article is here: http://news.office-watch.com/t/n.aspx?a=609 I wrote Peter Deegan about this and how it can be demonstrated much simpler: You are demonstration nothing but the extreme basics of floating number handling by computers. This has nothing to do with Excel, only the way the user misbehaves by not applying the correct rounding (format). In the attached worksheet you'll se that this "error" can be demonstrated with two (2!) numbers only if a rounding of 16 decimals is applied. Contrary, your example will display correctly - as shown - if a format of two decimals is applied. The big error source regarding this topic is not Excel but the fact that so many users do not know which tool they have at hand and how to utilize it. You don't that many numbers as the article outlines. My attached Excel sheet contained only two values and their sum (a true classic): 11,1100000000000000 -11,0100000000000000 0,0999999999999996 To be fair, Peter later moderated this to some "Excel addition woes" but still named it "a strange Excel addition bug": http://news.office-watch.com/t/n.aspx?a=618 Thus, a lot of basic education about computers is still needed, so it seems. /gustav >>> Darryl.Collins at coles.com.au 26-06-2008 02:44 >>> If any of you have Excel issues, I highly recommend one of the Excel lists here. I have been subbed to both for years. L list is for Developer type issues http://peach.ease.lsoft.com/archives/excel-l.html G list is for more mundane Excel stuff. http://peach.ease.lsoft.com/archives/excel-g.html Both lists are very friendly and full of MVP types who really know their stuff. Also lots of fun like AccessD, and of course, free to sub and unsub. hth Darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Steve Turner Sent: Thursday, 26 June 2008 1:55 AM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Do While in VBA SO simple thanks Rocky, none of the example's in the book or code had that simple phrase just End Sub after the loop phrase. I've sent emails to two excel groups trying to find this answer and none replied. Access d Is the greatest. From ssharkins at gmail.com Thu Jun 26 10:25:37 2008 From: ssharkins at gmail.com (Susan Harkins) Date: Thu, 26 Jun 2008 11:25:37 -0400 Subject: [AccessD] Excel addition woes (was: Do While in VBA) References: Message-ID: <021f01c8d7a0$e6e70c60$2f8601c7@SusanOne> You know Gustav, everybody gets it wrong occasionally. If the information they provided on how to avoid the problem doesn't have an error, I'd forget it... I certainly wouldn't suspect the rest of his material. It is possible that he didn't know. It's also possible that he does know, but not all explanations translate well to content that must read the most readers. Albeit, it wouldn't have been that difficult to say, "This isn't an Excel specific problem..." We're not perfect. Try as we might, sometimes, we just overlook stuff. Susan H. > Right, but Woody & Co. should know better than the average user of Excel. From mmattys at rochester.rr.com Thu Jun 26 10:42:49 2008 From: mmattys at rochester.rr.com (Michael R Mattys) Date: Thu, 26 Jun 2008 11:42:49 -0400 Subject: [AccessD] Excel addition woes (was: Do While in VBA) References: <021f01c8d7a0$e6e70c60$2f8601c7@SusanOne> Message-ID: <003a01c8d7a3$4a745c40$0302a8c0@Laptop> Yes, he's very good at this high-wire crossing ... Careful, Gustav, careful! ----- Original Message ----- From: "Susan Harkins" To: "Access Developers discussion and problem solving" Sent: Thursday, June 26, 2008 11:25 AM Subject: Re: [AccessD] Excel addition woes (was: Do While in VBA) > You know Gustav ... From rockysmolin at bchacc.com Thu Jun 26 10:48:05 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Thu, 26 Jun 2008 08:48:05 -0700 Subject: [AccessD] Feedback Needed Round 4 Message-ID: <004601c8d7a4$06150b70$0301a8c0@HAL9005> Dear List: We're close. Hopefully this is the last time I have to impose on you guys. Karen has incorporated much of what you suggested into the redesign of the Beach Access Software site. So if you have a few moments please take a look and let us know what else we should do. http://www.bchacc.com/beachtemp/index.html M,MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com From markamatte at hotmail.com Thu Jun 26 11:34:49 2008 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 26 Jun 2008 16:34:49 +0000 Subject: [AccessD] Feedback Needed Round 4 In-Reply-To: <004601c8d7a4$06150b70$0301a8c0@HAL9005> References: <004601c8d7a4$06150b70$0301a8c0@HAL9005> Message-ID: Rocky, Looking better....still some scrolling. I'm getting an error on the projects page. Also on projects...everytime I mouse over the list at the bottom...it starts reloading some items...not sure what the purpose...if I were had a slower connection...might be an issue. Hope it helps, Mark > From: rockysmolin at bchacc.com > To: accessd at databaseadvisors.com > Date: Thu, 26 Jun 2008 08:48:05 -0700 > Subject: [AccessD] Feedback Needed Round 4 > > Dear List: > > We're close. Hopefully this is the last time I have to impose on you guys. > > Karen has incorporated much of what you suggested into the redesign of the > Beach Access Software site. So if you have a few moments please take a look > and let us know what else we should do. > > http://www.bchacc.com/beachtemp/index.html > > M,MTIA > > > > > > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > www.e-z-mrp.com > > www.bchacc.com > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ Need to know now? Get instant answers with Windows Live Messenger. http://www.windowslive.com/messenger/connect_your_way.html?ocid=TXT_TAGLM_WL_Refresh_messenger_062008 From krosenstiel at comcast.net Thu Jun 26 11:52:58 2008 From: krosenstiel at comcast.net (krosenstiel at comcast.net) Date: Thu, 26 Jun 2008 16:52:58 +0000 Subject: [AccessD] Feedback Needed Round 4 Message-ID: <062620081652.23095.4863C96A000253D100005A372216566276040A079B9C020A9C019D05@comcast.net> What error is it? There's a bunch of JavaScript on the projects and gallery pages -- that's what does the animation. -- Karen Rosenstiel Seattle WA USA -------------- Original message ---------------------- From: Mark A Matte > > Rocky, > > Looking better....still some scrolling. > > I'm getting an error on the projects page. Also on projects...everytime I mouse > over the list at the bottom...it starts reloading some items...not sure what the > purpose...if I were had a slower connection...might be an issue. > > Hope it helps, > > Mark > > > > From: rockysmolin at bchacc.com > > To: accessd at databaseadvisors.com > > Date: Thu, 26 Jun 2008 08:48:05 -0700 > > Subject: [AccessD] Feedback Needed Round 4 > > > > Dear List: > > > > We're close. Hopefully this is the last time I have to impose on you guys. > > > > Karen has incorporated much of what you suggested into the redesign of the > > Beach Access Software site. So if you have a few moments please take a look > > and let us know what else we should do. > > > > http://www.bchacc.com/beachtemp/index.html > > > > M,MTIA > > > > > > > > > > > > > > > > Rocky Smolin > > > > Beach Access Software > > > > 858-259-4334 > > > > www.e-z-mrp.com > > > > www.bchacc.com > > > > > > > > > > > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > _________________________________________________________________ > Need to know now? Get instant answers with Windows Live Messenger. > http://www.windowslive.com/messenger/connect_your_way.html?ocid=TXT_TAGLM_WL_Ref > resh_messenger_062008 > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From markamatte at hotmail.com Thu Jun 26 12:00:41 2008 From: markamatte at hotmail.com (Mark A Matte) Date: Thu, 26 Jun 2008 17:00:41 +0000 Subject: [AccessD] Feedback Needed Round 4 In-Reply-To: <062620081652.23095.4863C96A000253D100005A372216566276040A079B9C020A9C019D05@comcast.net> References: <062620081652.23095.4863C96A000253D100005A372216566276040A079B9C020A9C019D05@comcast.net> Message-ID: If I double click on the javascript error in the bottom right...here is what it says: Line: 12 Char: 1 Error: Object expected Code:0 URL:http://www.bchacc.com/beachtemp/files/projects.htm Mark > From: krosenstiel at comcast.net > To: accessd at databaseadvisors.com > Date: Thu, 26 Jun 2008 16:52:58 +0000 > Subject: Re: [AccessD] Feedback Needed Round 4 > > What error is it? There's a bunch of JavaScript on the projects and gallery pages -- that's what does the animation. > > -- > Karen Rosenstiel > Seattle WA USA > > -------------- Original message ---------------------- > From: Mark A Matte >> >> Rocky, >> >> Looking better....still some scrolling. >> >> I'm getting an error on the projects page. Also on projects...everytime I mouse >> over the list at the bottom...it starts reloading some items...not sure what the >> purpose...if I were had a slower connection...might be an issue. >> >> Hope it helps, >> >> Mark >> >> >>> From: rockysmolin at bchacc.com >>> To: accessd at databaseadvisors.com >>> Date: Thu, 26 Jun 2008 08:48:05 -0700 >>> Subject: [AccessD] Feedback Needed Round 4 >>> >>> Dear List: >>> >>> We're close. Hopefully this is the last time I have to impose on you guys. >>> >>> Karen has incorporated much of what you suggested into the redesign of the >>> Beach Access Software site. So if you have a few moments please take a look >>> and let us know what else we should do. >>> >>> http://www.bchacc.com/beachtemp/index.html >>> >>> M,MTIA >>> >>> >>> >>> >>> >>> >>> >>> Rocky Smolin >>> >>> Beach Access Software >>> >>> 858-259-4334 >>> >>> www.e-z-mrp.com >>> >>> www.bchacc.com >>> >>> >>> >>> >>> >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >> >> _________________________________________________________________ >> Need to know now? Get instant answers with Windows Live Messenger. >> http://www.windowslive.com/messenger/connect_your_way.html?ocid=TXT_TAGLM_WL_Ref >> resh_messenger_062008 >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ Need to know now? Get instant answers with Windows Live Messenger. http://www.windowslive.com/messenger/connect_your_way.html?ocid=TXT_TAGLM_WL_Refresh_messenger_062008 From andy at minstersystems.co.uk Thu Jun 26 12:05:11 2008 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 26 Jun 2008 18:05:11 +0100 Subject: [AccessD] Two more issues on my Word document automation In-Reply-To: <4862AE32.5030407@torchlake.com> Message-ID: <004d01c8d7ae$cbad9050$51eb2a50@minster33c3r25> Hi Tina Don't know about point 1 but point 2 shouldn't be too hard. What's the code look like that runs the query? If you're using a querydef then that gives you a .RecordsAffected property after executing and you can test for that being zero. You can't do that if you're sing Docmd.Openquery. So how're you doing it at the moment? Is point 1 some security setting in Word perhaps? -- Andy Lacey http://www.minstersystems.co.uk >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >Tina Norris Fields >Sent: 25 June 2008 21:45 >To: AccessD at databaseadvisors.com >Subject: [AccessD] Two more issues on my Word document automation > > >Hi again, > >First, thanks for the wonderful help so far. My form is coming along >very nicely. The user selects the date from a calendar control for >records to be processed and clicks a button to set that date. >The user >then clicks a button to run the make-table query, a message >box appears >to let the user know that is completed, and the user clicks OK to >dismiss message box. The user then clicks a button to launch Word and >open the contributions merge letter. So far, so good. > >Two issues: > >1. The Word document is a merge form letter expecting data from the >temporary table in the database. I would like to dismiss the message >box that pops up asking the user to confirm that he (or she) wants the >form letter to accept the data from the database - that is, I >don't want >that message box to appear, but I don't see where in the Word document >to turn it off. If it's something I can set for this document, does >anybody know where that setting is? If I can't set it in the Word >document, is there a way for me to turn off that message box >programmatically from the database? > >2. Other issue - if a user selects a date for which there are no >records, and clicks the button to run the query, I want the >message box >to tell the user there are no records for that date. > >If all this works well, a user will get into the Word >document, ready to >complete the merge, with 4 mouse-clicks. That will make my friends at >Habitat very happy. Down the road, when I am confident the automation >is working right, and the BE and FE are properly in place, I want to >combine the actions of the buttons on the form so that the user will >simply pick the appropriate date and click a GO button. But, as I >mentioned earlier, we are trying to live in this house while we gut it >and totally remodel it - so I will be very happy with incremental >improvements. > >Thanks again for all the help, >Tina > > > > >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > From krosenstiel at comcast.net Thu Jun 26 12:35:02 2008 From: krosenstiel at comcast.net (krosenstiel at comcast.net) Date: Thu, 26 Jun 2008 17:35:02 +0000 Subject: [AccessD] Feedback Needed Round 4 Message-ID: <062620081735.9078.4863D346000B33A6000023762215575474040A079B9C020A9C019D05@comcast.net> Thanks, that's helpful. I will check on it tonight. -- Karen Rosenstiel Seattle WA USA -------------- Original message ---------------------- From: Mark A Matte > > If I double click on the javascript error in the bottom right...here is what it > says: > > Line: 12 > Char: 1 > Error: Object expected > Code:0 > URL:http://www.bchacc.com/beachtemp/files/projects.htm > > Mark > > > > From: krosenstiel at comcast.net > > To: accessd at databaseadvisors.com > > Date: Thu, 26 Jun 2008 16:52:58 +0000 > > Subject: Re: [AccessD] Feedback Needed Round 4 > > > > What error is it? There's a bunch of JavaScript on the projects and gallery > pages -- that's what does the animation. > > > > -- > > Karen Rosenstiel > > Seattle WA USA > > > > -------------- Original message ---------------------- > > From: Mark A Matte > >> > >> Rocky, > >> > >> Looking better....still some scrolling. > >> > >> I'm getting an error on the projects page. Also on projects...everytime I > mouse > >> over the list at the bottom...it starts reloading some items...not sure what > the > >> purpose...if I were had a slower connection...might be an issue. > >> > >> Hope it helps, > >> > >> Mark > >> > >> > >>> From: rockysmolin at bchacc.com > >>> To: accessd at databaseadvisors.com > >>> Date: Thu, 26 Jun 2008 08:48:05 -0700 > >>> Subject: [AccessD] Feedback Needed Round 4 > >>> > >>> Dear List: > >>> > >>> We're close. Hopefully this is the last time I have to impose on you guys. > >>> > >>> Karen has incorporated much of what you suggested into the redesign of the > >>> Beach Access Software site. So if you have a few moments please take a look > >>> and let us know what else we should do. > >>> > >>> http://www.bchacc.com/beachtemp/index.html > >>> > >>> M,MTIA > >>> > >>> > >>> > >>> > >>> > >>> > >>> > >>> Rocky Smolin > >>> > >>> Beach Access Software > >>> > >>> 858-259-4334 > >>> > >>> www.e-z-mrp.com > >>> > >>> www.bchacc.com > >>> > >>> > >>> > >>> > >>> > >>> > >>> -- > >>> AccessD mailing list > >>> AccessD at databaseadvisors.com > >>> http://databaseadvisors.com/mailman/listinfo/accessd > >>> Website: http://www.databaseadvisors.com > >> > >> _________________________________________________________________ > >> Need to know now? Get instant answers with Windows Live Messenger. > >> > http://www.windowslive.com/messenger/connect_your_way.html?ocid=TXT_TAGLM_WL_Ref > >> resh_messenger_062008 > >> -- > >> AccessD mailing list > >> AccessD at databaseadvisors.com > >> http://databaseadvisors.com/mailman/listinfo/accessd > >> Website: http://www.databaseadvisors.com > > > > -- > > AccessD mailing list > > AccessD at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/accessd > > Website: http://www.databaseadvisors.com > > _________________________________________________________________ > Need to know now? Get instant answers with Windows Live Messenger. > http://www.windowslive.com/messenger/connect_your_way.html?ocid=TXT_TAGLM_WL_Ref > resh_messenger_062008 > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com From tinanfields at torchlake.com Thu Jun 26 13:21:11 2008 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Thu, 26 Jun 2008 14:21:11 -0400 Subject: [AccessD] Two more issues on my Word document automation In-Reply-To: <004d01c8d7ae$cbad9050$51eb2a50@minster33c3r25> References: <004d01c8d7ae$cbad9050$51eb2a50@minster33c3r25> Message-ID: <4863DE17.4030702@torchlake.com> Hi Andy, The OnClick event procedure of the button btnMakeTableContribs is as follows: = = = = = Private Sub btnMakeTableContribs_Click() On Error GoTo Err_btnMakeTableContribs_Click Dim stDocName As String stDocName = "qryPrintListForContributionTypeOfMember_t" DoCmd.SetWarnings False DoCmd.OpenQuery stDocName, acNormal, acEdit DoCmd.SetWarnings True MsgBox "Done" Exit_btnMakeTableContribs_Click: Exit Sub Err_btnMakeTableContribs_Click: MsgBox Err.Description DoCmd.SetWarnings True Resume Exit_btnMakeTableContribs_Click End Sub = = = = = As you see, it does use the DoCmd.OpenQuery. What would be a better way to do it? Isn't there a 'no data' sort of property or result I could use? (Don't know what it's called.) Teach me - I'm eager to learn! Thanks, Tina Andy Lacey wrote: > Hi Tina > Don't know about point 1 but point 2 shouldn't be too hard. What's the code > look like that runs the query? If you're using a querydef then that gives > you a .RecordsAffected property after executing and you can test for that > being zero. You can't do that if you're sing Docmd.Openquery. So how're you > doing it at the moment? > > Is point 1 some security setting in Word perhaps? > > -- Andy Lacey > http://www.minstersystems.co.uk > > >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >> Tina Norris Fields >> Sent: 25 June 2008 21:45 >> To: AccessD at databaseadvisors.com >> Subject: [AccessD] Two more issues on my Word document automation >> >> >> Hi again, >> >> First, thanks for the wonderful help so far. My form is coming along >> very nicely. The user selects the date from a calendar control for >> records to be processed and clicks a button to set that date. >> The user >> then clicks a button to run the make-table query, a message >> box appears >> to let the user know that is completed, and the user clicks OK to >> dismiss message box. The user then clicks a button to launch Word and >> open the contributions merge letter. So far, so good. >> >> Two issues: >> >> 1. The Word document is a merge form letter expecting data from the >> temporary table in the database. I would like to dismiss the message >> box that pops up asking the user to confirm that he (or she) wants the >> form letter to accept the data from the database - that is, I >> don't want >> that message box to appear, but I don't see where in the Word document >> to turn it off. If it's something I can set for this document, does >> anybody know where that setting is? If I can't set it in the Word >> document, is there a way for me to turn off that message box >> programmatically from the database? >> >> 2. Other issue - if a user selects a date for which there are no >> records, and clicks the button to run the query, I want the >> message box >> to tell the user there are no records for that date. >> >> If all this works well, a user will get into the Word >> document, ready to >> complete the merge, with 4 mouse-clicks. That will make my friends at >> Habitat very happy. Down the road, when I am confident the automation >> is working right, and the BE and FE are properly in place, I want to >> combine the actions of the buttons on the form so that the user will >> simply pick the appropriate date and click a GO button. But, as I >> mentioned earlier, we are trying to live in this house while we gut it >> and totally remodel it - so I will be very happy with incremental >> improvements. >> >> Thanks again for all the help, >> Tina >> >> >> >> >> -- >> 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 Jun 26 14:41:30 2008 From: andy at minstersystems.co.uk (Andy Lacey) Date: Thu, 26 Jun 2008 20:41:30 +0100 Subject: [AccessD] Two more issues on my Word document automation In-Reply-To: <4863DE17.4030702@torchlake.com> Message-ID: <005b01c8d7c4$a1b25540$51eb2a50@minster33c3r25> Mm well it rather depends what's in that query. Is it appending to a table or something? Does it use anything like =Forms!etc as criteria? If the answrs are yes and no then try this Dim qdf as querydef Set qdf=currentdb.QueryDefs("qryPrintListForContributionTypeOfMember_t") qdf.Execute If qdf.recordsAffected=0 then MsgBox "No records found" Else MsgBox "Done" End If Qdf.close Set qdf=Nothing Give that a try first. -- Andy Lacey http://www.minstersystems.co.uk >-----Original Message----- >From: accessd-bounces at databaseadvisors.com >[mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >Tina Norris Fields >Sent: 26 June 2008 19:21 >To: Access Developers discussion and problem solving >Subject: Re: [AccessD] Two more issues on my Word document automation > > >Hi Andy, > >The OnClick event procedure of the button btnMakeTableContribs is as >follows: >= = = = = >Private Sub btnMakeTableContribs_Click() >On Error GoTo Err_btnMakeTableContribs_Click > > Dim stDocName As String > > stDocName = "qryPrintListForContributionTypeOfMember_t" > DoCmd.SetWarnings False > DoCmd.OpenQuery stDocName, acNormal, acEdit > DoCmd.SetWarnings True > MsgBox "Done" > >Exit_btnMakeTableContribs_Click: > Exit Sub > >Err_btnMakeTableContribs_Click: > MsgBox Err.Description > DoCmd.SetWarnings True > Resume Exit_btnMakeTableContribs_Click > >End Sub >= = = = = > >As you see, it does use the DoCmd.OpenQuery. What would be a >better way >to do it? Isn't there a 'no data' sort of property or result I could >use? (Don't know what it's called.) > >Teach me - I'm eager to learn! Thanks, > >Tina > > >Andy Lacey wrote: >> Hi Tina >> Don't know about point 1 but point 2 shouldn't be too hard. >What's the >> code look like that runs the query? If you're using a querydef then >> that gives you a .RecordsAffected property after executing >and you can >> test for that being zero. You can't do that if you're sing >> Docmd.Openquery. So how're you doing it at the moment? >> >> Is point 1 some security setting in Word perhaps? >> >> -- Andy Lacey >> http://www.minstersystems.co.uk >> >> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >>> Tina Norris Fields >>> Sent: 25 June 2008 21:45 >>> To: AccessD at databaseadvisors.com >>> Subject: [AccessD] Two more issues on my Word document automation >>> >>> >>> Hi again, >>> >>> First, thanks for the wonderful help so far. My form is >coming along >>> very nicely. The user selects the date from a calendar control for >>> records to be processed and clicks a button to set that date. >>> The user >>> then clicks a button to run the make-table query, a message >>> box appears >>> to let the user know that is completed, and the user clicks OK to >>> dismiss message box. The user then clicks a button to >launch Word and >>> open the contributions merge letter. So far, so good. >>> >>> Two issues: >>> >>> 1. The Word document is a merge form letter expecting data from the >>> temporary table in the database. I would like to dismiss >the message >>> box that pops up asking the user to confirm that he (or >she) wants the >>> form letter to accept the data from the database - that is, I >>> don't want >>> that message box to appear, but I don't see where in the >Word document >>> to turn it off. If it's something I can set for this >document, does >>> anybody know where that setting is? If I can't set it in the Word >>> document, is there a way for me to turn off that message box >>> programmatically from the database? >>> >>> 2. Other issue - if a user selects a date for which there are no >>> records, and clicks the button to run the query, I want the >>> message box >>> to tell the user there are no records for that date. >>> >>> If all this works well, a user will get into the Word >>> document, ready to >>> complete the merge, with 4 mouse-clicks. That will make my >friends at >>> Habitat very happy. Down the road, when I am confident the >automation >>> is working right, and the BE and FE are properly in place, >I want to >>> combine the actions of the buttons on the form so that the >user will >>> simply pick the appropriate date and click a GO button. But, as I >>> mentioned earlier, we are trying to live in this house >while we gut it >>> and totally remodel it - so I will be very happy with incremental >>> improvements. >>> >>> Thanks again for all the help, >>> Tina >>> >>> >>> >>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >>> >>> >> >> >> >-- >AccessD mailing list >AccessD at databaseadvisors.com >http://databaseadvisors.com/mailman/listinfo/accessd >Website: http://www.databaseadvisors.com > > From tinanfields at torchlake.com Thu Jun 26 16:36:15 2008 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Thu, 26 Jun 2008 17:36:15 -0400 Subject: [AccessD] Two more issues on my Word document automation In-Reply-To: <005b01c8d7c4$a1b25540$51eb2a50@minster33c3r25> References: <005b01c8d7c4$a1b25540$51eb2a50@minster33c3r25> Message-ID: <48640BCF.7080209@torchlake.com> Hi Andy, The query makes a table of the records matching a date criterion - the DepositDate field criterion is [Forms]![frmContributionAcknowledge]![txtDepositDate]. So the answers are yes and yes. The first try with this code gave the message that the table already existed. I deleted the temporary table and ran the code again. This time it said there were too few parameters, that it expected 1. I do not know what that was about. I'll watch for your reply, and while waiting I will read up on querydef. Thanks again for all your assistance. Tina Andy Lacey wrote: > Mm well it rather depends what's in that query. Is it appending to a table > or something? Does it use anything like =Forms!etc as criteria? > > If the answrs are yes and no then try this > > Dim qdf as querydef > > Set qdf=currentdb.QueryDefs("qryPrintListForContributionTypeOfMember_t") > qdf.Execute > If qdf.recordsAffected=0 then > MsgBox "No records found" > Else > MsgBox "Done" > End If > Qdf.close > Set qdf=Nothing > > Give that a try first. > > -- Andy Lacey > http://www.minstersystems.co.uk > > >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >> Tina Norris Fields >> Sent: 26 June 2008 19:21 >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Two more issues on my Word document automation >> >> >> Hi Andy, >> >> The OnClick event procedure of the button btnMakeTableContribs is as >> follows: >> = = = = = >> Private Sub btnMakeTableContribs_Click() >> On Error GoTo Err_btnMakeTableContribs_Click >> >> Dim stDocName As String >> >> stDocName = "qryPrintListForContributionTypeOfMember_t" >> DoCmd.SetWarnings False >> DoCmd.OpenQuery stDocName, acNormal, acEdit >> DoCmd.SetWarnings True >> MsgBox "Done" >> >> Exit_btnMakeTableContribs_Click: >> Exit Sub >> >> Err_btnMakeTableContribs_Click: >> MsgBox Err.Description >> DoCmd.SetWarnings True >> Resume Exit_btnMakeTableContribs_Click >> >> End Sub >> = = = = = >> >> As you see, it does use the DoCmd.OpenQuery. What would be a >> better way >> to do it? Isn't there a 'no data' sort of property or result I could >> use? (Don't know what it's called.) >> >> Teach me - I'm eager to learn! Thanks, >> >> Tina >> >> >> Andy Lacey wrote: >> >>> Hi Tina >>> Don't know about point 1 but point 2 shouldn't be too hard. >>> >> What's the >> >>> code look like that runs the query? If you're using a querydef then >>> that gives you a .RecordsAffected property after executing >>> >> and you can >> >>> test for that being zero. You can't do that if you're sing >>> Docmd.Openquery. So how're you doing it at the moment? >>> >>> Is point 1 some security setting in Word perhaps? >>> >>> -- Andy Lacey >>> http://www.minstersystems.co.uk >>> >>> >>> >>>> -----Original Message----- >>>> From: accessd-bounces at databaseadvisors.com >>>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >>>> Tina Norris Fields >>>> Sent: 25 June 2008 21:45 >>>> To: AccessD at databaseadvisors.com >>>> Subject: [AccessD] Two more issues on my Word document automation >>>> >>>> >>>> Hi again, >>>> >>>> First, thanks for the wonderful help so far. My form is >>>> >> coming along >> >>>> very nicely. The user selects the date from a calendar control for >>>> records to be processed and clicks a button to set that date. >>>> The user >>>> then clicks a button to run the make-table query, a message >>>> box appears >>>> to let the user know that is completed, and the user clicks OK to >>>> dismiss message box. The user then clicks a button to >>>> >> launch Word and >> >>>> open the contributions merge letter. So far, so good. >>>> >>>> Two issues: >>>> >>>> 1. The Word document is a merge form letter expecting data from the >>>> temporary table in the database. I would like to dismiss >>>> >> the message >> >>>> box that pops up asking the user to confirm that he (or >>>> >> she) wants the >> >>>> form letter to accept the data from the database - that is, I >>>> don't want >>>> that message box to appear, but I don't see where in the >>>> >> Word document >> >>>> to turn it off. If it's something I can set for this >>>> >> document, does >> >>>> anybody know where that setting is? If I can't set it in the Word >>>> document, is there a way for me to turn off that message box >>>> programmatically from the database? >>>> >>>> 2. Other issue - if a user selects a date for which there are no >>>> records, and clicks the button to run the query, I want the >>>> message box >>>> to tell the user there are no records for that date. >>>> >>>> If all this works well, a user will get into the Word >>>> document, ready to >>>> complete the merge, with 4 mouse-clicks. That will make my >>>> >> friends at >> >>>> Habitat very happy. Down the road, when I am confident the >>>> >> automation >> >>>> is working right, and the BE and FE are properly in place, >>>> >> I want to >> >>>> combine the actions of the buttons on the form so that the >>>> >> user will >> >>>> simply pick the appropriate date and click a GO button. But, as I >>>> mentioned earlier, we are trying to live in this house >>>> >> while we gut it >> >>>> and totally remodel it - so I will be very happy with incremental >>>> improvements. >>>> >>>> Thanks again for all the help, >>>> Tina >>>> >>>> >>>> >>>> >>>> -- >>>> AccessD mailing list >>>> AccessD at databaseadvisors.com >>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>> Website: http://www.databaseadvisors.com >>>> >>>> >>>> >>>> >>> >>> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> Website: http://www.databaseadvisors.com >> >> >> > > > From joeo at appoli.com Thu Jun 26 17:00:50 2008 From: joeo at appoli.com (Joe O'Connell) Date: Thu, 26 Jun 2008 18:00:50 -0400 Subject: [AccessD] Two more issues on my Word document automation In-Reply-To: <48640BCF.7080209@torchlake.com> References: <005b01c8d7c4$a1b25540$51eb2a50@minster33c3r25> <48640BCF.7080209@torchlake.com> Message-ID: Tina, Instead of referencing the form in your query, try using a function to return the value: Instead of ... WHERE somefield = [Forms]![frmContributionAcknowledge]![txtDepositDate] Use this ... WHERE somefield = GetDepositDate() In a module put this function Public Function GetDepositDate() as Date GetDepositDate = [Forms]![frmContributionAcknowledge]![txtDepositDate] Exit Sub Joe O'Connell -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tina Norris Fields Sent: Thursday, June 26, 2008 5:36 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Two more issues on my Word document automation Hi Andy, The query makes a table of the records matching a date criterion - the DepositDate field criterion is [Forms]![frmContributionAcknowledge]![txtDepositDate]. So the answers are yes and yes. The first try with this code gave the message that the table already existed. I deleted the temporary table and ran the code again. This time it said there were too few parameters, that it expected 1. I do not know what that was about. I'll watch for your reply, and while waiting I will read up on querydef. Thanks again for all your assistance. Tina Andy Lacey wrote: > Mm well it rather depends what's in that query. Is it appending to a table > or something? Does it use anything like =Forms!etc as criteria? > > If the answrs are yes and no then try this > > Dim qdf as querydef > > Set qdf=currentdb.QueryDefs("qryPrintListForContributionTypeOfMember_t") > qdf.Execute > If qdf.recordsAffected=0 then > MsgBox "No records found" > Else > MsgBox "Done" > End If > Qdf.close > Set qdf=Nothing > > Give that a try first. > > -- Andy Lacey > http://www.minstersystems.co.uk > > >> -----Original Message----- >> From: accessd-bounces at databaseadvisors.com >> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >> Tina Norris Fields >> Sent: 26 June 2008 19:21 >> To: Access Developers discussion and problem solving >> Subject: Re: [AccessD] Two more issues on my Word document automation >> >> >> Hi Andy, >> >> The OnClick event procedure of the button btnMakeTableContribs is as >> follows: >> = = = = = >> Private Sub btnMakeTableContribs_Click() >> On Error GoTo Err_btnMakeTableContribs_Click >> >> Dim stDocName As String >> >> stDocName = "qryPrintListForContributionTypeOfMember_t" >> DoCmd.SetWarnings False >> DoCmd.OpenQuery stDocName, acNormal, acEdit >> DoCmd.SetWarnings True >> MsgBox "Done" >> >> Exit_btnMakeTableContribs_Click: >> Exit Sub >> >> Err_btnMakeTableContribs_Click: >> MsgBox Err.Description >> DoCmd.SetWarnings True >> Resume Exit_btnMakeTableContribs_Click >> >> End Sub >> = = = = = >> >> As you see, it does use the DoCmd.OpenQuery. What would be a >> better way >> to do it? Isn't there a 'no data' sort of property or result I could >> use? (Don't know what it's called.) >> >> Teach me - I'm eager to learn! Thanks, >> >> Tina >> >> >> Andy Lacey wrote: >> >>> Hi Tina >>> Don't know about point 1 but point 2 shouldn't be too hard. >>> >> What's the >> >>> code look like that runs the query? If you're using a querydef then >>> that gives you a .RecordsAffected property after executing >>> >> and you can >> >>> test for that being zero. You can't do that if you're sing >>> Docmd.Openquery. So how're you doing it at the moment? >>> >>> Is point 1 some security setting in Word perhaps? >>> >>> -- Andy Lacey >>> http://www.minstersystems.co.uk >>> >>> >>> >>>> -----Original Message----- >>>> From: accessd-bounces at databaseadvisors.com >>>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >>>> Tina Norris Fields >>>> Sent: 25 June 2008 21:45 >>>> To: AccessD at databaseadvisors.com >>>> Subject: [AccessD] Two more issues on my Word document automation >>>> >>>> >>>> Hi again, >>>> >>>> First, thanks for the wonderful help so far. My form is >>>> >> coming along >> >>>> very nicely. The user selects the date from a calendar control for >>>> records to be processed and clicks a button to set that date. >>>> The user >>>> then clicks a button to run the make-table query, a message >>>> box appears >>>> to let the user know that is completed, and the user clicks OK to >>>> dismiss message box. The user then clicks a button to >>>> >> launch Word and >> >>>> open the contributions merge letter. So far, so good. >>>> >>>> Two issues: >>>> >>>> 1. The Word document is a merge form letter expecting data from the >>>> temporary table in the database. I would like to dismiss >>>> >> the message >> >>>> box that pops up asking the user to confirm that he (or >>>> >> she) wants the >> >>>> form letter to accept the data from the database - that is, I >>>> don't want >>>> that message box to appear, but I don't see where in the >>>> >> Word document >> >>>> to turn it off. If it's something I can set for this >>>> >> document, does >> >>>> anybody know where that setting is? If I can't set it in the Word >>>> document, is there a way for me to turn off that message box >>>> programmatically from the database? >>>> >>>> 2. Other issue - if a user selects a date for which there are no >>>> records, and clicks the button to run the query, I want the >>>> message box >>>> to tell the user there are no records for that date. >>>> >>>> If all this works well, a user will get into the Word >>>> document, ready to >>>> complete the merge, with 4 mouse-clicks. That will make my >>>> >> friends at >> >>>> Habitat very happy. Down the road, when I am confident the >>>> >> automation >> >>>> is working right, and the BE and FE are properly in place, >>>> >> I want to >> >>>> combine the actions of the buttons on the form so that the >>>> >> user will >> >>>> simply pick the appropriate date and click a GO button. But, as I >>>> mentioned earlier, we are trying to live in this house >>>> >> while we gut it >> >>>> and totally remodel it - so I will be very happy with incremental >>>> improvements. >>>> >>>> Thanks again for all the help, >>>> Tina >>>> >>>> >>>> >>>> >>>> -- >>>> AccessD mailing list >>>> AccessD at databaseadvisors.com >>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>> Website: http://www.databaseadvisors.com >>>> >>>> >>>> >>>> >>> >>> >> -- >> AccessD mailing list >> AccessD at databaseadvisors.com >> http://databaseadvisors.com/mailman/listinfo/accessd >> 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.Porter at nana.com Thu Jun 26 17:20:58 2008 From: Mark.Porter at nana.com (Mark Porter) Date: Thu, 26 Jun 2008 14:20:58 -0800 Subject: [AccessD] Desk Reference Message-ID: <23ECCC09839328418BDA4A81BCF75377308BE3@ndc-mail-srv1.nana.corp> Hi all, I moved to a new employer recently, and found myself in a situation where I'm using Access quite heavily once again (after quite a few years off, and thinking I would never see it again!). So back to the list of experts I go! I'm still getting my feet wet here, but my main use for Access will be as a back end loader of spreadsheet data into our financial system (Oracle back end) for a variety of data load purposes and functionality. And of course, eventually getting the Access app polished enough for general distribution to IT staff and advanced users as factors allow. We use Access 2003 here, but my experience is centered around 97. I am looking for a reference that is on a par with the Access 97 Dev Handbook (Litwin, Getz and Gilbert) that I practically wore out. I'm looking around Amazon and Barnes, and am not pleased with what I'm finding. What is the best Intermediate/Advanced 'go to' reference out there for A2003 for an ex A97 developer? I'm seeing an Access 2002 Dev Handbook by Litwin, Getz and Gunderloy that looks interesting (online), is it the same type of reference I'm used too and is it relevant for A2003? Thanks for your input, Mark Porter From tinanfields at torchlake.com Thu Jun 26 17:22:38 2008 From: tinanfields at torchlake.com (Tina Norris Fields) Date: Thu, 26 Jun 2008 18:22:38 -0400 Subject: [AccessD] Two more issues on my Word document automation In-Reply-To: References: <005b01c8d7c4$a1b25540$51eb2a50@minster33c3r25> <48640BCF.7080209@torchlake.com> Message-ID: <486416AE.4060906@torchlake.com> Joe, Thank you for that thought. I will play with that, too. There is something I don't get, though - why is it good to use a function that references the textbox on the form, but not good to reference that textbox on the form in a query? What am I accomplishing by making this change? Thanks again, Tina Joe O'Connell wrote: > Tina, > > Instead of referencing the form in your query, try using a function to > return the value: > > Instead of > ... WHERE somefield = > [Forms]![frmContributionAcknowledge]![txtDepositDate] > > Use this > ... WHERE somefield = GetDepositDate() > > > In a module put this function > > Public Function GetDepositDate() as Date > GetDepositDate = [Forms]![frmContributionAcknowledge]![txtDepositDate] > Exit Sub > > Joe O'Connell > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Tina Norris > Fields > Sent: Thursday, June 26, 2008 5:36 PM > To: Access Developers discussion and problem solving > Subject: Re: [AccessD] Two more issues on my Word document automation > > Hi Andy, > > The query makes a table of the records matching a date criterion - the > DepositDate field criterion is > [Forms]![frmContributionAcknowledge]![txtDepositDate]. So the answers > are yes and yes. > > The first try with this code gave the message that the table already > existed. I deleted the temporary table and ran the code again. This > time it said there were too few parameters, that it expected 1. I do > not know what that was about. I'll watch for your reply, and while > waiting I will read up on querydef. Thanks again for all your > assistance. > > Tina > > Andy Lacey wrote: > >> Mm well it rather depends what's in that query. Is it appending to a >> > table > >> or something? Does it use anything like =Forms!etc as criteria? >> >> If the answrs are yes and no then try this >> >> Dim qdf as querydef >> >> Set >> > qdf=currentdb.QueryDefs("qryPrintListForContributionTypeOfMember_t") > >> qdf.Execute >> If qdf.recordsAffected=0 then >> MsgBox "No records found" >> Else >> MsgBox "Done" >> End If >> Qdf.close >> Set qdf=Nothing >> >> Give that a try first. >> >> -- Andy Lacey >> http://www.minstersystems.co.uk >> >> >> >>> -----Original Message----- >>> From: accessd-bounces at databaseadvisors.com >>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >>> Tina Norris Fields >>> Sent: 26 June 2008 19:21 >>> To: Access Developers discussion and problem solving >>> Subject: Re: [AccessD] Two more issues on my Word document automation >>> >>> >>> Hi Andy, >>> >>> The OnClick event procedure of the button btnMakeTableContribs is as >>> follows: >>> = = = = = >>> Private Sub btnMakeTableContribs_Click() >>> On Error GoTo Err_btnMakeTableContribs_Click >>> >>> Dim stDocName As String >>> >>> stDocName = "qryPrintListForContributionTypeOfMember_t" >>> DoCmd.SetWarnings False >>> DoCmd.OpenQuery stDocName, acNormal, acEdit >>> DoCmd.SetWarnings True >>> MsgBox "Done" >>> >>> Exit_btnMakeTableContribs_Click: >>> Exit Sub >>> >>> Err_btnMakeTableContribs_Click: >>> MsgBox Err.Description >>> DoCmd.SetWarnings True >>> Resume Exit_btnMakeTableContribs_Click >>> >>> End Sub >>> = = = = = >>> >>> As you see, it does use the DoCmd.OpenQuery. What would be a >>> better way >>> to do it? Isn't there a 'no data' sort of property or result I could >>> > > >>> use? (Don't know what it's called.) >>> >>> Teach me - I'm eager to learn! Thanks, >>> >>> Tina >>> >>> >>> Andy Lacey wrote: >>> >>> >>>> Hi Tina >>>> Don't know about point 1 but point 2 shouldn't be too hard. >>>> >>>> >>> What's the >>> >>> >>>> code look like that runs the query? If you're using a querydef then >>>> that gives you a .RecordsAffected property after executing >>>> >>>> >>> and you can >>> >>> >>>> test for that being zero. You can't do that if you're sing >>>> Docmd.Openquery. So how're you doing it at the moment? >>>> >>>> Is point 1 some security setting in Word perhaps? >>>> >>>> -- Andy Lacey >>>> http://www.minstersystems.co.uk >>>> >>>> >>>> >>>> >>>>> -----Original Message----- >>>>> From: accessd-bounces at databaseadvisors.com >>>>> [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of >>>>> Tina Norris Fields >>>>> Sent: 25 June 2008 21:45 >>>>> To: AccessD at databaseadvisors.com >>>>> Subject: [AccessD] Two more issues on my Word document automation >>>>> >>>>> >>>>> Hi again, >>>>> >>>>> First, thanks for the wonderful help so far. My form is >>>>> >>>>> >>> coming along >>> >>> >>>>> very nicely. The user selects the date from a calendar control for >>>>> > > >>>>> records to be processed and clicks a button to set that date. >>>>> The user >>>>> then clicks a button to run the make-table query, a message >>>>> box appears >>>>> to let the user know that is completed, and the user clicks OK to >>>>> dismiss message box. The user then clicks a button to >>>>> >>>>> >>> launch Word and >>> >>> >>>>> open the contributions merge letter. So far, so good. >>>>> >>>>> Two issues: >>>>> >>>>> 1. The Word document is a merge form letter expecting data from >>>>> > the > >>>>> temporary table in the database. I would like to dismiss >>>>> >>>>> >>> the message >>> >>> >>>>> box that pops up asking the user to confirm that he (or >>>>> >>>>> >>> she) wants the >>> >>> >>>>> form letter to accept the data from the database - that is, I >>>>> don't want >>>>> that message box to appear, but I don't see where in the >>>>> >>>>> >>> Word document >>> >>> >>>>> to turn it off. If it's something I can set for this >>>>> >>>>> >>> document, does >>> >>> >>>>> anybody know where that setting is? If I can't set it in the Word >>>>> document, is there a way for me to turn off that message box >>>>> programmatically from the database? >>>>> >>>>> 2. Other issue - if a user selects a date for which there are no >>>>> records, and clicks the button to run the query, I want the >>>>> message box >>>>> to tell the user there are no records for that date. >>>>> >>>>> If all this works well, a user will get into the Word >>>>> document, ready to >>>>> complete the merge, with 4 mouse-clicks. That will make my >>>>> >>>>> >>> friends at >>> >>> >>>>> Habitat very happy. Down the road, when I am confident the >>>>> >>>>> >>> automation >>> >>> >>>>> is working right, and the BE and FE are properly in place, >>>>> >>>>> >>> I want to >>> >>> >>>>> combine the actions of the buttons on the form so that the >>>>> >>>>> >>> user will >>> >>> >>>>> simply pick the appropriate date and click a GO button. But, as I >>>>> mentioned earlier, we are trying to live in this house >>>>> >>>>> >>> while we gut it >>> >>> >>>>> and totally remodel it - so I will be very happy with incremental >>>>> improvements. >>>>> >>>>> Thanks again for all the help, >>>>> Tina >>>>> >>>>> >>>>> >>>>> >>>>> -- >>>>> AccessD mailing list >>>>> AccessD at databaseadvisors.com >>>>> http://databaseadvisors.com/mailman/listinfo/accessd >>>>> Website: http://www.databaseadvisors.com >>>>> >>>>> >>>>> >>>>> >>>>> >>>> >>>> >>>> >>> -- >>> AccessD mailing list >>> AccessD at databaseadvisors.com >>> http://databaseadvisors.com/mailman/listinfo/accessd >>> Website: http://www.databaseadvisors.com >>> >>> >>> >>> >> >> From rockysmolin at bchacc.com Thu Jun 26 17:56:03 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Thu, 26 Jun 2008 15:56:03 -0700 Subject: [AccessD] Desk Reference In-Reply-To: <23ECCC09839328418BDA4A81BCF75377308BE3@ndc-mail-srv1.nana.corp> References: <23ECCC09839328418BDA4A81BCF75377308BE3@ndc-mail-srv1.nana.corp> Message-ID: <007f01c8d7df$cf74db40$0301a8c0@HAL9005> The last ADH I used was the 2000 version (Getz, Littwin, Gilbert). I still use it at least once a week. I don't think there's a huge difference between 2000 and 2003. If there's an ADH2003 I'd get that. Between the ADH and the AccessD that's all you should need. Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Porter Sent: Thursday, June 26, 2008 3:21 PM To: accessd at databaseadvisors.com Subject: [AccessD] Desk Reference Hi all, I moved to a new employer recently, and found myself in a situation where I'm using Access quite heavily once again (after quite a few years off, and thinking I would never see it again!). So back to the list of experts I go! I'm still getting my feet wet here, but my main use for Access will be as a back end loader of spreadsheet data into our financial system (Oracle back end) for a variety of data load purposes and functionality. And of course, eventually getting the Access app polished enough for general distribution to IT staff and advanced users as factors allow. We use Access 2003 here, but my experience is centered around 97. I am looking for a reference that is on a par with the Access 97 Dev Handbook (Litwin, Getz and Gilbert) that I practically wore out. I'm looking around Amazon and Barnes, and am not pleased with what I'm finding. What is the best Intermediate/Advanced 'go to' reference out there for A2003 for an ex A97 developer? I'm seeing an Access 2002 Dev Handbook by Litwin, Getz and Gunderloy that looks interesting (online), is it the same type of reference I'm used too and is it relevant for A2003? Thanks for your input, Mark Porter -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Jun 26 18:13:28 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 26 Jun 2008 16:13:28 -0700 Subject: [AccessD] Desk Reference In-Reply-To: <23ECCC09839328418BDA4A81BCF75377308BE3@ndc-mail-srv1.nana.corp> References: <23ECCC09839328418BDA4A81BCF75377308BE3@ndc-mail-srv1.nana.corp> Message-ID: Get the ADH 2003 if you can find it. There were some changes from 2000 that would only affect developers, and the handbook will give you the answers you need. For instance, you couldn't bind a 2000 form to an ADO recordset and edit the records, but you can in 2003. Charlotte Foust -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Porter Sent: Thursday, June 26, 2008 3:21 PM To: accessd at databaseadvisors.com Subject: [AccessD] Desk Reference Hi all, I moved to a new employer recently, and found myself in a situation where I'm using Access quite heavily once again (after quite a few years off, and thinking I would never see it again!). So back to the list of experts I go! I'm still getting my feet wet here, but my main use for Access will be as a back end loader of spreadsheet data into our financial system (Oracle back end) for a variety of data load purposes and functionality. And of course, eventually getting the Access app polished enough for general distribution to IT staff and advanced users as factors allow. We use Access 2003 here, but my experience is centered around 97. I am looking for a reference that is on a par with the Access 97 Dev Handbook (Litwin, Getz and Gilbert) that I practically wore out. I'm looking around Amazon and Barnes, and am not pleased with what I'm finding. What is the best Intermediate/Advanced 'go to' reference out there for A2003 for an ex A97 developer? I'm seeing an Access 2002 Dev Handbook by Litwin, Getz and Gunderloy that looks interesting (online), is it the same type of reference I'm used too and is it relevant for A2003? Thanks for your input, Mark Porter -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From dwaters at usinternet.com Thu Jun 26 18:14:37 2008 From: dwaters at usinternet.com (Dan Waters) Date: Thu, 26 Jun 2008 18:14:37 -0500 Subject: [AccessD] Desk Reference In-Reply-To: <23ECCC09839328418BDA4A81BCF75377308BE3@ndc-mail-srv1.nana.corp> References: <23ECCC09839328418BDA4A81BCF75377308BE3@ndc-mail-srv1.nana.corp> Message-ID: <8DC0C7BF653F4F8DAC6D231863573269@danwaters> Hi Mark, ADH 2002 is the most recent. There weren't a large number of changes for A2003. I do also have a copy of Que's 'Using Access 2003.' If you have all three books, plus ask questions on this list and do web searching, you'll have what you need. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Porter Sent: Thursday, June 26, 2008 5:21 PM To: accessd at databaseadvisors.com Subject: [AccessD] Desk Reference Hi all, I moved to a new employer recently, and found myself in a situation where I'm using Access quite heavily once again (after quite a few years off, and thinking I would never see it again!). So back to the list of experts I go! I'm still getting my feet wet here, but my main use for Access will be as a back end loader of spreadsheet data into our financial system (Oracle back end) for a variety of data load purposes and functionality. And of course, eventually getting the Access app polished enough for general distribution to IT staff and advanced users as factors allow. We use Access 2003 here, but my experience is centered around 97. I am looking for a reference that is on a par with the Access 97 Dev Handbook (Litwin, Getz and Gilbert) that I practically wore out. I'm looking around Amazon and Barnes, and am not pleased with what I'm finding. What is the best Intermediate/Advanced 'go to' reference out there for A2003 for an ex A97 developer? I'm seeing an Access 2002 Dev Handbook by Litwin, Getz and Gunderloy that looks interesting (online), is it the same type of reference I'm used too and is it relevant for A2003? Thanks for your input, Mark Porter -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From cfoust at infostatsystems.com Thu Jun 26 18:17:20 2008 From: cfoust at infostatsystems.com (Charlotte Foust) Date: Thu, 26 Jun 2008 16:17:20 -0700 Subject: [AccessD] Desk Reference In-Reply-To: <8DC0C7BF653F4F8DAC6D231863573269@danwaters> References: <23ECCC09839328418BDA4A81BCF75377308BE3@ndc-mail-srv1.nana.corp> <8DC0C7BF653F4F8DAC6D231863573269@danwaters> Message-ID: Gah! You're right, it's the 2002 ADH I was thinking of. I'm at work and the books are at home! LOL Charlotte -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Dan Waters Sent: Thursday, June 26, 2008 4:15 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Desk Reference Hi Mark, ADH 2002 is the most recent. There weren't a large number of changes for A2003. I do also have a copy of Que's 'Using Access 2003.' If you have all three books, plus ask questions on this list and do web searching, you'll have what you need. Dan -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Mark Porter Sent: Thursday, June 26, 2008 5:21 PM To: accessd at databaseadvisors.com Subject: [AccessD] Desk Reference Hi all, I moved to a new employer recently, and found myself in a situation where I'm using Access quite heavily once again (after quite a few years off, and thinking I would never see it again!). So back to the list of experts I go! I'm still getting my feet wet here, but my main use for Access will be as a back end loader of spreadsheet data into our financial system (Oracle back end) for a variety of data load purposes and functionality. And of course, eventually getting the Access app polished enough for general distribution to IT staff and advanced users as factors allow. We use Access 2003 here, but my experience is centered around 97. I am looking for a reference that is on a par with the Access 97 Dev Handbook (Litwin, Getz and Gilbert) that I practically wore out. I'm looking around Amazon and Barnes, and am not pleased with what I'm finding. What is the best Intermediate/Advanced 'go to' reference out there for A2003 for an ex A97 developer? I'm seeing an Access 2002 Dev Handbook by Litwin, Getz and Gunderloy that looks interesting (online), is it the same type of reference I'm used too and is it relevant for A2003? Thanks for your input, Mark Porter -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Thu Jun 26 18:49:51 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Thu, 26 Jun 2008 16:49:51 -0700 Subject: [AccessD] Update or CancelUpdate Without AddNew or Edit Message-ID: <008c01c8d7e7$545e9100$0301a8c0@HAL9005> Dear List; I and getting an error Update or CancelUpdate Without AddNew or Edit in a place in the code where there's no recordset stuff going on. What else might cause this? The line of code is Me.txtStartTime = Now(). Seems innocuous enough. Me.txtStartTime is an unbound text box. MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com From john at winhaven.net Thu Jun 26 18:59:47 2008 From: john at winhaven.net (John Bartow) Date: Thu, 26 Jun 2008 18:59:47 -0500 Subject: [AccessD] Desk Reference In-Reply-To: <23ECCC09839328418BDA4A81BCF75377308BE3@ndc-mail-srv1.nana.corp> Message-ID: <200806262359.m5QNxcp4011857@databaseadvisors.com> Mark, Use the ADH 2002. I corresponded with Ken Getz when A2003 was released and he said there would not be a new edition. John B. From darren at activebilling.com.au Thu Jun 26 19:06:43 2008 From: darren at activebilling.com.au (Darren D) Date: Fri, 27 Jun 2008 10:06:43 +1000 Subject: [AccessD] A2003:Counting Files in a folder Message-ID: <200806270008.m5R08LdS016582@databaseadvisors.com> Hi team Does anyone have an example of counting how many files there are of a particular type in a folder? EG I want to count all the PDF, TXT and XML files in 3 corresponding folders EG the folders are named for the file type they hold Folder 1 = \\OurServer\OurClient\Files\XML\*.xml Folder 2 = \\OurServer\OurClient\Files\PDF\*.pdf Folder 3 = \\OurServer\OurClient\Files\TXT\*.txt The Air code I have is See how many file types there are for client X (In the Example above there are 3 but it may be 2 or 1 even 4) So in the example above using 3 file types Start a loop for file types and count the number of files in that folder type Loop 1 = xml See how many files are in folder .\XML Report the file count move to next file type Loop 2 will = pdf See how many files are in folder .\PDF Report the file count move to next file type Loop 3 will = txt See how many files are in folder .\txt Report the file count move to next file type Then exit the loop Many thanks in advance Darren From rockysmolin at bchacc.com Thu Jun 26 19:18:54 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Thu, 26 Jun 2008 17:18:54 -0700 Subject: [AccessD] Update or CancelUpdate Without AddNew or Edit In-Reply-To: <008c01c8d7e7$545e9100$0301a8c0@HAL9005> References: <008c01c8d7e7$545e9100$0301a8c0@HAL9005> Message-ID: <009d01c8d7eb$626742c0$0301a8c0@HAL9005> Never mind. I figured it out. Too embarrassed to post the solution... Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Thursday, June 26, 2008 4:50 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Update or CancelUpdate Without AddNew or Edit Dear List; I and getting an error Update or CancelUpdate Without AddNew or Edit in a place in the code where there's no recordset stuff going on. What else might cause this? The line of code is Me.txtStartTime = Now(). Seems innocuous enough. Me.txtStartTime is an unbound text box. MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Darryl.Collins at coles.com.au Thu Jun 26 19:57:36 2008 From: Darryl.Collins at coles.com.au (Darryl Collins) Date: Fri, 27 Jun 2008 10:57:36 +1000 Subject: [AccessD] Feedback Needed Round 4 Message-ID: <49DFE57FB126044B8A8B934E7AEA09ED0B270299@WPEXCH05.colesmyer.ad.cmltd.net.au> Hi Rocky and Karen, Maybe it is just me but I still have issues with the font size (too big) and sheer amount of white space on each page (too much space between lines). It also seems like that the font is not consistent everywhere and that variation looks messy and cheapens the whole look. Have a look at follwoing URL's and you see how small you can go in font size and kearning without losing quality or even looking too busy and confused. http://www.commbank.com.au/ http://www.nab.com.au/ These folks manage to fit a lot of info, colour, logos etc all into a single page that doesn't need to be scrolled. Of course their budget, resources and design team is simply staggeringly huge compared to yours (which I imagine is the two of you!) - but you can see what I mean. I keep feeling like you need to get a spanner and tighten the whole thing up. Sorry to be picky as I know you both have put a lot of work into this - as I said, maybe it is just a preference thing. kind regards Darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin at Beach Access Software Sent: Friday, 27 June 2008 1:48 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Feedback Needed Round 4 Dear List: We're close. Hopefully this is the last time I have to impose on you guys. Karen has incorporated much of what you suggested into the redesign of the Beach Access Software site. So if you have a few moments please take a look and let us know what else we should do. http://www.bchacc.com/beachtemp/index.html M,MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. From garykjos at gmail.com Thu Jun 26 20:26:38 2008 From: garykjos at gmail.com (Gary Kjos) Date: Thu, 26 Jun 2008 20:26:38 -0500 Subject: [AccessD] Feedback Needed Round 4 In-Reply-To: <49DFE57FB126044B8A8B934E7AEA09ED0B270299@WPEXCH05.colesmyer.ad.cmltd.net.au> References: <49DFE57FB126044B8A8B934E7AEA09ED0B270299@WPEXCH05.colesmyer.ad.cmltd.net.au> Message-ID: I personally LIKE bigger fonts. My 52 year old eyes do to. GK On Thu, Jun 26, 2008 at 7:57 PM, Darryl Collins wrote: > > > Hi Rocky and Karen, > > Maybe it is just me but I still have issues with the font size (too big) and sheer amount of white space on each page (too much space between lines). It also seems like that the font is not consistent everywhere and that variation looks messy and cheapens the whole look. > > Have a look at follwoing URL's and you see how small you can go in font size and kearning without losing quality or even looking too busy and confused. > > http://www.commbank.com.au/ > http://www.nab.com.au/ > > These folks manage to fit a lot of info, colour, logos etc all into a single page that doesn't need to be scrolled. Of course their budget, resources and design team is simply staggeringly huge compared to yours (which I imagine is the two of you!) - but you can see what I mean. > > I keep feeling like you need to get a spanner and tighten the whole thing up. > > Sorry to be picky as I know you both have put a lot of work into this - as I said, maybe it is just a preference thing. > > kind regards > Darryl. > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin > at Beach Access Software > Sent: Friday, 27 June 2008 1:48 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Feedback Needed Round 4 > > > Dear List: > > We're close. Hopefully this is the last time I have to impose on you guys. > > Karen has incorporated much of what you suggested into the redesign of the > Beach Access Software site. So if you have a few moments please take a look > and let us know what else we should do. > > http://www.bchacc.com/beachtemp/index.html > > M,MTIA > > > > > > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > www.e-z-mrp.com > > www.bchacc.com > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. > > This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com From edzedz at comcast.net Thu Jun 26 21:33:11 2008 From: edzedz at comcast.net (Edward S Zuris) Date: Thu, 26 Jun 2008 19:33:11 -0700 Subject: [AccessD] A2003:Counting Files in a folder In-Reply-To: <200806270008.m5R08LdS016582@databaseadvisors.com> Message-ID: <012c01c8d7fe$258de3a0$66dea8c0@dudley1> If you ignore the constant for word documents you should be able to make the following code do what you want it to. = = = = = = = = = = = = = = = = = = = = = = = = = = = = = Const cFileTypeWordDocuments = 3 Const cmsoSortOrderAscending = 1 Const cmsoSortOrderDescending = 2 Const cmsoSortByFileName = 1 Const cmsoSortBySize = 2 Const cmsoSortByFileType = 3 Const cmsoSortByLastModified = 4 . . . ' ***************************************************** ' ***************************************************** ' Add Wild Card ' zPrefix = zPrefix & "*" ' **************************************************** ' Parameter Input path for Job Boiller documents ' szPath = "" szPath = Trim$(zzzLastBoil(17, " ", " ", " ") & " ") If Len(szPath) > 5 Then zJPPath = "" zJPPath = Trim$(szPath & " ") End If ' ***************************************************** ' Setup the Boiler Plate file search ' With Application.FileSearch .NewSearch .LookIn = zJPPath .SearchSubFolders = True .FileName = zPrefix .FileType = cFileTypeWordDocuments End With ' ***************************************************** ' Count the Boiler Plate files ' With Application.FileSearch If .Execute(cmsoSortByFileName, cmsoSortOrderAscending, True) <= 0 Then MsgBox "There were no Boiler Plate Word files found." GoTo zzJPCollect1_End End If lFileKnt = 0 lFileKnt = .FoundFiles.Count = = = = = = = = = = = = = = = = = = = = = = = = = = = = = -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Darren D Sent: Thursday, June 26, 2008 5:07 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] A2003:Counting Files in a folder Hi team Does anyone have an example of counting how many files there are of a particular type in a folder? EG I want to count all the PDF, TXT and XML files in 3 corresponding folders EG the folders are named for the file type they hold Folder 1 = \\OurServer\OurClient\Files\XML\*.xml Folder 2 = \\OurServer\OurClient\Files\PDF\*.pdf Folder 3 = \\OurServer\OurClient\Files\TXT\*.txt The Air code I have is See how many file types there are for client X (In the Example above there are 3 but it may be 2 or 1 even 4) So in the example above using 3 file types Start a loop for file types and count the number of files in that folder type Loop 1 = xml See how many files are in folder .\XML Report the file count move to next file type Loop 2 will = pdf See how many files are in folder .\PDF Report the file count move to next file type Loop 3 will = txt See how many files are in folder .\txt Report the file count move to next file type Then exit the loop Many thanks in advance Darren -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From edzedz at comcast.net Thu Jun 26 21:35:47 2008 From: edzedz at comcast.net (Edward S Zuris) Date: Thu, 26 Jun 2008 19:35:47 -0700 Subject: [AccessD] Update or CancelUpdate Without AddNew or Edit In-Reply-To: <009d01c8d7eb$626742c0$0301a8c0@HAL9005> Message-ID: <012d01c8d7fe$821ddf80$66dea8c0@dudley1> Been there, done that. Please share your discovery with the rest of us. Thanks. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin at Beach Access Software Sent: Thursday, June 26, 2008 5:19 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Update or CancelUpdate Without AddNew or Edit Never mind. I figured it out. Too embarrassed to post the solution... Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Thursday, June 26, 2008 4:50 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Update or CancelUpdate Without AddNew or Edit Dear List; I and getting an error Update or CancelUpdate Without AddNew or Edit in a place in the code where there's no recordset stuff going on. What else might cause this? The line of code is Me.txtStartTime = Now(). Seems innocuous enough. Me.txtStartTime is an unbound text box. MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd 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 Jun 26 21:28:07 2008 From: accessd at shaw.ca (Jim Lawrence) Date: Thu, 26 Jun 2008 19:28:07 -0700 Subject: [AccessD] Feedback Needed Round 4 In-Reply-To: <49DFE57FB126044B8A8B934E7AEA09ED0B270299@WPEXCH05.colesmyer.ad.cmltd.net.au> References: <49DFE57FB126044B8A8B934E7AEA09ED0B270299@WPEXCH05.colesmyer.ad.cmltd.net.au> Message-ID: <31C80769E5FA45BD823D9C1E7B938E6C@creativesystemdesigns.com> Hi Rocky and Karen, Your site looks very good now. Getting rid of that top header was a very good idea. 1. The one major problem is that the font is too large. I have a 1280 x 1024 set of monitors and I just can not imagine what it would look like on a screen with smaller resolution. 2. On the Projects page the 'gallery of snapshots' is still much too intense. It would look better if you dial the dark grey tone to little more than a tint. 3. The 'Consult With Us First' boxes should also be no more than a tint not a tone. Maybe you can change #CCCCCC to something like #F0F0EF for example which would bring in a subtle hint of header. 4. One overview thought would be if you could curve the edges... this is very popular but can be complex to implement using DIV tags and CSS. The site is looking very good guys. Great work. Jim -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin at Beach Access Software Sent: Friday, 27 June 2008 1:48 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Feedback Needed Round 4 Dear List: We're close. Hopefully this is the last time I have to impose on you guys. Karen has incorporated much of what you suggested into the redesign of the Beach Access Software site. So if you have a few moments please take a look and let us know what else we should do. http://www.bchacc.com/beachtemp/index.html M,MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From jwelz at hotmail.com Thu Jun 26 23:13:52 2008 From: jwelz at hotmail.com (Jurgen Welz) Date: Thu, 26 Jun 2008 22:13:52 -0600 Subject: [AccessD] A2003:Counting Files in a folder In-Reply-To: <200806270008.m5R08LdS016582@databaseadvisors.com> References: <200806270008.m5R08LdS016582@databaseadvisors.com> Message-ID: The first function below is passed a file path and name and it returns a file name with an incrementing 2 digit numeric suffix. My application creates a file of a type, say 'Fax.doc'. The function is passed that parameter and it returns a file name 'Fax-04.doc' if it finds 'Fax-01.doc', 'Fax-02.doc' and 'Fax-03.doc'. Since the application names the files during the file creation process, there are no decimals inserted in the name by a user so there is a guarantee that there is one and only one period prior to the file extension. Below this function is an untested attempt at a function that meets your exact inquiry. Public Function fnFileSuffix(strFilePathAndFileName As String) As String On Error GoTo ErrorHandler Dim lngI As Long Dim strExtension As String Dim strName As String lngI = InStr(strFilePathAndFileName, ".") If lngI Then strName = Left$(strFilePathAndFileName, lngI - 1) strExtension = Mid$(strFilePathAndFileName, lngI + 1) lngI = 1 Do Until Dir(strName & Format$(lngI, "-00.") & strExtension) = "" lngI = lngI + 1 Loop strFilePathAndFileName = strName & Format$(lngI, "-00.") fnFileSuffix = strFilePathAndFileName & strExtension Else MsgBox "improper file name" End If ExitRoutine: On Error Resume Next Exit Function ErrorHandler: With Err Select Case .Number Case Else MsgBox .Number & vbCrLf & .Description, vbInformation, "Error - " & _ "fnFileSuffix" End Select End With 'Resume 0 Resume ExitRoutine End Function It might be written (untested)... Public Function EnumerateFiles(strFileSpec as String) As Long Dim str As String Dim lngI As Long str = Dir(strFileSpec, vbDirectory) Do While Len(str) lngI = lngI + 1 str = Dir() Loop EnumerateFiles = lngI End Function The calling sub could be something like: Private Sub FileCount Debug.Print EnumerateFiles("\\OurServer\OurClient\Files\XML\*.xml") & " xml files" Debug.Print EnumerateFiles("\\OurServer\OurClient\Files\PDF\*.pdf") & " pdf files" Debug.Print EnumerateFiles("\\OurServer\OurClient\Files\TXT\*.txt") & " txt files" End Sub Ciao J?rgen Welz Edmonton, Alberta jwelz at hotmail.com > From: darren at activebilling.com.au > To: accessd at databaseadvisors.com > Date: Fri, 27 Jun 2008 10:06:43 +1000 > Subject: [AccessD] A2003:Counting Files in a folder > > Hi team > > > > Does anyone have an example of counting how many files there are of a particular > type in a folder? > > EG I want to count all the PDF, TXT and XML files in 3 corresponding folders > > EG the folders are named for the file type they hold > > Folder 1 = \\OurServer\OurClient\Files\XML\*.xml > > Folder 2 = \\OurServer\OurClient\Files\PDF\*.pdf > > Folder 3 = \\OurServer\OurClient\Files\TXT\*.txt > > > > The Air code I have is > > See how many file types there are for client X (In the Example above there are 3 > but it may be 2 or 1 even 4) > > So in the example above using 3 file types > > > > Start a loop for file types and count the number of files in that folder type > > Loop 1 = xml > > See how many files are in folder .\XML > > Report the file count move to next file type > > Loop 2 will = pdf > > See how many files are in folder .\PDF > > Report the file count move to next file type > > Loop 3 will = txt > > See how many files are in folder .\txt > > Report the file count move to next file type > > Then exit the loop > > > > Many thanks in advance > > Darren > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com _________________________________________________________________ From rockysmolin at bchacc.com Fri Jun 27 00:12:50 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Thu, 26 Jun 2008 22:12:50 -0700 Subject: [AccessD] Feedback Needed Round 4 In-Reply-To: <49DFE57FB126044B8A8B934E7AEA09ED0B270299@WPEXCH05.colesmyer.ad.cmltd.net.au> References: <49DFE57FB126044B8A8B934E7AEA09ED0B270299@WPEXCH05.colesmyer.ad.cmltd.net.au> Message-ID: <00a701c8d814$72618b80$0301a8c0@HAL9005> Picky? No. (Let's egg his house, Karen). JK. I think you've got a good point about the white space. Karen, is possible to reduce the lead between lines? Re: font size, does it have anything to do with your screen resolution? What is your display set to? Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Darryl Collins Sent: Thursday, June 26, 2008 5:58 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Feedback Needed Round 4 Hi Rocky and Karen, Maybe it is just me but I still have issues with the font size (too big) and sheer amount of white space on each page (too much space between lines). It also seems like that the font is not consistent everywhere and that variation looks messy and cheapens the whole look. Have a look at follwoing URL's and you see how small you can go in font size and kearning without losing quality or even looking too busy and confused. http://www.commbank.com.au/ http://www.nab.com.au/ These folks manage to fit a lot of info, colour, logos etc all into a single page that doesn't need to be scrolled. Of course their budget, resources and design team is simply staggeringly huge compared to yours (which I imagine is the two of you!) - but you can see what I mean. I keep feeling like you need to get a spanner and tighten the whole thing up. Sorry to be picky as I know you both have put a lot of work into this - as I said, maybe it is just a preference thing. kind regards Darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin at Beach Access Software Sent: Friday, 27 June 2008 1:48 AM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Feedback Needed Round 4 Dear List: We're close. Hopefully this is the last time I have to impose on you guys. Karen has incorporated much of what you suggested into the redesign of the Beach Access Software site. So if you have a few moments please take a look and let us know what else we should do. http://www.bchacc.com/beachtemp/index.html M,MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Fri Jun 27 00:13:50 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Thu, 26 Jun 2008 22:13:50 -0700 Subject: [AccessD] Feedback Needed Round 4 In-Reply-To: References: <49DFE57FB126044B8A8B934E7AEA09ED0B270299@WPEXCH05.colesmyer.ad.cmltd.net.au> Message-ID: <00a801c8d814$95d88640$0301a8c0@HAL9005> Yeah I forgot to ask Darryl how old he was. Maybe he's like 15. :) What screen size and resolution are you looking at it with? Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Thursday, June 26, 2008 6:27 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Feedback Needed Round 4 I personally LIKE bigger fonts. My 52 year old eyes do to. GK On Thu, Jun 26, 2008 at 7:57 PM, Darryl Collins wrote: > > > Hi Rocky and Karen, > > Maybe it is just me but I still have issues with the font size (too big) and sheer amount of white space on each page (too much space between lines). It also seems like that the font is not consistent everywhere and that variation looks messy and cheapens the whole look. > > Have a look at follwoing URL's and you see how small you can go in font size and kearning without losing quality or even looking too busy and confused. > > http://www.commbank.com.au/ > http://www.nab.com.au/ > > These folks manage to fit a lot of info, colour, logos etc all into a single page that doesn't need to be scrolled. Of course their budget, resources and design team is simply staggeringly huge compared to yours (which I imagine is the two of you!) - but you can see what I mean. > > I keep feeling like you need to get a spanner and tighten the whole thing up. > > Sorry to be picky as I know you both have put a lot of work into this - as I said, maybe it is just a preference thing. > > kind regards > Darryl. > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin > at Beach Access Software > Sent: Friday, 27 June 2008 1:48 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Feedback Needed Round 4 > > > Dear List: > > We're close. Hopefully this is the last time I have to impose on you guys. > > Karen has incorporated much of what you suggested into the redesign of > the Beach Access Software site. So if you have a few moments please > take a look and let us know what else we should do. > > http://www.bchacc.com/beachtemp/index.html > > M,MTIA > > > > > > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > www.e-z-mrp.com > > www.bchacc.com > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. > > This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From rockysmolin at bchacc.com Fri Jun 27 00:16:03 2008 From: rockysmolin at bchacc.com (Rocky Smolin at Beach Access Software) Date: Thu, 26 Jun 2008 22:16:03 -0700 Subject: [AccessD] Update or CancelUpdate Without AddNew or Edit In-Reply-To: <012d01c8d7fe$821ddf80$66dea8c0@dudley1> References: <009d01c8d7eb$626742c0$0301a8c0@HAL9005> <012d01c8d7fe$821ddf80$66dea8c0@dudley1> Message-ID: <00a901c8d814$e550c340$0301a8c0@HAL9005> It was...(sob)...A BOUND TEXT BOX AFTER ALL (Wahhhhhhh......) (But it's a legacy app and the text box was unused and set to invisible. And still Bound to the Table! Are those mitigating circumstances?) Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Edward S Zuris Sent: Thursday, June 26, 2008 7:36 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Update or CancelUpdate Without AddNew or Edit Been there, done that. Please share your discovery with the rest of us. Thanks. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin at Beach Access Software Sent: Thursday, June 26, 2008 5:19 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Update or CancelUpdate Without AddNew or Edit Never mind. I figured it out. Too embarrassed to post the solution... Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Rocky Smolin at Beach Access Software Sent: Thursday, June 26, 2008 4:50 PM To: 'Access Developers discussion and problem solving' Subject: [AccessD] Update or CancelUpdate Without AddNew or Edit Dear List; I and getting an error Update or CancelUpdate Without AddNew or Edit in a place in the code where there's no recordset stuff going on. What else might cause this? The line of code is Me.txtStartTime = Now(). Seems innocuous enough. Me.txtStartTime is an unbound text box. MTIA Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com From Darryl.Collins at coles.com.au Fri Jun 27 00:18:45 2008 From: Darryl.Collins at coles.com.au (Darryl Collins) Date: Fri, 27 Jun 2008 15:18:45 +1000 Subject: [AccessD] Feedback Needed Round 4 Message-ID: <49DFE57FB126044B8A8B934E7AEA09ED09FD75FE@WPEXCH05.colesmyer.ad.cmltd.net.au> Yo Man!! ;) hehehehe.... I know I act like it sometimes, but nah, I am 40 y.o, married with a Kid, so my youth is long past - although my vision is still very good and I don't need glasses yet... although that can't be too far off. Screen Res is set to 1024 x 760 (True Colour @ 60Hz) Browser at work is IE6.0 Hope that helps you and Karen out. Cheers Darryl. -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin at Beach Access Software Sent: Friday, 27 June 2008 3:14 PM To: 'Access Developers discussion and problem solving' Subject: Re: [AccessD] Feedback Needed Round 4 Yeah I forgot to ask Darryl how old he was. Maybe he's like 15. :) What screen size and resolution are you looking at it with? Rocky Smolin Beach Access Software 858-259-4334 www.e-z-mrp.com www.bchacc.com -----Original Message----- From: accessd-bounces at databaseadvisors.com [mailto:accessd-bounces at databaseadvisors.com] On Behalf Of Gary Kjos Sent: Thursday, June 26, 2008 6:27 PM To: Access Developers discussion and problem solving Subject: Re: [AccessD] Feedback Needed Round 4 I personally LIKE bigger fonts. My 52 year old eyes do to. GK On Thu, Jun 26, 2008 at 7:57 PM, Darryl Collins wrote: > > > Hi Rocky and Karen, > > Maybe it is just me but I still have issues with the font size (too big) and sheer amount of white space on each page (too much space between lines). It also seems like that the font is not consistent everywhere and that variation looks messy and cheapens the whole look. > > Have a look at follwoing URL's and you see how small you can go in font size and kearning without losing quality or even looking too busy and confused. > > http://www.commbank.com.au/ > http://www.nab.com.au/ > > These folks manage to fit a lot of info, colour, logos etc all into a single page that doesn't need to be scrolled. Of course their budget, resources and design team is simply staggeringly huge compared to yours (which I imagine is the two of you!) - but you can see what I mean. > > I keep feeling like you need to get a spanner and tighten the whole thing up. > > Sorry to be picky as I know you both have put a lot of work into this - as I said, maybe it is just a preference thing. > > kind regards > Darryl. > > > > -----Original Message----- > From: accessd-bounces at databaseadvisors.com > [mailto:accessd-bounces at databaseadvisors.com]On Behalf Of Rocky Smolin > at Beach Access Software > Sent: Friday, 27 June 2008 1:48 AM > To: 'Access Developers discussion and problem solving' > Subject: [AccessD] Feedback Needed Round 4 > > > Dear List: > > We're close. Hopefully this is the last time I have to impose on you guys. > > Karen has incorporated much of what you suggested into the redesign of > the Beach Access Software site. So if you have a few moments please > take a look and let us know what else we should do. > > http://www.bchacc.com/beachtemp/index.html > > M,MTIA > > > > > > > > Rocky Smolin > > Beach Access Software > > 858-259-4334 > > www.e-z-mrp.com > > www.bchacc.com > > > > > > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > > This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. > > This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. > > -- > AccessD mailing list > AccessD at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/accessd > Website: http://www.databaseadvisors.com > -- Gary Kjos garykjos at gmail.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com -- AccessD mailing list AccessD at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/accessd Website: http://www.databaseadvisors.com This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. This email and any attachments may contain privileged and confidential information and are intended for the named addressee only. If you have received this e-mail in error, please notify the sender and delete this e-mail immediately. Any confidentiality, privilege or copyright is not waived or lost because this e-mail has been sent to you in error. It is your responsibility to check this e-mail and any attachments for viruses. No warranty is made that this material is free from computer virus or any other defect or error. Any loss/damage incurred by using this material is not the sender's responsibility. The sender's entire liability will be limited to resupplying the material. From stuart at lexacorp.com.pg Fri Jun 27 00:29:18 2008 From: stuart at lexacorp.com.pg (Stuart McLachlan) Date: Fri, 27 Jun 2008 15:29:18 +1000 Subject: [AccessD] Feedback Needed Round 4 In-Reply-To: <004601c8d7a4$06150b70$0301a8c0@HAL9005> Message-ID: <4865074E.836.29FC1854@stuart.lexacorp.com.pg> You are asking for a lot of spam. From the source of your contact page:

Information