Loop through records and increment value in vba access

前端 未结 1 499
误落风尘
误落风尘 2021-01-27 19:51

I\'m trying to loop through records in a table with part no\'s and with matching part no\'s, increment a value in the pos field. I asked a question earlier(Object variable or Wi

相关标签:
1条回答
  • 2021-01-27 20:19

    Possibly:

    SELECT CTOL.*, [CTOL_Asbuilt].[PART-SN], [CTOL_Asbuilt].[PART-ATA-NO], [CTOL_Asbuilt].[PW-PART-NO],
    DCount("*", "CTOL", "[Part Find No]=" & [Part Find No] & " AND ID<" & [ID])+1 AS Seq
    FROM CTOL LEFT JOIN [CTOL_Asbuilt] ON CTOL.[PART FIND NO] = [CTOL_Asbuilt].[PART-ATA-NO];
    
    0 讨论(0)
提交回复
热议问题