Search results

  1. R

    running SQL in VBA with parameters

    I'm constructing a label report that can print a certain number of labels (given by the user) for a certain client, or clients. I saw a way of doing this by appending the address for those clients into an emptied table however many times they were needed. After rereading your previous post, I...
  2. R

    running SQL in VBA with parameters

    I cannot do that because I want to run the query multiple times for the same input to append the same information repeatedly and I only want the user to enter how many times to run the query. Thanks Rich
  3. R

    running SQL in VBA with parameters

    I want to run an append query with parameters. I believe this can only be done from within VBA by explicitly writing the SQL (as I cannot pass a parameter into an access parameter query using VBA code). Is the best way to do this using the 'DoCmd.RunSQL' syntax, and if so, how do I refer to a...
  4. R

    Refering to fields on a continuous form

    because they need to be able to choose any number of options from the list.
  5. R

    Refering to fields on a continuous form

    I've actually just realised that its giving the error message 3 times, so it's nothing to do with nameing the text box.
  6. R

    Refering to fields on a continuous form

    Private Sub FrequencyCheck() Dim freq As String Dim length As Integer Dim ctrl As Control Dim strSame Set ctrl = Forms![Dispatches subform]!Frequency If Not (IsNull(Forms![Dispatches subform]!Frequency)) Then freq = Trim$(Forms![Dispatches...
  7. R

    Refering to fields on a continuous form

    To be more specific, I have written some VBA that validates a frequency field. The code is run before update of the field. However, if the user enters incorrect data, the error message pops up as many times aas there are records on the screen. I am only assuming this is due to the fact that...
  8. R

    Refering to fields on a continuous form

    How do you refer to a single field on a continuous form, as for example, if you have a 'client' text box, all records shown on the form will have a text box called client and any reference to client seems to be ambiguous. Cheers Rich
  9. R

    Displaying dates on a report

    I am trying to display the current month name in the header of a report. I have managed to get the month number using the Now and Month functions, but I cannot find a way of converting this into the month name. Is this possible or is ther another way round it?
  10. R

    Calling Accesss macro from within Excel macro

    I have been having a bit of trouble trying to find the correct syntax for running an Access macro from within an Excel macro. Could anyone please help.
Back
Top Bottom