Recent content by kryten

  1. K

    Specify printer

    Hi everyone, I'm trying to set up code in a report to print using a specific printer (since there is more than one printer on the network). Can anyone point me in the right direction? Any help you could give me would be greatly appreciated.
  2. K

    Change text colour

    Hi everyone, What code would I use to change the text colour of a text box when a checkbox is ticked? I need to change the text colour to red to alert the user when they enter an item where the discontinued box is checked. Thanks for any advice you can give.
  3. K

    Mailing labels

    Hi everyone, Is it possible to start a sheet of A4 mailing labels from other than the first label? Any advice would be much appreciated.
  4. K

    calculate VAT

  5. K

    calculate VAT

    Hi everyone, I have a form with a control to calculate VAT, however since books are zero rated for VAT I need to calculate it for some items but not for others. Here's the code I used: If [Books] = False Then [VAT] = [LineTotal] * 0.175 Else [VAT] = 0 End If [Books] is a...
  6. K

    DLookup issue

    I couldn't open this file - unrecognised database format (I'm using Access 97)
  7. K

    DLookup issue

    No joy - still get #Name? Isn't there any other way to reference it than using DLookup? Thanks for trying
  8. K

    DLookup issue

    OnHand2 is based on OnHandQry which is in turn based on several other queries (gets complicated!) I don't understand why the DLookup works when you open the subform on it's own but not when it is part of the main form? Thanks for your help
  9. K

    DLookup issue

    Sorry Ken here it is again
  10. K

    DLookup issue

    I have pasted the relevant forms etc into a new database and attatched it ( the whole database is too big)
  11. K

    DLookup issue

    I just want to view it
  12. K

    DLookup issue

    Hi Ken, Tried that, this time I get #Name? when I open it as a standalone as well as on the main form. Thanks for trying.
  13. K

    DLookup issue

    Hi Ken, Thanks for your reply. This works only when I open the subform as a standalone. When it is opened as part of the main form I get #Name? Any other advice you could give would be appreciated.
  14. K

    DLookup issue

    Hi everyone, I have a subform [frmOrderDetailsSubform] on which I am trying to use DLookup as the controlsource for a field to look up the [OnHand] field in my query [qryOnHand2]. =DLookUp("[OnHand]","[qryOnHand2]","[Code] = Forms![frmOrderDetailsSubform]![Code]") This works fine when I open...
  15. K

    Simple referencing question

    Hi Ken, Thanks for replying. Basically, I have two queries GoodsIn and GoodsOut which calculate what comes in and what goes out. A third query calculates GoodsIn less GoodsOut and comes up with the OnHand figure. What I'm trying to do on my form is reference the OnHand figure for the...
Back
Top Bottom