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 wOOdy-Soft 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 Hayton

  1. Hayton

    Form Reference in VBA

    Hi Guys, thanks for your advice. I redisgned the app got the code to check if frmFleet is open and all worked well. Hayton McGregor
  2. Hayton

    Form Reference in VBA

    Hi Guys, I have a form fsubFitments which is a subform for frmFleet. When I run this code I get a message "MS Access can't find the form "fsubfitments". I guess I am not referencing the the form somehow, ie "frmFleet!fsubFitments" Any suggestions would be appreciated. 'Check if the original...
  3. Hayton

    VBA for Excel

    Hi Skip, I take your point. I am not really up on forum ettiquet The world I come from you shake a persons, hand look him in the eye and say thankyou. You will notice at the end of my current post I said thanks. Hayton McGregor
  4. Hayton

    VBA for Excel

    Thanks very much. I'll give it a whirl Hayton McGregor
  5. Hayton

    VBA for Excel

    I am not a code type guy and battle with it. I normally record a macro and and hack that to try and get it to work. However I can't record a macro to do this. Hayton McGregor
  6. Hayton

    VBA for Excel

    Hi Guys, I am trying to work the following out with vba and I am not succeeding. Lets say I have two colums, Col A and Col B in an Excel worksheet and the first 12 rows of col A contain data. The VBA I am trying to do is as follows: For cell B1 return the following, if A1 contains the word...
  7. Hayton

    Enterprise Planning - Analyst (Delete Macro)

    Enterprise Planning - Analyst (Delete Macro) I have created a macro that I now want to delete. I cannot see how to achieve this from the macro menu or other menus on the tool bar. Can someone point me in the right direction please.
  8. Hayton

    Combo Box Update Code

    Hi AceMan I seem to have got it working. Thanks for the help Hayton McGregor
  9. Hayton

    Combo Box Update Code

    Hi Aceman Both these queries are make table queries. The tables are use for the combobox rowsource query. So what I am trying to acheive is the following: 1. I select a customer from cboCustomer. 2. In the after update event for cboCustomer place a code which will refresh data for cboFleet and...
  10. Hayton

    Combo Box Update Code

    Hi AceMan1 Thanks for the reply AceMan. I am trying to refresh two comboboxes (cboFleet & cboTyresize) on the same form using the after update event for a combobox(cboCustomer). After I have selected a customer from cboCustomer, cboFleet and cboTyreSize need to be refreshed. All 3 comboboxes...
  11. Hayton

    Combo Box Update Code

    Hi Guys, I have a combo box that when I select an item in the list, I would like it to refresh two other combo boxes. A query runs that creates a table with new data the old data is deleted. The combo boxes then use this table data as a rowsource. The the main combobox is cboCustomer and the...
  12. Hayton

    #Num! Error of Report Text Box

    Hi PHV, Thanks for the reply. Hayton McGregor
  13. Hayton

    #Num! Error of Report Text Box

    Hi Guys, =IIf(IsError([txtFR1]/[txtTot]),0,[txtFR1]/[txtTot]) For the formula above, when txtTot is 0, it shows the #Num! error. I have tried using IsError function to get around it and it does not work. Any suggestions would be appreciated. Hayton McGregor
  14. Hayton

    Lock Table Query

    Thanks Remou, I added some code for the rowsource On Error GoTo Err_Command172_Click Dim stDocName As String Me.cboFleet.RowSource = "" stDocName = "qryVehiclesDDM" DoCmd.OpenQuery stDocName, acNormal, acEdit Me.cboFleet.RowSource = "SELECT DISTINCTROW...
  15. Hayton

    Lock Table Query

    cboFleet Hayton McGregor

Part and Inventory Search

Back
Top