Run time error 2113 - the value you entered isn't valid for this field (1 Viewer)

Niyiomojoh

Registered User.
Local time
Today, 22:23
Joined
Jan 3, 2019
Messages
10
I downloaded an MS Access Inventory template. In the inventory table I added a row - "Unit Cost"
I also created tables for customer and sales (this has Unit cost also)
I decided to do an auto-fill to fill the sales form. But it keeps throwing error 2113 - for the field. I tried to debug but couldn't get the issue. But it allows value to be typed in without showing error.

I need a solution. Somebody help!!
 

theDBguy

I’m here to help
Staff member
Local time
Today, 14:23
Joined
Oct 29, 2018
Messages
21,496
Hi. We'll need to see the code you're using to get an idea what may be going wrong with it.
 

Niyiomojoh

Registered User.
Local time
Today, 22:23
Joined
Jan 3, 2019
Messages
10
The code is

Private Sub cboProduct_Change()
Me.txtCategory.Value = Me.cboProduct.Column(1)
Me.NumUnit_Cost.Value = Me.cboProduct.Column(2)


End Sub
 

Attachments

  • Autofill.jpg
    Autofill.jpg
    100.1 KB · Views: 193

Niyiomojoh

Registered User.
Local time
Today, 22:23
Joined
Jan 3, 2019
Messages
10
The zip is attached herewith.

I dearly need a helping help for the academic project
 

Attachments

  • Inventory Sales.zip
    369.3 KB · Views: 150

Users who are viewing this thread

Top Bottom