Search results

  1. S

    VBA Error handling

    What code do I have to put in so that Access does not display the messages when deleting or ammending or adding a recond? I know it is possible to do it in options but I want VBA to control the error handling and not access. Cheers in advance
  2. S

    "Exit" a form?

    I have a form which opens in add mode. On this form is a close button. When the form is opened and some data is add, clicking the close button doesn't mean that the data is not saved. The close button just closes the form and the data entered still gets entered into the table. Is there anyway...
  3. S

    Probably Something Stupid ........

    I respect your views on my database and have taken it all into account. This is mainly for a piece of college coursework which is due in shortly so don't really have time to re design it like you have said. Today I have create it so it is working how I want it to work, even though it might not...
  4. S

    ActiveX Calendar

    I want to include the ActiveX control in my database so when a command button is clicked it opens the calendar so the user can select the date and then it gets inserted into a text box. This is possible, and if so how??
  5. S

    Probably Something Stupid ........

    I have pasted your code and I get the error: "Cant assign a value to this object" Whats wrong there? I have this: Private Sub lstDetails_DblClick(Cancel As Integer) Me.txtSurname = Me.lstDetails.Column(1) Me.txtCustomerID = DLookup("[CustomerID]", _ "tblCustomerDetails", _ "[SurName] = '" &...
  6. S

    Probably Something Stupid ........

    Well I will use that code as I can't get it to work. But I use macro's because I hate VBA. But thanks for sorting it out. Cheers
  7. S

    Probably Something Stupid ........

    Please look at the attachment and see if you can understand the problem I am having. open frmNewInvoice and in the top right combo select a Post Code. Then double click on a customer in the list box. This should then update the text boxes to the left of this list box depending on which customer...
  8. S

    Update Query?

    I cuurent have two tables which store my data. When a command button is clicked on my form I want all the data from one table to be moved to the other. I thought about using an Update Query however this does not work. I design it using QBE, but here is the SQL of the query: UPDATE tblTemp...
  9. S

    Sending to back?

    Yeah I figured it out in the end but thanks for giving me the idea. Cheers
  10. S

    Combo boxes

    I also want to know how to do this. I have a combo and when the product is selected another combo changes dependind on what is selected on the first. Howver I want the second combo box to display the first in order automatically as this is usually the required value. So how exactly do I do...
  11. S

    Sending to back?

    Good Idea, but how?? I havent got a clue!
  12. S

    Mouse over in VBA

    Is there a way in VBA so that when the mouse is held over a control for 1 second a message appears saying what it means. You all know the sort. Happens in Windows all the time when you put your mouse over a icon.
  13. S

    Sending to back?

    When I try to hide one of my buttons after being click I get the message: "You can't hide a control that has the focus" I kind of expected this. All I want to know is whether there is a way of sending a comand button behind another? I have one which when clicked I want to hide, but as above...
  14. S

    Don't Requery

    Yeh I thought that but there are a lot of controls so I thought there might be a quicker way to do it. Never mind will do it that way. Cheers
  15. S

    Don't Requery

    I have apiece of code the requerys my form, however I don't want it to requery some of the txt boxes on the form. At the moment I have: [Forms]![frmNewInvoice].Requery Is there a piece of code which I can add for my txt boxes so that they don't requery??
  16. S

    Sum of Query

    I currently have the following code on my command button Private Sub cmdDelete_Click() On Error GoTo Err_cmdDelete_Click With DoCmd .SetWarnings False .OpenQuery "qryDelete", acViewNormal, acEdit .SetWarnings True End With txtDiscount.Requery...
  17. S

    Sum of Query

    It needs to run every time one of my command buttons are clicked I tried requery but that does seem to work with queries. How is it possible to get it to run and calculate the new values after my command buton is clicked?
  18. S

    Option Buttons

    Any body?
  19. S

    Sum of Query

    I have a query on one of my forms that calculates the sum of all the records in one of tables. The table is also getting added to, but I can't seem to be able to get my query to recalculate the correct sum on my form. Can anyone help? Cheers
  20. S

    Option Buttons

    Right got them working nicely with the code and everything....only thing now is how do I make one of them be set as default on form load??
Back
Top Bottom