T
Toco Hara
Hello. I receive this error message when I try to open a
second form that receives data from first form:
Run Time Error; The field is too small to accept the
amount of data you attempted to add.
Code Executed during OnClick on first form:
Dim strDocName As String
Dim strLinkCriteria As String
strDocName = "frmOrders" 'second form
strLinkCriteria = "[DtOrdered]=" & "#" & Me![DtOrdered]
& "#" & " AND"
[CustomerNumber] = " & " & Me![CustomerNumber] & "'"
DoCmd.OpenForm strDocName, , , strLinkCriteria
DtOrdered and CustomerNumber make up primary keys in the
underlying orders table and customers table. One form
uses Orders table, and other uses customer table. Passing
values between forms is not working. Any suggestions.
Thank you much
second form that receives data from first form:
Run Time Error; The field is too small to accept the
amount of data you attempted to add.
Code Executed during OnClick on first form:
Dim strDocName As String
Dim strLinkCriteria As String
strDocName = "frmOrders" 'second form
strLinkCriteria = "[DtOrdered]=" & "#" & Me![DtOrdered]
& "#" & " AND"
[CustomerNumber] = " & " & Me![CustomerNumber] & "'"
DoCmd.OpenForm strDocName, , , strLinkCriteria
DtOrdered and CustomerNumber make up primary keys in the
underlying orders table and customers table. One form
uses Orders table, and other uses customer table. Passing
values between forms is not working. Any suggestions.
Thank you much