Hi all,
I've been putting some questions, and developing as i get some answers and find solutions, although i dont know if im making a big turn around to get where i want when someone with expert knowledge would get there in no time, so im asking for sugestions.
I have an old database (access2), that has now to comply with certain entities that require that i send data electronicaly.
The format they want is txt, all lines must have 125 chars.
Every month i need to filter the data from the previous month and create a new invoice with all records from my invoices.
I must then have a header like:
TIPOLINHANUMBER2FILERNUMBER1CODENTIDANUMBER9CODTIPENTNUMBER8NUMFACTNUMBER8ANOMESFACTNUMBER6DATAENVIODATE8CODREJEICAONUMBER2FILERNUMBER81
All of this has default values except for NUMFAC (number of the main invoice that can start at 1) ANOMESFACT (year and month of all my invoices), and DATAENVIO (the date ill send the txt).
So I created a new table with all these fields.
Then the details:
TIPOLINHANUMBER2NUMUNIBENNUMBER9SIGLAVARCHAR2CODCSAUDENUMBER12DTACSAUDEDATE8QTDNUMBER4FILERNUMBER16VALPAGAR_EUROSNUMBER16NUMDOCNUMBER4CODREJEICAONUMBER2AREALIVREVARCHAR50
On this part it comes the data i linked from access 2.0, i created a quary that makes a new table with the data i want (filtered by date).
Then i made an update query with the values i want to update the details table.
Then the footer
TIPOLINHANUMBER2QTDTOTBENNUMBER7FILERNUMBER16VALTOTAL_EUROSNUMBER16CODREJEICAONUMBER2FILERNUMBER82
The footer line also has a lot of default values, the 2 i need most is the QTDTOTBEN number of record lines and total value of all records VALTOTAL_EUROS, this i made using a subform to calculate the values then pass them to the main form.
The purpose of it all is then to create that txt with al this data.
I can elaborate more on what i did, but i reaaly need some advice.
Thank you,
Luis
I've been putting some questions, and developing as i get some answers and find solutions, although i dont know if im making a big turn around to get where i want when someone with expert knowledge would get there in no time, so im asking for sugestions.
I have an old database (access2), that has now to comply with certain entities that require that i send data electronicaly.
The format they want is txt, all lines must have 125 chars.
Every month i need to filter the data from the previous month and create a new invoice with all records from my invoices.
I must then have a header like:
TIPOLINHANUMBER2FILERNUMBER1CODENTIDANUMBER9CODTIPENTNUMBER8NUMFACTNUMBER8ANOMESFACTNUMBER6DATAENVIODATE8CODREJEICAONUMBER2FILERNUMBER81
All of this has default values except for NUMFAC (number of the main invoice that can start at 1) ANOMESFACT (year and month of all my invoices), and DATAENVIO (the date ill send the txt).
So I created a new table with all these fields.
Then the details:
TIPOLINHANUMBER2NUMUNIBENNUMBER9SIGLAVARCHAR2CODCSAUDENUMBER12DTACSAUDEDATE8QTDNUMBER4FILERNUMBER16VALPAGAR_EUROSNUMBER16NUMDOCNUMBER4CODREJEICAONUMBER2AREALIVREVARCHAR50
On this part it comes the data i linked from access 2.0, i created a quary that makes a new table with the data i want (filtered by date).
Then i made an update query with the values i want to update the details table.
Then the footer
TIPOLINHANUMBER2QTDTOTBENNUMBER7FILERNUMBER16VALTOTAL_EUROSNUMBER16CODREJEICAONUMBER2FILERNUMBER82
The footer line also has a lot of default values, the 2 i need most is the QTDTOTBEN number of record lines and total value of all records VALTOTAL_EUROS, this i made using a subform to calculate the values then pass them to the main form.
The purpose of it all is then to create that txt with al this data.
I can elaborate more on what i did, but i reaaly need some advice.
Thank you,
Luis