Recent content by nicwnacw

  1. N

    Saving reports to Word

    I only do access no VBA or SQL - sad I know, Have a customer who wants to save invoices to Word. I need to design a macro that will: print, save then delete. The name of the report needs to be the invoice number. Can anyone help me please?
  2. N

    subform not refreshing

    refreshing subform After a week of trying, I posted my query and went back to the drawing board. Problem solved with RunCommand on exit event I ran the rfresh command and all now works.
  3. N

    subform not refreshing

    I have no VB skills at all have to do everything with macros etc. So please keep any replies simple. I have a database for students, courses and tutors - all worked fine until the customer wanted each student to do 2 courses at a time. The whole database is designed for statistical returns ie...
  4. N

    Saving reports

    Thankyou Thanks I'll give it a try!
  5. N

    Saving reports

    Is it possible to save a report to a particular 'file'. I am trying to develop a database for the issue of parking permits, letters and permits are not a problem, but the boss wants the letters saved for later viewing, i.e. she wants to search for a particular person and be able to see all...
  6. N

    Iif statements

    I have a small database with letters as reports, sometimes I have a titke for a person but not always I want an Iif statement or IsNull so that if there is no title I can address the customer as Dear Sir/Madam. I have tried many variations and none seem to work can anyone help? PLEASE
  7. N

    Stopping an action

    stop action Have tried it on the Before Update (thanx for the suggestion), I don't get error messages, or the Not Enough Stock message. Will the If work on B4 update as there is no value in the qty field? and the if is based on X being bigger than Y
  8. N

    Stopping an action

    stop action I adapted your code a little: Private Sub quantity_AfterUpdate() Dim qty As Variant qty = DLookup("[quantity]", "Stock", "[StockID] = '" & Me.stockid & "'") If qty < Forms![stock].QuantityInStock Then "Not Enough Stock" Else End If and I get a syntax error on the 'Not Enough...
  9. N

    Stopping an action

    stop action Thank you for that, but QuantityInStock is on a different table to sales transactions where the quantity field is, so will the Me. thingy work. so far i have tried code to open stock from the afterupdate event on sales trans - that works. I then insert an if x<y, MsgBox ("blah...
  10. N

    Stopping an action

    I have a form which shop staff complete, I have placed a box on the form showing staff how much stock is held, this is linked to stockid so shows the stock level for the current item. I have worked out an Iif statement for saying not enough stock or stock Ok. This works well but I think I need...
  11. N

    Save a value and then return a zero

    OK - learning lots from you guys and trying stuff out. The latest problem - I have sucessfully constructed a form (based on a query) where i can update stock for damaged goods and for annual stock check. However the stock check result overrides the adjustments, can I update stock levels from...
  12. N

    Criteria not working

    Thank you Thank you for that suggestion it would have been easier. You guys are a great help
  13. N

    Criteria not working

    criteria OK that worked - seems very long winded but there you go! I assume that I will now have to take Expr4 out of my IIf's and put the whole formula in - what fun
  14. N

    Criteria not working

    criteria tried again - I left the () off by mistake - now I have a parameter box for expr's 1-4 . the machine seems to want the entire equation. Expr1= [sales price]*[quantity] Expr2 = CCur([expr1]*17.5)/100 Expr3 = [expr1]-[expr2] Expr3 = [expr3]-[amount] Instead of using expr's in Expr...
  15. N

    Criteria not working

    criteria query Thank you - I just tried that and I got an error message saying that if I wanted the field to show i had to duplicate the column - so I did. Got an error message saying that i did not enter an aggregate function ??????. Now I'm even more confused.
Back
Top Bottom