I’ve split my DB into FE/BE, as so many of you have recommended. I ran into a little snag that I’d like to discuss here.
My DB has a form to let the user select an employee by “Payroll_ID” and then to launch a report (via a command button) to display information on that person. After I’d split the DB, I got a data mismatch error when I tried to launch a report. I looked at the underlying table in design view and noted that the Payroll_ID field was of data type Text. That seemed fine to me–text is appropriate for this field. Nonetheless, I suspected the problem lay with this field…and I was right. When I checked the same table in the original version of the DB, I found the Payroll_ID field was of data type Number/Double. I suppose that’s the data type I chose when I started building this DB about nine months ago, although I would not have chosen that data type had I known then what I know now.
Next I went back to my new split DB (into the back-end, of course) and changed the Payroll_ID field’s data type to Number. That fixed the problem. Nonetheless, I have a couple of questions.
1. Did Access, in its wisdom, change my data type to Text as it split my DB?
2. Is there a compelling reason to change the data type back to text? I’m far from finished with the development of this DB, and I’m wondering whether I’m setting myself up for trouble if I leave this field formatted as Number.
3. If the answer to my second question is yes, what else must I change to avoid the data type mismatch errors? That is, might the mismatch problem lie with the command button properties or perhaps in the report properties?