some functions not available

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello
I have splitted a DB into two DB's: one having only tables and the second having all other stuff
The first is poste on a server linux and the second (in MDE format) is saved on 5 other desktops on the network
What is going wrong are "print" commands i have builded to print a form. They work fine while testing them on my machine (before splitting), but when i print from user (after splitting and posting front end on server) I receive a message saying "print command not available" and the applicatione freeze (I need a ctrl+alt+canc to stop anything)

Why?
There's any iussue i should take in count having a front end on a server linux?
To help anyone want to help me, I post here the code for the print command

Private Sub printform_Click(
On Error GoTo Err_Command35_Clic

Application.Echo Fals

Dim stDocName As Strin
Dim MyForm As For

stDocName = "archivio ore cantiere
Set MyForm = Screen.ActiveFor
DoCmd.SelectObject acForm, stDocName, Tru
DoCmd.PrintOu
DoCmd.SelectObject acForm, MyForm.Name, Fals

Application.Echo Tru

Exit_Command35_Click
Exit Su

Thanks!
 
DoCmd.SelectObject acForm, stDocName, True
DoCmd.PrintOut
DoCmd.SelectObject acForm, MyForm.Name, False

I would replace these calls with a Report and print that...

I have to say that I have never tried to print out a form (even from the
GUI) is it would surely look dreadful; and certainly never using the DoCmd
object. Surely the thing to do would be to use an event on the form itself
and call the form's own method[1]..?

[1] (except I now see that the Form object doesn't have a Print or PrintOut
or PrintForm method...)

B Wishes



Tim F
 
Back
Top