rth@trinitylabs.org
New member
- Local time
- Yesterday, 21:04
- Joined
- Dec 18, 2018
- Messages
- 10
I have a database that uses a report to show all open jobs, the idea is to click on a job and have a form open so the user can edit that order. All the work is done in the Event 'On Click' where the OrderNumber is passed to the form so it knows which record to open. Unfortunately this doesn't work as expected. When the Order Number is an actual number, the Error "Data Type Mismatch in Criteria Expression" is received. When the Order Number is text, a message box pops up, requesting 'Enter Parameter Value?'
The Order Table tblOrders, has Primary Key: OrderNumber (Short Text); OrderDate, StartDate, CompletionDate, ActualStartDate, ActualCompletionDate, CreatedOn (Date/Time); fkCompanyID (Long Int); AgentName, Title, AWB, CreatedBy (Short Text); Description (Long Text); Closed (Boolean).
The Company Table tblCompany has Primary Key: CompanyID (Autonum); CompanyName, Address1, Address2, City, State, PostalCode, County, CreatedBy (Short Text); Notes (Long Text); Active (Boolean); CreatedOn (Date/Time).
tblContacts has Primary Key: ContactID (Autonum); AgentName, fkOrderNumber, Notes, CreatedBy (Short Text), CreatedOn (Date/Time).
tblEmail & tblTelphone are similar, Primary Key is eMail/TelephoneNumber (Short Text) & fkCompanyID (Long Int).
Most of the functions have not been implemented since I ran into this issue of "Data Type Mismatch" almost out of the gate as it where. I've attached a working database to this post, with a Navigation Form as the front porch. Clicking the Open Orders Button will bring up the Report mentioned above, than clicking on any of the entries in the Report itself will repeat the error noted above. I am suspicious using a Short Text as Primary Key might have something to do with it. But before I revamp the whole idea, thought I'd ask.
Thanks all. Have a good day.
The Order Table tblOrders, has Primary Key: OrderNumber (Short Text); OrderDate, StartDate, CompletionDate, ActualStartDate, ActualCompletionDate, CreatedOn (Date/Time); fkCompanyID (Long Int); AgentName, Title, AWB, CreatedBy (Short Text); Description (Long Text); Closed (Boolean).
The Company Table tblCompany has Primary Key: CompanyID (Autonum); CompanyName, Address1, Address2, City, State, PostalCode, County, CreatedBy (Short Text); Notes (Long Text); Active (Boolean); CreatedOn (Date/Time).
tblContacts has Primary Key: ContactID (Autonum); AgentName, fkOrderNumber, Notes, CreatedBy (Short Text), CreatedOn (Date/Time).
tblEmail & tblTelphone are similar, Primary Key is eMail/TelephoneNumber (Short Text) & fkCompanyID (Long Int).
Most of the functions have not been implemented since I ran into this issue of "Data Type Mismatch" almost out of the gate as it where. I've attached a working database to this post, with a Navigation Form as the front porch. Clicking the Open Orders Button will bring up the Report mentioned above, than clicking on any of the entries in the Report itself will repeat the error noted above. I am suspicious using a Short Text as Primary Key might have something to do with it. But before I revamp the whole idea, thought I'd ask.
Thanks all. Have a good day.