From Jdemarco at hshhp.org Fri Feb 7 07:16:25 2003 From: Jdemarco at hshhp.org (Jim DeMarco) Date: Fri, 7 Feb 2003 08:16:25 -0500 Subject: [dba-VB] test Message-ID: <22F1CCD5171D17419CB37FEEE09D5F99D8500D@TTNEXCHSRV1.hshhp.com> no response necessary *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from HealthSource/Hudson Health Plan (HS/HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HS/HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From Jdemarco at hshhp.org Fri Feb 7 07:31:02 2003 From: Jdemarco at hshhp.org (Jim DeMarco) Date: Fri, 7 Feb 2003 08:31:02 -0500 Subject: [dba-VB] Web Service - Page Not Found Error Message-ID: <22F1CCD5171D17419CB37FEEE09D5F99D85011@TTNEXCHSRV1.hshhp.com> I was having a problem getting a .NET web service deployed so I thought I'd run a test on a very simple service to see that I was able to get a response back from the service. I created a service with two functions AddEm and SubtractEm which adds or subtracts 2 integers and returns the result. Works fine on my dev box but when I deployed it on our live web server I get an error 404 Page Not Found when the Invoke button is clicked on the .asmx page calling either function. I then copied the app to another local server (my old desktop machine) and it works just fine. In talking to one of our networking consultants he asks the following questions that I don't have answers to. If anyone can help I'd appreciate it. 1.What protocol/port number is the server application (web service??) using? 2. Does the web server create a new session or respond to a request from a web service within the same session? If you want the link to the live service or the service itself to try on your own machine I'd be glad to send it. It's a pretty trivial service and I don't believe there's anything wrong with it as it does almost nothing. Thanks, Jim DeMarco Director of Product Development HealthSource/Hudson Health Plan *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from HealthSource/Hudson Health Plan (HS/HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HS/HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From paul.hartland at fsmail.net Tue Feb 11 02:51:24 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 11 Feb 2003 8:51:24 +0000 Subject: [dba-VB] Combo Box on DataGrid (Visual Basic 6) Message-ID: <20030211085124.BAMA5116.fep06-svc.ttys.com@localhost> To all, Not having much experience with DataGrids (VB6), I was playing around yesterday and found out you could put a button on a column (This I done without a problem), but I also heard you could have a ComboBox/ListBox appear when the button is pressed, Anyone any idea on how to display the ComboBox/ListBox when this is pressed ????? Any help, sample code etc appreciated............. Paul __________________________________________________________________________ Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month after that. For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890 From paul.hartland at fsmail.net Wed Feb 12 04:12:12 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 12 Feb 2003 10:12:12 +0000 Subject: [dba-VB] What Column (DataGrid VB6) Message-ID: <20030212101212.CIFA5116.fep06-svc.ttys.com@localhost> To all, I have a DataGrid in a VB6 Front-End, I have to lock specific fields so that users can't edit them. The trouble is, when you tab into a locked field, the cursor disappears.......... Is there anyway to show the user what field they are in even when it's locked...............????????? Thanks in advance........... Paul __________________________________________________________________________ Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month after that. For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890 From Jdemarco at hshhp.org Wed Feb 12 07:40:47 2003 From: Jdemarco at hshhp.org (Jim DeMarco) Date: Wed, 12 Feb 2003 08:40:47 -0500 Subject: [dba-VB] What Column (DataGrid VB6) Message-ID: <22F1CCD5171D17419CB37FEEE09D5F99D850A9@TTNEXCHSRV1.hshhp.com> You could try using color to highlight the current cell. HTH, Jim DeMarco Director of Product Development HealthSource/Hudson Health Plan -----Original Message----- From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] Sent: Wednesday, February 12, 2003 5:12 AM To: accessd at databaseadvisors.com; dba-VB at databaseadvisors.com Subject: [dba-VB] What Column (DataGrid VB6) To all, I have a DataGrid in a VB6 Front-End, I have to lock specific fields so that users can't edit them. The trouble is, when you tab into a locked field, the cursor disappears.......... Is there anyway to show the user what field they are in even when it's locked...............????????? Thanks in advance........... Paul __________________________________________________________________________ Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month after that. For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890 _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from HealthSource/Hudson Health Plan (HS/HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HS/HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From paul.hartland at fsmail.net Wed Feb 12 08:01:11 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 12 Feb 2003 14:01:11 +0000 Subject: [dba-VB] What Column (DataGrid VB6) Message-ID: <20030212140111.HNAA7162.fep07-svc.ttys.com@localhost> Thats what I thought of doing, but can't find how the change the color of just one cell............ Paul From: "Jim DeMarco" Date: Wed 12/Feb/2003 13:40 GMT To: Subject: RE: [dba-VB] What Column (DataGrid VB6) You could try using color to highlight the current cell. HTH, Jim DeMarco Director of Product Development HealthSource/Hudson Health Plan -----Original Message----- From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] Sent: Wednesday, February 12, 2003 5:12 AM To: accessd at databaseadvisors.com; dba-VB at databaseadvisors.com Subject: [dba-VB] What Column (DataGrid VB6) To all, I have a DataGrid in a VB6 Front-End, I have to lock specific fields so that users can't edit them. The trouble is, when you tab into a locked field, the cursor disappears.......... Is there anyway to show the user what field they are in even when it's locked...............????????? Thanks in advance........... Paul __________________________________________________________________________ Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month after that. For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890 _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from HealthSource/Hudson Health Plan (HS/HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HS/HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com __________________________________________________________________________ Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month after that. For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890 From paul.hartland at fsmail.net Thu Feb 13 03:10:17 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 13 Feb 2003 9:10:17 +0000 Subject: [dba-VB] URGENT (VB6 Problem) Message-ID: <20030213091017.DOFH5116.fep06-svc.ttys.com@localhost> To all, I have a form with an ADODC DataControl and fields which link into the DataControl. I have never seen/or tried this before, but yesterday whilst testing out my application, I came across this.......... I open the form and edit a record, move off that particular record, go back to it edit it again and get this error.......... Row Cannot Be Located For Updating, Some Values May Have Been Changed Since It Was Last Read. Anyone any ideas on why this is happening..........It's a VB6 FE with SQL 7.0 BE Thanks in advance................ Paul __________________________________________________________________________ Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month after that. For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890 From paul.hartland at fsmail.net Thu Feb 13 03:16:10 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 13 Feb 2003 9:16:10 +0000 Subject: [dba-VB] PLEASE IGNORE - URGENT (VB6 Problem) Message-ID: <20030213091610.DOHN5116.fep06-svc.ttys.com@localhost> To all, Appologies for my last email requesting help, I have found out what is going wrong.........I hadn't set my CursorType and LockType correctly............ Paul __________________________________________________________________________ Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month after that. For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890 From paul.hartland at fsmail.net Fri Feb 14 07:24:07 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Fri, 14 Feb 2003 13:24:07 +0000 Subject: [dba-VB] DataGrid (VB6) Setting Focus To A Column Message-ID: <20030214132407.CONF14152.fep02-svc.ttys.com@localhost> To all, I have a VB DataGrid on a form, and when the user wants to add a new record I insert some default information and the user should then start typing in column 2...... Is there anyway of setting the focus to a particular column after adding a new record ? Paul __________________________________________________________________________ Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month after that. For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890 From paul.hartland at fsmail.net Mon Feb 17 07:48:09 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 17 Feb 2003 13:48:09 +0000 Subject: [dba-VB] Deleting Dates Message-ID: <20030217134809.IOHS5116.fep06-svc.ttys.com@localhost> To all, I have a Visual Basic 6 front-end which is currently linked into a SQL Server 7.0 back-end, I have a table called tblPersonnel in the BE which has a form on the VB6 FE. We take on temporary staff a certain points of the year to help with the workload, and when they finish we enter a finish date for that particualr person....No problem so far......However if they have proved themselves to be a good worker, they get invited back whenever we need the additional staff (saving on re-training etc). But I can seem to get the system to allow me to take out a finish date (making it null again)..... The tblPersonnel.Finishdate field will allow Nulls, and I'm using the ADODC DataControl with a text box linked to the Control and Field FinishDate........ Anyone had similar problems or can tell me how to reset the FinishDate to null Thanks in advance for any help.......... Paul __________________________________________________________________________ Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month after that. For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890 From paul.hartland at fsmail.net Mon Feb 17 07:48:09 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 17 Feb 2003 13:48:09 +0000 Subject: [dba-VB] [dba-SQLServer]Deleting Dates Message-ID: <20030217134809.IOHS5116.fep06-svc.ttys.com@localhost> To all, I have a Visual Basic 6 front-end which is currently linked into a SQL Server 7.0 back-end, I have a table called tblPersonnel in the BE which has a form on the VB6 FE. We take on temporary staff a certain points of the year to help with the workload, and when they finish we enter a finish date for that particualr person....No problem so far......However if they have proved themselves to be a good worker, they get invited back whenever we need the additional staff (saving on re-training etc). But I can seem to get the system to allow me to take out a finish date (making it null again)..... The tblPersonnel.Finishdate field will allow Nulls, and I'm using the ADODC DataControl with a text box linked to the Control and Field FinishDate........ Anyone had similar problems or can tell me how to reset the FinishDate to null Thanks in advance for any help.......... Paul __________________________________________________________________________ Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month after that. For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890 _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From paul.hartland at fsmail.net Tue Feb 18 04:14:38 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 18 Feb 2003 10:14:38 +0000 Subject: [dba-VB] Is Outlook Open (VB6) Message-ID: <20030218101438.HLEM14152.fep02-svc.ttys.com@localhost> To all, Anyone know how I can check to see if MS Outlook is open using VB6 ? Thanks in advance Paul __________________________________________________________________________ Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month after that. For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890 From carbonnb at sympatico.ca Tue Feb 18 07:05:09 2003 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Tue, 18 Feb 2003 08:05:09 -0500 Subject: [dba-VB] Is Outlook Open (VB6) In-Reply-To: <20030218101438.HLEM14152.fep02-svc.ttys.com@localhost> Message-ID: <3E51E935.19907.A5264@localhost> Cross-posted to AccessD and dba-vb On 18 Feb 2003 at 10:14, paul.hartland at fsmail.net wrote: > Anyone know how I can check to see if MS Outlook is open using VB6 ? Paul, How about something like this: Dom objOut as object On Error Resume Next set objOut = GetObject("Outlook.Application") if Err <> 0 Then MsgBox "Outlook is not open" Else Msgbox "Outlook is open" End if -- Bryan Carbonnell - carbonnb at sympatico.ca We've all heard that a million monkeys banging on a million typewriters will eventually reproduce the entire works of Shakespeare. Now, thanks to the Internet, we know this is not true.^ [Robert Wilensky (1997)] From mikedorism at ntelos.net Tue Feb 18 08:21:07 2003 From: mikedorism at ntelos.net (Mike and Doris Manning) Date: Tue, 18 Feb 2003 09:21:07 -0500 Subject: [dba-VB] Is Outlook Open (VB6) In-Reply-To: <3E51E935.19907.A5264@localhost> Message-ID: <000401c2d759$029d9c60$9a3c0cd8@hargrove.internal> I tried that but it doesn't always yield the correct results, so I chose to handle it via API calls instead. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com] On Behalf Of Bryan Carbonnell Sent: Tuesday, February 18, 2003 08:05 AM To: dba-vb at databaseadvisors.com; accessd at databaseadvisors.com Subject: Re: [dba-VB] Is Outlook Open (VB6) Cross-posted to AccessD and dba-vb On 18 Feb 2003 at 10:14, paul.hartland at fsmail.net wrote: > Anyone know how I can check to see if MS Outlook is open using VB6 ? Paul, How about something like this: Dom objOut as object On Error Resume Next set objOut = GetObject("Outlook.Application") if Err <> 0 Then MsgBox "Outlook is not open" Else Msgbox "Outlook is open" End if -- Bryan Carbonnell - carbonnb at sympatico.ca We've all heard that a million monkeys banging on a million typewriters will eventually reproduce the entire works of Shakespeare. Now, thanks to the Internet, we know this is not true.^ [Robert Wilensky (1997)] _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jcolby at colbyconsulting.com Sat Feb 22 21:11:52 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Sat, 22 Feb 2003 22:11:52 -0500 Subject: [dba-VB] test2 Message-ID: test2 John W. Colby Colby Consulting www.ColbyConsulting.com From jcolby at colbyconsulting.com Sat Feb 22 21:16:45 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Sat, 22 Feb 2003 22:16:45 -0500 Subject: [dba-VB] Is there anyone out there? Message-ID: John W. Colby Colby Consulting www.ColbyConsulting.com From papparuff at attbi.com Sat Feb 22 22:02:19 2003 From: papparuff at attbi.com (John Ruff) Date: Sat, 22 Feb 2003 20:02:19 -0800 Subject: [dba-VB] Is there anyone out there? In-Reply-To: Message-ID: <019f01c2daf0$5ce01230$6401a8c0@papparuff> Yes John, but I haven't received anything sind the 18th. John V. Ruff - The Eternal Optimist :-) "Commit to the Lord whatever you do, and your plans will succeed." Proverbs 16:3 -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com] On Behalf Of John W. Colby Sent: Saturday, February 22, 2003 7:17 PM To: AccessD - VBA Subject: [dba-VB] Is there anyone out there? John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From accessd at shaw.ca Sat Feb 22 21:59:04 2003 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Sat, 22 Feb 2003 19:59:04 -0800 Subject: [dba-VB] Is there anyone out there? In-Reply-To: Message-ID: Hi John: Email received loud and clear. Jim -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of John W. Colby Sent: Saturday, February 22, 2003 7:17 PM To: AccessD - VBA Subject: [dba-VB] Is there anyone out there? John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jcolby at colbyconsulting.com Sun Feb 23 06:20:57 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Sun, 23 Feb 2003 07:20:57 -0500 Subject: [dba-VB] Is there anyone out there? In-Reply-To: <019f01c2daf0$5ce01230$6401a8c0@papparuff> Message-ID: Well maybe it's time to fire this list up! John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of John Ruff Sent: Saturday, February 22, 2003 11:02 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Is there anyone out there? Yes John, but I haven't received anything sind the 18th. John V. Ruff - The Eternal Optimist :-) "Commit to the Lord whatever you do, and your plans will succeed." Proverbs 16:3 -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com] On Behalf Of John W. Colby Sent: Saturday, February 22, 2003 7:17 PM To: AccessD - VBA Subject: [dba-VB] Is there anyone out there? John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From ghazzard at aelfen.net Sun Feb 23 08:36:43 2003 From: ghazzard at aelfen.net (Gregory K. Hazzard) Date: Sun, 23 Feb 2003 08:36:43 -0600 Subject: [dba-VB] VB6: TreeView Controls and Drag-N-Drop Message-ID: <001801c2db48$fce3a1e0$0200a8c0@greg> Since John was so concerned about the lack of information freely flowing about this list, I thought I?d get something started that?s been puzzling me for nigh on a week now. I?m building a VB app that has a TreeView control (tvwDirectoryList) and a File List Box (filFileList). What?s been puzzling me is that there isn?t a lot of information on TreeView controls for VB6 and I?m having a deuce of a time trying to figure out how to get drag and drop to work. I want to be able to drag files from the file list to different folders in the tree view, and while I found the properties to turn on to make the TreeView a drop target, and make the file list willing to let you drag items from it, that?s as far as I have been able to get. I can click on a file, and drag it across, and I get the drag icon (that little greyed out box) but it doesn?t actually select anything in the TreeView to drop the file on, and when I release the mouse button, no dropping occurs. Does anyone have any documentation or an example or even a will guess about how this should occur? Thanks. Gregory K. Hazzard http://www.aelfen.net mailto:ghazzard at aelfen.net "I'm not saying it's safe for humans. I'm not saying it's unsafe for humans. All I'm saying is it that it makes hermaphrodites out of frogs." - Tyrone B. Hayes of the University of California at Berkeley, on the effects of Atrazine on human beings. From carbonnb at sympatico.ca Sun Feb 23 08:53:10 2003 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Sun, 23 Feb 2003 09:53:10 -0500 Subject: [dba-VB] VB6: TreeView Controls and Drag-N-Drop In-Reply-To: <001801c2db48$fce3a1e0$0200a8c0@greg> Message-ID: <3E589A06.24955.628E25@localhost> On 23 Feb 2003 at 8:36, Gregory K. Hazzard wrote: > Does anyone have any documentation or an example or even a will guess > about how this should occur? Thanks. Gregory, There really isn't a lot of documentation about TreeViews in general. I am assuming that you have checked MSDN, if not here is a link that has a bunch of info, it's actually a search result from MSDN, http://search.microsoft.com/default.asp?qu=treeview+drag+and+dr op&boolean=ALL&nq=NEW&so=RECCNT&p=1&ig=01&ig=03&ig= 04&ig=05&ig=06&i=00&i=01&i=02&i=03&i=04&i=05&i=06&i=07&i= 08&i=09&i=10&i=11&i=12&i=13&i=14&i=15&i=16&i=17&i=18&i=19 &i=20&i=21&i=22&i=23&i=24&i=25&i=26&i=27&i=28&i=29&i=30&i =31&i=32&i=33&i=34&i=35&i=36&i=37&i=38&i=39&i=40&i=41&sit eid=us/dev Or to make it easier: http://tinyurl.com/69tv You can also look at Arthur Fuller's article in DBA's M2M Newsletter here: http://www.databaseadvisors.com/newsletters/news0109.htm It deals with Adding a TreeView to Access, but it may give you some leads. Finally a google search, http://www.google.ca/search?sourceid=navclient&q=treeview+drag +and+drop, will give you tons of links. -- Bryan Carbonnell - carbonnb at sympatico.ca It was difficult to code. So it damn well better be difficult to use. From DWUTKA at marlow.com Mon Feb 24 11:20:46 2003 From: DWUTKA at marlow.com (Drew Wutka) Date: Mon, 24 Feb 2003 11:20:46 -0600 Subject: [dba-VB] Is there anyone out there? Message-ID: <2F8793082E00D4119A1700B0D0216BF801D82170@main2.marlow.com> This list hasn't gotten much traffic since I've been on it. Drew -----Original Message----- From: John W. Colby [mailto:jcolby at colbyconsulting.com] Sent: Sunday, February 23, 2003 6:21 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Is there anyone out there? Well maybe it's time to fire this list up! John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of John Ruff Sent: Saturday, February 22, 2003 11:02 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Is there anyone out there? Yes John, but I haven't received anything sind the 18th. John V. Ruff - The Eternal Optimist :-) "Commit to the Lord whatever you do, and your plans will succeed." Proverbs 16:3 -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com] On Behalf Of John W. Colby Sent: Saturday, February 22, 2003 7:17 PM To: AccessD - VBA Subject: [dba-VB] Is there anyone out there? John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From DWUTKA at marlow.com Mon Feb 24 11:25:48 2003 From: DWUTKA at marlow.com (Drew Wutka) Date: Mon, 24 Feb 2003 11:25:48 -0600 Subject: [dba-VB] VB6: TreeView Controls and Drag-N-Drop Message-ID: <2F8793082E00D4119A1700B0D0216BF801D82171@main2.marlow.com> I have a drag and drop treeview setup. I can send the form so you can see the code if you want. The app itself would be a pain to try to setup for just that example. What it is, is a 'control' window I have that has a 'client' app on every machine in my company. Then we admins (The IS department) can open this control form for any user that is online. It has all sorts of bells and whistles, however, there is one tab that has a 'Windows Explorer' like set of treeviews. It then doubles that set, to display the local machine. (So the top two are the remote user, and the bottom two are the local user). You can then 'drag and drop' files between the two. Let me know if you want me to send you the form I am talking about. Drew -----Original Message----- From: Gregory K. Hazzard [mailto:ghazzard at aelfen.net] Sent: Sunday, February 23, 2003 8:37 AM To: 'Visual Basic Mailing List' Subject: [dba-VB] VB6: TreeView Controls and Drag-N-Drop Since John was so concerned about the lack of information freely flowing about this list, I thought I'd get something started that's been puzzling me for nigh on a week now. I'm building a VB app that has a TreeView control (tvwDirectoryList) and a File List Box (filFileList). What's been puzzling me is that there isn't a lot of information on TreeView controls for VB6 and I'm having a deuce of a time trying to figure out how to get drag and drop to work. I want to be able to drag files from the file list to different folders in the tree view, and while I found the properties to turn on to make the TreeView a drop target, and make the file list willing to let you drag items from it, that's as far as I have been able to get. I can click on a file, and drag it across, and I get the drag icon (that little greyed out box) but it doesn't actually select anything in the TreeView to drop the file on, and when I release the mouse button, no dropping occurs. Does anyone have any documentation or an example or even a will guess about how this should occur? Thanks. Gregory K. Hazzard http://www.aelfen.net mailto:ghazzard at aelfen.net "I'm not saying it's safe for humans. I'm not saying it's unsafe for humans. All I'm saying is it that it makes hermaphrodites out of frogs." - Tyrone B. Hayes of the University of California at Berkeley, on the effects of Atrazine on human beings. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jcolby at colbyconsulting.com Mon Feb 24 20:58:10 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Mon, 24 Feb 2003 21:58:10 -0500 Subject: [dba-VB] .Net - Beyond Hello World Message-ID: Well, I just designed my first bound form, bound to a table in SQL Server. Used a data grid to display the data and a button to load the data into the grid. Total time (following the instructions in help) ~ 1/2 hour. Not bad I think. I already had about 1/2 of my billing app data in SQL Server. So the first attempt to crawl was a smashing success. This is completely different from how I've done things in the past. They do have a pretty nice SQL builder. Not as nice as Access' but I have never seen one as nice as Access'. It reminds me of the one in SQL Server in fact. Maybe it is? OK, so I won't have a complete port of the db with three tiers and a matching web interface by tomorrow. How about a bound form of a single simple table by tomorrow? ;-) I must admit though, I like it so far. It is waaaay different from Access, but it is also light-years closer to Access than the old VB was I think. Not that I was ever an expert in the old VB, I will admit. I am startled at how easy it is to connect to data out in the SQL Server. All you need to know is the name of the machine with SQL Server running (and authorization on that machine / SQL Server). Setting up the connections to the database and table within the db is all wizard driven. Couldn't be much easier than that, unless you count Access' ADP environment. I think getting connected in .net may even have been easier. I haven't found a table builder interface similar to Access' though. I suspect that you have to go direct to SQL Server's enterprise manager and build them there. Or use an Access ADP to build them. OMG, I just discovered that (of course) the form is not a child doc to the environment. This is VB after all. I clicked on the button in the task bar and it popped up right over my email message. I was expecting to be transported back to the .net environment and see the form there. Since the form exists in design view in the .net environment, that means that I can see it in design view and form view at the same time. Yes I know, I'm easily amazed. More tomorrow. John W. Colby Colby Consulting www.ColbyConsulting.com ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com From jcolby at colbyconsulting.com Mon Feb 24 23:45:11 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Tue, 25 Feb 2003 00:45:11 -0500 Subject: [dba-VB] Inheritance Message-ID: I have just finished two articles regarding TRUE IMPLEMENTATION INHERITANCE in .Net. http://www.microsoft.com/mspress/developer/feature/040402.asp The other was buried in a frame (?) which did not show the url when I burrowed down to it. MSDN Home > MSDN Library > .NET Development > Visual Studio .NET > Articles and Columns > Columns > Adventures in Visual Basic.net > Doing collections with inheritance Apparently VB 6 had only interface inheritance, which if you are familiar with and accustomed to implementation inheritance, pretty much sucks. .Net appears to have the real McCoy. Joy in Mudville folks. BTW, an example of some of the example code available for VB.Net: http://msdn.microsoft.com/vbasic/downloads/samples/default.asp John W. Colby Colby Consulting www.ColbyConsulting.com ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com From paul.hartland at fsmail.net Tue Feb 25 03:42:40 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 25 Feb 2003 9:42:40 +0000 Subject: [dba-VB] SQL Server 7 - Stored Procedure Help - Quite Urgent. Message-ID: <20030225094240.LAKO2415.fep03-svc.ttys.com@localhost> To all, Watch for Word Wrap............... Being quite a novice with Stored Procedures on SQL Server 7.0, I'm looking for some pretty urgent help at the moment. I have two tables, lets say Table A & Table B. Table A is my master table, and Table B is a temporary table. Before Table be gets populated with any data, every existing record is deleted so I start with a fresh table so to speak. Table B consists of 3 fields PayrollNo, JobDate, JobType (these fields are also in the master table, but the master table is used to contain other consting information, which is entered at a later date). What I would like is a Stored Procedure which would Insert Table B contents into Table A, but making sure that I don't insert any duplicates into Table A (something like an unmatched query in access but with an Insert also). i.e. Table A Table B payroll jobdate jobtype id payroll jobdate jobtype 999001 01/01/01 0 1 999001 01/01/01 0 999001 01/01/01 2 2 999001 01/01/01 1 999002 01/01/01 2 3 999001 01/01/01 2 4 999002 01/01/01 0 5 999002 01/01/01 1 6 999002 01/01/01 2 So when I invoke the stored procedure, it would insert records 2, 4 and 5 from Table B into Table A........Anyone any idea what I'm on about, if so can anybody please help....... Thanks in advance Paul Hartland __________________________________________________________________________ Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month after that. For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890 From paul.hartland at fsmail.net Tue Feb 25 03:42:40 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 25 Feb 2003 9:42:40 +0000 Subject: [dba-VB] [dba-SQLServer]SQL Server 7 - Stored Procedure Help - Quite Urgent. Message-ID: <20030225094240.LAKO2415.fep03-svc.ttys.com@localhost> To all, Watch for Word Wrap............... Being quite a novice with Stored Procedures on SQL Server 7.0, I'm looking for some pretty urgent help at the moment. I have two tables, lets say Table A & Table B. Table A is my master table, and Table B is a temporary table. Before Table be gets populated with any data, every existing record is deleted so I start with a fresh table so to speak. Table B consists of 3 fields PayrollNo, JobDate, JobType (these fields are also in the master table, but the master table is used to contain other consting information, which is entered at a later date). What I would like is a Stored Procedure which would Insert Table B contents into Table A, but making sure that I don't insert any duplicates into Table A (something like an unmatched query in access but with an Insert also). i.e. Table A Table B payroll jobdate jobtype id payroll jobdate jobtype 999001 01/01/01 0 1 999001 01/01/01 0 999001 01/01/01 2 2 999001 01/01/01 1 999002 01/01/01 2 3 999001 01/01/01 2 4 999002 01/01/01 0 5 999002 01/01/01 1 6 999002 01/01/01 2 So when I invoke the stored procedure, it would insert records 2, 4 and 5 from Table B into Table A........Anyone any idea what I'm on about, if so can anybody please help....... Thanks in advance Paul Hartland __________________________________________________________________________ Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month after that. For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890 _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From scott.marcus at ae.ge.com Tue Feb 25 05:48:29 2003 From: scott.marcus at ae.ge.com (Marcus, Scott (GEAE, RHI Consulting)) Date: Tue, 25 Feb 2003 06:48:29 -0500 Subject: [dba-VB] SQL Server 7 - Stored Procedure Help - Quite Urgent. Message-ID: <768A0EA6FF8CB34FA522978966E5D52E559D10@bwam02msx.ae.ge.com> Paul, The following is untested and may need tweaking, but I think it will at least get you started... INSERT INTO [Table A] payroll , jobdate, jobtype SELECT B.payroll, B.jobdate, B.jobtype FROM [Table B] as B WHERE B.id NOT IN (SELECT BB.id FROM [Table B] as BB, [Table A] as A WHERE BB.payroll = A.payroll AND BB.jobdate = A.jobdate AND BB.jobtype = A.jobtype) Scott Marcus -----Original Message----- From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] Sent: Tuesday, February 25, 2003 4:43 AM To: dba-SQLServer at databaseadvisors.com; accessd at databaseadvisors.com; dba-vb at databaseadvisors.com Subject: [dba-VB] SQL Server 7 - Stored Procedure Help - Quite Urgent. To all, Watch for Word Wrap............... Being quite a novice with Stored Procedures on SQL Server 7.0, I'm looking for some pretty urgent help at the moment. I have two tables, lets say Table A & Table B. Table A is my master table, and Table B is a temporary table. Before Table be gets populated with any data, every existing record is deleted so I start with a fresh table so to speak. Table B consists of 3 fields PayrollNo, JobDate, JobType (these fields are also in the master table, but the master table is used to contain other consting information, which is entered at a later date). What I would like is a Stored Procedure which would Insert Table B contents into Table A, but making sure that I don't insert any duplicates into Table A (something like an unmatched query in access but with an Insert also). i.e. Table A Table B payroll jobdate jobtype id payroll jobdate jobtype 999001 01/01/01 0 1 999001 01/01/01 0 999001 01/01/01 2 2 999001 01/01/01 1 999002 01/01/01 2 3 999001 01/01/01 2 4 999002 01/01/01 0 5 999002 01/01/01 1 6 999002 01/01/01 2 So when I invoke the stored procedure, it would insert records 2, 4 and 5 from Table B into Table A........Anyone any idea what I'm on about, if so can anybody please help....... Thanks in advance Paul Hartland __________________________________________________________________________ Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month after that. For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890 _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From ghazzard at aelfen.net Mon Feb 24 15:02:24 2003 From: ghazzard at aelfen.net (Gregory K. Hazzard) Date: Mon, 24 Feb 2003 15:02:24 -0600 Subject: [dba-VB] VB6: TreeView Controls and Drag-N-Drop In-Reply-To: <2F8793082E00D4119A1700B0D0216BF801D82171@main2.marlow.com> Message-ID: <002e01c2dc48$08657ca0$0200a8c0@greg> Drew, That sounds great. You can send me a copy off list at ghazzard at aelfen.net. I really appreciate that. I've been reading through the pages that Bryan suggested, but have been unable thus far to get DnD working. The examples seem to work well enough, but I am obviously not doing something correctly in my app. Thanks Greg -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Monday, February 24, 2003 11:26 AM To: 'dba-vb at databaseadvisors.com' Subject: RE: [dba-VB] VB6: TreeView Controls and Drag-N-Drop I have a drag and drop treeview setup. I can send the form so you can see the code if you want... Let me know if you want me to send you the form I am talking about. Drew From my.lists at verizon.net Tue Feb 25 10:35:37 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Tue, 25 Feb 2003 08:35:37 -0800 Subject: [dba-VB] Re: [dba-SQLServer]SQL Server 7 - Stored Procedure Help - Quite Urgent. References: <20030225094240.LAKO2415.fep03-svc.ttys.com@localhost> Message-ID: <004c01c2dceb$f118b9f0$b615010a@FHTAPIA> How about .... Insert into tableA (Payroll, jobdate, jobtype) Select Payroll, jobdate, jobtype From tableB AS B WHERE NOT EXISTS( Select Payroll, jobdate, jobtype From tableA AS A Where B.Payroll = A.Payroll AND B.Jobdate = A.JobDate AND B.JobType = A.JobType) I could have used a NOT IN clause but then NOT IN can have some serious side effects...In General the above statement will be evaluated by the engine where as a NOT IN could miss evaluating the B alias in the where clause and cause it to report bad data, using Exists (or NOT EXISTS) usually yields faster performance and the assurance that it evaluates correctly. -Francisco http://rcm.netfirms.com ----- Original Message ----- From: To: ; ; Sent: Tuesday, February 25, 2003 1:42 AM Subject: [dba-SQLServer]SQL Server 7 - Stored Procedure Help - Quite Urgent. : To all, : : Watch for Word Wrap............... : : Being quite a novice with Stored Procedures on SQL Server 7.0, I'm looking for some pretty urgent help at the moment. I have two tables, lets say Table A & Table B. Table A is my master table, and Table B is a temporary table. Before Table be gets populated with any data, every existing record is deleted so I start with a fresh table so to speak. Table B consists of 3 fields PayrollNo, JobDate, JobType (these fields are also in the master table, but the master table is used to contain other consting information, which is entered at a later date). : : What I would like is a Stored Procedure which would Insert Table B contents into Table A, but making sure that I don't insert any duplicates into Table A (something like an unmatched query in access but with an Insert also). i.e. : : Table A Table B : payroll jobdate jobtype id payroll jobdate jobtype : 999001 01/01/01 0 1 999001 01/01/01 0 : 999001 01/01/01 2 2 999001 01/01/01 1 : 999002 01/01/01 2 3 999001 01/01/01 2 : 4 999002 01/01/01 0 : 5 999002 01/01/01 1 : 6 999002 01/01/01 2 : : So when I invoke the stored procedure, it would insert records 2, 4 and 5 from Table B into Table A........Anyone any idea what I'm on about, if so can anybody please help....... : : Thanks in advance : : Paul Hartland : : __________________________________________________________________________ : Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for : your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month : after that. : : For more information visit http://www.freeserve.com/time/ or call free on : 0800 970 8890 : : : _______________________________________________ : dba-SQLServer mailing list : dba-SQLServer at databaseadvisors.com : http://databaseadvisors.com/mailman/listinfo/dba-sqlserver : http://www.databaseadvisors.com : From my.lists at verizon.net Tue Feb 25 10:35:37 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Tue, 25 Feb 2003 08:35:37 -0800 Subject: [dba-VB] Re: [dba-SQLServer]SQL Server 7 - Stored Procedure Help - Quite Urgent. References: <20030225094240.LAKO2415.fep03-svc.ttys.com@localhost> Message-ID: <004c01c2dceb$f118b9f0$b615010a@FHTAPIA> How about .... Insert into tableA (Payroll, jobdate, jobtype) Select Payroll, jobdate, jobtype From tableB AS B WHERE NOT EXISTS( Select Payroll, jobdate, jobtype From tableA AS A Where B.Payroll = A.Payroll AND B.Jobdate = A.JobDate AND B.JobType = A.JobType) I could have used a NOT IN clause but then NOT IN can have some serious side effects...In General the above statement will be evaluated by the engine where as a NOT IN could miss evaluating the B alias in the where clause and cause it to report bad data, using Exists (or NOT EXISTS) usually yields faster performance and the assurance that it evaluates correctly. -Francisco http://rcm.netfirms.com ----- Original Message ----- From: To: ; ; Sent: Tuesday, February 25, 2003 1:42 AM Subject: [dba-SQLServer]SQL Server 7 - Stored Procedure Help - Quite Urgent. : To all, : : Watch for Word Wrap............... : : Being quite a novice with Stored Procedures on SQL Server 7.0, I'm looking for some pretty urgent help at the moment. I have two tables, lets say Table A & Table B. Table A is my master table, and Table B is a temporary table. Before Table be gets populated with any data, every existing record is deleted so I start with a fresh table so to speak. Table B consists of 3 fields PayrollNo, JobDate, JobType (these fields are also in the master table, but the master table is used to contain other consting information, which is entered at a later date). : : What I would like is a Stored Procedure which would Insert Table B contents into Table A, but making sure that I don't insert any duplicates into Table A (something like an unmatched query in access but with an Insert also). i.e. : : Table A Table B : payroll jobdate jobtype id payroll jobdate jobtype : 999001 01/01/01 0 1 999001 01/01/01 0 : 999001 01/01/01 2 2 999001 01/01/01 1 : 999002 01/01/01 2 3 999001 01/01/01 2 : 4 999002 01/01/01 0 : 5 999002 01/01/01 1 : 6 999002 01/01/01 2 : : So when I invoke the stored procedure, it would insert records 2, 4 and 5 from Table B into Table A........Anyone any idea what I'm on about, if so can anybody please help....... : : Thanks in advance : : Paul Hartland : : __________________________________________________________________________ : Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for : your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month : after that. : : For more information visit http://www.freeserve.com/time/ or call free on : 0800 970 8890 : : : _______________________________________________ : dba-SQLServer mailing list : dba-SQLServer at databaseadvisors.com : http://databaseadvisors.com/mailman/listinfo/dba-sqlserver : http://www.databaseadvisors.com : _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From jcolby at colbyconsulting.com Tue Feb 25 19:31:41 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Tue, 25 Feb 2003 20:31:41 -0500 Subject: [dba-VB] OT: .NET - Data grid syncs to combo Message-ID: I have moved my billing database BE to sql server, hooked up my existing Access FE and continue to use that as I play with the data in .Net. In the meantime, in VB.Net I created a bound form last night (or I think it's bound anyway, not positive). It was using an OLEConnection, which tonight I switched to an SQL connection. It's supposed to be faster. The form simply displays the state table (all fields) in a data grid. You really can't get much simpler than that, though I suppose for something like a state table it would suffice. I decided to try and figure out how to use a combo box to select a record in the data grid. Dragged and dropped a combo to the form, hooked the datasource property to the same data source I was using for the form / data grid. Set the display member (the field displayed) to ST_Abrev (the 2 char code), and the value member (the PK of the table) to ST_ID (the PK of the table). Opened the form, selected the state in the combo and the data grid moved the record selector to that state. Man was THAT easy! So the combination of everything allows the combo to just act as a record selector without all of the code required in Access. Not knowing exactly what is happening, I have to assume that the combo selecting something causes a record selector pointer in the data set object to point somewhere. Since the data grid is using the same data set object, the data grid displays the newly selected record. Just a guess of course. This stuff is way over my head. But so easy (if I just understood what I was doing). Cool beans man! John W. Colby Colby Consulting www.ColbyConsulting.com ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com From scott.marcus at ae.ge.com Wed Feb 26 07:10:11 2003 From: scott.marcus at ae.ge.com (Marcus, Scott (GEAE, RHI Consulting)) Date: Wed, 26 Feb 2003 08:10:11 -0500 Subject: [dba-VB] OT: .NET - Data grid syncs to combo Message-ID: <768A0EA6FF8CB34FA522978966E5D52E559D14@bwam02msx.ae.ge.com> John, Less than a year ago, I decided to convert an access application to .Net. Within one day, I had a working prototype in both VB.Net and C#.Net. It was extremely easy. You are right in that the combo changes the data set which in turn affects all controls linked to it. Just for kicks, I also bought Borland C++ and did the same thing (within a day). My conclusion is that all the major tools these days are offering click and create applications. It's just a matter of picking the technology you think is most marketable. I don't think you can go wrong in learning .Net. I'm still torn as to what technology to pick (although the next version of .Net is coming out in April and is just a $29 upgrade for previous .Net owners and includes the capability to make Pocket PC.Net applications). I'm very interested in discussing the techniques developers are using to convert Access applications to .Net. Hoping to find intelligent useful discussion on .Net, Scott Marcus -----Original Message----- From: John W. Colby [mailto:jcolby at colbyconsulting.com] Sent: Tuesday, February 25, 2003 8:32 PM To: AccessD Cc: AccessD - VBA Subject: [dba-VB] OT: .NET - Data grid syncs to combo I have moved my billing database BE to sql server, hooked up my existing Access FE and continue to use that as I play with the data in .Net. In the meantime, in VB.Net I created a bound form last night (or I think it's bound anyway, not positive). It was using an OLEConnection, which tonight I switched to an SQL connection. It's supposed to be faster. The form simply displays the state table (all fields) in a data grid. You really can't get much simpler than that, though I suppose for something like a state table it would suffice. I decided to try and figure out how to use a combo box to select a record in the data grid. Dragged and dropped a combo to the form, hooked the datasource property to the same data source I was using for the form / data grid. Set the display member (the field displayed) to ST_Abrev (the 2 char code), and the value member (the PK of the table) to ST_ID (the PK of the table). Opened the form, selected the state in the combo and the data grid moved the record selector to that state. Man was THAT easy! So the combination of everything allows the combo to just act as a record selector without all of the code required in Access. Not knowing exactly what is happening, I have to assume that the combo selecting something causes a record selector pointer in the data set object to point somewhere. Since the data grid is using the same data set object, the data grid displays the newly selected record. Just a guess of course. This stuff is way over my head. But so easy (if I just understood what I was doing). Cool beans man! John W. Colby Colby Consulting www.ColbyConsulting.com ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jcolby at colbyconsulting.com Wed Feb 26 08:48:45 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Wed, 26 Feb 2003 09:48:45 -0500 Subject: [dba-VB] OT: .NET - Data grid syncs to combo In-Reply-To: <768A0EA6FF8CB34FA522978966E5D52E559D14@bwam02msx.ae.ge.com> Message-ID: Marcus, I started programming in the early 80s and in the late 80s ended up in Turbo Pascal which went OO. It was extremely powerful (for the day) yet strongly typed unlike the C languages of the day. I purchased all of the Borland toolboxes, the application framework etc., bought books and really got into the whole inheritance thing I worked in that until I moved to Access in the early 90s. While Access was a huge step up in drag and drop design functionality, and radically different (and extremely powerful) in the use of the event driven paradigm, it was a huge step backwards on the OO side since it had nothing at all that even remotely resembled inheritance. .Net is almost like old home week. It is a highly structure system, with a huge base framework that provides instant functionality like I have never seen before, with true inheritance, with this new XML thingy built right in, with access to data from anywhere. The biggest problem I foresee is simply that the vast scope makes learning it a chore. But is so incredibly powerful, it is simply amazing. I was reading a tech paper last night where they built up XML docs in a word processor, saved them to a file (just for demo purposes), then simply used a built in property of a built in framework class to load the file and bind to that data. But not just bind as we know it. They bound the data to properties of the form. Any property of any control (and forms inherit from the control class so I'm told) can be bound to data. Which makes possible things like fore color or back color or font a property of the record. Painless storage of size / location of forms. Painless user modification and storage of color preferences. If you can imagine it, you can store it in a table and drive it from there. But not just tables. The objects that actually load and expose the data can use XML as easily as they can use tables. They can use arrays. The arrays can be simple arrays of values, or arrays of objects - CLASSES for example, and you can be binding a control property to a property of the class. This stuff is truly awesome. Built in collection functionality for stacks, queues, arrays that you can just dynamically add new members to (not to mention your simple collection). And anything can be sub classed to add your own functionality. Not just interface inheritance, but true implementation inheritance. Do you want a collection that stores an object, with built in checking to prevent storing anything but that object? Just subclass the collection class and over ride the .add method, typing the object input parameter. Done! As can be seen, I am truly psyched about this thing. I did a little programming in VB (I wish it had been more now) but it was so difficult to get at data (and I do databases) so it just didn't offer enough to make it worth the switch. .Net on the other hand is an order of magnitude more powerful, and getting at data is second nature. And as if all that isn't enough, you can pick your language. Amazing stuff. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Marcus, Scott (GEAE, RHI Consulting) Sent: Wednesday, February 26, 2003 8:10 AM To: 'dba-vb at databaseadvisors.com' Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo John, Less than a year ago, I decided to convert an access application to .Net. Within one day, I had a working prototype in both VB.Net and C#.Net. It was extremely easy. You are right in that the combo changes the data set which in turn affects all controls linked to it. Just for kicks, I also bought Borland C++ and did the same thing (within a day). My conclusion is that all the major tools these days are offering click and create applications. It's just a matter of picking the technology you think is most marketable. I don't think you can go wrong in learning .Net. I'm still torn as to what technology to pick (although the next version of .Net is coming out in April and is just a $29 upgrade for previous .Net owners and includes the capability to make Pocket PC.Net applications). I'm very interested in discussing the techniques developers are using to convert Access applications to .Net. Hoping to find intelligent useful discussion on .Net, Scott Marcus -----Original Message----- From: John W. Colby [mailto:jcolby at colbyconsulting.com] Sent: Tuesday, February 25, 2003 8:32 PM To: AccessD Cc: AccessD - VBA Subject: [dba-VB] OT: .NET - Data grid syncs to combo I have moved my billing database BE to sql server, hooked up my existing Access FE and continue to use that as I play with the data in .Net. In the meantime, in VB.Net I created a bound form last night (or I think it's bound anyway, not positive). It was using an OLEConnection, which tonight I switched to an SQL connection. It's supposed to be faster. The form simply displays the state table (all fields) in a data grid. You really can't get much simpler than that, though I suppose for something like a state table it would suffice. I decided to try and figure out how to use a combo box to select a record in the data grid. Dragged and dropped a combo to the form, hooked the datasource property to the same data source I was using for the form / data grid. Set the display member (the field displayed) to ST_Abrev (the 2 char code), and the value member (the PK of the table) to ST_ID (the PK of the table). Opened the form, selected the state in the combo and the data grid moved the record selector to that state. Man was THAT easy! So the combination of everything allows the combo to just act as a record selector without all of the code required in Access. Not knowing exactly what is happening, I have to assume that the combo selecting something causes a record selector pointer in the data set object to point somewhere. Since the data grid is using the same data set object, the data grid displays the newly selected record. Just a guess of course. This stuff is way over my head. But so easy (if I just understood what I was doing). Cool beans man! John W. Colby Colby Consulting www.ColbyConsulting.com ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 5100 bytes Desc: not available URL: From scott.marcus at ae.ge.com Wed Feb 26 09:31:45 2003 From: scott.marcus at ae.ge.com (Marcus, Scott (GEAE, RHI Consulting)) Date: Wed, 26 Feb 2003 10:31:45 -0500 Subject: [dba-VB] OT: .NET - Data grid syncs to combo Message-ID: <768A0EA6FF8CB34FA522978966E5D52E559D15@bwam02msx.ae.ge.com> John, One of the issues that I know I will run into is that my clients are going to want top see all of this data (like Access does...looks very Excel like...my clients are very Excel savy) in a data grid. Previous versions of VB had limited built in data grid capabilities (I don't want to spend another $1K on 3rd party tools). If the data grid is alot closer to what Access provides that would be great. I haven't messed much with .Net since my initial "playing around" a year ago, but I do need to get heavily into it. Any input on the data grid capabilities? Scott Marcus > -----Original Message----- > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > Sent: Wednesday, February 26, 2003 9:49 AM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > Marcus, > > I started programming in the early 80s and in the late 80s ended up in Turbo > Pascal which went OO. It was extremely powerful (for the day) yet strongly > typed unlike the C languages of the day. I purchased all of the Borland > toolboxes, the application framework etc., bought books and really got into > the whole inheritance thing > > I worked in that until I moved to Access in the early 90s. While Access was a > huge step up in drag and drop design functionality, and radically different > (and extremely powerful) in the use of the event driven paradigm, it was a > huge step backwards on the OO side since it had nothing at all that even > remotely resembled inheritance. > > .Net is almost like old home week. It is a highly structure system, with a > huge base framework that provides instant functionality like I have never seen > before, with true inheritance, with this new XML thingy built right in, with > access to data from anywhere. The biggest problem I foresee is simply that > the vast scope makes learning it a chore. But is so incredibly powerful, it > is simply amazing. > > I was reading a tech paper last night where they built up XML docs in a word > processor, saved them to a file (just for demo purposes), then simply used a > built in property of a built in framework class to load the file and bind to > that data. But not just bind as we know it. They bound the data to > properties of the form. Any property of any control (and forms inherit from > the control class so I'm told) can be bound to data. Which makes possible > things like fore color or back color or font a property of the record. > Painless storage of size / location of forms. Painless user modification and > storage of color preferences. If you can imagine it, you can store it in a > table and drive it from there. > > But not just tables. The objects that actually load and expose the data can > use XML as easily as they can use tables. They can use arrays. The arrays > can be simple arrays of values, or arrays of objects - CLASSES for example, > and you can be binding a control property to a property of the class. > > This stuff is truly awesome. Built in collection functionality for stacks, > queues, arrays that you can just dynamically add new members to (not to > mention your simple collection). And anything can be sub classed to add your > own functionality. Not just interface inheritance, but true implementation > inheritance. Do you want a collection that stores an object, with built in > checking to prevent storing anything but that object? Just subclass the > collection class and over ride the .add method, typing the object input > parameter. Done! > > As can be seen, I am truly psyched about this thing. I did a little > programming in VB (I wish it had been more now) but it was so difficult to get > at data (and I do databases) so it just didn't offer enough to make it worth > the switch. .Net on the other hand is an order of magnitude more powerful, > and getting at data is second nature. > > And as if all that isn't enough, you can pick your language. > > Amazing stuff. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: dba-vb-admin at databaseadvisors.com > [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Marcus, Scott > (GEAE, RHI Consulting) > Sent: Wednesday, February 26, 2003 8:10 AM > To: 'dba-vb at databaseadvisors.com' > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > John, > > Less than a year ago, I decided to convert an access application to .Net. > Within > one day, I had a working prototype in both VB.Net and C#.Net. It was extremely > easy. You are right in that the combo changes the data set which in turn > affects > all controls linked to it. Just for kicks, I also bought Borland C++ and did > the > same thing (within a day). > > My conclusion is that all the major tools these days are offering click and > create applications. It's just a matter of picking the technology you think is > most marketable. I don't think you can go wrong in learning .Net. I'm still > torn > as to what technology to pick (although the next version of .Net is coming out > in April and is just a $29 upgrade for previous .Net owners and includes the > capability to make Pocket PC.Net applications). > > I'm very interested in discussing the techniques developers are using to > convert > Access applications to .Net. > > Hoping to find intelligent useful discussion on .Net, > > Scott Marcus > > -----Original Message----- > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > Sent: Tuesday, February 25, 2003 8:32 PM > To: AccessD > Cc: AccessD - VBA > Subject: [dba-VB] OT: .NET - Data grid syncs to combo > > > I have moved my billing database BE to sql server, hooked up my existing > Access FE and continue to use that as I play with the data in .Net. > > In the meantime, in VB.Net I created a bound form last night (or I think > it's bound anyway, not positive). It was using an OLEConnection, which > tonight I switched to an SQL connection. It's supposed to be faster. The > form simply displays the state table (all fields) in a data grid. You > really can't get much simpler than that, though I suppose for something like > a state table it would suffice. > > I decided to try and figure out how to use a combo box to select a record in > the data grid. Dragged and dropped a combo to the form, hooked the > datasource property to the same data source I was using for the form / data > grid. Set the display member (the field displayed) to ST_Abrev (the 2 char > code), and the value member (the PK of the table) to ST_ID (the PK of the > table). Opened the form, selected the state in the combo and the data grid > moved the record selector to that state. > > Man was THAT easy! So the combination of everything allows the combo to > just act as a record selector without all of the code required in Access. > Not knowing exactly what is happening, I have to assume that the combo > selecting something causes a record selector pointer in the data set object > to point somewhere. Since the data grid is using the same data set object, > the data grid displays the newly selected record. > > Just a guess of course. This stuff is way over my head. > > But so easy (if I just understood what I was doing). > > Cool beans man! > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > ---------------------------------------------------- > Is email taking over your day? Manage your time with eMailBoss. > Try it free! http://www.eMailBoss.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > > > ---------------------------------------------------- > Is email taking over your day? Manage your time with eMailBoss. > Try it free! http://www.eMailBoss.com From jcolby at colbyconsulting.com Wed Feb 26 09:41:23 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Wed, 26 Feb 2003 10:41:23 -0500 Subject: [dba-VB] OT: .NET - Data grid syncs to combo In-Reply-To: <768A0EA6FF8CB34FA522978966E5D52E559D15@bwam02msx.ae.ge.com> Message-ID: I don't use the data grid in Access. I was put off by the potential problems of users changing the columns till one disappeared (and the support calls that ensue). I can tell you that the data grid looks similar to Access' form is switched to datasheet. The biggest difference is that if you expose the column heading, you can click on the heading and it sorts on that column. Click again and it sorts in reverse order. I am not fluent enough in data grids in either technology to tell you much I'm afraid. What capabilities are you looking for? John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Marcus, Scott (GEAE, RHI Consulting) Sent: Wednesday, February 26, 2003 10:32 AM To: 'dba-vb at databaseadvisors.com' Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo John, One of the issues that I know I will run into is that my clients are going to want top see all of this data (like Access does...looks very Excel like...my clients are very Excel savy) in a data grid. Previous versions of VB had limited built in data grid capabilities (I don't want to spend another $1K on 3rd party tools). If the data grid is alot closer to what Access provides that would be great. I haven't messed much with .Net since my initial "playing around" a year ago, but I do need to get heavily into it. Any input on the data grid capabilities? Scott Marcus > -----Original Message----- > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > Sent: Wednesday, February 26, 2003 9:49 AM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > Marcus, > > I started programming in the early 80s and in the late 80s ended up in Turbo > Pascal which went OO. It was extremely powerful (for the day) yet strongly > typed unlike the C languages of the day. I purchased all of the Borland > toolboxes, the application framework etc., bought books and really got into > the whole inheritance thing > > I worked in that until I moved to Access in the early 90s. While Access was a > huge step up in drag and drop design functionality, and radically different > (and extremely powerful) in the use of the event driven paradigm, it was a > huge step backwards on the OO side since it had nothing at all that even > remotely resembled inheritance. > > .Net is almost like old home week. It is a highly structure system, with a > huge base framework that provides instant functionality like I have never seen > before, with true inheritance, with this new XML thingy built right in, with > access to data from anywhere. The biggest problem I foresee is simply that > the vast scope makes learning it a chore. But is so incredibly powerful, it > is simply amazing. > > I was reading a tech paper last night where they built up XML docs in a word > processor, saved them to a file (just for demo purposes), then simply used a > built in property of a built in framework class to load the file and bind to > that data. But not just bind as we know it. They bound the data to > properties of the form. Any property of any control (and forms inherit from > the control class so I'm told) can be bound to data. Which makes possible > things like fore color or back color or font a property of the record. > Painless storage of size / location of forms. Painless user modification and > storage of color preferences. If you can imagine it, you can store it in a > table and drive it from there. > > But not just tables. The objects that actually load and expose the data can > use XML as easily as they can use tables. They can use arrays. The arrays > can be simple arrays of values, or arrays of objects - CLASSES for example, > and you can be binding a control property to a property of the class. > > This stuff is truly awesome. Built in collection functionality for stacks, > queues, arrays that you can just dynamically add new members to (not to > mention your simple collection). And anything can be sub classed to add your > own functionality. Not just interface inheritance, but true implementation > inheritance. Do you want a collection that stores an object, with built in > checking to prevent storing anything but that object? Just subclass the > collection class and over ride the .add method, typing the object input > parameter. Done! > > As can be seen, I am truly psyched about this thing. I did a little > programming in VB (I wish it had been more now) but it was so difficult to get > at data (and I do databases) so it just didn't offer enough to make it worth > the switch. .Net on the other hand is an order of magnitude more powerful, > and getting at data is second nature. > > And as if all that isn't enough, you can pick your language. > > Amazing stuff. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: dba-vb-admin at databaseadvisors.com > [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Marcus, Scott > (GEAE, RHI Consulting) > Sent: Wednesday, February 26, 2003 8:10 AM > To: 'dba-vb at databaseadvisors.com' > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > John, > > Less than a year ago, I decided to convert an access application to .Net. > Within > one day, I had a working prototype in both VB.Net and C#.Net. It was extremely > easy. You are right in that the combo changes the data set which in turn > affects > all controls linked to it. Just for kicks, I also bought Borland C++ and did > the > same thing (within a day). > > My conclusion is that all the major tools these days are offering click and > create applications. It's just a matter of picking the technology you think is > most marketable. I don't think you can go wrong in learning .Net. I'm still > torn > as to what technology to pick (although the next version of .Net is coming out > in April and is just a $29 upgrade for previous .Net owners and includes the > capability to make Pocket PC.Net applications). > > I'm very interested in discussing the techniques developers are using to > convert > Access applications to .Net. > > Hoping to find intelligent useful discussion on .Net, > > Scott Marcus > > -----Original Message----- > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > Sent: Tuesday, February 25, 2003 8:32 PM > To: AccessD > Cc: AccessD - VBA > Subject: [dba-VB] OT: .NET - Data grid syncs to combo > > > I have moved my billing database BE to sql server, hooked up my existing > Access FE and continue to use that as I play with the data in .Net. > > In the meantime, in VB.Net I created a bound form last night (or I think > it's bound anyway, not positive). It was using an OLEConnection, which > tonight I switched to an SQL connection. It's supposed to be faster. The > form simply displays the state table (all fields) in a data grid. You > really can't get much simpler than that, though I suppose for something like > a state table it would suffice. > > I decided to try and figure out how to use a combo box to select a record in > the data grid. Dragged and dropped a combo to the form, hooked the > datasource property to the same data source I was using for the form / data > grid. Set the display member (the field displayed) to ST_Abrev (the 2 char > code), and the value member (the PK of the table) to ST_ID (the PK of the > table). Opened the form, selected the state in the combo and the data grid > moved the record selector to that state. > > Man was THAT easy! So the combination of everything allows the combo to > just act as a record selector without all of the code required in Access. > Not knowing exactly what is happening, I have to assume that the combo > selecting something causes a record selector pointer in the data set object > to point somewhere. Since the data grid is using the same data set object, > the data grid displays the newly selected record. > > Just a guess of course. This stuff is way over my head. > > But so easy (if I just understood what I was doing). > > Cool beans man! > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > ---------------------------------------------------- > Is email taking over your day? Manage your time with eMailBoss. > Try it free! http://www.eMailBoss.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > > > ---------------------------------------------------- > Is email taking over your day? Manage your time with eMailBoss. > Try it free! http://www.eMailBoss.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 6088 bytes Desc: not available URL: From paul.hartland at fsmail.net Wed Feb 26 10:47:13 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 26 Feb 2003 16:47:13 +0000 Subject: [dba-VB] More SQL Server 7 Stored Procedure help if possible Message-ID: <20030226164713.TRTX5116.fep06-svc.ttys.com@localhost> To all, If you read my first email regarding Stored Procedure's you will know that I am quite a novice at the moment. I have a table called tblAvailabilityAll which contains fields PayrollNo and an AvailabilityCode. The Availability codes are A,N,S,H and when an employee leaves, in the first instance we need to update A,N,S,H to 1,2,3,4 accordingly. Anyone have any idea how to do this within one Stored Procedure (or is it possible in a single Stored Procedure.....??? I would be grateful fr any sample code etc... Thanks in advance Paul Hartland __________________________________________________________________________ Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month after that. For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890 From paul.hartland at fsmail.net Wed Feb 26 10:47:13 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 26 Feb 2003 16:47:13 +0000 Subject: [dba-VB] [dba-SQLServer]More SQL Server 7 Stored Procedure help if possible Message-ID: <20030226164713.TRTX5116.fep06-svc.ttys.com@localhost> To all, If you read my first email regarding Stored Procedure's you will know that I am quite a novice at the moment. I have a table called tblAvailabilityAll which contains fields PayrollNo and an AvailabilityCode. The Availability codes are A,N,S,H and when an employee leaves, in the first instance we need to update A,N,S,H to 1,2,3,4 accordingly. Anyone have any idea how to do this within one Stored Procedure (or is it possible in a single Stored Procedure.....??? I would be grateful fr any sample code etc... Thanks in advance Paul Hartland __________________________________________________________________________ Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month after that. For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890 _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From scott.marcus at ae.ge.com Wed Feb 26 11:14:17 2003 From: scott.marcus at ae.ge.com (Marcus, Scott (GEAE, RHI Consulting)) Date: Wed, 26 Feb 2003 12:14:17 -0500 Subject: [dba-VB] OT: .NET - Data grid syncs to combo Message-ID: <768A0EA6FF8CB34FA522978966E5D52E559D16@bwam02msx.ae.ge.com> John, I'm looking at the sorting capabilities, the resize(both height and width) capabilities, drag and drop column ordering, and data editing within the cell. This may all be there, I just haven't dug into it yet. I also need to be able to turn those features off and on (Access doesn't really have that capability). Other big features that would push it over the top are: a query designer on par with Access, sub forms and reports, continuous forms, and better reporting capabilities. I pretty much want the capabilities of Access in Studio .Net. Again, all this can be acomplished with 3rd party tools or enough time to design your own. That extra cost to get Studio up to par with Access (interface design wise) with 3rd party tools has been the killer for me. If Microsoft made a tool that had the power of Studio .Net, the interface capabilities of Access, the query designer of Access, and able to complie like Studio .Net does that would be "The Tool" to have. The compiling issue (Studio not offering a true compile) is a debate I'd rather not get into, I just HATE the Access runtime. Maybe they could offer something like "Studio .Net Access interface add-in". Now that I would purchase. Scott Marcus > -----Original Message----- > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > Sent: Wednesday, February 26, 2003 10:41 AM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > I don't use the data grid in Access. I was put off by the potential problems > of users changing the columns till one disappeared (and the support calls that > ensue). > > I can tell you that the data grid looks similar to Access' form is switched to > datasheet. The biggest difference is that if you expose the column heading, > you can click on the heading and it sorts on that column. Click again and it > sorts in reverse order. > > I am not fluent enough in data grids in either technology to tell you much I'm > afraid. What capabilities are you looking for? > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: dba-vb-admin at databaseadvisors.com > [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Marcus, Scott > (GEAE, RHI Consulting) > Sent: Wednesday, February 26, 2003 10:32 AM > To: 'dba-vb at databaseadvisors.com' > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > John, > > One of the issues that I know I will run into is that my clients are going to > want top see all of this data (like Access does...looks very Excel like...my > clients are very Excel savy) in a data grid. Previous versions of VB had > limited > built in data grid capabilities (I don't want to spend another $1K on 3rd > party > tools). If the data grid is alot closer to what Access provides that would be > great. I haven't messed much with .Net since my initial "playing around" a > year > ago, but I do need to get heavily into it. Any input on the data grid > capabilities? > > Scott Marcus > > > > -----Original Message----- > > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > > Sent: Wednesday, February 26, 2003 9:49 AM > > To: dba-vb at databaseadvisors.com > > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > > Marcus, > > > > I started programming in the early 80s and in the late 80s ended up in Turbo > > Pascal which went OO. It was extremely powerful (for the day) yet strongly > > typed unlike the C languages of the day. I purchased all of the Borland > > toolboxes, the application framework etc., bought books and really got into > > the whole inheritance thing > > > > I worked in that until I moved to Access in the early 90s. While Access was > a > > huge step up in drag and drop design functionality, and radically different > > (and extremely powerful) in the use of the event driven paradigm, it was a > > huge step backwards on the OO side since it had nothing at all that even > > remotely resembled inheritance. > > > > .Net is almost like old home week. It is a highly structure system, with a > > huge base framework that provides instant functionality like I have never > seen > > before, with true inheritance, with this new XML thingy built right in, with > > access to data from anywhere. The biggest problem I foresee is simply that > > the vast scope makes learning it a chore. But is so incredibly powerful, it > > is simply amazing. > > > > I was reading a tech paper last night where they built up XML docs in a word > > processor, saved them to a file (just for demo purposes), then simply used a > > built in property of a built in framework class to load the file and bind to > > that data. But not just bind as we know it. They bound the data to > > properties of the form. Any property of any control (and forms inherit from > > the control class so I'm told) can be bound to data. Which makes possible > > things like fore color or back color or font a property of the record. > > Painless storage of size / location of forms. Painless user modification > and > > storage of color preferences. If you can imagine it, you can store it in a > > table and drive it from there. > > > > But not just tables. The objects that actually load and expose the data can > > use XML as easily as they can use tables. They can use arrays. The arrays > > can be simple arrays of values, or arrays of objects - CLASSES for example, > > and you can be binding a control property to a property of the class. > > > > This stuff is truly awesome. Built in collection functionality for stacks, > > queues, arrays that you can just dynamically add new members to (not to > > mention your simple collection). And anything can be sub classed to add > your > > own functionality. Not just interface inheritance, but true implementation > > inheritance. Do you want a collection that stores an object, with built in > > checking to prevent storing anything but that object? Just subclass the > > collection class and over ride the .add method, typing the object input > > parameter. Done! > > > > As can be seen, I am truly psyched about this thing. I did a little > > programming in VB (I wish it had been more now) but it was so difficult to > get > > at data (and I do databases) so it just didn't offer enough to make it worth > > the switch. .Net on the other hand is an order of magnitude more powerful, > > and getting at data is second nature. > > > > And as if all that isn't enough, you can pick your language. > > > > Amazing stuff. > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > -----Original Message----- > > From: dba-vb-admin at databaseadvisors.com > > [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Marcus, Scott > > (GEAE, RHI Consulting) > > Sent: Wednesday, February 26, 2003 8:10 AM > > To: 'dba-vb at databaseadvisors.com' > > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > > > > John, > > > > Less than a year ago, I decided to convert an access application to .Net. > > Within > > one day, I had a working prototype in both VB.Net and C#.Net. It was > extremely > > easy. You are right in that the combo changes the data set which in turn > > affects > > all controls linked to it. Just for kicks, I also bought Borland C++ and did > > the > > same thing (within a day). > > > > My conclusion is that all the major tools these days are offering click and > > create applications. It's just a matter of picking the technology you think > is > > most marketable. I don't think you can go wrong in learning .Net. I'm still > > torn > > as to what technology to pick (although the next version of .Net is coming > out > > in April and is just a $29 upgrade for previous .Net owners and includes the > > capability to make Pocket PC.Net applications). > > > > I'm very interested in discussing the techniques developers are using to > > convert > > Access applications to .Net. > > > > Hoping to find intelligent useful discussion on .Net, > > > > Scott Marcus > > > > -----Original Message----- > > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > > Sent: Tuesday, February 25, 2003 8:32 PM > > To: AccessD > > Cc: AccessD - VBA > > Subject: [dba-VB] OT: .NET - Data grid syncs to combo > > > > > > I have moved my billing database BE to sql server, hooked up my existing > > Access FE and continue to use that as I play with the data in .Net. > > > > In the meantime, in VB.Net I created a bound form last night (or I think > > it's bound anyway, not positive). It was using an OLEConnection, which > > tonight I switched to an SQL connection. It's supposed to be faster. The > > form simply displays the state table (all fields) in a data grid. You > > really can't get much simpler than that, though I suppose for something like > > a state table it would suffice. > > > > I decided to try and figure out how to use a combo box to select a record in > > the data grid. Dragged and dropped a combo to the form, hooked the > > datasource property to the same data source I was using for the form / data > > grid. Set the display member (the field displayed) to ST_Abrev (the 2 char > > code), and the value member (the PK of the table) to ST_ID (the PK of the > > table). Opened the form, selected the state in the combo and the data grid > > moved the record selector to that state. > > > > Man was THAT easy! So the combination of everything allows the combo to > > just act as a record selector without all of the code required in Access. > > Not knowing exactly what is happening, I have to assume that the combo > > selecting something causes a record selector pointer in the data set object > > to point somewhere. Since the data grid is using the same data set object, > > the data grid displays the newly selected record. > > > > Just a guess of course. This stuff is way over my head. > > > > But so easy (if I just understood what I was doing). > > > > Cool beans man! > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > ---------------------------------------------------- > > Is email taking over your day? Manage your time with eMailBoss. > > Try it free! http://www.eMailBoss.com > > > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > > > > > > > ---------------------------------------------------- > > Is email taking over your day? Manage your time with eMailBoss. > > Try it free! http://www.eMailBoss.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > > > ---------------------------------------------------- > Is email taking over your day? Manage your time with eMailBoss. > Try it free! http://www.eMailBoss.com From jcolby at colbyconsulting.com Wed Feb 26 11:36:55 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Wed, 26 Feb 2003 12:36:55 -0500 Subject: [dba-VB] OT: .NET - Data grid syncs to combo In-Reply-To: <768A0EA6FF8CB34FA522978966E5D52E559D16@bwam02msx.ae.ge.com> Message-ID: The column is resizable by placing the cursor over the vertical line in the column header and dragging it. The individual row is resizable - same way. Resizes just that row though, not all rows. The column is sortable by clicking on the column header. As for the rest, I think you are dreaming. This is not Access.net, this is VB.net. OTOH, they claim you drop ANY object onto a form. If you build a "main form" with a tab control, build a "subform", and manage to place the subform on the main form then you have a subform. The master / child properties aren't there, but we all know how to set up the subform's datasource query to filter on a control on the main form. I understand completely the desire to have Access' RAD tools for database specific stuff. I can't say for sure since I am new to this, but I do not think VB.net has those things you point to. OTOH it has so much else now that Access doesn't have that it becomes a push as to which is more powerful for db design. .Net's handling of classes and inheritance, data sources, XML and other very powerful tools make it a truly awesome environment. My entire objection at this point more or less boils down to "I know how to do that in Access". I will have to learn new ways to do things that are just built in to Access, but I do think that the flexibility of .NET makes it worth diving into. Whether it will entirely replace Access for my development is doubtful, at least not in the near future. I am just too fast in Access and can get entire dbs prototyped in days / weeks where it will take much longer (for now anyway) in .NET. Will that be true once I know .NET like I know Access? John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Marcus, Scott (GEAE, RHI Consulting) Sent: Wednesday, February 26, 2003 12:14 PM To: 'dba-vb at databaseadvisors.com' Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo John, I'm looking at the sorting capabilities, the resize(both height and width) capabilities, drag and drop column ordering, and data editing within the cell. This may all be there, I just haven't dug into it yet. I also need to be able to turn those features off and on (Access doesn't really have that capability). Other big features that would push it over the top are: a query designer on par with Access, sub forms and reports, continuous forms, and better reporting capabilities. I pretty much want the capabilities of Access in Studio .Net. Again, all this can be acomplished with 3rd party tools or enough time to design your own. That extra cost to get Studio up to par with Access (interface design wise) with 3rd party tools has been the killer for me. If Microsoft made a tool that had the power of Studio .Net, the interface capabilities of Access, the query designer of Access, and able to complie like Studio .Net does that would be "The Tool" to have. The compiling issue (Studio not offering a true compile) is a debate I'd rather not get into, I just HATE the Access runtime. Maybe they could offer something like "Studio .Net Access interface add-in". Now that I would purchase. Scott Marcus > -----Original Message----- > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > Sent: Wednesday, February 26, 2003 10:41 AM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > I don't use the data grid in Access. I was put off by the potential problems > of users changing the columns till one disappeared (and the support calls that > ensue). > > I can tell you that the data grid looks similar to Access' form is switched to > datasheet. The biggest difference is that if you expose the column heading, > you can click on the heading and it sorts on that column. Click again and it > sorts in reverse order. > > I am not fluent enough in data grids in either technology to tell you much I'm > afraid. What capabilities are you looking for? > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: dba-vb-admin at databaseadvisors.com > [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Marcus, Scott > (GEAE, RHI Consulting) > Sent: Wednesday, February 26, 2003 10:32 AM > To: 'dba-vb at databaseadvisors.com' > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > John, > > One of the issues that I know I will run into is that my clients are going to > want top see all of this data (like Access does...looks very Excel like...my > clients are very Excel savy) in a data grid. Previous versions of VB had > limited > built in data grid capabilities (I don't want to spend another $1K on 3rd > party > tools). If the data grid is alot closer to what Access provides that would be > great. I haven't messed much with .Net since my initial "playing around" a > year > ago, but I do need to get heavily into it. Any input on the data grid > capabilities? > > Scott Marcus > > > > -----Original Message----- > > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > > Sent: Wednesday, February 26, 2003 9:49 AM > > To: dba-vb at databaseadvisors.com > > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > > Marcus, > > > > I started programming in the early 80s and in the late 80s ended up in Turbo > > Pascal which went OO. It was extremely powerful (for the day) yet strongly > > typed unlike the C languages of the day. I purchased all of the Borland > > toolboxes, the application framework etc., bought books and really got into > > the whole inheritance thing > > > > I worked in that until I moved to Access in the early 90s. While Access was > a > > huge step up in drag and drop design functionality, and radically different > > (and extremely powerful) in the use of the event driven paradigm, it was a > > huge step backwards on the OO side since it had nothing at all that even > > remotely resembled inheritance. > > > > .Net is almost like old home week. It is a highly structure system, with a > > huge base framework that provides instant functionality like I have never > seen > > before, with true inheritance, with this new XML thingy built right in, with > > access to data from anywhere. The biggest problem I foresee is simply that > > the vast scope makes learning it a chore. But is so incredibly powerful, it > > is simply amazing. > > > > I was reading a tech paper last night where they built up XML docs in a word > > processor, saved them to a file (just for demo purposes), then simply used a > > built in property of a built in framework class to load the file and bind to > > that data. But not just bind as we know it. They bound the data to > > properties of the form. Any property of any control (and forms inherit from > > the control class so I'm told) can be bound to data. Which makes possible > > things like fore color or back color or font a property of the record. > > Painless storage of size / location of forms. Painless user modification > and > > storage of color preferences. If you can imagine it, you can store it in a > > table and drive it from there. > > > > But not just tables. The objects that actually load and expose the data can > > use XML as easily as they can use tables. They can use arrays. The arrays > > can be simple arrays of values, or arrays of objects - CLASSES for example, > > and you can be binding a control property to a property of the class. > > > > This stuff is truly awesome. Built in collection functionality for stacks, > > queues, arrays that you can just dynamically add new members to (not to > > mention your simple collection). And anything can be sub classed to add > your > > own functionality. Not just interface inheritance, but true implementation > > inheritance. Do you want a collection that stores an object, with built in > > checking to prevent storing anything but that object? Just subclass the > > collection class and over ride the .add method, typing the object input > > parameter. Done! > > > > As can be seen, I am truly psyched about this thing. I did a little > > programming in VB (I wish it had been more now) but it was so difficult to > get > > at data (and I do databases) so it just didn't offer enough to make it worth > > the switch. .Net on the other hand is an order of magnitude more powerful, > > and getting at data is second nature. > > > > And as if all that isn't enough, you can pick your language. > > > > Amazing stuff. > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > -----Original Message----- > > From: dba-vb-admin at databaseadvisors.com > > [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Marcus, Scott > > (GEAE, RHI Consulting) > > Sent: Wednesday, February 26, 2003 8:10 AM > > To: 'dba-vb at databaseadvisors.com' > > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > > > > John, > > > > Less than a year ago, I decided to convert an access application to .Net. > > Within > > one day, I had a working prototype in both VB.Net and C#.Net. It was > extremely > > easy. You are right in that the combo changes the data set which in turn > > affects > > all controls linked to it. Just for kicks, I also bought Borland C++ and did > > the > > same thing (within a day). > > > > My conclusion is that all the major tools these days are offering click and > > create applications. It's just a matter of picking the technology you think > is > > most marketable. I don't think you can go wrong in learning .Net. I'm still > > torn > > as to what technology to pick (although the next version of .Net is coming > out > > in April and is just a $29 upgrade for previous .Net owners and includes the > > capability to make Pocket PC.Net applications). > > > > I'm very interested in discussing the techniques developers are using to > > convert > > Access applications to .Net. > > > > Hoping to find intelligent useful discussion on .Net, > > > > Scott Marcus > > > > -----Original Message----- > > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > > Sent: Tuesday, February 25, 2003 8:32 PM > > To: AccessD > > Cc: AccessD - VBA > > Subject: [dba-VB] OT: .NET - Data grid syncs to combo > > > > > > I have moved my billing database BE to sql server, hooked up my existing > > Access FE and continue to use that as I play with the data in .Net. > > > > In the meantime, in VB.Net I created a bound form last night (or I think > > it's bound anyway, not positive). It was using an OLEConnection, which > > tonight I switched to an SQL connection. It's supposed to be faster. The > > form simply displays the state table (all fields) in a data grid. You > > really can't get much simpler than that, though I suppose for something like > > a state table it would suffice. > > > > I decided to try and figure out how to use a combo box to select a record in > > the data grid. Dragged and dropped a combo to the form, hooked the > > datasource property to the same data source I was using for the form / data > > grid. Set the display member (the field displayed) to ST_Abrev (the 2 char > > code), and the value member (the PK of the table) to ST_ID (the PK of the > > table). Opened the form, selected the state in the combo and the data grid > > moved the record selector to that state. > > > > Man was THAT easy! So the combination of everything allows the combo to > > just act as a record selector without all of the code required in Access. > > Not knowing exactly what is happening, I have to assume that the combo > > selecting something causes a record selector pointer in the data set object > > to point somewhere. Since the data grid is using the same data set object, > > the data grid displays the newly selected record. > > > > Just a guess of course. This stuff is way over my head. > > > > But so easy (if I just understood what I was doing). > > > > Cool beans man! > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > ---------------------------------------------------- > > Is email taking over your day? Manage your time with eMailBoss. > > Try it free! http://www.eMailBoss.com > > > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > > > > > > > ---------------------------------------------------- > > Is email taking over your day? Manage your time with eMailBoss. > > Try it free! http://www.eMailBoss.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > > > ---------------------------------------------------- > Is email taking over your day? Manage your time with eMailBoss. > Try it free! http://www.eMailBoss.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 7920 bytes Desc: not available URL: From scott.marcus at ae.ge.com Wed Feb 26 11:51:46 2003 From: scott.marcus at ae.ge.com (Marcus, Scott (GEAE, RHI Consulting)) Date: Wed, 26 Feb 2003 12:51:46 -0500 Subject: [dba-VB] OT: .NET - Data grid syncs to combo Message-ID: <768A0EA6FF8CB34FA522978966E5D52E559D19@bwam02msx.ae.ge.com> John, Yes, I'm dreaming. But I do think that the Studio .Net platform is moving in the direction of "Access" type of RAD design. Those features I mentioned are why I use Access(in addition to my client's requirements). I was excited about Studio .NET and think most these capabilities are present. How much is built in and how much is 3rd party will be interesting to learn. Now to find the time to learn it well enough to replace Access as my primary skill... To answer your question... From what I know of you (which isn't alot...just what you post), I think it will be true once you know .Net like Access. Scott Marcus > -----Original Message----- > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > Sent: Wednesday, February 26, 2003 12:37 PM > To: dba-vb at databaseadvisors.com > Cc: AccessD > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > The column is resizable by placing the cursor over the vertical line in the > column header and dragging it. The individual row is resizable - same way. > Resizes just that row though, not all rows. The column is sortable by > clicking on the column header. > > As for the rest, I think you are dreaming. This is not Access.net, this is > VB.net. OTOH, they claim you drop ANY object onto a form. If you build a > "main form" with a tab control, build a "subform", and manage to place the > subform on the main form then you have a subform. The master / child > properties aren't there, but we all know how to set up the subform's > datasource query to filter on a control on the main form. > > I understand completely the desire to have Access' RAD tools for database > specific stuff. I can't say for sure since I am new to this, but I do not > think VB.net has those things you point to. OTOH it has so much else now that > Access doesn't have that it becomes a push as to which is more powerful for db > design. .Net's handling of classes and inheritance, data sources, XML and > other very powerful tools make it a truly awesome environment. > > My entire objection at this point more or less boils down to "I know how to do > that in Access". I will have to learn new ways to do things that are just > built in to Access, but I do think that the flexibility of .NET makes it worth > diving into. Whether it will entirely replace Access for my development is > doubtful, at least not in the near future. I am just too fast in Access and > can get entire dbs prototyped in days / weeks where it will take much longer > (for now anyway) in .NET. > > Will that be true once I know .NET like I know Access? > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: dba-vb-admin at databaseadvisors.com > [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Marcus, Scott > (GEAE, RHI Consulting) > Sent: Wednesday, February 26, 2003 12:14 PM > To: 'dba-vb at databaseadvisors.com' > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > John, > > I'm looking at the sorting capabilities, the resize(both height and width) > capabilities, drag and drop column ordering, and data editing within the cell. > This may all be there, I just haven't dug into it yet. I also need to be able > to > turn those features off and on (Access doesn't really have that capability). > Other big features that would push it over the top are: a query designer on > par > with Access, sub forms and reports, continuous forms, and better reporting > capabilities. I pretty much want the capabilities of Access in Studio .Net. > Again, all this can be acomplished with 3rd party tools or enough time to > design > your own. That extra cost to get Studio up to par with Access (interface > design > wise) with 3rd party tools has been the killer for me. > > If Microsoft made a tool that had the power of Studio .Net, the interface > capabilities of Access, the query designer of Access, and able to complie like > Studio .Net does that would be "The Tool" to have. The compiling issue (Studio > not offering a true compile) is a debate I'd rather not get into, I just HATE > the Access runtime. Maybe they could offer something like "Studio .Net Access > interface add-in". Now that I would purchase. > > Scott Marcus > > > -----Original Message----- > > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > > Sent: Wednesday, February 26, 2003 10:41 AM > > To: dba-vb at databaseadvisors.com > > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > > I don't use the data grid in Access. I was put off by the potential > problems > > of users changing the columns till one disappeared (and the support calls > that > > ensue). > > > > I can tell you that the data grid looks similar to Access' form is switched > to > > datasheet. The biggest difference is that if you expose the column heading, > > you can click on the heading and it sorts on that column. Click again and > it > > sorts in reverse order. > > > > I am not fluent enough in data grids in either technology to tell you much > I'm > > afraid. What capabilities are you looking for? > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > -----Original Message----- > > From: dba-vb-admin at databaseadvisors.com > > [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Marcus, Scott > > (GEAE, RHI Consulting) > > Sent: Wednesday, February 26, 2003 10:32 AM > > To: 'dba-vb at databaseadvisors.com' > > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > > > > John, > > > > One of the issues that I know I will run into is that my clients are going > to > > want top see all of this data (like Access does...looks very Excel like...my > > clients are very Excel savy) in a data grid. Previous versions of VB had > > limited > > built in data grid capabilities (I don't want to spend another $1K on 3rd > > party > > tools). If the data grid is alot closer to what Access provides that would > be > > great. I haven't messed much with .Net since my initial "playing around" a > > year > > ago, but I do need to get heavily into it. Any input on the data grid > > capabilities? > > > > Scott Marcus > > > > > > > -----Original Message----- > > > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > > > Sent: Wednesday, February 26, 2003 9:49 AM > > > To: dba-vb at databaseadvisors.com > > > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > > > > Marcus, > > > > > > I started programming in the early 80s and in the late 80s ended up in > Turbo > > > Pascal which went OO. It was extremely powerful (for the day) yet > strongly > > > typed unlike the C languages of the day. I purchased all of the Borland > > > toolboxes, the application framework etc., bought books and really got > into > > > the whole inheritance thing > > > > > > I worked in that until I moved to Access in the early 90s. While Access > was > > a > > > huge step up in drag and drop design functionality, and radically > different > > > (and extremely powerful) in the use of the event driven paradigm, it was a > > > huge step backwards on the OO side since it had nothing at all that even > > > remotely resembled inheritance. > > > > > > .Net is almost like old home week. It is a highly structure system, with > a > > > huge base framework that provides instant functionality like I have never > > seen > > > before, with true inheritance, with this new XML thingy built right in, > with > > > access to data from anywhere. The biggest problem I foresee is simply > that > > > the vast scope makes learning it a chore. But is so incredibly powerful, > it > > > is simply amazing. > > > > > > I was reading a tech paper last night where they built up XML docs in a > word > > > processor, saved them to a file (just for demo purposes), then simply used > a > > > built in property of a built in framework class to load the file and bind > to > > > that data. But not just bind as we know it. They bound the data to > > > properties of the form. Any property of any control (and forms inherit > from > > > the control class so I'm told) can be bound to data. Which makes possible > > > things like fore color or back color or font a property of the record. > > > Painless storage of size / location of forms. Painless user modification > > and > > > storage of color preferences. If you can imagine it, you can store it in > a > > > table and drive it from there. > > > > > > But not just tables. The objects that actually load and expose the data > can > > > use XML as easily as they can use tables. They can use arrays. The > arrays > > > can be simple arrays of values, or arrays of objects - CLASSES for > example, > > > and you can be binding a control property to a property of the class. > > > > > > This stuff is truly awesome. Built in collection functionality for > stacks, > > > queues, arrays that you can just dynamically add new members to (not to > > > mention your simple collection). And anything can be sub classed to add > > your > > > own functionality. Not just interface inheritance, but true > implementation > > > inheritance. Do you want a collection that stores an object, with built > in > > > checking to prevent storing anything but that object? Just subclass the > > > collection class and over ride the .add method, typing the object input > > > parameter. Done! > > > > > > As can be seen, I am truly psyched about this thing. I did a little > > > programming in VB (I wish it had been more now) but it was so difficult to > > get > > > at data (and I do databases) so it just didn't offer enough to make it > worth > > > the switch. .Net on the other hand is an order of magnitude more > powerful, > > > and getting at data is second nature. > > > > > > And as if all that isn't enough, you can pick your language. > > > > > > Amazing stuff. > > > > > > John W. Colby > > > Colby Consulting > > > www.ColbyConsulting.com > > > > > > -----Original Message----- > > > From: dba-vb-admin at databaseadvisors.com > > > [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Marcus, Scott > > > (GEAE, RHI Consulting) > > > Sent: Wednesday, February 26, 2003 8:10 AM > > > To: 'dba-vb at databaseadvisors.com' > > > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > > > > > > > John, > > > > > > Less than a year ago, I decided to convert an access application to .Net. > > > Within > > > one day, I had a working prototype in both VB.Net and C#.Net. It was > > extremely > > > easy. You are right in that the combo changes the data set which in turn > > > affects > > > all controls linked to it. Just for kicks, I also bought Borland C++ and > did > > > the > > > same thing (within a day). > > > > > > My conclusion is that all the major tools these days are offering click > and > > > create applications. It's just a matter of picking the technology you > think > > is > > > most marketable. I don't think you can go wrong in learning .Net. I'm > still > > > torn > > > as to what technology to pick (although the next version of .Net is coming > > out > > > in April and is just a $29 upgrade for previous .Net owners and includes > the > > > capability to make Pocket PC.Net applications). > > > > > > I'm very interested in discussing the techniques developers are using to > > > convert > > > Access applications to .Net. > > > > > > Hoping to find intelligent useful discussion on .Net, > > > > > > Scott Marcus > > > > > > -----Original Message----- > > > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > > > Sent: Tuesday, February 25, 2003 8:32 PM > > > To: AccessD > > > Cc: AccessD - VBA > > > Subject: [dba-VB] OT: .NET - Data grid syncs to combo > > > > > > > > > I have moved my billing database BE to sql server, hooked up my existing > > > Access FE and continue to use that as I play with the data in .Net. > > > > > > In the meantime, in VB.Net I created a bound form last night (or I think > > > it's bound anyway, not positive). It was using an OLEConnection, which > > > tonight I switched to an SQL connection. It's supposed to be faster. The > > > form simply displays the state table (all fields) in a data grid. You > > > really can't get much simpler than that, though I suppose for something > like > > > a state table it would suffice. > > > > > > I decided to try and figure out how to use a combo box to select a record > in > > > the data grid. Dragged and dropped a combo to the form, hooked the > > > datasource property to the same data source I was using for the form / > data > > > grid. Set the display member (the field displayed) to ST_Abrev (the 2 > char > > > code), and the value member (the PK of the table) to ST_ID (the PK of the > > > table). Opened the form, selected the state in the combo and the data > grid > > > moved the record selector to that state. > > > > > > Man was THAT easy! So the combination of everything allows the combo to > > > just act as a record selector without all of the code required in Access. > > > Not knowing exactly what is happening, I have to assume that the combo > > > selecting something causes a record selector pointer in the data set > object > > > to point somewhere. Since the data grid is using the same data set > object, > > > the data grid displays the newly selected record. > > > > > > Just a guess of course. This stuff is way over my head. > > > > > > But so easy (if I just understood what I was doing). > > > > > > Cool beans man! > > > > > > John W. Colby > > > Colby Consulting > > > www.ColbyConsulting.com > > > > > > ---------------------------------------------------- > > > Is email taking over your day? Manage your time with eMailBoss. > > > Try it free! http://www.eMailBoss.com > > > > > > > > > _______________________________________________ > > > dba-VB mailing list > > > dba-VB at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > http://www.databaseadvisors.com > > > _______________________________________________ > > > dba-VB mailing list > > > dba-VB at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > http://www.databaseadvisors.com > > > > > > > > > > > > > > > ---------------------------------------------------- > > > Is email taking over your day? Manage your time with eMailBoss. > > > Try it free! http://www.eMailBoss.com > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > > > > > > > ---------------------------------------------------- > > Is email taking over your day? Manage your time with eMailBoss. > > Try it free! http://www.eMailBoss.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > > > ---------------------------------------------------- > Is email taking over your day? Manage your time with eMailBoss. > Try it free! http://www.eMailBoss.com From mikedorism at ntelos.net Wed Feb 26 13:46:26 2003 From: mikedorism at ntelos.net (Mike and Doris Manning) Date: Wed, 26 Feb 2003 14:46:26 -0500 Subject: [dba-VB] OT: .NET - Data grid syncs to combo In-Reply-To: <768A0EA6FF8CB34FA522978966E5D52E559D16@bwam02msx.ae.ge.com> Message-ID: <000001c2ddcf$c33f0090$d5350cd8@hargrove.internal> Maybe they could offer something like "Studio .Net Access interface add-in". Now that I would purchase. Actually, it seems to already be in there... Check out the lastest edition of Access-VB-SQL Advisor at your local newstand. You can automate Access from within VB.Net via some PIAs you can download from Microsoft. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com] On Behalf Of Marcus, Scott (GEAE, RHI Consulting) Sent: Wednesday, February 26, 2003 12:14 PM To: 'dba-vb at databaseadvisors.com' Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo John, I'm looking at the sorting capabilities, the resize(both height and width) capabilities, drag and drop column ordering, and data editing within the cell. This may all be there, I just haven't dug into it yet. I also need to be able to turn those features off and on (Access doesn't really have that capability). Other big features that would push it over the top are: a query designer on par with Access, sub forms and reports, continuous forms, and better reporting capabilities. I pretty much want the capabilities of Access in Studio .Net. Again, all this can be acomplished with 3rd party tools or enough time to design your own. That extra cost to get Studio up to par with Access (interface design wise) with 3rd party tools has been the killer for me. If Microsoft made a tool that had the power of Studio .Net, the interface capabilities of Access, the query designer of Access, and able to complie like Studio .Net does that would be "The Tool" to have. The compiling issue (Studio not offering a true compile) is a debate I'd rather not get into, I just HATE the Access runtime. Maybe they could offer something like "Studio .Net Access interface add-in". Now that I would purchase. Scott Marcus > -----Original Message----- > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > Sent: Wednesday, February 26, 2003 10:41 AM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > I don't use the data grid in Access. I was put off by the potential > problems of users changing the columns till one disappeared (and the > support calls that ensue). > > I can tell you that the data grid looks similar to Access' form is > switched to datasheet. The biggest difference is that if you expose > the column heading, you can click on the heading and it sorts on that > column. Click again and it sorts in reverse order. > > I am not fluent enough in data grids in either technology to tell you > much I'm afraid. What capabilities are you looking for? > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: dba-vb-admin at databaseadvisors.com > [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Marcus, Scott > (GEAE, RHI Consulting) > Sent: Wednesday, February 26, 2003 10:32 AM > To: 'dba-vb at databaseadvisors.com' > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > John, > > One of the issues that I know I will run into is that my clients are > going to want top see all of this data (like Access does...looks very > Excel like...my clients are very Excel savy) in a data grid. Previous > versions of VB had limited built in data grid capabilities (I don't > want to spend another $1K on 3rd party > tools). If the data grid is alot closer to what Access provides that would be > great. I haven't messed much with .Net since my initial "playing around" a > year > ago, but I do need to get heavily into it. Any input on the data grid > capabilities? > > Scott Marcus > > > > -----Original Message----- > > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > > Sent: Wednesday, February 26, 2003 9:49 AM > > To: dba-vb at databaseadvisors.com > > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > > Marcus, > > > > I started programming in the early 80s and in the late 80s ended up > > in Turbo Pascal which went OO. It was extremely powerful (for the > > day) yet strongly typed unlike the C languages of the day. I > > purchased all of the Borland toolboxes, the application framework > > etc., bought books and really got into the whole inheritance thing > > > > I worked in that until I moved to Access in the early 90s. While > > Access was > a > > huge step up in drag and drop design functionality, and radically > > different (and extremely powerful) in the use of the event driven > > paradigm, it was a huge step backwards on the OO side since it had > > nothing at all that even remotely resembled inheritance. > > > > .Net is almost like old home week. It is a highly structure system, > > with a huge base framework that provides instant functionality like > > I have never > seen > > before, with true inheritance, with this new XML thingy built right > > in, with access to data from anywhere. The biggest problem I > > foresee is simply that the vast scope makes learning it a chore. > > But is so incredibly powerful, it is simply amazing. > > > > I was reading a tech paper last night where they built up XML docs > > in a word processor, saved them to a file (just for demo purposes), > > then simply used a built in property of a built in framework class > > to load the file and bind to that data. But not just bind as we > > know it. They bound the data to properties of the form. Any > > property of any control (and forms inherit from the control class so > > I'm told) can be bound to data. Which makes possible things like > > fore color or back color or font a property of the record. Painless > > storage of size / location of forms. Painless user modification > and > > storage of color preferences. If you can imagine it, you can store > > it in a table and drive it from there. > > > > But not just tables. The objects that actually load and expose the > > data can use XML as easily as they can use tables. They can use > > arrays. The arrays can be simple arrays of values, or arrays of > > objects - CLASSES for example, and you can be binding a control > > property to a property of the class. > > > > This stuff is truly awesome. Built in collection functionality for > > stacks, queues, arrays that you can just dynamically add new members > > to (not to mention your simple collection). And anything can be sub > > classed to add > your > > own functionality. Not just interface inheritance, but true > > implementation inheritance. Do you want a collection that stores an > > object, with built in checking to prevent storing anything but that > > object? Just subclass the collection class and over ride the .add > > method, typing the object input parameter. Done! > > > > As can be seen, I am truly psyched about this thing. I did a little > > programming in VB (I wish it had been more now) but it was so > > difficult to > get > > at data (and I do databases) so it just didn't offer enough to make > > it worth the switch. .Net on the other hand is an order of > > magnitude more powerful, and getting at data is second nature. > > > > And as if all that isn't enough, you can pick your language. > > > > Amazing stuff. > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > -----Original Message----- > > From: dba-vb-admin at databaseadvisors.com > > [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Marcus, Scott > > (GEAE, RHI Consulting) > > Sent: Wednesday, February 26, 2003 8:10 AM > > To: 'dba-vb at databaseadvisors.com' > > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > > > > John, > > > > Less than a year ago, I decided to convert an access application to > > .Net. Within one day, I had a working prototype in both VB.Net and > > C#.Net. It was > extremely > > easy. You are right in that the combo changes the data set which in > > turn affects all controls linked to it. Just for kicks, I also > > bought Borland C++ and did the > > same thing (within a day). > > > > My conclusion is that all the major tools these days are offering > > click and create applications. It's just a matter of picking the > > technology you think > is > > most marketable. I don't think you can go wrong in learning .Net. > > I'm still torn as to what technology to pick (although the next > > version of .Net is coming > out > > in April and is just a $29 upgrade for previous .Net owners and > > includes the capability to make Pocket PC.Net applications). > > > > I'm very interested in discussing the techniques developers are > > using to convert Access applications to .Net. > > > > Hoping to find intelligent useful discussion on .Net, > > > > Scott Marcus > > > > -----Original Message----- > > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > > Sent: Tuesday, February 25, 2003 8:32 PM > > To: AccessD > > Cc: AccessD - VBA > > Subject: [dba-VB] OT: .NET - Data grid syncs to combo > > > > > > I have moved my billing database BE to sql server, hooked up my > > existing Access FE and continue to use that as I play with the data > > in .Net. > > > > In the meantime, in VB.Net I created a bound form last night (or I > > think it's bound anyway, not positive). It was using an > > OLEConnection, which tonight I switched to an SQL connection. It's > > supposed to be faster. The form simply displays the state table > > (all fields) in a data grid. You really can't get much simpler than > > that, though I suppose for something like a state table it would > > suffice. > > > > I decided to try and figure out how to use a combo box to select a > > record in the data grid. Dragged and dropped a combo to the form, > > hooked the datasource property to the same data source I was using > > for the form / data grid. Set the display member (the field > > displayed) to ST_Abrev (the 2 char code), and the value member (the > > PK of the table) to ST_ID (the PK of the table). Opened the form, > > selected the state in the combo and the data grid moved the record > > selector to that state. > > > > Man was THAT easy! So the combination of everything allows the > > combo to just act as a record selector without all of the code > > required in Access. Not knowing exactly what is happening, I have to > > assume that the combo selecting something causes a record selector > > pointer in the data set object to point somewhere. Since the data > > grid is using the same data set object, the data grid displays the > > newly selected record. > > > > Just a guess of course. This stuff is way over my head. > > > > But so easy (if I just understood what I was doing). > > > > Cool beans man! > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > ---------------------------------------------------- > > Is email taking over your day? Manage your time with eMailBoss. Try > > it free! http://www.eMailBoss.com > > > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > > > > > > > ---------------------------------------------------- > > Is email taking over your day? Manage your time with eMailBoss. > > Try it free! http://www.eMailBoss.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > > > ---------------------------------------------------- > Is email taking over your day? Manage your time with eMailBoss. > Try it free! http://www.eMailBoss.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From scott.marcus at ae.ge.com Wed Feb 26 14:12:21 2003 From: scott.marcus at ae.ge.com (Marcus, Scott (GEAE, RHI Consulting)) Date: Wed, 26 Feb 2003 15:12:21 -0500 Subject: [dba-VB] OT: .NET - Data grid syncs to combo Message-ID: <768A0EA6FF8CB34FA522978966E5D52E559D1A@bwam02msx.ae.ge.com> Doris, I meant all the neat interface capabilities added into Studio.Net via some more framework/controls. Automation has been around for a long time. I'm more interested in developing applications that don't require installing other software and then automating it. Scott Marcus -----Original Message----- From: Mike and Doris Manning [mailto:mikedorism at ntelos.net] Sent: Wednesday, February 26, 2003 2:46 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo Maybe they could offer something like "Studio .Net Access interface add-in". Now that I would purchase. Actually, it seems to already be in there... Check out the lastest edition of Access-VB-SQL Advisor at your local newstand. You can automate Access from within VB.Net via some PIAs you can download from Microsoft. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com] On Behalf Of Marcus, Scott (GEAE, RHI Consulting) Sent: Wednesday, February 26, 2003 12:14 PM To: 'dba-vb at databaseadvisors.com' Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo John, I'm looking at the sorting capabilities, the resize(both height and width) capabilities, drag and drop column ordering, and data editing within the cell. This may all be there, I just haven't dug into it yet. I also need to be able to turn those features off and on (Access doesn't really have that capability). Other big features that would push it over the top are: a query designer on par with Access, sub forms and reports, continuous forms, and better reporting capabilities. I pretty much want the capabilities of Access in Studio .Net. Again, all this can be acomplished with 3rd party tools or enough time to design your own. That extra cost to get Studio up to par with Access (interface design wise) with 3rd party tools has been the killer for me. If Microsoft made a tool that had the power of Studio .Net, the interface capabilities of Access, the query designer of Access, and able to complie like Studio .Net does that would be "The Tool" to have. The compiling issue (Studio not offering a true compile) is a debate I'd rather not get into, I just HATE the Access runtime. Maybe they could offer something like "Studio .Net Access interface add-in". Now that I would purchase. Scott Marcus > -----Original Message----- > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > Sent: Wednesday, February 26, 2003 10:41 AM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > I don't use the data grid in Access. I was put off by the potential > problems of users changing the columns till one disappeared (and the > support calls that ensue). > > I can tell you that the data grid looks similar to Access' form is > switched to datasheet. The biggest difference is that if you expose > the column heading, you can click on the heading and it sorts on that > column. Click again and it sorts in reverse order. > > I am not fluent enough in data grids in either technology to tell you > much I'm afraid. What capabilities are you looking for? > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: dba-vb-admin at databaseadvisors.com > [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Marcus, Scott > (GEAE, RHI Consulting) > Sent: Wednesday, February 26, 2003 10:32 AM > To: 'dba-vb at databaseadvisors.com' > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > John, > > One of the issues that I know I will run into is that my clients are > going to want top see all of this data (like Access does...looks very > Excel like...my clients are very Excel savy) in a data grid. Previous > versions of VB had limited built in data grid capabilities (I don't > want to spend another $1K on 3rd party > tools). If the data grid is alot closer to what Access provides that would be > great. I haven't messed much with .Net since my initial "playing around" a > year > ago, but I do need to get heavily into it. Any input on the data grid > capabilities? > > Scott Marcus > > > > -----Original Message----- > > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > > Sent: Wednesday, February 26, 2003 9:49 AM > > To: dba-vb at databaseadvisors.com > > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > > Marcus, > > > > I started programming in the early 80s and in the late 80s ended up > > in Turbo Pascal which went OO. It was extremely powerful (for the > > day) yet strongly typed unlike the C languages of the day. I > > purchased all of the Borland toolboxes, the application framework > > etc., bought books and really got into the whole inheritance thing > > > > I worked in that until I moved to Access in the early 90s. While > > Access was > a > > huge step up in drag and drop design functionality, and radically > > different (and extremely powerful) in the use of the event driven > > paradigm, it was a huge step backwards on the OO side since it had > > nothing at all that even remotely resembled inheritance. > > > > .Net is almost like old home week. It is a highly structure system, > > with a huge base framework that provides instant functionality like > > I have never > seen > > before, with true inheritance, with this new XML thingy built right > > in, with access to data from anywhere. The biggest problem I > > foresee is simply that the vast scope makes learning it a chore. > > But is so incredibly powerful, it is simply amazing. > > > > I was reading a tech paper last night where they built up XML docs > > in a word processor, saved them to a file (just for demo purposes), > > then simply used a built in property of a built in framework class > > to load the file and bind to that data. But not just bind as we > > know it. They bound the data to properties of the form. Any > > property of any control (and forms inherit from the control class so > > I'm told) can be bound to data. Which makes possible things like > > fore color or back color or font a property of the record. Painless > > storage of size / location of forms. Painless user modification > and > > storage of color preferences. If you can imagine it, you can store > > it in a table and drive it from there. > > > > But not just tables. The objects that actually load and expose the > > data can use XML as easily as they can use tables. They can use > > arrays. The arrays can be simple arrays of values, or arrays of > > objects - CLASSES for example, and you can be binding a control > > property to a property of the class. > > > > This stuff is truly awesome. Built in collection functionality for > > stacks, queues, arrays that you can just dynamically add new members > > to (not to mention your simple collection). And anything can be sub > > classed to add > your > > own functionality. Not just interface inheritance, but true > > implementation inheritance. Do you want a collection that stores an > > object, with built in checking to prevent storing anything but that > > object? Just subclass the collection class and over ride the .add > > method, typing the object input parameter. Done! > > > > As can be seen, I am truly psyched about this thing. I did a little > > programming in VB (I wish it had been more now) but it was so > > difficult to > get > > at data (and I do databases) so it just didn't offer enough to make > > it worth the switch. .Net on the other hand is an order of > > magnitude more powerful, and getting at data is second nature. > > > > And as if all that isn't enough, you can pick your language. > > > > Amazing stuff. > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > -----Original Message----- > > From: dba-vb-admin at databaseadvisors.com > > [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Marcus, Scott > > (GEAE, RHI Consulting) > > Sent: Wednesday, February 26, 2003 8:10 AM > > To: 'dba-vb at databaseadvisors.com' > > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > > > > John, > > > > Less than a year ago, I decided to convert an access application to > > .Net. Within one day, I had a working prototype in both VB.Net and > > C#.Net. It was > extremely > > easy. You are right in that the combo changes the data set which in > > turn affects all controls linked to it. Just for kicks, I also > > bought Borland C++ and did the > > same thing (within a day). > > > > My conclusion is that all the major tools these days are offering > > click and create applications. It's just a matter of picking the > > technology you think > is > > most marketable. I don't think you can go wrong in learning .Net. > > I'm still torn as to what technology to pick (although the next > > version of .Net is coming > out > > in April and is just a $29 upgrade for previous .Net owners and > > includes the capability to make Pocket PC.Net applications). > > > > I'm very interested in discussing the techniques developers are > > using to convert Access applications to .Net. > > > > Hoping to find intelligent useful discussion on .Net, > > > > Scott Marcus > > > > -----Original Message----- > > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > > Sent: Tuesday, February 25, 2003 8:32 PM > > To: AccessD > > Cc: AccessD - VBA > > Subject: [dba-VB] OT: .NET - Data grid syncs to combo > > > > > > I have moved my billing database BE to sql server, hooked up my > > existing Access FE and continue to use that as I play with the data > > in .Net. > > > > In the meantime, in VB.Net I created a bound form last night (or I > > think it's bound anyway, not positive). It was using an > > OLEConnection, which tonight I switched to an SQL connection. It's > > supposed to be faster. The form simply displays the state table > > (all fields) in a data grid. You really can't get much simpler than > > that, though I suppose for something like a state table it would > > suffice. > > > > I decided to try and figure out how to use a combo box to select a > > record in the data grid. Dragged and dropped a combo to the form, > > hooked the datasource property to the same data source I was using > > for the form / data grid. Set the display member (the field > > displayed) to ST_Abrev (the 2 char code), and the value member (the > > PK of the table) to ST_ID (the PK of the table). Opened the form, > > selected the state in the combo and the data grid moved the record > > selector to that state. > > > > Man was THAT easy! So the combination of everything allows the > > combo to just act as a record selector without all of the code > > required in Access. Not knowing exactly what is happening, I have to > > assume that the combo selecting something causes a record selector > > pointer in the data set object to point somewhere. Since the data > > grid is using the same data set object, the data grid displays the > > newly selected record. > > > > Just a guess of course. This stuff is way over my head. > > > > But so easy (if I just understood what I was doing). > > > > Cool beans man! > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > ---------------------------------------------------- > > Is email taking over your day? Manage your time with eMailBoss. Try > > it free! http://www.eMailBoss.com > > > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > > > > > > > ---------------------------------------------------- > > Is email taking over your day? Manage your time with eMailBoss. > > Try it free! http://www.eMailBoss.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > > > ---------------------------------------------------- > Is email taking over your day? Manage your time with eMailBoss. > Try it free! http://www.eMailBoss.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From JSkolits at CorporateDataDesign.com Wed Feb 26 20:02:30 2003 From: JSkolits at CorporateDataDesign.com (John Skolits) Date: Wed, 26 Feb 2003 21:02:30 -0500 Subject: [dba-VB] Simple problem. Can't use Kill Message-ID: Am I losing it? Why doesn't the Kill statement work in this code. '********* Dim strRuntimePath as string strRuntimePath ="C:\Program Files\Microsoft Office\ART\Office" If Len(Dir(strRuntimePath & "\msaccess_SR1.exe")) > 0 Then Kill (strRuntimePath & "\msaccess_SR1.exe") End If '************ The line with "Len(Dir" in it works fine. Bu when the Kill line tries to run I get an error 75 ("Path/File access error") I can easily rename the file and move it around in explorer so I know it's not being used by anything. I've used this syntax before in other VB apps with no problem. If I rename the file through explorer and run that line again it says Error 53 :File Not Found". Which makes perfect sense. Is it because it's an EXE file? Am I missing something really obvious? John Skolits -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 1908 bytes Desc: not available URL: From Jdemarco at hshhp.org Wed Feb 26 21:20:31 2003 From: Jdemarco at hshhp.org (Jim DeMarco) Date: Wed, 26 Feb 2003 22:20:31 -0500 Subject: [dba-VB] Simple problem. Can't use Kill Message-ID: <22F1CCD5171D17419CB37FEEE09D5F99D8521E@TTNEXCHSRV1.hshhp.com> Is there a Help button on the error message that might give you some insight? I thought the problem might be in the parens or maybe a space in the path but I tried both and it worked for me (killed an exe in my c:\ folder). Jim DeMarco -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of John Skolits Sent: Wednesday, February 26, 2003 9:03 PM To: dba-VB at databaseadvisors.com Subject: [dba-VB] Simple problem. Can't use Kill Am I losing it? Why doesn't the Kill statement work in this code. '********* Dim strRuntimePath as string strRuntimePath ="C:\Program Files\Microsoft Office\ART\Office" If Len(Dir(strRuntimePath & "\msaccess_SR1.exe")) > 0 Then Kill (strRuntimePath & "\msaccess_SR1.exe") End If '************ The line with "Len(Dir" in it works fine. Bu when the Kill line tries to run I get an error 75 ("Path/File access error") I can easily rename the file and move it around in explorer so I know it's not being used by anything. I've used this syntax before in other VB apps with no problem. If I rename the file through explorer and run that line again it says Error 53 :File Not Found". Which makes perfect sense. Is it because it's an EXE file? Am I missing something really obvious? John Skolits *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from HealthSource/Hudson Health Plan (HS/HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HS/HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From JSkolits at CorporateDataDesign.com Wed Feb 26 21:29:14 2003 From: JSkolits at CorporateDataDesign.com (John Skolits) Date: Wed, 26 Feb 2003 22:29:14 -0500 Subject: [dba-VB] Simple problem. Can't use Kill In-Reply-To: <22F1CCD5171D17419CB37FEEE09D5F99D8521E@TTNEXCHSRV1.hshhp.com> Message-ID: Jim, Try a folder a few levels down and tell me if it works. Like "c:\Program Files\Microsoft Office\...." John -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Jim DeMarco Sent: Wednesday, February 26, 2003 10:21 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Simple problem. Can't use Kill Is there a Help button on the error message that might give you some insight? I thought the problem might be in the parens or maybe a space in the path but I tried both and it worked for me (killed an exe in my c:\ folder). Jim DeMarco -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of John Skolits Sent: Wednesday, February 26, 2003 9:03 PM To: dba-VB at databaseadvisors.com Subject: [dba-VB] Simple problem. Can't use Kill Am I losing it? Why doesn't the Kill statement work in this code. '********* Dim strRuntimePath as string strRuntimePath ="C:\Program Files\Microsoft Office\ART\Office" If Len(Dir(strRuntimePath & "\msaccess_SR1.exe")) > 0 Then Kill (strRuntimePath & "\msaccess_SR1.exe") End If '************ The line with "Len(Dir" in it works fine. Bu when the Kill line tries to run I get an error 75 ("Path/File access error") I can easily rename the file and move it around in explorer so I know it's not being used by anything. I've used this syntax before in other VB apps with no problem. If I rename the file through explorer and run that line again it says Error 53 :File Not Found". Which makes perfect sense. Is it because it's an EXE file? Am I missing something really obvious? John Skolits **************************************************************************** ******* "This electronic message is intended to be for the use only of the named recipient, and may contain information from HealthSource/Hudson Health Plan (HS/HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HS/HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". **************************************************************************** ******* _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From JSkolits at CorporateDataDesign.com Wed Feb 26 21:53:15 2003 From: JSkolits at CorporateDataDesign.com (John Skolits) Date: Wed, 26 Feb 2003 22:53:15 -0500 Subject: [dba-VB] RE: [AccessD] VB Simple problem. Can't use Kill -SOLVED! In-Reply-To: Message-ID: File was Read Only! Only took me 2 hours to figure it out From Jdemarco at hshhp.org Thu Feb 27 06:43:29 2003 From: Jdemarco at hshhp.org (Jim DeMarco) Date: Thu, 27 Feb 2003 07:43:29 -0500 Subject: [dba-VB] Simple problem. Can't use Kill Message-ID: <22F1CCD5171D17419CB37FEEE09D5F99E54A5A@TTNEXCHSRV1.hshhp.com> John, It works there, but you got this working didn't you? Jim -----Original Message----- From: John Skolits [mailto:JSkolits at CorporateDataDesign.com] Sent: Wednesday, February 26, 2003 10:29 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Simple problem. Can't use Kill Jim, Try a folder a few levels down and tell me if it works. Like "c:\Program Files\Microsoft Office\...." John -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Jim DeMarco Sent: Wednesday, February 26, 2003 10:21 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Simple problem. Can't use Kill Is there a Help button on the error message that might give you some insight? I thought the problem might be in the parens or maybe a space in the path but I tried both and it worked for me (killed an exe in my c:\ folder). Jim DeMarco -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of John Skolits Sent: Wednesday, February 26, 2003 9:03 PM To: dba-VB at databaseadvisors.com Subject: [dba-VB] Simple problem. Can't use Kill Am I losing it? Why doesn't the Kill statement work in this code. '********* Dim strRuntimePath as string strRuntimePath ="C:\Program Files\Microsoft Office\ART\Office" If Len(Dir(strRuntimePath & "\msaccess_SR1.exe")) > 0 Then Kill (strRuntimePath & "\msaccess_SR1.exe") End If '************ The line with "Len(Dir" in it works fine. Bu when the Kill line tries to run I get an error 75 ("Path/File access error") I can easily rename the file and move it around in explorer so I know it's not being used by anything. I've used this syntax before in other VB apps with no problem. If I rename the file through explorer and run that line again it says Error 53 :File Not Found". Which makes perfect sense. Is it because it's an EXE file? Am I missing something really obvious? John Skolits **************************************************************************** ******* "This electronic message is intended to be for the use only of the named recipient, and may contain information from HealthSource/Hudson Health Plan (HS/HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HS/HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". **************************************************************************** ******* _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from HealthSource/Hudson Health Plan (HS/HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HS/HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From JSkolits at CorporateDataDesign.com Thu Feb 27 06:57:45 2003 From: JSkolits at CorporateDataDesign.com (John Skolits) Date: Thu, 27 Feb 2003 07:57:45 -0500 Subject: [dba-VB] Simple problem. Can't use Kill In-Reply-To: <22F1CCD5171D17419CB37FEEE09D5F99E54A5A@TTNEXCHSRV1.hshhp.com> Message-ID: Yea. The file was read only. I used the following code to change the read only flag. Then killed it. Dim fs, f Dim strFileToKill as String strFileToKill = "C:\Program Files\Microsoft Office\ART\Office\msaccess_SR1.exe" 'Make sure it's read only flag is false Set fs = CreateObject("Scripting.FileSystemObject") Set f = fs.GetFile((strFileToKill)) If f.Attributes And 1 Then 'File is read only, remove the flag f.Attributes = f.Attributes - 1 End If Kill (strFileToKill) Thanks, John -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Jim DeMarco Sent: Thursday, February 27, 2003 7:43 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Simple problem. Can't use Kill John, It works there, but you got this working didn't you? Jim -----Original Message----- From: John Skolits [mailto:JSkolits at CorporateDataDesign.com] Sent: Wednesday, February 26, 2003 10:29 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Simple problem. Can't use Kill Jim, Try a folder a few levels down and tell me if it works. Like "c:\Program Files\Microsoft Office\...." John -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Jim DeMarco Sent: Wednesday, February 26, 2003 10:21 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Simple problem. Can't use Kill Is there a Help button on the error message that might give you some insight? I thought the problem might be in the parens or maybe a space in the path but I tried both and it worked for me (killed an exe in my c:\ folder). Jim DeMarco -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of John Skolits Sent: Wednesday, February 26, 2003 9:03 PM To: dba-VB at databaseadvisors.com Subject: [dba-VB] Simple problem. Can't use Kill Am I losing it? Why doesn't the Kill statement work in this code. '********* Dim strRuntimePath as string strRuntimePath ="C:\Program Files\Microsoft Office\ART\Office" If Len(Dir(strRuntimePath & "\msaccess_SR1.exe")) > 0 Then Kill (strRuntimePath & "\msaccess_SR1.exe") End If '************ The line with "Len(Dir" in it works fine. Bu when the Kill line tries to run I get an error 75 ("Path/File access error") I can easily rename the file and move it around in explorer so I know it's not being used by anything. I've used this syntax before in other VB apps with no problem. If I rename the file through explorer and run that line again it says Error 53 :File Not Found". Which makes perfect sense. Is it because it's an EXE file? Am I missing something really obvious? John Skolits **************************************************************************** ******* "This electronic message is intended to be for the use only of the named recipient, and may contain information from HealthSource/Hudson Health Plan (HS/HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HS/HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". **************************************************************************** ******* _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com **************************************************************************** ******* "This electronic message is intended to be for the use only of the named recipient, and may contain information from HealthSource/Hudson Health Plan (HS/HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HS/HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". **************************************************************************** ******* _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From R.Griffiths at bury.gov.uk Thu Feb 27 07:07:39 2003 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Thu, 27 Feb 2003 13:07:39 -0000 Subject: [dba-VB] Open DB Message-ID: <52339DF8DCA2A544AF660C8217EB7DCD0227F0F5@mailgate.bury.gov.uk> Hi Group Can't seem to find the exact bit of code I need......to be able to open another database which has its own password and is in a different workgroup using DAO. Can find code for this....... to open another database which has its own password using DAO Anyone been there? Thanks Richard -------------------------------------------------------------------------------------------------------------------- This e-mail, together with any files transmitted with it, is confidential and intended solely for the use of the individual to whom it is addressed. If you are not the intended recipient, or the person responsible for delivering to the intended recipient, be advised that you have received this e-mail in error and that any use, dissemination, forwarding, printing or copying of this e-mail is strictly prohibited without liability on our part. If you have received this e-mail in error please notify the sender. From Jdemarco at hshhp.org Thu Feb 27 07:08:19 2003 From: Jdemarco at hshhp.org (Jim DeMarco) Date: Thu, 27 Feb 2003 08:08:19 -0500 Subject: [dba-VB] Simple problem. Can't use Kill Message-ID: <22F1CCD5171D17419CB37FEEE09D5F99D85225@TTNEXCHSRV1.hshhp.com> Thanks. If you're using the file system object to set the Read Only flag why not use it to delete as well? f.Delete Same difference I know but you've already got a pointer to the file. Jim DeMarco -----Original Message----- From: John Skolits [mailto:JSkolits at CorporateDataDesign.com] Sent: Thursday, February 27, 2003 7:58 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Simple problem. Can't use Kill Yea. The file was read only. I used the following code to change the read only flag. Then killed it. Dim fs, f Dim strFileToKill as String strFileToKill = "C:\Program Files\Microsoft Office\ART\Office\msaccess_SR1.exe" 'Make sure it's read only flag is false Set fs = CreateObject("Scripting.FileSystemObject") Set f = fs.GetFile((strFileToKill)) If f.Attributes And 1 Then 'File is read only, remove the flag f.Attributes = f.Attributes - 1 End If Kill (strFileToKill) Thanks, John -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Jim DeMarco Sent: Thursday, February 27, 2003 7:43 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Simple problem. Can't use Kill John, It works there, but you got this working didn't you? Jim -----Original Message----- From: John Skolits [mailto:JSkolits at CorporateDataDesign.com] Sent: Wednesday, February 26, 2003 10:29 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Simple problem. Can't use Kill Jim, Try a folder a few levels down and tell me if it works. Like "c:\Program Files\Microsoft Office\...." John -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Jim DeMarco Sent: Wednesday, February 26, 2003 10:21 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Simple problem. Can't use Kill Is there a Help button on the error message that might give you some insight? I thought the problem might be in the parens or maybe a space in the path but I tried both and it worked for me (killed an exe in my c:\ folder). Jim DeMarco -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of John Skolits Sent: Wednesday, February 26, 2003 9:03 PM To: dba-VB at databaseadvisors.com Subject: [dba-VB] Simple problem. Can't use Kill Am I losing it? Why doesn't the Kill statement work in this code. '********* Dim strRuntimePath as string strRuntimePath ="C:\Program Files\Microsoft Office\ART\Office" If Len(Dir(strRuntimePath & "\msaccess_SR1.exe")) > 0 Then Kill (strRuntimePath & "\msaccess_SR1.exe") End If '************ The line with "Len(Dir" in it works fine. Bu when the Kill line tries to run I get an error 75 ("Path/File access error") I can easily rename the file and move it around in explorer so I know it's not being used by anything. I've used this syntax before in other VB apps with no problem. If I rename the file through explorer and run that line again it says Error 53 :File Not Found". Which makes perfect sense. Is it because it's an EXE file? Am I missing something really obvious? John Skolits **************************************************************************** ******* "This electronic message is intended to be for the use only of the named recipient, and may contain information from HealthSource/Hudson Health Plan (HS/HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HS/HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". **************************************************************************** ******* _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com **************************************************************************** ******* "This electronic message is intended to be for the use only of the named recipient, and may contain information from HealthSource/Hudson Health Plan (HS/HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HS/HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". **************************************************************************** ******* _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from HealthSource/Hudson Health Plan (HS/HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HS/HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From JSkolits at CorporateDataDesign.com Thu Feb 27 07:14:56 2003 From: JSkolits at CorporateDataDesign.com (John Skolits) Date: Thu, 27 Feb 2003 08:14:56 -0500 Subject: [dba-VB] Simple problem. Can't use Kill In-Reply-To: <22F1CCD5171D17419CB37FEEE09D5F99D85225@TTNEXCHSRV1.hshhp.com> Message-ID: Because I was tired and cranky after spending all this time on a stupid problem and just copied the code out of a VB example and never really thought about it. So There! :) John p.s. Good idea though! -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Jim DeMarco Sent: Thursday, February 27, 2003 8:08 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Simple problem. Can't use Kill Thanks. If you're using the file system object to set the Read Only flag why not use it to delete as well? f.Delete Same difference I know but you've already got a pointer to the file. Jim DeMarco -----Original Message----- From: John Skolits [mailto:JSkolits at CorporateDataDesign.com] Sent: Thursday, February 27, 2003 7:58 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Simple problem. Can't use Kill Yea. The file was read only. I used the following code to change the read only flag. Then killed it. Dim fs, f Dim strFileToKill as String strFileToKill = "C:\Program Files\Microsoft Office\ART\Office\msaccess_SR1.exe" 'Make sure it's read only flag is false Set fs = CreateObject("Scripting.FileSystemObject") Set f = fs.GetFile((strFileToKill)) If f.Attributes And 1 Then 'File is read only, remove the flag f.Attributes = f.Attributes - 1 End If Kill (strFileToKill) Thanks, John -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Jim DeMarco Sent: Thursday, February 27, 2003 7:43 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Simple problem. Can't use Kill John, It works there, but you got this working didn't you? Jim -----Original Message----- From: John Skolits [mailto:JSkolits at CorporateDataDesign.com] Sent: Wednesday, February 26, 2003 10:29 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Simple problem. Can't use Kill Jim, Try a folder a few levels down and tell me if it works. Like "c:\Program Files\Microsoft Office\...." John -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Jim DeMarco Sent: Wednesday, February 26, 2003 10:21 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Simple problem. Can't use Kill Is there a Help button on the error message that might give you some insight? I thought the problem might be in the parens or maybe a space in the path but I tried both and it worked for me (killed an exe in my c:\ folder). Jim DeMarco -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of John Skolits Sent: Wednesday, February 26, 2003 9:03 PM To: dba-VB at databaseadvisors.com Subject: [dba-VB] Simple problem. Can't use Kill Am I losing it? Why doesn't the Kill statement work in this code. '********* Dim strRuntimePath as string strRuntimePath ="C:\Program Files\Microsoft Office\ART\Office" If Len(Dir(strRuntimePath & "\msaccess_SR1.exe")) > 0 Then Kill (strRuntimePath & "\msaccess_SR1.exe") End If '************ The line with "Len(Dir" in it works fine. Bu when the Kill line tries to run I get an error 75 ("Path/File access error") I can easily rename the file and move it around in explorer so I know it's not being used by anything. I've used this syntax before in other VB apps with no problem. If I rename the file through explorer and run that line again it says Error 53 :File Not Found". Which makes perfect sense. Is it because it's an EXE file? Am I missing something really obvious? John Skolits **************************************************************************** ******* "This electronic message is intended to be for the use only of the named recipient, and may contain information from HealthSource/Hudson Health Plan (HS/HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HS/HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". **************************************************************************** ******* _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com **************************************************************************** ******* "This electronic message is intended to be for the use only of the named recipient, and may contain information from HealthSource/Hudson Health Plan (HS/HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HS/HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". **************************************************************************** ******* _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com **************************************************************************** ******* "This electronic message is intended to be for the use only of the named recipient, and may contain information from HealthSource/Hudson Health Plan (HS/HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HS/HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". **************************************************************************** ******* _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From JSkolits at CorporateDataDesign.com Thu Feb 27 07:20:17 2003 From: JSkolits at CorporateDataDesign.com (John Skolits) Date: Thu, 27 Feb 2003 08:20:17 -0500 Subject: [dba-VB] Open DB In-Reply-To: <52339DF8DCA2A544AF660C8217EB7DCD0227F0F5@mailgate.bury.gov.uk> Message-ID: See if this works for you '**************** Dim dbe As DAO.PrivDBEngine Dim wsp As DAO.Workspace Dim dbEXT_Database As DAO.Database Dim strSecurityFileName as String Dim strFullDatabasePath as String strSecurityFileName="c:\Windows\Ssytem\system.mdw" strFullDatabasePath = "c:\Test.mdb" Set dbe = New PrivDBEngine With dbe .SystemDB = strSecurityFileName .DefaultUser = "User" .DefaultPassword = "Password" End With Set wsp = dbe.Workspaces(0) 'systemdb is locked in now Set dbEXT_Database = wsp.OpenDatabase(strFullDatabasePath) '************** I didn't check all the syntax but it should be OK John Skolits -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Griffiths, Richard Sent: Thursday, February 27, 2003 8:08 AM To: 'AccessD at databaseadvisors.com'; 'dba-VB at databaseadvisors.com' Subject: [dba-VB] Open DB Hi Group Can't seem to find the exact bit of code I need......to be able to open another database which has its own password and is in a different workgroup using DAO. Can find code for this....... to open another database which has its own password using DAO Anyone been there? Thanks Richard ---------------------------------------------------------------------------- ---------------------------------------- This e-mail, together with any files transmitted with it, is confidential and intended solely for the use of the individual to whom it is addressed. If you are not the intended recipient, or the person responsible for delivering to the intended recipient, be advised that you have received this e-mail in error and that any use, dissemination, forwarding, printing or copying of this e-mail is strictly prohibited without liability on our part. If you have received this e-mail in error please notify the sender. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From R.Griffiths at bury.gov.uk Thu Feb 27 09:27:00 2003 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Thu, 27 Feb 2003 15:27:00 -0000 Subject: [dba-VB] Open DB Message-ID: <52339DF8DCA2A544AF660C8217EB7DCD0227F0F7@mailgate.bury.gov.uk> John Well done - this is perfect BTW what is PrivDBEngine - can't find in object browser Are there any implications using this method? Thanks Richard > -----Original Message----- > From: John Skolits [SMTP:JSkolits at CorporateDataDesign.com] > Sent: 27 February 2003 13:20 > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] Open DB > > > See if this works for you > > '**************** > > Dim dbe As DAO.PrivDBEngine > Dim wsp As DAO.Workspace > Dim dbEXT_Database As DAO.Database > Dim strSecurityFileName as String > Dim strFullDatabasePath as String > > strSecurityFileName="c:\Windows\Ssytem\system.mdw" > strFullDatabasePath = "c:\Test.mdb" > > Set dbe = New PrivDBEngine > With dbe > .SystemDB = strSecurityFileName > .DefaultUser = "User" > .DefaultPassword = "Password" > End With > > Set wsp = dbe.Workspaces(0) 'systemdb is locked in now > > Set dbEXT_Database = wsp.OpenDatabase(strFullDatabasePath) > > > '************** > > I didn't check all the syntax but it should be OK > > > John Skolits > > > -----Original Message----- > From: dba-vb-admin at databaseadvisors.com > [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Griffiths, > Richard > Sent: Thursday, February 27, 2003 8:08 AM > To: 'AccessD at databaseadvisors.com'; 'dba-VB at databaseadvisors.com' > Subject: [dba-VB] Open DB > > > Hi Group > > Can't seem to find the exact bit of code I need......to be able to open > another database which has its own password and is in a different > workgroup > using DAO. > > Can find code for this....... to open another database which has its own > password using DAO > > Anyone been there? > Thanks > Richard > > -------------------------------------------------------------------------- > -- > ---------------------------------------- > This e-mail, together with any files transmitted with it, is > confidential and intended solely for the use of the individual to > whom it is addressed. If you are not the intended recipient, or > the person responsible for delivering to the intended recipient, > be advised that you have received this e-mail in error and that any > use, dissemination, forwarding, printing or copying of this e-mail > is strictly prohibited without liability on our part. > > If you have received this e-mail in error please notify the sender. > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > -------------------------------------------------------------------------------------------------------------------- This e-mail, together with any files transmitted with it, is confidential and intended solely for the use of the individual to whom it is addressed. If you are not the intended recipient, or the person responsible for delivering to the intended recipient, be advised that you have received this e-mail in error and that any use, dissemination, forwarding, printing or copying of this e-mail is strictly prohibited without liability on our part. If you have received this e-mail in error please notify the sender. From JSkolits at CorporateDataDesign.com Thu Feb 27 10:04:37 2003 From: JSkolits at CorporateDataDesign.com (John Skolits) Date: Thu, 27 Feb 2003 11:04:37 -0500 Subject: [dba-VB] Open DB In-Reply-To: <52339DF8DCA2A544AF660C8217EB7DCD0227F0F7@mailgate.bury.gov.uk> Message-ID: The PrivDBEngine is an unsupported object. But, I use it all the time to modify backends that I have locked out. Never had a problem. If you subscribe to 'Smart Access' there is an article on PrivDBEngine. I don't subscribe to Smart Access but I'm sure someone on the list does. Maybe someone can get a copy for you. I'm sure it will list all the properties and methods of the object. Here's a page that has the link for PrivDBEngine: http://www.myjavasource.com/sa/samain.nsf/0/B0D0397E0CFFBEA88725689D00799FB7 John Skolits -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Griffiths, Richard Sent: Thursday, February 27, 2003 10:27 AM To: 'dba-vb at databaseadvisors.com' Subject: RE: [dba-VB] Open DB John Well done - this is perfect BTW what is PrivDBEngine - can't find in object browser Are there any implications using this method? Thanks Richard > -----Original Message----- > From: John Skolits [SMTP:JSkolits at CorporateDataDesign.com] > Sent: 27 February 2003 13:20 > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] Open DB > > > See if this works for you > > '**************** > > Dim dbe As DAO.PrivDBEngine > Dim wsp As DAO.Workspace > Dim dbEXT_Database As DAO.Database > Dim strSecurityFileName as String > Dim strFullDatabasePath as String > > strSecurityFileName="c:\Windows\Ssytem\system.mdw" > strFullDatabasePath = "c:\Test.mdb" > > Set dbe = New PrivDBEngine > With dbe > .SystemDB = strSecurityFileName > .DefaultUser = "User" > .DefaultPassword = "Password" > End With > > Set wsp = dbe.Workspaces(0) 'systemdb is locked in now > > Set dbEXT_Database = wsp.OpenDatabase(strFullDatabasePath) > > > '************** > > I didn't check all the syntax but it should be OK > > > John Skolits > > > -----Original Message----- > From: dba-vb-admin at databaseadvisors.com > [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Griffiths, > Richard > Sent: Thursday, February 27, 2003 8:08 AM > To: 'AccessD at databaseadvisors.com'; 'dba-VB at databaseadvisors.com' > Subject: [dba-VB] Open DB > > > Hi Group > > Can't seem to find the exact bit of code I need......to be able to open > another database which has its own password and is in a different > workgroup > using DAO. > > Can find code for this....... to open another database which has its own > password using DAO > > Anyone been there? > Thanks > Richard > > -------------------------------------------------------------------------- > -- > ---------------------------------------- > This e-mail, together with any files transmitted with it, is > confidential and intended solely for the use of the individual to > whom it is addressed. If you are not the intended recipient, or > the person responsible for delivering to the intended recipient, > be advised that you have received this e-mail in error and that any > use, dissemination, forwarding, printing or copying of this e-mail > is strictly prohibited without liability on our part. > > If you have received this e-mail in error please notify the sender. > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > ---------------------------------------------------------------------------- ---------------------------------------- This e-mail, together with any files transmitted with it, is confidential and intended solely for the use of the individual to whom it is addressed. If you are not the intended recipient, or the person responsible for delivering to the intended recipient, be advised that you have received this e-mail in error and that any use, dissemination, forwarding, printing or copying of this e-mail is strictly prohibited without liability on our part. If you have received this e-mail in error please notify the sender. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From my.lists at verizon.net Fri Feb 28 15:16:00 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Fri, 28 Feb 2003 13:16:00 -0800 Subject: [dba-VB] Closing an application Message-ID: <00c401c2df6e$982b8220$b615010a@FHTAPIA> Dumb question.... I've always used In my limited experience w/ VB to just close my form w/ a simple Unload Me recently I picked up some code from PSC on how to auto-update my FE program automatically... the problem is with the auto-updater, for some reason when running it will hang every so often and when I C-A-D, it shows my program as not responding.. (win2k, VB6). The author's webpage is 404'ed, so I can't ask him... what do you guys use.. I would rather not use END... help? -Francisco http://rcm.netfirms.com From mikedorism at ntelos.net Fri Feb 28 15:40:05 2003 From: mikedorism at ntelos.net (Mike and Doris Manning) Date: Fri, 28 Feb 2003 16:40:05 -0500 Subject: [dba-VB] Closing an application In-Reply-To: <00c401c2df6e$982b8220$b615010a@FHTAPIA> Message-ID: <000401c2df71$f882b7d0$ac320cd8@hargrove.internal> "Unload Me" hides the form and removes it from memory so you are definitely doing the right thing. As with Access, "END" is a no-no. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com] On Behalf Of Francisco H Tapia Sent: Friday, February 28, 2003 04:16 PM To: dba-VB at databaseadvisors.com Subject: [dba-VB] Closing an application Dumb question.... I've always used In my limited experience w/ VB to just close my form w/ a simple Unload Me recently I picked up some code from PSC on how to auto-update my FE program automatically... the problem is with the auto-updater, for some reason when running it will hang every so often and when I C-A-D, it shows my program as not responding.. (win2k, VB6). The author's webpage is 404'ed, so I can't ask him... what do you guys use.. I would rather not use END... help? -Francisco http://rcm.netfirms.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From my.lists at verizon.net Fri Feb 28 16:29:50 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Fri, 28 Feb 2003 14:29:50 -0800 Subject: [dba-VB] Closing an application References: <000401c2df71$f882b7d0$ac320cd8@hargrove.internal> Message-ID: <00fb01c2df78$e8a7dd20$b615010a@FHTAPIA> If I wanted to close the application in Access I use Docmd.Quit. Are you saying that Unload Me Is the DoCmd.Quit for VB? btw, I'm compiling the autoupdater as an .exe separate from the Access FE so it is a VB6 applette if you will... nothing special I'm sure just a good ol' OpenURL method. -Francisco http://rcm.netfirms.com ----- Original Message ----- From: "Mike and Doris Manning" To: Sent: Friday, February 28, 2003 1:40 PM Subject: RE: [dba-VB] Closing an application : "Unload Me" hides the form and removes it from memory so you are definitely : doing the right thing. As with Access, "END" is a no-no. : : Doris Manning : Database Administrator : Hargrove Inc. : www.hargroveinc.com : : : -----Original Message----- : From: dba-vb-admin at databaseadvisors.com : [mailto:dba-vb-admin at databaseadvisors.com] On Behalf Of Francisco H Tapia : Sent: Friday, February 28, 2003 04:16 PM : To: dba-VB at databaseadvisors.com : Subject: [dba-VB] Closing an application : : : Dumb question.... : : I've always used In my limited experience w/ VB to just close my form w/ a : simple : : Unload Me : : recently I picked up some code from PSC on how to auto-update my FE program : automatically... the problem is with the auto-updater, for some reason when : running it will hang every so often and when I C-A-D, it shows my program as : not responding.. (win2k, VB6). The author's webpage is 404'ed, so I can't : ask him... what do you guys use.. I would rather not use END... help? : : -Francisco : http://rcm.netfirms.com : : : _______________________________________________ : dba-VB mailing list : dba-VB at databaseadvisors.com : http://databaseadvisors.com/mailman/listinfo/dba-vb : http://www.databaseadvisors.com : : : _______________________________________________ : dba-VB mailing list : dba-VB at databaseadvisors.com : http://databaseadvisors.com/mailman/listinfo/dba-vb : http://www.databaseadvisors.com : : From ghazzard at aelfen.net Fri Feb 28 18:24:05 2003 From: ghazzard at aelfen.net (Gregory K. Hazzard) Date: Fri, 28 Feb 2003 18:24:05 -0600 Subject: [dba-VB] Closing an application In-Reply-To: <000401c2df71$f882b7d0$ac320cd8@hargrove.internal> Message-ID: <005201c2df88$de7b8b20$0200a8c0@greg> I have heard this in the past - and I must admit to being guilty of using End, but I've never really know the difference, other than End exits your app no matter where it is, and unload requires you to call each form individually. What makes End such a No-no? Greg -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com] On Behalf Of Mike and Doris Manning Sent: Friday, February 28, 2003 3:40 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Closing an application "Unload Me" hides the form and removes it from memory so you are definitely doing the right thing. As with Access, "END" is a no-no. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com From DWUTKA at marlow.com Fri Feb 28 19:15:11 2003 From: DWUTKA at marlow.com (Drew Wutka) Date: Fri, 28 Feb 2003 19:15:11 -0600 Subject: [dba-VB] Closing an application Message-ID: <2F8793082E00D4119A1700B0D0216BF801D821D3@main2.marlow.com> Ditto. End is what you use to close a VB App. Sure, if you have one form, and nothing loaded in the background, you can just unload the form (or give the user the 'x') but End stops the execution of your VB .exe, thus unloading everything. Drew -----Original Message----- From: Gregory K. Hazzard [mailto:ghazzard at aelfen.net] Sent: Friday, February 28, 2003 6:24 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Closing an application I have heard this in the past - and I must admit to being guilty of using End, but I've never really know the difference, other than End exits your app no matter where it is, and unload requires you to call each form individually. What makes End such a No-no? Greg -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com] On Behalf Of Mike and Doris Manning Sent: Friday, February 28, 2003 3:40 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Closing an application "Unload Me" hides the form and removes it from memory so you are definitely doing the right thing. As with Access, "END" is a no-no. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From Jdemarco at hshhp.org Fri Feb 7 07:16:25 2003 From: Jdemarco at hshhp.org (Jim DeMarco) Date: Fri, 7 Feb 2003 08:16:25 -0500 Subject: [dba-VB] test Message-ID: <22F1CCD5171D17419CB37FEEE09D5F99D8500D@TTNEXCHSRV1.hshhp.com> no response necessary *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from HealthSource/Hudson Health Plan (HS/HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HS/HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From Jdemarco at hshhp.org Fri Feb 7 07:31:02 2003 From: Jdemarco at hshhp.org (Jim DeMarco) Date: Fri, 7 Feb 2003 08:31:02 -0500 Subject: [dba-VB] Web Service - Page Not Found Error Message-ID: <22F1CCD5171D17419CB37FEEE09D5F99D85011@TTNEXCHSRV1.hshhp.com> I was having a problem getting a .NET web service deployed so I thought I'd run a test on a very simple service to see that I was able to get a response back from the service. I created a service with two functions AddEm and SubtractEm which adds or subtracts 2 integers and returns the result. Works fine on my dev box but when I deployed it on our live web server I get an error 404 Page Not Found when the Invoke button is clicked on the .asmx page calling either function. I then copied the app to another local server (my old desktop machine) and it works just fine. In talking to one of our networking consultants he asks the following questions that I don't have answers to. If anyone can help I'd appreciate it. 1.What protocol/port number is the server application (web service??) using? 2. Does the web server create a new session or respond to a request from a web service within the same session? If you want the link to the live service or the service itself to try on your own machine I'd be glad to send it. It's a pretty trivial service and I don't believe there's anything wrong with it as it does almost nothing. Thanks, Jim DeMarco Director of Product Development HealthSource/Hudson Health Plan *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from HealthSource/Hudson Health Plan (HS/HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HS/HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From paul.hartland at fsmail.net Tue Feb 11 02:51:24 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 11 Feb 2003 8:51:24 +0000 Subject: [dba-VB] Combo Box on DataGrid (Visual Basic 6) Message-ID: <20030211085124.BAMA5116.fep06-svc.ttys.com@localhost> To all, Not having much experience with DataGrids (VB6), I was playing around yesterday and found out you could put a button on a column (This I done without a problem), but I also heard you could have a ComboBox/ListBox appear when the button is pressed, Anyone any idea on how to display the ComboBox/ListBox when this is pressed ????? Any help, sample code etc appreciated............. Paul __________________________________________________________________________ Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month after that. For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890 From paul.hartland at fsmail.net Wed Feb 12 04:12:12 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 12 Feb 2003 10:12:12 +0000 Subject: [dba-VB] What Column (DataGrid VB6) Message-ID: <20030212101212.CIFA5116.fep06-svc.ttys.com@localhost> To all, I have a DataGrid in a VB6 Front-End, I have to lock specific fields so that users can't edit them. The trouble is, when you tab into a locked field, the cursor disappears.......... Is there anyway to show the user what field they are in even when it's locked...............????????? Thanks in advance........... Paul __________________________________________________________________________ Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month after that. For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890 From Jdemarco at hshhp.org Wed Feb 12 07:40:47 2003 From: Jdemarco at hshhp.org (Jim DeMarco) Date: Wed, 12 Feb 2003 08:40:47 -0500 Subject: [dba-VB] What Column (DataGrid VB6) Message-ID: <22F1CCD5171D17419CB37FEEE09D5F99D850A9@TTNEXCHSRV1.hshhp.com> You could try using color to highlight the current cell. HTH, Jim DeMarco Director of Product Development HealthSource/Hudson Health Plan -----Original Message----- From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] Sent: Wednesday, February 12, 2003 5:12 AM To: accessd at databaseadvisors.com; dba-VB at databaseadvisors.com Subject: [dba-VB] What Column (DataGrid VB6) To all, I have a DataGrid in a VB6 Front-End, I have to lock specific fields so that users can't edit them. The trouble is, when you tab into a locked field, the cursor disappears.......... Is there anyway to show the user what field they are in even when it's locked...............????????? Thanks in advance........... Paul __________________________________________________________________________ Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month after that. For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890 _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from HealthSource/Hudson Health Plan (HS/HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HS/HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From paul.hartland at fsmail.net Wed Feb 12 08:01:11 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 12 Feb 2003 14:01:11 +0000 Subject: [dba-VB] What Column (DataGrid VB6) Message-ID: <20030212140111.HNAA7162.fep07-svc.ttys.com@localhost> Thats what I thought of doing, but can't find how the change the color of just one cell............ Paul From: "Jim DeMarco" Date: Wed 12/Feb/2003 13:40 GMT To: Subject: RE: [dba-VB] What Column (DataGrid VB6) You could try using color to highlight the current cell. HTH, Jim DeMarco Director of Product Development HealthSource/Hudson Health Plan -----Original Message----- From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] Sent: Wednesday, February 12, 2003 5:12 AM To: accessd at databaseadvisors.com; dba-VB at databaseadvisors.com Subject: [dba-VB] What Column (DataGrid VB6) To all, I have a DataGrid in a VB6 Front-End, I have to lock specific fields so that users can't edit them. The trouble is, when you tab into a locked field, the cursor disappears.......... Is there anyway to show the user what field they are in even when it's locked...............????????? Thanks in advance........... Paul __________________________________________________________________________ Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month after that. For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890 _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from HealthSource/Hudson Health Plan (HS/HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HS/HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com __________________________________________________________________________ Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month after that. For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890 From paul.hartland at fsmail.net Thu Feb 13 03:10:17 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 13 Feb 2003 9:10:17 +0000 Subject: [dba-VB] URGENT (VB6 Problem) Message-ID: <20030213091017.DOFH5116.fep06-svc.ttys.com@localhost> To all, I have a form with an ADODC DataControl and fields which link into the DataControl. I have never seen/or tried this before, but yesterday whilst testing out my application, I came across this.......... I open the form and edit a record, move off that particular record, go back to it edit it again and get this error.......... Row Cannot Be Located For Updating, Some Values May Have Been Changed Since It Was Last Read. Anyone any ideas on why this is happening..........It's a VB6 FE with SQL 7.0 BE Thanks in advance................ Paul __________________________________________________________________________ Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month after that. For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890 From paul.hartland at fsmail.net Thu Feb 13 03:16:10 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 13 Feb 2003 9:16:10 +0000 Subject: [dba-VB] PLEASE IGNORE - URGENT (VB6 Problem) Message-ID: <20030213091610.DOHN5116.fep06-svc.ttys.com@localhost> To all, Appologies for my last email requesting help, I have found out what is going wrong.........I hadn't set my CursorType and LockType correctly............ Paul __________________________________________________________________________ Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month after that. For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890 From paul.hartland at fsmail.net Fri Feb 14 07:24:07 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Fri, 14 Feb 2003 13:24:07 +0000 Subject: [dba-VB] DataGrid (VB6) Setting Focus To A Column Message-ID: <20030214132407.CONF14152.fep02-svc.ttys.com@localhost> To all, I have a VB DataGrid on a form, and when the user wants to add a new record I insert some default information and the user should then start typing in column 2...... Is there anyway of setting the focus to a particular column after adding a new record ? Paul __________________________________________________________________________ Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month after that. For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890 From paul.hartland at fsmail.net Mon Feb 17 07:48:09 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 17 Feb 2003 13:48:09 +0000 Subject: [dba-VB] Deleting Dates Message-ID: <20030217134809.IOHS5116.fep06-svc.ttys.com@localhost> To all, I have a Visual Basic 6 front-end which is currently linked into a SQL Server 7.0 back-end, I have a table called tblPersonnel in the BE which has a form on the VB6 FE. We take on temporary staff a certain points of the year to help with the workload, and when they finish we enter a finish date for that particualr person....No problem so far......However if they have proved themselves to be a good worker, they get invited back whenever we need the additional staff (saving on re-training etc). But I can seem to get the system to allow me to take out a finish date (making it null again)..... The tblPersonnel.Finishdate field will allow Nulls, and I'm using the ADODC DataControl with a text box linked to the Control and Field FinishDate........ Anyone had similar problems or can tell me how to reset the FinishDate to null Thanks in advance for any help.......... Paul __________________________________________________________________________ Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month after that. For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890 From paul.hartland at fsmail.net Mon Feb 17 07:48:09 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 17 Feb 2003 13:48:09 +0000 Subject: [dba-VB] [dba-SQLServer]Deleting Dates Message-ID: <20030217134809.IOHS5116.fep06-svc.ttys.com@localhost> To all, I have a Visual Basic 6 front-end which is currently linked into a SQL Server 7.0 back-end, I have a table called tblPersonnel in the BE which has a form on the VB6 FE. We take on temporary staff a certain points of the year to help with the workload, and when they finish we enter a finish date for that particualr person....No problem so far......However if they have proved themselves to be a good worker, they get invited back whenever we need the additional staff (saving on re-training etc). But I can seem to get the system to allow me to take out a finish date (making it null again)..... The tblPersonnel.Finishdate field will allow Nulls, and I'm using the ADODC DataControl with a text box linked to the Control and Field FinishDate........ Anyone had similar problems or can tell me how to reset the FinishDate to null Thanks in advance for any help.......... Paul __________________________________________________________________________ Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month after that. For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890 _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From paul.hartland at fsmail.net Tue Feb 18 04:14:38 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 18 Feb 2003 10:14:38 +0000 Subject: [dba-VB] Is Outlook Open (VB6) Message-ID: <20030218101438.HLEM14152.fep02-svc.ttys.com@localhost> To all, Anyone know how I can check to see if MS Outlook is open using VB6 ? Thanks in advance Paul __________________________________________________________________________ Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month after that. For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890 From carbonnb at sympatico.ca Tue Feb 18 07:05:09 2003 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Tue, 18 Feb 2003 08:05:09 -0500 Subject: [dba-VB] Is Outlook Open (VB6) In-Reply-To: <20030218101438.HLEM14152.fep02-svc.ttys.com@localhost> Message-ID: <3E51E935.19907.A5264@localhost> Cross-posted to AccessD and dba-vb On 18 Feb 2003 at 10:14, paul.hartland at fsmail.net wrote: > Anyone know how I can check to see if MS Outlook is open using VB6 ? Paul, How about something like this: Dom objOut as object On Error Resume Next set objOut = GetObject("Outlook.Application") if Err <> 0 Then MsgBox "Outlook is not open" Else Msgbox "Outlook is open" End if -- Bryan Carbonnell - carbonnb at sympatico.ca We've all heard that a million monkeys banging on a million typewriters will eventually reproduce the entire works of Shakespeare. Now, thanks to the Internet, we know this is not true.^ [Robert Wilensky (1997)] From mikedorism at ntelos.net Tue Feb 18 08:21:07 2003 From: mikedorism at ntelos.net (Mike and Doris Manning) Date: Tue, 18 Feb 2003 09:21:07 -0500 Subject: [dba-VB] Is Outlook Open (VB6) In-Reply-To: <3E51E935.19907.A5264@localhost> Message-ID: <000401c2d759$029d9c60$9a3c0cd8@hargrove.internal> I tried that but it doesn't always yield the correct results, so I chose to handle it via API calls instead. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com] On Behalf Of Bryan Carbonnell Sent: Tuesday, February 18, 2003 08:05 AM To: dba-vb at databaseadvisors.com; accessd at databaseadvisors.com Subject: Re: [dba-VB] Is Outlook Open (VB6) Cross-posted to AccessD and dba-vb On 18 Feb 2003 at 10:14, paul.hartland at fsmail.net wrote: > Anyone know how I can check to see if MS Outlook is open using VB6 ? Paul, How about something like this: Dom objOut as object On Error Resume Next set objOut = GetObject("Outlook.Application") if Err <> 0 Then MsgBox "Outlook is not open" Else Msgbox "Outlook is open" End if -- Bryan Carbonnell - carbonnb at sympatico.ca We've all heard that a million monkeys banging on a million typewriters will eventually reproduce the entire works of Shakespeare. Now, thanks to the Internet, we know this is not true.^ [Robert Wilensky (1997)] _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jcolby at colbyconsulting.com Sat Feb 22 21:11:52 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Sat, 22 Feb 2003 22:11:52 -0500 Subject: [dba-VB] test2 Message-ID: test2 John W. Colby Colby Consulting www.ColbyConsulting.com From jcolby at colbyconsulting.com Sat Feb 22 21:16:45 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Sat, 22 Feb 2003 22:16:45 -0500 Subject: [dba-VB] Is there anyone out there? Message-ID: John W. Colby Colby Consulting www.ColbyConsulting.com From papparuff at attbi.com Sat Feb 22 22:02:19 2003 From: papparuff at attbi.com (John Ruff) Date: Sat, 22 Feb 2003 20:02:19 -0800 Subject: [dba-VB] Is there anyone out there? In-Reply-To: Message-ID: <019f01c2daf0$5ce01230$6401a8c0@papparuff> Yes John, but I haven't received anything sind the 18th. John V. Ruff - The Eternal Optimist :-) "Commit to the Lord whatever you do, and your plans will succeed." Proverbs 16:3 -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com] On Behalf Of John W. Colby Sent: Saturday, February 22, 2003 7:17 PM To: AccessD - VBA Subject: [dba-VB] Is there anyone out there? John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From accessd at shaw.ca Sat Feb 22 21:59:04 2003 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Sat, 22 Feb 2003 19:59:04 -0800 Subject: [dba-VB] Is there anyone out there? In-Reply-To: Message-ID: Hi John: Email received loud and clear. Jim -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of John W. Colby Sent: Saturday, February 22, 2003 7:17 PM To: AccessD - VBA Subject: [dba-VB] Is there anyone out there? John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jcolby at colbyconsulting.com Sun Feb 23 06:20:57 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Sun, 23 Feb 2003 07:20:57 -0500 Subject: [dba-VB] Is there anyone out there? In-Reply-To: <019f01c2daf0$5ce01230$6401a8c0@papparuff> Message-ID: Well maybe it's time to fire this list up! John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of John Ruff Sent: Saturday, February 22, 2003 11:02 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Is there anyone out there? Yes John, but I haven't received anything sind the 18th. John V. Ruff - The Eternal Optimist :-) "Commit to the Lord whatever you do, and your plans will succeed." Proverbs 16:3 -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com] On Behalf Of John W. Colby Sent: Saturday, February 22, 2003 7:17 PM To: AccessD - VBA Subject: [dba-VB] Is there anyone out there? John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From ghazzard at aelfen.net Sun Feb 23 08:36:43 2003 From: ghazzard at aelfen.net (Gregory K. Hazzard) Date: Sun, 23 Feb 2003 08:36:43 -0600 Subject: [dba-VB] VB6: TreeView Controls and Drag-N-Drop Message-ID: <001801c2db48$fce3a1e0$0200a8c0@greg> Since John was so concerned about the lack of information freely flowing about this list, I thought I?d get something started that?s been puzzling me for nigh on a week now. I?m building a VB app that has a TreeView control (tvwDirectoryList) and a File List Box (filFileList). What?s been puzzling me is that there isn?t a lot of information on TreeView controls for VB6 and I?m having a deuce of a time trying to figure out how to get drag and drop to work. I want to be able to drag files from the file list to different folders in the tree view, and while I found the properties to turn on to make the TreeView a drop target, and make the file list willing to let you drag items from it, that?s as far as I have been able to get. I can click on a file, and drag it across, and I get the drag icon (that little greyed out box) but it doesn?t actually select anything in the TreeView to drop the file on, and when I release the mouse button, no dropping occurs. Does anyone have any documentation or an example or even a will guess about how this should occur? Thanks. Gregory K. Hazzard http://www.aelfen.net mailto:ghazzard at aelfen.net "I'm not saying it's safe for humans. I'm not saying it's unsafe for humans. All I'm saying is it that it makes hermaphrodites out of frogs." - Tyrone B. Hayes of the University of California at Berkeley, on the effects of Atrazine on human beings. From carbonnb at sympatico.ca Sun Feb 23 08:53:10 2003 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Sun, 23 Feb 2003 09:53:10 -0500 Subject: [dba-VB] VB6: TreeView Controls and Drag-N-Drop In-Reply-To: <001801c2db48$fce3a1e0$0200a8c0@greg> Message-ID: <3E589A06.24955.628E25@localhost> On 23 Feb 2003 at 8:36, Gregory K. Hazzard wrote: > Does anyone have any documentation or an example or even a will guess > about how this should occur? Thanks. Gregory, There really isn't a lot of documentation about TreeViews in general. I am assuming that you have checked MSDN, if not here is a link that has a bunch of info, it's actually a search result from MSDN, http://search.microsoft.com/default.asp?qu=treeview+drag+and+dr op&boolean=ALL&nq=NEW&so=RECCNT&p=1&ig=01&ig=03&ig= 04&ig=05&ig=06&i=00&i=01&i=02&i=03&i=04&i=05&i=06&i=07&i= 08&i=09&i=10&i=11&i=12&i=13&i=14&i=15&i=16&i=17&i=18&i=19 &i=20&i=21&i=22&i=23&i=24&i=25&i=26&i=27&i=28&i=29&i=30&i =31&i=32&i=33&i=34&i=35&i=36&i=37&i=38&i=39&i=40&i=41&sit eid=us/dev Or to make it easier: http://tinyurl.com/69tv You can also look at Arthur Fuller's article in DBA's M2M Newsletter here: http://www.databaseadvisors.com/newsletters/news0109.htm It deals with Adding a TreeView to Access, but it may give you some leads. Finally a google search, http://www.google.ca/search?sourceid=navclient&q=treeview+drag +and+drop, will give you tons of links. -- Bryan Carbonnell - carbonnb at sympatico.ca It was difficult to code. So it damn well better be difficult to use. From DWUTKA at marlow.com Mon Feb 24 11:20:46 2003 From: DWUTKA at marlow.com (Drew Wutka) Date: Mon, 24 Feb 2003 11:20:46 -0600 Subject: [dba-VB] Is there anyone out there? Message-ID: <2F8793082E00D4119A1700B0D0216BF801D82170@main2.marlow.com> This list hasn't gotten much traffic since I've been on it. Drew -----Original Message----- From: John W. Colby [mailto:jcolby at colbyconsulting.com] Sent: Sunday, February 23, 2003 6:21 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Is there anyone out there? Well maybe it's time to fire this list up! John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of John Ruff Sent: Saturday, February 22, 2003 11:02 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Is there anyone out there? Yes John, but I haven't received anything sind the 18th. John V. Ruff - The Eternal Optimist :-) "Commit to the Lord whatever you do, and your plans will succeed." Proverbs 16:3 -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com] On Behalf Of John W. Colby Sent: Saturday, February 22, 2003 7:17 PM To: AccessD - VBA Subject: [dba-VB] Is there anyone out there? John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From DWUTKA at marlow.com Mon Feb 24 11:25:48 2003 From: DWUTKA at marlow.com (Drew Wutka) Date: Mon, 24 Feb 2003 11:25:48 -0600 Subject: [dba-VB] VB6: TreeView Controls and Drag-N-Drop Message-ID: <2F8793082E00D4119A1700B0D0216BF801D82171@main2.marlow.com> I have a drag and drop treeview setup. I can send the form so you can see the code if you want. The app itself would be a pain to try to setup for just that example. What it is, is a 'control' window I have that has a 'client' app on every machine in my company. Then we admins (The IS department) can open this control form for any user that is online. It has all sorts of bells and whistles, however, there is one tab that has a 'Windows Explorer' like set of treeviews. It then doubles that set, to display the local machine. (So the top two are the remote user, and the bottom two are the local user). You can then 'drag and drop' files between the two. Let me know if you want me to send you the form I am talking about. Drew -----Original Message----- From: Gregory K. Hazzard [mailto:ghazzard at aelfen.net] Sent: Sunday, February 23, 2003 8:37 AM To: 'Visual Basic Mailing List' Subject: [dba-VB] VB6: TreeView Controls and Drag-N-Drop Since John was so concerned about the lack of information freely flowing about this list, I thought I'd get something started that's been puzzling me for nigh on a week now. I'm building a VB app that has a TreeView control (tvwDirectoryList) and a File List Box (filFileList). What's been puzzling me is that there isn't a lot of information on TreeView controls for VB6 and I'm having a deuce of a time trying to figure out how to get drag and drop to work. I want to be able to drag files from the file list to different folders in the tree view, and while I found the properties to turn on to make the TreeView a drop target, and make the file list willing to let you drag items from it, that's as far as I have been able to get. I can click on a file, and drag it across, and I get the drag icon (that little greyed out box) but it doesn't actually select anything in the TreeView to drop the file on, and when I release the mouse button, no dropping occurs. Does anyone have any documentation or an example or even a will guess about how this should occur? Thanks. Gregory K. Hazzard http://www.aelfen.net mailto:ghazzard at aelfen.net "I'm not saying it's safe for humans. I'm not saying it's unsafe for humans. All I'm saying is it that it makes hermaphrodites out of frogs." - Tyrone B. Hayes of the University of California at Berkeley, on the effects of Atrazine on human beings. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jcolby at colbyconsulting.com Mon Feb 24 20:58:10 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Mon, 24 Feb 2003 21:58:10 -0500 Subject: [dba-VB] .Net - Beyond Hello World Message-ID: Well, I just designed my first bound form, bound to a table in SQL Server. Used a data grid to display the data and a button to load the data into the grid. Total time (following the instructions in help) ~ 1/2 hour. Not bad I think. I already had about 1/2 of my billing app data in SQL Server. So the first attempt to crawl was a smashing success. This is completely different from how I've done things in the past. They do have a pretty nice SQL builder. Not as nice as Access' but I have never seen one as nice as Access'. It reminds me of the one in SQL Server in fact. Maybe it is? OK, so I won't have a complete port of the db with three tiers and a matching web interface by tomorrow. How about a bound form of a single simple table by tomorrow? ;-) I must admit though, I like it so far. It is waaaay different from Access, but it is also light-years closer to Access than the old VB was I think. Not that I was ever an expert in the old VB, I will admit. I am startled at how easy it is to connect to data out in the SQL Server. All you need to know is the name of the machine with SQL Server running (and authorization on that machine / SQL Server). Setting up the connections to the database and table within the db is all wizard driven. Couldn't be much easier than that, unless you count Access' ADP environment. I think getting connected in .net may even have been easier. I haven't found a table builder interface similar to Access' though. I suspect that you have to go direct to SQL Server's enterprise manager and build them there. Or use an Access ADP to build them. OMG, I just discovered that (of course) the form is not a child doc to the environment. This is VB after all. I clicked on the button in the task bar and it popped up right over my email message. I was expecting to be transported back to the .net environment and see the form there. Since the form exists in design view in the .net environment, that means that I can see it in design view and form view at the same time. Yes I know, I'm easily amazed. More tomorrow. John W. Colby Colby Consulting www.ColbyConsulting.com ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com From jcolby at colbyconsulting.com Mon Feb 24 23:45:11 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Tue, 25 Feb 2003 00:45:11 -0500 Subject: [dba-VB] Inheritance Message-ID: I have just finished two articles regarding TRUE IMPLEMENTATION INHERITANCE in .Net. http://www.microsoft.com/mspress/developer/feature/040402.asp The other was buried in a frame (?) which did not show the url when I burrowed down to it. MSDN Home > MSDN Library > .NET Development > Visual Studio .NET > Articles and Columns > Columns > Adventures in Visual Basic.net > Doing collections with inheritance Apparently VB 6 had only interface inheritance, which if you are familiar with and accustomed to implementation inheritance, pretty much sucks. .Net appears to have the real McCoy. Joy in Mudville folks. BTW, an example of some of the example code available for VB.Net: http://msdn.microsoft.com/vbasic/downloads/samples/default.asp John W. Colby Colby Consulting www.ColbyConsulting.com ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com From paul.hartland at fsmail.net Tue Feb 25 03:42:40 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 25 Feb 2003 9:42:40 +0000 Subject: [dba-VB] SQL Server 7 - Stored Procedure Help - Quite Urgent. Message-ID: <20030225094240.LAKO2415.fep03-svc.ttys.com@localhost> To all, Watch for Word Wrap............... Being quite a novice with Stored Procedures on SQL Server 7.0, I'm looking for some pretty urgent help at the moment. I have two tables, lets say Table A & Table B. Table A is my master table, and Table B is a temporary table. Before Table be gets populated with any data, every existing record is deleted so I start with a fresh table so to speak. Table B consists of 3 fields PayrollNo, JobDate, JobType (these fields are also in the master table, but the master table is used to contain other consting information, which is entered at a later date). What I would like is a Stored Procedure which would Insert Table B contents into Table A, but making sure that I don't insert any duplicates into Table A (something like an unmatched query in access but with an Insert also). i.e. Table A Table B payroll jobdate jobtype id payroll jobdate jobtype 999001 01/01/01 0 1 999001 01/01/01 0 999001 01/01/01 2 2 999001 01/01/01 1 999002 01/01/01 2 3 999001 01/01/01 2 4 999002 01/01/01 0 5 999002 01/01/01 1 6 999002 01/01/01 2 So when I invoke the stored procedure, it would insert records 2, 4 and 5 from Table B into Table A........Anyone any idea what I'm on about, if so can anybody please help....... Thanks in advance Paul Hartland __________________________________________________________________________ Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month after that. For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890 From paul.hartland at fsmail.net Tue Feb 25 03:42:40 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 25 Feb 2003 9:42:40 +0000 Subject: [dba-VB] [dba-SQLServer]SQL Server 7 - Stored Procedure Help - Quite Urgent. Message-ID: <20030225094240.LAKO2415.fep03-svc.ttys.com@localhost> To all, Watch for Word Wrap............... Being quite a novice with Stored Procedures on SQL Server 7.0, I'm looking for some pretty urgent help at the moment. I have two tables, lets say Table A & Table B. Table A is my master table, and Table B is a temporary table. Before Table be gets populated with any data, every existing record is deleted so I start with a fresh table so to speak. Table B consists of 3 fields PayrollNo, JobDate, JobType (these fields are also in the master table, but the master table is used to contain other consting information, which is entered at a later date). What I would like is a Stored Procedure which would Insert Table B contents into Table A, but making sure that I don't insert any duplicates into Table A (something like an unmatched query in access but with an Insert also). i.e. Table A Table B payroll jobdate jobtype id payroll jobdate jobtype 999001 01/01/01 0 1 999001 01/01/01 0 999001 01/01/01 2 2 999001 01/01/01 1 999002 01/01/01 2 3 999001 01/01/01 2 4 999002 01/01/01 0 5 999002 01/01/01 1 6 999002 01/01/01 2 So when I invoke the stored procedure, it would insert records 2, 4 and 5 from Table B into Table A........Anyone any idea what I'm on about, if so can anybody please help....... Thanks in advance Paul Hartland __________________________________________________________________________ Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month after that. For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890 _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From scott.marcus at ae.ge.com Tue Feb 25 05:48:29 2003 From: scott.marcus at ae.ge.com (Marcus, Scott (GEAE, RHI Consulting)) Date: Tue, 25 Feb 2003 06:48:29 -0500 Subject: [dba-VB] SQL Server 7 - Stored Procedure Help - Quite Urgent. Message-ID: <768A0EA6FF8CB34FA522978966E5D52E559D10@bwam02msx.ae.ge.com> Paul, The following is untested and may need tweaking, but I think it will at least get you started... INSERT INTO [Table A] payroll , jobdate, jobtype SELECT B.payroll, B.jobdate, B.jobtype FROM [Table B] as B WHERE B.id NOT IN (SELECT BB.id FROM [Table B] as BB, [Table A] as A WHERE BB.payroll = A.payroll AND BB.jobdate = A.jobdate AND BB.jobtype = A.jobtype) Scott Marcus -----Original Message----- From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] Sent: Tuesday, February 25, 2003 4:43 AM To: dba-SQLServer at databaseadvisors.com; accessd at databaseadvisors.com; dba-vb at databaseadvisors.com Subject: [dba-VB] SQL Server 7 - Stored Procedure Help - Quite Urgent. To all, Watch for Word Wrap............... Being quite a novice with Stored Procedures on SQL Server 7.0, I'm looking for some pretty urgent help at the moment. I have two tables, lets say Table A & Table B. Table A is my master table, and Table B is a temporary table. Before Table be gets populated with any data, every existing record is deleted so I start with a fresh table so to speak. Table B consists of 3 fields PayrollNo, JobDate, JobType (these fields are also in the master table, but the master table is used to contain other consting information, which is entered at a later date). What I would like is a Stored Procedure which would Insert Table B contents into Table A, but making sure that I don't insert any duplicates into Table A (something like an unmatched query in access but with an Insert also). i.e. Table A Table B payroll jobdate jobtype id payroll jobdate jobtype 999001 01/01/01 0 1 999001 01/01/01 0 999001 01/01/01 2 2 999001 01/01/01 1 999002 01/01/01 2 3 999001 01/01/01 2 4 999002 01/01/01 0 5 999002 01/01/01 1 6 999002 01/01/01 2 So when I invoke the stored procedure, it would insert records 2, 4 and 5 from Table B into Table A........Anyone any idea what I'm on about, if so can anybody please help....... Thanks in advance Paul Hartland __________________________________________________________________________ Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month after that. For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890 _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From ghazzard at aelfen.net Mon Feb 24 15:02:24 2003 From: ghazzard at aelfen.net (Gregory K. Hazzard) Date: Mon, 24 Feb 2003 15:02:24 -0600 Subject: [dba-VB] VB6: TreeView Controls and Drag-N-Drop In-Reply-To: <2F8793082E00D4119A1700B0D0216BF801D82171@main2.marlow.com> Message-ID: <002e01c2dc48$08657ca0$0200a8c0@greg> Drew, That sounds great. You can send me a copy off list at ghazzard at aelfen.net. I really appreciate that. I've been reading through the pages that Bryan suggested, but have been unable thus far to get DnD working. The examples seem to work well enough, but I am obviously not doing something correctly in my app. Thanks Greg -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Monday, February 24, 2003 11:26 AM To: 'dba-vb at databaseadvisors.com' Subject: RE: [dba-VB] VB6: TreeView Controls and Drag-N-Drop I have a drag and drop treeview setup. I can send the form so you can see the code if you want... Let me know if you want me to send you the form I am talking about. Drew From my.lists at verizon.net Tue Feb 25 10:35:37 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Tue, 25 Feb 2003 08:35:37 -0800 Subject: [dba-VB] Re: [dba-SQLServer]SQL Server 7 - Stored Procedure Help - Quite Urgent. References: <20030225094240.LAKO2415.fep03-svc.ttys.com@localhost> Message-ID: <004c01c2dceb$f118b9f0$b615010a@FHTAPIA> How about .... Insert into tableA (Payroll, jobdate, jobtype) Select Payroll, jobdate, jobtype From tableB AS B WHERE NOT EXISTS( Select Payroll, jobdate, jobtype From tableA AS A Where B.Payroll = A.Payroll AND B.Jobdate = A.JobDate AND B.JobType = A.JobType) I could have used a NOT IN clause but then NOT IN can have some serious side effects...In General the above statement will be evaluated by the engine where as a NOT IN could miss evaluating the B alias in the where clause and cause it to report bad data, using Exists (or NOT EXISTS) usually yields faster performance and the assurance that it evaluates correctly. -Francisco http://rcm.netfirms.com ----- Original Message ----- From: To: ; ; Sent: Tuesday, February 25, 2003 1:42 AM Subject: [dba-SQLServer]SQL Server 7 - Stored Procedure Help - Quite Urgent. : To all, : : Watch for Word Wrap............... : : Being quite a novice with Stored Procedures on SQL Server 7.0, I'm looking for some pretty urgent help at the moment. I have two tables, lets say Table A & Table B. Table A is my master table, and Table B is a temporary table. Before Table be gets populated with any data, every existing record is deleted so I start with a fresh table so to speak. Table B consists of 3 fields PayrollNo, JobDate, JobType (these fields are also in the master table, but the master table is used to contain other consting information, which is entered at a later date). : : What I would like is a Stored Procedure which would Insert Table B contents into Table A, but making sure that I don't insert any duplicates into Table A (something like an unmatched query in access but with an Insert also). i.e. : : Table A Table B : payroll jobdate jobtype id payroll jobdate jobtype : 999001 01/01/01 0 1 999001 01/01/01 0 : 999001 01/01/01 2 2 999001 01/01/01 1 : 999002 01/01/01 2 3 999001 01/01/01 2 : 4 999002 01/01/01 0 : 5 999002 01/01/01 1 : 6 999002 01/01/01 2 : : So when I invoke the stored procedure, it would insert records 2, 4 and 5 from Table B into Table A........Anyone any idea what I'm on about, if so can anybody please help....... : : Thanks in advance : : Paul Hartland : : __________________________________________________________________________ : Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for : your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month : after that. : : For more information visit http://www.freeserve.com/time/ or call free on : 0800 970 8890 : : : _______________________________________________ : dba-SQLServer mailing list : dba-SQLServer at databaseadvisors.com : http://databaseadvisors.com/mailman/listinfo/dba-sqlserver : http://www.databaseadvisors.com : From my.lists at verizon.net Tue Feb 25 10:35:37 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Tue, 25 Feb 2003 08:35:37 -0800 Subject: [dba-VB] Re: [dba-SQLServer]SQL Server 7 - Stored Procedure Help - Quite Urgent. References: <20030225094240.LAKO2415.fep03-svc.ttys.com@localhost> Message-ID: <004c01c2dceb$f118b9f0$b615010a@FHTAPIA> How about .... Insert into tableA (Payroll, jobdate, jobtype) Select Payroll, jobdate, jobtype From tableB AS B WHERE NOT EXISTS( Select Payroll, jobdate, jobtype From tableA AS A Where B.Payroll = A.Payroll AND B.Jobdate = A.JobDate AND B.JobType = A.JobType) I could have used a NOT IN clause but then NOT IN can have some serious side effects...In General the above statement will be evaluated by the engine where as a NOT IN could miss evaluating the B alias in the where clause and cause it to report bad data, using Exists (or NOT EXISTS) usually yields faster performance and the assurance that it evaluates correctly. -Francisco http://rcm.netfirms.com ----- Original Message ----- From: To: ; ; Sent: Tuesday, February 25, 2003 1:42 AM Subject: [dba-SQLServer]SQL Server 7 - Stored Procedure Help - Quite Urgent. : To all, : : Watch for Word Wrap............... : : Being quite a novice with Stored Procedures on SQL Server 7.0, I'm looking for some pretty urgent help at the moment. I have two tables, lets say Table A & Table B. Table A is my master table, and Table B is a temporary table. Before Table be gets populated with any data, every existing record is deleted so I start with a fresh table so to speak. Table B consists of 3 fields PayrollNo, JobDate, JobType (these fields are also in the master table, but the master table is used to contain other consting information, which is entered at a later date). : : What I would like is a Stored Procedure which would Insert Table B contents into Table A, but making sure that I don't insert any duplicates into Table A (something like an unmatched query in access but with an Insert also). i.e. : : Table A Table B : payroll jobdate jobtype id payroll jobdate jobtype : 999001 01/01/01 0 1 999001 01/01/01 0 : 999001 01/01/01 2 2 999001 01/01/01 1 : 999002 01/01/01 2 3 999001 01/01/01 2 : 4 999002 01/01/01 0 : 5 999002 01/01/01 1 : 6 999002 01/01/01 2 : : So when I invoke the stored procedure, it would insert records 2, 4 and 5 from Table B into Table A........Anyone any idea what I'm on about, if so can anybody please help....... : : Thanks in advance : : Paul Hartland : : __________________________________________________________________________ : Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for : your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month : after that. : : For more information visit http://www.freeserve.com/time/ or call free on : 0800 970 8890 : : : _______________________________________________ : dba-SQLServer mailing list : dba-SQLServer at databaseadvisors.com : http://databaseadvisors.com/mailman/listinfo/dba-sqlserver : http://www.databaseadvisors.com : _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From jcolby at colbyconsulting.com Tue Feb 25 19:31:41 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Tue, 25 Feb 2003 20:31:41 -0500 Subject: [dba-VB] OT: .NET - Data grid syncs to combo Message-ID: I have moved my billing database BE to sql server, hooked up my existing Access FE and continue to use that as I play with the data in .Net. In the meantime, in VB.Net I created a bound form last night (or I think it's bound anyway, not positive). It was using an OLEConnection, which tonight I switched to an SQL connection. It's supposed to be faster. The form simply displays the state table (all fields) in a data grid. You really can't get much simpler than that, though I suppose for something like a state table it would suffice. I decided to try and figure out how to use a combo box to select a record in the data grid. Dragged and dropped a combo to the form, hooked the datasource property to the same data source I was using for the form / data grid. Set the display member (the field displayed) to ST_Abrev (the 2 char code), and the value member (the PK of the table) to ST_ID (the PK of the table). Opened the form, selected the state in the combo and the data grid moved the record selector to that state. Man was THAT easy! So the combination of everything allows the combo to just act as a record selector without all of the code required in Access. Not knowing exactly what is happening, I have to assume that the combo selecting something causes a record selector pointer in the data set object to point somewhere. Since the data grid is using the same data set object, the data grid displays the newly selected record. Just a guess of course. This stuff is way over my head. But so easy (if I just understood what I was doing). Cool beans man! John W. Colby Colby Consulting www.ColbyConsulting.com ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com From scott.marcus at ae.ge.com Wed Feb 26 07:10:11 2003 From: scott.marcus at ae.ge.com (Marcus, Scott (GEAE, RHI Consulting)) Date: Wed, 26 Feb 2003 08:10:11 -0500 Subject: [dba-VB] OT: .NET - Data grid syncs to combo Message-ID: <768A0EA6FF8CB34FA522978966E5D52E559D14@bwam02msx.ae.ge.com> John, Less than a year ago, I decided to convert an access application to .Net. Within one day, I had a working prototype in both VB.Net and C#.Net. It was extremely easy. You are right in that the combo changes the data set which in turn affects all controls linked to it. Just for kicks, I also bought Borland C++ and did the same thing (within a day). My conclusion is that all the major tools these days are offering click and create applications. It's just a matter of picking the technology you think is most marketable. I don't think you can go wrong in learning .Net. I'm still torn as to what technology to pick (although the next version of .Net is coming out in April and is just a $29 upgrade for previous .Net owners and includes the capability to make Pocket PC.Net applications). I'm very interested in discussing the techniques developers are using to convert Access applications to .Net. Hoping to find intelligent useful discussion on .Net, Scott Marcus -----Original Message----- From: John W. Colby [mailto:jcolby at colbyconsulting.com] Sent: Tuesday, February 25, 2003 8:32 PM To: AccessD Cc: AccessD - VBA Subject: [dba-VB] OT: .NET - Data grid syncs to combo I have moved my billing database BE to sql server, hooked up my existing Access FE and continue to use that as I play with the data in .Net. In the meantime, in VB.Net I created a bound form last night (or I think it's bound anyway, not positive). It was using an OLEConnection, which tonight I switched to an SQL connection. It's supposed to be faster. The form simply displays the state table (all fields) in a data grid. You really can't get much simpler than that, though I suppose for something like a state table it would suffice. I decided to try and figure out how to use a combo box to select a record in the data grid. Dragged and dropped a combo to the form, hooked the datasource property to the same data source I was using for the form / data grid. Set the display member (the field displayed) to ST_Abrev (the 2 char code), and the value member (the PK of the table) to ST_ID (the PK of the table). Opened the form, selected the state in the combo and the data grid moved the record selector to that state. Man was THAT easy! So the combination of everything allows the combo to just act as a record selector without all of the code required in Access. Not knowing exactly what is happening, I have to assume that the combo selecting something causes a record selector pointer in the data set object to point somewhere. Since the data grid is using the same data set object, the data grid displays the newly selected record. Just a guess of course. This stuff is way over my head. But so easy (if I just understood what I was doing). Cool beans man! John W. Colby Colby Consulting www.ColbyConsulting.com ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jcolby at colbyconsulting.com Wed Feb 26 08:48:45 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Wed, 26 Feb 2003 09:48:45 -0500 Subject: [dba-VB] OT: .NET - Data grid syncs to combo In-Reply-To: <768A0EA6FF8CB34FA522978966E5D52E559D14@bwam02msx.ae.ge.com> Message-ID: Marcus, I started programming in the early 80s and in the late 80s ended up in Turbo Pascal which went OO. It was extremely powerful (for the day) yet strongly typed unlike the C languages of the day. I purchased all of the Borland toolboxes, the application framework etc., bought books and really got into the whole inheritance thing I worked in that until I moved to Access in the early 90s. While Access was a huge step up in drag and drop design functionality, and radically different (and extremely powerful) in the use of the event driven paradigm, it was a huge step backwards on the OO side since it had nothing at all that even remotely resembled inheritance. .Net is almost like old home week. It is a highly structure system, with a huge base framework that provides instant functionality like I have never seen before, with true inheritance, with this new XML thingy built right in, with access to data from anywhere. The biggest problem I foresee is simply that the vast scope makes learning it a chore. But is so incredibly powerful, it is simply amazing. I was reading a tech paper last night where they built up XML docs in a word processor, saved them to a file (just for demo purposes), then simply used a built in property of a built in framework class to load the file and bind to that data. But not just bind as we know it. They bound the data to properties of the form. Any property of any control (and forms inherit from the control class so I'm told) can be bound to data. Which makes possible things like fore color or back color or font a property of the record. Painless storage of size / location of forms. Painless user modification and storage of color preferences. If you can imagine it, you can store it in a table and drive it from there. But not just tables. The objects that actually load and expose the data can use XML as easily as they can use tables. They can use arrays. The arrays can be simple arrays of values, or arrays of objects - CLASSES for example, and you can be binding a control property to a property of the class. This stuff is truly awesome. Built in collection functionality for stacks, queues, arrays that you can just dynamically add new members to (not to mention your simple collection). And anything can be sub classed to add your own functionality. Not just interface inheritance, but true implementation inheritance. Do you want a collection that stores an object, with built in checking to prevent storing anything but that object? Just subclass the collection class and over ride the .add method, typing the object input parameter. Done! As can be seen, I am truly psyched about this thing. I did a little programming in VB (I wish it had been more now) but it was so difficult to get at data (and I do databases) so it just didn't offer enough to make it worth the switch. .Net on the other hand is an order of magnitude more powerful, and getting at data is second nature. And as if all that isn't enough, you can pick your language. Amazing stuff. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Marcus, Scott (GEAE, RHI Consulting) Sent: Wednesday, February 26, 2003 8:10 AM To: 'dba-vb at databaseadvisors.com' Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo John, Less than a year ago, I decided to convert an access application to .Net. Within one day, I had a working prototype in both VB.Net and C#.Net. It was extremely easy. You are right in that the combo changes the data set which in turn affects all controls linked to it. Just for kicks, I also bought Borland C++ and did the same thing (within a day). My conclusion is that all the major tools these days are offering click and create applications. It's just a matter of picking the technology you think is most marketable. I don't think you can go wrong in learning .Net. I'm still torn as to what technology to pick (although the next version of .Net is coming out in April and is just a $29 upgrade for previous .Net owners and includes the capability to make Pocket PC.Net applications). I'm very interested in discussing the techniques developers are using to convert Access applications to .Net. Hoping to find intelligent useful discussion on .Net, Scott Marcus -----Original Message----- From: John W. Colby [mailto:jcolby at colbyconsulting.com] Sent: Tuesday, February 25, 2003 8:32 PM To: AccessD Cc: AccessD - VBA Subject: [dba-VB] OT: .NET - Data grid syncs to combo I have moved my billing database BE to sql server, hooked up my existing Access FE and continue to use that as I play with the data in .Net. In the meantime, in VB.Net I created a bound form last night (or I think it's bound anyway, not positive). It was using an OLEConnection, which tonight I switched to an SQL connection. It's supposed to be faster. The form simply displays the state table (all fields) in a data grid. You really can't get much simpler than that, though I suppose for something like a state table it would suffice. I decided to try and figure out how to use a combo box to select a record in the data grid. Dragged and dropped a combo to the form, hooked the datasource property to the same data source I was using for the form / data grid. Set the display member (the field displayed) to ST_Abrev (the 2 char code), and the value member (the PK of the table) to ST_ID (the PK of the table). Opened the form, selected the state in the combo and the data grid moved the record selector to that state. Man was THAT easy! So the combination of everything allows the combo to just act as a record selector without all of the code required in Access. Not knowing exactly what is happening, I have to assume that the combo selecting something causes a record selector pointer in the data set object to point somewhere. Since the data grid is using the same data set object, the data grid displays the newly selected record. Just a guess of course. This stuff is way over my head. But so easy (if I just understood what I was doing). Cool beans man! John W. Colby Colby Consulting www.ColbyConsulting.com ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 5100 bytes Desc: not available URL: From scott.marcus at ae.ge.com Wed Feb 26 09:31:45 2003 From: scott.marcus at ae.ge.com (Marcus, Scott (GEAE, RHI Consulting)) Date: Wed, 26 Feb 2003 10:31:45 -0500 Subject: [dba-VB] OT: .NET - Data grid syncs to combo Message-ID: <768A0EA6FF8CB34FA522978966E5D52E559D15@bwam02msx.ae.ge.com> John, One of the issues that I know I will run into is that my clients are going to want top see all of this data (like Access does...looks very Excel like...my clients are very Excel savy) in a data grid. Previous versions of VB had limited built in data grid capabilities (I don't want to spend another $1K on 3rd party tools). If the data grid is alot closer to what Access provides that would be great. I haven't messed much with .Net since my initial "playing around" a year ago, but I do need to get heavily into it. Any input on the data grid capabilities? Scott Marcus > -----Original Message----- > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > Sent: Wednesday, February 26, 2003 9:49 AM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > Marcus, > > I started programming in the early 80s and in the late 80s ended up in Turbo > Pascal which went OO. It was extremely powerful (for the day) yet strongly > typed unlike the C languages of the day. I purchased all of the Borland > toolboxes, the application framework etc., bought books and really got into > the whole inheritance thing > > I worked in that until I moved to Access in the early 90s. While Access was a > huge step up in drag and drop design functionality, and radically different > (and extremely powerful) in the use of the event driven paradigm, it was a > huge step backwards on the OO side since it had nothing at all that even > remotely resembled inheritance. > > .Net is almost like old home week. It is a highly structure system, with a > huge base framework that provides instant functionality like I have never seen > before, with true inheritance, with this new XML thingy built right in, with > access to data from anywhere. The biggest problem I foresee is simply that > the vast scope makes learning it a chore. But is so incredibly powerful, it > is simply amazing. > > I was reading a tech paper last night where they built up XML docs in a word > processor, saved them to a file (just for demo purposes), then simply used a > built in property of a built in framework class to load the file and bind to > that data. But not just bind as we know it. They bound the data to > properties of the form. Any property of any control (and forms inherit from > the control class so I'm told) can be bound to data. Which makes possible > things like fore color or back color or font a property of the record. > Painless storage of size / location of forms. Painless user modification and > storage of color preferences. If you can imagine it, you can store it in a > table and drive it from there. > > But not just tables. The objects that actually load and expose the data can > use XML as easily as they can use tables. They can use arrays. The arrays > can be simple arrays of values, or arrays of objects - CLASSES for example, > and you can be binding a control property to a property of the class. > > This stuff is truly awesome. Built in collection functionality for stacks, > queues, arrays that you can just dynamically add new members to (not to > mention your simple collection). And anything can be sub classed to add your > own functionality. Not just interface inheritance, but true implementation > inheritance. Do you want a collection that stores an object, with built in > checking to prevent storing anything but that object? Just subclass the > collection class and over ride the .add method, typing the object input > parameter. Done! > > As can be seen, I am truly psyched about this thing. I did a little > programming in VB (I wish it had been more now) but it was so difficult to get > at data (and I do databases) so it just didn't offer enough to make it worth > the switch. .Net on the other hand is an order of magnitude more powerful, > and getting at data is second nature. > > And as if all that isn't enough, you can pick your language. > > Amazing stuff. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: dba-vb-admin at databaseadvisors.com > [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Marcus, Scott > (GEAE, RHI Consulting) > Sent: Wednesday, February 26, 2003 8:10 AM > To: 'dba-vb at databaseadvisors.com' > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > John, > > Less than a year ago, I decided to convert an access application to .Net. > Within > one day, I had a working prototype in both VB.Net and C#.Net. It was extremely > easy. You are right in that the combo changes the data set which in turn > affects > all controls linked to it. Just for kicks, I also bought Borland C++ and did > the > same thing (within a day). > > My conclusion is that all the major tools these days are offering click and > create applications. It's just a matter of picking the technology you think is > most marketable. I don't think you can go wrong in learning .Net. I'm still > torn > as to what technology to pick (although the next version of .Net is coming out > in April and is just a $29 upgrade for previous .Net owners and includes the > capability to make Pocket PC.Net applications). > > I'm very interested in discussing the techniques developers are using to > convert > Access applications to .Net. > > Hoping to find intelligent useful discussion on .Net, > > Scott Marcus > > -----Original Message----- > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > Sent: Tuesday, February 25, 2003 8:32 PM > To: AccessD > Cc: AccessD - VBA > Subject: [dba-VB] OT: .NET - Data grid syncs to combo > > > I have moved my billing database BE to sql server, hooked up my existing > Access FE and continue to use that as I play with the data in .Net. > > In the meantime, in VB.Net I created a bound form last night (or I think > it's bound anyway, not positive). It was using an OLEConnection, which > tonight I switched to an SQL connection. It's supposed to be faster. The > form simply displays the state table (all fields) in a data grid. You > really can't get much simpler than that, though I suppose for something like > a state table it would suffice. > > I decided to try and figure out how to use a combo box to select a record in > the data grid. Dragged and dropped a combo to the form, hooked the > datasource property to the same data source I was using for the form / data > grid. Set the display member (the field displayed) to ST_Abrev (the 2 char > code), and the value member (the PK of the table) to ST_ID (the PK of the > table). Opened the form, selected the state in the combo and the data grid > moved the record selector to that state. > > Man was THAT easy! So the combination of everything allows the combo to > just act as a record selector without all of the code required in Access. > Not knowing exactly what is happening, I have to assume that the combo > selecting something causes a record selector pointer in the data set object > to point somewhere. Since the data grid is using the same data set object, > the data grid displays the newly selected record. > > Just a guess of course. This stuff is way over my head. > > But so easy (if I just understood what I was doing). > > Cool beans man! > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > ---------------------------------------------------- > Is email taking over your day? Manage your time with eMailBoss. > Try it free! http://www.eMailBoss.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > > > ---------------------------------------------------- > Is email taking over your day? Manage your time with eMailBoss. > Try it free! http://www.eMailBoss.com From jcolby at colbyconsulting.com Wed Feb 26 09:41:23 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Wed, 26 Feb 2003 10:41:23 -0500 Subject: [dba-VB] OT: .NET - Data grid syncs to combo In-Reply-To: <768A0EA6FF8CB34FA522978966E5D52E559D15@bwam02msx.ae.ge.com> Message-ID: I don't use the data grid in Access. I was put off by the potential problems of users changing the columns till one disappeared (and the support calls that ensue). I can tell you that the data grid looks similar to Access' form is switched to datasheet. The biggest difference is that if you expose the column heading, you can click on the heading and it sorts on that column. Click again and it sorts in reverse order. I am not fluent enough in data grids in either technology to tell you much I'm afraid. What capabilities are you looking for? John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Marcus, Scott (GEAE, RHI Consulting) Sent: Wednesday, February 26, 2003 10:32 AM To: 'dba-vb at databaseadvisors.com' Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo John, One of the issues that I know I will run into is that my clients are going to want top see all of this data (like Access does...looks very Excel like...my clients are very Excel savy) in a data grid. Previous versions of VB had limited built in data grid capabilities (I don't want to spend another $1K on 3rd party tools). If the data grid is alot closer to what Access provides that would be great. I haven't messed much with .Net since my initial "playing around" a year ago, but I do need to get heavily into it. Any input on the data grid capabilities? Scott Marcus > -----Original Message----- > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > Sent: Wednesday, February 26, 2003 9:49 AM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > Marcus, > > I started programming in the early 80s and in the late 80s ended up in Turbo > Pascal which went OO. It was extremely powerful (for the day) yet strongly > typed unlike the C languages of the day. I purchased all of the Borland > toolboxes, the application framework etc., bought books and really got into > the whole inheritance thing > > I worked in that until I moved to Access in the early 90s. While Access was a > huge step up in drag and drop design functionality, and radically different > (and extremely powerful) in the use of the event driven paradigm, it was a > huge step backwards on the OO side since it had nothing at all that even > remotely resembled inheritance. > > .Net is almost like old home week. It is a highly structure system, with a > huge base framework that provides instant functionality like I have never seen > before, with true inheritance, with this new XML thingy built right in, with > access to data from anywhere. The biggest problem I foresee is simply that > the vast scope makes learning it a chore. But is so incredibly powerful, it > is simply amazing. > > I was reading a tech paper last night where they built up XML docs in a word > processor, saved them to a file (just for demo purposes), then simply used a > built in property of a built in framework class to load the file and bind to > that data. But not just bind as we know it. They bound the data to > properties of the form. Any property of any control (and forms inherit from > the control class so I'm told) can be bound to data. Which makes possible > things like fore color or back color or font a property of the record. > Painless storage of size / location of forms. Painless user modification and > storage of color preferences. If you can imagine it, you can store it in a > table and drive it from there. > > But not just tables. The objects that actually load and expose the data can > use XML as easily as they can use tables. They can use arrays. The arrays > can be simple arrays of values, or arrays of objects - CLASSES for example, > and you can be binding a control property to a property of the class. > > This stuff is truly awesome. Built in collection functionality for stacks, > queues, arrays that you can just dynamically add new members to (not to > mention your simple collection). And anything can be sub classed to add your > own functionality. Not just interface inheritance, but true implementation > inheritance. Do you want a collection that stores an object, with built in > checking to prevent storing anything but that object? Just subclass the > collection class and over ride the .add method, typing the object input > parameter. Done! > > As can be seen, I am truly psyched about this thing. I did a little > programming in VB (I wish it had been more now) but it was so difficult to get > at data (and I do databases) so it just didn't offer enough to make it worth > the switch. .Net on the other hand is an order of magnitude more powerful, > and getting at data is second nature. > > And as if all that isn't enough, you can pick your language. > > Amazing stuff. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: dba-vb-admin at databaseadvisors.com > [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Marcus, Scott > (GEAE, RHI Consulting) > Sent: Wednesday, February 26, 2003 8:10 AM > To: 'dba-vb at databaseadvisors.com' > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > John, > > Less than a year ago, I decided to convert an access application to .Net. > Within > one day, I had a working prototype in both VB.Net and C#.Net. It was extremely > easy. You are right in that the combo changes the data set which in turn > affects > all controls linked to it. Just for kicks, I also bought Borland C++ and did > the > same thing (within a day). > > My conclusion is that all the major tools these days are offering click and > create applications. It's just a matter of picking the technology you think is > most marketable. I don't think you can go wrong in learning .Net. I'm still > torn > as to what technology to pick (although the next version of .Net is coming out > in April and is just a $29 upgrade for previous .Net owners and includes the > capability to make Pocket PC.Net applications). > > I'm very interested in discussing the techniques developers are using to > convert > Access applications to .Net. > > Hoping to find intelligent useful discussion on .Net, > > Scott Marcus > > -----Original Message----- > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > Sent: Tuesday, February 25, 2003 8:32 PM > To: AccessD > Cc: AccessD - VBA > Subject: [dba-VB] OT: .NET - Data grid syncs to combo > > > I have moved my billing database BE to sql server, hooked up my existing > Access FE and continue to use that as I play with the data in .Net. > > In the meantime, in VB.Net I created a bound form last night (or I think > it's bound anyway, not positive). It was using an OLEConnection, which > tonight I switched to an SQL connection. It's supposed to be faster. The > form simply displays the state table (all fields) in a data grid. You > really can't get much simpler than that, though I suppose for something like > a state table it would suffice. > > I decided to try and figure out how to use a combo box to select a record in > the data grid. Dragged and dropped a combo to the form, hooked the > datasource property to the same data source I was using for the form / data > grid. Set the display member (the field displayed) to ST_Abrev (the 2 char > code), and the value member (the PK of the table) to ST_ID (the PK of the > table). Opened the form, selected the state in the combo and the data grid > moved the record selector to that state. > > Man was THAT easy! So the combination of everything allows the combo to > just act as a record selector without all of the code required in Access. > Not knowing exactly what is happening, I have to assume that the combo > selecting something causes a record selector pointer in the data set object > to point somewhere. Since the data grid is using the same data set object, > the data grid displays the newly selected record. > > Just a guess of course. This stuff is way over my head. > > But so easy (if I just understood what I was doing). > > Cool beans man! > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > ---------------------------------------------------- > Is email taking over your day? Manage your time with eMailBoss. > Try it free! http://www.eMailBoss.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > > > ---------------------------------------------------- > Is email taking over your day? Manage your time with eMailBoss. > Try it free! http://www.eMailBoss.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 6088 bytes Desc: not available URL: From paul.hartland at fsmail.net Wed Feb 26 10:47:13 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 26 Feb 2003 16:47:13 +0000 Subject: [dba-VB] More SQL Server 7 Stored Procedure help if possible Message-ID: <20030226164713.TRTX5116.fep06-svc.ttys.com@localhost> To all, If you read my first email regarding Stored Procedure's you will know that I am quite a novice at the moment. I have a table called tblAvailabilityAll which contains fields PayrollNo and an AvailabilityCode. The Availability codes are A,N,S,H and when an employee leaves, in the first instance we need to update A,N,S,H to 1,2,3,4 accordingly. Anyone have any idea how to do this within one Stored Procedure (or is it possible in a single Stored Procedure.....??? I would be grateful fr any sample code etc... Thanks in advance Paul Hartland __________________________________________________________________________ Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month after that. For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890 From paul.hartland at fsmail.net Wed Feb 26 10:47:13 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 26 Feb 2003 16:47:13 +0000 Subject: [dba-VB] [dba-SQLServer]More SQL Server 7 Stored Procedure help if possible Message-ID: <20030226164713.TRTX5116.fep06-svc.ttys.com@localhost> To all, If you read my first email regarding Stored Procedure's you will know that I am quite a novice at the moment. I have a table called tblAvailabilityAll which contains fields PayrollNo and an AvailabilityCode. The Availability codes are A,N,S,H and when an employee leaves, in the first instance we need to update A,N,S,H to 1,2,3,4 accordingly. Anyone have any idea how to do this within one Stored Procedure (or is it possible in a single Stored Procedure.....??? I would be grateful fr any sample code etc... Thanks in advance Paul Hartland __________________________________________________________________________ Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month after that. For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890 _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From scott.marcus at ae.ge.com Wed Feb 26 11:14:17 2003 From: scott.marcus at ae.ge.com (Marcus, Scott (GEAE, RHI Consulting)) Date: Wed, 26 Feb 2003 12:14:17 -0500 Subject: [dba-VB] OT: .NET - Data grid syncs to combo Message-ID: <768A0EA6FF8CB34FA522978966E5D52E559D16@bwam02msx.ae.ge.com> John, I'm looking at the sorting capabilities, the resize(both height and width) capabilities, drag and drop column ordering, and data editing within the cell. This may all be there, I just haven't dug into it yet. I also need to be able to turn those features off and on (Access doesn't really have that capability). Other big features that would push it over the top are: a query designer on par with Access, sub forms and reports, continuous forms, and better reporting capabilities. I pretty much want the capabilities of Access in Studio .Net. Again, all this can be acomplished with 3rd party tools or enough time to design your own. That extra cost to get Studio up to par with Access (interface design wise) with 3rd party tools has been the killer for me. If Microsoft made a tool that had the power of Studio .Net, the interface capabilities of Access, the query designer of Access, and able to complie like Studio .Net does that would be "The Tool" to have. The compiling issue (Studio not offering a true compile) is a debate I'd rather not get into, I just HATE the Access runtime. Maybe they could offer something like "Studio .Net Access interface add-in". Now that I would purchase. Scott Marcus > -----Original Message----- > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > Sent: Wednesday, February 26, 2003 10:41 AM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > I don't use the data grid in Access. I was put off by the potential problems > of users changing the columns till one disappeared (and the support calls that > ensue). > > I can tell you that the data grid looks similar to Access' form is switched to > datasheet. The biggest difference is that if you expose the column heading, > you can click on the heading and it sorts on that column. Click again and it > sorts in reverse order. > > I am not fluent enough in data grids in either technology to tell you much I'm > afraid. What capabilities are you looking for? > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: dba-vb-admin at databaseadvisors.com > [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Marcus, Scott > (GEAE, RHI Consulting) > Sent: Wednesday, February 26, 2003 10:32 AM > To: 'dba-vb at databaseadvisors.com' > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > John, > > One of the issues that I know I will run into is that my clients are going to > want top see all of this data (like Access does...looks very Excel like...my > clients are very Excel savy) in a data grid. Previous versions of VB had > limited > built in data grid capabilities (I don't want to spend another $1K on 3rd > party > tools). If the data grid is alot closer to what Access provides that would be > great. I haven't messed much with .Net since my initial "playing around" a > year > ago, but I do need to get heavily into it. Any input on the data grid > capabilities? > > Scott Marcus > > > > -----Original Message----- > > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > > Sent: Wednesday, February 26, 2003 9:49 AM > > To: dba-vb at databaseadvisors.com > > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > > Marcus, > > > > I started programming in the early 80s and in the late 80s ended up in Turbo > > Pascal which went OO. It was extremely powerful (for the day) yet strongly > > typed unlike the C languages of the day. I purchased all of the Borland > > toolboxes, the application framework etc., bought books and really got into > > the whole inheritance thing > > > > I worked in that until I moved to Access in the early 90s. While Access was > a > > huge step up in drag and drop design functionality, and radically different > > (and extremely powerful) in the use of the event driven paradigm, it was a > > huge step backwards on the OO side since it had nothing at all that even > > remotely resembled inheritance. > > > > .Net is almost like old home week. It is a highly structure system, with a > > huge base framework that provides instant functionality like I have never > seen > > before, with true inheritance, with this new XML thingy built right in, with > > access to data from anywhere. The biggest problem I foresee is simply that > > the vast scope makes learning it a chore. But is so incredibly powerful, it > > is simply amazing. > > > > I was reading a tech paper last night where they built up XML docs in a word > > processor, saved them to a file (just for demo purposes), then simply used a > > built in property of a built in framework class to load the file and bind to > > that data. But not just bind as we know it. They bound the data to > > properties of the form. Any property of any control (and forms inherit from > > the control class so I'm told) can be bound to data. Which makes possible > > things like fore color or back color or font a property of the record. > > Painless storage of size / location of forms. Painless user modification > and > > storage of color preferences. If you can imagine it, you can store it in a > > table and drive it from there. > > > > But not just tables. The objects that actually load and expose the data can > > use XML as easily as they can use tables. They can use arrays. The arrays > > can be simple arrays of values, or arrays of objects - CLASSES for example, > > and you can be binding a control property to a property of the class. > > > > This stuff is truly awesome. Built in collection functionality for stacks, > > queues, arrays that you can just dynamically add new members to (not to > > mention your simple collection). And anything can be sub classed to add > your > > own functionality. Not just interface inheritance, but true implementation > > inheritance. Do you want a collection that stores an object, with built in > > checking to prevent storing anything but that object? Just subclass the > > collection class and over ride the .add method, typing the object input > > parameter. Done! > > > > As can be seen, I am truly psyched about this thing. I did a little > > programming in VB (I wish it had been more now) but it was so difficult to > get > > at data (and I do databases) so it just didn't offer enough to make it worth > > the switch. .Net on the other hand is an order of magnitude more powerful, > > and getting at data is second nature. > > > > And as if all that isn't enough, you can pick your language. > > > > Amazing stuff. > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > -----Original Message----- > > From: dba-vb-admin at databaseadvisors.com > > [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Marcus, Scott > > (GEAE, RHI Consulting) > > Sent: Wednesday, February 26, 2003 8:10 AM > > To: 'dba-vb at databaseadvisors.com' > > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > > > > John, > > > > Less than a year ago, I decided to convert an access application to .Net. > > Within > > one day, I had a working prototype in both VB.Net and C#.Net. It was > extremely > > easy. You are right in that the combo changes the data set which in turn > > affects > > all controls linked to it. Just for kicks, I also bought Borland C++ and did > > the > > same thing (within a day). > > > > My conclusion is that all the major tools these days are offering click and > > create applications. It's just a matter of picking the technology you think > is > > most marketable. I don't think you can go wrong in learning .Net. I'm still > > torn > > as to what technology to pick (although the next version of .Net is coming > out > > in April and is just a $29 upgrade for previous .Net owners and includes the > > capability to make Pocket PC.Net applications). > > > > I'm very interested in discussing the techniques developers are using to > > convert > > Access applications to .Net. > > > > Hoping to find intelligent useful discussion on .Net, > > > > Scott Marcus > > > > -----Original Message----- > > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > > Sent: Tuesday, February 25, 2003 8:32 PM > > To: AccessD > > Cc: AccessD - VBA > > Subject: [dba-VB] OT: .NET - Data grid syncs to combo > > > > > > I have moved my billing database BE to sql server, hooked up my existing > > Access FE and continue to use that as I play with the data in .Net. > > > > In the meantime, in VB.Net I created a bound form last night (or I think > > it's bound anyway, not positive). It was using an OLEConnection, which > > tonight I switched to an SQL connection. It's supposed to be faster. The > > form simply displays the state table (all fields) in a data grid. You > > really can't get much simpler than that, though I suppose for something like > > a state table it would suffice. > > > > I decided to try and figure out how to use a combo box to select a record in > > the data grid. Dragged and dropped a combo to the form, hooked the > > datasource property to the same data source I was using for the form / data > > grid. Set the display member (the field displayed) to ST_Abrev (the 2 char > > code), and the value member (the PK of the table) to ST_ID (the PK of the > > table). Opened the form, selected the state in the combo and the data grid > > moved the record selector to that state. > > > > Man was THAT easy! So the combination of everything allows the combo to > > just act as a record selector without all of the code required in Access. > > Not knowing exactly what is happening, I have to assume that the combo > > selecting something causes a record selector pointer in the data set object > > to point somewhere. Since the data grid is using the same data set object, > > the data grid displays the newly selected record. > > > > Just a guess of course. This stuff is way over my head. > > > > But so easy (if I just understood what I was doing). > > > > Cool beans man! > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > ---------------------------------------------------- > > Is email taking over your day? Manage your time with eMailBoss. > > Try it free! http://www.eMailBoss.com > > > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > > > > > > > ---------------------------------------------------- > > Is email taking over your day? Manage your time with eMailBoss. > > Try it free! http://www.eMailBoss.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > > > ---------------------------------------------------- > Is email taking over your day? Manage your time with eMailBoss. > Try it free! http://www.eMailBoss.com From jcolby at colbyconsulting.com Wed Feb 26 11:36:55 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Wed, 26 Feb 2003 12:36:55 -0500 Subject: [dba-VB] OT: .NET - Data grid syncs to combo In-Reply-To: <768A0EA6FF8CB34FA522978966E5D52E559D16@bwam02msx.ae.ge.com> Message-ID: The column is resizable by placing the cursor over the vertical line in the column header and dragging it. The individual row is resizable - same way. Resizes just that row though, not all rows. The column is sortable by clicking on the column header. As for the rest, I think you are dreaming. This is not Access.net, this is VB.net. OTOH, they claim you drop ANY object onto a form. If you build a "main form" with a tab control, build a "subform", and manage to place the subform on the main form then you have a subform. The master / child properties aren't there, but we all know how to set up the subform's datasource query to filter on a control on the main form. I understand completely the desire to have Access' RAD tools for database specific stuff. I can't say for sure since I am new to this, but I do not think VB.net has those things you point to. OTOH it has so much else now that Access doesn't have that it becomes a push as to which is more powerful for db design. .Net's handling of classes and inheritance, data sources, XML and other very powerful tools make it a truly awesome environment. My entire objection at this point more or less boils down to "I know how to do that in Access". I will have to learn new ways to do things that are just built in to Access, but I do think that the flexibility of .NET makes it worth diving into. Whether it will entirely replace Access for my development is doubtful, at least not in the near future. I am just too fast in Access and can get entire dbs prototyped in days / weeks where it will take much longer (for now anyway) in .NET. Will that be true once I know .NET like I know Access? John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Marcus, Scott (GEAE, RHI Consulting) Sent: Wednesday, February 26, 2003 12:14 PM To: 'dba-vb at databaseadvisors.com' Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo John, I'm looking at the sorting capabilities, the resize(both height and width) capabilities, drag and drop column ordering, and data editing within the cell. This may all be there, I just haven't dug into it yet. I also need to be able to turn those features off and on (Access doesn't really have that capability). Other big features that would push it over the top are: a query designer on par with Access, sub forms and reports, continuous forms, and better reporting capabilities. I pretty much want the capabilities of Access in Studio .Net. Again, all this can be acomplished with 3rd party tools or enough time to design your own. That extra cost to get Studio up to par with Access (interface design wise) with 3rd party tools has been the killer for me. If Microsoft made a tool that had the power of Studio .Net, the interface capabilities of Access, the query designer of Access, and able to complie like Studio .Net does that would be "The Tool" to have. The compiling issue (Studio not offering a true compile) is a debate I'd rather not get into, I just HATE the Access runtime. Maybe they could offer something like "Studio .Net Access interface add-in". Now that I would purchase. Scott Marcus > -----Original Message----- > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > Sent: Wednesday, February 26, 2003 10:41 AM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > I don't use the data grid in Access. I was put off by the potential problems > of users changing the columns till one disappeared (and the support calls that > ensue). > > I can tell you that the data grid looks similar to Access' form is switched to > datasheet. The biggest difference is that if you expose the column heading, > you can click on the heading and it sorts on that column. Click again and it > sorts in reverse order. > > I am not fluent enough in data grids in either technology to tell you much I'm > afraid. What capabilities are you looking for? > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: dba-vb-admin at databaseadvisors.com > [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Marcus, Scott > (GEAE, RHI Consulting) > Sent: Wednesday, February 26, 2003 10:32 AM > To: 'dba-vb at databaseadvisors.com' > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > John, > > One of the issues that I know I will run into is that my clients are going to > want top see all of this data (like Access does...looks very Excel like...my > clients are very Excel savy) in a data grid. Previous versions of VB had > limited > built in data grid capabilities (I don't want to spend another $1K on 3rd > party > tools). If the data grid is alot closer to what Access provides that would be > great. I haven't messed much with .Net since my initial "playing around" a > year > ago, but I do need to get heavily into it. Any input on the data grid > capabilities? > > Scott Marcus > > > > -----Original Message----- > > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > > Sent: Wednesday, February 26, 2003 9:49 AM > > To: dba-vb at databaseadvisors.com > > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > > Marcus, > > > > I started programming in the early 80s and in the late 80s ended up in Turbo > > Pascal which went OO. It was extremely powerful (for the day) yet strongly > > typed unlike the C languages of the day. I purchased all of the Borland > > toolboxes, the application framework etc., bought books and really got into > > the whole inheritance thing > > > > I worked in that until I moved to Access in the early 90s. While Access was > a > > huge step up in drag and drop design functionality, and radically different > > (and extremely powerful) in the use of the event driven paradigm, it was a > > huge step backwards on the OO side since it had nothing at all that even > > remotely resembled inheritance. > > > > .Net is almost like old home week. It is a highly structure system, with a > > huge base framework that provides instant functionality like I have never > seen > > before, with true inheritance, with this new XML thingy built right in, with > > access to data from anywhere. The biggest problem I foresee is simply that > > the vast scope makes learning it a chore. But is so incredibly powerful, it > > is simply amazing. > > > > I was reading a tech paper last night where they built up XML docs in a word > > processor, saved them to a file (just for demo purposes), then simply used a > > built in property of a built in framework class to load the file and bind to > > that data. But not just bind as we know it. They bound the data to > > properties of the form. Any property of any control (and forms inherit from > > the control class so I'm told) can be bound to data. Which makes possible > > things like fore color or back color or font a property of the record. > > Painless storage of size / location of forms. Painless user modification > and > > storage of color preferences. If you can imagine it, you can store it in a > > table and drive it from there. > > > > But not just tables. The objects that actually load and expose the data can > > use XML as easily as they can use tables. They can use arrays. The arrays > > can be simple arrays of values, or arrays of objects - CLASSES for example, > > and you can be binding a control property to a property of the class. > > > > This stuff is truly awesome. Built in collection functionality for stacks, > > queues, arrays that you can just dynamically add new members to (not to > > mention your simple collection). And anything can be sub classed to add > your > > own functionality. Not just interface inheritance, but true implementation > > inheritance. Do you want a collection that stores an object, with built in > > checking to prevent storing anything but that object? Just subclass the > > collection class and over ride the .add method, typing the object input > > parameter. Done! > > > > As can be seen, I am truly psyched about this thing. I did a little > > programming in VB (I wish it had been more now) but it was so difficult to > get > > at data (and I do databases) so it just didn't offer enough to make it worth > > the switch. .Net on the other hand is an order of magnitude more powerful, > > and getting at data is second nature. > > > > And as if all that isn't enough, you can pick your language. > > > > Amazing stuff. > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > -----Original Message----- > > From: dba-vb-admin at databaseadvisors.com > > [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Marcus, Scott > > (GEAE, RHI Consulting) > > Sent: Wednesday, February 26, 2003 8:10 AM > > To: 'dba-vb at databaseadvisors.com' > > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > > > > John, > > > > Less than a year ago, I decided to convert an access application to .Net. > > Within > > one day, I had a working prototype in both VB.Net and C#.Net. It was > extremely > > easy. You are right in that the combo changes the data set which in turn > > affects > > all controls linked to it. Just for kicks, I also bought Borland C++ and did > > the > > same thing (within a day). > > > > My conclusion is that all the major tools these days are offering click and > > create applications. It's just a matter of picking the technology you think > is > > most marketable. I don't think you can go wrong in learning .Net. I'm still > > torn > > as to what technology to pick (although the next version of .Net is coming > out > > in April and is just a $29 upgrade for previous .Net owners and includes the > > capability to make Pocket PC.Net applications). > > > > I'm very interested in discussing the techniques developers are using to > > convert > > Access applications to .Net. > > > > Hoping to find intelligent useful discussion on .Net, > > > > Scott Marcus > > > > -----Original Message----- > > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > > Sent: Tuesday, February 25, 2003 8:32 PM > > To: AccessD > > Cc: AccessD - VBA > > Subject: [dba-VB] OT: .NET - Data grid syncs to combo > > > > > > I have moved my billing database BE to sql server, hooked up my existing > > Access FE and continue to use that as I play with the data in .Net. > > > > In the meantime, in VB.Net I created a bound form last night (or I think > > it's bound anyway, not positive). It was using an OLEConnection, which > > tonight I switched to an SQL connection. It's supposed to be faster. The > > form simply displays the state table (all fields) in a data grid. You > > really can't get much simpler than that, though I suppose for something like > > a state table it would suffice. > > > > I decided to try and figure out how to use a combo box to select a record in > > the data grid. Dragged and dropped a combo to the form, hooked the > > datasource property to the same data source I was using for the form / data > > grid. Set the display member (the field displayed) to ST_Abrev (the 2 char > > code), and the value member (the PK of the table) to ST_ID (the PK of the > > table). Opened the form, selected the state in the combo and the data grid > > moved the record selector to that state. > > > > Man was THAT easy! So the combination of everything allows the combo to > > just act as a record selector without all of the code required in Access. > > Not knowing exactly what is happening, I have to assume that the combo > > selecting something causes a record selector pointer in the data set object > > to point somewhere. Since the data grid is using the same data set object, > > the data grid displays the newly selected record. > > > > Just a guess of course. This stuff is way over my head. > > > > But so easy (if I just understood what I was doing). > > > > Cool beans man! > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > ---------------------------------------------------- > > Is email taking over your day? Manage your time with eMailBoss. > > Try it free! http://www.eMailBoss.com > > > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > > > > > > > ---------------------------------------------------- > > Is email taking over your day? Manage your time with eMailBoss. > > Try it free! http://www.eMailBoss.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > > > ---------------------------------------------------- > Is email taking over your day? Manage your time with eMailBoss. > Try it free! http://www.eMailBoss.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 7920 bytes Desc: not available URL: From scott.marcus at ae.ge.com Wed Feb 26 11:51:46 2003 From: scott.marcus at ae.ge.com (Marcus, Scott (GEAE, RHI Consulting)) Date: Wed, 26 Feb 2003 12:51:46 -0500 Subject: [dba-VB] OT: .NET - Data grid syncs to combo Message-ID: <768A0EA6FF8CB34FA522978966E5D52E559D19@bwam02msx.ae.ge.com> John, Yes, I'm dreaming. But I do think that the Studio .Net platform is moving in the direction of "Access" type of RAD design. Those features I mentioned are why I use Access(in addition to my client's requirements). I was excited about Studio .NET and think most these capabilities are present. How much is built in and how much is 3rd party will be interesting to learn. Now to find the time to learn it well enough to replace Access as my primary skill... To answer your question... From what I know of you (which isn't alot...just what you post), I think it will be true once you know .Net like Access. Scott Marcus > -----Original Message----- > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > Sent: Wednesday, February 26, 2003 12:37 PM > To: dba-vb at databaseadvisors.com > Cc: AccessD > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > The column is resizable by placing the cursor over the vertical line in the > column header and dragging it. The individual row is resizable - same way. > Resizes just that row though, not all rows. The column is sortable by > clicking on the column header. > > As for the rest, I think you are dreaming. This is not Access.net, this is > VB.net. OTOH, they claim you drop ANY object onto a form. If you build a > "main form" with a tab control, build a "subform", and manage to place the > subform on the main form then you have a subform. The master / child > properties aren't there, but we all know how to set up the subform's > datasource query to filter on a control on the main form. > > I understand completely the desire to have Access' RAD tools for database > specific stuff. I can't say for sure since I am new to this, but I do not > think VB.net has those things you point to. OTOH it has so much else now that > Access doesn't have that it becomes a push as to which is more powerful for db > design. .Net's handling of classes and inheritance, data sources, XML and > other very powerful tools make it a truly awesome environment. > > My entire objection at this point more or less boils down to "I know how to do > that in Access". I will have to learn new ways to do things that are just > built in to Access, but I do think that the flexibility of .NET makes it worth > diving into. Whether it will entirely replace Access for my development is > doubtful, at least not in the near future. I am just too fast in Access and > can get entire dbs prototyped in days / weeks where it will take much longer > (for now anyway) in .NET. > > Will that be true once I know .NET like I know Access? > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: dba-vb-admin at databaseadvisors.com > [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Marcus, Scott > (GEAE, RHI Consulting) > Sent: Wednesday, February 26, 2003 12:14 PM > To: 'dba-vb at databaseadvisors.com' > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > John, > > I'm looking at the sorting capabilities, the resize(both height and width) > capabilities, drag and drop column ordering, and data editing within the cell. > This may all be there, I just haven't dug into it yet. I also need to be able > to > turn those features off and on (Access doesn't really have that capability). > Other big features that would push it over the top are: a query designer on > par > with Access, sub forms and reports, continuous forms, and better reporting > capabilities. I pretty much want the capabilities of Access in Studio .Net. > Again, all this can be acomplished with 3rd party tools or enough time to > design > your own. That extra cost to get Studio up to par with Access (interface > design > wise) with 3rd party tools has been the killer for me. > > If Microsoft made a tool that had the power of Studio .Net, the interface > capabilities of Access, the query designer of Access, and able to complie like > Studio .Net does that would be "The Tool" to have. The compiling issue (Studio > not offering a true compile) is a debate I'd rather not get into, I just HATE > the Access runtime. Maybe they could offer something like "Studio .Net Access > interface add-in". Now that I would purchase. > > Scott Marcus > > > -----Original Message----- > > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > > Sent: Wednesday, February 26, 2003 10:41 AM > > To: dba-vb at databaseadvisors.com > > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > > I don't use the data grid in Access. I was put off by the potential > problems > > of users changing the columns till one disappeared (and the support calls > that > > ensue). > > > > I can tell you that the data grid looks similar to Access' form is switched > to > > datasheet. The biggest difference is that if you expose the column heading, > > you can click on the heading and it sorts on that column. Click again and > it > > sorts in reverse order. > > > > I am not fluent enough in data grids in either technology to tell you much > I'm > > afraid. What capabilities are you looking for? > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > -----Original Message----- > > From: dba-vb-admin at databaseadvisors.com > > [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Marcus, Scott > > (GEAE, RHI Consulting) > > Sent: Wednesday, February 26, 2003 10:32 AM > > To: 'dba-vb at databaseadvisors.com' > > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > > > > John, > > > > One of the issues that I know I will run into is that my clients are going > to > > want top see all of this data (like Access does...looks very Excel like...my > > clients are very Excel savy) in a data grid. Previous versions of VB had > > limited > > built in data grid capabilities (I don't want to spend another $1K on 3rd > > party > > tools). If the data grid is alot closer to what Access provides that would > be > > great. I haven't messed much with .Net since my initial "playing around" a > > year > > ago, but I do need to get heavily into it. Any input on the data grid > > capabilities? > > > > Scott Marcus > > > > > > > -----Original Message----- > > > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > > > Sent: Wednesday, February 26, 2003 9:49 AM > > > To: dba-vb at databaseadvisors.com > > > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > > > > Marcus, > > > > > > I started programming in the early 80s and in the late 80s ended up in > Turbo > > > Pascal which went OO. It was extremely powerful (for the day) yet > strongly > > > typed unlike the C languages of the day. I purchased all of the Borland > > > toolboxes, the application framework etc., bought books and really got > into > > > the whole inheritance thing > > > > > > I worked in that until I moved to Access in the early 90s. While Access > was > > a > > > huge step up in drag and drop design functionality, and radically > different > > > (and extremely powerful) in the use of the event driven paradigm, it was a > > > huge step backwards on the OO side since it had nothing at all that even > > > remotely resembled inheritance. > > > > > > .Net is almost like old home week. It is a highly structure system, with > a > > > huge base framework that provides instant functionality like I have never > > seen > > > before, with true inheritance, with this new XML thingy built right in, > with > > > access to data from anywhere. The biggest problem I foresee is simply > that > > > the vast scope makes learning it a chore. But is so incredibly powerful, > it > > > is simply amazing. > > > > > > I was reading a tech paper last night where they built up XML docs in a > word > > > processor, saved them to a file (just for demo purposes), then simply used > a > > > built in property of a built in framework class to load the file and bind > to > > > that data. But not just bind as we know it. They bound the data to > > > properties of the form. Any property of any control (and forms inherit > from > > > the control class so I'm told) can be bound to data. Which makes possible > > > things like fore color or back color or font a property of the record. > > > Painless storage of size / location of forms. Painless user modification > > and > > > storage of color preferences. If you can imagine it, you can store it in > a > > > table and drive it from there. > > > > > > But not just tables. The objects that actually load and expose the data > can > > > use XML as easily as they can use tables. They can use arrays. The > arrays > > > can be simple arrays of values, or arrays of objects - CLASSES for > example, > > > and you can be binding a control property to a property of the class. > > > > > > This stuff is truly awesome. Built in collection functionality for > stacks, > > > queues, arrays that you can just dynamically add new members to (not to > > > mention your simple collection). And anything can be sub classed to add > > your > > > own functionality. Not just interface inheritance, but true > implementation > > > inheritance. Do you want a collection that stores an object, with built > in > > > checking to prevent storing anything but that object? Just subclass the > > > collection class and over ride the .add method, typing the object input > > > parameter. Done! > > > > > > As can be seen, I am truly psyched about this thing. I did a little > > > programming in VB (I wish it had been more now) but it was so difficult to > > get > > > at data (and I do databases) so it just didn't offer enough to make it > worth > > > the switch. .Net on the other hand is an order of magnitude more > powerful, > > > and getting at data is second nature. > > > > > > And as if all that isn't enough, you can pick your language. > > > > > > Amazing stuff. > > > > > > John W. Colby > > > Colby Consulting > > > www.ColbyConsulting.com > > > > > > -----Original Message----- > > > From: dba-vb-admin at databaseadvisors.com > > > [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Marcus, Scott > > > (GEAE, RHI Consulting) > > > Sent: Wednesday, February 26, 2003 8:10 AM > > > To: 'dba-vb at databaseadvisors.com' > > > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > > > > > > > John, > > > > > > Less than a year ago, I decided to convert an access application to .Net. > > > Within > > > one day, I had a working prototype in both VB.Net and C#.Net. It was > > extremely > > > easy. You are right in that the combo changes the data set which in turn > > > affects > > > all controls linked to it. Just for kicks, I also bought Borland C++ and > did > > > the > > > same thing (within a day). > > > > > > My conclusion is that all the major tools these days are offering click > and > > > create applications. It's just a matter of picking the technology you > think > > is > > > most marketable. I don't think you can go wrong in learning .Net. I'm > still > > > torn > > > as to what technology to pick (although the next version of .Net is coming > > out > > > in April and is just a $29 upgrade for previous .Net owners and includes > the > > > capability to make Pocket PC.Net applications). > > > > > > I'm very interested in discussing the techniques developers are using to > > > convert > > > Access applications to .Net. > > > > > > Hoping to find intelligent useful discussion on .Net, > > > > > > Scott Marcus > > > > > > -----Original Message----- > > > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > > > Sent: Tuesday, February 25, 2003 8:32 PM > > > To: AccessD > > > Cc: AccessD - VBA > > > Subject: [dba-VB] OT: .NET - Data grid syncs to combo > > > > > > > > > I have moved my billing database BE to sql server, hooked up my existing > > > Access FE and continue to use that as I play with the data in .Net. > > > > > > In the meantime, in VB.Net I created a bound form last night (or I think > > > it's bound anyway, not positive). It was using an OLEConnection, which > > > tonight I switched to an SQL connection. It's supposed to be faster. The > > > form simply displays the state table (all fields) in a data grid. You > > > really can't get much simpler than that, though I suppose for something > like > > > a state table it would suffice. > > > > > > I decided to try and figure out how to use a combo box to select a record > in > > > the data grid. Dragged and dropped a combo to the form, hooked the > > > datasource property to the same data source I was using for the form / > data > > > grid. Set the display member (the field displayed) to ST_Abrev (the 2 > char > > > code), and the value member (the PK of the table) to ST_ID (the PK of the > > > table). Opened the form, selected the state in the combo and the data > grid > > > moved the record selector to that state. > > > > > > Man was THAT easy! So the combination of everything allows the combo to > > > just act as a record selector without all of the code required in Access. > > > Not knowing exactly what is happening, I have to assume that the combo > > > selecting something causes a record selector pointer in the data set > object > > > to point somewhere. Since the data grid is using the same data set > object, > > > the data grid displays the newly selected record. > > > > > > Just a guess of course. This stuff is way over my head. > > > > > > But so easy (if I just understood what I was doing). > > > > > > Cool beans man! > > > > > > John W. Colby > > > Colby Consulting > > > www.ColbyConsulting.com > > > > > > ---------------------------------------------------- > > > Is email taking over your day? Manage your time with eMailBoss. > > > Try it free! http://www.eMailBoss.com > > > > > > > > > _______________________________________________ > > > dba-VB mailing list > > > dba-VB at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > http://www.databaseadvisors.com > > > _______________________________________________ > > > dba-VB mailing list > > > dba-VB at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > http://www.databaseadvisors.com > > > > > > > > > > > > > > > ---------------------------------------------------- > > > Is email taking over your day? Manage your time with eMailBoss. > > > Try it free! http://www.eMailBoss.com > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > > > > > > > ---------------------------------------------------- > > Is email taking over your day? Manage your time with eMailBoss. > > Try it free! http://www.eMailBoss.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > > > ---------------------------------------------------- > Is email taking over your day? Manage your time with eMailBoss. > Try it free! http://www.eMailBoss.com From mikedorism at ntelos.net Wed Feb 26 13:46:26 2003 From: mikedorism at ntelos.net (Mike and Doris Manning) Date: Wed, 26 Feb 2003 14:46:26 -0500 Subject: [dba-VB] OT: .NET - Data grid syncs to combo In-Reply-To: <768A0EA6FF8CB34FA522978966E5D52E559D16@bwam02msx.ae.ge.com> Message-ID: <000001c2ddcf$c33f0090$d5350cd8@hargrove.internal> Maybe they could offer something like "Studio .Net Access interface add-in". Now that I would purchase. Actually, it seems to already be in there... Check out the lastest edition of Access-VB-SQL Advisor at your local newstand. You can automate Access from within VB.Net via some PIAs you can download from Microsoft. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com] On Behalf Of Marcus, Scott (GEAE, RHI Consulting) Sent: Wednesday, February 26, 2003 12:14 PM To: 'dba-vb at databaseadvisors.com' Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo John, I'm looking at the sorting capabilities, the resize(both height and width) capabilities, drag and drop column ordering, and data editing within the cell. This may all be there, I just haven't dug into it yet. I also need to be able to turn those features off and on (Access doesn't really have that capability). Other big features that would push it over the top are: a query designer on par with Access, sub forms and reports, continuous forms, and better reporting capabilities. I pretty much want the capabilities of Access in Studio .Net. Again, all this can be acomplished with 3rd party tools or enough time to design your own. That extra cost to get Studio up to par with Access (interface design wise) with 3rd party tools has been the killer for me. If Microsoft made a tool that had the power of Studio .Net, the interface capabilities of Access, the query designer of Access, and able to complie like Studio .Net does that would be "The Tool" to have. The compiling issue (Studio not offering a true compile) is a debate I'd rather not get into, I just HATE the Access runtime. Maybe they could offer something like "Studio .Net Access interface add-in". Now that I would purchase. Scott Marcus > -----Original Message----- > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > Sent: Wednesday, February 26, 2003 10:41 AM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > I don't use the data grid in Access. I was put off by the potential > problems of users changing the columns till one disappeared (and the > support calls that ensue). > > I can tell you that the data grid looks similar to Access' form is > switched to datasheet. The biggest difference is that if you expose > the column heading, you can click on the heading and it sorts on that > column. Click again and it sorts in reverse order. > > I am not fluent enough in data grids in either technology to tell you > much I'm afraid. What capabilities are you looking for? > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: dba-vb-admin at databaseadvisors.com > [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Marcus, Scott > (GEAE, RHI Consulting) > Sent: Wednesday, February 26, 2003 10:32 AM > To: 'dba-vb at databaseadvisors.com' > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > John, > > One of the issues that I know I will run into is that my clients are > going to want top see all of this data (like Access does...looks very > Excel like...my clients are very Excel savy) in a data grid. Previous > versions of VB had limited built in data grid capabilities (I don't > want to spend another $1K on 3rd party > tools). If the data grid is alot closer to what Access provides that would be > great. I haven't messed much with .Net since my initial "playing around" a > year > ago, but I do need to get heavily into it. Any input on the data grid > capabilities? > > Scott Marcus > > > > -----Original Message----- > > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > > Sent: Wednesday, February 26, 2003 9:49 AM > > To: dba-vb at databaseadvisors.com > > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > > Marcus, > > > > I started programming in the early 80s and in the late 80s ended up > > in Turbo Pascal which went OO. It was extremely powerful (for the > > day) yet strongly typed unlike the C languages of the day. I > > purchased all of the Borland toolboxes, the application framework > > etc., bought books and really got into the whole inheritance thing > > > > I worked in that until I moved to Access in the early 90s. While > > Access was > a > > huge step up in drag and drop design functionality, and radically > > different (and extremely powerful) in the use of the event driven > > paradigm, it was a huge step backwards on the OO side since it had > > nothing at all that even remotely resembled inheritance. > > > > .Net is almost like old home week. It is a highly structure system, > > with a huge base framework that provides instant functionality like > > I have never > seen > > before, with true inheritance, with this new XML thingy built right > > in, with access to data from anywhere. The biggest problem I > > foresee is simply that the vast scope makes learning it a chore. > > But is so incredibly powerful, it is simply amazing. > > > > I was reading a tech paper last night where they built up XML docs > > in a word processor, saved them to a file (just for demo purposes), > > then simply used a built in property of a built in framework class > > to load the file and bind to that data. But not just bind as we > > know it. They bound the data to properties of the form. Any > > property of any control (and forms inherit from the control class so > > I'm told) can be bound to data. Which makes possible things like > > fore color or back color or font a property of the record. Painless > > storage of size / location of forms. Painless user modification > and > > storage of color preferences. If you can imagine it, you can store > > it in a table and drive it from there. > > > > But not just tables. The objects that actually load and expose the > > data can use XML as easily as they can use tables. They can use > > arrays. The arrays can be simple arrays of values, or arrays of > > objects - CLASSES for example, and you can be binding a control > > property to a property of the class. > > > > This stuff is truly awesome. Built in collection functionality for > > stacks, queues, arrays that you can just dynamically add new members > > to (not to mention your simple collection). And anything can be sub > > classed to add > your > > own functionality. Not just interface inheritance, but true > > implementation inheritance. Do you want a collection that stores an > > object, with built in checking to prevent storing anything but that > > object? Just subclass the collection class and over ride the .add > > method, typing the object input parameter. Done! > > > > As can be seen, I am truly psyched about this thing. I did a little > > programming in VB (I wish it had been more now) but it was so > > difficult to > get > > at data (and I do databases) so it just didn't offer enough to make > > it worth the switch. .Net on the other hand is an order of > > magnitude more powerful, and getting at data is second nature. > > > > And as if all that isn't enough, you can pick your language. > > > > Amazing stuff. > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > -----Original Message----- > > From: dba-vb-admin at databaseadvisors.com > > [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Marcus, Scott > > (GEAE, RHI Consulting) > > Sent: Wednesday, February 26, 2003 8:10 AM > > To: 'dba-vb at databaseadvisors.com' > > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > > > > John, > > > > Less than a year ago, I decided to convert an access application to > > .Net. Within one day, I had a working prototype in both VB.Net and > > C#.Net. It was > extremely > > easy. You are right in that the combo changes the data set which in > > turn affects all controls linked to it. Just for kicks, I also > > bought Borland C++ and did the > > same thing (within a day). > > > > My conclusion is that all the major tools these days are offering > > click and create applications. It's just a matter of picking the > > technology you think > is > > most marketable. I don't think you can go wrong in learning .Net. > > I'm still torn as to what technology to pick (although the next > > version of .Net is coming > out > > in April and is just a $29 upgrade for previous .Net owners and > > includes the capability to make Pocket PC.Net applications). > > > > I'm very interested in discussing the techniques developers are > > using to convert Access applications to .Net. > > > > Hoping to find intelligent useful discussion on .Net, > > > > Scott Marcus > > > > -----Original Message----- > > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > > Sent: Tuesday, February 25, 2003 8:32 PM > > To: AccessD > > Cc: AccessD - VBA > > Subject: [dba-VB] OT: .NET - Data grid syncs to combo > > > > > > I have moved my billing database BE to sql server, hooked up my > > existing Access FE and continue to use that as I play with the data > > in .Net. > > > > In the meantime, in VB.Net I created a bound form last night (or I > > think it's bound anyway, not positive). It was using an > > OLEConnection, which tonight I switched to an SQL connection. It's > > supposed to be faster. The form simply displays the state table > > (all fields) in a data grid. You really can't get much simpler than > > that, though I suppose for something like a state table it would > > suffice. > > > > I decided to try and figure out how to use a combo box to select a > > record in the data grid. Dragged and dropped a combo to the form, > > hooked the datasource property to the same data source I was using > > for the form / data grid. Set the display member (the field > > displayed) to ST_Abrev (the 2 char code), and the value member (the > > PK of the table) to ST_ID (the PK of the table). Opened the form, > > selected the state in the combo and the data grid moved the record > > selector to that state. > > > > Man was THAT easy! So the combination of everything allows the > > combo to just act as a record selector without all of the code > > required in Access. Not knowing exactly what is happening, I have to > > assume that the combo selecting something causes a record selector > > pointer in the data set object to point somewhere. Since the data > > grid is using the same data set object, the data grid displays the > > newly selected record. > > > > Just a guess of course. This stuff is way over my head. > > > > But so easy (if I just understood what I was doing). > > > > Cool beans man! > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > ---------------------------------------------------- > > Is email taking over your day? Manage your time with eMailBoss. Try > > it free! http://www.eMailBoss.com > > > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > > > > > > > ---------------------------------------------------- > > Is email taking over your day? Manage your time with eMailBoss. > > Try it free! http://www.eMailBoss.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > > > ---------------------------------------------------- > Is email taking over your day? Manage your time with eMailBoss. > Try it free! http://www.eMailBoss.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From scott.marcus at ae.ge.com Wed Feb 26 14:12:21 2003 From: scott.marcus at ae.ge.com (Marcus, Scott (GEAE, RHI Consulting)) Date: Wed, 26 Feb 2003 15:12:21 -0500 Subject: [dba-VB] OT: .NET - Data grid syncs to combo Message-ID: <768A0EA6FF8CB34FA522978966E5D52E559D1A@bwam02msx.ae.ge.com> Doris, I meant all the neat interface capabilities added into Studio.Net via some more framework/controls. Automation has been around for a long time. I'm more interested in developing applications that don't require installing other software and then automating it. Scott Marcus -----Original Message----- From: Mike and Doris Manning [mailto:mikedorism at ntelos.net] Sent: Wednesday, February 26, 2003 2:46 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo Maybe they could offer something like "Studio .Net Access interface add-in". Now that I would purchase. Actually, it seems to already be in there... Check out the lastest edition of Access-VB-SQL Advisor at your local newstand. You can automate Access from within VB.Net via some PIAs you can download from Microsoft. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com] On Behalf Of Marcus, Scott (GEAE, RHI Consulting) Sent: Wednesday, February 26, 2003 12:14 PM To: 'dba-vb at databaseadvisors.com' Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo John, I'm looking at the sorting capabilities, the resize(both height and width) capabilities, drag and drop column ordering, and data editing within the cell. This may all be there, I just haven't dug into it yet. I also need to be able to turn those features off and on (Access doesn't really have that capability). Other big features that would push it over the top are: a query designer on par with Access, sub forms and reports, continuous forms, and better reporting capabilities. I pretty much want the capabilities of Access in Studio .Net. Again, all this can be acomplished with 3rd party tools or enough time to design your own. That extra cost to get Studio up to par with Access (interface design wise) with 3rd party tools has been the killer for me. If Microsoft made a tool that had the power of Studio .Net, the interface capabilities of Access, the query designer of Access, and able to complie like Studio .Net does that would be "The Tool" to have. The compiling issue (Studio not offering a true compile) is a debate I'd rather not get into, I just HATE the Access runtime. Maybe they could offer something like "Studio .Net Access interface add-in". Now that I would purchase. Scott Marcus > -----Original Message----- > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > Sent: Wednesday, February 26, 2003 10:41 AM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > I don't use the data grid in Access. I was put off by the potential > problems of users changing the columns till one disappeared (and the > support calls that ensue). > > I can tell you that the data grid looks similar to Access' form is > switched to datasheet. The biggest difference is that if you expose > the column heading, you can click on the heading and it sorts on that > column. Click again and it sorts in reverse order. > > I am not fluent enough in data grids in either technology to tell you > much I'm afraid. What capabilities are you looking for? > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: dba-vb-admin at databaseadvisors.com > [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Marcus, Scott > (GEAE, RHI Consulting) > Sent: Wednesday, February 26, 2003 10:32 AM > To: 'dba-vb at databaseadvisors.com' > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > John, > > One of the issues that I know I will run into is that my clients are > going to want top see all of this data (like Access does...looks very > Excel like...my clients are very Excel savy) in a data grid. Previous > versions of VB had limited built in data grid capabilities (I don't > want to spend another $1K on 3rd party > tools). If the data grid is alot closer to what Access provides that would be > great. I haven't messed much with .Net since my initial "playing around" a > year > ago, but I do need to get heavily into it. Any input on the data grid > capabilities? > > Scott Marcus > > > > -----Original Message----- > > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > > Sent: Wednesday, February 26, 2003 9:49 AM > > To: dba-vb at databaseadvisors.com > > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > > Marcus, > > > > I started programming in the early 80s and in the late 80s ended up > > in Turbo Pascal which went OO. It was extremely powerful (for the > > day) yet strongly typed unlike the C languages of the day. I > > purchased all of the Borland toolboxes, the application framework > > etc., bought books and really got into the whole inheritance thing > > > > I worked in that until I moved to Access in the early 90s. While > > Access was > a > > huge step up in drag and drop design functionality, and radically > > different (and extremely powerful) in the use of the event driven > > paradigm, it was a huge step backwards on the OO side since it had > > nothing at all that even remotely resembled inheritance. > > > > .Net is almost like old home week. It is a highly structure system, > > with a huge base framework that provides instant functionality like > > I have never > seen > > before, with true inheritance, with this new XML thingy built right > > in, with access to data from anywhere. The biggest problem I > > foresee is simply that the vast scope makes learning it a chore. > > But is so incredibly powerful, it is simply amazing. > > > > I was reading a tech paper last night where they built up XML docs > > in a word processor, saved them to a file (just for demo purposes), > > then simply used a built in property of a built in framework class > > to load the file and bind to that data. But not just bind as we > > know it. They bound the data to properties of the form. Any > > property of any control (and forms inherit from the control class so > > I'm told) can be bound to data. Which makes possible things like > > fore color or back color or font a property of the record. Painless > > storage of size / location of forms. Painless user modification > and > > storage of color preferences. If you can imagine it, you can store > > it in a table and drive it from there. > > > > But not just tables. The objects that actually load and expose the > > data can use XML as easily as they can use tables. They can use > > arrays. The arrays can be simple arrays of values, or arrays of > > objects - CLASSES for example, and you can be binding a control > > property to a property of the class. > > > > This stuff is truly awesome. Built in collection functionality for > > stacks, queues, arrays that you can just dynamically add new members > > to (not to mention your simple collection). And anything can be sub > > classed to add > your > > own functionality. Not just interface inheritance, but true > > implementation inheritance. Do you want a collection that stores an > > object, with built in checking to prevent storing anything but that > > object? Just subclass the collection class and over ride the .add > > method, typing the object input parameter. Done! > > > > As can be seen, I am truly psyched about this thing. I did a little > > programming in VB (I wish it had been more now) but it was so > > difficult to > get > > at data (and I do databases) so it just didn't offer enough to make > > it worth the switch. .Net on the other hand is an order of > > magnitude more powerful, and getting at data is second nature. > > > > And as if all that isn't enough, you can pick your language. > > > > Amazing stuff. > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > -----Original Message----- > > From: dba-vb-admin at databaseadvisors.com > > [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Marcus, Scott > > (GEAE, RHI Consulting) > > Sent: Wednesday, February 26, 2003 8:10 AM > > To: 'dba-vb at databaseadvisors.com' > > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > > > > John, > > > > Less than a year ago, I decided to convert an access application to > > .Net. Within one day, I had a working prototype in both VB.Net and > > C#.Net. It was > extremely > > easy. You are right in that the combo changes the data set which in > > turn affects all controls linked to it. Just for kicks, I also > > bought Borland C++ and did the > > same thing (within a day). > > > > My conclusion is that all the major tools these days are offering > > click and create applications. It's just a matter of picking the > > technology you think > is > > most marketable. I don't think you can go wrong in learning .Net. > > I'm still torn as to what technology to pick (although the next > > version of .Net is coming > out > > in April and is just a $29 upgrade for previous .Net owners and > > includes the capability to make Pocket PC.Net applications). > > > > I'm very interested in discussing the techniques developers are > > using to convert Access applications to .Net. > > > > Hoping to find intelligent useful discussion on .Net, > > > > Scott Marcus > > > > -----Original Message----- > > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > > Sent: Tuesday, February 25, 2003 8:32 PM > > To: AccessD > > Cc: AccessD - VBA > > Subject: [dba-VB] OT: .NET - Data grid syncs to combo > > > > > > I have moved my billing database BE to sql server, hooked up my > > existing Access FE and continue to use that as I play with the data > > in .Net. > > > > In the meantime, in VB.Net I created a bound form last night (or I > > think it's bound anyway, not positive). It was using an > > OLEConnection, which tonight I switched to an SQL connection. It's > > supposed to be faster. The form simply displays the state table > > (all fields) in a data grid. You really can't get much simpler than > > that, though I suppose for something like a state table it would > > suffice. > > > > I decided to try and figure out how to use a combo box to select a > > record in the data grid. Dragged and dropped a combo to the form, > > hooked the datasource property to the same data source I was using > > for the form / data grid. Set the display member (the field > > displayed) to ST_Abrev (the 2 char code), and the value member (the > > PK of the table) to ST_ID (the PK of the table). Opened the form, > > selected the state in the combo and the data grid moved the record > > selector to that state. > > > > Man was THAT easy! So the combination of everything allows the > > combo to just act as a record selector without all of the code > > required in Access. Not knowing exactly what is happening, I have to > > assume that the combo selecting something causes a record selector > > pointer in the data set object to point somewhere. Since the data > > grid is using the same data set object, the data grid displays the > > newly selected record. > > > > Just a guess of course. This stuff is way over my head. > > > > But so easy (if I just understood what I was doing). > > > > Cool beans man! > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > ---------------------------------------------------- > > Is email taking over your day? Manage your time with eMailBoss. Try > > it free! http://www.eMailBoss.com > > > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > > > > > > > ---------------------------------------------------- > > Is email taking over your day? Manage your time with eMailBoss. > > Try it free! http://www.eMailBoss.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > > > ---------------------------------------------------- > Is email taking over your day? Manage your time with eMailBoss. > Try it free! http://www.eMailBoss.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From JSkolits at CorporateDataDesign.com Wed Feb 26 20:02:30 2003 From: JSkolits at CorporateDataDesign.com (John Skolits) Date: Wed, 26 Feb 2003 21:02:30 -0500 Subject: [dba-VB] Simple problem. Can't use Kill Message-ID: Am I losing it? Why doesn't the Kill statement work in this code. '********* Dim strRuntimePath as string strRuntimePath ="C:\Program Files\Microsoft Office\ART\Office" If Len(Dir(strRuntimePath & "\msaccess_SR1.exe")) > 0 Then Kill (strRuntimePath & "\msaccess_SR1.exe") End If '************ The line with "Len(Dir" in it works fine. Bu when the Kill line tries to run I get an error 75 ("Path/File access error") I can easily rename the file and move it around in explorer so I know it's not being used by anything. I've used this syntax before in other VB apps with no problem. If I rename the file through explorer and run that line again it says Error 53 :File Not Found". Which makes perfect sense. Is it because it's an EXE file? Am I missing something really obvious? John Skolits -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 1908 bytes Desc: not available URL: From Jdemarco at hshhp.org Wed Feb 26 21:20:31 2003 From: Jdemarco at hshhp.org (Jim DeMarco) Date: Wed, 26 Feb 2003 22:20:31 -0500 Subject: [dba-VB] Simple problem. Can't use Kill Message-ID: <22F1CCD5171D17419CB37FEEE09D5F99D8521E@TTNEXCHSRV1.hshhp.com> Is there a Help button on the error message that might give you some insight? I thought the problem might be in the parens or maybe a space in the path but I tried both and it worked for me (killed an exe in my c:\ folder). Jim DeMarco -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of John Skolits Sent: Wednesday, February 26, 2003 9:03 PM To: dba-VB at databaseadvisors.com Subject: [dba-VB] Simple problem. Can't use Kill Am I losing it? Why doesn't the Kill statement work in this code. '********* Dim strRuntimePath as string strRuntimePath ="C:\Program Files\Microsoft Office\ART\Office" If Len(Dir(strRuntimePath & "\msaccess_SR1.exe")) > 0 Then Kill (strRuntimePath & "\msaccess_SR1.exe") End If '************ The line with "Len(Dir" in it works fine. Bu when the Kill line tries to run I get an error 75 ("Path/File access error") I can easily rename the file and move it around in explorer so I know it's not being used by anything. I've used this syntax before in other VB apps with no problem. If I rename the file through explorer and run that line again it says Error 53 :File Not Found". Which makes perfect sense. Is it because it's an EXE file? Am I missing something really obvious? John Skolits *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from HealthSource/Hudson Health Plan (HS/HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HS/HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From JSkolits at CorporateDataDesign.com Wed Feb 26 21:29:14 2003 From: JSkolits at CorporateDataDesign.com (John Skolits) Date: Wed, 26 Feb 2003 22:29:14 -0500 Subject: [dba-VB] Simple problem. Can't use Kill In-Reply-To: <22F1CCD5171D17419CB37FEEE09D5F99D8521E@TTNEXCHSRV1.hshhp.com> Message-ID: Jim, Try a folder a few levels down and tell me if it works. Like "c:\Program Files\Microsoft Office\...." John -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Jim DeMarco Sent: Wednesday, February 26, 2003 10:21 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Simple problem. Can't use Kill Is there a Help button on the error message that might give you some insight? I thought the problem might be in the parens or maybe a space in the path but I tried both and it worked for me (killed an exe in my c:\ folder). Jim DeMarco -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of John Skolits Sent: Wednesday, February 26, 2003 9:03 PM To: dba-VB at databaseadvisors.com Subject: [dba-VB] Simple problem. Can't use Kill Am I losing it? Why doesn't the Kill statement work in this code. '********* Dim strRuntimePath as string strRuntimePath ="C:\Program Files\Microsoft Office\ART\Office" If Len(Dir(strRuntimePath & "\msaccess_SR1.exe")) > 0 Then Kill (strRuntimePath & "\msaccess_SR1.exe") End If '************ The line with "Len(Dir" in it works fine. Bu when the Kill line tries to run I get an error 75 ("Path/File access error") I can easily rename the file and move it around in explorer so I know it's not being used by anything. I've used this syntax before in other VB apps with no problem. If I rename the file through explorer and run that line again it says Error 53 :File Not Found". Which makes perfect sense. Is it because it's an EXE file? Am I missing something really obvious? John Skolits **************************************************************************** ******* "This electronic message is intended to be for the use only of the named recipient, and may contain information from HealthSource/Hudson Health Plan (HS/HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HS/HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". **************************************************************************** ******* _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From JSkolits at CorporateDataDesign.com Wed Feb 26 21:53:15 2003 From: JSkolits at CorporateDataDesign.com (John Skolits) Date: Wed, 26 Feb 2003 22:53:15 -0500 Subject: [dba-VB] RE: [AccessD] VB Simple problem. Can't use Kill -SOLVED! In-Reply-To: Message-ID: File was Read Only! Only took me 2 hours to figure it out From Jdemarco at hshhp.org Thu Feb 27 06:43:29 2003 From: Jdemarco at hshhp.org (Jim DeMarco) Date: Thu, 27 Feb 2003 07:43:29 -0500 Subject: [dba-VB] Simple problem. Can't use Kill Message-ID: <22F1CCD5171D17419CB37FEEE09D5F99E54A5A@TTNEXCHSRV1.hshhp.com> John, It works there, but you got this working didn't you? Jim -----Original Message----- From: John Skolits [mailto:JSkolits at CorporateDataDesign.com] Sent: Wednesday, February 26, 2003 10:29 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Simple problem. Can't use Kill Jim, Try a folder a few levels down and tell me if it works. Like "c:\Program Files\Microsoft Office\...." John -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Jim DeMarco Sent: Wednesday, February 26, 2003 10:21 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Simple problem. Can't use Kill Is there a Help button on the error message that might give you some insight? I thought the problem might be in the parens or maybe a space in the path but I tried both and it worked for me (killed an exe in my c:\ folder). Jim DeMarco -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of John Skolits Sent: Wednesday, February 26, 2003 9:03 PM To: dba-VB at databaseadvisors.com Subject: [dba-VB] Simple problem. Can't use Kill Am I losing it? Why doesn't the Kill statement work in this code. '********* Dim strRuntimePath as string strRuntimePath ="C:\Program Files\Microsoft Office\ART\Office" If Len(Dir(strRuntimePath & "\msaccess_SR1.exe")) > 0 Then Kill (strRuntimePath & "\msaccess_SR1.exe") End If '************ The line with "Len(Dir" in it works fine. Bu when the Kill line tries to run I get an error 75 ("Path/File access error") I can easily rename the file and move it around in explorer so I know it's not being used by anything. I've used this syntax before in other VB apps with no problem. If I rename the file through explorer and run that line again it says Error 53 :File Not Found". Which makes perfect sense. Is it because it's an EXE file? Am I missing something really obvious? John Skolits **************************************************************************** ******* "This electronic message is intended to be for the use only of the named recipient, and may contain information from HealthSource/Hudson Health Plan (HS/HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HS/HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". **************************************************************************** ******* _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from HealthSource/Hudson Health Plan (HS/HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HS/HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From JSkolits at CorporateDataDesign.com Thu Feb 27 06:57:45 2003 From: JSkolits at CorporateDataDesign.com (John Skolits) Date: Thu, 27 Feb 2003 07:57:45 -0500 Subject: [dba-VB] Simple problem. Can't use Kill In-Reply-To: <22F1CCD5171D17419CB37FEEE09D5F99E54A5A@TTNEXCHSRV1.hshhp.com> Message-ID: Yea. The file was read only. I used the following code to change the read only flag. Then killed it. Dim fs, f Dim strFileToKill as String strFileToKill = "C:\Program Files\Microsoft Office\ART\Office\msaccess_SR1.exe" 'Make sure it's read only flag is false Set fs = CreateObject("Scripting.FileSystemObject") Set f = fs.GetFile((strFileToKill)) If f.Attributes And 1 Then 'File is read only, remove the flag f.Attributes = f.Attributes - 1 End If Kill (strFileToKill) Thanks, John -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Jim DeMarco Sent: Thursday, February 27, 2003 7:43 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Simple problem. Can't use Kill John, It works there, but you got this working didn't you? Jim -----Original Message----- From: John Skolits [mailto:JSkolits at CorporateDataDesign.com] Sent: Wednesday, February 26, 2003 10:29 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Simple problem. Can't use Kill Jim, Try a folder a few levels down and tell me if it works. Like "c:\Program Files\Microsoft Office\...." John -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Jim DeMarco Sent: Wednesday, February 26, 2003 10:21 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Simple problem. Can't use Kill Is there a Help button on the error message that might give you some insight? I thought the problem might be in the parens or maybe a space in the path but I tried both and it worked for me (killed an exe in my c:\ folder). Jim DeMarco -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of John Skolits Sent: Wednesday, February 26, 2003 9:03 PM To: dba-VB at databaseadvisors.com Subject: [dba-VB] Simple problem. Can't use Kill Am I losing it? Why doesn't the Kill statement work in this code. '********* Dim strRuntimePath as string strRuntimePath ="C:\Program Files\Microsoft Office\ART\Office" If Len(Dir(strRuntimePath & "\msaccess_SR1.exe")) > 0 Then Kill (strRuntimePath & "\msaccess_SR1.exe") End If '************ The line with "Len(Dir" in it works fine. Bu when the Kill line tries to run I get an error 75 ("Path/File access error") I can easily rename the file and move it around in explorer so I know it's not being used by anything. I've used this syntax before in other VB apps with no problem. If I rename the file through explorer and run that line again it says Error 53 :File Not Found". Which makes perfect sense. Is it because it's an EXE file? Am I missing something really obvious? John Skolits **************************************************************************** ******* "This electronic message is intended to be for the use only of the named recipient, and may contain information from HealthSource/Hudson Health Plan (HS/HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HS/HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". **************************************************************************** ******* _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com **************************************************************************** ******* "This electronic message is intended to be for the use only of the named recipient, and may contain information from HealthSource/Hudson Health Plan (HS/HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HS/HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". **************************************************************************** ******* _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From R.Griffiths at bury.gov.uk Thu Feb 27 07:07:39 2003 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Thu, 27 Feb 2003 13:07:39 -0000 Subject: [dba-VB] Open DB Message-ID: <52339DF8DCA2A544AF660C8217EB7DCD0227F0F5@mailgate.bury.gov.uk> Hi Group Can't seem to find the exact bit of code I need......to be able to open another database which has its own password and is in a different workgroup using DAO. Can find code for this....... to open another database which has its own password using DAO Anyone been there? Thanks Richard -------------------------------------------------------------------------------------------------------------------- This e-mail, together with any files transmitted with it, is confidential and intended solely for the use of the individual to whom it is addressed. If you are not the intended recipient, or the person responsible for delivering to the intended recipient, be advised that you have received this e-mail in error and that any use, dissemination, forwarding, printing or copying of this e-mail is strictly prohibited without liability on our part. If you have received this e-mail in error please notify the sender. From Jdemarco at hshhp.org Thu Feb 27 07:08:19 2003 From: Jdemarco at hshhp.org (Jim DeMarco) Date: Thu, 27 Feb 2003 08:08:19 -0500 Subject: [dba-VB] Simple problem. Can't use Kill Message-ID: <22F1CCD5171D17419CB37FEEE09D5F99D85225@TTNEXCHSRV1.hshhp.com> Thanks. If you're using the file system object to set the Read Only flag why not use it to delete as well? f.Delete Same difference I know but you've already got a pointer to the file. Jim DeMarco -----Original Message----- From: John Skolits [mailto:JSkolits at CorporateDataDesign.com] Sent: Thursday, February 27, 2003 7:58 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Simple problem. Can't use Kill Yea. The file was read only. I used the following code to change the read only flag. Then killed it. Dim fs, f Dim strFileToKill as String strFileToKill = "C:\Program Files\Microsoft Office\ART\Office\msaccess_SR1.exe" 'Make sure it's read only flag is false Set fs = CreateObject("Scripting.FileSystemObject") Set f = fs.GetFile((strFileToKill)) If f.Attributes And 1 Then 'File is read only, remove the flag f.Attributes = f.Attributes - 1 End If Kill (strFileToKill) Thanks, John -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Jim DeMarco Sent: Thursday, February 27, 2003 7:43 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Simple problem. Can't use Kill John, It works there, but you got this working didn't you? Jim -----Original Message----- From: John Skolits [mailto:JSkolits at CorporateDataDesign.com] Sent: Wednesday, February 26, 2003 10:29 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Simple problem. Can't use Kill Jim, Try a folder a few levels down and tell me if it works. Like "c:\Program Files\Microsoft Office\...." John -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Jim DeMarco Sent: Wednesday, February 26, 2003 10:21 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Simple problem. Can't use Kill Is there a Help button on the error message that might give you some insight? I thought the problem might be in the parens or maybe a space in the path but I tried both and it worked for me (killed an exe in my c:\ folder). Jim DeMarco -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of John Skolits Sent: Wednesday, February 26, 2003 9:03 PM To: dba-VB at databaseadvisors.com Subject: [dba-VB] Simple problem. Can't use Kill Am I losing it? Why doesn't the Kill statement work in this code. '********* Dim strRuntimePath as string strRuntimePath ="C:\Program Files\Microsoft Office\ART\Office" If Len(Dir(strRuntimePath & "\msaccess_SR1.exe")) > 0 Then Kill (strRuntimePath & "\msaccess_SR1.exe") End If '************ The line with "Len(Dir" in it works fine. Bu when the Kill line tries to run I get an error 75 ("Path/File access error") I can easily rename the file and move it around in explorer so I know it's not being used by anything. I've used this syntax before in other VB apps with no problem. If I rename the file through explorer and run that line again it says Error 53 :File Not Found". Which makes perfect sense. Is it because it's an EXE file? Am I missing something really obvious? John Skolits **************************************************************************** ******* "This electronic message is intended to be for the use only of the named recipient, and may contain information from HealthSource/Hudson Health Plan (HS/HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HS/HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". **************************************************************************** ******* _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com **************************************************************************** ******* "This electronic message is intended to be for the use only of the named recipient, and may contain information from HealthSource/Hudson Health Plan (HS/HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HS/HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". **************************************************************************** ******* _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from HealthSource/Hudson Health Plan (HS/HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HS/HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From JSkolits at CorporateDataDesign.com Thu Feb 27 07:14:56 2003 From: JSkolits at CorporateDataDesign.com (John Skolits) Date: Thu, 27 Feb 2003 08:14:56 -0500 Subject: [dba-VB] Simple problem. Can't use Kill In-Reply-To: <22F1CCD5171D17419CB37FEEE09D5F99D85225@TTNEXCHSRV1.hshhp.com> Message-ID: Because I was tired and cranky after spending all this time on a stupid problem and just copied the code out of a VB example and never really thought about it. So There! :) John p.s. Good idea though! -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Jim DeMarco Sent: Thursday, February 27, 2003 8:08 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Simple problem. Can't use Kill Thanks. If you're using the file system object to set the Read Only flag why not use it to delete as well? f.Delete Same difference I know but you've already got a pointer to the file. Jim DeMarco -----Original Message----- From: John Skolits [mailto:JSkolits at CorporateDataDesign.com] Sent: Thursday, February 27, 2003 7:58 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Simple problem. Can't use Kill Yea. The file was read only. I used the following code to change the read only flag. Then killed it. Dim fs, f Dim strFileToKill as String strFileToKill = "C:\Program Files\Microsoft Office\ART\Office\msaccess_SR1.exe" 'Make sure it's read only flag is false Set fs = CreateObject("Scripting.FileSystemObject") Set f = fs.GetFile((strFileToKill)) If f.Attributes And 1 Then 'File is read only, remove the flag f.Attributes = f.Attributes - 1 End If Kill (strFileToKill) Thanks, John -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Jim DeMarco Sent: Thursday, February 27, 2003 7:43 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Simple problem. Can't use Kill John, It works there, but you got this working didn't you? Jim -----Original Message----- From: John Skolits [mailto:JSkolits at CorporateDataDesign.com] Sent: Wednesday, February 26, 2003 10:29 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Simple problem. Can't use Kill Jim, Try a folder a few levels down and tell me if it works. Like "c:\Program Files\Microsoft Office\...." John -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Jim DeMarco Sent: Wednesday, February 26, 2003 10:21 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Simple problem. Can't use Kill Is there a Help button on the error message that might give you some insight? I thought the problem might be in the parens or maybe a space in the path but I tried both and it worked for me (killed an exe in my c:\ folder). Jim DeMarco -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of John Skolits Sent: Wednesday, February 26, 2003 9:03 PM To: dba-VB at databaseadvisors.com Subject: [dba-VB] Simple problem. Can't use Kill Am I losing it? Why doesn't the Kill statement work in this code. '********* Dim strRuntimePath as string strRuntimePath ="C:\Program Files\Microsoft Office\ART\Office" If Len(Dir(strRuntimePath & "\msaccess_SR1.exe")) > 0 Then Kill (strRuntimePath & "\msaccess_SR1.exe") End If '************ The line with "Len(Dir" in it works fine. Bu when the Kill line tries to run I get an error 75 ("Path/File access error") I can easily rename the file and move it around in explorer so I know it's not being used by anything. I've used this syntax before in other VB apps with no problem. If I rename the file through explorer and run that line again it says Error 53 :File Not Found". Which makes perfect sense. Is it because it's an EXE file? Am I missing something really obvious? John Skolits **************************************************************************** ******* "This electronic message is intended to be for the use only of the named recipient, and may contain information from HealthSource/Hudson Health Plan (HS/HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HS/HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". **************************************************************************** ******* _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com **************************************************************************** ******* "This electronic message is intended to be for the use only of the named recipient, and may contain information from HealthSource/Hudson Health Plan (HS/HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HS/HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". **************************************************************************** ******* _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com **************************************************************************** ******* "This electronic message is intended to be for the use only of the named recipient, and may contain information from HealthSource/Hudson Health Plan (HS/HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HS/HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". **************************************************************************** ******* _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From JSkolits at CorporateDataDesign.com Thu Feb 27 07:20:17 2003 From: JSkolits at CorporateDataDesign.com (John Skolits) Date: Thu, 27 Feb 2003 08:20:17 -0500 Subject: [dba-VB] Open DB In-Reply-To: <52339DF8DCA2A544AF660C8217EB7DCD0227F0F5@mailgate.bury.gov.uk> Message-ID: See if this works for you '**************** Dim dbe As DAO.PrivDBEngine Dim wsp As DAO.Workspace Dim dbEXT_Database As DAO.Database Dim strSecurityFileName as String Dim strFullDatabasePath as String strSecurityFileName="c:\Windows\Ssytem\system.mdw" strFullDatabasePath = "c:\Test.mdb" Set dbe = New PrivDBEngine With dbe .SystemDB = strSecurityFileName .DefaultUser = "User" .DefaultPassword = "Password" End With Set wsp = dbe.Workspaces(0) 'systemdb is locked in now Set dbEXT_Database = wsp.OpenDatabase(strFullDatabasePath) '************** I didn't check all the syntax but it should be OK John Skolits -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Griffiths, Richard Sent: Thursday, February 27, 2003 8:08 AM To: 'AccessD at databaseadvisors.com'; 'dba-VB at databaseadvisors.com' Subject: [dba-VB] Open DB Hi Group Can't seem to find the exact bit of code I need......to be able to open another database which has its own password and is in a different workgroup using DAO. Can find code for this....... to open another database which has its own password using DAO Anyone been there? Thanks Richard ---------------------------------------------------------------------------- ---------------------------------------- This e-mail, together with any files transmitted with it, is confidential and intended solely for the use of the individual to whom it is addressed. If you are not the intended recipient, or the person responsible for delivering to the intended recipient, be advised that you have received this e-mail in error and that any use, dissemination, forwarding, printing or copying of this e-mail is strictly prohibited without liability on our part. If you have received this e-mail in error please notify the sender. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From R.Griffiths at bury.gov.uk Thu Feb 27 09:27:00 2003 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Thu, 27 Feb 2003 15:27:00 -0000 Subject: [dba-VB] Open DB Message-ID: <52339DF8DCA2A544AF660C8217EB7DCD0227F0F7@mailgate.bury.gov.uk> John Well done - this is perfect BTW what is PrivDBEngine - can't find in object browser Are there any implications using this method? Thanks Richard > -----Original Message----- > From: John Skolits [SMTP:JSkolits at CorporateDataDesign.com] > Sent: 27 February 2003 13:20 > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] Open DB > > > See if this works for you > > '**************** > > Dim dbe As DAO.PrivDBEngine > Dim wsp As DAO.Workspace > Dim dbEXT_Database As DAO.Database > Dim strSecurityFileName as String > Dim strFullDatabasePath as String > > strSecurityFileName="c:\Windows\Ssytem\system.mdw" > strFullDatabasePath = "c:\Test.mdb" > > Set dbe = New PrivDBEngine > With dbe > .SystemDB = strSecurityFileName > .DefaultUser = "User" > .DefaultPassword = "Password" > End With > > Set wsp = dbe.Workspaces(0) 'systemdb is locked in now > > Set dbEXT_Database = wsp.OpenDatabase(strFullDatabasePath) > > > '************** > > I didn't check all the syntax but it should be OK > > > John Skolits > > > -----Original Message----- > From: dba-vb-admin at databaseadvisors.com > [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Griffiths, > Richard > Sent: Thursday, February 27, 2003 8:08 AM > To: 'AccessD at databaseadvisors.com'; 'dba-VB at databaseadvisors.com' > Subject: [dba-VB] Open DB > > > Hi Group > > Can't seem to find the exact bit of code I need......to be able to open > another database which has its own password and is in a different > workgroup > using DAO. > > Can find code for this....... to open another database which has its own > password using DAO > > Anyone been there? > Thanks > Richard > > -------------------------------------------------------------------------- > -- > ---------------------------------------- > This e-mail, together with any files transmitted with it, is > confidential and intended solely for the use of the individual to > whom it is addressed. If you are not the intended recipient, or > the person responsible for delivering to the intended recipient, > be advised that you have received this e-mail in error and that any > use, dissemination, forwarding, printing or copying of this e-mail > is strictly prohibited without liability on our part. > > If you have received this e-mail in error please notify the sender. > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > -------------------------------------------------------------------------------------------------------------------- This e-mail, together with any files transmitted with it, is confidential and intended solely for the use of the individual to whom it is addressed. If you are not the intended recipient, or the person responsible for delivering to the intended recipient, be advised that you have received this e-mail in error and that any use, dissemination, forwarding, printing or copying of this e-mail is strictly prohibited without liability on our part. If you have received this e-mail in error please notify the sender. From JSkolits at CorporateDataDesign.com Thu Feb 27 10:04:37 2003 From: JSkolits at CorporateDataDesign.com (John Skolits) Date: Thu, 27 Feb 2003 11:04:37 -0500 Subject: [dba-VB] Open DB In-Reply-To: <52339DF8DCA2A544AF660C8217EB7DCD0227F0F7@mailgate.bury.gov.uk> Message-ID: The PrivDBEngine is an unsupported object. But, I use it all the time to modify backends that I have locked out. Never had a problem. If you subscribe to 'Smart Access' there is an article on PrivDBEngine. I don't subscribe to Smart Access but I'm sure someone on the list does. Maybe someone can get a copy for you. I'm sure it will list all the properties and methods of the object. Here's a page that has the link for PrivDBEngine: http://www.myjavasource.com/sa/samain.nsf/0/B0D0397E0CFFBEA88725689D00799FB7 John Skolits -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Griffiths, Richard Sent: Thursday, February 27, 2003 10:27 AM To: 'dba-vb at databaseadvisors.com' Subject: RE: [dba-VB] Open DB John Well done - this is perfect BTW what is PrivDBEngine - can't find in object browser Are there any implications using this method? Thanks Richard > -----Original Message----- > From: John Skolits [SMTP:JSkolits at CorporateDataDesign.com] > Sent: 27 February 2003 13:20 > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] Open DB > > > See if this works for you > > '**************** > > Dim dbe As DAO.PrivDBEngine > Dim wsp As DAO.Workspace > Dim dbEXT_Database As DAO.Database > Dim strSecurityFileName as String > Dim strFullDatabasePath as String > > strSecurityFileName="c:\Windows\Ssytem\system.mdw" > strFullDatabasePath = "c:\Test.mdb" > > Set dbe = New PrivDBEngine > With dbe > .SystemDB = strSecurityFileName > .DefaultUser = "User" > .DefaultPassword = "Password" > End With > > Set wsp = dbe.Workspaces(0) 'systemdb is locked in now > > Set dbEXT_Database = wsp.OpenDatabase(strFullDatabasePath) > > > '************** > > I didn't check all the syntax but it should be OK > > > John Skolits > > > -----Original Message----- > From: dba-vb-admin at databaseadvisors.com > [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Griffiths, > Richard > Sent: Thursday, February 27, 2003 8:08 AM > To: 'AccessD at databaseadvisors.com'; 'dba-VB at databaseadvisors.com' > Subject: [dba-VB] Open DB > > > Hi Group > > Can't seem to find the exact bit of code I need......to be able to open > another database which has its own password and is in a different > workgroup > using DAO. > > Can find code for this....... to open another database which has its own > password using DAO > > Anyone been there? > Thanks > Richard > > -------------------------------------------------------------------------- > -- > ---------------------------------------- > This e-mail, together with any files transmitted with it, is > confidential and intended solely for the use of the individual to > whom it is addressed. If you are not the intended recipient, or > the person responsible for delivering to the intended recipient, > be advised that you have received this e-mail in error and that any > use, dissemination, forwarding, printing or copying of this e-mail > is strictly prohibited without liability on our part. > > If you have received this e-mail in error please notify the sender. > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > ---------------------------------------------------------------------------- ---------------------------------------- This e-mail, together with any files transmitted with it, is confidential and intended solely for the use of the individual to whom it is addressed. If you are not the intended recipient, or the person responsible for delivering to the intended recipient, be advised that you have received this e-mail in error and that any use, dissemination, forwarding, printing or copying of this e-mail is strictly prohibited without liability on our part. If you have received this e-mail in error please notify the sender. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From my.lists at verizon.net Fri Feb 28 15:16:00 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Fri, 28 Feb 2003 13:16:00 -0800 Subject: [dba-VB] Closing an application Message-ID: <00c401c2df6e$982b8220$b615010a@FHTAPIA> Dumb question.... I've always used In my limited experience w/ VB to just close my form w/ a simple Unload Me recently I picked up some code from PSC on how to auto-update my FE program automatically... the problem is with the auto-updater, for some reason when running it will hang every so often and when I C-A-D, it shows my program as not responding.. (win2k, VB6). The author's webpage is 404'ed, so I can't ask him... what do you guys use.. I would rather not use END... help? -Francisco http://rcm.netfirms.com From mikedorism at ntelos.net Fri Feb 28 15:40:05 2003 From: mikedorism at ntelos.net (Mike and Doris Manning) Date: Fri, 28 Feb 2003 16:40:05 -0500 Subject: [dba-VB] Closing an application In-Reply-To: <00c401c2df6e$982b8220$b615010a@FHTAPIA> Message-ID: <000401c2df71$f882b7d0$ac320cd8@hargrove.internal> "Unload Me" hides the form and removes it from memory so you are definitely doing the right thing. As with Access, "END" is a no-no. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com] On Behalf Of Francisco H Tapia Sent: Friday, February 28, 2003 04:16 PM To: dba-VB at databaseadvisors.com Subject: [dba-VB] Closing an application Dumb question.... I've always used In my limited experience w/ VB to just close my form w/ a simple Unload Me recently I picked up some code from PSC on how to auto-update my FE program automatically... the problem is with the auto-updater, for some reason when running it will hang every so often and when I C-A-D, it shows my program as not responding.. (win2k, VB6). The author's webpage is 404'ed, so I can't ask him... what do you guys use.. I would rather not use END... help? -Francisco http://rcm.netfirms.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From my.lists at verizon.net Fri Feb 28 16:29:50 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Fri, 28 Feb 2003 14:29:50 -0800 Subject: [dba-VB] Closing an application References: <000401c2df71$f882b7d0$ac320cd8@hargrove.internal> Message-ID: <00fb01c2df78$e8a7dd20$b615010a@FHTAPIA> If I wanted to close the application in Access I use Docmd.Quit. Are you saying that Unload Me Is the DoCmd.Quit for VB? btw, I'm compiling the autoupdater as an .exe separate from the Access FE so it is a VB6 applette if you will... nothing special I'm sure just a good ol' OpenURL method. -Francisco http://rcm.netfirms.com ----- Original Message ----- From: "Mike and Doris Manning" To: Sent: Friday, February 28, 2003 1:40 PM Subject: RE: [dba-VB] Closing an application : "Unload Me" hides the form and removes it from memory so you are definitely : doing the right thing. As with Access, "END" is a no-no. : : Doris Manning : Database Administrator : Hargrove Inc. : www.hargroveinc.com : : : -----Original Message----- : From: dba-vb-admin at databaseadvisors.com : [mailto:dba-vb-admin at databaseadvisors.com] On Behalf Of Francisco H Tapia : Sent: Friday, February 28, 2003 04:16 PM : To: dba-VB at databaseadvisors.com : Subject: [dba-VB] Closing an application : : : Dumb question.... : : I've always used In my limited experience w/ VB to just close my form w/ a : simple : : Unload Me : : recently I picked up some code from PSC on how to auto-update my FE program : automatically... the problem is with the auto-updater, for some reason when : running it will hang every so often and when I C-A-D, it shows my program as : not responding.. (win2k, VB6). The author's webpage is 404'ed, so I can't : ask him... what do you guys use.. I would rather not use END... help? : : -Francisco : http://rcm.netfirms.com : : : _______________________________________________ : dba-VB mailing list : dba-VB at databaseadvisors.com : http://databaseadvisors.com/mailman/listinfo/dba-vb : http://www.databaseadvisors.com : : : _______________________________________________ : dba-VB mailing list : dba-VB at databaseadvisors.com : http://databaseadvisors.com/mailman/listinfo/dba-vb : http://www.databaseadvisors.com : : From ghazzard at aelfen.net Fri Feb 28 18:24:05 2003 From: ghazzard at aelfen.net (Gregory K. Hazzard) Date: Fri, 28 Feb 2003 18:24:05 -0600 Subject: [dba-VB] Closing an application In-Reply-To: <000401c2df71$f882b7d0$ac320cd8@hargrove.internal> Message-ID: <005201c2df88$de7b8b20$0200a8c0@greg> I have heard this in the past - and I must admit to being guilty of using End, but I've never really know the difference, other than End exits your app no matter where it is, and unload requires you to call each form individually. What makes End such a No-no? Greg -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com] On Behalf Of Mike and Doris Manning Sent: Friday, February 28, 2003 3:40 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Closing an application "Unload Me" hides the form and removes it from memory so you are definitely doing the right thing. As with Access, "END" is a no-no. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com From DWUTKA at marlow.com Fri Feb 28 19:15:11 2003 From: DWUTKA at marlow.com (Drew Wutka) Date: Fri, 28 Feb 2003 19:15:11 -0600 Subject: [dba-VB] Closing an application Message-ID: <2F8793082E00D4119A1700B0D0216BF801D821D3@main2.marlow.com> Ditto. End is what you use to close a VB App. Sure, if you have one form, and nothing loaded in the background, you can just unload the form (or give the user the 'x') but End stops the execution of your VB .exe, thus unloading everything. Drew -----Original Message----- From: Gregory K. Hazzard [mailto:ghazzard at aelfen.net] Sent: Friday, February 28, 2003 6:24 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Closing an application I have heard this in the past - and I must admit to being guilty of using End, but I've never really know the difference, other than End exits your app no matter where it is, and unload requires you to call each form individually. What makes End such a No-no? Greg -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com] On Behalf Of Mike and Doris Manning Sent: Friday, February 28, 2003 3:40 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Closing an application "Unload Me" hides the form and removes it from memory so you are definitely doing the right thing. As with Access, "END" is a no-no. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From Jdemarco at hshhp.org Fri Feb 7 07:16:25 2003 From: Jdemarco at hshhp.org (Jim DeMarco) Date: Fri, 7 Feb 2003 08:16:25 -0500 Subject: [dba-VB] test Message-ID: <22F1CCD5171D17419CB37FEEE09D5F99D8500D@TTNEXCHSRV1.hshhp.com> no response necessary *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from HealthSource/Hudson Health Plan (HS/HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HS/HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From Jdemarco at hshhp.org Fri Feb 7 07:31:02 2003 From: Jdemarco at hshhp.org (Jim DeMarco) Date: Fri, 7 Feb 2003 08:31:02 -0500 Subject: [dba-VB] Web Service - Page Not Found Error Message-ID: <22F1CCD5171D17419CB37FEEE09D5F99D85011@TTNEXCHSRV1.hshhp.com> I was having a problem getting a .NET web service deployed so I thought I'd run a test on a very simple service to see that I was able to get a response back from the service. I created a service with two functions AddEm and SubtractEm which adds or subtracts 2 integers and returns the result. Works fine on my dev box but when I deployed it on our live web server I get an error 404 Page Not Found when the Invoke button is clicked on the .asmx page calling either function. I then copied the app to another local server (my old desktop machine) and it works just fine. In talking to one of our networking consultants he asks the following questions that I don't have answers to. If anyone can help I'd appreciate it. 1.What protocol/port number is the server application (web service??) using? 2. Does the web server create a new session or respond to a request from a web service within the same session? If you want the link to the live service or the service itself to try on your own machine I'd be glad to send it. It's a pretty trivial service and I don't believe there's anything wrong with it as it does almost nothing. Thanks, Jim DeMarco Director of Product Development HealthSource/Hudson Health Plan *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from HealthSource/Hudson Health Plan (HS/HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HS/HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From paul.hartland at fsmail.net Tue Feb 11 02:51:24 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 11 Feb 2003 8:51:24 +0000 Subject: [dba-VB] Combo Box on DataGrid (Visual Basic 6) Message-ID: <20030211085124.BAMA5116.fep06-svc.ttys.com@localhost> To all, Not having much experience with DataGrids (VB6), I was playing around yesterday and found out you could put a button on a column (This I done without a problem), but I also heard you could have a ComboBox/ListBox appear when the button is pressed, Anyone any idea on how to display the ComboBox/ListBox when this is pressed ????? Any help, sample code etc appreciated............. Paul __________________________________________________________________________ Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month after that. For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890 From paul.hartland at fsmail.net Wed Feb 12 04:12:12 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 12 Feb 2003 10:12:12 +0000 Subject: [dba-VB] What Column (DataGrid VB6) Message-ID: <20030212101212.CIFA5116.fep06-svc.ttys.com@localhost> To all, I have a DataGrid in a VB6 Front-End, I have to lock specific fields so that users can't edit them. The trouble is, when you tab into a locked field, the cursor disappears.......... Is there anyway to show the user what field they are in even when it's locked...............????????? Thanks in advance........... Paul __________________________________________________________________________ Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month after that. For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890 From Jdemarco at hshhp.org Wed Feb 12 07:40:47 2003 From: Jdemarco at hshhp.org (Jim DeMarco) Date: Wed, 12 Feb 2003 08:40:47 -0500 Subject: [dba-VB] What Column (DataGrid VB6) Message-ID: <22F1CCD5171D17419CB37FEEE09D5F99D850A9@TTNEXCHSRV1.hshhp.com> You could try using color to highlight the current cell. HTH, Jim DeMarco Director of Product Development HealthSource/Hudson Health Plan -----Original Message----- From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] Sent: Wednesday, February 12, 2003 5:12 AM To: accessd at databaseadvisors.com; dba-VB at databaseadvisors.com Subject: [dba-VB] What Column (DataGrid VB6) To all, I have a DataGrid in a VB6 Front-End, I have to lock specific fields so that users can't edit them. The trouble is, when you tab into a locked field, the cursor disappears.......... Is there anyway to show the user what field they are in even when it's locked...............????????? Thanks in advance........... Paul __________________________________________________________________________ Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month after that. For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890 _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from HealthSource/Hudson Health Plan (HS/HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HS/HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From paul.hartland at fsmail.net Wed Feb 12 08:01:11 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 12 Feb 2003 14:01:11 +0000 Subject: [dba-VB] What Column (DataGrid VB6) Message-ID: <20030212140111.HNAA7162.fep07-svc.ttys.com@localhost> Thats what I thought of doing, but can't find how the change the color of just one cell............ Paul From: "Jim DeMarco" Date: Wed 12/Feb/2003 13:40 GMT To: Subject: RE: [dba-VB] What Column (DataGrid VB6) You could try using color to highlight the current cell. HTH, Jim DeMarco Director of Product Development HealthSource/Hudson Health Plan -----Original Message----- From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] Sent: Wednesday, February 12, 2003 5:12 AM To: accessd at databaseadvisors.com; dba-VB at databaseadvisors.com Subject: [dba-VB] What Column (DataGrid VB6) To all, I have a DataGrid in a VB6 Front-End, I have to lock specific fields so that users can't edit them. The trouble is, when you tab into a locked field, the cursor disappears.......... Is there anyway to show the user what field they are in even when it's locked...............????????? Thanks in advance........... Paul __________________________________________________________________________ Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month after that. For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890 _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from HealthSource/Hudson Health Plan (HS/HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HS/HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com __________________________________________________________________________ Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month after that. For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890 From paul.hartland at fsmail.net Thu Feb 13 03:10:17 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 13 Feb 2003 9:10:17 +0000 Subject: [dba-VB] URGENT (VB6 Problem) Message-ID: <20030213091017.DOFH5116.fep06-svc.ttys.com@localhost> To all, I have a form with an ADODC DataControl and fields which link into the DataControl. I have never seen/or tried this before, but yesterday whilst testing out my application, I came across this.......... I open the form and edit a record, move off that particular record, go back to it edit it again and get this error.......... Row Cannot Be Located For Updating, Some Values May Have Been Changed Since It Was Last Read. Anyone any ideas on why this is happening..........It's a VB6 FE with SQL 7.0 BE Thanks in advance................ Paul __________________________________________________________________________ Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month after that. For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890 From paul.hartland at fsmail.net Thu Feb 13 03:16:10 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 13 Feb 2003 9:16:10 +0000 Subject: [dba-VB] PLEASE IGNORE - URGENT (VB6 Problem) Message-ID: <20030213091610.DOHN5116.fep06-svc.ttys.com@localhost> To all, Appologies for my last email requesting help, I have found out what is going wrong.........I hadn't set my CursorType and LockType correctly............ Paul __________________________________________________________________________ Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month after that. For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890 From paul.hartland at fsmail.net Fri Feb 14 07:24:07 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Fri, 14 Feb 2003 13:24:07 +0000 Subject: [dba-VB] DataGrid (VB6) Setting Focus To A Column Message-ID: <20030214132407.CONF14152.fep02-svc.ttys.com@localhost> To all, I have a VB DataGrid on a form, and when the user wants to add a new record I insert some default information and the user should then start typing in column 2...... Is there anyway of setting the focus to a particular column after adding a new record ? Paul __________________________________________________________________________ Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month after that. For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890 From paul.hartland at fsmail.net Mon Feb 17 07:48:09 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 17 Feb 2003 13:48:09 +0000 Subject: [dba-VB] Deleting Dates Message-ID: <20030217134809.IOHS5116.fep06-svc.ttys.com@localhost> To all, I have a Visual Basic 6 front-end which is currently linked into a SQL Server 7.0 back-end, I have a table called tblPersonnel in the BE which has a form on the VB6 FE. We take on temporary staff a certain points of the year to help with the workload, and when they finish we enter a finish date for that particualr person....No problem so far......However if they have proved themselves to be a good worker, they get invited back whenever we need the additional staff (saving on re-training etc). But I can seem to get the system to allow me to take out a finish date (making it null again)..... The tblPersonnel.Finishdate field will allow Nulls, and I'm using the ADODC DataControl with a text box linked to the Control and Field FinishDate........ Anyone had similar problems or can tell me how to reset the FinishDate to null Thanks in advance for any help.......... Paul __________________________________________________________________________ Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month after that. For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890 From paul.hartland at fsmail.net Mon Feb 17 07:48:09 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 17 Feb 2003 13:48:09 +0000 Subject: [dba-VB] [dba-SQLServer]Deleting Dates Message-ID: <20030217134809.IOHS5116.fep06-svc.ttys.com@localhost> To all, I have a Visual Basic 6 front-end which is currently linked into a SQL Server 7.0 back-end, I have a table called tblPersonnel in the BE which has a form on the VB6 FE. We take on temporary staff a certain points of the year to help with the workload, and when they finish we enter a finish date for that particualr person....No problem so far......However if they have proved themselves to be a good worker, they get invited back whenever we need the additional staff (saving on re-training etc). But I can seem to get the system to allow me to take out a finish date (making it null again)..... The tblPersonnel.Finishdate field will allow Nulls, and I'm using the ADODC DataControl with a text box linked to the Control and Field FinishDate........ Anyone had similar problems or can tell me how to reset the FinishDate to null Thanks in advance for any help.......... Paul __________________________________________________________________________ Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month after that. For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890 _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From paul.hartland at fsmail.net Tue Feb 18 04:14:38 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 18 Feb 2003 10:14:38 +0000 Subject: [dba-VB] Is Outlook Open (VB6) Message-ID: <20030218101438.HLEM14152.fep02-svc.ttys.com@localhost> To all, Anyone know how I can check to see if MS Outlook is open using VB6 ? Thanks in advance Paul __________________________________________________________________________ Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month after that. For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890 From carbonnb at sympatico.ca Tue Feb 18 07:05:09 2003 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Tue, 18 Feb 2003 08:05:09 -0500 Subject: [dba-VB] Is Outlook Open (VB6) In-Reply-To: <20030218101438.HLEM14152.fep02-svc.ttys.com@localhost> Message-ID: <3E51E935.19907.A5264@localhost> Cross-posted to AccessD and dba-vb On 18 Feb 2003 at 10:14, paul.hartland at fsmail.net wrote: > Anyone know how I can check to see if MS Outlook is open using VB6 ? Paul, How about something like this: Dom objOut as object On Error Resume Next set objOut = GetObject("Outlook.Application") if Err <> 0 Then MsgBox "Outlook is not open" Else Msgbox "Outlook is open" End if -- Bryan Carbonnell - carbonnb at sympatico.ca We've all heard that a million monkeys banging on a million typewriters will eventually reproduce the entire works of Shakespeare. Now, thanks to the Internet, we know this is not true.^ [Robert Wilensky (1997)] From mikedorism at ntelos.net Tue Feb 18 08:21:07 2003 From: mikedorism at ntelos.net (Mike and Doris Manning) Date: Tue, 18 Feb 2003 09:21:07 -0500 Subject: [dba-VB] Is Outlook Open (VB6) In-Reply-To: <3E51E935.19907.A5264@localhost> Message-ID: <000401c2d759$029d9c60$9a3c0cd8@hargrove.internal> I tried that but it doesn't always yield the correct results, so I chose to handle it via API calls instead. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com] On Behalf Of Bryan Carbonnell Sent: Tuesday, February 18, 2003 08:05 AM To: dba-vb at databaseadvisors.com; accessd at databaseadvisors.com Subject: Re: [dba-VB] Is Outlook Open (VB6) Cross-posted to AccessD and dba-vb On 18 Feb 2003 at 10:14, paul.hartland at fsmail.net wrote: > Anyone know how I can check to see if MS Outlook is open using VB6 ? Paul, How about something like this: Dom objOut as object On Error Resume Next set objOut = GetObject("Outlook.Application") if Err <> 0 Then MsgBox "Outlook is not open" Else Msgbox "Outlook is open" End if -- Bryan Carbonnell - carbonnb at sympatico.ca We've all heard that a million monkeys banging on a million typewriters will eventually reproduce the entire works of Shakespeare. Now, thanks to the Internet, we know this is not true.^ [Robert Wilensky (1997)] _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jcolby at colbyconsulting.com Sat Feb 22 21:11:52 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Sat, 22 Feb 2003 22:11:52 -0500 Subject: [dba-VB] test2 Message-ID: test2 John W. Colby Colby Consulting www.ColbyConsulting.com From jcolby at colbyconsulting.com Sat Feb 22 21:16:45 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Sat, 22 Feb 2003 22:16:45 -0500 Subject: [dba-VB] Is there anyone out there? Message-ID: John W. Colby Colby Consulting www.ColbyConsulting.com From papparuff at attbi.com Sat Feb 22 22:02:19 2003 From: papparuff at attbi.com (John Ruff) Date: Sat, 22 Feb 2003 20:02:19 -0800 Subject: [dba-VB] Is there anyone out there? In-Reply-To: Message-ID: <019f01c2daf0$5ce01230$6401a8c0@papparuff> Yes John, but I haven't received anything sind the 18th. John V. Ruff - The Eternal Optimist :-) "Commit to the Lord whatever you do, and your plans will succeed." Proverbs 16:3 -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com] On Behalf Of John W. Colby Sent: Saturday, February 22, 2003 7:17 PM To: AccessD - VBA Subject: [dba-VB] Is there anyone out there? John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From accessd at shaw.ca Sat Feb 22 21:59:04 2003 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Sat, 22 Feb 2003 19:59:04 -0800 Subject: [dba-VB] Is there anyone out there? In-Reply-To: Message-ID: Hi John: Email received loud and clear. Jim -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of John W. Colby Sent: Saturday, February 22, 2003 7:17 PM To: AccessD - VBA Subject: [dba-VB] Is there anyone out there? John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jcolby at colbyconsulting.com Sun Feb 23 06:20:57 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Sun, 23 Feb 2003 07:20:57 -0500 Subject: [dba-VB] Is there anyone out there? In-Reply-To: <019f01c2daf0$5ce01230$6401a8c0@papparuff> Message-ID: Well maybe it's time to fire this list up! John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of John Ruff Sent: Saturday, February 22, 2003 11:02 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Is there anyone out there? Yes John, but I haven't received anything sind the 18th. John V. Ruff - The Eternal Optimist :-) "Commit to the Lord whatever you do, and your plans will succeed." Proverbs 16:3 -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com] On Behalf Of John W. Colby Sent: Saturday, February 22, 2003 7:17 PM To: AccessD - VBA Subject: [dba-VB] Is there anyone out there? John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From ghazzard at aelfen.net Sun Feb 23 08:36:43 2003 From: ghazzard at aelfen.net (Gregory K. Hazzard) Date: Sun, 23 Feb 2003 08:36:43 -0600 Subject: [dba-VB] VB6: TreeView Controls and Drag-N-Drop Message-ID: <001801c2db48$fce3a1e0$0200a8c0@greg> Since John was so concerned about the lack of information freely flowing about this list, I thought I?d get something started that?s been puzzling me for nigh on a week now. I?m building a VB app that has a TreeView control (tvwDirectoryList) and a File List Box (filFileList). What?s been puzzling me is that there isn?t a lot of information on TreeView controls for VB6 and I?m having a deuce of a time trying to figure out how to get drag and drop to work. I want to be able to drag files from the file list to different folders in the tree view, and while I found the properties to turn on to make the TreeView a drop target, and make the file list willing to let you drag items from it, that?s as far as I have been able to get. I can click on a file, and drag it across, and I get the drag icon (that little greyed out box) but it doesn?t actually select anything in the TreeView to drop the file on, and when I release the mouse button, no dropping occurs. Does anyone have any documentation or an example or even a will guess about how this should occur? Thanks. Gregory K. Hazzard http://www.aelfen.net mailto:ghazzard at aelfen.net "I'm not saying it's safe for humans. I'm not saying it's unsafe for humans. All I'm saying is it that it makes hermaphrodites out of frogs." - Tyrone B. Hayes of the University of California at Berkeley, on the effects of Atrazine on human beings. From carbonnb at sympatico.ca Sun Feb 23 08:53:10 2003 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Sun, 23 Feb 2003 09:53:10 -0500 Subject: [dba-VB] VB6: TreeView Controls and Drag-N-Drop In-Reply-To: <001801c2db48$fce3a1e0$0200a8c0@greg> Message-ID: <3E589A06.24955.628E25@localhost> On 23 Feb 2003 at 8:36, Gregory K. Hazzard wrote: > Does anyone have any documentation or an example or even a will guess > about how this should occur? Thanks. Gregory, There really isn't a lot of documentation about TreeViews in general. I am assuming that you have checked MSDN, if not here is a link that has a bunch of info, it's actually a search result from MSDN, http://search.microsoft.com/default.asp?qu=treeview+drag+and+dr op&boolean=ALL&nq=NEW&so=RECCNT&p=1&ig=01&ig=03&ig= 04&ig=05&ig=06&i=00&i=01&i=02&i=03&i=04&i=05&i=06&i=07&i= 08&i=09&i=10&i=11&i=12&i=13&i=14&i=15&i=16&i=17&i=18&i=19 &i=20&i=21&i=22&i=23&i=24&i=25&i=26&i=27&i=28&i=29&i=30&i =31&i=32&i=33&i=34&i=35&i=36&i=37&i=38&i=39&i=40&i=41&sit eid=us/dev Or to make it easier: http://tinyurl.com/69tv You can also look at Arthur Fuller's article in DBA's M2M Newsletter here: http://www.databaseadvisors.com/newsletters/news0109.htm It deals with Adding a TreeView to Access, but it may give you some leads. Finally a google search, http://www.google.ca/search?sourceid=navclient&q=treeview+drag +and+drop, will give you tons of links. -- Bryan Carbonnell - carbonnb at sympatico.ca It was difficult to code. So it damn well better be difficult to use. From DWUTKA at marlow.com Mon Feb 24 11:20:46 2003 From: DWUTKA at marlow.com (Drew Wutka) Date: Mon, 24 Feb 2003 11:20:46 -0600 Subject: [dba-VB] Is there anyone out there? Message-ID: <2F8793082E00D4119A1700B0D0216BF801D82170@main2.marlow.com> This list hasn't gotten much traffic since I've been on it. Drew -----Original Message----- From: John W. Colby [mailto:jcolby at colbyconsulting.com] Sent: Sunday, February 23, 2003 6:21 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Is there anyone out there? Well maybe it's time to fire this list up! John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of John Ruff Sent: Saturday, February 22, 2003 11:02 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Is there anyone out there? Yes John, but I haven't received anything sind the 18th. John V. Ruff - The Eternal Optimist :-) "Commit to the Lord whatever you do, and your plans will succeed." Proverbs 16:3 -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com] On Behalf Of John W. Colby Sent: Saturday, February 22, 2003 7:17 PM To: AccessD - VBA Subject: [dba-VB] Is there anyone out there? John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From DWUTKA at marlow.com Mon Feb 24 11:25:48 2003 From: DWUTKA at marlow.com (Drew Wutka) Date: Mon, 24 Feb 2003 11:25:48 -0600 Subject: [dba-VB] VB6: TreeView Controls and Drag-N-Drop Message-ID: <2F8793082E00D4119A1700B0D0216BF801D82171@main2.marlow.com> I have a drag and drop treeview setup. I can send the form so you can see the code if you want. The app itself would be a pain to try to setup for just that example. What it is, is a 'control' window I have that has a 'client' app on every machine in my company. Then we admins (The IS department) can open this control form for any user that is online. It has all sorts of bells and whistles, however, there is one tab that has a 'Windows Explorer' like set of treeviews. It then doubles that set, to display the local machine. (So the top two are the remote user, and the bottom two are the local user). You can then 'drag and drop' files between the two. Let me know if you want me to send you the form I am talking about. Drew -----Original Message----- From: Gregory K. Hazzard [mailto:ghazzard at aelfen.net] Sent: Sunday, February 23, 2003 8:37 AM To: 'Visual Basic Mailing List' Subject: [dba-VB] VB6: TreeView Controls and Drag-N-Drop Since John was so concerned about the lack of information freely flowing about this list, I thought I'd get something started that's been puzzling me for nigh on a week now. I'm building a VB app that has a TreeView control (tvwDirectoryList) and a File List Box (filFileList). What's been puzzling me is that there isn't a lot of information on TreeView controls for VB6 and I'm having a deuce of a time trying to figure out how to get drag and drop to work. I want to be able to drag files from the file list to different folders in the tree view, and while I found the properties to turn on to make the TreeView a drop target, and make the file list willing to let you drag items from it, that's as far as I have been able to get. I can click on a file, and drag it across, and I get the drag icon (that little greyed out box) but it doesn't actually select anything in the TreeView to drop the file on, and when I release the mouse button, no dropping occurs. Does anyone have any documentation or an example or even a will guess about how this should occur? Thanks. Gregory K. Hazzard http://www.aelfen.net mailto:ghazzard at aelfen.net "I'm not saying it's safe for humans. I'm not saying it's unsafe for humans. All I'm saying is it that it makes hermaphrodites out of frogs." - Tyrone B. Hayes of the University of California at Berkeley, on the effects of Atrazine on human beings. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jcolby at colbyconsulting.com Mon Feb 24 20:58:10 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Mon, 24 Feb 2003 21:58:10 -0500 Subject: [dba-VB] .Net - Beyond Hello World Message-ID: Well, I just designed my first bound form, bound to a table in SQL Server. Used a data grid to display the data and a button to load the data into the grid. Total time (following the instructions in help) ~ 1/2 hour. Not bad I think. I already had about 1/2 of my billing app data in SQL Server. So the first attempt to crawl was a smashing success. This is completely different from how I've done things in the past. They do have a pretty nice SQL builder. Not as nice as Access' but I have never seen one as nice as Access'. It reminds me of the one in SQL Server in fact. Maybe it is? OK, so I won't have a complete port of the db with three tiers and a matching web interface by tomorrow. How about a bound form of a single simple table by tomorrow? ;-) I must admit though, I like it so far. It is waaaay different from Access, but it is also light-years closer to Access than the old VB was I think. Not that I was ever an expert in the old VB, I will admit. I am startled at how easy it is to connect to data out in the SQL Server. All you need to know is the name of the machine with SQL Server running (and authorization on that machine / SQL Server). Setting up the connections to the database and table within the db is all wizard driven. Couldn't be much easier than that, unless you count Access' ADP environment. I think getting connected in .net may even have been easier. I haven't found a table builder interface similar to Access' though. I suspect that you have to go direct to SQL Server's enterprise manager and build them there. Or use an Access ADP to build them. OMG, I just discovered that (of course) the form is not a child doc to the environment. This is VB after all. I clicked on the button in the task bar and it popped up right over my email message. I was expecting to be transported back to the .net environment and see the form there. Since the form exists in design view in the .net environment, that means that I can see it in design view and form view at the same time. Yes I know, I'm easily amazed. More tomorrow. John W. Colby Colby Consulting www.ColbyConsulting.com ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com From jcolby at colbyconsulting.com Mon Feb 24 23:45:11 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Tue, 25 Feb 2003 00:45:11 -0500 Subject: [dba-VB] Inheritance Message-ID: I have just finished two articles regarding TRUE IMPLEMENTATION INHERITANCE in .Net. http://www.microsoft.com/mspress/developer/feature/040402.asp The other was buried in a frame (?) which did not show the url when I burrowed down to it. MSDN Home > MSDN Library > .NET Development > Visual Studio .NET > Articles and Columns > Columns > Adventures in Visual Basic.net > Doing collections with inheritance Apparently VB 6 had only interface inheritance, which if you are familiar with and accustomed to implementation inheritance, pretty much sucks. .Net appears to have the real McCoy. Joy in Mudville folks. BTW, an example of some of the example code available for VB.Net: http://msdn.microsoft.com/vbasic/downloads/samples/default.asp John W. Colby Colby Consulting www.ColbyConsulting.com ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com From paul.hartland at fsmail.net Tue Feb 25 03:42:40 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 25 Feb 2003 9:42:40 +0000 Subject: [dba-VB] SQL Server 7 - Stored Procedure Help - Quite Urgent. Message-ID: <20030225094240.LAKO2415.fep03-svc.ttys.com@localhost> To all, Watch for Word Wrap............... Being quite a novice with Stored Procedures on SQL Server 7.0, I'm looking for some pretty urgent help at the moment. I have two tables, lets say Table A & Table B. Table A is my master table, and Table B is a temporary table. Before Table be gets populated with any data, every existing record is deleted so I start with a fresh table so to speak. Table B consists of 3 fields PayrollNo, JobDate, JobType (these fields are also in the master table, but the master table is used to contain other consting information, which is entered at a later date). What I would like is a Stored Procedure which would Insert Table B contents into Table A, but making sure that I don't insert any duplicates into Table A (something like an unmatched query in access but with an Insert also). i.e. Table A Table B payroll jobdate jobtype id payroll jobdate jobtype 999001 01/01/01 0 1 999001 01/01/01 0 999001 01/01/01 2 2 999001 01/01/01 1 999002 01/01/01 2 3 999001 01/01/01 2 4 999002 01/01/01 0 5 999002 01/01/01 1 6 999002 01/01/01 2 So when I invoke the stored procedure, it would insert records 2, 4 and 5 from Table B into Table A........Anyone any idea what I'm on about, if so can anybody please help....... Thanks in advance Paul Hartland __________________________________________________________________________ Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month after that. For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890 From paul.hartland at fsmail.net Tue Feb 25 03:42:40 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 25 Feb 2003 9:42:40 +0000 Subject: [dba-VB] [dba-SQLServer]SQL Server 7 - Stored Procedure Help - Quite Urgent. Message-ID: <20030225094240.LAKO2415.fep03-svc.ttys.com@localhost> To all, Watch for Word Wrap............... Being quite a novice with Stored Procedures on SQL Server 7.0, I'm looking for some pretty urgent help at the moment. I have two tables, lets say Table A & Table B. Table A is my master table, and Table B is a temporary table. Before Table be gets populated with any data, every existing record is deleted so I start with a fresh table so to speak. Table B consists of 3 fields PayrollNo, JobDate, JobType (these fields are also in the master table, but the master table is used to contain other consting information, which is entered at a later date). What I would like is a Stored Procedure which would Insert Table B contents into Table A, but making sure that I don't insert any duplicates into Table A (something like an unmatched query in access but with an Insert also). i.e. Table A Table B payroll jobdate jobtype id payroll jobdate jobtype 999001 01/01/01 0 1 999001 01/01/01 0 999001 01/01/01 2 2 999001 01/01/01 1 999002 01/01/01 2 3 999001 01/01/01 2 4 999002 01/01/01 0 5 999002 01/01/01 1 6 999002 01/01/01 2 So when I invoke the stored procedure, it would insert records 2, 4 and 5 from Table B into Table A........Anyone any idea what I'm on about, if so can anybody please help....... Thanks in advance Paul Hartland __________________________________________________________________________ Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month after that. For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890 _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From scott.marcus at ae.ge.com Tue Feb 25 05:48:29 2003 From: scott.marcus at ae.ge.com (Marcus, Scott (GEAE, RHI Consulting)) Date: Tue, 25 Feb 2003 06:48:29 -0500 Subject: [dba-VB] SQL Server 7 - Stored Procedure Help - Quite Urgent. Message-ID: <768A0EA6FF8CB34FA522978966E5D52E559D10@bwam02msx.ae.ge.com> Paul, The following is untested and may need tweaking, but I think it will at least get you started... INSERT INTO [Table A] payroll , jobdate, jobtype SELECT B.payroll, B.jobdate, B.jobtype FROM [Table B] as B WHERE B.id NOT IN (SELECT BB.id FROM [Table B] as BB, [Table A] as A WHERE BB.payroll = A.payroll AND BB.jobdate = A.jobdate AND BB.jobtype = A.jobtype) Scott Marcus -----Original Message----- From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] Sent: Tuesday, February 25, 2003 4:43 AM To: dba-SQLServer at databaseadvisors.com; accessd at databaseadvisors.com; dba-vb at databaseadvisors.com Subject: [dba-VB] SQL Server 7 - Stored Procedure Help - Quite Urgent. To all, Watch for Word Wrap............... Being quite a novice with Stored Procedures on SQL Server 7.0, I'm looking for some pretty urgent help at the moment. I have two tables, lets say Table A & Table B. Table A is my master table, and Table B is a temporary table. Before Table be gets populated with any data, every existing record is deleted so I start with a fresh table so to speak. Table B consists of 3 fields PayrollNo, JobDate, JobType (these fields are also in the master table, but the master table is used to contain other consting information, which is entered at a later date). What I would like is a Stored Procedure which would Insert Table B contents into Table A, but making sure that I don't insert any duplicates into Table A (something like an unmatched query in access but with an Insert also). i.e. Table A Table B payroll jobdate jobtype id payroll jobdate jobtype 999001 01/01/01 0 1 999001 01/01/01 0 999001 01/01/01 2 2 999001 01/01/01 1 999002 01/01/01 2 3 999001 01/01/01 2 4 999002 01/01/01 0 5 999002 01/01/01 1 6 999002 01/01/01 2 So when I invoke the stored procedure, it would insert records 2, 4 and 5 from Table B into Table A........Anyone any idea what I'm on about, if so can anybody please help....... Thanks in advance Paul Hartland __________________________________________________________________________ Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month after that. For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890 _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From ghazzard at aelfen.net Mon Feb 24 15:02:24 2003 From: ghazzard at aelfen.net (Gregory K. Hazzard) Date: Mon, 24 Feb 2003 15:02:24 -0600 Subject: [dba-VB] VB6: TreeView Controls and Drag-N-Drop In-Reply-To: <2F8793082E00D4119A1700B0D0216BF801D82171@main2.marlow.com> Message-ID: <002e01c2dc48$08657ca0$0200a8c0@greg> Drew, That sounds great. You can send me a copy off list at ghazzard at aelfen.net. I really appreciate that. I've been reading through the pages that Bryan suggested, but have been unable thus far to get DnD working. The examples seem to work well enough, but I am obviously not doing something correctly in my app. Thanks Greg -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Monday, February 24, 2003 11:26 AM To: 'dba-vb at databaseadvisors.com' Subject: RE: [dba-VB] VB6: TreeView Controls and Drag-N-Drop I have a drag and drop treeview setup. I can send the form so you can see the code if you want... Let me know if you want me to send you the form I am talking about. Drew From my.lists at verizon.net Tue Feb 25 10:35:37 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Tue, 25 Feb 2003 08:35:37 -0800 Subject: [dba-VB] Re: [dba-SQLServer]SQL Server 7 - Stored Procedure Help - Quite Urgent. References: <20030225094240.LAKO2415.fep03-svc.ttys.com@localhost> Message-ID: <004c01c2dceb$f118b9f0$b615010a@FHTAPIA> How about .... Insert into tableA (Payroll, jobdate, jobtype) Select Payroll, jobdate, jobtype From tableB AS B WHERE NOT EXISTS( Select Payroll, jobdate, jobtype From tableA AS A Where B.Payroll = A.Payroll AND B.Jobdate = A.JobDate AND B.JobType = A.JobType) I could have used a NOT IN clause but then NOT IN can have some serious side effects...In General the above statement will be evaluated by the engine where as a NOT IN could miss evaluating the B alias in the where clause and cause it to report bad data, using Exists (or NOT EXISTS) usually yields faster performance and the assurance that it evaluates correctly. -Francisco http://rcm.netfirms.com ----- Original Message ----- From: To: ; ; Sent: Tuesday, February 25, 2003 1:42 AM Subject: [dba-SQLServer]SQL Server 7 - Stored Procedure Help - Quite Urgent. : To all, : : Watch for Word Wrap............... : : Being quite a novice with Stored Procedures on SQL Server 7.0, I'm looking for some pretty urgent help at the moment. I have two tables, lets say Table A & Table B. Table A is my master table, and Table B is a temporary table. Before Table be gets populated with any data, every existing record is deleted so I start with a fresh table so to speak. Table B consists of 3 fields PayrollNo, JobDate, JobType (these fields are also in the master table, but the master table is used to contain other consting information, which is entered at a later date). : : What I would like is a Stored Procedure which would Insert Table B contents into Table A, but making sure that I don't insert any duplicates into Table A (something like an unmatched query in access but with an Insert also). i.e. : : Table A Table B : payroll jobdate jobtype id payroll jobdate jobtype : 999001 01/01/01 0 1 999001 01/01/01 0 : 999001 01/01/01 2 2 999001 01/01/01 1 : 999002 01/01/01 2 3 999001 01/01/01 2 : 4 999002 01/01/01 0 : 5 999002 01/01/01 1 : 6 999002 01/01/01 2 : : So when I invoke the stored procedure, it would insert records 2, 4 and 5 from Table B into Table A........Anyone any idea what I'm on about, if so can anybody please help....... : : Thanks in advance : : Paul Hartland : : __________________________________________________________________________ : Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for : your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month : after that. : : For more information visit http://www.freeserve.com/time/ or call free on : 0800 970 8890 : : : _______________________________________________ : dba-SQLServer mailing list : dba-SQLServer at databaseadvisors.com : http://databaseadvisors.com/mailman/listinfo/dba-sqlserver : http://www.databaseadvisors.com : From my.lists at verizon.net Tue Feb 25 10:35:37 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Tue, 25 Feb 2003 08:35:37 -0800 Subject: [dba-VB] Re: [dba-SQLServer]SQL Server 7 - Stored Procedure Help - Quite Urgent. References: <20030225094240.LAKO2415.fep03-svc.ttys.com@localhost> Message-ID: <004c01c2dceb$f118b9f0$b615010a@FHTAPIA> How about .... Insert into tableA (Payroll, jobdate, jobtype) Select Payroll, jobdate, jobtype From tableB AS B WHERE NOT EXISTS( Select Payroll, jobdate, jobtype From tableA AS A Where B.Payroll = A.Payroll AND B.Jobdate = A.JobDate AND B.JobType = A.JobType) I could have used a NOT IN clause but then NOT IN can have some serious side effects...In General the above statement will be evaluated by the engine where as a NOT IN could miss evaluating the B alias in the where clause and cause it to report bad data, using Exists (or NOT EXISTS) usually yields faster performance and the assurance that it evaluates correctly. -Francisco http://rcm.netfirms.com ----- Original Message ----- From: To: ; ; Sent: Tuesday, February 25, 2003 1:42 AM Subject: [dba-SQLServer]SQL Server 7 - Stored Procedure Help - Quite Urgent. : To all, : : Watch for Word Wrap............... : : Being quite a novice with Stored Procedures on SQL Server 7.0, I'm looking for some pretty urgent help at the moment. I have two tables, lets say Table A & Table B. Table A is my master table, and Table B is a temporary table. Before Table be gets populated with any data, every existing record is deleted so I start with a fresh table so to speak. Table B consists of 3 fields PayrollNo, JobDate, JobType (these fields are also in the master table, but the master table is used to contain other consting information, which is entered at a later date). : : What I would like is a Stored Procedure which would Insert Table B contents into Table A, but making sure that I don't insert any duplicates into Table A (something like an unmatched query in access but with an Insert also). i.e. : : Table A Table B : payroll jobdate jobtype id payroll jobdate jobtype : 999001 01/01/01 0 1 999001 01/01/01 0 : 999001 01/01/01 2 2 999001 01/01/01 1 : 999002 01/01/01 2 3 999001 01/01/01 2 : 4 999002 01/01/01 0 : 5 999002 01/01/01 1 : 6 999002 01/01/01 2 : : So when I invoke the stored procedure, it would insert records 2, 4 and 5 from Table B into Table A........Anyone any idea what I'm on about, if so can anybody please help....... : : Thanks in advance : : Paul Hartland : : __________________________________________________________________________ : Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for : your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month : after that. : : For more information visit http://www.freeserve.com/time/ or call free on : 0800 970 8890 : : : _______________________________________________ : dba-SQLServer mailing list : dba-SQLServer at databaseadvisors.com : http://databaseadvisors.com/mailman/listinfo/dba-sqlserver : http://www.databaseadvisors.com : _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From jcolby at colbyconsulting.com Tue Feb 25 19:31:41 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Tue, 25 Feb 2003 20:31:41 -0500 Subject: [dba-VB] OT: .NET - Data grid syncs to combo Message-ID: I have moved my billing database BE to sql server, hooked up my existing Access FE and continue to use that as I play with the data in .Net. In the meantime, in VB.Net I created a bound form last night (or I think it's bound anyway, not positive). It was using an OLEConnection, which tonight I switched to an SQL connection. It's supposed to be faster. The form simply displays the state table (all fields) in a data grid. You really can't get much simpler than that, though I suppose for something like a state table it would suffice. I decided to try and figure out how to use a combo box to select a record in the data grid. Dragged and dropped a combo to the form, hooked the datasource property to the same data source I was using for the form / data grid. Set the display member (the field displayed) to ST_Abrev (the 2 char code), and the value member (the PK of the table) to ST_ID (the PK of the table). Opened the form, selected the state in the combo and the data grid moved the record selector to that state. Man was THAT easy! So the combination of everything allows the combo to just act as a record selector without all of the code required in Access. Not knowing exactly what is happening, I have to assume that the combo selecting something causes a record selector pointer in the data set object to point somewhere. Since the data grid is using the same data set object, the data grid displays the newly selected record. Just a guess of course. This stuff is way over my head. But so easy (if I just understood what I was doing). Cool beans man! John W. Colby Colby Consulting www.ColbyConsulting.com ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com From scott.marcus at ae.ge.com Wed Feb 26 07:10:11 2003 From: scott.marcus at ae.ge.com (Marcus, Scott (GEAE, RHI Consulting)) Date: Wed, 26 Feb 2003 08:10:11 -0500 Subject: [dba-VB] OT: .NET - Data grid syncs to combo Message-ID: <768A0EA6FF8CB34FA522978966E5D52E559D14@bwam02msx.ae.ge.com> John, Less than a year ago, I decided to convert an access application to .Net. Within one day, I had a working prototype in both VB.Net and C#.Net. It was extremely easy. You are right in that the combo changes the data set which in turn affects all controls linked to it. Just for kicks, I also bought Borland C++ and did the same thing (within a day). My conclusion is that all the major tools these days are offering click and create applications. It's just a matter of picking the technology you think is most marketable. I don't think you can go wrong in learning .Net. I'm still torn as to what technology to pick (although the next version of .Net is coming out in April and is just a $29 upgrade for previous .Net owners and includes the capability to make Pocket PC.Net applications). I'm very interested in discussing the techniques developers are using to convert Access applications to .Net. Hoping to find intelligent useful discussion on .Net, Scott Marcus -----Original Message----- From: John W. Colby [mailto:jcolby at colbyconsulting.com] Sent: Tuesday, February 25, 2003 8:32 PM To: AccessD Cc: AccessD - VBA Subject: [dba-VB] OT: .NET - Data grid syncs to combo I have moved my billing database BE to sql server, hooked up my existing Access FE and continue to use that as I play with the data in .Net. In the meantime, in VB.Net I created a bound form last night (or I think it's bound anyway, not positive). It was using an OLEConnection, which tonight I switched to an SQL connection. It's supposed to be faster. The form simply displays the state table (all fields) in a data grid. You really can't get much simpler than that, though I suppose for something like a state table it would suffice. I decided to try and figure out how to use a combo box to select a record in the data grid. Dragged and dropped a combo to the form, hooked the datasource property to the same data source I was using for the form / data grid. Set the display member (the field displayed) to ST_Abrev (the 2 char code), and the value member (the PK of the table) to ST_ID (the PK of the table). Opened the form, selected the state in the combo and the data grid moved the record selector to that state. Man was THAT easy! So the combination of everything allows the combo to just act as a record selector without all of the code required in Access. Not knowing exactly what is happening, I have to assume that the combo selecting something causes a record selector pointer in the data set object to point somewhere. Since the data grid is using the same data set object, the data grid displays the newly selected record. Just a guess of course. This stuff is way over my head. But so easy (if I just understood what I was doing). Cool beans man! John W. Colby Colby Consulting www.ColbyConsulting.com ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jcolby at colbyconsulting.com Wed Feb 26 08:48:45 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Wed, 26 Feb 2003 09:48:45 -0500 Subject: [dba-VB] OT: .NET - Data grid syncs to combo In-Reply-To: <768A0EA6FF8CB34FA522978966E5D52E559D14@bwam02msx.ae.ge.com> Message-ID: Marcus, I started programming in the early 80s and in the late 80s ended up in Turbo Pascal which went OO. It was extremely powerful (for the day) yet strongly typed unlike the C languages of the day. I purchased all of the Borland toolboxes, the application framework etc., bought books and really got into the whole inheritance thing I worked in that until I moved to Access in the early 90s. While Access was a huge step up in drag and drop design functionality, and radically different (and extremely powerful) in the use of the event driven paradigm, it was a huge step backwards on the OO side since it had nothing at all that even remotely resembled inheritance. .Net is almost like old home week. It is a highly structure system, with a huge base framework that provides instant functionality like I have never seen before, with true inheritance, with this new XML thingy built right in, with access to data from anywhere. The biggest problem I foresee is simply that the vast scope makes learning it a chore. But is so incredibly powerful, it is simply amazing. I was reading a tech paper last night where they built up XML docs in a word processor, saved them to a file (just for demo purposes), then simply used a built in property of a built in framework class to load the file and bind to that data. But not just bind as we know it. They bound the data to properties of the form. Any property of any control (and forms inherit from the control class so I'm told) can be bound to data. Which makes possible things like fore color or back color or font a property of the record. Painless storage of size / location of forms. Painless user modification and storage of color preferences. If you can imagine it, you can store it in a table and drive it from there. But not just tables. The objects that actually load and expose the data can use XML as easily as they can use tables. They can use arrays. The arrays can be simple arrays of values, or arrays of objects - CLASSES for example, and you can be binding a control property to a property of the class. This stuff is truly awesome. Built in collection functionality for stacks, queues, arrays that you can just dynamically add new members to (not to mention your simple collection). And anything can be sub classed to add your own functionality. Not just interface inheritance, but true implementation inheritance. Do you want a collection that stores an object, with built in checking to prevent storing anything but that object? Just subclass the collection class and over ride the .add method, typing the object input parameter. Done! As can be seen, I am truly psyched about this thing. I did a little programming in VB (I wish it had been more now) but it was so difficult to get at data (and I do databases) so it just didn't offer enough to make it worth the switch. .Net on the other hand is an order of magnitude more powerful, and getting at data is second nature. And as if all that isn't enough, you can pick your language. Amazing stuff. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Marcus, Scott (GEAE, RHI Consulting) Sent: Wednesday, February 26, 2003 8:10 AM To: 'dba-vb at databaseadvisors.com' Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo John, Less than a year ago, I decided to convert an access application to .Net. Within one day, I had a working prototype in both VB.Net and C#.Net. It was extremely easy. You are right in that the combo changes the data set which in turn affects all controls linked to it. Just for kicks, I also bought Borland C++ and did the same thing (within a day). My conclusion is that all the major tools these days are offering click and create applications. It's just a matter of picking the technology you think is most marketable. I don't think you can go wrong in learning .Net. I'm still torn as to what technology to pick (although the next version of .Net is coming out in April and is just a $29 upgrade for previous .Net owners and includes the capability to make Pocket PC.Net applications). I'm very interested in discussing the techniques developers are using to convert Access applications to .Net. Hoping to find intelligent useful discussion on .Net, Scott Marcus -----Original Message----- From: John W. Colby [mailto:jcolby at colbyconsulting.com] Sent: Tuesday, February 25, 2003 8:32 PM To: AccessD Cc: AccessD - VBA Subject: [dba-VB] OT: .NET - Data grid syncs to combo I have moved my billing database BE to sql server, hooked up my existing Access FE and continue to use that as I play with the data in .Net. In the meantime, in VB.Net I created a bound form last night (or I think it's bound anyway, not positive). It was using an OLEConnection, which tonight I switched to an SQL connection. It's supposed to be faster. The form simply displays the state table (all fields) in a data grid. You really can't get much simpler than that, though I suppose for something like a state table it would suffice. I decided to try and figure out how to use a combo box to select a record in the data grid. Dragged and dropped a combo to the form, hooked the datasource property to the same data source I was using for the form / data grid. Set the display member (the field displayed) to ST_Abrev (the 2 char code), and the value member (the PK of the table) to ST_ID (the PK of the table). Opened the form, selected the state in the combo and the data grid moved the record selector to that state. Man was THAT easy! So the combination of everything allows the combo to just act as a record selector without all of the code required in Access. Not knowing exactly what is happening, I have to assume that the combo selecting something causes a record selector pointer in the data set object to point somewhere. Since the data grid is using the same data set object, the data grid displays the newly selected record. Just a guess of course. This stuff is way over my head. But so easy (if I just understood what I was doing). Cool beans man! John W. Colby Colby Consulting www.ColbyConsulting.com ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 5100 bytes Desc: not available URL: From scott.marcus at ae.ge.com Wed Feb 26 09:31:45 2003 From: scott.marcus at ae.ge.com (Marcus, Scott (GEAE, RHI Consulting)) Date: Wed, 26 Feb 2003 10:31:45 -0500 Subject: [dba-VB] OT: .NET - Data grid syncs to combo Message-ID: <768A0EA6FF8CB34FA522978966E5D52E559D15@bwam02msx.ae.ge.com> John, One of the issues that I know I will run into is that my clients are going to want top see all of this data (like Access does...looks very Excel like...my clients are very Excel savy) in a data grid. Previous versions of VB had limited built in data grid capabilities (I don't want to spend another $1K on 3rd party tools). If the data grid is alot closer to what Access provides that would be great. I haven't messed much with .Net since my initial "playing around" a year ago, but I do need to get heavily into it. Any input on the data grid capabilities? Scott Marcus > -----Original Message----- > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > Sent: Wednesday, February 26, 2003 9:49 AM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > Marcus, > > I started programming in the early 80s and in the late 80s ended up in Turbo > Pascal which went OO. It was extremely powerful (for the day) yet strongly > typed unlike the C languages of the day. I purchased all of the Borland > toolboxes, the application framework etc., bought books and really got into > the whole inheritance thing > > I worked in that until I moved to Access in the early 90s. While Access was a > huge step up in drag and drop design functionality, and radically different > (and extremely powerful) in the use of the event driven paradigm, it was a > huge step backwards on the OO side since it had nothing at all that even > remotely resembled inheritance. > > .Net is almost like old home week. It is a highly structure system, with a > huge base framework that provides instant functionality like I have never seen > before, with true inheritance, with this new XML thingy built right in, with > access to data from anywhere. The biggest problem I foresee is simply that > the vast scope makes learning it a chore. But is so incredibly powerful, it > is simply amazing. > > I was reading a tech paper last night where they built up XML docs in a word > processor, saved them to a file (just for demo purposes), then simply used a > built in property of a built in framework class to load the file and bind to > that data. But not just bind as we know it. They bound the data to > properties of the form. Any property of any control (and forms inherit from > the control class so I'm told) can be bound to data. Which makes possible > things like fore color or back color or font a property of the record. > Painless storage of size / location of forms. Painless user modification and > storage of color preferences. If you can imagine it, you can store it in a > table and drive it from there. > > But not just tables. The objects that actually load and expose the data can > use XML as easily as they can use tables. They can use arrays. The arrays > can be simple arrays of values, or arrays of objects - CLASSES for example, > and you can be binding a control property to a property of the class. > > This stuff is truly awesome. Built in collection functionality for stacks, > queues, arrays that you can just dynamically add new members to (not to > mention your simple collection). And anything can be sub classed to add your > own functionality. Not just interface inheritance, but true implementation > inheritance. Do you want a collection that stores an object, with built in > checking to prevent storing anything but that object? Just subclass the > collection class and over ride the .add method, typing the object input > parameter. Done! > > As can be seen, I am truly psyched about this thing. I did a little > programming in VB (I wish it had been more now) but it was so difficult to get > at data (and I do databases) so it just didn't offer enough to make it worth > the switch. .Net on the other hand is an order of magnitude more powerful, > and getting at data is second nature. > > And as if all that isn't enough, you can pick your language. > > Amazing stuff. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: dba-vb-admin at databaseadvisors.com > [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Marcus, Scott > (GEAE, RHI Consulting) > Sent: Wednesday, February 26, 2003 8:10 AM > To: 'dba-vb at databaseadvisors.com' > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > John, > > Less than a year ago, I decided to convert an access application to .Net. > Within > one day, I had a working prototype in both VB.Net and C#.Net. It was extremely > easy. You are right in that the combo changes the data set which in turn > affects > all controls linked to it. Just for kicks, I also bought Borland C++ and did > the > same thing (within a day). > > My conclusion is that all the major tools these days are offering click and > create applications. It's just a matter of picking the technology you think is > most marketable. I don't think you can go wrong in learning .Net. I'm still > torn > as to what technology to pick (although the next version of .Net is coming out > in April and is just a $29 upgrade for previous .Net owners and includes the > capability to make Pocket PC.Net applications). > > I'm very interested in discussing the techniques developers are using to > convert > Access applications to .Net. > > Hoping to find intelligent useful discussion on .Net, > > Scott Marcus > > -----Original Message----- > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > Sent: Tuesday, February 25, 2003 8:32 PM > To: AccessD > Cc: AccessD - VBA > Subject: [dba-VB] OT: .NET - Data grid syncs to combo > > > I have moved my billing database BE to sql server, hooked up my existing > Access FE and continue to use that as I play with the data in .Net. > > In the meantime, in VB.Net I created a bound form last night (or I think > it's bound anyway, not positive). It was using an OLEConnection, which > tonight I switched to an SQL connection. It's supposed to be faster. The > form simply displays the state table (all fields) in a data grid. You > really can't get much simpler than that, though I suppose for something like > a state table it would suffice. > > I decided to try and figure out how to use a combo box to select a record in > the data grid. Dragged and dropped a combo to the form, hooked the > datasource property to the same data source I was using for the form / data > grid. Set the display member (the field displayed) to ST_Abrev (the 2 char > code), and the value member (the PK of the table) to ST_ID (the PK of the > table). Opened the form, selected the state in the combo and the data grid > moved the record selector to that state. > > Man was THAT easy! So the combination of everything allows the combo to > just act as a record selector without all of the code required in Access. > Not knowing exactly what is happening, I have to assume that the combo > selecting something causes a record selector pointer in the data set object > to point somewhere. Since the data grid is using the same data set object, > the data grid displays the newly selected record. > > Just a guess of course. This stuff is way over my head. > > But so easy (if I just understood what I was doing). > > Cool beans man! > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > ---------------------------------------------------- > Is email taking over your day? Manage your time with eMailBoss. > Try it free! http://www.eMailBoss.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > > > ---------------------------------------------------- > Is email taking over your day? Manage your time with eMailBoss. > Try it free! http://www.eMailBoss.com From jcolby at colbyconsulting.com Wed Feb 26 09:41:23 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Wed, 26 Feb 2003 10:41:23 -0500 Subject: [dba-VB] OT: .NET - Data grid syncs to combo In-Reply-To: <768A0EA6FF8CB34FA522978966E5D52E559D15@bwam02msx.ae.ge.com> Message-ID: I don't use the data grid in Access. I was put off by the potential problems of users changing the columns till one disappeared (and the support calls that ensue). I can tell you that the data grid looks similar to Access' form is switched to datasheet. The biggest difference is that if you expose the column heading, you can click on the heading and it sorts on that column. Click again and it sorts in reverse order. I am not fluent enough in data grids in either technology to tell you much I'm afraid. What capabilities are you looking for? John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Marcus, Scott (GEAE, RHI Consulting) Sent: Wednesday, February 26, 2003 10:32 AM To: 'dba-vb at databaseadvisors.com' Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo John, One of the issues that I know I will run into is that my clients are going to want top see all of this data (like Access does...looks very Excel like...my clients are very Excel savy) in a data grid. Previous versions of VB had limited built in data grid capabilities (I don't want to spend another $1K on 3rd party tools). If the data grid is alot closer to what Access provides that would be great. I haven't messed much with .Net since my initial "playing around" a year ago, but I do need to get heavily into it. Any input on the data grid capabilities? Scott Marcus > -----Original Message----- > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > Sent: Wednesday, February 26, 2003 9:49 AM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > Marcus, > > I started programming in the early 80s and in the late 80s ended up in Turbo > Pascal which went OO. It was extremely powerful (for the day) yet strongly > typed unlike the C languages of the day. I purchased all of the Borland > toolboxes, the application framework etc., bought books and really got into > the whole inheritance thing > > I worked in that until I moved to Access in the early 90s. While Access was a > huge step up in drag and drop design functionality, and radically different > (and extremely powerful) in the use of the event driven paradigm, it was a > huge step backwards on the OO side since it had nothing at all that even > remotely resembled inheritance. > > .Net is almost like old home week. It is a highly structure system, with a > huge base framework that provides instant functionality like I have never seen > before, with true inheritance, with this new XML thingy built right in, with > access to data from anywhere. The biggest problem I foresee is simply that > the vast scope makes learning it a chore. But is so incredibly powerful, it > is simply amazing. > > I was reading a tech paper last night where they built up XML docs in a word > processor, saved them to a file (just for demo purposes), then simply used a > built in property of a built in framework class to load the file and bind to > that data. But not just bind as we know it. They bound the data to > properties of the form. Any property of any control (and forms inherit from > the control class so I'm told) can be bound to data. Which makes possible > things like fore color or back color or font a property of the record. > Painless storage of size / location of forms. Painless user modification and > storage of color preferences. If you can imagine it, you can store it in a > table and drive it from there. > > But not just tables. The objects that actually load and expose the data can > use XML as easily as they can use tables. They can use arrays. The arrays > can be simple arrays of values, or arrays of objects - CLASSES for example, > and you can be binding a control property to a property of the class. > > This stuff is truly awesome. Built in collection functionality for stacks, > queues, arrays that you can just dynamically add new members to (not to > mention your simple collection). And anything can be sub classed to add your > own functionality. Not just interface inheritance, but true implementation > inheritance. Do you want a collection that stores an object, with built in > checking to prevent storing anything but that object? Just subclass the > collection class and over ride the .add method, typing the object input > parameter. Done! > > As can be seen, I am truly psyched about this thing. I did a little > programming in VB (I wish it had been more now) but it was so difficult to get > at data (and I do databases) so it just didn't offer enough to make it worth > the switch. .Net on the other hand is an order of magnitude more powerful, > and getting at data is second nature. > > And as if all that isn't enough, you can pick your language. > > Amazing stuff. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: dba-vb-admin at databaseadvisors.com > [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Marcus, Scott > (GEAE, RHI Consulting) > Sent: Wednesday, February 26, 2003 8:10 AM > To: 'dba-vb at databaseadvisors.com' > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > John, > > Less than a year ago, I decided to convert an access application to .Net. > Within > one day, I had a working prototype in both VB.Net and C#.Net. It was extremely > easy. You are right in that the combo changes the data set which in turn > affects > all controls linked to it. Just for kicks, I also bought Borland C++ and did > the > same thing (within a day). > > My conclusion is that all the major tools these days are offering click and > create applications. It's just a matter of picking the technology you think is > most marketable. I don't think you can go wrong in learning .Net. I'm still > torn > as to what technology to pick (although the next version of .Net is coming out > in April and is just a $29 upgrade for previous .Net owners and includes the > capability to make Pocket PC.Net applications). > > I'm very interested in discussing the techniques developers are using to > convert > Access applications to .Net. > > Hoping to find intelligent useful discussion on .Net, > > Scott Marcus > > -----Original Message----- > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > Sent: Tuesday, February 25, 2003 8:32 PM > To: AccessD > Cc: AccessD - VBA > Subject: [dba-VB] OT: .NET - Data grid syncs to combo > > > I have moved my billing database BE to sql server, hooked up my existing > Access FE and continue to use that as I play with the data in .Net. > > In the meantime, in VB.Net I created a bound form last night (or I think > it's bound anyway, not positive). It was using an OLEConnection, which > tonight I switched to an SQL connection. It's supposed to be faster. The > form simply displays the state table (all fields) in a data grid. You > really can't get much simpler than that, though I suppose for something like > a state table it would suffice. > > I decided to try and figure out how to use a combo box to select a record in > the data grid. Dragged and dropped a combo to the form, hooked the > datasource property to the same data source I was using for the form / data > grid. Set the display member (the field displayed) to ST_Abrev (the 2 char > code), and the value member (the PK of the table) to ST_ID (the PK of the > table). Opened the form, selected the state in the combo and the data grid > moved the record selector to that state. > > Man was THAT easy! So the combination of everything allows the combo to > just act as a record selector without all of the code required in Access. > Not knowing exactly what is happening, I have to assume that the combo > selecting something causes a record selector pointer in the data set object > to point somewhere. Since the data grid is using the same data set object, > the data grid displays the newly selected record. > > Just a guess of course. This stuff is way over my head. > > But so easy (if I just understood what I was doing). > > Cool beans man! > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > ---------------------------------------------------- > Is email taking over your day? Manage your time with eMailBoss. > Try it free! http://www.eMailBoss.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > > > ---------------------------------------------------- > Is email taking over your day? Manage your time with eMailBoss. > Try it free! http://www.eMailBoss.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 6088 bytes Desc: not available URL: From paul.hartland at fsmail.net Wed Feb 26 10:47:13 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 26 Feb 2003 16:47:13 +0000 Subject: [dba-VB] More SQL Server 7 Stored Procedure help if possible Message-ID: <20030226164713.TRTX5116.fep06-svc.ttys.com@localhost> To all, If you read my first email regarding Stored Procedure's you will know that I am quite a novice at the moment. I have a table called tblAvailabilityAll which contains fields PayrollNo and an AvailabilityCode. The Availability codes are A,N,S,H and when an employee leaves, in the first instance we need to update A,N,S,H to 1,2,3,4 accordingly. Anyone have any idea how to do this within one Stored Procedure (or is it possible in a single Stored Procedure.....??? I would be grateful fr any sample code etc... Thanks in advance Paul Hartland __________________________________________________________________________ Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month after that. For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890 From paul.hartland at fsmail.net Wed Feb 26 10:47:13 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 26 Feb 2003 16:47:13 +0000 Subject: [dba-VB] [dba-SQLServer]More SQL Server 7 Stored Procedure help if possible Message-ID: <20030226164713.TRTX5116.fep06-svc.ttys.com@localhost> To all, If you read my first email regarding Stored Procedure's you will know that I am quite a novice at the moment. I have a table called tblAvailabilityAll which contains fields PayrollNo and an AvailabilityCode. The Availability codes are A,N,S,H and when an employee leaves, in the first instance we need to update A,N,S,H to 1,2,3,4 accordingly. Anyone have any idea how to do this within one Stored Procedure (or is it possible in a single Stored Procedure.....??? I would be grateful fr any sample code etc... Thanks in advance Paul Hartland __________________________________________________________________________ Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month after that. For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890 _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From scott.marcus at ae.ge.com Wed Feb 26 11:14:17 2003 From: scott.marcus at ae.ge.com (Marcus, Scott (GEAE, RHI Consulting)) Date: Wed, 26 Feb 2003 12:14:17 -0500 Subject: [dba-VB] OT: .NET - Data grid syncs to combo Message-ID: <768A0EA6FF8CB34FA522978966E5D52E559D16@bwam02msx.ae.ge.com> John, I'm looking at the sorting capabilities, the resize(both height and width) capabilities, drag and drop column ordering, and data editing within the cell. This may all be there, I just haven't dug into it yet. I also need to be able to turn those features off and on (Access doesn't really have that capability). Other big features that would push it over the top are: a query designer on par with Access, sub forms and reports, continuous forms, and better reporting capabilities. I pretty much want the capabilities of Access in Studio .Net. Again, all this can be acomplished with 3rd party tools or enough time to design your own. That extra cost to get Studio up to par with Access (interface design wise) with 3rd party tools has been the killer for me. If Microsoft made a tool that had the power of Studio .Net, the interface capabilities of Access, the query designer of Access, and able to complie like Studio .Net does that would be "The Tool" to have. The compiling issue (Studio not offering a true compile) is a debate I'd rather not get into, I just HATE the Access runtime. Maybe they could offer something like "Studio .Net Access interface add-in". Now that I would purchase. Scott Marcus > -----Original Message----- > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > Sent: Wednesday, February 26, 2003 10:41 AM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > I don't use the data grid in Access. I was put off by the potential problems > of users changing the columns till one disappeared (and the support calls that > ensue). > > I can tell you that the data grid looks similar to Access' form is switched to > datasheet. The biggest difference is that if you expose the column heading, > you can click on the heading and it sorts on that column. Click again and it > sorts in reverse order. > > I am not fluent enough in data grids in either technology to tell you much I'm > afraid. What capabilities are you looking for? > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: dba-vb-admin at databaseadvisors.com > [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Marcus, Scott > (GEAE, RHI Consulting) > Sent: Wednesday, February 26, 2003 10:32 AM > To: 'dba-vb at databaseadvisors.com' > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > John, > > One of the issues that I know I will run into is that my clients are going to > want top see all of this data (like Access does...looks very Excel like...my > clients are very Excel savy) in a data grid. Previous versions of VB had > limited > built in data grid capabilities (I don't want to spend another $1K on 3rd > party > tools). If the data grid is alot closer to what Access provides that would be > great. I haven't messed much with .Net since my initial "playing around" a > year > ago, but I do need to get heavily into it. Any input on the data grid > capabilities? > > Scott Marcus > > > > -----Original Message----- > > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > > Sent: Wednesday, February 26, 2003 9:49 AM > > To: dba-vb at databaseadvisors.com > > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > > Marcus, > > > > I started programming in the early 80s and in the late 80s ended up in Turbo > > Pascal which went OO. It was extremely powerful (for the day) yet strongly > > typed unlike the C languages of the day. I purchased all of the Borland > > toolboxes, the application framework etc., bought books and really got into > > the whole inheritance thing > > > > I worked in that until I moved to Access in the early 90s. While Access was > a > > huge step up in drag and drop design functionality, and radically different > > (and extremely powerful) in the use of the event driven paradigm, it was a > > huge step backwards on the OO side since it had nothing at all that even > > remotely resembled inheritance. > > > > .Net is almost like old home week. It is a highly structure system, with a > > huge base framework that provides instant functionality like I have never > seen > > before, with true inheritance, with this new XML thingy built right in, with > > access to data from anywhere. The biggest problem I foresee is simply that > > the vast scope makes learning it a chore. But is so incredibly powerful, it > > is simply amazing. > > > > I was reading a tech paper last night where they built up XML docs in a word > > processor, saved them to a file (just for demo purposes), then simply used a > > built in property of a built in framework class to load the file and bind to > > that data. But not just bind as we know it. They bound the data to > > properties of the form. Any property of any control (and forms inherit from > > the control class so I'm told) can be bound to data. Which makes possible > > things like fore color or back color or font a property of the record. > > Painless storage of size / location of forms. Painless user modification > and > > storage of color preferences. If you can imagine it, you can store it in a > > table and drive it from there. > > > > But not just tables. The objects that actually load and expose the data can > > use XML as easily as they can use tables. They can use arrays. The arrays > > can be simple arrays of values, or arrays of objects - CLASSES for example, > > and you can be binding a control property to a property of the class. > > > > This stuff is truly awesome. Built in collection functionality for stacks, > > queues, arrays that you can just dynamically add new members to (not to > > mention your simple collection). And anything can be sub classed to add > your > > own functionality. Not just interface inheritance, but true implementation > > inheritance. Do you want a collection that stores an object, with built in > > checking to prevent storing anything but that object? Just subclass the > > collection class and over ride the .add method, typing the object input > > parameter. Done! > > > > As can be seen, I am truly psyched about this thing. I did a little > > programming in VB (I wish it had been more now) but it was so difficult to > get > > at data (and I do databases) so it just didn't offer enough to make it worth > > the switch. .Net on the other hand is an order of magnitude more powerful, > > and getting at data is second nature. > > > > And as if all that isn't enough, you can pick your language. > > > > Amazing stuff. > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > -----Original Message----- > > From: dba-vb-admin at databaseadvisors.com > > [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Marcus, Scott > > (GEAE, RHI Consulting) > > Sent: Wednesday, February 26, 2003 8:10 AM > > To: 'dba-vb at databaseadvisors.com' > > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > > > > John, > > > > Less than a year ago, I decided to convert an access application to .Net. > > Within > > one day, I had a working prototype in both VB.Net and C#.Net. It was > extremely > > easy. You are right in that the combo changes the data set which in turn > > affects > > all controls linked to it. Just for kicks, I also bought Borland C++ and did > > the > > same thing (within a day). > > > > My conclusion is that all the major tools these days are offering click and > > create applications. It's just a matter of picking the technology you think > is > > most marketable. I don't think you can go wrong in learning .Net. I'm still > > torn > > as to what technology to pick (although the next version of .Net is coming > out > > in April and is just a $29 upgrade for previous .Net owners and includes the > > capability to make Pocket PC.Net applications). > > > > I'm very interested in discussing the techniques developers are using to > > convert > > Access applications to .Net. > > > > Hoping to find intelligent useful discussion on .Net, > > > > Scott Marcus > > > > -----Original Message----- > > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > > Sent: Tuesday, February 25, 2003 8:32 PM > > To: AccessD > > Cc: AccessD - VBA > > Subject: [dba-VB] OT: .NET - Data grid syncs to combo > > > > > > I have moved my billing database BE to sql server, hooked up my existing > > Access FE and continue to use that as I play with the data in .Net. > > > > In the meantime, in VB.Net I created a bound form last night (or I think > > it's bound anyway, not positive). It was using an OLEConnection, which > > tonight I switched to an SQL connection. It's supposed to be faster. The > > form simply displays the state table (all fields) in a data grid. You > > really can't get much simpler than that, though I suppose for something like > > a state table it would suffice. > > > > I decided to try and figure out how to use a combo box to select a record in > > the data grid. Dragged and dropped a combo to the form, hooked the > > datasource property to the same data source I was using for the form / data > > grid. Set the display member (the field displayed) to ST_Abrev (the 2 char > > code), and the value member (the PK of the table) to ST_ID (the PK of the > > table). Opened the form, selected the state in the combo and the data grid > > moved the record selector to that state. > > > > Man was THAT easy! So the combination of everything allows the combo to > > just act as a record selector without all of the code required in Access. > > Not knowing exactly what is happening, I have to assume that the combo > > selecting something causes a record selector pointer in the data set object > > to point somewhere. Since the data grid is using the same data set object, > > the data grid displays the newly selected record. > > > > Just a guess of course. This stuff is way over my head. > > > > But so easy (if I just understood what I was doing). > > > > Cool beans man! > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > ---------------------------------------------------- > > Is email taking over your day? Manage your time with eMailBoss. > > Try it free! http://www.eMailBoss.com > > > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > > > > > > > ---------------------------------------------------- > > Is email taking over your day? Manage your time with eMailBoss. > > Try it free! http://www.eMailBoss.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > > > ---------------------------------------------------- > Is email taking over your day? Manage your time with eMailBoss. > Try it free! http://www.eMailBoss.com From jcolby at colbyconsulting.com Wed Feb 26 11:36:55 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Wed, 26 Feb 2003 12:36:55 -0500 Subject: [dba-VB] OT: .NET - Data grid syncs to combo In-Reply-To: <768A0EA6FF8CB34FA522978966E5D52E559D16@bwam02msx.ae.ge.com> Message-ID: The column is resizable by placing the cursor over the vertical line in the column header and dragging it. The individual row is resizable - same way. Resizes just that row though, not all rows. The column is sortable by clicking on the column header. As for the rest, I think you are dreaming. This is not Access.net, this is VB.net. OTOH, they claim you drop ANY object onto a form. If you build a "main form" with a tab control, build a "subform", and manage to place the subform on the main form then you have a subform. The master / child properties aren't there, but we all know how to set up the subform's datasource query to filter on a control on the main form. I understand completely the desire to have Access' RAD tools for database specific stuff. I can't say for sure since I am new to this, but I do not think VB.net has those things you point to. OTOH it has so much else now that Access doesn't have that it becomes a push as to which is more powerful for db design. .Net's handling of classes and inheritance, data sources, XML and other very powerful tools make it a truly awesome environment. My entire objection at this point more or less boils down to "I know how to do that in Access". I will have to learn new ways to do things that are just built in to Access, but I do think that the flexibility of .NET makes it worth diving into. Whether it will entirely replace Access for my development is doubtful, at least not in the near future. I am just too fast in Access and can get entire dbs prototyped in days / weeks where it will take much longer (for now anyway) in .NET. Will that be true once I know .NET like I know Access? John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Marcus, Scott (GEAE, RHI Consulting) Sent: Wednesday, February 26, 2003 12:14 PM To: 'dba-vb at databaseadvisors.com' Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo John, I'm looking at the sorting capabilities, the resize(both height and width) capabilities, drag and drop column ordering, and data editing within the cell. This may all be there, I just haven't dug into it yet. I also need to be able to turn those features off and on (Access doesn't really have that capability). Other big features that would push it over the top are: a query designer on par with Access, sub forms and reports, continuous forms, and better reporting capabilities. I pretty much want the capabilities of Access in Studio .Net. Again, all this can be acomplished with 3rd party tools or enough time to design your own. That extra cost to get Studio up to par with Access (interface design wise) with 3rd party tools has been the killer for me. If Microsoft made a tool that had the power of Studio .Net, the interface capabilities of Access, the query designer of Access, and able to complie like Studio .Net does that would be "The Tool" to have. The compiling issue (Studio not offering a true compile) is a debate I'd rather not get into, I just HATE the Access runtime. Maybe they could offer something like "Studio .Net Access interface add-in". Now that I would purchase. Scott Marcus > -----Original Message----- > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > Sent: Wednesday, February 26, 2003 10:41 AM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > I don't use the data grid in Access. I was put off by the potential problems > of users changing the columns till one disappeared (and the support calls that > ensue). > > I can tell you that the data grid looks similar to Access' form is switched to > datasheet. The biggest difference is that if you expose the column heading, > you can click on the heading and it sorts on that column. Click again and it > sorts in reverse order. > > I am not fluent enough in data grids in either technology to tell you much I'm > afraid. What capabilities are you looking for? > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: dba-vb-admin at databaseadvisors.com > [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Marcus, Scott > (GEAE, RHI Consulting) > Sent: Wednesday, February 26, 2003 10:32 AM > To: 'dba-vb at databaseadvisors.com' > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > John, > > One of the issues that I know I will run into is that my clients are going to > want top see all of this data (like Access does...looks very Excel like...my > clients are very Excel savy) in a data grid. Previous versions of VB had > limited > built in data grid capabilities (I don't want to spend another $1K on 3rd > party > tools). If the data grid is alot closer to what Access provides that would be > great. I haven't messed much with .Net since my initial "playing around" a > year > ago, but I do need to get heavily into it. Any input on the data grid > capabilities? > > Scott Marcus > > > > -----Original Message----- > > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > > Sent: Wednesday, February 26, 2003 9:49 AM > > To: dba-vb at databaseadvisors.com > > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > > Marcus, > > > > I started programming in the early 80s and in the late 80s ended up in Turbo > > Pascal which went OO. It was extremely powerful (for the day) yet strongly > > typed unlike the C languages of the day. I purchased all of the Borland > > toolboxes, the application framework etc., bought books and really got into > > the whole inheritance thing > > > > I worked in that until I moved to Access in the early 90s. While Access was > a > > huge step up in drag and drop design functionality, and radically different > > (and extremely powerful) in the use of the event driven paradigm, it was a > > huge step backwards on the OO side since it had nothing at all that even > > remotely resembled inheritance. > > > > .Net is almost like old home week. It is a highly structure system, with a > > huge base framework that provides instant functionality like I have never > seen > > before, with true inheritance, with this new XML thingy built right in, with > > access to data from anywhere. The biggest problem I foresee is simply that > > the vast scope makes learning it a chore. But is so incredibly powerful, it > > is simply amazing. > > > > I was reading a tech paper last night where they built up XML docs in a word > > processor, saved them to a file (just for demo purposes), then simply used a > > built in property of a built in framework class to load the file and bind to > > that data. But not just bind as we know it. They bound the data to > > properties of the form. Any property of any control (and forms inherit from > > the control class so I'm told) can be bound to data. Which makes possible > > things like fore color or back color or font a property of the record. > > Painless storage of size / location of forms. Painless user modification > and > > storage of color preferences. If you can imagine it, you can store it in a > > table and drive it from there. > > > > But not just tables. The objects that actually load and expose the data can > > use XML as easily as they can use tables. They can use arrays. The arrays > > can be simple arrays of values, or arrays of objects - CLASSES for example, > > and you can be binding a control property to a property of the class. > > > > This stuff is truly awesome. Built in collection functionality for stacks, > > queues, arrays that you can just dynamically add new members to (not to > > mention your simple collection). And anything can be sub classed to add > your > > own functionality. Not just interface inheritance, but true implementation > > inheritance. Do you want a collection that stores an object, with built in > > checking to prevent storing anything but that object? Just subclass the > > collection class and over ride the .add method, typing the object input > > parameter. Done! > > > > As can be seen, I am truly psyched about this thing. I did a little > > programming in VB (I wish it had been more now) but it was so difficult to > get > > at data (and I do databases) so it just didn't offer enough to make it worth > > the switch. .Net on the other hand is an order of magnitude more powerful, > > and getting at data is second nature. > > > > And as if all that isn't enough, you can pick your language. > > > > Amazing stuff. > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > -----Original Message----- > > From: dba-vb-admin at databaseadvisors.com > > [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Marcus, Scott > > (GEAE, RHI Consulting) > > Sent: Wednesday, February 26, 2003 8:10 AM > > To: 'dba-vb at databaseadvisors.com' > > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > > > > John, > > > > Less than a year ago, I decided to convert an access application to .Net. > > Within > > one day, I had a working prototype in both VB.Net and C#.Net. It was > extremely > > easy. You are right in that the combo changes the data set which in turn > > affects > > all controls linked to it. Just for kicks, I also bought Borland C++ and did > > the > > same thing (within a day). > > > > My conclusion is that all the major tools these days are offering click and > > create applications. It's just a matter of picking the technology you think > is > > most marketable. I don't think you can go wrong in learning .Net. I'm still > > torn > > as to what technology to pick (although the next version of .Net is coming > out > > in April and is just a $29 upgrade for previous .Net owners and includes the > > capability to make Pocket PC.Net applications). > > > > I'm very interested in discussing the techniques developers are using to > > convert > > Access applications to .Net. > > > > Hoping to find intelligent useful discussion on .Net, > > > > Scott Marcus > > > > -----Original Message----- > > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > > Sent: Tuesday, February 25, 2003 8:32 PM > > To: AccessD > > Cc: AccessD - VBA > > Subject: [dba-VB] OT: .NET - Data grid syncs to combo > > > > > > I have moved my billing database BE to sql server, hooked up my existing > > Access FE and continue to use that as I play with the data in .Net. > > > > In the meantime, in VB.Net I created a bound form last night (or I think > > it's bound anyway, not positive). It was using an OLEConnection, which > > tonight I switched to an SQL connection. It's supposed to be faster. The > > form simply displays the state table (all fields) in a data grid. You > > really can't get much simpler than that, though I suppose for something like > > a state table it would suffice. > > > > I decided to try and figure out how to use a combo box to select a record in > > the data grid. Dragged and dropped a combo to the form, hooked the > > datasource property to the same data source I was using for the form / data > > grid. Set the display member (the field displayed) to ST_Abrev (the 2 char > > code), and the value member (the PK of the table) to ST_ID (the PK of the > > table). Opened the form, selected the state in the combo and the data grid > > moved the record selector to that state. > > > > Man was THAT easy! So the combination of everything allows the combo to > > just act as a record selector without all of the code required in Access. > > Not knowing exactly what is happening, I have to assume that the combo > > selecting something causes a record selector pointer in the data set object > > to point somewhere. Since the data grid is using the same data set object, > > the data grid displays the newly selected record. > > > > Just a guess of course. This stuff is way over my head. > > > > But so easy (if I just understood what I was doing). > > > > Cool beans man! > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > ---------------------------------------------------- > > Is email taking over your day? Manage your time with eMailBoss. > > Try it free! http://www.eMailBoss.com > > > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > > > > > > > ---------------------------------------------------- > > Is email taking over your day? Manage your time with eMailBoss. > > Try it free! http://www.eMailBoss.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > > > ---------------------------------------------------- > Is email taking over your day? Manage your time with eMailBoss. > Try it free! http://www.eMailBoss.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 7920 bytes Desc: not available URL: From scott.marcus at ae.ge.com Wed Feb 26 11:51:46 2003 From: scott.marcus at ae.ge.com (Marcus, Scott (GEAE, RHI Consulting)) Date: Wed, 26 Feb 2003 12:51:46 -0500 Subject: [dba-VB] OT: .NET - Data grid syncs to combo Message-ID: <768A0EA6FF8CB34FA522978966E5D52E559D19@bwam02msx.ae.ge.com> John, Yes, I'm dreaming. But I do think that the Studio .Net platform is moving in the direction of "Access" type of RAD design. Those features I mentioned are why I use Access(in addition to my client's requirements). I was excited about Studio .NET and think most these capabilities are present. How much is built in and how much is 3rd party will be interesting to learn. Now to find the time to learn it well enough to replace Access as my primary skill... To answer your question... From what I know of you (which isn't alot...just what you post), I think it will be true once you know .Net like Access. Scott Marcus > -----Original Message----- > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > Sent: Wednesday, February 26, 2003 12:37 PM > To: dba-vb at databaseadvisors.com > Cc: AccessD > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > The column is resizable by placing the cursor over the vertical line in the > column header and dragging it. The individual row is resizable - same way. > Resizes just that row though, not all rows. The column is sortable by > clicking on the column header. > > As for the rest, I think you are dreaming. This is not Access.net, this is > VB.net. OTOH, they claim you drop ANY object onto a form. If you build a > "main form" with a tab control, build a "subform", and manage to place the > subform on the main form then you have a subform. The master / child > properties aren't there, but we all know how to set up the subform's > datasource query to filter on a control on the main form. > > I understand completely the desire to have Access' RAD tools for database > specific stuff. I can't say for sure since I am new to this, but I do not > think VB.net has those things you point to. OTOH it has so much else now that > Access doesn't have that it becomes a push as to which is more powerful for db > design. .Net's handling of classes and inheritance, data sources, XML and > other very powerful tools make it a truly awesome environment. > > My entire objection at this point more or less boils down to "I know how to do > that in Access". I will have to learn new ways to do things that are just > built in to Access, but I do think that the flexibility of .NET makes it worth > diving into. Whether it will entirely replace Access for my development is > doubtful, at least not in the near future. I am just too fast in Access and > can get entire dbs prototyped in days / weeks where it will take much longer > (for now anyway) in .NET. > > Will that be true once I know .NET like I know Access? > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: dba-vb-admin at databaseadvisors.com > [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Marcus, Scott > (GEAE, RHI Consulting) > Sent: Wednesday, February 26, 2003 12:14 PM > To: 'dba-vb at databaseadvisors.com' > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > John, > > I'm looking at the sorting capabilities, the resize(both height and width) > capabilities, drag and drop column ordering, and data editing within the cell. > This may all be there, I just haven't dug into it yet. I also need to be able > to > turn those features off and on (Access doesn't really have that capability). > Other big features that would push it over the top are: a query designer on > par > with Access, sub forms and reports, continuous forms, and better reporting > capabilities. I pretty much want the capabilities of Access in Studio .Net. > Again, all this can be acomplished with 3rd party tools or enough time to > design > your own. That extra cost to get Studio up to par with Access (interface > design > wise) with 3rd party tools has been the killer for me. > > If Microsoft made a tool that had the power of Studio .Net, the interface > capabilities of Access, the query designer of Access, and able to complie like > Studio .Net does that would be "The Tool" to have. The compiling issue (Studio > not offering a true compile) is a debate I'd rather not get into, I just HATE > the Access runtime. Maybe they could offer something like "Studio .Net Access > interface add-in". Now that I would purchase. > > Scott Marcus > > > -----Original Message----- > > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > > Sent: Wednesday, February 26, 2003 10:41 AM > > To: dba-vb at databaseadvisors.com > > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > > I don't use the data grid in Access. I was put off by the potential > problems > > of users changing the columns till one disappeared (and the support calls > that > > ensue). > > > > I can tell you that the data grid looks similar to Access' form is switched > to > > datasheet. The biggest difference is that if you expose the column heading, > > you can click on the heading and it sorts on that column. Click again and > it > > sorts in reverse order. > > > > I am not fluent enough in data grids in either technology to tell you much > I'm > > afraid. What capabilities are you looking for? > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > -----Original Message----- > > From: dba-vb-admin at databaseadvisors.com > > [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Marcus, Scott > > (GEAE, RHI Consulting) > > Sent: Wednesday, February 26, 2003 10:32 AM > > To: 'dba-vb at databaseadvisors.com' > > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > > > > John, > > > > One of the issues that I know I will run into is that my clients are going > to > > want top see all of this data (like Access does...looks very Excel like...my > > clients are very Excel savy) in a data grid. Previous versions of VB had > > limited > > built in data grid capabilities (I don't want to spend another $1K on 3rd > > party > > tools). If the data grid is alot closer to what Access provides that would > be > > great. I haven't messed much with .Net since my initial "playing around" a > > year > > ago, but I do need to get heavily into it. Any input on the data grid > > capabilities? > > > > Scott Marcus > > > > > > > -----Original Message----- > > > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > > > Sent: Wednesday, February 26, 2003 9:49 AM > > > To: dba-vb at databaseadvisors.com > > > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > > > > Marcus, > > > > > > I started programming in the early 80s and in the late 80s ended up in > Turbo > > > Pascal which went OO. It was extremely powerful (for the day) yet > strongly > > > typed unlike the C languages of the day. I purchased all of the Borland > > > toolboxes, the application framework etc., bought books and really got > into > > > the whole inheritance thing > > > > > > I worked in that until I moved to Access in the early 90s. While Access > was > > a > > > huge step up in drag and drop design functionality, and radically > different > > > (and extremely powerful) in the use of the event driven paradigm, it was a > > > huge step backwards on the OO side since it had nothing at all that even > > > remotely resembled inheritance. > > > > > > .Net is almost like old home week. It is a highly structure system, with > a > > > huge base framework that provides instant functionality like I have never > > seen > > > before, with true inheritance, with this new XML thingy built right in, > with > > > access to data from anywhere. The biggest problem I foresee is simply > that > > > the vast scope makes learning it a chore. But is so incredibly powerful, > it > > > is simply amazing. > > > > > > I was reading a tech paper last night where they built up XML docs in a > word > > > processor, saved them to a file (just for demo purposes), then simply used > a > > > built in property of a built in framework class to load the file and bind > to > > > that data. But not just bind as we know it. They bound the data to > > > properties of the form. Any property of any control (and forms inherit > from > > > the control class so I'm told) can be bound to data. Which makes possible > > > things like fore color or back color or font a property of the record. > > > Painless storage of size / location of forms. Painless user modification > > and > > > storage of color preferences. If you can imagine it, you can store it in > a > > > table and drive it from there. > > > > > > But not just tables. The objects that actually load and expose the data > can > > > use XML as easily as they can use tables. They can use arrays. The > arrays > > > can be simple arrays of values, or arrays of objects - CLASSES for > example, > > > and you can be binding a control property to a property of the class. > > > > > > This stuff is truly awesome. Built in collection functionality for > stacks, > > > queues, arrays that you can just dynamically add new members to (not to > > > mention your simple collection). And anything can be sub classed to add > > your > > > own functionality. Not just interface inheritance, but true > implementation > > > inheritance. Do you want a collection that stores an object, with built > in > > > checking to prevent storing anything but that object? Just subclass the > > > collection class and over ride the .add method, typing the object input > > > parameter. Done! > > > > > > As can be seen, I am truly psyched about this thing. I did a little > > > programming in VB (I wish it had been more now) but it was so difficult to > > get > > > at data (and I do databases) so it just didn't offer enough to make it > worth > > > the switch. .Net on the other hand is an order of magnitude more > powerful, > > > and getting at data is second nature. > > > > > > And as if all that isn't enough, you can pick your language. > > > > > > Amazing stuff. > > > > > > John W. Colby > > > Colby Consulting > > > www.ColbyConsulting.com > > > > > > -----Original Message----- > > > From: dba-vb-admin at databaseadvisors.com > > > [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Marcus, Scott > > > (GEAE, RHI Consulting) > > > Sent: Wednesday, February 26, 2003 8:10 AM > > > To: 'dba-vb at databaseadvisors.com' > > > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > > > > > > > John, > > > > > > Less than a year ago, I decided to convert an access application to .Net. > > > Within > > > one day, I had a working prototype in both VB.Net and C#.Net. It was > > extremely > > > easy. You are right in that the combo changes the data set which in turn > > > affects > > > all controls linked to it. Just for kicks, I also bought Borland C++ and > did > > > the > > > same thing (within a day). > > > > > > My conclusion is that all the major tools these days are offering click > and > > > create applications. It's just a matter of picking the technology you > think > > is > > > most marketable. I don't think you can go wrong in learning .Net. I'm > still > > > torn > > > as to what technology to pick (although the next version of .Net is coming > > out > > > in April and is just a $29 upgrade for previous .Net owners and includes > the > > > capability to make Pocket PC.Net applications). > > > > > > I'm very interested in discussing the techniques developers are using to > > > convert > > > Access applications to .Net. > > > > > > Hoping to find intelligent useful discussion on .Net, > > > > > > Scott Marcus > > > > > > -----Original Message----- > > > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > > > Sent: Tuesday, February 25, 2003 8:32 PM > > > To: AccessD > > > Cc: AccessD - VBA > > > Subject: [dba-VB] OT: .NET - Data grid syncs to combo > > > > > > > > > I have moved my billing database BE to sql server, hooked up my existing > > > Access FE and continue to use that as I play with the data in .Net. > > > > > > In the meantime, in VB.Net I created a bound form last night (or I think > > > it's bound anyway, not positive). It was using an OLEConnection, which > > > tonight I switched to an SQL connection. It's supposed to be faster. The > > > form simply displays the state table (all fields) in a data grid. You > > > really can't get much simpler than that, though I suppose for something > like > > > a state table it would suffice. > > > > > > I decided to try and figure out how to use a combo box to select a record > in > > > the data grid. Dragged and dropped a combo to the form, hooked the > > > datasource property to the same data source I was using for the form / > data > > > grid. Set the display member (the field displayed) to ST_Abrev (the 2 > char > > > code), and the value member (the PK of the table) to ST_ID (the PK of the > > > table). Opened the form, selected the state in the combo and the data > grid > > > moved the record selector to that state. > > > > > > Man was THAT easy! So the combination of everything allows the combo to > > > just act as a record selector without all of the code required in Access. > > > Not knowing exactly what is happening, I have to assume that the combo > > > selecting something causes a record selector pointer in the data set > object > > > to point somewhere. Since the data grid is using the same data set > object, > > > the data grid displays the newly selected record. > > > > > > Just a guess of course. This stuff is way over my head. > > > > > > But so easy (if I just understood what I was doing). > > > > > > Cool beans man! > > > > > > John W. Colby > > > Colby Consulting > > > www.ColbyConsulting.com > > > > > > ---------------------------------------------------- > > > Is email taking over your day? Manage your time with eMailBoss. > > > Try it free! http://www.eMailBoss.com > > > > > > > > > _______________________________________________ > > > dba-VB mailing list > > > dba-VB at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > http://www.databaseadvisors.com > > > _______________________________________________ > > > dba-VB mailing list > > > dba-VB at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > http://www.databaseadvisors.com > > > > > > > > > > > > > > > ---------------------------------------------------- > > > Is email taking over your day? Manage your time with eMailBoss. > > > Try it free! http://www.eMailBoss.com > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > > > > > > > ---------------------------------------------------- > > Is email taking over your day? Manage your time with eMailBoss. > > Try it free! http://www.eMailBoss.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > > > ---------------------------------------------------- > Is email taking over your day? Manage your time with eMailBoss. > Try it free! http://www.eMailBoss.com From mikedorism at ntelos.net Wed Feb 26 13:46:26 2003 From: mikedorism at ntelos.net (Mike and Doris Manning) Date: Wed, 26 Feb 2003 14:46:26 -0500 Subject: [dba-VB] OT: .NET - Data grid syncs to combo In-Reply-To: <768A0EA6FF8CB34FA522978966E5D52E559D16@bwam02msx.ae.ge.com> Message-ID: <000001c2ddcf$c33f0090$d5350cd8@hargrove.internal> Maybe they could offer something like "Studio .Net Access interface add-in". Now that I would purchase. Actually, it seems to already be in there... Check out the lastest edition of Access-VB-SQL Advisor at your local newstand. You can automate Access from within VB.Net via some PIAs you can download from Microsoft. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com] On Behalf Of Marcus, Scott (GEAE, RHI Consulting) Sent: Wednesday, February 26, 2003 12:14 PM To: 'dba-vb at databaseadvisors.com' Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo John, I'm looking at the sorting capabilities, the resize(both height and width) capabilities, drag and drop column ordering, and data editing within the cell. This may all be there, I just haven't dug into it yet. I also need to be able to turn those features off and on (Access doesn't really have that capability). Other big features that would push it over the top are: a query designer on par with Access, sub forms and reports, continuous forms, and better reporting capabilities. I pretty much want the capabilities of Access in Studio .Net. Again, all this can be acomplished with 3rd party tools or enough time to design your own. That extra cost to get Studio up to par with Access (interface design wise) with 3rd party tools has been the killer for me. If Microsoft made a tool that had the power of Studio .Net, the interface capabilities of Access, the query designer of Access, and able to complie like Studio .Net does that would be "The Tool" to have. The compiling issue (Studio not offering a true compile) is a debate I'd rather not get into, I just HATE the Access runtime. Maybe they could offer something like "Studio .Net Access interface add-in". Now that I would purchase. Scott Marcus > -----Original Message----- > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > Sent: Wednesday, February 26, 2003 10:41 AM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > I don't use the data grid in Access. I was put off by the potential > problems of users changing the columns till one disappeared (and the > support calls that ensue). > > I can tell you that the data grid looks similar to Access' form is > switched to datasheet. The biggest difference is that if you expose > the column heading, you can click on the heading and it sorts on that > column. Click again and it sorts in reverse order. > > I am not fluent enough in data grids in either technology to tell you > much I'm afraid. What capabilities are you looking for? > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: dba-vb-admin at databaseadvisors.com > [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Marcus, Scott > (GEAE, RHI Consulting) > Sent: Wednesday, February 26, 2003 10:32 AM > To: 'dba-vb at databaseadvisors.com' > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > John, > > One of the issues that I know I will run into is that my clients are > going to want top see all of this data (like Access does...looks very > Excel like...my clients are very Excel savy) in a data grid. Previous > versions of VB had limited built in data grid capabilities (I don't > want to spend another $1K on 3rd party > tools). If the data grid is alot closer to what Access provides that would be > great. I haven't messed much with .Net since my initial "playing around" a > year > ago, but I do need to get heavily into it. Any input on the data grid > capabilities? > > Scott Marcus > > > > -----Original Message----- > > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > > Sent: Wednesday, February 26, 2003 9:49 AM > > To: dba-vb at databaseadvisors.com > > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > > Marcus, > > > > I started programming in the early 80s and in the late 80s ended up > > in Turbo Pascal which went OO. It was extremely powerful (for the > > day) yet strongly typed unlike the C languages of the day. I > > purchased all of the Borland toolboxes, the application framework > > etc., bought books and really got into the whole inheritance thing > > > > I worked in that until I moved to Access in the early 90s. While > > Access was > a > > huge step up in drag and drop design functionality, and radically > > different (and extremely powerful) in the use of the event driven > > paradigm, it was a huge step backwards on the OO side since it had > > nothing at all that even remotely resembled inheritance. > > > > .Net is almost like old home week. It is a highly structure system, > > with a huge base framework that provides instant functionality like > > I have never > seen > > before, with true inheritance, with this new XML thingy built right > > in, with access to data from anywhere. The biggest problem I > > foresee is simply that the vast scope makes learning it a chore. > > But is so incredibly powerful, it is simply amazing. > > > > I was reading a tech paper last night where they built up XML docs > > in a word processor, saved them to a file (just for demo purposes), > > then simply used a built in property of a built in framework class > > to load the file and bind to that data. But not just bind as we > > know it. They bound the data to properties of the form. Any > > property of any control (and forms inherit from the control class so > > I'm told) can be bound to data. Which makes possible things like > > fore color or back color or font a property of the record. Painless > > storage of size / location of forms. Painless user modification > and > > storage of color preferences. If you can imagine it, you can store > > it in a table and drive it from there. > > > > But not just tables. The objects that actually load and expose the > > data can use XML as easily as they can use tables. They can use > > arrays. The arrays can be simple arrays of values, or arrays of > > objects - CLASSES for example, and you can be binding a control > > property to a property of the class. > > > > This stuff is truly awesome. Built in collection functionality for > > stacks, queues, arrays that you can just dynamically add new members > > to (not to mention your simple collection). And anything can be sub > > classed to add > your > > own functionality. Not just interface inheritance, but true > > implementation inheritance. Do you want a collection that stores an > > object, with built in checking to prevent storing anything but that > > object? Just subclass the collection class and over ride the .add > > method, typing the object input parameter. Done! > > > > As can be seen, I am truly psyched about this thing. I did a little > > programming in VB (I wish it had been more now) but it was so > > difficult to > get > > at data (and I do databases) so it just didn't offer enough to make > > it worth the switch. .Net on the other hand is an order of > > magnitude more powerful, and getting at data is second nature. > > > > And as if all that isn't enough, you can pick your language. > > > > Amazing stuff. > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > -----Original Message----- > > From: dba-vb-admin at databaseadvisors.com > > [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Marcus, Scott > > (GEAE, RHI Consulting) > > Sent: Wednesday, February 26, 2003 8:10 AM > > To: 'dba-vb at databaseadvisors.com' > > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > > > > John, > > > > Less than a year ago, I decided to convert an access application to > > .Net. Within one day, I had a working prototype in both VB.Net and > > C#.Net. It was > extremely > > easy. You are right in that the combo changes the data set which in > > turn affects all controls linked to it. Just for kicks, I also > > bought Borland C++ and did the > > same thing (within a day). > > > > My conclusion is that all the major tools these days are offering > > click and create applications. It's just a matter of picking the > > technology you think > is > > most marketable. I don't think you can go wrong in learning .Net. > > I'm still torn as to what technology to pick (although the next > > version of .Net is coming > out > > in April and is just a $29 upgrade for previous .Net owners and > > includes the capability to make Pocket PC.Net applications). > > > > I'm very interested in discussing the techniques developers are > > using to convert Access applications to .Net. > > > > Hoping to find intelligent useful discussion on .Net, > > > > Scott Marcus > > > > -----Original Message----- > > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > > Sent: Tuesday, February 25, 2003 8:32 PM > > To: AccessD > > Cc: AccessD - VBA > > Subject: [dba-VB] OT: .NET - Data grid syncs to combo > > > > > > I have moved my billing database BE to sql server, hooked up my > > existing Access FE and continue to use that as I play with the data > > in .Net. > > > > In the meantime, in VB.Net I created a bound form last night (or I > > think it's bound anyway, not positive). It was using an > > OLEConnection, which tonight I switched to an SQL connection. It's > > supposed to be faster. The form simply displays the state table > > (all fields) in a data grid. You really can't get much simpler than > > that, though I suppose for something like a state table it would > > suffice. > > > > I decided to try and figure out how to use a combo box to select a > > record in the data grid. Dragged and dropped a combo to the form, > > hooked the datasource property to the same data source I was using > > for the form / data grid. Set the display member (the field > > displayed) to ST_Abrev (the 2 char code), and the value member (the > > PK of the table) to ST_ID (the PK of the table). Opened the form, > > selected the state in the combo and the data grid moved the record > > selector to that state. > > > > Man was THAT easy! So the combination of everything allows the > > combo to just act as a record selector without all of the code > > required in Access. Not knowing exactly what is happening, I have to > > assume that the combo selecting something causes a record selector > > pointer in the data set object to point somewhere. Since the data > > grid is using the same data set object, the data grid displays the > > newly selected record. > > > > Just a guess of course. This stuff is way over my head. > > > > But so easy (if I just understood what I was doing). > > > > Cool beans man! > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > ---------------------------------------------------- > > Is email taking over your day? Manage your time with eMailBoss. Try > > it free! http://www.eMailBoss.com > > > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > > > > > > > ---------------------------------------------------- > > Is email taking over your day? Manage your time with eMailBoss. > > Try it free! http://www.eMailBoss.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > > > ---------------------------------------------------- > Is email taking over your day? Manage your time with eMailBoss. > Try it free! http://www.eMailBoss.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From scott.marcus at ae.ge.com Wed Feb 26 14:12:21 2003 From: scott.marcus at ae.ge.com (Marcus, Scott (GEAE, RHI Consulting)) Date: Wed, 26 Feb 2003 15:12:21 -0500 Subject: [dba-VB] OT: .NET - Data grid syncs to combo Message-ID: <768A0EA6FF8CB34FA522978966E5D52E559D1A@bwam02msx.ae.ge.com> Doris, I meant all the neat interface capabilities added into Studio.Net via some more framework/controls. Automation has been around for a long time. I'm more interested in developing applications that don't require installing other software and then automating it. Scott Marcus -----Original Message----- From: Mike and Doris Manning [mailto:mikedorism at ntelos.net] Sent: Wednesday, February 26, 2003 2:46 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo Maybe they could offer something like "Studio .Net Access interface add-in". Now that I would purchase. Actually, it seems to already be in there... Check out the lastest edition of Access-VB-SQL Advisor at your local newstand. You can automate Access from within VB.Net via some PIAs you can download from Microsoft. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com] On Behalf Of Marcus, Scott (GEAE, RHI Consulting) Sent: Wednesday, February 26, 2003 12:14 PM To: 'dba-vb at databaseadvisors.com' Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo John, I'm looking at the sorting capabilities, the resize(both height and width) capabilities, drag and drop column ordering, and data editing within the cell. This may all be there, I just haven't dug into it yet. I also need to be able to turn those features off and on (Access doesn't really have that capability). Other big features that would push it over the top are: a query designer on par with Access, sub forms and reports, continuous forms, and better reporting capabilities. I pretty much want the capabilities of Access in Studio .Net. Again, all this can be acomplished with 3rd party tools or enough time to design your own. That extra cost to get Studio up to par with Access (interface design wise) with 3rd party tools has been the killer for me. If Microsoft made a tool that had the power of Studio .Net, the interface capabilities of Access, the query designer of Access, and able to complie like Studio .Net does that would be "The Tool" to have. The compiling issue (Studio not offering a true compile) is a debate I'd rather not get into, I just HATE the Access runtime. Maybe they could offer something like "Studio .Net Access interface add-in". Now that I would purchase. Scott Marcus > -----Original Message----- > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > Sent: Wednesday, February 26, 2003 10:41 AM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > I don't use the data grid in Access. I was put off by the potential > problems of users changing the columns till one disappeared (and the > support calls that ensue). > > I can tell you that the data grid looks similar to Access' form is > switched to datasheet. The biggest difference is that if you expose > the column heading, you can click on the heading and it sorts on that > column. Click again and it sorts in reverse order. > > I am not fluent enough in data grids in either technology to tell you > much I'm afraid. What capabilities are you looking for? > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: dba-vb-admin at databaseadvisors.com > [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Marcus, Scott > (GEAE, RHI Consulting) > Sent: Wednesday, February 26, 2003 10:32 AM > To: 'dba-vb at databaseadvisors.com' > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > John, > > One of the issues that I know I will run into is that my clients are > going to want top see all of this data (like Access does...looks very > Excel like...my clients are very Excel savy) in a data grid. Previous > versions of VB had limited built in data grid capabilities (I don't > want to spend another $1K on 3rd party > tools). If the data grid is alot closer to what Access provides that would be > great. I haven't messed much with .Net since my initial "playing around" a > year > ago, but I do need to get heavily into it. Any input on the data grid > capabilities? > > Scott Marcus > > > > -----Original Message----- > > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > > Sent: Wednesday, February 26, 2003 9:49 AM > > To: dba-vb at databaseadvisors.com > > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > > Marcus, > > > > I started programming in the early 80s and in the late 80s ended up > > in Turbo Pascal which went OO. It was extremely powerful (for the > > day) yet strongly typed unlike the C languages of the day. I > > purchased all of the Borland toolboxes, the application framework > > etc., bought books and really got into the whole inheritance thing > > > > I worked in that until I moved to Access in the early 90s. While > > Access was > a > > huge step up in drag and drop design functionality, and radically > > different (and extremely powerful) in the use of the event driven > > paradigm, it was a huge step backwards on the OO side since it had > > nothing at all that even remotely resembled inheritance. > > > > .Net is almost like old home week. It is a highly structure system, > > with a huge base framework that provides instant functionality like > > I have never > seen > > before, with true inheritance, with this new XML thingy built right > > in, with access to data from anywhere. The biggest problem I > > foresee is simply that the vast scope makes learning it a chore. > > But is so incredibly powerful, it is simply amazing. > > > > I was reading a tech paper last night where they built up XML docs > > in a word processor, saved them to a file (just for demo purposes), > > then simply used a built in property of a built in framework class > > to load the file and bind to that data. But not just bind as we > > know it. They bound the data to properties of the form. Any > > property of any control (and forms inherit from the control class so > > I'm told) can be bound to data. Which makes possible things like > > fore color or back color or font a property of the record. Painless > > storage of size / location of forms. Painless user modification > and > > storage of color preferences. If you can imagine it, you can store > > it in a table and drive it from there. > > > > But not just tables. The objects that actually load and expose the > > data can use XML as easily as they can use tables. They can use > > arrays. The arrays can be simple arrays of values, or arrays of > > objects - CLASSES for example, and you can be binding a control > > property to a property of the class. > > > > This stuff is truly awesome. Built in collection functionality for > > stacks, queues, arrays that you can just dynamically add new members > > to (not to mention your simple collection). And anything can be sub > > classed to add > your > > own functionality. Not just interface inheritance, but true > > implementation inheritance. Do you want a collection that stores an > > object, with built in checking to prevent storing anything but that > > object? Just subclass the collection class and over ride the .add > > method, typing the object input parameter. Done! > > > > As can be seen, I am truly psyched about this thing. I did a little > > programming in VB (I wish it had been more now) but it was so > > difficult to > get > > at data (and I do databases) so it just didn't offer enough to make > > it worth the switch. .Net on the other hand is an order of > > magnitude more powerful, and getting at data is second nature. > > > > And as if all that isn't enough, you can pick your language. > > > > Amazing stuff. > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > -----Original Message----- > > From: dba-vb-admin at databaseadvisors.com > > [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Marcus, Scott > > (GEAE, RHI Consulting) > > Sent: Wednesday, February 26, 2003 8:10 AM > > To: 'dba-vb at databaseadvisors.com' > > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > > > > John, > > > > Less than a year ago, I decided to convert an access application to > > .Net. Within one day, I had a working prototype in both VB.Net and > > C#.Net. It was > extremely > > easy. You are right in that the combo changes the data set which in > > turn affects all controls linked to it. Just for kicks, I also > > bought Borland C++ and did the > > same thing (within a day). > > > > My conclusion is that all the major tools these days are offering > > click and create applications. It's just a matter of picking the > > technology you think > is > > most marketable. I don't think you can go wrong in learning .Net. > > I'm still torn as to what technology to pick (although the next > > version of .Net is coming > out > > in April and is just a $29 upgrade for previous .Net owners and > > includes the capability to make Pocket PC.Net applications). > > > > I'm very interested in discussing the techniques developers are > > using to convert Access applications to .Net. > > > > Hoping to find intelligent useful discussion on .Net, > > > > Scott Marcus > > > > -----Original Message----- > > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > > Sent: Tuesday, February 25, 2003 8:32 PM > > To: AccessD > > Cc: AccessD - VBA > > Subject: [dba-VB] OT: .NET - Data grid syncs to combo > > > > > > I have moved my billing database BE to sql server, hooked up my > > existing Access FE and continue to use that as I play with the data > > in .Net. > > > > In the meantime, in VB.Net I created a bound form last night (or I > > think it's bound anyway, not positive). It was using an > > OLEConnection, which tonight I switched to an SQL connection. It's > > supposed to be faster. The form simply displays the state table > > (all fields) in a data grid. You really can't get much simpler than > > that, though I suppose for something like a state table it would > > suffice. > > > > I decided to try and figure out how to use a combo box to select a > > record in the data grid. Dragged and dropped a combo to the form, > > hooked the datasource property to the same data source I was using > > for the form / data grid. Set the display member (the field > > displayed) to ST_Abrev (the 2 char code), and the value member (the > > PK of the table) to ST_ID (the PK of the table). Opened the form, > > selected the state in the combo and the data grid moved the record > > selector to that state. > > > > Man was THAT easy! So the combination of everything allows the > > combo to just act as a record selector without all of the code > > required in Access. Not knowing exactly what is happening, I have to > > assume that the combo selecting something causes a record selector > > pointer in the data set object to point somewhere. Since the data > > grid is using the same data set object, the data grid displays the > > newly selected record. > > > > Just a guess of course. This stuff is way over my head. > > > > But so easy (if I just understood what I was doing). > > > > Cool beans man! > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > ---------------------------------------------------- > > Is email taking over your day? Manage your time with eMailBoss. Try > > it free! http://www.eMailBoss.com > > > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > > > > > > > ---------------------------------------------------- > > Is email taking over your day? Manage your time with eMailBoss. > > Try it free! http://www.eMailBoss.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > > > ---------------------------------------------------- > Is email taking over your day? Manage your time with eMailBoss. > Try it free! http://www.eMailBoss.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From JSkolits at CorporateDataDesign.com Wed Feb 26 20:02:30 2003 From: JSkolits at CorporateDataDesign.com (John Skolits) Date: Wed, 26 Feb 2003 21:02:30 -0500 Subject: [dba-VB] Simple problem. Can't use Kill Message-ID: Am I losing it? Why doesn't the Kill statement work in this code. '********* Dim strRuntimePath as string strRuntimePath ="C:\Program Files\Microsoft Office\ART\Office" If Len(Dir(strRuntimePath & "\msaccess_SR1.exe")) > 0 Then Kill (strRuntimePath & "\msaccess_SR1.exe") End If '************ The line with "Len(Dir" in it works fine. Bu when the Kill line tries to run I get an error 75 ("Path/File access error") I can easily rename the file and move it around in explorer so I know it's not being used by anything. I've used this syntax before in other VB apps with no problem. If I rename the file through explorer and run that line again it says Error 53 :File Not Found". Which makes perfect sense. Is it because it's an EXE file? Am I missing something really obvious? John Skolits -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 1908 bytes Desc: not available URL: From Jdemarco at hshhp.org Wed Feb 26 21:20:31 2003 From: Jdemarco at hshhp.org (Jim DeMarco) Date: Wed, 26 Feb 2003 22:20:31 -0500 Subject: [dba-VB] Simple problem. Can't use Kill Message-ID: <22F1CCD5171D17419CB37FEEE09D5F99D8521E@TTNEXCHSRV1.hshhp.com> Is there a Help button on the error message that might give you some insight? I thought the problem might be in the parens or maybe a space in the path but I tried both and it worked for me (killed an exe in my c:\ folder). Jim DeMarco -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of John Skolits Sent: Wednesday, February 26, 2003 9:03 PM To: dba-VB at databaseadvisors.com Subject: [dba-VB] Simple problem. Can't use Kill Am I losing it? Why doesn't the Kill statement work in this code. '********* Dim strRuntimePath as string strRuntimePath ="C:\Program Files\Microsoft Office\ART\Office" If Len(Dir(strRuntimePath & "\msaccess_SR1.exe")) > 0 Then Kill (strRuntimePath & "\msaccess_SR1.exe") End If '************ The line with "Len(Dir" in it works fine. Bu when the Kill line tries to run I get an error 75 ("Path/File access error") I can easily rename the file and move it around in explorer so I know it's not being used by anything. I've used this syntax before in other VB apps with no problem. If I rename the file through explorer and run that line again it says Error 53 :File Not Found". Which makes perfect sense. Is it because it's an EXE file? Am I missing something really obvious? John Skolits *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from HealthSource/Hudson Health Plan (HS/HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HS/HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From JSkolits at CorporateDataDesign.com Wed Feb 26 21:29:14 2003 From: JSkolits at CorporateDataDesign.com (John Skolits) Date: Wed, 26 Feb 2003 22:29:14 -0500 Subject: [dba-VB] Simple problem. Can't use Kill In-Reply-To: <22F1CCD5171D17419CB37FEEE09D5F99D8521E@TTNEXCHSRV1.hshhp.com> Message-ID: Jim, Try a folder a few levels down and tell me if it works. Like "c:\Program Files\Microsoft Office\...." John -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Jim DeMarco Sent: Wednesday, February 26, 2003 10:21 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Simple problem. Can't use Kill Is there a Help button on the error message that might give you some insight? I thought the problem might be in the parens or maybe a space in the path but I tried both and it worked for me (killed an exe in my c:\ folder). Jim DeMarco -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of John Skolits Sent: Wednesday, February 26, 2003 9:03 PM To: dba-VB at databaseadvisors.com Subject: [dba-VB] Simple problem. Can't use Kill Am I losing it? Why doesn't the Kill statement work in this code. '********* Dim strRuntimePath as string strRuntimePath ="C:\Program Files\Microsoft Office\ART\Office" If Len(Dir(strRuntimePath & "\msaccess_SR1.exe")) > 0 Then Kill (strRuntimePath & "\msaccess_SR1.exe") End If '************ The line with "Len(Dir" in it works fine. Bu when the Kill line tries to run I get an error 75 ("Path/File access error") I can easily rename the file and move it around in explorer so I know it's not being used by anything. I've used this syntax before in other VB apps with no problem. If I rename the file through explorer and run that line again it says Error 53 :File Not Found". Which makes perfect sense. Is it because it's an EXE file? Am I missing something really obvious? John Skolits **************************************************************************** ******* "This electronic message is intended to be for the use only of the named recipient, and may contain information from HealthSource/Hudson Health Plan (HS/HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HS/HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". **************************************************************************** ******* _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From JSkolits at CorporateDataDesign.com Wed Feb 26 21:53:15 2003 From: JSkolits at CorporateDataDesign.com (John Skolits) Date: Wed, 26 Feb 2003 22:53:15 -0500 Subject: [dba-VB] RE: [AccessD] VB Simple problem. Can't use Kill -SOLVED! In-Reply-To: Message-ID: File was Read Only! Only took me 2 hours to figure it out From Jdemarco at hshhp.org Thu Feb 27 06:43:29 2003 From: Jdemarco at hshhp.org (Jim DeMarco) Date: Thu, 27 Feb 2003 07:43:29 -0500 Subject: [dba-VB] Simple problem. Can't use Kill Message-ID: <22F1CCD5171D17419CB37FEEE09D5F99E54A5A@TTNEXCHSRV1.hshhp.com> John, It works there, but you got this working didn't you? Jim -----Original Message----- From: John Skolits [mailto:JSkolits at CorporateDataDesign.com] Sent: Wednesday, February 26, 2003 10:29 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Simple problem. Can't use Kill Jim, Try a folder a few levels down and tell me if it works. Like "c:\Program Files\Microsoft Office\...." John -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Jim DeMarco Sent: Wednesday, February 26, 2003 10:21 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Simple problem. Can't use Kill Is there a Help button on the error message that might give you some insight? I thought the problem might be in the parens or maybe a space in the path but I tried both and it worked for me (killed an exe in my c:\ folder). Jim DeMarco -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of John Skolits Sent: Wednesday, February 26, 2003 9:03 PM To: dba-VB at databaseadvisors.com Subject: [dba-VB] Simple problem. Can't use Kill Am I losing it? Why doesn't the Kill statement work in this code. '********* Dim strRuntimePath as string strRuntimePath ="C:\Program Files\Microsoft Office\ART\Office" If Len(Dir(strRuntimePath & "\msaccess_SR1.exe")) > 0 Then Kill (strRuntimePath & "\msaccess_SR1.exe") End If '************ The line with "Len(Dir" in it works fine. Bu when the Kill line tries to run I get an error 75 ("Path/File access error") I can easily rename the file and move it around in explorer so I know it's not being used by anything. I've used this syntax before in other VB apps with no problem. If I rename the file through explorer and run that line again it says Error 53 :File Not Found". Which makes perfect sense. Is it because it's an EXE file? Am I missing something really obvious? John Skolits **************************************************************************** ******* "This electronic message is intended to be for the use only of the named recipient, and may contain information from HealthSource/Hudson Health Plan (HS/HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HS/HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". **************************************************************************** ******* _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from HealthSource/Hudson Health Plan (HS/HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HS/HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From JSkolits at CorporateDataDesign.com Thu Feb 27 06:57:45 2003 From: JSkolits at CorporateDataDesign.com (John Skolits) Date: Thu, 27 Feb 2003 07:57:45 -0500 Subject: [dba-VB] Simple problem. Can't use Kill In-Reply-To: <22F1CCD5171D17419CB37FEEE09D5F99E54A5A@TTNEXCHSRV1.hshhp.com> Message-ID: Yea. The file was read only. I used the following code to change the read only flag. Then killed it. Dim fs, f Dim strFileToKill as String strFileToKill = "C:\Program Files\Microsoft Office\ART\Office\msaccess_SR1.exe" 'Make sure it's read only flag is false Set fs = CreateObject("Scripting.FileSystemObject") Set f = fs.GetFile((strFileToKill)) If f.Attributes And 1 Then 'File is read only, remove the flag f.Attributes = f.Attributes - 1 End If Kill (strFileToKill) Thanks, John -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Jim DeMarco Sent: Thursday, February 27, 2003 7:43 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Simple problem. Can't use Kill John, It works there, but you got this working didn't you? Jim -----Original Message----- From: John Skolits [mailto:JSkolits at CorporateDataDesign.com] Sent: Wednesday, February 26, 2003 10:29 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Simple problem. Can't use Kill Jim, Try a folder a few levels down and tell me if it works. Like "c:\Program Files\Microsoft Office\...." John -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Jim DeMarco Sent: Wednesday, February 26, 2003 10:21 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Simple problem. Can't use Kill Is there a Help button on the error message that might give you some insight? I thought the problem might be in the parens or maybe a space in the path but I tried both and it worked for me (killed an exe in my c:\ folder). Jim DeMarco -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of John Skolits Sent: Wednesday, February 26, 2003 9:03 PM To: dba-VB at databaseadvisors.com Subject: [dba-VB] Simple problem. Can't use Kill Am I losing it? Why doesn't the Kill statement work in this code. '********* Dim strRuntimePath as string strRuntimePath ="C:\Program Files\Microsoft Office\ART\Office" If Len(Dir(strRuntimePath & "\msaccess_SR1.exe")) > 0 Then Kill (strRuntimePath & "\msaccess_SR1.exe") End If '************ The line with "Len(Dir" in it works fine. Bu when the Kill line tries to run I get an error 75 ("Path/File access error") I can easily rename the file and move it around in explorer so I know it's not being used by anything. I've used this syntax before in other VB apps with no problem. If I rename the file through explorer and run that line again it says Error 53 :File Not Found". Which makes perfect sense. Is it because it's an EXE file? Am I missing something really obvious? John Skolits **************************************************************************** ******* "This electronic message is intended to be for the use only of the named recipient, and may contain information from HealthSource/Hudson Health Plan (HS/HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HS/HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". **************************************************************************** ******* _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com **************************************************************************** ******* "This electronic message is intended to be for the use only of the named recipient, and may contain information from HealthSource/Hudson Health Plan (HS/HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HS/HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". **************************************************************************** ******* _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From R.Griffiths at bury.gov.uk Thu Feb 27 07:07:39 2003 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Thu, 27 Feb 2003 13:07:39 -0000 Subject: [dba-VB] Open DB Message-ID: <52339DF8DCA2A544AF660C8217EB7DCD0227F0F5@mailgate.bury.gov.uk> Hi Group Can't seem to find the exact bit of code I need......to be able to open another database which has its own password and is in a different workgroup using DAO. Can find code for this....... to open another database which has its own password using DAO Anyone been there? Thanks Richard -------------------------------------------------------------------------------------------------------------------- This e-mail, together with any files transmitted with it, is confidential and intended solely for the use of the individual to whom it is addressed. If you are not the intended recipient, or the person responsible for delivering to the intended recipient, be advised that you have received this e-mail in error and that any use, dissemination, forwarding, printing or copying of this e-mail is strictly prohibited without liability on our part. If you have received this e-mail in error please notify the sender. From Jdemarco at hshhp.org Thu Feb 27 07:08:19 2003 From: Jdemarco at hshhp.org (Jim DeMarco) Date: Thu, 27 Feb 2003 08:08:19 -0500 Subject: [dba-VB] Simple problem. Can't use Kill Message-ID: <22F1CCD5171D17419CB37FEEE09D5F99D85225@TTNEXCHSRV1.hshhp.com> Thanks. If you're using the file system object to set the Read Only flag why not use it to delete as well? f.Delete Same difference I know but you've already got a pointer to the file. Jim DeMarco -----Original Message----- From: John Skolits [mailto:JSkolits at CorporateDataDesign.com] Sent: Thursday, February 27, 2003 7:58 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Simple problem. Can't use Kill Yea. The file was read only. I used the following code to change the read only flag. Then killed it. Dim fs, f Dim strFileToKill as String strFileToKill = "C:\Program Files\Microsoft Office\ART\Office\msaccess_SR1.exe" 'Make sure it's read only flag is false Set fs = CreateObject("Scripting.FileSystemObject") Set f = fs.GetFile((strFileToKill)) If f.Attributes And 1 Then 'File is read only, remove the flag f.Attributes = f.Attributes - 1 End If Kill (strFileToKill) Thanks, John -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Jim DeMarco Sent: Thursday, February 27, 2003 7:43 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Simple problem. Can't use Kill John, It works there, but you got this working didn't you? Jim -----Original Message----- From: John Skolits [mailto:JSkolits at CorporateDataDesign.com] Sent: Wednesday, February 26, 2003 10:29 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Simple problem. Can't use Kill Jim, Try a folder a few levels down and tell me if it works. Like "c:\Program Files\Microsoft Office\...." John -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Jim DeMarco Sent: Wednesday, February 26, 2003 10:21 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Simple problem. Can't use Kill Is there a Help button on the error message that might give you some insight? I thought the problem might be in the parens or maybe a space in the path but I tried both and it worked for me (killed an exe in my c:\ folder). Jim DeMarco -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of John Skolits Sent: Wednesday, February 26, 2003 9:03 PM To: dba-VB at databaseadvisors.com Subject: [dba-VB] Simple problem. Can't use Kill Am I losing it? Why doesn't the Kill statement work in this code. '********* Dim strRuntimePath as string strRuntimePath ="C:\Program Files\Microsoft Office\ART\Office" If Len(Dir(strRuntimePath & "\msaccess_SR1.exe")) > 0 Then Kill (strRuntimePath & "\msaccess_SR1.exe") End If '************ The line with "Len(Dir" in it works fine. Bu when the Kill line tries to run I get an error 75 ("Path/File access error") I can easily rename the file and move it around in explorer so I know it's not being used by anything. I've used this syntax before in other VB apps with no problem. If I rename the file through explorer and run that line again it says Error 53 :File Not Found". Which makes perfect sense. Is it because it's an EXE file? Am I missing something really obvious? John Skolits **************************************************************************** ******* "This electronic message is intended to be for the use only of the named recipient, and may contain information from HealthSource/Hudson Health Plan (HS/HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HS/HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". **************************************************************************** ******* _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com **************************************************************************** ******* "This electronic message is intended to be for the use only of the named recipient, and may contain information from HealthSource/Hudson Health Plan (HS/HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HS/HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". **************************************************************************** ******* _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from HealthSource/Hudson Health Plan (HS/HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HS/HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From JSkolits at CorporateDataDesign.com Thu Feb 27 07:14:56 2003 From: JSkolits at CorporateDataDesign.com (John Skolits) Date: Thu, 27 Feb 2003 08:14:56 -0500 Subject: [dba-VB] Simple problem. Can't use Kill In-Reply-To: <22F1CCD5171D17419CB37FEEE09D5F99D85225@TTNEXCHSRV1.hshhp.com> Message-ID: Because I was tired and cranky after spending all this time on a stupid problem and just copied the code out of a VB example and never really thought about it. So There! :) John p.s. Good idea though! -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Jim DeMarco Sent: Thursday, February 27, 2003 8:08 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Simple problem. Can't use Kill Thanks. If you're using the file system object to set the Read Only flag why not use it to delete as well? f.Delete Same difference I know but you've already got a pointer to the file. Jim DeMarco -----Original Message----- From: John Skolits [mailto:JSkolits at CorporateDataDesign.com] Sent: Thursday, February 27, 2003 7:58 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Simple problem. Can't use Kill Yea. The file was read only. I used the following code to change the read only flag. Then killed it. Dim fs, f Dim strFileToKill as String strFileToKill = "C:\Program Files\Microsoft Office\ART\Office\msaccess_SR1.exe" 'Make sure it's read only flag is false Set fs = CreateObject("Scripting.FileSystemObject") Set f = fs.GetFile((strFileToKill)) If f.Attributes And 1 Then 'File is read only, remove the flag f.Attributes = f.Attributes - 1 End If Kill (strFileToKill) Thanks, John -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Jim DeMarco Sent: Thursday, February 27, 2003 7:43 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Simple problem. Can't use Kill John, It works there, but you got this working didn't you? Jim -----Original Message----- From: John Skolits [mailto:JSkolits at CorporateDataDesign.com] Sent: Wednesday, February 26, 2003 10:29 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Simple problem. Can't use Kill Jim, Try a folder a few levels down and tell me if it works. Like "c:\Program Files\Microsoft Office\...." John -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Jim DeMarco Sent: Wednesday, February 26, 2003 10:21 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Simple problem. Can't use Kill Is there a Help button on the error message that might give you some insight? I thought the problem might be in the parens or maybe a space in the path but I tried both and it worked for me (killed an exe in my c:\ folder). Jim DeMarco -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of John Skolits Sent: Wednesday, February 26, 2003 9:03 PM To: dba-VB at databaseadvisors.com Subject: [dba-VB] Simple problem. Can't use Kill Am I losing it? Why doesn't the Kill statement work in this code. '********* Dim strRuntimePath as string strRuntimePath ="C:\Program Files\Microsoft Office\ART\Office" If Len(Dir(strRuntimePath & "\msaccess_SR1.exe")) > 0 Then Kill (strRuntimePath & "\msaccess_SR1.exe") End If '************ The line with "Len(Dir" in it works fine. Bu when the Kill line tries to run I get an error 75 ("Path/File access error") I can easily rename the file and move it around in explorer so I know it's not being used by anything. I've used this syntax before in other VB apps with no problem. If I rename the file through explorer and run that line again it says Error 53 :File Not Found". Which makes perfect sense. Is it because it's an EXE file? Am I missing something really obvious? John Skolits **************************************************************************** ******* "This electronic message is intended to be for the use only of the named recipient, and may contain information from HealthSource/Hudson Health Plan (HS/HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HS/HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". **************************************************************************** ******* _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com **************************************************************************** ******* "This electronic message is intended to be for the use only of the named recipient, and may contain information from HealthSource/Hudson Health Plan (HS/HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HS/HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". **************************************************************************** ******* _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com **************************************************************************** ******* "This electronic message is intended to be for the use only of the named recipient, and may contain information from HealthSource/Hudson Health Plan (HS/HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HS/HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". **************************************************************************** ******* _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From JSkolits at CorporateDataDesign.com Thu Feb 27 07:20:17 2003 From: JSkolits at CorporateDataDesign.com (John Skolits) Date: Thu, 27 Feb 2003 08:20:17 -0500 Subject: [dba-VB] Open DB In-Reply-To: <52339DF8DCA2A544AF660C8217EB7DCD0227F0F5@mailgate.bury.gov.uk> Message-ID: See if this works for you '**************** Dim dbe As DAO.PrivDBEngine Dim wsp As DAO.Workspace Dim dbEXT_Database As DAO.Database Dim strSecurityFileName as String Dim strFullDatabasePath as String strSecurityFileName="c:\Windows\Ssytem\system.mdw" strFullDatabasePath = "c:\Test.mdb" Set dbe = New PrivDBEngine With dbe .SystemDB = strSecurityFileName .DefaultUser = "User" .DefaultPassword = "Password" End With Set wsp = dbe.Workspaces(0) 'systemdb is locked in now Set dbEXT_Database = wsp.OpenDatabase(strFullDatabasePath) '************** I didn't check all the syntax but it should be OK John Skolits -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Griffiths, Richard Sent: Thursday, February 27, 2003 8:08 AM To: 'AccessD at databaseadvisors.com'; 'dba-VB at databaseadvisors.com' Subject: [dba-VB] Open DB Hi Group Can't seem to find the exact bit of code I need......to be able to open another database which has its own password and is in a different workgroup using DAO. Can find code for this....... to open another database which has its own password using DAO Anyone been there? Thanks Richard ---------------------------------------------------------------------------- ---------------------------------------- This e-mail, together with any files transmitted with it, is confidential and intended solely for the use of the individual to whom it is addressed. If you are not the intended recipient, or the person responsible for delivering to the intended recipient, be advised that you have received this e-mail in error and that any use, dissemination, forwarding, printing or copying of this e-mail is strictly prohibited without liability on our part. If you have received this e-mail in error please notify the sender. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From R.Griffiths at bury.gov.uk Thu Feb 27 09:27:00 2003 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Thu, 27 Feb 2003 15:27:00 -0000 Subject: [dba-VB] Open DB Message-ID: <52339DF8DCA2A544AF660C8217EB7DCD0227F0F7@mailgate.bury.gov.uk> John Well done - this is perfect BTW what is PrivDBEngine - can't find in object browser Are there any implications using this method? Thanks Richard > -----Original Message----- > From: John Skolits [SMTP:JSkolits at CorporateDataDesign.com] > Sent: 27 February 2003 13:20 > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] Open DB > > > See if this works for you > > '**************** > > Dim dbe As DAO.PrivDBEngine > Dim wsp As DAO.Workspace > Dim dbEXT_Database As DAO.Database > Dim strSecurityFileName as String > Dim strFullDatabasePath as String > > strSecurityFileName="c:\Windows\Ssytem\system.mdw" > strFullDatabasePath = "c:\Test.mdb" > > Set dbe = New PrivDBEngine > With dbe > .SystemDB = strSecurityFileName > .DefaultUser = "User" > .DefaultPassword = "Password" > End With > > Set wsp = dbe.Workspaces(0) 'systemdb is locked in now > > Set dbEXT_Database = wsp.OpenDatabase(strFullDatabasePath) > > > '************** > > I didn't check all the syntax but it should be OK > > > John Skolits > > > -----Original Message----- > From: dba-vb-admin at databaseadvisors.com > [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Griffiths, > Richard > Sent: Thursday, February 27, 2003 8:08 AM > To: 'AccessD at databaseadvisors.com'; 'dba-VB at databaseadvisors.com' > Subject: [dba-VB] Open DB > > > Hi Group > > Can't seem to find the exact bit of code I need......to be able to open > another database which has its own password and is in a different > workgroup > using DAO. > > Can find code for this....... to open another database which has its own > password using DAO > > Anyone been there? > Thanks > Richard > > -------------------------------------------------------------------------- > -- > ---------------------------------------- > This e-mail, together with any files transmitted with it, is > confidential and intended solely for the use of the individual to > whom it is addressed. If you are not the intended recipient, or > the person responsible for delivering to the intended recipient, > be advised that you have received this e-mail in error and that any > use, dissemination, forwarding, printing or copying of this e-mail > is strictly prohibited without liability on our part. > > If you have received this e-mail in error please notify the sender. > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > -------------------------------------------------------------------------------------------------------------------- This e-mail, together with any files transmitted with it, is confidential and intended solely for the use of the individual to whom it is addressed. If you are not the intended recipient, or the person responsible for delivering to the intended recipient, be advised that you have received this e-mail in error and that any use, dissemination, forwarding, printing or copying of this e-mail is strictly prohibited without liability on our part. If you have received this e-mail in error please notify the sender. From JSkolits at CorporateDataDesign.com Thu Feb 27 10:04:37 2003 From: JSkolits at CorporateDataDesign.com (John Skolits) Date: Thu, 27 Feb 2003 11:04:37 -0500 Subject: [dba-VB] Open DB In-Reply-To: <52339DF8DCA2A544AF660C8217EB7DCD0227F0F7@mailgate.bury.gov.uk> Message-ID: The PrivDBEngine is an unsupported object. But, I use it all the time to modify backends that I have locked out. Never had a problem. If you subscribe to 'Smart Access' there is an article on PrivDBEngine. I don't subscribe to Smart Access but I'm sure someone on the list does. Maybe someone can get a copy for you. I'm sure it will list all the properties and methods of the object. Here's a page that has the link for PrivDBEngine: http://www.myjavasource.com/sa/samain.nsf/0/B0D0397E0CFFBEA88725689D00799FB7 John Skolits -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Griffiths, Richard Sent: Thursday, February 27, 2003 10:27 AM To: 'dba-vb at databaseadvisors.com' Subject: RE: [dba-VB] Open DB John Well done - this is perfect BTW what is PrivDBEngine - can't find in object browser Are there any implications using this method? Thanks Richard > -----Original Message----- > From: John Skolits [SMTP:JSkolits at CorporateDataDesign.com] > Sent: 27 February 2003 13:20 > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] Open DB > > > See if this works for you > > '**************** > > Dim dbe As DAO.PrivDBEngine > Dim wsp As DAO.Workspace > Dim dbEXT_Database As DAO.Database > Dim strSecurityFileName as String > Dim strFullDatabasePath as String > > strSecurityFileName="c:\Windows\Ssytem\system.mdw" > strFullDatabasePath = "c:\Test.mdb" > > Set dbe = New PrivDBEngine > With dbe > .SystemDB = strSecurityFileName > .DefaultUser = "User" > .DefaultPassword = "Password" > End With > > Set wsp = dbe.Workspaces(0) 'systemdb is locked in now > > Set dbEXT_Database = wsp.OpenDatabase(strFullDatabasePath) > > > '************** > > I didn't check all the syntax but it should be OK > > > John Skolits > > > -----Original Message----- > From: dba-vb-admin at databaseadvisors.com > [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Griffiths, > Richard > Sent: Thursday, February 27, 2003 8:08 AM > To: 'AccessD at databaseadvisors.com'; 'dba-VB at databaseadvisors.com' > Subject: [dba-VB] Open DB > > > Hi Group > > Can't seem to find the exact bit of code I need......to be able to open > another database which has its own password and is in a different > workgroup > using DAO. > > Can find code for this....... to open another database which has its own > password using DAO > > Anyone been there? > Thanks > Richard > > -------------------------------------------------------------------------- > -- > ---------------------------------------- > This e-mail, together with any files transmitted with it, is > confidential and intended solely for the use of the individual to > whom it is addressed. If you are not the intended recipient, or > the person responsible for delivering to the intended recipient, > be advised that you have received this e-mail in error and that any > use, dissemination, forwarding, printing or copying of this e-mail > is strictly prohibited without liability on our part. > > If you have received this e-mail in error please notify the sender. > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > ---------------------------------------------------------------------------- ---------------------------------------- This e-mail, together with any files transmitted with it, is confidential and intended solely for the use of the individual to whom it is addressed. If you are not the intended recipient, or the person responsible for delivering to the intended recipient, be advised that you have received this e-mail in error and that any use, dissemination, forwarding, printing or copying of this e-mail is strictly prohibited without liability on our part. If you have received this e-mail in error please notify the sender. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From my.lists at verizon.net Fri Feb 28 15:16:00 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Fri, 28 Feb 2003 13:16:00 -0800 Subject: [dba-VB] Closing an application Message-ID: <00c401c2df6e$982b8220$b615010a@FHTAPIA> Dumb question.... I've always used In my limited experience w/ VB to just close my form w/ a simple Unload Me recently I picked up some code from PSC on how to auto-update my FE program automatically... the problem is with the auto-updater, for some reason when running it will hang every so often and when I C-A-D, it shows my program as not responding.. (win2k, VB6). The author's webpage is 404'ed, so I can't ask him... what do you guys use.. I would rather not use END... help? -Francisco http://rcm.netfirms.com From mikedorism at ntelos.net Fri Feb 28 15:40:05 2003 From: mikedorism at ntelos.net (Mike and Doris Manning) Date: Fri, 28 Feb 2003 16:40:05 -0500 Subject: [dba-VB] Closing an application In-Reply-To: <00c401c2df6e$982b8220$b615010a@FHTAPIA> Message-ID: <000401c2df71$f882b7d0$ac320cd8@hargrove.internal> "Unload Me" hides the form and removes it from memory so you are definitely doing the right thing. As with Access, "END" is a no-no. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com] On Behalf Of Francisco H Tapia Sent: Friday, February 28, 2003 04:16 PM To: dba-VB at databaseadvisors.com Subject: [dba-VB] Closing an application Dumb question.... I've always used In my limited experience w/ VB to just close my form w/ a simple Unload Me recently I picked up some code from PSC on how to auto-update my FE program automatically... the problem is with the auto-updater, for some reason when running it will hang every so often and when I C-A-D, it shows my program as not responding.. (win2k, VB6). The author's webpage is 404'ed, so I can't ask him... what do you guys use.. I would rather not use END... help? -Francisco http://rcm.netfirms.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From my.lists at verizon.net Fri Feb 28 16:29:50 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Fri, 28 Feb 2003 14:29:50 -0800 Subject: [dba-VB] Closing an application References: <000401c2df71$f882b7d0$ac320cd8@hargrove.internal> Message-ID: <00fb01c2df78$e8a7dd20$b615010a@FHTAPIA> If I wanted to close the application in Access I use Docmd.Quit. Are you saying that Unload Me Is the DoCmd.Quit for VB? btw, I'm compiling the autoupdater as an .exe separate from the Access FE so it is a VB6 applette if you will... nothing special I'm sure just a good ol' OpenURL method. -Francisco http://rcm.netfirms.com ----- Original Message ----- From: "Mike and Doris Manning" To: Sent: Friday, February 28, 2003 1:40 PM Subject: RE: [dba-VB] Closing an application : "Unload Me" hides the form and removes it from memory so you are definitely : doing the right thing. As with Access, "END" is a no-no. : : Doris Manning : Database Administrator : Hargrove Inc. : www.hargroveinc.com : : : -----Original Message----- : From: dba-vb-admin at databaseadvisors.com : [mailto:dba-vb-admin at databaseadvisors.com] On Behalf Of Francisco H Tapia : Sent: Friday, February 28, 2003 04:16 PM : To: dba-VB at databaseadvisors.com : Subject: [dba-VB] Closing an application : : : Dumb question.... : : I've always used In my limited experience w/ VB to just close my form w/ a : simple : : Unload Me : : recently I picked up some code from PSC on how to auto-update my FE program : automatically... the problem is with the auto-updater, for some reason when : running it will hang every so often and when I C-A-D, it shows my program as : not responding.. (win2k, VB6). The author's webpage is 404'ed, so I can't : ask him... what do you guys use.. I would rather not use END... help? : : -Francisco : http://rcm.netfirms.com : : : _______________________________________________ : dba-VB mailing list : dba-VB at databaseadvisors.com : http://databaseadvisors.com/mailman/listinfo/dba-vb : http://www.databaseadvisors.com : : : _______________________________________________ : dba-VB mailing list : dba-VB at databaseadvisors.com : http://databaseadvisors.com/mailman/listinfo/dba-vb : http://www.databaseadvisors.com : : From ghazzard at aelfen.net Fri Feb 28 18:24:05 2003 From: ghazzard at aelfen.net (Gregory K. Hazzard) Date: Fri, 28 Feb 2003 18:24:05 -0600 Subject: [dba-VB] Closing an application In-Reply-To: <000401c2df71$f882b7d0$ac320cd8@hargrove.internal> Message-ID: <005201c2df88$de7b8b20$0200a8c0@greg> I have heard this in the past - and I must admit to being guilty of using End, but I've never really know the difference, other than End exits your app no matter where it is, and unload requires you to call each form individually. What makes End such a No-no? Greg -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com] On Behalf Of Mike and Doris Manning Sent: Friday, February 28, 2003 3:40 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Closing an application "Unload Me" hides the form and removes it from memory so you are definitely doing the right thing. As with Access, "END" is a no-no. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com From DWUTKA at marlow.com Fri Feb 28 19:15:11 2003 From: DWUTKA at marlow.com (Drew Wutka) Date: Fri, 28 Feb 2003 19:15:11 -0600 Subject: [dba-VB] Closing an application Message-ID: <2F8793082E00D4119A1700B0D0216BF801D821D3@main2.marlow.com> Ditto. End is what you use to close a VB App. Sure, if you have one form, and nothing loaded in the background, you can just unload the form (or give the user the 'x') but End stops the execution of your VB .exe, thus unloading everything. Drew -----Original Message----- From: Gregory K. Hazzard [mailto:ghazzard at aelfen.net] Sent: Friday, February 28, 2003 6:24 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Closing an application I have heard this in the past - and I must admit to being guilty of using End, but I've never really know the difference, other than End exits your app no matter where it is, and unload requires you to call each form individually. What makes End such a No-no? Greg -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com] On Behalf Of Mike and Doris Manning Sent: Friday, February 28, 2003 3:40 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Closing an application "Unload Me" hides the form and removes it from memory so you are definitely doing the right thing. As with Access, "END" is a no-no. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From Jdemarco at hshhp.org Fri Feb 7 07:16:25 2003 From: Jdemarco at hshhp.org (Jim DeMarco) Date: Fri, 7 Feb 2003 08:16:25 -0500 Subject: [dba-VB] test Message-ID: <22F1CCD5171D17419CB37FEEE09D5F99D8500D@TTNEXCHSRV1.hshhp.com> no response necessary *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from HealthSource/Hudson Health Plan (HS/HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HS/HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From Jdemarco at hshhp.org Fri Feb 7 07:31:02 2003 From: Jdemarco at hshhp.org (Jim DeMarco) Date: Fri, 7 Feb 2003 08:31:02 -0500 Subject: [dba-VB] Web Service - Page Not Found Error Message-ID: <22F1CCD5171D17419CB37FEEE09D5F99D85011@TTNEXCHSRV1.hshhp.com> I was having a problem getting a .NET web service deployed so I thought I'd run a test on a very simple service to see that I was able to get a response back from the service. I created a service with two functions AddEm and SubtractEm which adds or subtracts 2 integers and returns the result. Works fine on my dev box but when I deployed it on our live web server I get an error 404 Page Not Found when the Invoke button is clicked on the .asmx page calling either function. I then copied the app to another local server (my old desktop machine) and it works just fine. In talking to one of our networking consultants he asks the following questions that I don't have answers to. If anyone can help I'd appreciate it. 1.What protocol/port number is the server application (web service??) using? 2. Does the web server create a new session or respond to a request from a web service within the same session? If you want the link to the live service or the service itself to try on your own machine I'd be glad to send it. It's a pretty trivial service and I don't believe there's anything wrong with it as it does almost nothing. Thanks, Jim DeMarco Director of Product Development HealthSource/Hudson Health Plan *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from HealthSource/Hudson Health Plan (HS/HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HS/HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From paul.hartland at fsmail.net Tue Feb 11 02:51:24 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 11 Feb 2003 8:51:24 +0000 Subject: [dba-VB] Combo Box on DataGrid (Visual Basic 6) Message-ID: <20030211085124.BAMA5116.fep06-svc.ttys.com@localhost> To all, Not having much experience with DataGrids (VB6), I was playing around yesterday and found out you could put a button on a column (This I done without a problem), but I also heard you could have a ComboBox/ListBox appear when the button is pressed, Anyone any idea on how to display the ComboBox/ListBox when this is pressed ????? Any help, sample code etc appreciated............. Paul __________________________________________________________________________ Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month after that. For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890 From paul.hartland at fsmail.net Wed Feb 12 04:12:12 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 12 Feb 2003 10:12:12 +0000 Subject: [dba-VB] What Column (DataGrid VB6) Message-ID: <20030212101212.CIFA5116.fep06-svc.ttys.com@localhost> To all, I have a DataGrid in a VB6 Front-End, I have to lock specific fields so that users can't edit them. The trouble is, when you tab into a locked field, the cursor disappears.......... Is there anyway to show the user what field they are in even when it's locked...............????????? Thanks in advance........... Paul __________________________________________________________________________ Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month after that. For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890 From Jdemarco at hshhp.org Wed Feb 12 07:40:47 2003 From: Jdemarco at hshhp.org (Jim DeMarco) Date: Wed, 12 Feb 2003 08:40:47 -0500 Subject: [dba-VB] What Column (DataGrid VB6) Message-ID: <22F1CCD5171D17419CB37FEEE09D5F99D850A9@TTNEXCHSRV1.hshhp.com> You could try using color to highlight the current cell. HTH, Jim DeMarco Director of Product Development HealthSource/Hudson Health Plan -----Original Message----- From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] Sent: Wednesday, February 12, 2003 5:12 AM To: accessd at databaseadvisors.com; dba-VB at databaseadvisors.com Subject: [dba-VB] What Column (DataGrid VB6) To all, I have a DataGrid in a VB6 Front-End, I have to lock specific fields so that users can't edit them. The trouble is, when you tab into a locked field, the cursor disappears.......... Is there anyway to show the user what field they are in even when it's locked...............????????? Thanks in advance........... Paul __________________________________________________________________________ Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month after that. For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890 _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from HealthSource/Hudson Health Plan (HS/HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HS/HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From paul.hartland at fsmail.net Wed Feb 12 08:01:11 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 12 Feb 2003 14:01:11 +0000 Subject: [dba-VB] What Column (DataGrid VB6) Message-ID: <20030212140111.HNAA7162.fep07-svc.ttys.com@localhost> Thats what I thought of doing, but can't find how the change the color of just one cell............ Paul From: "Jim DeMarco" Date: Wed 12/Feb/2003 13:40 GMT To: Subject: RE: [dba-VB] What Column (DataGrid VB6) You could try using color to highlight the current cell. HTH, Jim DeMarco Director of Product Development HealthSource/Hudson Health Plan -----Original Message----- From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] Sent: Wednesday, February 12, 2003 5:12 AM To: accessd at databaseadvisors.com; dba-VB at databaseadvisors.com Subject: [dba-VB] What Column (DataGrid VB6) To all, I have a DataGrid in a VB6 Front-End, I have to lock specific fields so that users can't edit them. The trouble is, when you tab into a locked field, the cursor disappears.......... Is there anyway to show the user what field they are in even when it's locked...............????????? Thanks in advance........... Paul __________________________________________________________________________ Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month after that. For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890 _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from HealthSource/Hudson Health Plan (HS/HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HS/HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com __________________________________________________________________________ Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month after that. For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890 From paul.hartland at fsmail.net Thu Feb 13 03:10:17 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 13 Feb 2003 9:10:17 +0000 Subject: [dba-VB] URGENT (VB6 Problem) Message-ID: <20030213091017.DOFH5116.fep06-svc.ttys.com@localhost> To all, I have a form with an ADODC DataControl and fields which link into the DataControl. I have never seen/or tried this before, but yesterday whilst testing out my application, I came across this.......... I open the form and edit a record, move off that particular record, go back to it edit it again and get this error.......... Row Cannot Be Located For Updating, Some Values May Have Been Changed Since It Was Last Read. Anyone any ideas on why this is happening..........It's a VB6 FE with SQL 7.0 BE Thanks in advance................ Paul __________________________________________________________________________ Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month after that. For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890 From paul.hartland at fsmail.net Thu Feb 13 03:16:10 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Thu, 13 Feb 2003 9:16:10 +0000 Subject: [dba-VB] PLEASE IGNORE - URGENT (VB6 Problem) Message-ID: <20030213091610.DOHN5116.fep06-svc.ttys.com@localhost> To all, Appologies for my last email requesting help, I have found out what is going wrong.........I hadn't set my CursorType and LockType correctly............ Paul __________________________________________________________________________ Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month after that. For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890 From paul.hartland at fsmail.net Fri Feb 14 07:24:07 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Fri, 14 Feb 2003 13:24:07 +0000 Subject: [dba-VB] DataGrid (VB6) Setting Focus To A Column Message-ID: <20030214132407.CONF14152.fep02-svc.ttys.com@localhost> To all, I have a VB DataGrid on a form, and when the user wants to add a new record I insert some default information and the user should then start typing in column 2...... Is there anyway of setting the focus to a particular column after adding a new record ? Paul __________________________________________________________________________ Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month after that. For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890 From paul.hartland at fsmail.net Mon Feb 17 07:48:09 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 17 Feb 2003 13:48:09 +0000 Subject: [dba-VB] Deleting Dates Message-ID: <20030217134809.IOHS5116.fep06-svc.ttys.com@localhost> To all, I have a Visual Basic 6 front-end which is currently linked into a SQL Server 7.0 back-end, I have a table called tblPersonnel in the BE which has a form on the VB6 FE. We take on temporary staff a certain points of the year to help with the workload, and when they finish we enter a finish date for that particualr person....No problem so far......However if they have proved themselves to be a good worker, they get invited back whenever we need the additional staff (saving on re-training etc). But I can seem to get the system to allow me to take out a finish date (making it null again)..... The tblPersonnel.Finishdate field will allow Nulls, and I'm using the ADODC DataControl with a text box linked to the Control and Field FinishDate........ Anyone had similar problems or can tell me how to reset the FinishDate to null Thanks in advance for any help.......... Paul __________________________________________________________________________ Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month after that. For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890 From paul.hartland at fsmail.net Mon Feb 17 07:48:09 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Mon, 17 Feb 2003 13:48:09 +0000 Subject: [dba-VB] [dba-SQLServer]Deleting Dates Message-ID: <20030217134809.IOHS5116.fep06-svc.ttys.com@localhost> To all, I have a Visual Basic 6 front-end which is currently linked into a SQL Server 7.0 back-end, I have a table called tblPersonnel in the BE which has a form on the VB6 FE. We take on temporary staff a certain points of the year to help with the workload, and when they finish we enter a finish date for that particualr person....No problem so far......However if they have proved themselves to be a good worker, they get invited back whenever we need the additional staff (saving on re-training etc). But I can seem to get the system to allow me to take out a finish date (making it null again)..... The tblPersonnel.Finishdate field will allow Nulls, and I'm using the ADODC DataControl with a text box linked to the Control and Field FinishDate........ Anyone had similar problems or can tell me how to reset the FinishDate to null Thanks in advance for any help.......... Paul __________________________________________________________________________ Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month after that. For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890 _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From paul.hartland at fsmail.net Tue Feb 18 04:14:38 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 18 Feb 2003 10:14:38 +0000 Subject: [dba-VB] Is Outlook Open (VB6) Message-ID: <20030218101438.HLEM14152.fep02-svc.ttys.com@localhost> To all, Anyone know how I can check to see if MS Outlook is open using VB6 ? Thanks in advance Paul __________________________________________________________________________ Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month after that. For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890 From carbonnb at sympatico.ca Tue Feb 18 07:05:09 2003 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Tue, 18 Feb 2003 08:05:09 -0500 Subject: [dba-VB] Is Outlook Open (VB6) In-Reply-To: <20030218101438.HLEM14152.fep02-svc.ttys.com@localhost> Message-ID: <3E51E935.19907.A5264@localhost> Cross-posted to AccessD and dba-vb On 18 Feb 2003 at 10:14, paul.hartland at fsmail.net wrote: > Anyone know how I can check to see if MS Outlook is open using VB6 ? Paul, How about something like this: Dom objOut as object On Error Resume Next set objOut = GetObject("Outlook.Application") if Err <> 0 Then MsgBox "Outlook is not open" Else Msgbox "Outlook is open" End if -- Bryan Carbonnell - carbonnb at sympatico.ca We've all heard that a million monkeys banging on a million typewriters will eventually reproduce the entire works of Shakespeare. Now, thanks to the Internet, we know this is not true.^ [Robert Wilensky (1997)] From mikedorism at ntelos.net Tue Feb 18 08:21:07 2003 From: mikedorism at ntelos.net (Mike and Doris Manning) Date: Tue, 18 Feb 2003 09:21:07 -0500 Subject: [dba-VB] Is Outlook Open (VB6) In-Reply-To: <3E51E935.19907.A5264@localhost> Message-ID: <000401c2d759$029d9c60$9a3c0cd8@hargrove.internal> I tried that but it doesn't always yield the correct results, so I chose to handle it via API calls instead. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com] On Behalf Of Bryan Carbonnell Sent: Tuesday, February 18, 2003 08:05 AM To: dba-vb at databaseadvisors.com; accessd at databaseadvisors.com Subject: Re: [dba-VB] Is Outlook Open (VB6) Cross-posted to AccessD and dba-vb On 18 Feb 2003 at 10:14, paul.hartland at fsmail.net wrote: > Anyone know how I can check to see if MS Outlook is open using VB6 ? Paul, How about something like this: Dom objOut as object On Error Resume Next set objOut = GetObject("Outlook.Application") if Err <> 0 Then MsgBox "Outlook is not open" Else Msgbox "Outlook is open" End if -- Bryan Carbonnell - carbonnb at sympatico.ca We've all heard that a million monkeys banging on a million typewriters will eventually reproduce the entire works of Shakespeare. Now, thanks to the Internet, we know this is not true.^ [Robert Wilensky (1997)] _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jcolby at colbyconsulting.com Sat Feb 22 21:11:52 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Sat, 22 Feb 2003 22:11:52 -0500 Subject: [dba-VB] test2 Message-ID: test2 John W. Colby Colby Consulting www.ColbyConsulting.com From jcolby at colbyconsulting.com Sat Feb 22 21:16:45 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Sat, 22 Feb 2003 22:16:45 -0500 Subject: [dba-VB] Is there anyone out there? Message-ID: John W. Colby Colby Consulting www.ColbyConsulting.com From papparuff at attbi.com Sat Feb 22 22:02:19 2003 From: papparuff at attbi.com (John Ruff) Date: Sat, 22 Feb 2003 20:02:19 -0800 Subject: [dba-VB] Is there anyone out there? In-Reply-To: Message-ID: <019f01c2daf0$5ce01230$6401a8c0@papparuff> Yes John, but I haven't received anything sind the 18th. John V. Ruff - The Eternal Optimist :-) "Commit to the Lord whatever you do, and your plans will succeed." Proverbs 16:3 -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com] On Behalf Of John W. Colby Sent: Saturday, February 22, 2003 7:17 PM To: AccessD - VBA Subject: [dba-VB] Is there anyone out there? John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From accessd at shaw.ca Sat Feb 22 21:59:04 2003 From: accessd at shaw.ca (Jim Lawrence (AccessD)) Date: Sat, 22 Feb 2003 19:59:04 -0800 Subject: [dba-VB] Is there anyone out there? In-Reply-To: Message-ID: Hi John: Email received loud and clear. Jim -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of John W. Colby Sent: Saturday, February 22, 2003 7:17 PM To: AccessD - VBA Subject: [dba-VB] Is there anyone out there? John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jcolby at colbyconsulting.com Sun Feb 23 06:20:57 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Sun, 23 Feb 2003 07:20:57 -0500 Subject: [dba-VB] Is there anyone out there? In-Reply-To: <019f01c2daf0$5ce01230$6401a8c0@papparuff> Message-ID: Well maybe it's time to fire this list up! John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of John Ruff Sent: Saturday, February 22, 2003 11:02 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Is there anyone out there? Yes John, but I haven't received anything sind the 18th. John V. Ruff - The Eternal Optimist :-) "Commit to the Lord whatever you do, and your plans will succeed." Proverbs 16:3 -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com] On Behalf Of John W. Colby Sent: Saturday, February 22, 2003 7:17 PM To: AccessD - VBA Subject: [dba-VB] Is there anyone out there? John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From ghazzard at aelfen.net Sun Feb 23 08:36:43 2003 From: ghazzard at aelfen.net (Gregory K. Hazzard) Date: Sun, 23 Feb 2003 08:36:43 -0600 Subject: [dba-VB] VB6: TreeView Controls and Drag-N-Drop Message-ID: <001801c2db48$fce3a1e0$0200a8c0@greg> Since John was so concerned about the lack of information freely flowing about this list, I thought I?d get something started that?s been puzzling me for nigh on a week now. I?m building a VB app that has a TreeView control (tvwDirectoryList) and a File List Box (filFileList). What?s been puzzling me is that there isn?t a lot of information on TreeView controls for VB6 and I?m having a deuce of a time trying to figure out how to get drag and drop to work. I want to be able to drag files from the file list to different folders in the tree view, and while I found the properties to turn on to make the TreeView a drop target, and make the file list willing to let you drag items from it, that?s as far as I have been able to get. I can click on a file, and drag it across, and I get the drag icon (that little greyed out box) but it doesn?t actually select anything in the TreeView to drop the file on, and when I release the mouse button, no dropping occurs. Does anyone have any documentation or an example or even a will guess about how this should occur? Thanks. Gregory K. Hazzard http://www.aelfen.net mailto:ghazzard at aelfen.net "I'm not saying it's safe for humans. I'm not saying it's unsafe for humans. All I'm saying is it that it makes hermaphrodites out of frogs." - Tyrone B. Hayes of the University of California at Berkeley, on the effects of Atrazine on human beings. From carbonnb at sympatico.ca Sun Feb 23 08:53:10 2003 From: carbonnb at sympatico.ca (Bryan Carbonnell) Date: Sun, 23 Feb 2003 09:53:10 -0500 Subject: [dba-VB] VB6: TreeView Controls and Drag-N-Drop In-Reply-To: <001801c2db48$fce3a1e0$0200a8c0@greg> Message-ID: <3E589A06.24955.628E25@localhost> On 23 Feb 2003 at 8:36, Gregory K. Hazzard wrote: > Does anyone have any documentation or an example or even a will guess > about how this should occur? Thanks. Gregory, There really isn't a lot of documentation about TreeViews in general. I am assuming that you have checked MSDN, if not here is a link that has a bunch of info, it's actually a search result from MSDN, http://search.microsoft.com/default.asp?qu=treeview+drag+and+dr op&boolean=ALL&nq=NEW&so=RECCNT&p=1&ig=01&ig=03&ig= 04&ig=05&ig=06&i=00&i=01&i=02&i=03&i=04&i=05&i=06&i=07&i= 08&i=09&i=10&i=11&i=12&i=13&i=14&i=15&i=16&i=17&i=18&i=19 &i=20&i=21&i=22&i=23&i=24&i=25&i=26&i=27&i=28&i=29&i=30&i =31&i=32&i=33&i=34&i=35&i=36&i=37&i=38&i=39&i=40&i=41&sit eid=us/dev Or to make it easier: http://tinyurl.com/69tv You can also look at Arthur Fuller's article in DBA's M2M Newsletter here: http://www.databaseadvisors.com/newsletters/news0109.htm It deals with Adding a TreeView to Access, but it may give you some leads. Finally a google search, http://www.google.ca/search?sourceid=navclient&q=treeview+drag +and+drop, will give you tons of links. -- Bryan Carbonnell - carbonnb at sympatico.ca It was difficult to code. So it damn well better be difficult to use. From DWUTKA at marlow.com Mon Feb 24 11:20:46 2003 From: DWUTKA at marlow.com (Drew Wutka) Date: Mon, 24 Feb 2003 11:20:46 -0600 Subject: [dba-VB] Is there anyone out there? Message-ID: <2F8793082E00D4119A1700B0D0216BF801D82170@main2.marlow.com> This list hasn't gotten much traffic since I've been on it. Drew -----Original Message----- From: John W. Colby [mailto:jcolby at colbyconsulting.com] Sent: Sunday, February 23, 2003 6:21 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Is there anyone out there? Well maybe it's time to fire this list up! John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of John Ruff Sent: Saturday, February 22, 2003 11:02 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Is there anyone out there? Yes John, but I haven't received anything sind the 18th. John V. Ruff - The Eternal Optimist :-) "Commit to the Lord whatever you do, and your plans will succeed." Proverbs 16:3 -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com] On Behalf Of John W. Colby Sent: Saturday, February 22, 2003 7:17 PM To: AccessD - VBA Subject: [dba-VB] Is there anyone out there? John W. Colby Colby Consulting www.ColbyConsulting.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From DWUTKA at marlow.com Mon Feb 24 11:25:48 2003 From: DWUTKA at marlow.com (Drew Wutka) Date: Mon, 24 Feb 2003 11:25:48 -0600 Subject: [dba-VB] VB6: TreeView Controls and Drag-N-Drop Message-ID: <2F8793082E00D4119A1700B0D0216BF801D82171@main2.marlow.com> I have a drag and drop treeview setup. I can send the form so you can see the code if you want. The app itself would be a pain to try to setup for just that example. What it is, is a 'control' window I have that has a 'client' app on every machine in my company. Then we admins (The IS department) can open this control form for any user that is online. It has all sorts of bells and whistles, however, there is one tab that has a 'Windows Explorer' like set of treeviews. It then doubles that set, to display the local machine. (So the top two are the remote user, and the bottom two are the local user). You can then 'drag and drop' files between the two. Let me know if you want me to send you the form I am talking about. Drew -----Original Message----- From: Gregory K. Hazzard [mailto:ghazzard at aelfen.net] Sent: Sunday, February 23, 2003 8:37 AM To: 'Visual Basic Mailing List' Subject: [dba-VB] VB6: TreeView Controls and Drag-N-Drop Since John was so concerned about the lack of information freely flowing about this list, I thought I'd get something started that's been puzzling me for nigh on a week now. I'm building a VB app that has a TreeView control (tvwDirectoryList) and a File List Box (filFileList). What's been puzzling me is that there isn't a lot of information on TreeView controls for VB6 and I'm having a deuce of a time trying to figure out how to get drag and drop to work. I want to be able to drag files from the file list to different folders in the tree view, and while I found the properties to turn on to make the TreeView a drop target, and make the file list willing to let you drag items from it, that's as far as I have been able to get. I can click on a file, and drag it across, and I get the drag icon (that little greyed out box) but it doesn't actually select anything in the TreeView to drop the file on, and when I release the mouse button, no dropping occurs. Does anyone have any documentation or an example or even a will guess about how this should occur? Thanks. Gregory K. Hazzard http://www.aelfen.net mailto:ghazzard at aelfen.net "I'm not saying it's safe for humans. I'm not saying it's unsafe for humans. All I'm saying is it that it makes hermaphrodites out of frogs." - Tyrone B. Hayes of the University of California at Berkeley, on the effects of Atrazine on human beings. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jcolby at colbyconsulting.com Mon Feb 24 20:58:10 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Mon, 24 Feb 2003 21:58:10 -0500 Subject: [dba-VB] .Net - Beyond Hello World Message-ID: Well, I just designed my first bound form, bound to a table in SQL Server. Used a data grid to display the data and a button to load the data into the grid. Total time (following the instructions in help) ~ 1/2 hour. Not bad I think. I already had about 1/2 of my billing app data in SQL Server. So the first attempt to crawl was a smashing success. This is completely different from how I've done things in the past. They do have a pretty nice SQL builder. Not as nice as Access' but I have never seen one as nice as Access'. It reminds me of the one in SQL Server in fact. Maybe it is? OK, so I won't have a complete port of the db with three tiers and a matching web interface by tomorrow. How about a bound form of a single simple table by tomorrow? ;-) I must admit though, I like it so far. It is waaaay different from Access, but it is also light-years closer to Access than the old VB was I think. Not that I was ever an expert in the old VB, I will admit. I am startled at how easy it is to connect to data out in the SQL Server. All you need to know is the name of the machine with SQL Server running (and authorization on that machine / SQL Server). Setting up the connections to the database and table within the db is all wizard driven. Couldn't be much easier than that, unless you count Access' ADP environment. I think getting connected in .net may even have been easier. I haven't found a table builder interface similar to Access' though. I suspect that you have to go direct to SQL Server's enterprise manager and build them there. Or use an Access ADP to build them. OMG, I just discovered that (of course) the form is not a child doc to the environment. This is VB after all. I clicked on the button in the task bar and it popped up right over my email message. I was expecting to be transported back to the .net environment and see the form there. Since the form exists in design view in the .net environment, that means that I can see it in design view and form view at the same time. Yes I know, I'm easily amazed. More tomorrow. John W. Colby Colby Consulting www.ColbyConsulting.com ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com From jcolby at colbyconsulting.com Mon Feb 24 23:45:11 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Tue, 25 Feb 2003 00:45:11 -0500 Subject: [dba-VB] Inheritance Message-ID: I have just finished two articles regarding TRUE IMPLEMENTATION INHERITANCE in .Net. http://www.microsoft.com/mspress/developer/feature/040402.asp The other was buried in a frame (?) which did not show the url when I burrowed down to it. MSDN Home > MSDN Library > .NET Development > Visual Studio .NET > Articles and Columns > Columns > Adventures in Visual Basic.net > Doing collections with inheritance Apparently VB 6 had only interface inheritance, which if you are familiar with and accustomed to implementation inheritance, pretty much sucks. .Net appears to have the real McCoy. Joy in Mudville folks. BTW, an example of some of the example code available for VB.Net: http://msdn.microsoft.com/vbasic/downloads/samples/default.asp John W. Colby Colby Consulting www.ColbyConsulting.com ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com From paul.hartland at fsmail.net Tue Feb 25 03:42:40 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 25 Feb 2003 9:42:40 +0000 Subject: [dba-VB] SQL Server 7 - Stored Procedure Help - Quite Urgent. Message-ID: <20030225094240.LAKO2415.fep03-svc.ttys.com@localhost> To all, Watch for Word Wrap............... Being quite a novice with Stored Procedures on SQL Server 7.0, I'm looking for some pretty urgent help at the moment. I have two tables, lets say Table A & Table B. Table A is my master table, and Table B is a temporary table. Before Table be gets populated with any data, every existing record is deleted so I start with a fresh table so to speak. Table B consists of 3 fields PayrollNo, JobDate, JobType (these fields are also in the master table, but the master table is used to contain other consting information, which is entered at a later date). What I would like is a Stored Procedure which would Insert Table B contents into Table A, but making sure that I don't insert any duplicates into Table A (something like an unmatched query in access but with an Insert also). i.e. Table A Table B payroll jobdate jobtype id payroll jobdate jobtype 999001 01/01/01 0 1 999001 01/01/01 0 999001 01/01/01 2 2 999001 01/01/01 1 999002 01/01/01 2 3 999001 01/01/01 2 4 999002 01/01/01 0 5 999002 01/01/01 1 6 999002 01/01/01 2 So when I invoke the stored procedure, it would insert records 2, 4 and 5 from Table B into Table A........Anyone any idea what I'm on about, if so can anybody please help....... Thanks in advance Paul Hartland __________________________________________________________________________ Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month after that. For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890 From paul.hartland at fsmail.net Tue Feb 25 03:42:40 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Tue, 25 Feb 2003 9:42:40 +0000 Subject: [dba-VB] [dba-SQLServer]SQL Server 7 - Stored Procedure Help - Quite Urgent. Message-ID: <20030225094240.LAKO2415.fep03-svc.ttys.com@localhost> To all, Watch for Word Wrap............... Being quite a novice with Stored Procedures on SQL Server 7.0, I'm looking for some pretty urgent help at the moment. I have two tables, lets say Table A & Table B. Table A is my master table, and Table B is a temporary table. Before Table be gets populated with any data, every existing record is deleted so I start with a fresh table so to speak. Table B consists of 3 fields PayrollNo, JobDate, JobType (these fields are also in the master table, but the master table is used to contain other consting information, which is entered at a later date). What I would like is a Stored Procedure which would Insert Table B contents into Table A, but making sure that I don't insert any duplicates into Table A (something like an unmatched query in access but with an Insert also). i.e. Table A Table B payroll jobdate jobtype id payroll jobdate jobtype 999001 01/01/01 0 1 999001 01/01/01 0 999001 01/01/01 2 2 999001 01/01/01 1 999002 01/01/01 2 3 999001 01/01/01 2 4 999002 01/01/01 0 5 999002 01/01/01 1 6 999002 01/01/01 2 So when I invoke the stored procedure, it would insert records 2, 4 and 5 from Table B into Table A........Anyone any idea what I'm on about, if so can anybody please help....... Thanks in advance Paul Hartland __________________________________________________________________________ Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month after that. For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890 _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From scott.marcus at ae.ge.com Tue Feb 25 05:48:29 2003 From: scott.marcus at ae.ge.com (Marcus, Scott (GEAE, RHI Consulting)) Date: Tue, 25 Feb 2003 06:48:29 -0500 Subject: [dba-VB] SQL Server 7 - Stored Procedure Help - Quite Urgent. Message-ID: <768A0EA6FF8CB34FA522978966E5D52E559D10@bwam02msx.ae.ge.com> Paul, The following is untested and may need tweaking, but I think it will at least get you started... INSERT INTO [Table A] payroll , jobdate, jobtype SELECT B.payroll, B.jobdate, B.jobtype FROM [Table B] as B WHERE B.id NOT IN (SELECT BB.id FROM [Table B] as BB, [Table A] as A WHERE BB.payroll = A.payroll AND BB.jobdate = A.jobdate AND BB.jobtype = A.jobtype) Scott Marcus -----Original Message----- From: paul.hartland at fsmail.net [mailto:paul.hartland at fsmail.net] Sent: Tuesday, February 25, 2003 4:43 AM To: dba-SQLServer at databaseadvisors.com; accessd at databaseadvisors.com; dba-vb at databaseadvisors.com Subject: [dba-VB] SQL Server 7 - Stored Procedure Help - Quite Urgent. To all, Watch for Word Wrap............... Being quite a novice with Stored Procedures on SQL Server 7.0, I'm looking for some pretty urgent help at the moment. I have two tables, lets say Table A & Table B. Table A is my master table, and Table B is a temporary table. Before Table be gets populated with any data, every existing record is deleted so I start with a fresh table so to speak. Table B consists of 3 fields PayrollNo, JobDate, JobType (these fields are also in the master table, but the master table is used to contain other consting information, which is entered at a later date). What I would like is a Stored Procedure which would Insert Table B contents into Table A, but making sure that I don't insert any duplicates into Table A (something like an unmatched query in access but with an Insert also). i.e. Table A Table B payroll jobdate jobtype id payroll jobdate jobtype 999001 01/01/01 0 1 999001 01/01/01 0 999001 01/01/01 2 2 999001 01/01/01 1 999002 01/01/01 2 3 999001 01/01/01 2 4 999002 01/01/01 0 5 999002 01/01/01 1 6 999002 01/01/01 2 So when I invoke the stored procedure, it would insert records 2, 4 and 5 from Table B into Table A........Anyone any idea what I'm on about, if so can anybody please help....... Thanks in advance Paul Hartland __________________________________________________________________________ Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month after that. For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890 _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From ghazzard at aelfen.net Mon Feb 24 15:02:24 2003 From: ghazzard at aelfen.net (Gregory K. Hazzard) Date: Mon, 24 Feb 2003 15:02:24 -0600 Subject: [dba-VB] VB6: TreeView Controls and Drag-N-Drop In-Reply-To: <2F8793082E00D4119A1700B0D0216BF801D82171@main2.marlow.com> Message-ID: <002e01c2dc48$08657ca0$0200a8c0@greg> Drew, That sounds great. You can send me a copy off list at ghazzard at aelfen.net. I really appreciate that. I've been reading through the pages that Bryan suggested, but have been unable thus far to get DnD working. The examples seem to work well enough, but I am obviously not doing something correctly in my app. Thanks Greg -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com] On Behalf Of Drew Wutka Sent: Monday, February 24, 2003 11:26 AM To: 'dba-vb at databaseadvisors.com' Subject: RE: [dba-VB] VB6: TreeView Controls and Drag-N-Drop I have a drag and drop treeview setup. I can send the form so you can see the code if you want... Let me know if you want me to send you the form I am talking about. Drew From my.lists at verizon.net Tue Feb 25 10:35:37 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Tue, 25 Feb 2003 08:35:37 -0800 Subject: [dba-VB] Re: [dba-SQLServer]SQL Server 7 - Stored Procedure Help - Quite Urgent. References: <20030225094240.LAKO2415.fep03-svc.ttys.com@localhost> Message-ID: <004c01c2dceb$f118b9f0$b615010a@FHTAPIA> How about .... Insert into tableA (Payroll, jobdate, jobtype) Select Payroll, jobdate, jobtype From tableB AS B WHERE NOT EXISTS( Select Payroll, jobdate, jobtype From tableA AS A Where B.Payroll = A.Payroll AND B.Jobdate = A.JobDate AND B.JobType = A.JobType) I could have used a NOT IN clause but then NOT IN can have some serious side effects...In General the above statement will be evaluated by the engine where as a NOT IN could miss evaluating the B alias in the where clause and cause it to report bad data, using Exists (or NOT EXISTS) usually yields faster performance and the assurance that it evaluates correctly. -Francisco http://rcm.netfirms.com ----- Original Message ----- From: To: ; ; Sent: Tuesday, February 25, 2003 1:42 AM Subject: [dba-SQLServer]SQL Server 7 - Stored Procedure Help - Quite Urgent. : To all, : : Watch for Word Wrap............... : : Being quite a novice with Stored Procedures on SQL Server 7.0, I'm looking for some pretty urgent help at the moment. I have two tables, lets say Table A & Table B. Table A is my master table, and Table B is a temporary table. Before Table be gets populated with any data, every existing record is deleted so I start with a fresh table so to speak. Table B consists of 3 fields PayrollNo, JobDate, JobType (these fields are also in the master table, but the master table is used to contain other consting information, which is entered at a later date). : : What I would like is a Stored Procedure which would Insert Table B contents into Table A, but making sure that I don't insert any duplicates into Table A (something like an unmatched query in access but with an Insert also). i.e. : : Table A Table B : payroll jobdate jobtype id payroll jobdate jobtype : 999001 01/01/01 0 1 999001 01/01/01 0 : 999001 01/01/01 2 2 999001 01/01/01 1 : 999002 01/01/01 2 3 999001 01/01/01 2 : 4 999002 01/01/01 0 : 5 999002 01/01/01 1 : 6 999002 01/01/01 2 : : So when I invoke the stored procedure, it would insert records 2, 4 and 5 from Table B into Table A........Anyone any idea what I'm on about, if so can anybody please help....... : : Thanks in advance : : Paul Hartland : : __________________________________________________________________________ : Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for : your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month : after that. : : For more information visit http://www.freeserve.com/time/ or call free on : 0800 970 8890 : : : _______________________________________________ : dba-SQLServer mailing list : dba-SQLServer at databaseadvisors.com : http://databaseadvisors.com/mailman/listinfo/dba-sqlserver : http://www.databaseadvisors.com : From my.lists at verizon.net Tue Feb 25 10:35:37 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Tue, 25 Feb 2003 08:35:37 -0800 Subject: [dba-VB] Re: [dba-SQLServer]SQL Server 7 - Stored Procedure Help - Quite Urgent. References: <20030225094240.LAKO2415.fep03-svc.ttys.com@localhost> Message-ID: <004c01c2dceb$f118b9f0$b615010a@FHTAPIA> How about .... Insert into tableA (Payroll, jobdate, jobtype) Select Payroll, jobdate, jobtype From tableB AS B WHERE NOT EXISTS( Select Payroll, jobdate, jobtype From tableA AS A Where B.Payroll = A.Payroll AND B.Jobdate = A.JobDate AND B.JobType = A.JobType) I could have used a NOT IN clause but then NOT IN can have some serious side effects...In General the above statement will be evaluated by the engine where as a NOT IN could miss evaluating the B alias in the where clause and cause it to report bad data, using Exists (or NOT EXISTS) usually yields faster performance and the assurance that it evaluates correctly. -Francisco http://rcm.netfirms.com ----- Original Message ----- From: To: ; ; Sent: Tuesday, February 25, 2003 1:42 AM Subject: [dba-SQLServer]SQL Server 7 - Stored Procedure Help - Quite Urgent. : To all, : : Watch for Word Wrap............... : : Being quite a novice with Stored Procedures on SQL Server 7.0, I'm looking for some pretty urgent help at the moment. I have two tables, lets say Table A & Table B. Table A is my master table, and Table B is a temporary table. Before Table be gets populated with any data, every existing record is deleted so I start with a fresh table so to speak. Table B consists of 3 fields PayrollNo, JobDate, JobType (these fields are also in the master table, but the master table is used to contain other consting information, which is entered at a later date). : : What I would like is a Stored Procedure which would Insert Table B contents into Table A, but making sure that I don't insert any duplicates into Table A (something like an unmatched query in access but with an Insert also). i.e. : : Table A Table B : payroll jobdate jobtype id payroll jobdate jobtype : 999001 01/01/01 0 1 999001 01/01/01 0 : 999001 01/01/01 2 2 999001 01/01/01 1 : 999002 01/01/01 2 3 999001 01/01/01 2 : 4 999002 01/01/01 0 : 5 999002 01/01/01 1 : 6 999002 01/01/01 2 : : So when I invoke the stored procedure, it would insert records 2, 4 and 5 from Table B into Table A........Anyone any idea what I'm on about, if so can anybody please help....... : : Thanks in advance : : Paul Hartland : : __________________________________________________________________________ : Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for : your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month : after that. : : For more information visit http://www.freeserve.com/time/ or call free on : 0800 970 8890 : : : _______________________________________________ : dba-SQLServer mailing list : dba-SQLServer at databaseadvisors.com : http://databaseadvisors.com/mailman/listinfo/dba-sqlserver : http://www.databaseadvisors.com : _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From jcolby at colbyconsulting.com Tue Feb 25 19:31:41 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Tue, 25 Feb 2003 20:31:41 -0500 Subject: [dba-VB] OT: .NET - Data grid syncs to combo Message-ID: I have moved my billing database BE to sql server, hooked up my existing Access FE and continue to use that as I play with the data in .Net. In the meantime, in VB.Net I created a bound form last night (or I think it's bound anyway, not positive). It was using an OLEConnection, which tonight I switched to an SQL connection. It's supposed to be faster. The form simply displays the state table (all fields) in a data grid. You really can't get much simpler than that, though I suppose for something like a state table it would suffice. I decided to try and figure out how to use a combo box to select a record in the data grid. Dragged and dropped a combo to the form, hooked the datasource property to the same data source I was using for the form / data grid. Set the display member (the field displayed) to ST_Abrev (the 2 char code), and the value member (the PK of the table) to ST_ID (the PK of the table). Opened the form, selected the state in the combo and the data grid moved the record selector to that state. Man was THAT easy! So the combination of everything allows the combo to just act as a record selector without all of the code required in Access. Not knowing exactly what is happening, I have to assume that the combo selecting something causes a record selector pointer in the data set object to point somewhere. Since the data grid is using the same data set object, the data grid displays the newly selected record. Just a guess of course. This stuff is way over my head. But so easy (if I just understood what I was doing). Cool beans man! John W. Colby Colby Consulting www.ColbyConsulting.com ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com From scott.marcus at ae.ge.com Wed Feb 26 07:10:11 2003 From: scott.marcus at ae.ge.com (Marcus, Scott (GEAE, RHI Consulting)) Date: Wed, 26 Feb 2003 08:10:11 -0500 Subject: [dba-VB] OT: .NET - Data grid syncs to combo Message-ID: <768A0EA6FF8CB34FA522978966E5D52E559D14@bwam02msx.ae.ge.com> John, Less than a year ago, I decided to convert an access application to .Net. Within one day, I had a working prototype in both VB.Net and C#.Net. It was extremely easy. You are right in that the combo changes the data set which in turn affects all controls linked to it. Just for kicks, I also bought Borland C++ and did the same thing (within a day). My conclusion is that all the major tools these days are offering click and create applications. It's just a matter of picking the technology you think is most marketable. I don't think you can go wrong in learning .Net. I'm still torn as to what technology to pick (although the next version of .Net is coming out in April and is just a $29 upgrade for previous .Net owners and includes the capability to make Pocket PC.Net applications). I'm very interested in discussing the techniques developers are using to convert Access applications to .Net. Hoping to find intelligent useful discussion on .Net, Scott Marcus -----Original Message----- From: John W. Colby [mailto:jcolby at colbyconsulting.com] Sent: Tuesday, February 25, 2003 8:32 PM To: AccessD Cc: AccessD - VBA Subject: [dba-VB] OT: .NET - Data grid syncs to combo I have moved my billing database BE to sql server, hooked up my existing Access FE and continue to use that as I play with the data in .Net. In the meantime, in VB.Net I created a bound form last night (or I think it's bound anyway, not positive). It was using an OLEConnection, which tonight I switched to an SQL connection. It's supposed to be faster. The form simply displays the state table (all fields) in a data grid. You really can't get much simpler than that, though I suppose for something like a state table it would suffice. I decided to try and figure out how to use a combo box to select a record in the data grid. Dragged and dropped a combo to the form, hooked the datasource property to the same data source I was using for the form / data grid. Set the display member (the field displayed) to ST_Abrev (the 2 char code), and the value member (the PK of the table) to ST_ID (the PK of the table). Opened the form, selected the state in the combo and the data grid moved the record selector to that state. Man was THAT easy! So the combination of everything allows the combo to just act as a record selector without all of the code required in Access. Not knowing exactly what is happening, I have to assume that the combo selecting something causes a record selector pointer in the data set object to point somewhere. Since the data grid is using the same data set object, the data grid displays the newly selected record. Just a guess of course. This stuff is way over my head. But so easy (if I just understood what I was doing). Cool beans man! John W. Colby Colby Consulting www.ColbyConsulting.com ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From jcolby at colbyconsulting.com Wed Feb 26 08:48:45 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Wed, 26 Feb 2003 09:48:45 -0500 Subject: [dba-VB] OT: .NET - Data grid syncs to combo In-Reply-To: <768A0EA6FF8CB34FA522978966E5D52E559D14@bwam02msx.ae.ge.com> Message-ID: Marcus, I started programming in the early 80s and in the late 80s ended up in Turbo Pascal which went OO. It was extremely powerful (for the day) yet strongly typed unlike the C languages of the day. I purchased all of the Borland toolboxes, the application framework etc., bought books and really got into the whole inheritance thing I worked in that until I moved to Access in the early 90s. While Access was a huge step up in drag and drop design functionality, and radically different (and extremely powerful) in the use of the event driven paradigm, it was a huge step backwards on the OO side since it had nothing at all that even remotely resembled inheritance. .Net is almost like old home week. It is a highly structure system, with a huge base framework that provides instant functionality like I have never seen before, with true inheritance, with this new XML thingy built right in, with access to data from anywhere. The biggest problem I foresee is simply that the vast scope makes learning it a chore. But is so incredibly powerful, it is simply amazing. I was reading a tech paper last night where they built up XML docs in a word processor, saved them to a file (just for demo purposes), then simply used a built in property of a built in framework class to load the file and bind to that data. But not just bind as we know it. They bound the data to properties of the form. Any property of any control (and forms inherit from the control class so I'm told) can be bound to data. Which makes possible things like fore color or back color or font a property of the record. Painless storage of size / location of forms. Painless user modification and storage of color preferences. If you can imagine it, you can store it in a table and drive it from there. But not just tables. The objects that actually load and expose the data can use XML as easily as they can use tables. They can use arrays. The arrays can be simple arrays of values, or arrays of objects - CLASSES for example, and you can be binding a control property to a property of the class. This stuff is truly awesome. Built in collection functionality for stacks, queues, arrays that you can just dynamically add new members to (not to mention your simple collection). And anything can be sub classed to add your own functionality. Not just interface inheritance, but true implementation inheritance. Do you want a collection that stores an object, with built in checking to prevent storing anything but that object? Just subclass the collection class and over ride the .add method, typing the object input parameter. Done! As can be seen, I am truly psyched about this thing. I did a little programming in VB (I wish it had been more now) but it was so difficult to get at data (and I do databases) so it just didn't offer enough to make it worth the switch. .Net on the other hand is an order of magnitude more powerful, and getting at data is second nature. And as if all that isn't enough, you can pick your language. Amazing stuff. John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Marcus, Scott (GEAE, RHI Consulting) Sent: Wednesday, February 26, 2003 8:10 AM To: 'dba-vb at databaseadvisors.com' Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo John, Less than a year ago, I decided to convert an access application to .Net. Within one day, I had a working prototype in both VB.Net and C#.Net. It was extremely easy. You are right in that the combo changes the data set which in turn affects all controls linked to it. Just for kicks, I also bought Borland C++ and did the same thing (within a day). My conclusion is that all the major tools these days are offering click and create applications. It's just a matter of picking the technology you think is most marketable. I don't think you can go wrong in learning .Net. I'm still torn as to what technology to pick (although the next version of .Net is coming out in April and is just a $29 upgrade for previous .Net owners and includes the capability to make Pocket PC.Net applications). I'm very interested in discussing the techniques developers are using to convert Access applications to .Net. Hoping to find intelligent useful discussion on .Net, Scott Marcus -----Original Message----- From: John W. Colby [mailto:jcolby at colbyconsulting.com] Sent: Tuesday, February 25, 2003 8:32 PM To: AccessD Cc: AccessD - VBA Subject: [dba-VB] OT: .NET - Data grid syncs to combo I have moved my billing database BE to sql server, hooked up my existing Access FE and continue to use that as I play with the data in .Net. In the meantime, in VB.Net I created a bound form last night (or I think it's bound anyway, not positive). It was using an OLEConnection, which tonight I switched to an SQL connection. It's supposed to be faster. The form simply displays the state table (all fields) in a data grid. You really can't get much simpler than that, though I suppose for something like a state table it would suffice. I decided to try and figure out how to use a combo box to select a record in the data grid. Dragged and dropped a combo to the form, hooked the datasource property to the same data source I was using for the form / data grid. Set the display member (the field displayed) to ST_Abrev (the 2 char code), and the value member (the PK of the table) to ST_ID (the PK of the table). Opened the form, selected the state in the combo and the data grid moved the record selector to that state. Man was THAT easy! So the combination of everything allows the combo to just act as a record selector without all of the code required in Access. Not knowing exactly what is happening, I have to assume that the combo selecting something causes a record selector pointer in the data set object to point somewhere. Since the data grid is using the same data set object, the data grid displays the newly selected record. Just a guess of course. This stuff is way over my head. But so easy (if I just understood what I was doing). Cool beans man! John W. Colby Colby Consulting www.ColbyConsulting.com ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 5100 bytes Desc: not available URL: From scott.marcus at ae.ge.com Wed Feb 26 09:31:45 2003 From: scott.marcus at ae.ge.com (Marcus, Scott (GEAE, RHI Consulting)) Date: Wed, 26 Feb 2003 10:31:45 -0500 Subject: [dba-VB] OT: .NET - Data grid syncs to combo Message-ID: <768A0EA6FF8CB34FA522978966E5D52E559D15@bwam02msx.ae.ge.com> John, One of the issues that I know I will run into is that my clients are going to want top see all of this data (like Access does...looks very Excel like...my clients are very Excel savy) in a data grid. Previous versions of VB had limited built in data grid capabilities (I don't want to spend another $1K on 3rd party tools). If the data grid is alot closer to what Access provides that would be great. I haven't messed much with .Net since my initial "playing around" a year ago, but I do need to get heavily into it. Any input on the data grid capabilities? Scott Marcus > -----Original Message----- > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > Sent: Wednesday, February 26, 2003 9:49 AM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > Marcus, > > I started programming in the early 80s and in the late 80s ended up in Turbo > Pascal which went OO. It was extremely powerful (for the day) yet strongly > typed unlike the C languages of the day. I purchased all of the Borland > toolboxes, the application framework etc., bought books and really got into > the whole inheritance thing > > I worked in that until I moved to Access in the early 90s. While Access was a > huge step up in drag and drop design functionality, and radically different > (and extremely powerful) in the use of the event driven paradigm, it was a > huge step backwards on the OO side since it had nothing at all that even > remotely resembled inheritance. > > .Net is almost like old home week. It is a highly structure system, with a > huge base framework that provides instant functionality like I have never seen > before, with true inheritance, with this new XML thingy built right in, with > access to data from anywhere. The biggest problem I foresee is simply that > the vast scope makes learning it a chore. But is so incredibly powerful, it > is simply amazing. > > I was reading a tech paper last night where they built up XML docs in a word > processor, saved them to a file (just for demo purposes), then simply used a > built in property of a built in framework class to load the file and bind to > that data. But not just bind as we know it. They bound the data to > properties of the form. Any property of any control (and forms inherit from > the control class so I'm told) can be bound to data. Which makes possible > things like fore color or back color or font a property of the record. > Painless storage of size / location of forms. Painless user modification and > storage of color preferences. If you can imagine it, you can store it in a > table and drive it from there. > > But not just tables. The objects that actually load and expose the data can > use XML as easily as they can use tables. They can use arrays. The arrays > can be simple arrays of values, or arrays of objects - CLASSES for example, > and you can be binding a control property to a property of the class. > > This stuff is truly awesome. Built in collection functionality for stacks, > queues, arrays that you can just dynamically add new members to (not to > mention your simple collection). And anything can be sub classed to add your > own functionality. Not just interface inheritance, but true implementation > inheritance. Do you want a collection that stores an object, with built in > checking to prevent storing anything but that object? Just subclass the > collection class and over ride the .add method, typing the object input > parameter. Done! > > As can be seen, I am truly psyched about this thing. I did a little > programming in VB (I wish it had been more now) but it was so difficult to get > at data (and I do databases) so it just didn't offer enough to make it worth > the switch. .Net on the other hand is an order of magnitude more powerful, > and getting at data is second nature. > > And as if all that isn't enough, you can pick your language. > > Amazing stuff. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: dba-vb-admin at databaseadvisors.com > [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Marcus, Scott > (GEAE, RHI Consulting) > Sent: Wednesday, February 26, 2003 8:10 AM > To: 'dba-vb at databaseadvisors.com' > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > John, > > Less than a year ago, I decided to convert an access application to .Net. > Within > one day, I had a working prototype in both VB.Net and C#.Net. It was extremely > easy. You are right in that the combo changes the data set which in turn > affects > all controls linked to it. Just for kicks, I also bought Borland C++ and did > the > same thing (within a day). > > My conclusion is that all the major tools these days are offering click and > create applications. It's just a matter of picking the technology you think is > most marketable. I don't think you can go wrong in learning .Net. I'm still > torn > as to what technology to pick (although the next version of .Net is coming out > in April and is just a $29 upgrade for previous .Net owners and includes the > capability to make Pocket PC.Net applications). > > I'm very interested in discussing the techniques developers are using to > convert > Access applications to .Net. > > Hoping to find intelligent useful discussion on .Net, > > Scott Marcus > > -----Original Message----- > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > Sent: Tuesday, February 25, 2003 8:32 PM > To: AccessD > Cc: AccessD - VBA > Subject: [dba-VB] OT: .NET - Data grid syncs to combo > > > I have moved my billing database BE to sql server, hooked up my existing > Access FE and continue to use that as I play with the data in .Net. > > In the meantime, in VB.Net I created a bound form last night (or I think > it's bound anyway, not positive). It was using an OLEConnection, which > tonight I switched to an SQL connection. It's supposed to be faster. The > form simply displays the state table (all fields) in a data grid. You > really can't get much simpler than that, though I suppose for something like > a state table it would suffice. > > I decided to try and figure out how to use a combo box to select a record in > the data grid. Dragged and dropped a combo to the form, hooked the > datasource property to the same data source I was using for the form / data > grid. Set the display member (the field displayed) to ST_Abrev (the 2 char > code), and the value member (the PK of the table) to ST_ID (the PK of the > table). Opened the form, selected the state in the combo and the data grid > moved the record selector to that state. > > Man was THAT easy! So the combination of everything allows the combo to > just act as a record selector without all of the code required in Access. > Not knowing exactly what is happening, I have to assume that the combo > selecting something causes a record selector pointer in the data set object > to point somewhere. Since the data grid is using the same data set object, > the data grid displays the newly selected record. > > Just a guess of course. This stuff is way over my head. > > But so easy (if I just understood what I was doing). > > Cool beans man! > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > ---------------------------------------------------- > Is email taking over your day? Manage your time with eMailBoss. > Try it free! http://www.eMailBoss.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > > > ---------------------------------------------------- > Is email taking over your day? Manage your time with eMailBoss. > Try it free! http://www.eMailBoss.com From jcolby at colbyconsulting.com Wed Feb 26 09:41:23 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Wed, 26 Feb 2003 10:41:23 -0500 Subject: [dba-VB] OT: .NET - Data grid syncs to combo In-Reply-To: <768A0EA6FF8CB34FA522978966E5D52E559D15@bwam02msx.ae.ge.com> Message-ID: I don't use the data grid in Access. I was put off by the potential problems of users changing the columns till one disappeared (and the support calls that ensue). I can tell you that the data grid looks similar to Access' form is switched to datasheet. The biggest difference is that if you expose the column heading, you can click on the heading and it sorts on that column. Click again and it sorts in reverse order. I am not fluent enough in data grids in either technology to tell you much I'm afraid. What capabilities are you looking for? John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Marcus, Scott (GEAE, RHI Consulting) Sent: Wednesday, February 26, 2003 10:32 AM To: 'dba-vb at databaseadvisors.com' Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo John, One of the issues that I know I will run into is that my clients are going to want top see all of this data (like Access does...looks very Excel like...my clients are very Excel savy) in a data grid. Previous versions of VB had limited built in data grid capabilities (I don't want to spend another $1K on 3rd party tools). If the data grid is alot closer to what Access provides that would be great. I haven't messed much with .Net since my initial "playing around" a year ago, but I do need to get heavily into it. Any input on the data grid capabilities? Scott Marcus > -----Original Message----- > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > Sent: Wednesday, February 26, 2003 9:49 AM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > Marcus, > > I started programming in the early 80s and in the late 80s ended up in Turbo > Pascal which went OO. It was extremely powerful (for the day) yet strongly > typed unlike the C languages of the day. I purchased all of the Borland > toolboxes, the application framework etc., bought books and really got into > the whole inheritance thing > > I worked in that until I moved to Access in the early 90s. While Access was a > huge step up in drag and drop design functionality, and radically different > (and extremely powerful) in the use of the event driven paradigm, it was a > huge step backwards on the OO side since it had nothing at all that even > remotely resembled inheritance. > > .Net is almost like old home week. It is a highly structure system, with a > huge base framework that provides instant functionality like I have never seen > before, with true inheritance, with this new XML thingy built right in, with > access to data from anywhere. The biggest problem I foresee is simply that > the vast scope makes learning it a chore. But is so incredibly powerful, it > is simply amazing. > > I was reading a tech paper last night where they built up XML docs in a word > processor, saved them to a file (just for demo purposes), then simply used a > built in property of a built in framework class to load the file and bind to > that data. But not just bind as we know it. They bound the data to > properties of the form. Any property of any control (and forms inherit from > the control class so I'm told) can be bound to data. Which makes possible > things like fore color or back color or font a property of the record. > Painless storage of size / location of forms. Painless user modification and > storage of color preferences. If you can imagine it, you can store it in a > table and drive it from there. > > But not just tables. The objects that actually load and expose the data can > use XML as easily as they can use tables. They can use arrays. The arrays > can be simple arrays of values, or arrays of objects - CLASSES for example, > and you can be binding a control property to a property of the class. > > This stuff is truly awesome. Built in collection functionality for stacks, > queues, arrays that you can just dynamically add new members to (not to > mention your simple collection). And anything can be sub classed to add your > own functionality. Not just interface inheritance, but true implementation > inheritance. Do you want a collection that stores an object, with built in > checking to prevent storing anything but that object? Just subclass the > collection class and over ride the .add method, typing the object input > parameter. Done! > > As can be seen, I am truly psyched about this thing. I did a little > programming in VB (I wish it had been more now) but it was so difficult to get > at data (and I do databases) so it just didn't offer enough to make it worth > the switch. .Net on the other hand is an order of magnitude more powerful, > and getting at data is second nature. > > And as if all that isn't enough, you can pick your language. > > Amazing stuff. > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: dba-vb-admin at databaseadvisors.com > [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Marcus, Scott > (GEAE, RHI Consulting) > Sent: Wednesday, February 26, 2003 8:10 AM > To: 'dba-vb at databaseadvisors.com' > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > John, > > Less than a year ago, I decided to convert an access application to .Net. > Within > one day, I had a working prototype in both VB.Net and C#.Net. It was extremely > easy. You are right in that the combo changes the data set which in turn > affects > all controls linked to it. Just for kicks, I also bought Borland C++ and did > the > same thing (within a day). > > My conclusion is that all the major tools these days are offering click and > create applications. It's just a matter of picking the technology you think is > most marketable. I don't think you can go wrong in learning .Net. I'm still > torn > as to what technology to pick (although the next version of .Net is coming out > in April and is just a $29 upgrade for previous .Net owners and includes the > capability to make Pocket PC.Net applications). > > I'm very interested in discussing the techniques developers are using to > convert > Access applications to .Net. > > Hoping to find intelligent useful discussion on .Net, > > Scott Marcus > > -----Original Message----- > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > Sent: Tuesday, February 25, 2003 8:32 PM > To: AccessD > Cc: AccessD - VBA > Subject: [dba-VB] OT: .NET - Data grid syncs to combo > > > I have moved my billing database BE to sql server, hooked up my existing > Access FE and continue to use that as I play with the data in .Net. > > In the meantime, in VB.Net I created a bound form last night (or I think > it's bound anyway, not positive). It was using an OLEConnection, which > tonight I switched to an SQL connection. It's supposed to be faster. The > form simply displays the state table (all fields) in a data grid. You > really can't get much simpler than that, though I suppose for something like > a state table it would suffice. > > I decided to try and figure out how to use a combo box to select a record in > the data grid. Dragged and dropped a combo to the form, hooked the > datasource property to the same data source I was using for the form / data > grid. Set the display member (the field displayed) to ST_Abrev (the 2 char > code), and the value member (the PK of the table) to ST_ID (the PK of the > table). Opened the form, selected the state in the combo and the data grid > moved the record selector to that state. > > Man was THAT easy! So the combination of everything allows the combo to > just act as a record selector without all of the code required in Access. > Not knowing exactly what is happening, I have to assume that the combo > selecting something causes a record selector pointer in the data set object > to point somewhere. Since the data grid is using the same data set object, > the data grid displays the newly selected record. > > Just a guess of course. This stuff is way over my head. > > But so easy (if I just understood what I was doing). > > Cool beans man! > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > ---------------------------------------------------- > Is email taking over your day? Manage your time with eMailBoss. > Try it free! http://www.eMailBoss.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > > > ---------------------------------------------------- > Is email taking over your day? Manage your time with eMailBoss. > Try it free! http://www.eMailBoss.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 6088 bytes Desc: not available URL: From paul.hartland at fsmail.net Wed Feb 26 10:47:13 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 26 Feb 2003 16:47:13 +0000 Subject: [dba-VB] More SQL Server 7 Stored Procedure help if possible Message-ID: <20030226164713.TRTX5116.fep06-svc.ttys.com@localhost> To all, If you read my first email regarding Stored Procedure's you will know that I am quite a novice at the moment. I have a table called tblAvailabilityAll which contains fields PayrollNo and an AvailabilityCode. The Availability codes are A,N,S,H and when an employee leaves, in the first instance we need to update A,N,S,H to 1,2,3,4 accordingly. Anyone have any idea how to do this within one Stored Procedure (or is it possible in a single Stored Procedure.....??? I would be grateful fr any sample code etc... Thanks in advance Paul Hartland __________________________________________________________________________ Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month after that. For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890 From paul.hartland at fsmail.net Wed Feb 26 10:47:13 2003 From: paul.hartland at fsmail.net (paul.hartland at fsmail.net) Date: Wed, 26 Feb 2003 16:47:13 +0000 Subject: [dba-VB] [dba-SQLServer]More SQL Server 7 Stored Procedure help if possible Message-ID: <20030226164713.TRTX5116.fep06-svc.ttys.com@localhost> To all, If you read my first email regarding Stored Procedure's you will know that I am quite a novice at the moment. I have a table called tblAvailabilityAll which contains fields PayrollNo and an AvailabilityCode. The Availability codes are A,N,S,H and when an employee leaves, in the first instance we need to update A,N,S,H to 1,2,3,4 accordingly. Anyone have any idea how to do this within one Stored Procedure (or is it possible in a single Stored Procedure.....??? I would be grateful fr any sample code etc... Thanks in advance Paul Hartland __________________________________________________________________________ Freeserve AnyTime - Go online whenever you want for just ?6.99 a month for your first 3 months, that's HALF PRICE! And then it's just ?13.99 a month after that. For more information visit http://www.freeserve.com/time/ or call free on 0800 970 8890 _______________________________________________ dba-SQLServer mailing list dba-SQLServer at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-sqlserver http://www.databaseadvisors.com From scott.marcus at ae.ge.com Wed Feb 26 11:14:17 2003 From: scott.marcus at ae.ge.com (Marcus, Scott (GEAE, RHI Consulting)) Date: Wed, 26 Feb 2003 12:14:17 -0500 Subject: [dba-VB] OT: .NET - Data grid syncs to combo Message-ID: <768A0EA6FF8CB34FA522978966E5D52E559D16@bwam02msx.ae.ge.com> John, I'm looking at the sorting capabilities, the resize(both height and width) capabilities, drag and drop column ordering, and data editing within the cell. This may all be there, I just haven't dug into it yet. I also need to be able to turn those features off and on (Access doesn't really have that capability). Other big features that would push it over the top are: a query designer on par with Access, sub forms and reports, continuous forms, and better reporting capabilities. I pretty much want the capabilities of Access in Studio .Net. Again, all this can be acomplished with 3rd party tools or enough time to design your own. That extra cost to get Studio up to par with Access (interface design wise) with 3rd party tools has been the killer for me. If Microsoft made a tool that had the power of Studio .Net, the interface capabilities of Access, the query designer of Access, and able to complie like Studio .Net does that would be "The Tool" to have. The compiling issue (Studio not offering a true compile) is a debate I'd rather not get into, I just HATE the Access runtime. Maybe they could offer something like "Studio .Net Access interface add-in". Now that I would purchase. Scott Marcus > -----Original Message----- > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > Sent: Wednesday, February 26, 2003 10:41 AM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > I don't use the data grid in Access. I was put off by the potential problems > of users changing the columns till one disappeared (and the support calls that > ensue). > > I can tell you that the data grid looks similar to Access' form is switched to > datasheet. The biggest difference is that if you expose the column heading, > you can click on the heading and it sorts on that column. Click again and it > sorts in reverse order. > > I am not fluent enough in data grids in either technology to tell you much I'm > afraid. What capabilities are you looking for? > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: dba-vb-admin at databaseadvisors.com > [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Marcus, Scott > (GEAE, RHI Consulting) > Sent: Wednesday, February 26, 2003 10:32 AM > To: 'dba-vb at databaseadvisors.com' > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > John, > > One of the issues that I know I will run into is that my clients are going to > want top see all of this data (like Access does...looks very Excel like...my > clients are very Excel savy) in a data grid. Previous versions of VB had > limited > built in data grid capabilities (I don't want to spend another $1K on 3rd > party > tools). If the data grid is alot closer to what Access provides that would be > great. I haven't messed much with .Net since my initial "playing around" a > year > ago, but I do need to get heavily into it. Any input on the data grid > capabilities? > > Scott Marcus > > > > -----Original Message----- > > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > > Sent: Wednesday, February 26, 2003 9:49 AM > > To: dba-vb at databaseadvisors.com > > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > > Marcus, > > > > I started programming in the early 80s and in the late 80s ended up in Turbo > > Pascal which went OO. It was extremely powerful (for the day) yet strongly > > typed unlike the C languages of the day. I purchased all of the Borland > > toolboxes, the application framework etc., bought books and really got into > > the whole inheritance thing > > > > I worked in that until I moved to Access in the early 90s. While Access was > a > > huge step up in drag and drop design functionality, and radically different > > (and extremely powerful) in the use of the event driven paradigm, it was a > > huge step backwards on the OO side since it had nothing at all that even > > remotely resembled inheritance. > > > > .Net is almost like old home week. It is a highly structure system, with a > > huge base framework that provides instant functionality like I have never > seen > > before, with true inheritance, with this new XML thingy built right in, with > > access to data from anywhere. The biggest problem I foresee is simply that > > the vast scope makes learning it a chore. But is so incredibly powerful, it > > is simply amazing. > > > > I was reading a tech paper last night where they built up XML docs in a word > > processor, saved them to a file (just for demo purposes), then simply used a > > built in property of a built in framework class to load the file and bind to > > that data. But not just bind as we know it. They bound the data to > > properties of the form. Any property of any control (and forms inherit from > > the control class so I'm told) can be bound to data. Which makes possible > > things like fore color or back color or font a property of the record. > > Painless storage of size / location of forms. Painless user modification > and > > storage of color preferences. If you can imagine it, you can store it in a > > table and drive it from there. > > > > But not just tables. The objects that actually load and expose the data can > > use XML as easily as they can use tables. They can use arrays. The arrays > > can be simple arrays of values, or arrays of objects - CLASSES for example, > > and you can be binding a control property to a property of the class. > > > > This stuff is truly awesome. Built in collection functionality for stacks, > > queues, arrays that you can just dynamically add new members to (not to > > mention your simple collection). And anything can be sub classed to add > your > > own functionality. Not just interface inheritance, but true implementation > > inheritance. Do you want a collection that stores an object, with built in > > checking to prevent storing anything but that object? Just subclass the > > collection class and over ride the .add method, typing the object input > > parameter. Done! > > > > As can be seen, I am truly psyched about this thing. I did a little > > programming in VB (I wish it had been more now) but it was so difficult to > get > > at data (and I do databases) so it just didn't offer enough to make it worth > > the switch. .Net on the other hand is an order of magnitude more powerful, > > and getting at data is second nature. > > > > And as if all that isn't enough, you can pick your language. > > > > Amazing stuff. > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > -----Original Message----- > > From: dba-vb-admin at databaseadvisors.com > > [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Marcus, Scott > > (GEAE, RHI Consulting) > > Sent: Wednesday, February 26, 2003 8:10 AM > > To: 'dba-vb at databaseadvisors.com' > > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > > > > John, > > > > Less than a year ago, I decided to convert an access application to .Net. > > Within > > one day, I had a working prototype in both VB.Net and C#.Net. It was > extremely > > easy. You are right in that the combo changes the data set which in turn > > affects > > all controls linked to it. Just for kicks, I also bought Borland C++ and did > > the > > same thing (within a day). > > > > My conclusion is that all the major tools these days are offering click and > > create applications. It's just a matter of picking the technology you think > is > > most marketable. I don't think you can go wrong in learning .Net. I'm still > > torn > > as to what technology to pick (although the next version of .Net is coming > out > > in April and is just a $29 upgrade for previous .Net owners and includes the > > capability to make Pocket PC.Net applications). > > > > I'm very interested in discussing the techniques developers are using to > > convert > > Access applications to .Net. > > > > Hoping to find intelligent useful discussion on .Net, > > > > Scott Marcus > > > > -----Original Message----- > > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > > Sent: Tuesday, February 25, 2003 8:32 PM > > To: AccessD > > Cc: AccessD - VBA > > Subject: [dba-VB] OT: .NET - Data grid syncs to combo > > > > > > I have moved my billing database BE to sql server, hooked up my existing > > Access FE and continue to use that as I play with the data in .Net. > > > > In the meantime, in VB.Net I created a bound form last night (or I think > > it's bound anyway, not positive). It was using an OLEConnection, which > > tonight I switched to an SQL connection. It's supposed to be faster. The > > form simply displays the state table (all fields) in a data grid. You > > really can't get much simpler than that, though I suppose for something like > > a state table it would suffice. > > > > I decided to try and figure out how to use a combo box to select a record in > > the data grid. Dragged and dropped a combo to the form, hooked the > > datasource property to the same data source I was using for the form / data > > grid. Set the display member (the field displayed) to ST_Abrev (the 2 char > > code), and the value member (the PK of the table) to ST_ID (the PK of the > > table). Opened the form, selected the state in the combo and the data grid > > moved the record selector to that state. > > > > Man was THAT easy! So the combination of everything allows the combo to > > just act as a record selector without all of the code required in Access. > > Not knowing exactly what is happening, I have to assume that the combo > > selecting something causes a record selector pointer in the data set object > > to point somewhere. Since the data grid is using the same data set object, > > the data grid displays the newly selected record. > > > > Just a guess of course. This stuff is way over my head. > > > > But so easy (if I just understood what I was doing). > > > > Cool beans man! > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > ---------------------------------------------------- > > Is email taking over your day? Manage your time with eMailBoss. > > Try it free! http://www.eMailBoss.com > > > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > > > > > > > ---------------------------------------------------- > > Is email taking over your day? Manage your time with eMailBoss. > > Try it free! http://www.eMailBoss.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > > > ---------------------------------------------------- > Is email taking over your day? Manage your time with eMailBoss. > Try it free! http://www.eMailBoss.com From jcolby at colbyconsulting.com Wed Feb 26 11:36:55 2003 From: jcolby at colbyconsulting.com (John W. Colby) Date: Wed, 26 Feb 2003 12:36:55 -0500 Subject: [dba-VB] OT: .NET - Data grid syncs to combo In-Reply-To: <768A0EA6FF8CB34FA522978966E5D52E559D16@bwam02msx.ae.ge.com> Message-ID: The column is resizable by placing the cursor over the vertical line in the column header and dragging it. The individual row is resizable - same way. Resizes just that row though, not all rows. The column is sortable by clicking on the column header. As for the rest, I think you are dreaming. This is not Access.net, this is VB.net. OTOH, they claim you drop ANY object onto a form. If you build a "main form" with a tab control, build a "subform", and manage to place the subform on the main form then you have a subform. The master / child properties aren't there, but we all know how to set up the subform's datasource query to filter on a control on the main form. I understand completely the desire to have Access' RAD tools for database specific stuff. I can't say for sure since I am new to this, but I do not think VB.net has those things you point to. OTOH it has so much else now that Access doesn't have that it becomes a push as to which is more powerful for db design. .Net's handling of classes and inheritance, data sources, XML and other very powerful tools make it a truly awesome environment. My entire objection at this point more or less boils down to "I know how to do that in Access". I will have to learn new ways to do things that are just built in to Access, but I do think that the flexibility of .NET makes it worth diving into. Whether it will entirely replace Access for my development is doubtful, at least not in the near future. I am just too fast in Access and can get entire dbs prototyped in days / weeks where it will take much longer (for now anyway) in .NET. Will that be true once I know .NET like I know Access? John W. Colby Colby Consulting www.ColbyConsulting.com -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Marcus, Scott (GEAE, RHI Consulting) Sent: Wednesday, February 26, 2003 12:14 PM To: 'dba-vb at databaseadvisors.com' Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo John, I'm looking at the sorting capabilities, the resize(both height and width) capabilities, drag and drop column ordering, and data editing within the cell. This may all be there, I just haven't dug into it yet. I also need to be able to turn those features off and on (Access doesn't really have that capability). Other big features that would push it over the top are: a query designer on par with Access, sub forms and reports, continuous forms, and better reporting capabilities. I pretty much want the capabilities of Access in Studio .Net. Again, all this can be acomplished with 3rd party tools or enough time to design your own. That extra cost to get Studio up to par with Access (interface design wise) with 3rd party tools has been the killer for me. If Microsoft made a tool that had the power of Studio .Net, the interface capabilities of Access, the query designer of Access, and able to complie like Studio .Net does that would be "The Tool" to have. The compiling issue (Studio not offering a true compile) is a debate I'd rather not get into, I just HATE the Access runtime. Maybe they could offer something like "Studio .Net Access interface add-in". Now that I would purchase. Scott Marcus > -----Original Message----- > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > Sent: Wednesday, February 26, 2003 10:41 AM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > I don't use the data grid in Access. I was put off by the potential problems > of users changing the columns till one disappeared (and the support calls that > ensue). > > I can tell you that the data grid looks similar to Access' form is switched to > datasheet. The biggest difference is that if you expose the column heading, > you can click on the heading and it sorts on that column. Click again and it > sorts in reverse order. > > I am not fluent enough in data grids in either technology to tell you much I'm > afraid. What capabilities are you looking for? > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: dba-vb-admin at databaseadvisors.com > [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Marcus, Scott > (GEAE, RHI Consulting) > Sent: Wednesday, February 26, 2003 10:32 AM > To: 'dba-vb at databaseadvisors.com' > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > John, > > One of the issues that I know I will run into is that my clients are going to > want top see all of this data (like Access does...looks very Excel like...my > clients are very Excel savy) in a data grid. Previous versions of VB had > limited > built in data grid capabilities (I don't want to spend another $1K on 3rd > party > tools). If the data grid is alot closer to what Access provides that would be > great. I haven't messed much with .Net since my initial "playing around" a > year > ago, but I do need to get heavily into it. Any input on the data grid > capabilities? > > Scott Marcus > > > > -----Original Message----- > > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > > Sent: Wednesday, February 26, 2003 9:49 AM > > To: dba-vb at databaseadvisors.com > > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > > Marcus, > > > > I started programming in the early 80s and in the late 80s ended up in Turbo > > Pascal which went OO. It was extremely powerful (for the day) yet strongly > > typed unlike the C languages of the day. I purchased all of the Borland > > toolboxes, the application framework etc., bought books and really got into > > the whole inheritance thing > > > > I worked in that until I moved to Access in the early 90s. While Access was > a > > huge step up in drag and drop design functionality, and radically different > > (and extremely powerful) in the use of the event driven paradigm, it was a > > huge step backwards on the OO side since it had nothing at all that even > > remotely resembled inheritance. > > > > .Net is almost like old home week. It is a highly structure system, with a > > huge base framework that provides instant functionality like I have never > seen > > before, with true inheritance, with this new XML thingy built right in, with > > access to data from anywhere. The biggest problem I foresee is simply that > > the vast scope makes learning it a chore. But is so incredibly powerful, it > > is simply amazing. > > > > I was reading a tech paper last night where they built up XML docs in a word > > processor, saved them to a file (just for demo purposes), then simply used a > > built in property of a built in framework class to load the file and bind to > > that data. But not just bind as we know it. They bound the data to > > properties of the form. Any property of any control (and forms inherit from > > the control class so I'm told) can be bound to data. Which makes possible > > things like fore color or back color or font a property of the record. > > Painless storage of size / location of forms. Painless user modification > and > > storage of color preferences. If you can imagine it, you can store it in a > > table and drive it from there. > > > > But not just tables. The objects that actually load and expose the data can > > use XML as easily as they can use tables. They can use arrays. The arrays > > can be simple arrays of values, or arrays of objects - CLASSES for example, > > and you can be binding a control property to a property of the class. > > > > This stuff is truly awesome. Built in collection functionality for stacks, > > queues, arrays that you can just dynamically add new members to (not to > > mention your simple collection). And anything can be sub classed to add > your > > own functionality. Not just interface inheritance, but true implementation > > inheritance. Do you want a collection that stores an object, with built in > > checking to prevent storing anything but that object? Just subclass the > > collection class and over ride the .add method, typing the object input > > parameter. Done! > > > > As can be seen, I am truly psyched about this thing. I did a little > > programming in VB (I wish it had been more now) but it was so difficult to > get > > at data (and I do databases) so it just didn't offer enough to make it worth > > the switch. .Net on the other hand is an order of magnitude more powerful, > > and getting at data is second nature. > > > > And as if all that isn't enough, you can pick your language. > > > > Amazing stuff. > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > -----Original Message----- > > From: dba-vb-admin at databaseadvisors.com > > [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Marcus, Scott > > (GEAE, RHI Consulting) > > Sent: Wednesday, February 26, 2003 8:10 AM > > To: 'dba-vb at databaseadvisors.com' > > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > > > > John, > > > > Less than a year ago, I decided to convert an access application to .Net. > > Within > > one day, I had a working prototype in both VB.Net and C#.Net. It was > extremely > > easy. You are right in that the combo changes the data set which in turn > > affects > > all controls linked to it. Just for kicks, I also bought Borland C++ and did > > the > > same thing (within a day). > > > > My conclusion is that all the major tools these days are offering click and > > create applications. It's just a matter of picking the technology you think > is > > most marketable. I don't think you can go wrong in learning .Net. I'm still > > torn > > as to what technology to pick (although the next version of .Net is coming > out > > in April and is just a $29 upgrade for previous .Net owners and includes the > > capability to make Pocket PC.Net applications). > > > > I'm very interested in discussing the techniques developers are using to > > convert > > Access applications to .Net. > > > > Hoping to find intelligent useful discussion on .Net, > > > > Scott Marcus > > > > -----Original Message----- > > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > > Sent: Tuesday, February 25, 2003 8:32 PM > > To: AccessD > > Cc: AccessD - VBA > > Subject: [dba-VB] OT: .NET - Data grid syncs to combo > > > > > > I have moved my billing database BE to sql server, hooked up my existing > > Access FE and continue to use that as I play with the data in .Net. > > > > In the meantime, in VB.Net I created a bound form last night (or I think > > it's bound anyway, not positive). It was using an OLEConnection, which > > tonight I switched to an SQL connection. It's supposed to be faster. The > > form simply displays the state table (all fields) in a data grid. You > > really can't get much simpler than that, though I suppose for something like > > a state table it would suffice. > > > > I decided to try and figure out how to use a combo box to select a record in > > the data grid. Dragged and dropped a combo to the form, hooked the > > datasource property to the same data source I was using for the form / data > > grid. Set the display member (the field displayed) to ST_Abrev (the 2 char > > code), and the value member (the PK of the table) to ST_ID (the PK of the > > table). Opened the form, selected the state in the combo and the data grid > > moved the record selector to that state. > > > > Man was THAT easy! So the combination of everything allows the combo to > > just act as a record selector without all of the code required in Access. > > Not knowing exactly what is happening, I have to assume that the combo > > selecting something causes a record selector pointer in the data set object > > to point somewhere. Since the data grid is using the same data set object, > > the data grid displays the newly selected record. > > > > Just a guess of course. This stuff is way over my head. > > > > But so easy (if I just understood what I was doing). > > > > Cool beans man! > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > ---------------------------------------------------- > > Is email taking over your day? Manage your time with eMailBoss. > > Try it free! http://www.eMailBoss.com > > > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > > > > > > > ---------------------------------------------------- > > Is email taking over your day? Manage your time with eMailBoss. > > Try it free! http://www.eMailBoss.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > > > ---------------------------------------------------- > Is email taking over your day? Manage your time with eMailBoss. > Try it free! http://www.eMailBoss.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com ---------------------------------------------------- Is email taking over your day? Manage your time with eMailBoss. Try it free! http://www.eMailBoss.com -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 7920 bytes Desc: not available URL: From scott.marcus at ae.ge.com Wed Feb 26 11:51:46 2003 From: scott.marcus at ae.ge.com (Marcus, Scott (GEAE, RHI Consulting)) Date: Wed, 26 Feb 2003 12:51:46 -0500 Subject: [dba-VB] OT: .NET - Data grid syncs to combo Message-ID: <768A0EA6FF8CB34FA522978966E5D52E559D19@bwam02msx.ae.ge.com> John, Yes, I'm dreaming. But I do think that the Studio .Net platform is moving in the direction of "Access" type of RAD design. Those features I mentioned are why I use Access(in addition to my client's requirements). I was excited about Studio .NET and think most these capabilities are present. How much is built in and how much is 3rd party will be interesting to learn. Now to find the time to learn it well enough to replace Access as my primary skill... To answer your question... From what I know of you (which isn't alot...just what you post), I think it will be true once you know .Net like Access. Scott Marcus > -----Original Message----- > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > Sent: Wednesday, February 26, 2003 12:37 PM > To: dba-vb at databaseadvisors.com > Cc: AccessD > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > The column is resizable by placing the cursor over the vertical line in the > column header and dragging it. The individual row is resizable - same way. > Resizes just that row though, not all rows. The column is sortable by > clicking on the column header. > > As for the rest, I think you are dreaming. This is not Access.net, this is > VB.net. OTOH, they claim you drop ANY object onto a form. If you build a > "main form" with a tab control, build a "subform", and manage to place the > subform on the main form then you have a subform. The master / child > properties aren't there, but we all know how to set up the subform's > datasource query to filter on a control on the main form. > > I understand completely the desire to have Access' RAD tools for database > specific stuff. I can't say for sure since I am new to this, but I do not > think VB.net has those things you point to. OTOH it has so much else now that > Access doesn't have that it becomes a push as to which is more powerful for db > design. .Net's handling of classes and inheritance, data sources, XML and > other very powerful tools make it a truly awesome environment. > > My entire objection at this point more or less boils down to "I know how to do > that in Access". I will have to learn new ways to do things that are just > built in to Access, but I do think that the flexibility of .NET makes it worth > diving into. Whether it will entirely replace Access for my development is > doubtful, at least not in the near future. I am just too fast in Access and > can get entire dbs prototyped in days / weeks where it will take much longer > (for now anyway) in .NET. > > Will that be true once I know .NET like I know Access? > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: dba-vb-admin at databaseadvisors.com > [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Marcus, Scott > (GEAE, RHI Consulting) > Sent: Wednesday, February 26, 2003 12:14 PM > To: 'dba-vb at databaseadvisors.com' > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > John, > > I'm looking at the sorting capabilities, the resize(both height and width) > capabilities, drag and drop column ordering, and data editing within the cell. > This may all be there, I just haven't dug into it yet. I also need to be able > to > turn those features off and on (Access doesn't really have that capability). > Other big features that would push it over the top are: a query designer on > par > with Access, sub forms and reports, continuous forms, and better reporting > capabilities. I pretty much want the capabilities of Access in Studio .Net. > Again, all this can be acomplished with 3rd party tools or enough time to > design > your own. That extra cost to get Studio up to par with Access (interface > design > wise) with 3rd party tools has been the killer for me. > > If Microsoft made a tool that had the power of Studio .Net, the interface > capabilities of Access, the query designer of Access, and able to complie like > Studio .Net does that would be "The Tool" to have. The compiling issue (Studio > not offering a true compile) is a debate I'd rather not get into, I just HATE > the Access runtime. Maybe they could offer something like "Studio .Net Access > interface add-in". Now that I would purchase. > > Scott Marcus > > > -----Original Message----- > > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > > Sent: Wednesday, February 26, 2003 10:41 AM > > To: dba-vb at databaseadvisors.com > > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > > I don't use the data grid in Access. I was put off by the potential > problems > > of users changing the columns till one disappeared (and the support calls > that > > ensue). > > > > I can tell you that the data grid looks similar to Access' form is switched > to > > datasheet. The biggest difference is that if you expose the column heading, > > you can click on the heading and it sorts on that column. Click again and > it > > sorts in reverse order. > > > > I am not fluent enough in data grids in either technology to tell you much > I'm > > afraid. What capabilities are you looking for? > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > -----Original Message----- > > From: dba-vb-admin at databaseadvisors.com > > [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Marcus, Scott > > (GEAE, RHI Consulting) > > Sent: Wednesday, February 26, 2003 10:32 AM > > To: 'dba-vb at databaseadvisors.com' > > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > > > > John, > > > > One of the issues that I know I will run into is that my clients are going > to > > want top see all of this data (like Access does...looks very Excel like...my > > clients are very Excel savy) in a data grid. Previous versions of VB had > > limited > > built in data grid capabilities (I don't want to spend another $1K on 3rd > > party > > tools). If the data grid is alot closer to what Access provides that would > be > > great. I haven't messed much with .Net since my initial "playing around" a > > year > > ago, but I do need to get heavily into it. Any input on the data grid > > capabilities? > > > > Scott Marcus > > > > > > > -----Original Message----- > > > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > > > Sent: Wednesday, February 26, 2003 9:49 AM > > > To: dba-vb at databaseadvisors.com > > > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > > > > Marcus, > > > > > > I started programming in the early 80s and in the late 80s ended up in > Turbo > > > Pascal which went OO. It was extremely powerful (for the day) yet > strongly > > > typed unlike the C languages of the day. I purchased all of the Borland > > > toolboxes, the application framework etc., bought books and really got > into > > > the whole inheritance thing > > > > > > I worked in that until I moved to Access in the early 90s. While Access > was > > a > > > huge step up in drag and drop design functionality, and radically > different > > > (and extremely powerful) in the use of the event driven paradigm, it was a > > > huge step backwards on the OO side since it had nothing at all that even > > > remotely resembled inheritance. > > > > > > .Net is almost like old home week. It is a highly structure system, with > a > > > huge base framework that provides instant functionality like I have never > > seen > > > before, with true inheritance, with this new XML thingy built right in, > with > > > access to data from anywhere. The biggest problem I foresee is simply > that > > > the vast scope makes learning it a chore. But is so incredibly powerful, > it > > > is simply amazing. > > > > > > I was reading a tech paper last night where they built up XML docs in a > word > > > processor, saved them to a file (just for demo purposes), then simply used > a > > > built in property of a built in framework class to load the file and bind > to > > > that data. But not just bind as we know it. They bound the data to > > > properties of the form. Any property of any control (and forms inherit > from > > > the control class so I'm told) can be bound to data. Which makes possible > > > things like fore color or back color or font a property of the record. > > > Painless storage of size / location of forms. Painless user modification > > and > > > storage of color preferences. If you can imagine it, you can store it in > a > > > table and drive it from there. > > > > > > But not just tables. The objects that actually load and expose the data > can > > > use XML as easily as they can use tables. They can use arrays. The > arrays > > > can be simple arrays of values, or arrays of objects - CLASSES for > example, > > > and you can be binding a control property to a property of the class. > > > > > > This stuff is truly awesome. Built in collection functionality for > stacks, > > > queues, arrays that you can just dynamically add new members to (not to > > > mention your simple collection). And anything can be sub classed to add > > your > > > own functionality. Not just interface inheritance, but true > implementation > > > inheritance. Do you want a collection that stores an object, with built > in > > > checking to prevent storing anything but that object? Just subclass the > > > collection class and over ride the .add method, typing the object input > > > parameter. Done! > > > > > > As can be seen, I am truly psyched about this thing. I did a little > > > programming in VB (I wish it had been more now) but it was so difficult to > > get > > > at data (and I do databases) so it just didn't offer enough to make it > worth > > > the switch. .Net on the other hand is an order of magnitude more > powerful, > > > and getting at data is second nature. > > > > > > And as if all that isn't enough, you can pick your language. > > > > > > Amazing stuff. > > > > > > John W. Colby > > > Colby Consulting > > > www.ColbyConsulting.com > > > > > > -----Original Message----- > > > From: dba-vb-admin at databaseadvisors.com > > > [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Marcus, Scott > > > (GEAE, RHI Consulting) > > > Sent: Wednesday, February 26, 2003 8:10 AM > > > To: 'dba-vb at databaseadvisors.com' > > > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > > > > > > > John, > > > > > > Less than a year ago, I decided to convert an access application to .Net. > > > Within > > > one day, I had a working prototype in both VB.Net and C#.Net. It was > > extremely > > > easy. You are right in that the combo changes the data set which in turn > > > affects > > > all controls linked to it. Just for kicks, I also bought Borland C++ and > did > > > the > > > same thing (within a day). > > > > > > My conclusion is that all the major tools these days are offering click > and > > > create applications. It's just a matter of picking the technology you > think > > is > > > most marketable. I don't think you can go wrong in learning .Net. I'm > still > > > torn > > > as to what technology to pick (although the next version of .Net is coming > > out > > > in April and is just a $29 upgrade for previous .Net owners and includes > the > > > capability to make Pocket PC.Net applications). > > > > > > I'm very interested in discussing the techniques developers are using to > > > convert > > > Access applications to .Net. > > > > > > Hoping to find intelligent useful discussion on .Net, > > > > > > Scott Marcus > > > > > > -----Original Message----- > > > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > > > Sent: Tuesday, February 25, 2003 8:32 PM > > > To: AccessD > > > Cc: AccessD - VBA > > > Subject: [dba-VB] OT: .NET - Data grid syncs to combo > > > > > > > > > I have moved my billing database BE to sql server, hooked up my existing > > > Access FE and continue to use that as I play with the data in .Net. > > > > > > In the meantime, in VB.Net I created a bound form last night (or I think > > > it's bound anyway, not positive). It was using an OLEConnection, which > > > tonight I switched to an SQL connection. It's supposed to be faster. The > > > form simply displays the state table (all fields) in a data grid. You > > > really can't get much simpler than that, though I suppose for something > like > > > a state table it would suffice. > > > > > > I decided to try and figure out how to use a combo box to select a record > in > > > the data grid. Dragged and dropped a combo to the form, hooked the > > > datasource property to the same data source I was using for the form / > data > > > grid. Set the display member (the field displayed) to ST_Abrev (the 2 > char > > > code), and the value member (the PK of the table) to ST_ID (the PK of the > > > table). Opened the form, selected the state in the combo and the data > grid > > > moved the record selector to that state. > > > > > > Man was THAT easy! So the combination of everything allows the combo to > > > just act as a record selector without all of the code required in Access. > > > Not knowing exactly what is happening, I have to assume that the combo > > > selecting something causes a record selector pointer in the data set > object > > > to point somewhere. Since the data grid is using the same data set > object, > > > the data grid displays the newly selected record. > > > > > > Just a guess of course. This stuff is way over my head. > > > > > > But so easy (if I just understood what I was doing). > > > > > > Cool beans man! > > > > > > John W. Colby > > > Colby Consulting > > > www.ColbyConsulting.com > > > > > > ---------------------------------------------------- > > > Is email taking over your day? Manage your time with eMailBoss. > > > Try it free! http://www.eMailBoss.com > > > > > > > > > _______________________________________________ > > > dba-VB mailing list > > > dba-VB at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > http://www.databaseadvisors.com > > > _______________________________________________ > > > dba-VB mailing list > > > dba-VB at databaseadvisors.com > > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > > http://www.databaseadvisors.com > > > > > > > > > > > > > > > ---------------------------------------------------- > > > Is email taking over your day? Manage your time with eMailBoss. > > > Try it free! http://www.eMailBoss.com > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > > > > > > > ---------------------------------------------------- > > Is email taking over your day? Manage your time with eMailBoss. > > Try it free! http://www.eMailBoss.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > > > ---------------------------------------------------- > Is email taking over your day? Manage your time with eMailBoss. > Try it free! http://www.eMailBoss.com From mikedorism at ntelos.net Wed Feb 26 13:46:26 2003 From: mikedorism at ntelos.net (Mike and Doris Manning) Date: Wed, 26 Feb 2003 14:46:26 -0500 Subject: [dba-VB] OT: .NET - Data grid syncs to combo In-Reply-To: <768A0EA6FF8CB34FA522978966E5D52E559D16@bwam02msx.ae.ge.com> Message-ID: <000001c2ddcf$c33f0090$d5350cd8@hargrove.internal> Maybe they could offer something like "Studio .Net Access interface add-in". Now that I would purchase. Actually, it seems to already be in there... Check out the lastest edition of Access-VB-SQL Advisor at your local newstand. You can automate Access from within VB.Net via some PIAs you can download from Microsoft. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com] On Behalf Of Marcus, Scott (GEAE, RHI Consulting) Sent: Wednesday, February 26, 2003 12:14 PM To: 'dba-vb at databaseadvisors.com' Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo John, I'm looking at the sorting capabilities, the resize(both height and width) capabilities, drag and drop column ordering, and data editing within the cell. This may all be there, I just haven't dug into it yet. I also need to be able to turn those features off and on (Access doesn't really have that capability). Other big features that would push it over the top are: a query designer on par with Access, sub forms and reports, continuous forms, and better reporting capabilities. I pretty much want the capabilities of Access in Studio .Net. Again, all this can be acomplished with 3rd party tools or enough time to design your own. That extra cost to get Studio up to par with Access (interface design wise) with 3rd party tools has been the killer for me. If Microsoft made a tool that had the power of Studio .Net, the interface capabilities of Access, the query designer of Access, and able to complie like Studio .Net does that would be "The Tool" to have. The compiling issue (Studio not offering a true compile) is a debate I'd rather not get into, I just HATE the Access runtime. Maybe they could offer something like "Studio .Net Access interface add-in". Now that I would purchase. Scott Marcus > -----Original Message----- > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > Sent: Wednesday, February 26, 2003 10:41 AM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > I don't use the data grid in Access. I was put off by the potential > problems of users changing the columns till one disappeared (and the > support calls that ensue). > > I can tell you that the data grid looks similar to Access' form is > switched to datasheet. The biggest difference is that if you expose > the column heading, you can click on the heading and it sorts on that > column. Click again and it sorts in reverse order. > > I am not fluent enough in data grids in either technology to tell you > much I'm afraid. What capabilities are you looking for? > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: dba-vb-admin at databaseadvisors.com > [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Marcus, Scott > (GEAE, RHI Consulting) > Sent: Wednesday, February 26, 2003 10:32 AM > To: 'dba-vb at databaseadvisors.com' > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > John, > > One of the issues that I know I will run into is that my clients are > going to want top see all of this data (like Access does...looks very > Excel like...my clients are very Excel savy) in a data grid. Previous > versions of VB had limited built in data grid capabilities (I don't > want to spend another $1K on 3rd party > tools). If the data grid is alot closer to what Access provides that would be > great. I haven't messed much with .Net since my initial "playing around" a > year > ago, but I do need to get heavily into it. Any input on the data grid > capabilities? > > Scott Marcus > > > > -----Original Message----- > > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > > Sent: Wednesday, February 26, 2003 9:49 AM > > To: dba-vb at databaseadvisors.com > > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > > Marcus, > > > > I started programming in the early 80s and in the late 80s ended up > > in Turbo Pascal which went OO. It was extremely powerful (for the > > day) yet strongly typed unlike the C languages of the day. I > > purchased all of the Borland toolboxes, the application framework > > etc., bought books and really got into the whole inheritance thing > > > > I worked in that until I moved to Access in the early 90s. While > > Access was > a > > huge step up in drag and drop design functionality, and radically > > different (and extremely powerful) in the use of the event driven > > paradigm, it was a huge step backwards on the OO side since it had > > nothing at all that even remotely resembled inheritance. > > > > .Net is almost like old home week. It is a highly structure system, > > with a huge base framework that provides instant functionality like > > I have never > seen > > before, with true inheritance, with this new XML thingy built right > > in, with access to data from anywhere. The biggest problem I > > foresee is simply that the vast scope makes learning it a chore. > > But is so incredibly powerful, it is simply amazing. > > > > I was reading a tech paper last night where they built up XML docs > > in a word processor, saved them to a file (just for demo purposes), > > then simply used a built in property of a built in framework class > > to load the file and bind to that data. But not just bind as we > > know it. They bound the data to properties of the form. Any > > property of any control (and forms inherit from the control class so > > I'm told) can be bound to data. Which makes possible things like > > fore color or back color or font a property of the record. Painless > > storage of size / location of forms. Painless user modification > and > > storage of color preferences. If you can imagine it, you can store > > it in a table and drive it from there. > > > > But not just tables. The objects that actually load and expose the > > data can use XML as easily as they can use tables. They can use > > arrays. The arrays can be simple arrays of values, or arrays of > > objects - CLASSES for example, and you can be binding a control > > property to a property of the class. > > > > This stuff is truly awesome. Built in collection functionality for > > stacks, queues, arrays that you can just dynamically add new members > > to (not to mention your simple collection). And anything can be sub > > classed to add > your > > own functionality. Not just interface inheritance, but true > > implementation inheritance. Do you want a collection that stores an > > object, with built in checking to prevent storing anything but that > > object? Just subclass the collection class and over ride the .add > > method, typing the object input parameter. Done! > > > > As can be seen, I am truly psyched about this thing. I did a little > > programming in VB (I wish it had been more now) but it was so > > difficult to > get > > at data (and I do databases) so it just didn't offer enough to make > > it worth the switch. .Net on the other hand is an order of > > magnitude more powerful, and getting at data is second nature. > > > > And as if all that isn't enough, you can pick your language. > > > > Amazing stuff. > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > -----Original Message----- > > From: dba-vb-admin at databaseadvisors.com > > [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Marcus, Scott > > (GEAE, RHI Consulting) > > Sent: Wednesday, February 26, 2003 8:10 AM > > To: 'dba-vb at databaseadvisors.com' > > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > > > > John, > > > > Less than a year ago, I decided to convert an access application to > > .Net. Within one day, I had a working prototype in both VB.Net and > > C#.Net. It was > extremely > > easy. You are right in that the combo changes the data set which in > > turn affects all controls linked to it. Just for kicks, I also > > bought Borland C++ and did the > > same thing (within a day). > > > > My conclusion is that all the major tools these days are offering > > click and create applications. It's just a matter of picking the > > technology you think > is > > most marketable. I don't think you can go wrong in learning .Net. > > I'm still torn as to what technology to pick (although the next > > version of .Net is coming > out > > in April and is just a $29 upgrade for previous .Net owners and > > includes the capability to make Pocket PC.Net applications). > > > > I'm very interested in discussing the techniques developers are > > using to convert Access applications to .Net. > > > > Hoping to find intelligent useful discussion on .Net, > > > > Scott Marcus > > > > -----Original Message----- > > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > > Sent: Tuesday, February 25, 2003 8:32 PM > > To: AccessD > > Cc: AccessD - VBA > > Subject: [dba-VB] OT: .NET - Data grid syncs to combo > > > > > > I have moved my billing database BE to sql server, hooked up my > > existing Access FE and continue to use that as I play with the data > > in .Net. > > > > In the meantime, in VB.Net I created a bound form last night (or I > > think it's bound anyway, not positive). It was using an > > OLEConnection, which tonight I switched to an SQL connection. It's > > supposed to be faster. The form simply displays the state table > > (all fields) in a data grid. You really can't get much simpler than > > that, though I suppose for something like a state table it would > > suffice. > > > > I decided to try and figure out how to use a combo box to select a > > record in the data grid. Dragged and dropped a combo to the form, > > hooked the datasource property to the same data source I was using > > for the form / data grid. Set the display member (the field > > displayed) to ST_Abrev (the 2 char code), and the value member (the > > PK of the table) to ST_ID (the PK of the table). Opened the form, > > selected the state in the combo and the data grid moved the record > > selector to that state. > > > > Man was THAT easy! So the combination of everything allows the > > combo to just act as a record selector without all of the code > > required in Access. Not knowing exactly what is happening, I have to > > assume that the combo selecting something causes a record selector > > pointer in the data set object to point somewhere. Since the data > > grid is using the same data set object, the data grid displays the > > newly selected record. > > > > Just a guess of course. This stuff is way over my head. > > > > But so easy (if I just understood what I was doing). > > > > Cool beans man! > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > ---------------------------------------------------- > > Is email taking over your day? Manage your time with eMailBoss. Try > > it free! http://www.eMailBoss.com > > > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > > > > > > > ---------------------------------------------------- > > Is email taking over your day? Manage your time with eMailBoss. > > Try it free! http://www.eMailBoss.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > > > ---------------------------------------------------- > Is email taking over your day? Manage your time with eMailBoss. > Try it free! http://www.eMailBoss.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From scott.marcus at ae.ge.com Wed Feb 26 14:12:21 2003 From: scott.marcus at ae.ge.com (Marcus, Scott (GEAE, RHI Consulting)) Date: Wed, 26 Feb 2003 15:12:21 -0500 Subject: [dba-VB] OT: .NET - Data grid syncs to combo Message-ID: <768A0EA6FF8CB34FA522978966E5D52E559D1A@bwam02msx.ae.ge.com> Doris, I meant all the neat interface capabilities added into Studio.Net via some more framework/controls. Automation has been around for a long time. I'm more interested in developing applications that don't require installing other software and then automating it. Scott Marcus -----Original Message----- From: Mike and Doris Manning [mailto:mikedorism at ntelos.net] Sent: Wednesday, February 26, 2003 2:46 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo Maybe they could offer something like "Studio .Net Access interface add-in". Now that I would purchase. Actually, it seems to already be in there... Check out the lastest edition of Access-VB-SQL Advisor at your local newstand. You can automate Access from within VB.Net via some PIAs you can download from Microsoft. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com] On Behalf Of Marcus, Scott (GEAE, RHI Consulting) Sent: Wednesday, February 26, 2003 12:14 PM To: 'dba-vb at databaseadvisors.com' Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo John, I'm looking at the sorting capabilities, the resize(both height and width) capabilities, drag and drop column ordering, and data editing within the cell. This may all be there, I just haven't dug into it yet. I also need to be able to turn those features off and on (Access doesn't really have that capability). Other big features that would push it over the top are: a query designer on par with Access, sub forms and reports, continuous forms, and better reporting capabilities. I pretty much want the capabilities of Access in Studio .Net. Again, all this can be acomplished with 3rd party tools or enough time to design your own. That extra cost to get Studio up to par with Access (interface design wise) with 3rd party tools has been the killer for me. If Microsoft made a tool that had the power of Studio .Net, the interface capabilities of Access, the query designer of Access, and able to complie like Studio .Net does that would be "The Tool" to have. The compiling issue (Studio not offering a true compile) is a debate I'd rather not get into, I just HATE the Access runtime. Maybe they could offer something like "Studio .Net Access interface add-in". Now that I would purchase. Scott Marcus > -----Original Message----- > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > Sent: Wednesday, February 26, 2003 10:41 AM > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > I don't use the data grid in Access. I was put off by the potential > problems of users changing the columns till one disappeared (and the > support calls that ensue). > > I can tell you that the data grid looks similar to Access' form is > switched to datasheet. The biggest difference is that if you expose > the column heading, you can click on the heading and it sorts on that > column. Click again and it sorts in reverse order. > > I am not fluent enough in data grids in either technology to tell you > much I'm afraid. What capabilities are you looking for? > > John W. Colby > Colby Consulting > www.ColbyConsulting.com > > -----Original Message----- > From: dba-vb-admin at databaseadvisors.com > [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Marcus, Scott > (GEAE, RHI Consulting) > Sent: Wednesday, February 26, 2003 10:32 AM > To: 'dba-vb at databaseadvisors.com' > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > John, > > One of the issues that I know I will run into is that my clients are > going to want top see all of this data (like Access does...looks very > Excel like...my clients are very Excel savy) in a data grid. Previous > versions of VB had limited built in data grid capabilities (I don't > want to spend another $1K on 3rd party > tools). If the data grid is alot closer to what Access provides that would be > great. I haven't messed much with .Net since my initial "playing around" a > year > ago, but I do need to get heavily into it. Any input on the data grid > capabilities? > > Scott Marcus > > > > -----Original Message----- > > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > > Sent: Wednesday, February 26, 2003 9:49 AM > > To: dba-vb at databaseadvisors.com > > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > > Marcus, > > > > I started programming in the early 80s and in the late 80s ended up > > in Turbo Pascal which went OO. It was extremely powerful (for the > > day) yet strongly typed unlike the C languages of the day. I > > purchased all of the Borland toolboxes, the application framework > > etc., bought books and really got into the whole inheritance thing > > > > I worked in that until I moved to Access in the early 90s. While > > Access was > a > > huge step up in drag and drop design functionality, and radically > > different (and extremely powerful) in the use of the event driven > > paradigm, it was a huge step backwards on the OO side since it had > > nothing at all that even remotely resembled inheritance. > > > > .Net is almost like old home week. It is a highly structure system, > > with a huge base framework that provides instant functionality like > > I have never > seen > > before, with true inheritance, with this new XML thingy built right > > in, with access to data from anywhere. The biggest problem I > > foresee is simply that the vast scope makes learning it a chore. > > But is so incredibly powerful, it is simply amazing. > > > > I was reading a tech paper last night where they built up XML docs > > in a word processor, saved them to a file (just for demo purposes), > > then simply used a built in property of a built in framework class > > to load the file and bind to that data. But not just bind as we > > know it. They bound the data to properties of the form. Any > > property of any control (and forms inherit from the control class so > > I'm told) can be bound to data. Which makes possible things like > > fore color or back color or font a property of the record. Painless > > storage of size / location of forms. Painless user modification > and > > storage of color preferences. If you can imagine it, you can store > > it in a table and drive it from there. > > > > But not just tables. The objects that actually load and expose the > > data can use XML as easily as they can use tables. They can use > > arrays. The arrays can be simple arrays of values, or arrays of > > objects - CLASSES for example, and you can be binding a control > > property to a property of the class. > > > > This stuff is truly awesome. Built in collection functionality for > > stacks, queues, arrays that you can just dynamically add new members > > to (not to mention your simple collection). And anything can be sub > > classed to add > your > > own functionality. Not just interface inheritance, but true > > implementation inheritance. Do you want a collection that stores an > > object, with built in checking to prevent storing anything but that > > object? Just subclass the collection class and over ride the .add > > method, typing the object input parameter. Done! > > > > As can be seen, I am truly psyched about this thing. I did a little > > programming in VB (I wish it had been more now) but it was so > > difficult to > get > > at data (and I do databases) so it just didn't offer enough to make > > it worth the switch. .Net on the other hand is an order of > > magnitude more powerful, and getting at data is second nature. > > > > And as if all that isn't enough, you can pick your language. > > > > Amazing stuff. > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > -----Original Message----- > > From: dba-vb-admin at databaseadvisors.com > > [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Marcus, Scott > > (GEAE, RHI Consulting) > > Sent: Wednesday, February 26, 2003 8:10 AM > > To: 'dba-vb at databaseadvisors.com' > > Subject: RE: [dba-VB] OT: .NET - Data grid syncs to combo > > > > > > John, > > > > Less than a year ago, I decided to convert an access application to > > .Net. Within one day, I had a working prototype in both VB.Net and > > C#.Net. It was > extremely > > easy. You are right in that the combo changes the data set which in > > turn affects all controls linked to it. Just for kicks, I also > > bought Borland C++ and did the > > same thing (within a day). > > > > My conclusion is that all the major tools these days are offering > > click and create applications. It's just a matter of picking the > > technology you think > is > > most marketable. I don't think you can go wrong in learning .Net. > > I'm still torn as to what technology to pick (although the next > > version of .Net is coming > out > > in April and is just a $29 upgrade for previous .Net owners and > > includes the capability to make Pocket PC.Net applications). > > > > I'm very interested in discussing the techniques developers are > > using to convert Access applications to .Net. > > > > Hoping to find intelligent useful discussion on .Net, > > > > Scott Marcus > > > > -----Original Message----- > > From: John W. Colby [mailto:jcolby at colbyconsulting.com] > > Sent: Tuesday, February 25, 2003 8:32 PM > > To: AccessD > > Cc: AccessD - VBA > > Subject: [dba-VB] OT: .NET - Data grid syncs to combo > > > > > > I have moved my billing database BE to sql server, hooked up my > > existing Access FE and continue to use that as I play with the data > > in .Net. > > > > In the meantime, in VB.Net I created a bound form last night (or I > > think it's bound anyway, not positive). It was using an > > OLEConnection, which tonight I switched to an SQL connection. It's > > supposed to be faster. The form simply displays the state table > > (all fields) in a data grid. You really can't get much simpler than > > that, though I suppose for something like a state table it would > > suffice. > > > > I decided to try and figure out how to use a combo box to select a > > record in the data grid. Dragged and dropped a combo to the form, > > hooked the datasource property to the same data source I was using > > for the form / data grid. Set the display member (the field > > displayed) to ST_Abrev (the 2 char code), and the value member (the > > PK of the table) to ST_ID (the PK of the table). Opened the form, > > selected the state in the combo and the data grid moved the record > > selector to that state. > > > > Man was THAT easy! So the combination of everything allows the > > combo to just act as a record selector without all of the code > > required in Access. Not knowing exactly what is happening, I have to > > assume that the combo selecting something causes a record selector > > pointer in the data set object to point somewhere. Since the data > > grid is using the same data set object, the data grid displays the > > newly selected record. > > > > Just a guess of course. This stuff is way over my head. > > > > But so easy (if I just understood what I was doing). > > > > Cool beans man! > > > > John W. Colby > > Colby Consulting > > www.ColbyConsulting.com > > > > ---------------------------------------------------- > > Is email taking over your day? Manage your time with eMailBoss. Try > > it free! http://www.eMailBoss.com > > > > > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > _______________________________________________ > > dba-VB mailing list > > dba-VB at databaseadvisors.com > > http://databaseadvisors.com/mailman/listinfo/dba-vb > > http://www.databaseadvisors.com > > > > > > > > > > ---------------------------------------------------- > > Is email taking over your day? Manage your time with eMailBoss. > > Try it free! http://www.eMailBoss.com > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > > > ---------------------------------------------------- > Is email taking over your day? Manage your time with eMailBoss. > Try it free! http://www.eMailBoss.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From JSkolits at CorporateDataDesign.com Wed Feb 26 20:02:30 2003 From: JSkolits at CorporateDataDesign.com (John Skolits) Date: Wed, 26 Feb 2003 21:02:30 -0500 Subject: [dba-VB] Simple problem. Can't use Kill Message-ID: Am I losing it? Why doesn't the Kill statement work in this code. '********* Dim strRuntimePath as string strRuntimePath ="C:\Program Files\Microsoft Office\ART\Office" If Len(Dir(strRuntimePath & "\msaccess_SR1.exe")) > 0 Then Kill (strRuntimePath & "\msaccess_SR1.exe") End If '************ The line with "Len(Dir" in it works fine. Bu when the Kill line tries to run I get an error 75 ("Path/File access error") I can easily rename the file and move it around in explorer so I know it's not being used by anything. I've used this syntax before in other VB apps with no problem. If I rename the file through explorer and run that line again it says Error 53 :File Not Found". Which makes perfect sense. Is it because it's an EXE file? Am I missing something really obvious? John Skolits -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 1908 bytes Desc: not available URL: From Jdemarco at hshhp.org Wed Feb 26 21:20:31 2003 From: Jdemarco at hshhp.org (Jim DeMarco) Date: Wed, 26 Feb 2003 22:20:31 -0500 Subject: [dba-VB] Simple problem. Can't use Kill Message-ID: <22F1CCD5171D17419CB37FEEE09D5F99D8521E@TTNEXCHSRV1.hshhp.com> Is there a Help button on the error message that might give you some insight? I thought the problem might be in the parens or maybe a space in the path but I tried both and it worked for me (killed an exe in my c:\ folder). Jim DeMarco -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of John Skolits Sent: Wednesday, February 26, 2003 9:03 PM To: dba-VB at databaseadvisors.com Subject: [dba-VB] Simple problem. Can't use Kill Am I losing it? Why doesn't the Kill statement work in this code. '********* Dim strRuntimePath as string strRuntimePath ="C:\Program Files\Microsoft Office\ART\Office" If Len(Dir(strRuntimePath & "\msaccess_SR1.exe")) > 0 Then Kill (strRuntimePath & "\msaccess_SR1.exe") End If '************ The line with "Len(Dir" in it works fine. Bu when the Kill line tries to run I get an error 75 ("Path/File access error") I can easily rename the file and move it around in explorer so I know it's not being used by anything. I've used this syntax before in other VB apps with no problem. If I rename the file through explorer and run that line again it says Error 53 :File Not Found". Which makes perfect sense. Is it because it's an EXE file? Am I missing something really obvious? John Skolits *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from HealthSource/Hudson Health Plan (HS/HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HS/HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From JSkolits at CorporateDataDesign.com Wed Feb 26 21:29:14 2003 From: JSkolits at CorporateDataDesign.com (John Skolits) Date: Wed, 26 Feb 2003 22:29:14 -0500 Subject: [dba-VB] Simple problem. Can't use Kill In-Reply-To: <22F1CCD5171D17419CB37FEEE09D5F99D8521E@TTNEXCHSRV1.hshhp.com> Message-ID: Jim, Try a folder a few levels down and tell me if it works. Like "c:\Program Files\Microsoft Office\...." John -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Jim DeMarco Sent: Wednesday, February 26, 2003 10:21 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Simple problem. Can't use Kill Is there a Help button on the error message that might give you some insight? I thought the problem might be in the parens or maybe a space in the path but I tried both and it worked for me (killed an exe in my c:\ folder). Jim DeMarco -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of John Skolits Sent: Wednesday, February 26, 2003 9:03 PM To: dba-VB at databaseadvisors.com Subject: [dba-VB] Simple problem. Can't use Kill Am I losing it? Why doesn't the Kill statement work in this code. '********* Dim strRuntimePath as string strRuntimePath ="C:\Program Files\Microsoft Office\ART\Office" If Len(Dir(strRuntimePath & "\msaccess_SR1.exe")) > 0 Then Kill (strRuntimePath & "\msaccess_SR1.exe") End If '************ The line with "Len(Dir" in it works fine. Bu when the Kill line tries to run I get an error 75 ("Path/File access error") I can easily rename the file and move it around in explorer so I know it's not being used by anything. I've used this syntax before in other VB apps with no problem. If I rename the file through explorer and run that line again it says Error 53 :File Not Found". Which makes perfect sense. Is it because it's an EXE file? Am I missing something really obvious? John Skolits **************************************************************************** ******* "This electronic message is intended to be for the use only of the named recipient, and may contain information from HealthSource/Hudson Health Plan (HS/HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HS/HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". **************************************************************************** ******* _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From JSkolits at CorporateDataDesign.com Wed Feb 26 21:53:15 2003 From: JSkolits at CorporateDataDesign.com (John Skolits) Date: Wed, 26 Feb 2003 22:53:15 -0500 Subject: [dba-VB] RE: [AccessD] VB Simple problem. Can't use Kill -SOLVED! In-Reply-To: Message-ID: File was Read Only! Only took me 2 hours to figure it out From Jdemarco at hshhp.org Thu Feb 27 06:43:29 2003 From: Jdemarco at hshhp.org (Jim DeMarco) Date: Thu, 27 Feb 2003 07:43:29 -0500 Subject: [dba-VB] Simple problem. Can't use Kill Message-ID: <22F1CCD5171D17419CB37FEEE09D5F99E54A5A@TTNEXCHSRV1.hshhp.com> John, It works there, but you got this working didn't you? Jim -----Original Message----- From: John Skolits [mailto:JSkolits at CorporateDataDesign.com] Sent: Wednesday, February 26, 2003 10:29 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Simple problem. Can't use Kill Jim, Try a folder a few levels down and tell me if it works. Like "c:\Program Files\Microsoft Office\...." John -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Jim DeMarco Sent: Wednesday, February 26, 2003 10:21 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Simple problem. Can't use Kill Is there a Help button on the error message that might give you some insight? I thought the problem might be in the parens or maybe a space in the path but I tried both and it worked for me (killed an exe in my c:\ folder). Jim DeMarco -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of John Skolits Sent: Wednesday, February 26, 2003 9:03 PM To: dba-VB at databaseadvisors.com Subject: [dba-VB] Simple problem. Can't use Kill Am I losing it? Why doesn't the Kill statement work in this code. '********* Dim strRuntimePath as string strRuntimePath ="C:\Program Files\Microsoft Office\ART\Office" If Len(Dir(strRuntimePath & "\msaccess_SR1.exe")) > 0 Then Kill (strRuntimePath & "\msaccess_SR1.exe") End If '************ The line with "Len(Dir" in it works fine. Bu when the Kill line tries to run I get an error 75 ("Path/File access error") I can easily rename the file and move it around in explorer so I know it's not being used by anything. I've used this syntax before in other VB apps with no problem. If I rename the file through explorer and run that line again it says Error 53 :File Not Found". Which makes perfect sense. Is it because it's an EXE file? Am I missing something really obvious? John Skolits **************************************************************************** ******* "This electronic message is intended to be for the use only of the named recipient, and may contain information from HealthSource/Hudson Health Plan (HS/HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HS/HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". **************************************************************************** ******* _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from HealthSource/Hudson Health Plan (HS/HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HS/HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From JSkolits at CorporateDataDesign.com Thu Feb 27 06:57:45 2003 From: JSkolits at CorporateDataDesign.com (John Skolits) Date: Thu, 27 Feb 2003 07:57:45 -0500 Subject: [dba-VB] Simple problem. Can't use Kill In-Reply-To: <22F1CCD5171D17419CB37FEEE09D5F99E54A5A@TTNEXCHSRV1.hshhp.com> Message-ID: Yea. The file was read only. I used the following code to change the read only flag. Then killed it. Dim fs, f Dim strFileToKill as String strFileToKill = "C:\Program Files\Microsoft Office\ART\Office\msaccess_SR1.exe" 'Make sure it's read only flag is false Set fs = CreateObject("Scripting.FileSystemObject") Set f = fs.GetFile((strFileToKill)) If f.Attributes And 1 Then 'File is read only, remove the flag f.Attributes = f.Attributes - 1 End If Kill (strFileToKill) Thanks, John -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Jim DeMarco Sent: Thursday, February 27, 2003 7:43 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Simple problem. Can't use Kill John, It works there, but you got this working didn't you? Jim -----Original Message----- From: John Skolits [mailto:JSkolits at CorporateDataDesign.com] Sent: Wednesday, February 26, 2003 10:29 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Simple problem. Can't use Kill Jim, Try a folder a few levels down and tell me if it works. Like "c:\Program Files\Microsoft Office\...." John -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Jim DeMarco Sent: Wednesday, February 26, 2003 10:21 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Simple problem. Can't use Kill Is there a Help button on the error message that might give you some insight? I thought the problem might be in the parens or maybe a space in the path but I tried both and it worked for me (killed an exe in my c:\ folder). Jim DeMarco -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of John Skolits Sent: Wednesday, February 26, 2003 9:03 PM To: dba-VB at databaseadvisors.com Subject: [dba-VB] Simple problem. Can't use Kill Am I losing it? Why doesn't the Kill statement work in this code. '********* Dim strRuntimePath as string strRuntimePath ="C:\Program Files\Microsoft Office\ART\Office" If Len(Dir(strRuntimePath & "\msaccess_SR1.exe")) > 0 Then Kill (strRuntimePath & "\msaccess_SR1.exe") End If '************ The line with "Len(Dir" in it works fine. Bu when the Kill line tries to run I get an error 75 ("Path/File access error") I can easily rename the file and move it around in explorer so I know it's not being used by anything. I've used this syntax before in other VB apps with no problem. If I rename the file through explorer and run that line again it says Error 53 :File Not Found". Which makes perfect sense. Is it because it's an EXE file? Am I missing something really obvious? John Skolits **************************************************************************** ******* "This electronic message is intended to be for the use only of the named recipient, and may contain information from HealthSource/Hudson Health Plan (HS/HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HS/HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". **************************************************************************** ******* _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com **************************************************************************** ******* "This electronic message is intended to be for the use only of the named recipient, and may contain information from HealthSource/Hudson Health Plan (HS/HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HS/HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". **************************************************************************** ******* _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From R.Griffiths at bury.gov.uk Thu Feb 27 07:07:39 2003 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Thu, 27 Feb 2003 13:07:39 -0000 Subject: [dba-VB] Open DB Message-ID: <52339DF8DCA2A544AF660C8217EB7DCD0227F0F5@mailgate.bury.gov.uk> Hi Group Can't seem to find the exact bit of code I need......to be able to open another database which has its own password and is in a different workgroup using DAO. Can find code for this....... to open another database which has its own password using DAO Anyone been there? Thanks Richard -------------------------------------------------------------------------------------------------------------------- This e-mail, together with any files transmitted with it, is confidential and intended solely for the use of the individual to whom it is addressed. If you are not the intended recipient, or the person responsible for delivering to the intended recipient, be advised that you have received this e-mail in error and that any use, dissemination, forwarding, printing or copying of this e-mail is strictly prohibited without liability on our part. If you have received this e-mail in error please notify the sender. From Jdemarco at hshhp.org Thu Feb 27 07:08:19 2003 From: Jdemarco at hshhp.org (Jim DeMarco) Date: Thu, 27 Feb 2003 08:08:19 -0500 Subject: [dba-VB] Simple problem. Can't use Kill Message-ID: <22F1CCD5171D17419CB37FEEE09D5F99D85225@TTNEXCHSRV1.hshhp.com> Thanks. If you're using the file system object to set the Read Only flag why not use it to delete as well? f.Delete Same difference I know but you've already got a pointer to the file. Jim DeMarco -----Original Message----- From: John Skolits [mailto:JSkolits at CorporateDataDesign.com] Sent: Thursday, February 27, 2003 7:58 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Simple problem. Can't use Kill Yea. The file was read only. I used the following code to change the read only flag. Then killed it. Dim fs, f Dim strFileToKill as String strFileToKill = "C:\Program Files\Microsoft Office\ART\Office\msaccess_SR1.exe" 'Make sure it's read only flag is false Set fs = CreateObject("Scripting.FileSystemObject") Set f = fs.GetFile((strFileToKill)) If f.Attributes And 1 Then 'File is read only, remove the flag f.Attributes = f.Attributes - 1 End If Kill (strFileToKill) Thanks, John -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Jim DeMarco Sent: Thursday, February 27, 2003 7:43 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Simple problem. Can't use Kill John, It works there, but you got this working didn't you? Jim -----Original Message----- From: John Skolits [mailto:JSkolits at CorporateDataDesign.com] Sent: Wednesday, February 26, 2003 10:29 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Simple problem. Can't use Kill Jim, Try a folder a few levels down and tell me if it works. Like "c:\Program Files\Microsoft Office\...." John -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Jim DeMarco Sent: Wednesday, February 26, 2003 10:21 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Simple problem. Can't use Kill Is there a Help button on the error message that might give you some insight? I thought the problem might be in the parens or maybe a space in the path but I tried both and it worked for me (killed an exe in my c:\ folder). Jim DeMarco -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of John Skolits Sent: Wednesday, February 26, 2003 9:03 PM To: dba-VB at databaseadvisors.com Subject: [dba-VB] Simple problem. Can't use Kill Am I losing it? Why doesn't the Kill statement work in this code. '********* Dim strRuntimePath as string strRuntimePath ="C:\Program Files\Microsoft Office\ART\Office" If Len(Dir(strRuntimePath & "\msaccess_SR1.exe")) > 0 Then Kill (strRuntimePath & "\msaccess_SR1.exe") End If '************ The line with "Len(Dir" in it works fine. Bu when the Kill line tries to run I get an error 75 ("Path/File access error") I can easily rename the file and move it around in explorer so I know it's not being used by anything. I've used this syntax before in other VB apps with no problem. If I rename the file through explorer and run that line again it says Error 53 :File Not Found". Which makes perfect sense. Is it because it's an EXE file? Am I missing something really obvious? John Skolits **************************************************************************** ******* "This electronic message is intended to be for the use only of the named recipient, and may contain information from HealthSource/Hudson Health Plan (HS/HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HS/HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". **************************************************************************** ******* _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com **************************************************************************** ******* "This electronic message is intended to be for the use only of the named recipient, and may contain information from HealthSource/Hudson Health Plan (HS/HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HS/HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". **************************************************************************** ******* _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com *********************************************************************************** "This electronic message is intended to be for the use only of the named recipient, and may contain information from HealthSource/Hudson Health Plan (HS/HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HS/HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". *********************************************************************************** From JSkolits at CorporateDataDesign.com Thu Feb 27 07:14:56 2003 From: JSkolits at CorporateDataDesign.com (John Skolits) Date: Thu, 27 Feb 2003 08:14:56 -0500 Subject: [dba-VB] Simple problem. Can't use Kill In-Reply-To: <22F1CCD5171D17419CB37FEEE09D5F99D85225@TTNEXCHSRV1.hshhp.com> Message-ID: Because I was tired and cranky after spending all this time on a stupid problem and just copied the code out of a VB example and never really thought about it. So There! :) John p.s. Good idea though! -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Jim DeMarco Sent: Thursday, February 27, 2003 8:08 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Simple problem. Can't use Kill Thanks. If you're using the file system object to set the Read Only flag why not use it to delete as well? f.Delete Same difference I know but you've already got a pointer to the file. Jim DeMarco -----Original Message----- From: John Skolits [mailto:JSkolits at CorporateDataDesign.com] Sent: Thursday, February 27, 2003 7:58 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Simple problem. Can't use Kill Yea. The file was read only. I used the following code to change the read only flag. Then killed it. Dim fs, f Dim strFileToKill as String strFileToKill = "C:\Program Files\Microsoft Office\ART\Office\msaccess_SR1.exe" 'Make sure it's read only flag is false Set fs = CreateObject("Scripting.FileSystemObject") Set f = fs.GetFile((strFileToKill)) If f.Attributes And 1 Then 'File is read only, remove the flag f.Attributes = f.Attributes - 1 End If Kill (strFileToKill) Thanks, John -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Jim DeMarco Sent: Thursday, February 27, 2003 7:43 AM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Simple problem. Can't use Kill John, It works there, but you got this working didn't you? Jim -----Original Message----- From: John Skolits [mailto:JSkolits at CorporateDataDesign.com] Sent: Wednesday, February 26, 2003 10:29 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Simple problem. Can't use Kill Jim, Try a folder a few levels down and tell me if it works. Like "c:\Program Files\Microsoft Office\...." John -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Jim DeMarco Sent: Wednesday, February 26, 2003 10:21 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Simple problem. Can't use Kill Is there a Help button on the error message that might give you some insight? I thought the problem might be in the parens or maybe a space in the path but I tried both and it worked for me (killed an exe in my c:\ folder). Jim DeMarco -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of John Skolits Sent: Wednesday, February 26, 2003 9:03 PM To: dba-VB at databaseadvisors.com Subject: [dba-VB] Simple problem. Can't use Kill Am I losing it? Why doesn't the Kill statement work in this code. '********* Dim strRuntimePath as string strRuntimePath ="C:\Program Files\Microsoft Office\ART\Office" If Len(Dir(strRuntimePath & "\msaccess_SR1.exe")) > 0 Then Kill (strRuntimePath & "\msaccess_SR1.exe") End If '************ The line with "Len(Dir" in it works fine. Bu when the Kill line tries to run I get an error 75 ("Path/File access error") I can easily rename the file and move it around in explorer so I know it's not being used by anything. I've used this syntax before in other VB apps with no problem. If I rename the file through explorer and run that line again it says Error 53 :File Not Found". Which makes perfect sense. Is it because it's an EXE file? Am I missing something really obvious? John Skolits **************************************************************************** ******* "This electronic message is intended to be for the use only of the named recipient, and may contain information from HealthSource/Hudson Health Plan (HS/HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HS/HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". **************************************************************************** ******* _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com **************************************************************************** ******* "This electronic message is intended to be for the use only of the named recipient, and may contain information from HealthSource/Hudson Health Plan (HS/HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HS/HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". **************************************************************************** ******* _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com **************************************************************************** ******* "This electronic message is intended to be for the use only of the named recipient, and may contain information from HealthSource/Hudson Health Plan (HS/HHP) that is confidential or privileged. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or use of the contents of this message is strictly prohibited. If you have received this message in error or are not the named recipient, please notify us immediately, either by contacting the sender at the electronic mail address noted above or calling HS/HHP at (914) 631-1611. If you are not the intended recipient, please do not forward this email to anyone, and delete and destroy all copies of this message. Thank You". **************************************************************************** ******* _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From JSkolits at CorporateDataDesign.com Thu Feb 27 07:20:17 2003 From: JSkolits at CorporateDataDesign.com (John Skolits) Date: Thu, 27 Feb 2003 08:20:17 -0500 Subject: [dba-VB] Open DB In-Reply-To: <52339DF8DCA2A544AF660C8217EB7DCD0227F0F5@mailgate.bury.gov.uk> Message-ID: See if this works for you '**************** Dim dbe As DAO.PrivDBEngine Dim wsp As DAO.Workspace Dim dbEXT_Database As DAO.Database Dim strSecurityFileName as String Dim strFullDatabasePath as String strSecurityFileName="c:\Windows\Ssytem\system.mdw" strFullDatabasePath = "c:\Test.mdb" Set dbe = New PrivDBEngine With dbe .SystemDB = strSecurityFileName .DefaultUser = "User" .DefaultPassword = "Password" End With Set wsp = dbe.Workspaces(0) 'systemdb is locked in now Set dbEXT_Database = wsp.OpenDatabase(strFullDatabasePath) '************** I didn't check all the syntax but it should be OK John Skolits -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Griffiths, Richard Sent: Thursday, February 27, 2003 8:08 AM To: 'AccessD at databaseadvisors.com'; 'dba-VB at databaseadvisors.com' Subject: [dba-VB] Open DB Hi Group Can't seem to find the exact bit of code I need......to be able to open another database which has its own password and is in a different workgroup using DAO. Can find code for this....... to open another database which has its own password using DAO Anyone been there? Thanks Richard ---------------------------------------------------------------------------- ---------------------------------------- This e-mail, together with any files transmitted with it, is confidential and intended solely for the use of the individual to whom it is addressed. If you are not the intended recipient, or the person responsible for delivering to the intended recipient, be advised that you have received this e-mail in error and that any use, dissemination, forwarding, printing or copying of this e-mail is strictly prohibited without liability on our part. If you have received this e-mail in error please notify the sender. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From R.Griffiths at bury.gov.uk Thu Feb 27 09:27:00 2003 From: R.Griffiths at bury.gov.uk (Griffiths, Richard) Date: Thu, 27 Feb 2003 15:27:00 -0000 Subject: [dba-VB] Open DB Message-ID: <52339DF8DCA2A544AF660C8217EB7DCD0227F0F7@mailgate.bury.gov.uk> John Well done - this is perfect BTW what is PrivDBEngine - can't find in object browser Are there any implications using this method? Thanks Richard > -----Original Message----- > From: John Skolits [SMTP:JSkolits at CorporateDataDesign.com] > Sent: 27 February 2003 13:20 > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] Open DB > > > See if this works for you > > '**************** > > Dim dbe As DAO.PrivDBEngine > Dim wsp As DAO.Workspace > Dim dbEXT_Database As DAO.Database > Dim strSecurityFileName as String > Dim strFullDatabasePath as String > > strSecurityFileName="c:\Windows\Ssytem\system.mdw" > strFullDatabasePath = "c:\Test.mdb" > > Set dbe = New PrivDBEngine > With dbe > .SystemDB = strSecurityFileName > .DefaultUser = "User" > .DefaultPassword = "Password" > End With > > Set wsp = dbe.Workspaces(0) 'systemdb is locked in now > > Set dbEXT_Database = wsp.OpenDatabase(strFullDatabasePath) > > > '************** > > I didn't check all the syntax but it should be OK > > > John Skolits > > > -----Original Message----- > From: dba-vb-admin at databaseadvisors.com > [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Griffiths, > Richard > Sent: Thursday, February 27, 2003 8:08 AM > To: 'AccessD at databaseadvisors.com'; 'dba-VB at databaseadvisors.com' > Subject: [dba-VB] Open DB > > > Hi Group > > Can't seem to find the exact bit of code I need......to be able to open > another database which has its own password and is in a different > workgroup > using DAO. > > Can find code for this....... to open another database which has its own > password using DAO > > Anyone been there? > Thanks > Richard > > -------------------------------------------------------------------------- > -- > ---------------------------------------- > This e-mail, together with any files transmitted with it, is > confidential and intended solely for the use of the individual to > whom it is addressed. If you are not the intended recipient, or > the person responsible for delivering to the intended recipient, > be advised that you have received this e-mail in error and that any > use, dissemination, forwarding, printing or copying of this e-mail > is strictly prohibited without liability on our part. > > If you have received this e-mail in error please notify the sender. > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > -------------------------------------------------------------------------------------------------------------------- This e-mail, together with any files transmitted with it, is confidential and intended solely for the use of the individual to whom it is addressed. If you are not the intended recipient, or the person responsible for delivering to the intended recipient, be advised that you have received this e-mail in error and that any use, dissemination, forwarding, printing or copying of this e-mail is strictly prohibited without liability on our part. If you have received this e-mail in error please notify the sender. From JSkolits at CorporateDataDesign.com Thu Feb 27 10:04:37 2003 From: JSkolits at CorporateDataDesign.com (John Skolits) Date: Thu, 27 Feb 2003 11:04:37 -0500 Subject: [dba-VB] Open DB In-Reply-To: <52339DF8DCA2A544AF660C8217EB7DCD0227F0F7@mailgate.bury.gov.uk> Message-ID: The PrivDBEngine is an unsupported object. But, I use it all the time to modify backends that I have locked out. Never had a problem. If you subscribe to 'Smart Access' there is an article on PrivDBEngine. I don't subscribe to Smart Access but I'm sure someone on the list does. Maybe someone can get a copy for you. I'm sure it will list all the properties and methods of the object. Here's a page that has the link for PrivDBEngine: http://www.myjavasource.com/sa/samain.nsf/0/B0D0397E0CFFBEA88725689D00799FB7 John Skolits -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Griffiths, Richard Sent: Thursday, February 27, 2003 10:27 AM To: 'dba-vb at databaseadvisors.com' Subject: RE: [dba-VB] Open DB John Well done - this is perfect BTW what is PrivDBEngine - can't find in object browser Are there any implications using this method? Thanks Richard > -----Original Message----- > From: John Skolits [SMTP:JSkolits at CorporateDataDesign.com] > Sent: 27 February 2003 13:20 > To: dba-vb at databaseadvisors.com > Subject: RE: [dba-VB] Open DB > > > See if this works for you > > '**************** > > Dim dbe As DAO.PrivDBEngine > Dim wsp As DAO.Workspace > Dim dbEXT_Database As DAO.Database > Dim strSecurityFileName as String > Dim strFullDatabasePath as String > > strSecurityFileName="c:\Windows\Ssytem\system.mdw" > strFullDatabasePath = "c:\Test.mdb" > > Set dbe = New PrivDBEngine > With dbe > .SystemDB = strSecurityFileName > .DefaultUser = "User" > .DefaultPassword = "Password" > End With > > Set wsp = dbe.Workspaces(0) 'systemdb is locked in now > > Set dbEXT_Database = wsp.OpenDatabase(strFullDatabasePath) > > > '************** > > I didn't check all the syntax but it should be OK > > > John Skolits > > > -----Original Message----- > From: dba-vb-admin at databaseadvisors.com > [mailto:dba-vb-admin at databaseadvisors.com]On Behalf Of Griffiths, > Richard > Sent: Thursday, February 27, 2003 8:08 AM > To: 'AccessD at databaseadvisors.com'; 'dba-VB at databaseadvisors.com' > Subject: [dba-VB] Open DB > > > Hi Group > > Can't seem to find the exact bit of code I need......to be able to open > another database which has its own password and is in a different > workgroup > using DAO. > > Can find code for this....... to open another database which has its own > password using DAO > > Anyone been there? > Thanks > Richard > > -------------------------------------------------------------------------- > -- > ---------------------------------------- > This e-mail, together with any files transmitted with it, is > confidential and intended solely for the use of the individual to > whom it is addressed. If you are not the intended recipient, or > the person responsible for delivering to the intended recipient, > be advised that you have received this e-mail in error and that any > use, dissemination, forwarding, printing or copying of this e-mail > is strictly prohibited without liability on our part. > > If you have received this e-mail in error please notify the sender. > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > > > _______________________________________________ > dba-VB mailing list > dba-VB at databaseadvisors.com > http://databaseadvisors.com/mailman/listinfo/dba-vb > http://www.databaseadvisors.com > ---------------------------------------------------------------------------- ---------------------------------------- This e-mail, together with any files transmitted with it, is confidential and intended solely for the use of the individual to whom it is addressed. If you are not the intended recipient, or the person responsible for delivering to the intended recipient, be advised that you have received this e-mail in error and that any use, dissemination, forwarding, printing or copying of this e-mail is strictly prohibited without liability on our part. If you have received this e-mail in error please notify the sender. _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From my.lists at verizon.net Fri Feb 28 15:16:00 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Fri, 28 Feb 2003 13:16:00 -0800 Subject: [dba-VB] Closing an application Message-ID: <00c401c2df6e$982b8220$b615010a@FHTAPIA> Dumb question.... I've always used In my limited experience w/ VB to just close my form w/ a simple Unload Me recently I picked up some code from PSC on how to auto-update my FE program automatically... the problem is with the auto-updater, for some reason when running it will hang every so often and when I C-A-D, it shows my program as not responding.. (win2k, VB6). The author's webpage is 404'ed, so I can't ask him... what do you guys use.. I would rather not use END... help? -Francisco http://rcm.netfirms.com From mikedorism at ntelos.net Fri Feb 28 15:40:05 2003 From: mikedorism at ntelos.net (Mike and Doris Manning) Date: Fri, 28 Feb 2003 16:40:05 -0500 Subject: [dba-VB] Closing an application In-Reply-To: <00c401c2df6e$982b8220$b615010a@FHTAPIA> Message-ID: <000401c2df71$f882b7d0$ac320cd8@hargrove.internal> "Unload Me" hides the form and removes it from memory so you are definitely doing the right thing. As with Access, "END" is a no-no. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com] On Behalf Of Francisco H Tapia Sent: Friday, February 28, 2003 04:16 PM To: dba-VB at databaseadvisors.com Subject: [dba-VB] Closing an application Dumb question.... I've always used In my limited experience w/ VB to just close my form w/ a simple Unload Me recently I picked up some code from PSC on how to auto-update my FE program automatically... the problem is with the auto-updater, for some reason when running it will hang every so often and when I C-A-D, it shows my program as not responding.. (win2k, VB6). The author's webpage is 404'ed, so I can't ask him... what do you guys use.. I would rather not use END... help? -Francisco http://rcm.netfirms.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com From my.lists at verizon.net Fri Feb 28 16:29:50 2003 From: my.lists at verizon.net (Francisco H Tapia) Date: Fri, 28 Feb 2003 14:29:50 -0800 Subject: [dba-VB] Closing an application References: <000401c2df71$f882b7d0$ac320cd8@hargrove.internal> Message-ID: <00fb01c2df78$e8a7dd20$b615010a@FHTAPIA> If I wanted to close the application in Access I use Docmd.Quit. Are you saying that Unload Me Is the DoCmd.Quit for VB? btw, I'm compiling the autoupdater as an .exe separate from the Access FE so it is a VB6 applette if you will... nothing special I'm sure just a good ol' OpenURL method. -Francisco http://rcm.netfirms.com ----- Original Message ----- From: "Mike and Doris Manning" To: Sent: Friday, February 28, 2003 1:40 PM Subject: RE: [dba-VB] Closing an application : "Unload Me" hides the form and removes it from memory so you are definitely : doing the right thing. As with Access, "END" is a no-no. : : Doris Manning : Database Administrator : Hargrove Inc. : www.hargroveinc.com : : : -----Original Message----- : From: dba-vb-admin at databaseadvisors.com : [mailto:dba-vb-admin at databaseadvisors.com] On Behalf Of Francisco H Tapia : Sent: Friday, February 28, 2003 04:16 PM : To: dba-VB at databaseadvisors.com : Subject: [dba-VB] Closing an application : : : Dumb question.... : : I've always used In my limited experience w/ VB to just close my form w/ a : simple : : Unload Me : : recently I picked up some code from PSC on how to auto-update my FE program : automatically... the problem is with the auto-updater, for some reason when : running it will hang every so often and when I C-A-D, it shows my program as : not responding.. (win2k, VB6). The author's webpage is 404'ed, so I can't : ask him... what do you guys use.. I would rather not use END... help? : : -Francisco : http://rcm.netfirms.com : : : _______________________________________________ : dba-VB mailing list : dba-VB at databaseadvisors.com : http://databaseadvisors.com/mailman/listinfo/dba-vb : http://www.databaseadvisors.com : : : _______________________________________________ : dba-VB mailing list : dba-VB at databaseadvisors.com : http://databaseadvisors.com/mailman/listinfo/dba-vb : http://www.databaseadvisors.com : : From ghazzard at aelfen.net Fri Feb 28 18:24:05 2003 From: ghazzard at aelfen.net (Gregory K. Hazzard) Date: Fri, 28 Feb 2003 18:24:05 -0600 Subject: [dba-VB] Closing an application In-Reply-To: <000401c2df71$f882b7d0$ac320cd8@hargrove.internal> Message-ID: <005201c2df88$de7b8b20$0200a8c0@greg> I have heard this in the past - and I must admit to being guilty of using End, but I've never really know the difference, other than End exits your app no matter where it is, and unload requires you to call each form individually. What makes End such a No-no? Greg -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com] On Behalf Of Mike and Doris Manning Sent: Friday, February 28, 2003 3:40 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Closing an application "Unload Me" hides the form and removes it from memory so you are definitely doing the right thing. As with Access, "END" is a no-no. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com From DWUTKA at marlow.com Fri Feb 28 19:15:11 2003 From: DWUTKA at marlow.com (Drew Wutka) Date: Fri, 28 Feb 2003 19:15:11 -0600 Subject: [dba-VB] Closing an application Message-ID: <2F8793082E00D4119A1700B0D0216BF801D821D3@main2.marlow.com> Ditto. End is what you use to close a VB App. Sure, if you have one form, and nothing loaded in the background, you can just unload the form (or give the user the 'x') but End stops the execution of your VB .exe, thus unloading everything. Drew -----Original Message----- From: Gregory K. Hazzard [mailto:ghazzard at aelfen.net] Sent: Friday, February 28, 2003 6:24 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Closing an application I have heard this in the past - and I must admit to being guilty of using End, but I've never really know the difference, other than End exits your app no matter where it is, and unload requires you to call each form individually. What makes End such a No-no? Greg -----Original Message----- From: dba-vb-admin at databaseadvisors.com [mailto:dba-vb-admin at databaseadvisors.com] On Behalf Of Mike and Doris Manning Sent: Friday, February 28, 2003 3:40 PM To: dba-vb at databaseadvisors.com Subject: RE: [dba-VB] Closing an application "Unload Me" hides the form and removes it from memory so you are definitely doing the right thing. As with Access, "END" is a no-no. Doris Manning Database Administrator Hargrove Inc. www.hargroveinc.com _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com