Search results

  1. S

    Auto Call #

    I just tried it again and it looks like some of the () are being dropped in the string. Me.[Case #] = DMax("[Case #]", "[Incident Reports Table]") + 1 & Year(Date) & "." & Month(Date) I actually went in and used the debugger and tried to add the () but it saved it with just the (Date).
  2. S

    Auto Call #

    I open the form in design view, went to form properties, and in the "before index" line I put in that code. Thanks so much for your help with this; I'm so challenged by code.
  3. S

    Auto Call #

    I just started a new record and that's what happened. This is what I wrote: Me.[Case #] = DMax("[Case #]","[Incident Reports Table]") + 1 & Year(Date()) & "." & Month(Date()) Does this look correct or do I have a type-O?
  4. S

    Auto Call #

    I wrote: Me.[Case #] = DMax("[Case #]","[Incident Reports Table]") + 1 & Year(Date()) & "." & Month(Date()) It replied"Run-Time error '94': Invalid use of null
  5. S

    Auto Call #

    In the case # would be great. I don't know how it's calculating the 61-235; where would I look? Thanks so much for your help.
  6. S

    Auto Call #

    Awesome; it worked. The number came out "61-235" Anyway to format it with month and year? That is so great! I just love this forum! Thank you so much!
  7. S

    Auto Call #

    I wrote: Me.[Case #] = DMax([Case #], [Incident Reports Table]) + 1 It gave me a "compile error". This is so new to me.
  8. S

    Auto Call #

    I want to make sure that I understand where I am to do this. In the form properties there is a "Before_Insert" listed in the property fields. That I have a text box for (example Case # )on the form that in the Before Insert I use "Me.Case # = DMax("Case #,"Incident Tbl") + 1"
  9. S

    Auto Call #

    Is there a way to have a form create an auto number with a prefix of "CN-####". There is a data base one department uses and it has Case #, Call #, Incident # and I have been requested to create on their form auto numbers. I have some experience in auto #'s but not much and thought best to ask...
  10. S

    UPdate one table from another table through form?

    I have a reference table that I have created a form from. I enter the id and all the pertinent data for that customer. I want to populate a monthly invoice table with those fields and the monthly invoice table. Do I create an update query and have a command button to run that query in the form...
  11. S

    Excluding Records in a Query

    Thank you, thank you! Worked perfect!
  12. S

    Excluding Records in a Query

    I have two tables; table one has all the values, table two has values I want to exclude. Would I create a query excluding by using "not like " and then do another to get the values that I want? Just not sure how to do this. Thanks so much!
  13. S

    IIF Query

    Thank you all for your help. So to overcome this being two different fields could I: IIf([task]="00059", "BPR, iif([Account_Code]=5112100,"VAH","REG")))
  14. S

    IIF Query

    I was actually thinking that as well and thought maybe two separate queries and then join the queries to give all the results I am looking for; sound about right?
  15. S

    IIF Query

    qry_sernaPay Period EndIDNameHourly RtDtDeptIDEarn CodeAcct...
  16. S

    IIF Query

    IIF Qry:VAHEC: IIf([Acct Code]=5104100,"REG",IIf([Acct Code]=5112100,"VAH",IIf([Task]="0000059","BPR"))) Result qry_sernaPay Period EndIDNameHourly RtDtDeptIDVAHECAcct CodeTaskHoursDiffAmount...
  17. S

    IIF Query

    This is what I used VAHEC: IIf([Acct Code]=5104100,"REG",IIf([Acct Code]=5112100,"VAH",IIf([Task]="00059","BPR"))) and am still getting the result of REG for the task 00059;maybe should I quotes around the Acct Code i.e., ="5104100","REG". Thanks again for your help, I really, really...
  18. S

    IIF Query

    The first two arguements are pertaining to the account code: Iff([account code] =5104100,"REG", IIf [Account Code]=5112100,"VAH")) Works fine. Now I am adding the following the result is that the earn code reflects REG instead of BPR. IFF([account code] =5104100,"REG", IIf [Account...
  19. S

    IIF Query

    Happy Monday everyone!:) I am trying to define two types of data in one query; maybe that's why it's not quite working. I have account code and task code which I am trying to define the earn code for payroll purposes: This is my IIF statement if you could help me, it would be so very much...
  20. S

    Union Queries

    I could make a table. Currently we downloaded from our labor system into a database into a table by crop year. ( I was pretty new at this when I started and no resources to learn from) so I did it by copy year. Then I was taught about union queries so now I have one data base that is separate...
Back
Top Bottom