Printer and performance.

I remember my first job in Tech, was something called Operations Analyst at Wells Fargo. When I started that job, I had barely ever even opened an Excel workbook - that's how tech ignorant I was. I remember King Martin from UA patiently explaining to me how to mask the password input on an Excel textbox. I'd gone to school to be a lawyer, not technology. The person hiring me took a huge chance on me, apparently liked my persona and communication and figured I could learn the rest.

By the time I left that Operations Analyst position 5 years later, I had introduced at least some level of automation into just about everything his 50-person department touched! While the other Ops Analysts were still asking me how to separate LASTNAME, FIRSTNAME in Excel. I loved programming since the first rudimentary touch.

Sometimes we just need people to trust us and take a chance - I'll always be grateful to the gentleman who took a chance on me.
 
Is the database split ?
Yes. Back end and Front end. BE on main workstation running Windows 11. It's also providing file sharing for another folder as well.

One thing that does confuse me though. A previous database person made different back end versions. 3.4, 3.4 and 3.8. I'm not sure why everyone is not opening up 3.8. I'm not sure if running different front end "editions" will cause issues or not.
 
That does seem weird. Everyone should have the same FE version and be, of course, connecting to the same BE or else the whole purpose is negated.
 
Yes. Back end and Front end. BE on main workstation running Windows 11. It's also providing file sharing for another folder as well.

One thing that does confuse me though. A previous database person made different back end versions. 3.4, 3.4 and 3.8. I'm not sure why everyone is not opening up 3.8. I'm not sure if running different front end "editions" will cause issues or not.
Well that sounds like a good way to.make everything go awry? :-(
 
If someone is on 3.4 (either one) and someone else is on 3.8, they are not sharing data.
 
In the screenshot, it appears that the printer is being set by the line

Code:
Set Application.Printer = Application.Printers(Globals.P_R_Big)

This means that someone has created an object called "Globals" and it has a member or property called P_R_Big, which I would assume means "it's a big printer" OR that it prints on big labels or on big paper. I'm betting that Globals.P_R_Big will resolve to a name.

You can open the VB window (actually you already HAVE it open in the xRDTeAs0Ca.png image). You can do a search for "Globals" - click the "Binoculars" icon - and check the "entire project" option to find all the places where "Globals" is referenced. One or more of those places will show you something about Globals.P_R_Big, and that is where you will find the printer names. I also saw a reference to Globals.P_R_Small, which I'm betting is another printer. This kind of searching is tedious but it is how you find out what somebody else did.

Or you can simply open the Immediate Window by clicking "View" from the VBA menu bar and then selecting "Immediate Window" and type
Code:
Debug.Print Globals.P_R_Big
to see what it represents.
So I typed Debug.Print Globals.P_R_Big into the immediate window box. I went to the top left and hit the run macro button. It brought the second Init_Printers Macro Name. I click Step Into and it brought me to the Yellow colored portion.

There appears to be an old share that hasn't existed for a long time. What I don't understand is why the small label prints. The receipt and large label bring the 3rd picture up. I can choose specific printer but it's not formatted correctly.
 

Attachments

  • aYsBDw1KXE.png
    aYsBDw1KXE.png
    12.4 KB · Views: 10
  • d8O0pYhpza.png
    d8O0pYhpza.png
    70.5 KB · Views: 10
  • JtxCPhDTYo.png
    JtxCPhDTYo.png
    44.3 KB · Views: 9
Well, at least you now know where the printer names are stored. So if you can connect manually using the new machines, you would be able to find new printer paths and edit your Init_Printers subroutine with the new names. The formatting issue is going to be a bit trickier. That could lead anywhere, but if specific reports are involved, you might be able to see something in the report's event code. Here, you face a bit of searching. To the good, reports USUALLY have less code than forms. You might also want to look at the various properties of each report section. You can select the properties of the whole report if you click in the little area at the upper left of the report's design window. Then any properties are for the report as a whole. That is where to look, but I can't tell you what to look for, because basically your imagination is the limit in that case.
 
If someone is on 3.4 (either one) and someone else is on 3.8, they are not sharing data.

maybe one version was for in case the feds bust down the door and the digital shredder needs to get busy o_O
 
Well, at least you now know where the printer names are stored. So if you can connect manually using the new machines, you would be able to find new printer paths and edit your Init_Printers subroutine with the new names. The formatting issue is going to be a bit trickier. That could lead anywhere, but if specific reports are involved, you might be able to see something in the report's event code. Here, you face a bit of searching. To the good, reports USUALLY have less code than forms. You might also want to look at the various properties of each report section. You can select the properties of the whole report if you click in the little area at the upper left of the report's design window. Then any properties are for the report as a whole. That is where to look, but I can't tell you what to look for, because basically your imagination is the limit in that case.
I appreciate all your help but I may have to throw in the towel on this one and get a consultant. I just don't have another 20-30 hours to learn Access to change a printer.
 
That is not an unreasonable course of action. Sometimes the "do it yourself" attitude gets you in a bit deeper than you might like.
 
Do you have any recommendations for somebody that can help? I've reached out to a couple places and waiting for a response.
 
@Minty, don't forget to fix the install procedure and add version tables to the FE and BE to avoid this type of disconnect in the future.
@packerman You're in good hands.
 
Thank you Pat, the OP is actually based in the US, so I'm not a very local solution, but I'll have a quick go.
 
I have another question. The FE files are all on the desktop. I read somewhere that they should be on the root of C:. Is that correct? Right now the FE files are on the desktop.
 
The FE files should be in a Trusted Location on each client's/user's PC. That trusted location can vary from one system to the next. I sincerely doubt that your management or IT security staff would want any app files in the root directory of ANY drive. Third-party apps will often make their own folders on installation. Generally in a Windows system, the most likely path would start with C:\Users\username\x\ where x = My Documents or some designated folder set aside for the purpose AND declared to be a trusted location.
 
Anywhere in a local drive is Ok, just be consistent. One of my clients uses a folder on the C drive called databases, I tend to use a folder in the users appdata folder which is typically hidden
 
I have another question. The FE files are all on the desktop. I read somewhere that they should be on the root of C:. Is that correct? Right now the FE files are on the desktop.
There used to be a limit of the number of entries in C:\
I used to put mine in C:\DB\

So no, they do not have to be in the root of C:, but do need a Trusted Location as Doc stated.
 
I have a habit of putting mine in the user's %appdata% folder, then programmatically creating (if not already exist) a desktop shortcut with a custom icon. This overall scheme gives a professional feel to the situation.

Or the desktop shortcut/icon may point to a VBScript file on the network that does the above.

Either way it's a lot better than putting the file directly where the user is looking at it - and they can do bad things (for unknown but real reasons) like making copies, changing the name, putting somewhere else, etc. etc.

No matter whose method/technique you follow, IMHO the whole "installation/opening/copying/versioning" scheme is a BIG DEAL.

It gives professionalism to the user's viewpoint, it generates respect for your app by the users, it controls FE bloat, it synchronizes versions seamlessly, it makes your life easy.
 

Users who are viewing this thread

Back
Top Bottom