O
OldStoneBuddha
I have a question (probably a simple one) that I need help on. I am working
with testing trays in my laboratory work, each of which has a unique name and
72 wells (12 rows and 6 columns) each well can contain a patient specimen
or a control or be blank. In the data base, I have created a table
[Prelim180] that contains patient information for each well, the primary key
consists of [TrayNm], [RowNbr], [ColNbr]. The patient data is
programmatically imported from a CSV file using docmd.transfertext.
However, only patient data comes over. Control or empty wells are just
missing records.
After importing patient data to the [Prelim180] table, I examine the
imported record set, looking for wells that do not have patient data (i.e.
missing records). When I find a missing record, I want to programatically
ask the user for what control to place in that well and then add that record
to the [Prelim180] table. I am using the Dcount function and for next loops
to determine if the record exists, but I don't know how to then create a new
record in VB. Docmd.runSQL? what SQL string do I use to create a new record?
Thanks in advance for any help.
Scott D. Collins CHS(ABHI)
Laboratories At Bonfils
Denver, CO
(e-mail address removed)
(e-mail address removed)
with testing trays in my laboratory work, each of which has a unique name and
72 wells (12 rows and 6 columns) each well can contain a patient specimen
or a control or be blank. In the data base, I have created a table
[Prelim180] that contains patient information for each well, the primary key
consists of [TrayNm], [RowNbr], [ColNbr]. The patient data is
programmatically imported from a CSV file using docmd.transfertext.
However, only patient data comes over. Control or empty wells are just
missing records.
After importing patient data to the [Prelim180] table, I examine the
imported record set, looking for wells that do not have patient data (i.e.
missing records). When I find a missing record, I want to programatically
ask the user for what control to place in that well and then add that record
to the [Prelim180] table. I am using the Dcount function and for next loops
to determine if the record exists, but I don't know how to then create a new
record in VB. Docmd.runSQL? what SQL string do I use to create a new record?
Thanks in advance for any help.
Scott D. Collins CHS(ABHI)
Laboratories At Bonfils
Denver, CO
(e-mail address removed)
(e-mail address removed)