Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: vietnam97
  • Order by date
  1. vietnam97

    Recover code after sudden system crash

    I had ton of new code changes, and ran my code in the Visual Basic 6's design environment. The program went to an infinite loop forcing me to shutdown VB environment prematurely before I had a chance to save it. Is there a way to recover my lost code? Thanks, Bao
  2. vietnam97

    Arrange controls programatically

    Jeff, thanks for your help. Although it doesn't work out exactly, because I have 2 columns of checkboxes, so I want to make sure the rows are lining up correctly. But I think I got your idea. Thanks, Bao
  3. vietnam97

    Arrange controls programatically

    I have about a dozen of checkboxes in a frame, and depend on the choice selected only some of the checkboxes will be visible to the users? This would create some spaces between them and the screen wouldn't present nicely. So, is there a method to line them up automatically without having to...
  4. vietnam97

    WORD 2002: Incorrect Page numbers in IF statement

    I use the following logic in the footnote section of my mail merge document and it works fine in WORD 97. However when I run in WORD 2002, the page numbers were wrong for all the pages in the document. The page number was set to 3 for all the sections that have the page number field inserted...
  5. vietnam97

    ODBC Connect Str

    Thanks for your info Duane. I used FileDSN in the Microsoft query to connect to the Oracle table. The FileDSN is on the LAN so all users can access it. Bao
  6. vietnam97

    ODBC Connect Str

    I'm using access 97, and have an sql pass-through query to access an oracle table. It has the following property: ODBC;DSN=GARP;UID=demo;PWD=demo; In order to run the query, I have to set up the Data source on my machine. My access database is on the LAN, and I want many users to be able to...
  7. vietnam97

    Mail Merge for word 2002: sqlstatement problem

    I'm testing the vb code using mail merge with word 2002 for a group of users. It has been working fine with word 97, however when i ran with word 2002 and tried to call the OpenDataSource method, a Select Table dialog box appeared. Here is the mail merge code that I use: strSQL = "SELECT...
  8. vietnam97

    Rename an Access table in VB

    Thanks for the info swi. Now how do I copy one table into the other e.g. MyTable to MyBackup? Bao
  9. vietnam97

    Rename an Access table in VB

    I'm using DAO in visual basic, and I need to rename an access table MyTable to MyBackup, how would I do it? Thanks, Bao
  10. vietnam97

    Get the Path of the calling program

    Well, we created the two applications, and they were both standard exe. I made up the name just to drive the point. The actual names are: PlanInstall.exe which acts as a driver program, and TextFileGen.exe which is called by PlanInstall.exe. I just want to know the path of PlanInstall.exe so...
  11. vietnam97

    Get the Path of the calling program

    I have a driver.exe that calls a process.exe, and both reside in different servers. When process.exe starts, is there a way to determine the path of driver.exe without having driver.exe pass any parameters (e.g. the path name)? Thanks, Bao
  12. vietnam97

    BookMark in Mail Merge

    I have a bookmark defined in the Main document, but when Word merges to a form letter 1, the bookmark didn't carry through. Does anyone know why? I'm running the word merge through VB 6 and Word 97. Thanks, Bao
  13. vietnam97

    Loop thru the controls contained in a SSTAB

    Thank you all for your helpful suggestions. John: I had to make the desired tab active before looping thru all the controls, and then check for the property Left >0 on each control. This way I'll be able to collect only the visible controls on my desired tab and it worked as expected...
  14. vietnam97

    Loop thru the controls contained in a SSTAB

    Hi All, Basically, from what I have tried, when iterate through the control collection, we can tell if the control is contained in the SSTab, but we don't know on which tab number that control belongs to, to be able to do something with it. Thanks, Bao
  15. vietnam97

    Loop thru the controls contained in a SSTAB

    Hi John, I used your code and changed the If statement a little.Basically I tried to get all the controls on tab1 but somehow the code missed it. I step thru a few controls on tab1 and checked the tab number (cont.tab) and it showed the tab = 0 instead. For Each Ctl In MyForm On...
  16. vietnam97

    Loop thru the controls contained in a SSTAB

    My question above pertain to my code. However when I tried your code out, it died on the line If Ctl.Container = MyForm.SSTab1 then (note that I removed to second part of the If) with the error code: Error 450: Wrong number of arguments or invalid property assignment
  17. vietnam97

    Loop thru the controls contained in a SSTAB

    It died at the For Each line...
  18. vietnam97

    Loop thru the controls contained in a SSTAB

    Thanks Craig. What wrong with my code? I thought SSTab1 is the container and by pointing to MyForm.SSTab1, I just have to use the For Each to loop thru the controls contained within...
  19. vietnam97

    Loop thru the controls contained in a SSTAB

    I have a SSTAB control with 3 tabs, if I want to loop thru all the controls contained in a particular tab, say tab1, then how would I do this? I've tried the following code and it gave me an error saying "Error 438: Object doesn't support this property or method" For Each Ctl In...

Part and Inventory Search

Back
Top