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. JohnAcc

    Convert String to a Date

    Thanks PHV worked a treat
  2. JohnAcc

    Outlook Rules Wizard

    Hi All, Does anyone know how I can automatically reply to an e-mail if it contains a certain word in the body or subject and then move the e-mail to a seperate folder. i.e if the e-mail contains the word "help desk" in the subject box or the body of the e-mail then I want to automatically...
  3. JohnAcc

    Convert String to a Date

    Hi all, I have removed the userform and tried to call the stored procedure but it still doesn't work. Here is my code if anyone can shed any light ! Sub TestDateRange() On Error GoTo ErrHandler_ Dim cnPubs As ADODB.Connection Set cnPubs = New ADODB.Connection Dim strConn As String strConn =...
  4. JohnAcc

    Convert String to a Date

    Hi all, Thanks for all your help but I still can't seem to get this to work: I'll give a fuller explanation of what I'm trying to do: I am running the following stored procedure from vba. I get an error when I try to open the query and I have concluded that it is the dates that are causing the...
  5. JohnAcc

    Convert String to a Date

    It is entered as 01-Jan-2005 Rgds, John
  6. JohnAcc

    Convert String to a Date

    Hi All, I have a text box where the user enters a date. This is stored as a string within vba and I need to convert it to a date. Any ideas ? Rgds, John
  7. JohnAcc

    Menu Bar in Excel

    Cheers Tony ! A star is on it's way. Rgds, John
  8. JohnAcc

    Menu Bar in Excel

    Hi All, Does anyone know how I can create a sub menu off a custom menu in excel ? Similar to File > Print Area > Set Print Area Here is what I have at the moment...... Private Sub Worksheet_Activate() Dim cbWSMenuBar As CommandBar Dim muCustom As CommandBarControl Dim...
  9. JohnAcc

    calling data from SQL Server 2000

    Hi all, I would like to retreive data from a table within SQL Server 2000. The problem I have is that my log in to SQL is different to my log in to windows. What code do I need in vba to log in with my correct log in ? Thanx in advance for your help. Rgds, John
  10. JohnAcc

    Menu bar on a userform

    Does anyone know how to add a menu bar into a user form ? Thanx in advance for any help! Rgds, John
  11. JohnAcc

    Add record from excel into access

    Thanks Roy - Worked a treat!
  12. JohnAcc

    Add record from excel into access

    Hi there, I am trying to add data from Excel into access using the following code but it doesn't work. I do not get any error message: Private Sub CbAdd_Click() Dim Db As Database Dim Rs As Recordset Set Db = OpenDatabase("T:\Accounts\John Cox\db1.mdb") ' open the database Set Rs =...
  13. JohnAcc

    Newbie Question

    Thanks PHV! Easiest Star you've ever earned Mate!
  14. JohnAcc

    Newbie Question

    I am new to access and would like to know how to populate a combobox on a form with the values Yes and No. I am familiar with vba in excel and would usually type the following code in the form's initialize event. combobox1.additem "Yes" combobox1.additem "No" How can I can do this in access...
  15. JohnAcc

    Textbox_Enter Event

    Hi All, I have a userform that has some textboxes on. When the userform is initialized the textboxes are populated with data from cells in the workbook. Does this trigger the textbox_enter event procedure ? Rgds, John
  16. JohnAcc

    Colour a row if a date is entered

    Hi All, I have the following problem. I need to highlight the entire row a different colour if a date is entered in any cell in column D. I was thinking of using the Selection Change Event but I have no way of knowing the previous cell reference. Any ideas ? Rgds, John
  17. JohnAcc

    Help text when mouse hovers over textbox

    It doesn't work. Tony has said that there isn't anyway to format the text. Thanks anyway, Rgds, John
  18. JohnAcc

    Hide all visible commandbars on open

    Hi all, How can I disable all commandbars when openening a spreadsheet. At the moment I have: Private Sub Workbook_Open() For Each cmdbar In CommandBars cmdbar.Visible = False Next fmMain.Show End Sub I would also like to reset the commandbars when closing the file. Any...
  19. JohnAcc

    Help text when mouse hovers over textbox

    Can the text be split onto multiple lines ? At the moment it is just 1 long tip. I would like to have multiple lines. Any ideas ?

Part and Inventory Search

Back
Top