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

  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

Part and Inventory Search

Back
Top