Avatar billede himal Novice
09. januar 2008 - 08:29 Der er 8 kommentarer og
1 løsning

Oprettelse af formular til fragt

har modtaget dette fra et fragtfirma som skal genere en fil som skal vedhæftes en email samt at der skal laves en label til pakken men har ikke nogen ide om hvordan det skal løses se nedenstående

Bilag 1.

Pr. record skal angives følgende oplysninger:

Type 1 (hovedoplysninger):

Startposition        Længde    Type    Indhold
1        8    N    Leverandørnummer (65000)
9        1    N    Recordidentifikation (ALTID=1 for hovedopl
10        30    A    leveringsnavn – navnet på varemodtager
40        30    A    Leveringsadresse 1
70        30    A    Leveringsadresse 2
100        4    N    Postnummer
104        26    A    Postdistrikt
130        9    N    Kundenummer på varemodtager
139        30    A    Kundenavn (navn på fakt.modtager)
169        30    A    Kundeadresse 1
199        30    A    Kundeadresse 2
229        4    N    Kundens postnummer
233        26    A    Kundens postdistrikt
259        6    N    dato (dag, måned, år) for levering
265        28    A    NB-tekst (div. Kommentarer)
293        9    N    Fakturanummer
302        11    N    Efterkravsbeløb (2 decimaler)
313        9    N    Følgeseddelnummer
322        50    A    Særtekst 1
372        50    A    Særtekst 2
422        50    A    Særtekst 3
472        1    N    0 eller 1
473        20    A    Hvis 0 i 472: blank.
                Hvis 1 i 472: udenlandsk lev.postnummer
493        1    A    Blank
494        20    N    Modtagernummer (Toldnummer) i Norge
514        1    A    Blank
515        1    N    (0 el. 1) butiks- eller privatlevering
516        10    A    Landekode
526        20    A    Jobtype
546        1    N    Teknik (0=nej)  (1=ja)
547        40    N    Mobil Nummer


Bilag 2.

Recordtype 2 (Vareoplysninger)


Startposition        Længde    Type    Indhold

1        8    A    leverandørnummer (65000)
9        1    N    recordidentifikation (ALTID=2 for vareopls.)
10        16    A    Varenummer
26        5    N    Antal enheder der skal udleveres
31        30    A    Varetekst
61        18    A    Alternativ varetekst
79        2    N    Linienummer
81        10    n    Linievolumen
91        10    n    Ladmeter ( angives pr enhed )
101        20    A    Jobtype
121        10    A    Afregnings sats
131        10    A    Tillægsydelser
141        10    A    ID (Bruges til retursvar)
Avatar billede terry Ekspert
09. januar 2008 - 08:57 #1
As far as I can make out this is just a definition of the two files you either receive or send.

Maybe an explanation of what the fiels are for will help.
Avatar billede terry Ekspert
09. januar 2008 - 09:02 #2
Are you expecting to receive files from the "fragtfirma"? If so then when you receive them try importing them using the import wizard. It should be possible to import a fixed-length file where each field has a given length (described in above files).

You should also be able to save an import specification which you will be able to use each time you receive a file. You will need to do this for each file layout.
Avatar billede terry Ekspert
09. januar 2008 - 14:36 #3
do you need help here?
Avatar billede himal Novice
09. januar 2008 - 17:43 #4
formålet er at det skal laves til en formular så man kan taste oplysningerne ind i og så genere en fil der skal sendes til fragtfirmaet
Avatar billede terry Ekspert
09. januar 2008 - 17:53 #5
You should start be making the two tables which can hold the information described in your question. Then once the tables are made you can make th eforms for entering your data. You have to make the tables manually.
Avatar billede himal Novice
10. januar 2008 - 07:47 #6
er det muligt du kunne vise det
Avatar billede himal Novice
10. januar 2008 - 09:08 #7
har lavet tabellerne og formular kan ses her http://www.roslo.dk/Eksperten.htm
men mangler makro der kan sende markeret post som vedhæftet fil
Avatar billede terry Ekspert
10. januar 2008 - 09:51 #8
I cant (wont) help you make a complete solution here himal, I just dont have the time. Neither do I know what exactly you or your customer want without a complete job specification (documentation).

So I can only make suggestion from the information you have given in the quesion which is very limited.

I've looked at the dB but there is an error with the realtionships between the two tables in the query you us in the form. After data is entered in the form it is no longer visible so there is no way the record(s) can be sent in a mail.


Does the "fragtfirma" want a complete solution where they can enter data and then mail it?

Looking at the two file specifications I would suggest that you find out exactly what they want. There are two file specifications one of then being (vareoplysninger) and I would guess that you could maybe need to take into account having more than one "Vare" for a specific "leverandørnummer".
This would require a main form for the leverandørnummer information and a sub form for "leverandørnummer".

So this would also mean sending more than one file.

But as I dont know anything about whjat exactly you want to do then I'm just guessing.

So before I can be of more help I need more information and then its still up to you to make it.
Avatar billede himal Novice
10. januar 2008 - 09:53 #9
ok thanks for now
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Dyk ned i databasernes verden på et af vores praksisnære Access-kurser

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester