I've searched all over for a solution and can't seem to find one.
I have two forms, customer information and customer order. Each of these forms are generated from a query: customer information and customer order.
On the customer information form I have a button that I would like have the user select to create a new order for that customer by automatically opening the customer order form and populating the name and id fields.
The code behind the order button on the customer info form is:
DoCmd.OpenForm "frmOrders", , , , , , Me.txtID & ";" & Me.txtName
In the form load of the I have the code:
Dim strOpenArgs() As String
If Not IsNull(Me.OpenArgs) Then
strOpenArgs = Split(Me.OpenArgs, ";")
Me.txtID = strOpenArgs(0)
Me.txtName = strOpenArgs(1)
Else
Msgbox "Order Does Not Exist"
End If
When I select the button on the order info form I get the following error message: The field is too small to accept the amount of data you attempted.
I'm not sure why this error is occuring. The customer information form is created from a query directly generated from the customer information table. The customer order form is generated from the customer order query which is a link of the customer information table and customer order table.
Insight would be greatly appreciated.