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 SkipVought 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: *

  1. VBOldTimer

    Get AutoNumber After Insert

    Use Select @@Identity
  2. VBOldTimer

    Invalid use of null

    For integers or booleans: =Val(Format$(TheField)) For Text: =Format$(TheField) Doubles and Singles can be handled like the integer example on a pc set to US standards, otherwise you will need to check for a Null using IsNull() or IsNumeric =IIf (IsNull(rs(0)),0, rs(0))
  3. VBOldTimer

    Change the .mdb extsion to another

    Use JRo to add a password, and compact the db at the same time. You can do this also with MS Access. Ado and Dao have no problems with this. Once set, you just supply the password in the connection string (plenty of examples here). The simple database password can be easily cracked with an...
  4. VBOldTimer

    How can I retrieve unique no form a database

    Actually, you can get the new number after calling AddNew and prior to calling the Update, just to throw in. Make sure you use a server side cursor though. It is possible to still have some (seldom) clashes though so a good practice to do a quick count query (fastest) on the table using the...
  5. VBOldTimer

    do we have a proper case function in VB?

    You mean like myStr = "good morning to you" myStr =StrConv(myStr,vbProperCase) Debug.Print myStr = Good Morning To You
  6. VBOldTimer

    Anything in VB like the continuous form in access?

    Check out the DataRepeater control (add a control reference to it)
  7. VBOldTimer

    ADO Data Control Update

    "Data Control and bound controls cause more headaches than they are worth" Well, personally I think you are right about the Data Control. It just complicates matters, if the project is anything but small, and sooner or later somewhere down the road you end up changing to a recordset...
  8. VBOldTimer

    Tile PictureBox Inside PictureBox

    As discussed in thread222-510367
  9. VBOldTimer

    Picture Boxes

    Try: Dim x As Long Dim y As Long Picture2.AutoSize = True Picture2.Picture = LoadPicture("MyPicture.jpg") Picture2.BorderStyle = 0 With Picture1 .ScaleMode = vbTwips For x = .ScaleLeft To .ScaleWidth Step Picture2.Width For y =...
  10. VBOldTimer

    Set Background Color For SSTab

    Unfortunately, rorubin's posted link is for the TabStrip and not the SSTab. For the SSTab, under VB6, I haven't seen a method, API call, or whatever, to do what you want. You can only at best place a frame on the tab and dynamically resize it when the sstab resizes. But this is still a poor...
  11. VBOldTimer

    Disabling close button

    Another way (even thought the close button is still visible and not greyed out) would be to simply code: If UnloadMode = vbFormControlMenu Then Cancel = True Or, even more simple: Cancel = UnloadMode = vbFormControlMenu
  12. VBOldTimer

    Setting the ADO database path at run time

    You already asked this. thread709-524550
  13. VBOldTimer

    Construct filter

    "Without value mont and year." I guess this is throwing some of us off. What do you mean? Give an example.
  14. VBOldTimer

    Setting the ADO database path at run time

    "I have the ADO objects on the app with no connection string" Have you also removed the RecordSource from the properties window?
  15. VBOldTimer

    How do I check the number of rows returned by Crystal Report in VB6

    RecordsRead is supported by CR. You said you were using CR and DIDN'T say that you were using the DataReport! The underlying recordset recordcount property will give you the total records
  16. VBOldTimer

    Printing a report in access from VB

    In Access select the report and open it in design mode. Then click the menu "View" "Properties" A properties sheet will show. Click on the Data tab and in the DataSource field add the name of the query. If the property sheet for the report doesn't show up, but instead one...
  17. VBOldTimer

    Printing a report in access from VB

    I mean, create the query IN Access, and then set the report's data source to it.
  18. VBOldTimer

    Jet Query error 3052

    Sorry, I still cannot find an answer, so someone else will need to help out.
  19. VBOldTimer

    Printing a report in access from VB

    Bind the report to a query which is stored in Access.

Part and Inventory Search

Back
Top