Recent content by almahmood

  1. A

    Updateable query problem.

    Please check if your linked ODBC SQL Server table has edit permission or not. Access Update query works in a different way than SQL Server. 1) You need to make sure that both of your queries are editable. 2) Also, many to many don't work.
  2. A

    change date month to current month

    What is your new case?
  3. A

    auto add a value in form field

    Change the Rowsource, Property of the ITEM control and write one line VBA code on AfterUpdate Event like this: Change the ROWSOURCE of Item filed to Select ITEM_CODE, MIN_QTY FROM YourPic2Table ORDER BY ITEM_CODE. Now go to the Format tab of Property Sheet and change the Column Count to 2 and...
  4. A

    CDate

    I agree with The_Doc_Man. Try this work around: CDate(REPLACE([p1ok],".","/"))
  5. A

    query help needed - returning more than i want!

    Hi, As per the data, the query is giving you the correct result. If you see your data closely, you have two Action_ID for same customer in Question_Created table and two in Question_Responded table for the same customer and you are using join on Customer_ID field. Basically, your record is...
  6. A

    Syntax error in UPDATE Statement.

    There is a comma before WHERE clause which is wrong. Try this: strsql = "UPDATE PARTNER SET EndDate = #" & EndDate & "#, Active = " & Active & " WHERE PartnerID = '" & PartnerId & "'"
  7. A

    Access SQL Update Query Is Not Working

    Okay, when we connect from Excel to Access, there is an option of record locking. Is there any chance that you have more than one user on this tool? It can also cause this issue if you kept open your database and executing commands from your Excel. You need to check connection string as well.
  8. A

    Column Headers as Value

    Here you go: [Date], 'Inbound' as Channel,'Peter' as [Name], [Peter_Inbound] as Sales union all [Date], 'Outbound' as Channel,'Peter' as [Name], [Peter_Outbound] as Sales union all [Date], 'Inbound' as Channel,'Andy' as [Name], [Andy_Inbound] as Sales union all [Date], 'Outbound' as...
  9. A

    Update query help

    Use another IIF() to specify a staff like this Activity = IIF([Staff]="YourSpecificStaff",IIF(Format([Start_Date],"ddd")="Fri","RDO","YourSecondChoce"),"YourSecondChoce")
  10. A

    Column Headers as Value

    Use UNION query to get your desired output.
  11. A

    #Type In access form

    I think you are using calculation on txtNettWeight control. If so, you won't be able to set null value in it. Always use Nz() in your calculation to obsolete the null value. Set null value only those are not calculated fields.
  12. A

    Update query help

    Try this: Activity = IIF(Format([Start_Date],"ddd")="Fri","RDO","YourSecondChoce")
  13. A

    Access SQL Update Query Is Not Working

    I believe your database is corrupted and I assume you ran compact & repair command. To check, please create a simple make table query and see that runs for you or not. Try this for both tables. If you get any error, means you have some corrupted records in your table and you need to clean those...
  14. A

    Summing Totals in Query

    Try this: SELECT [Meal - Recipes IngredientListQ].MealID, [Meal - Recipes IngredientListQ].IngredientID, [Meal - Recipes IngredientListQ].IngredientName, Sum([Meal - Recipes IngredientListQ].Qty) AS SumOfQty FROM [Meal - Recipes IngredientListQ] GROUP BY [Meal - Recipes IngredientListQ].MealID...
  15. A

    Cross Tab - Data Type Mismatch in Criteria Expression

    Hey, You need to change the datatype for AvailableMarks in Courses table from Text to Number. Somehow you have junk data in it which is why it's leading into an datatype conversion error.
Back
Top Bottom