Er det udprintning af posten, ser det sådan ud: Ved et numerisk felt kan du bruge flg: DoCmd.OpenReport "Din rapport", acViewPreview, , "tal = " & Me.tal
Eller ved et alfanumerisk felt: DoCmd.OpenReport "Din rapport", acViewPreview, , "tekst = '" & Me.tekst & "'"
Hvor tekst og tal er feltnavnene i formularen. Rapporten skal åbnes fra formularen via en knap. Eller hændelse. Mvh Henrik13
add a button to the form using the wizard. Doing this will let you choose the current form.
There is also a property on each object on the form which allows you to hide th eobject when you print. For example the button for print may not be required.
well that is VERY likely because you have a continuous form with LOTS of records. This is the whole point in printing the form.
If you only want to print one of the records on the form then you wil l have to implement a report where you use the current records ID or something to filter the report. But that isnt what the original question indicated!
I have NO idea what the properties are in Danish but try looking for a property which allows you to alter WHEN the object (text box, button ....) is printed.
Points arent given for an offer to make a solution they are given for a solution! What IF the solution is the same as my anwer? what if the solution isnt acceptable? Dont get me wrong, but you cant expect people to use time giving valid solutions and others can come along and give an "offer" of making a solution!
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.