Recent content by Paul1100

  1. P

    When code runs appends 2 lines to table

    Thank you it works now
  2. P

    When code runs appends 2 lines to table

    now i get a run time error 3137 missing semicolon ; at end of sql statement new code below: DoCmd.RunSQL "INSERT INTO[OverRide Table]([ProductID],[EmployeeNumber],[Date])Values([Forms]![OverRide Table].[ProductID],[Forms]![OverRide Table].[EmployeeNumber],[Forms]![OverRide Table].[Date & Time])...
  3. P

    When code runs appends 2 lines to table

    Your are exactly right pbaldy i do have two records in the AuthorizedUsertoOverride table however i am not sure where to insert the values option into my statement? does the Values replace Select or is this and totally new added parameter?
  4. P

    When code runs appends 2 lines to table

    Hi, I have a problem when i run this form and it completes ok but it tells me that 2 lines will be appended to my table!! both lines are identical the data is correct but don't know why i get two? my code for Access 97 follows: DoCmd.RunSQL "INSERT INTO[OverRide...
  5. P

    Using Dlookup with Access97

    ChrisO that is it such a small change can a big difference
  6. P

    Using Dlookup with Access97

    ok i think you want the whole database but i can't upload it my company has some kinda of firewall thing that errors me out. but you are right the empID is numeric and the security code is text
  7. P

    Using Dlookup with Access97

    Okay i tried it again an this time i get an error 438 object does not support this property or method! Here is the revised code: Answer = DLookup("[Security Code]", "AuthorizedUsertoOverRide", "[Security Code] = '" & [Forms].[OverRide Table].[Security Code] & "' And [EmployeeNumber]= " &...
  8. P

    Using Dlookup with Access97

    oops I'm sorry and thanks for being so understanding here is the revised code Answer = DLookup("[Security Code]", "AuthorizedUsertoOverRide", [Security Code] = '" & [Forms].[OverRide Table].[Security Code] & '" And [EmployeeNumber]= " & [Forms].[OverRide Table].[EmployeeNumber])
  9. P

    Using Dlookup with Access97

    Pbaldy i don't understand your statement "did I miss:"
  10. P

    Using Dlookup with Access97

    Pbaldy the compile error states expected expression and if i hit ok it goes to the ' after security code =
  11. P

    Using Dlookup with Access97

    Bob i tried your suggestion and i get an error 438 object does not support this property or method
  12. P

    Using Dlookup with Access97

    i'm sorry yes this does have 2 set of criteria and i tried what you said but a get a compile error now
  13. P

    Using Dlookup with Access97

    Hi all, I hope someone can help me i have the following code and keep getting an error when running but i can seem to fine the right combinations to make it work. I'm a novice and am lost please help!! Dim Answer As Variant Dim Count As Variant Answer = DLookup("[Security Code]"...
  14. P

    Linking Forms and fields with access 97

    All, I am have been trying to figure out a way to link data from one form to the other with no joy i am a novice at best. My situation is I have a form called Run Query and it get four lines of data updated when the user enters a serial number it also has an OverRide button that should ask for...
  15. P

    Working with Event Procedures

    Thank you for your response but i also notice that in my code i had not ended my first if statement so i did by moving the end sub command before i started the second if and all seems to work now. thanks, Paul
Back
Top Bottom