You haven't answered some of my questions (although I will admit I omitted a
question mark in the first one). In particular, 1) are there relationships,
and 2) is the patient record either Active, Inactive, or Discharged, or are
these three choices used to show a history? In other words, is there one
and only one record for each patient? If so, edit the combo box Row Source
so that it has only one column (the text) and just store the text value in
tblPatientV1. If you do this, make sure that the combo box column count is
1 and that there is only one column width listed (and that is above 0").
These values can be found in the combo box property sheet.
Douglas Steele also has weighed in on this. His suggestion is well worth
your attention, especially if you are getting nowhere with mine. No matter
to whom you respond, it is best if you answer the questions. They are
relevant to the problem, and the answers may be necessary before a targeted
suggestion can be offered.
shep said:
Thanks for responding
tblStatusV1 is to enable using a combo box on frmPatientV1 so users can
select status vice typing.
The status fields on both tables are linked.
Column properties are as you stated they should be.
I need a query to count the number of Active patients. When I set
criterion
to "Active", I get zero count. If I set it to "1", I get number of Active
patients because the ID number is store in tblPatientV1 vice the text
Active.
I'm sure I hve done something to cause this, but have not foun the
culprit.
BruceM said:
Are there any relationships between the tables. It sounds as if ID in
tblPatientV1 is related to ID in tblStatusV1. If you look at the combo
box
properties I expect you will find that the column count is 2, the bound
column is 1, and the column widths are 0";1" (second number could be
different). This is as it should be. You can see what you need to on
the
form; there is no need to view the information directly in the tables.
Having said that, I wonder a bit about your database design. Is there
one
and only one record for each patient? If so, is Status a single field in
the record reflecting current status only, or is past status (and maybe
dates) in there somewhere? If Status is a single field to show current
status only, I would think you could just store the word rather than
linking
to another table.
I have a table, tblPatientV1, and a table, tblStatusV1.
tblStatusV1 has two fields; ID and Status. Status has Active,
Inactive,
and
Discharged entered as options.
tblPatientV1 has several fields one of which is Status, a text field.
form, frmPatientV1 is based on tblPatientV1 to enter patient data for
storage in the table. On the form, Status field is a combo box and Row
Source for Status field has:SELECT [tblStatusV1].[ID],
[tblStatusV1].[Status]
FROM [tblStatusV1];
When I select a status;e.g., Active, The ID number shows in
tblPatientV1
rather than the text Active.
How can I get the text to show in the table?