G
Guest
Hi there everyone! Using A02 on XP. Not a programmer but love learning all I
can.
I have a MainForm with contract info/address/names/etc. Subform links on
field [PlanNum]. A unique field [Key] is created on BeforeInsert event on
the subform which is four digit contract number [PlanNum] plus the four digit
year from another field [PlanYearEnd] (example: 26422005) will allow me to
create a record each year for each contract and use [Key] to link to my
report.
Rather then type in all the financial data in the subform, I would like to
import a .txt file using Import Specifications that would populate some
fields in the table that is my control source on the subform.
Would like to be sure I approach this correctly rather than flounder around
for the best way to do it.
My import .txt file does not contain an identifier (no [PlanNum] field). The
..txt file is generated by the user from a government forms software. It
contains financial data only.
Is it possible to have a button on my form that will import the .txt file
data into the open record? If not, how can I tell the import macro which
record to append to? By append, I mean there will be an existing record and
the data needs to populate about 8-10 of the 25 fields and many of those
other fields will contain data relating to the imported financial data.
I'm pretty sure append will only add a new record rather than populate
fields in an existing record so I'm off on this already. That being the case,
should I append in the data to a new record, adding [PlanNum], then open the
main form, locate the newly appended record and edit further from there? That
sounds more like what I think I need to do.
Thanks in advance for any help or advice on this issue!!!
can.
I have a MainForm with contract info/address/names/etc. Subform links on
field [PlanNum]. A unique field [Key] is created on BeforeInsert event on
the subform which is four digit contract number [PlanNum] plus the four digit
year from another field [PlanYearEnd] (example: 26422005) will allow me to
create a record each year for each contract and use [Key] to link to my
report.
Rather then type in all the financial data in the subform, I would like to
import a .txt file using Import Specifications that would populate some
fields in the table that is my control source on the subform.
Would like to be sure I approach this correctly rather than flounder around
for the best way to do it.
My import .txt file does not contain an identifier (no [PlanNum] field). The
..txt file is generated by the user from a government forms software. It
contains financial data only.
Is it possible to have a button on my form that will import the .txt file
data into the open record? If not, how can I tell the import macro which
record to append to? By append, I mean there will be an existing record and
the data needs to populate about 8-10 of the 25 fields and many of those
other fields will contain data relating to the imported financial data.
I'm pretty sure append will only add a new record rather than populate
fields in an existing record so I'm off on this already. That being the case,
should I append in the data to a new record, adding [PlanNum], then open the
main form, locate the newly appended record and edit further from there? That
sounds more like what I think I need to do.
Thanks in advance for any help or advice on this issue!!!