0
嘗試運行查找時,我不斷收到數據類型不匹配。我有一個表tWorkOrder並有一個短文本列salesOrderNo數字列workOrderNo和短文本lineKey我正在查找lineKey值。數據類型不匹配幫助MS Access VBA
Dim lineKeyOW, SoNo, WTSo As String
SoNo = 0135487
WTSo = 2
lineKeyOW = Nz(DLookup("lineKey", "tWorkOrder", "salesOrderNo = '" & soNo & "' AND workOrderNo = '" & WTSo & "'"), "NA")
謝謝!我有一種感覺,這與「和」我一直很難與他們聯繫 – Kevin
@Kevin這將與練習 –
也感謝你對聲明變量的解釋是非常有用的。 – Kevin