Search results

  1. D

    why a column doesn't get updated

    DOP_new is a table i do spell it correctly... thanks
  2. D

    why a column doesn't get updated

    Hi, I am trying to update fields in a table. everything get updated correctly except the field [Modify By] DoCmd.RunSQL "UPDATE DOP_new SET [Modify BY] = '" & Itm_Logged_by & "' where [TrackingID] = " & Me![TrackingID] & ";" DoCmd.RunSQL "Update DOP_new SET [Modify BY] = '" & Itm_Logged_by...
  3. D

    would like to enable a button when openform

    Hi, I would like to enable a button when open another form I tried the following: DoCmd.OpenForm "frm_Create", acNormal, , "[TrackingID] = " & Me![TrackingID], acFormEdit, , Form_frm_Create.cmd_Delete.Enabled = True the above code does work but it can't enable the button. please advise...
  4. D

    syntax error -- Case statement in Query

    SWITCH Function does the work. many thanks
  5. D

    syntax error -- Case statement in Query

    Hi, I received syntax error for the following statement SELECT CASE [File Type] WHEN 'Security' THEN 'SEC' WHEN 'Admin' THEN 'ADM' END AS FT FROM [tbl_Core Non-Core] please advise thanks Alice
  6. D

    how to capture the input data for a query of a form and pass it to vba code

    Hi, I have a form which RECORD SOURCE (you can find it in the form design) consists the following query : SELECT DOP_new.[Barcode #], DOP_new.[Deal Name], DOP_new.[Client Name], DOP_new.[Reference #], DOP_new.[Document Date], DOP_new.[Document Type], DOP_new.[Number of Documents]...
  7. D

    compare date in vba

    DateDiff function does the work! thanks
  8. D

    compare date in vba

    Hi, I would like to compare an input date and current date in a IF statement I have no idea why the following code doesn't work properly If Format(Itm_Date_of_Shipment, "mm/dd/yyyy") >= format(now(), "mm/dd/yyyy") then ' update the table... else ' display error message end if...
  9. D

    why does Update statement in VBA work incorrectly?

    thanks.. it works
  10. D

    why does Update statement in VBA work incorrectly?

    Hi, I wrote an UPDATE statement in vba which would take and update input date into a table. here is the code: DoCmd.RunSQL "UPDATE DOP_new SET [Shipped] = -1, [Date of Shipment] = " & Itm_Date_of_Shipment & " Where ([Date of Shipment] is null) And [BarCode #] = " & Itm_BarCode & ";" it...
Back
Top Bottom