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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by gol4

  1. gol4

    Integers to long in VBA

    Way to clear it up Strongm! I have not used the VARPTR command since Qbasic when I was poking and peeking pixels. I did not realize it was supported in VBA I just tried VARSEG but VBA ejects that.
  2. gol4

    Integers to long in VBA

    Thanks for the input guys. I think I will just declare everything as long from now on. Unless I can get away with a byte.
  3. gol4

    Integers to long in VBA

    So I'm wasting my time using an integer. I had the same experience as you with an overflow if declared as an integer. But the only reason I declared it as an integer was to reduce memory usage. Since it converts it to a long any way I really don't save any memory I only run the risk of and...
  4. gol4

    Integers to long in VBA

    here is the link. http://msdn.microsoft.com/en-us/library/office/aa164754(v=office.10).aspx
  5. gol4

    Integers to long in VBA

    I found this info on MSDN today. Was anyone else aware that VBA converted integers to long. I have used integers in my code where ever possible. Internal functions like on dblclick(cancel as integer) still use integers. I started programing when memory was tight now it seems my practice...
  6. gol4

    How to save a text field to a bound form (control source is coming from another form that is unbound

    Have you considered using the forms openargs property to pass the record# instead of the textbox.
  7. gol4

    How do you put a red border around the current field a user is in....

    I know this is old thread but I needed a small challenge. Add a rectangle to your form named box1, red 1PT border, and visible = false two short functions Private Function PlaceBox() Me.Box1.Visible = True Me.Box1.Top = Me.ActiveControl.Top - 50 Me.Box1.Left = Me.ActiveControl.Left - 50...
  8. gol4

    Obtain unknown URL from website

    Sorry misread, you are trying to capture conus replace intStart = InStr(1, curStatus, "OCONUS and Foreign Locations") with intStart = InStr(1, curStatus, "CONUS Locations") file name is conus2013a.xls
  9. gol4

    Obtain unknown URL from website

    The file location is under the source of http://www.defensetravel.dod.mil/site/perdiemFiles.cfm parse it from there. Here is a real ugly example. <code> Private Sub SendtoURL() Dim HTTP, sURl As String Dim curStatus As String Dim intStart As Long sURl =...
  10. gol4

    Problem with SelStart when inserting character into text box by clicking a button

    While I don't fully understand what you are trying to do. I did a quick test and anywhere I clicked in my textbox named text1 I could make the à appear with my code below. <code> Private Sub Text1_Click() Dim newText As String newText = Left(Text1, Text1.SelStart) & Chr(224) newText = newText &...
  11. gol4

    Using function to specify a control value for criteria gives an error

    depends on how you intend to use the function and what you want it to return Function fCountry()as control fCountry = Forms!frmChooseBooks!cmbCountry End Function as control or Function fCountry()as string fCountry = "Forms!frmChooseBooks!cmbCountry" End Function as control
  12. gol4

    Treeview key problem

    That depends on the design of your database not the tree view. How can you tell from the data stored in your tables which models of Pentium the Dixons carry and which the Dynabite stock? I don't have a good enough understanding of you data structure to answer the best way, but if you are using...
  13. gol4

    Treeview key problem

    I know this thread is a bit old but here goes When loading the treeview child node you specific which node it should be loaded under by passing its key to the add method. Each node needs to have a unique key. Don't confuse key with index. You add nodes using the add method .add(Relative key...
  14. gol4

    Creating controls at runtime...in need of some advice!

    this can be don easily. See create control method but be aware that the form must be in designview to add the controls
  15. gol4

    TreeView Error - Add Node

    As is says "c" & iNodeCount + 1 would not be unique somewhere in oTree.Nodes there is something with that key change code to make it unique

Part and Inventory Search

Back
Top