tbox select

R

ryan.fitzpatrick3

I have this sql on a list box, can this work for a textbox in vba?

Private Sub Text98_AfterUpdate()

SELECT ([Forms]![frmlFreight]![FreightTotalDelCosts]/[Forms]!
[frmlFreight]![TruckWeightFull])*[Forms]![Component]![CaseWeight] AS
Total, tblFreight.ComponentID, tblFreight.DivisionID FROM tblFreight
WHERE (((tblFreight.ComponentID)=[tblFreight]![ComponentID]) AND
((tblFreight.DivisionID)=1));

End Sub
 
R

ruralguy via AccessMonster.com

Not the way you have it. What are you trying to achieve?

I have this sql on a list box, can this work for a textbox in vba?

Private Sub Text98_AfterUpdate()

SELECT ([Forms]![frmlFreight]![FreightTotalDelCosts]/[Forms]!
[frmlFreight]![TruckWeightFull])*[Forms]![Component]![CaseWeight] AS
Total, tblFreight.ComponentID, tblFreight.DivisionID FROM tblFreight
WHERE (((tblFreight.ComponentID)=[tblFreight]![ComponentID]) AND
((tblFreight.DivisionID)=1));

End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top