如何在VBA查询中获取多个值
我想在一列中获取所有数据,并将其放在一个变量上如何在VBA查询中获取多个值,vba,ms-access,Vba,Ms Access,我想在一列中获取所有数据,并将其放在一个变量上 Rate = Forms!frmStep4BookingUpdateRevBill.frmRateRevBill!Text0.Value(0) Rate1 = Forms!frmStep4BookingUpdateRevBill.frmRateRevBill!Text0.Value(1) Rate2 = Forms!frmStep4BookingUpdateRevBill.frmRateRevBill!Text0.Value(2) 下面的表格来自
Rate = Forms!frmStep4BookingUpdateRevBill.frmRateRevBill!Text0.Value(0)
Rate1 = Forms!frmStep4BookingUpdateRevBill.frmRateRevBill!Text0.Value(1)
Rate2 = Forms!frmStep4BookingUpdateRevBill.frmRateRevBill!Text0.Value(2)
下面的表格来自一个查询
我希望此列的所有速率代码都传递一个变量
Rate = Forms!frmStep4BookingUpdateRevBill.frmRateRevBill!Text0.Value(0)
Rate1 = Forms!frmStep4BookingUpdateRevBill.frmRateRevBill!Text0.Value(1)
Rate2 = Forms!frmStep4BookingUpdateRevBill.frmRateRevBill!Text0.Value(2)
谢谢。我怀疑您正在尝试连接结果,在这种情况下,您需要在此处查看Allen Browne的函数我真的不明白您想做什么。数组变量?记录集?也许一个输入/输出示例会很好。我希望这个列的所有速率代码都传入一个变量。