Search results

  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.
  16. N

    Criteria not working

    One day I will finish this database and leave you alone. Latest problem is that I have a query to calculate aged debts - it works very well so far. I have used expressions to get line total/VAT/Total and Balance outstanding. One expression leading to the next so balance oustanding is...
  17. N

    order of macros/vb

    Order of macros thanks guys. I knew the logic was wrong but couldn't see where. I have circumvented the problem by now showing stock levels on the order form (after discussing with client) so that staff using the system can see what is available.
  18. N

    Invalid Null

    Invalid null the whole process is that entering stock sales (subform) on the sales order form will: 1. open stock and go to the matching stock code 2. enable me to update stock after exiting the stock code field.
  19. N

    order of macros/vb

    i have a form stock which records stocks codes/price/stock in hand and reorder levels. I have a macro (not very good at VB) on the Before Update property of stock in hand that checks if enough stock is available, I have some code on the On Exit property of stock in hand that deducts sales from...
  20. N

    Problem with Delete Query

    delete query when I have to do this type of thing I check that the append (or update ) query works. If it does I copy it and change it to a dlete query. I f you try this I suggest that you do it on a copy of the database.
Back
Top Bottom