J
Joan
When using a union query to join similar tables, do the data types of each
field in one table have to be the same as the data types for the
corresponding field in the other table?
I have a LitterShot subform where the user wants to be able to enter two
dates ( if needed) in the [Date Given] field separated by a comma. Right now
the data type of this field is Date. These dates would not be consecutive
and would indicate if the same vaccine was given to the same dog on more
than one date. Right now, I have the form and table structure set up so that
the user must record a separate littershot entry in this instance. The user
indicates that this would save them time if they could just record both
dates in the same textbox.
After looking through my reports and queries, I think that I might be able
to allow this for the LitterShots table because the [Date Given] field is
not used in any calculations or functions. I would just change the data type
to text or memo type for LitterShots.[Date Given]. However there is the
problem of this union query where I join the LitterShots table to the
DogShots table. (DogShots are given by the broker and Littershots are given
by the breeder. and are recorded in a different manner). The [Date Given]
field in the DogShots table is used in a calculation in a query where I must
find the MAX of the [Date Given] field. I would not be able to change the
data type of DogShots.[Date Given] to a text field for this reason.
Any advice regarding this would be appreciated.
Joan
field in one table have to be the same as the data types for the
corresponding field in the other table?
I have a LitterShot subform where the user wants to be able to enter two
dates ( if needed) in the [Date Given] field separated by a comma. Right now
the data type of this field is Date. These dates would not be consecutive
and would indicate if the same vaccine was given to the same dog on more
than one date. Right now, I have the form and table structure set up so that
the user must record a separate littershot entry in this instance. The user
indicates that this would save them time if they could just record both
dates in the same textbox.
After looking through my reports and queries, I think that I might be able
to allow this for the LitterShots table because the [Date Given] field is
not used in any calculations or functions. I would just change the data type
to text or memo type for LitterShots.[Date Given]. However there is the
problem of this union query where I join the LitterShots table to the
DogShots table. (DogShots are given by the broker and Littershots are given
by the breeder. and are recorded in a different manner). The [Date Given]
field in the DogShots table is used in a calculation in a query where I must
find the MAX of the [Date Given] field. I would not be able to change the
data type of DogShots.[Date Given] to a text field for this reason.
Any advice regarding this would be appreciated.
Joan