NixonShaun
New member
- Local time
- Today, 01:08
- Joined
- Feb 5, 2018
- Messages
- 9
Good morning everybody.
I am working on a fairly simple calculation concept that is giving me the dreaded #Type! error.
at present the two tables causing the issues are
ServiceCodes
Billing
ServicesCodes has 3 fields:
AutoID
ServiceCode
ServiceCodeAmt - longinteger, general number (contains the hourly rate for this service code)
billing has various client demographics and
a ComboBox called [InvoiceService1] and a text box with hours provided for the month called [InvServ1Hrs]
I select a service using ComboBox to lookup Service Codes i add the hours for this service code in the text box next to the ComboBox.
I then created an unbound text area called [InvSrv1HrsAmt]
On the control source i entered
=[InvServ1Hrs]*[InvoiceService1].Column(2)
Access changes the text to =[InvServ1Hrs]*[InvoiceService1].[Column](2)
and the result is #Type!
However, if i change the Column to (0) if will give me the answer of 56 which is correct as the service selected in the combo box is row 7 and the hours entered are 8 hours totaling 56.
Column 0 as noted above is an autoID field, a long integer, general number.
curious why it works on the first column but not the third.
any ideas?
I am working on a fairly simple calculation concept that is giving me the dreaded #Type! error.
at present the two tables causing the issues are
ServiceCodes
Billing
ServicesCodes has 3 fields:
AutoID
ServiceCode
ServiceCodeAmt - longinteger, general number (contains the hourly rate for this service code)
billing has various client demographics and
a ComboBox called [InvoiceService1] and a text box with hours provided for the month called [InvServ1Hrs]
I select a service using ComboBox to lookup Service Codes i add the hours for this service code in the text box next to the ComboBox.
I then created an unbound text area called [InvSrv1HrsAmt]
On the control source i entered
=[InvServ1Hrs]*[InvoiceService1].Column(2)
Access changes the text to =[InvServ1Hrs]*[InvoiceService1].[Column](2)
and the result is #Type!
However, if i change the Column to (0) if will give me the answer of 56 which is correct as the service selected in the combo box is row 7 and the hours entered are 8 hours totaling 56.
Column 0 as noted above is an autoID field, a long integer, general number.
curious why it works on the first column but not the third.
any ideas?