Sorry, I thought you were using an "integer" data type. I misread that you had changed it FROM integer.
I expect there must be somewhere you still have integer, rather than long. Can you identify the precise point that causes the crash?
I just tried to put some code in code tags, but it just encoded the first line, and appeared to discard the rest.
I used inline code, and that worked.
Has something changed?
I'm back home now - I was away last week.
I got this code to work. I kept getting errors trying to use me.openargs as an argument for docmd.openform so I used the fname variable.
note that I couldn't get code tags to work, so I posted as inline code.
Private Sub Form_Unload(Cancel As...
Integer will crash it. That only goes up to 32k (2^15, maybe 2^15 - 1 to be precise), so 40k is too big. I rarely define any whole number as anything other than a LONG.
@theDBguy
I'm sure I used code very like you showed but I couldn't get it to work. I might not be able to access the Rest API I was using previously, but I might try again and see if it does work.
Perhaps the line of code starting with Put avoids the array of bytes being turned into a unicode...
Is there a rest API available? That might be a possible way.
I checked your link, and that's what it is, but it's hard to find VBA code to do it. I'm sure I have posted some previously though.
One issue is that to download a PDF, you collect a string of bytes. But the trouble I found and I...
Bear in mind that its most likely common for users to be placed in groups, and rights and privileges are often based on the group membership rather than the user. I'm not sure whether that applies to what you are trying to do, but it does simplify things if it can be done that way.
I don't understand this. A sales processing control system ought to start with an order, and end with an invoice. Preparing a despatch note is part of this process, surely.
The best starting book I found was by Alison Balter. Covered everything you might need, although at the time it was for A97/A2003. Those versions are perfectly adequate to develop great databases, although later versions included some new bells and whistles.
It's really helpful to start with a...
If you aren't careful someone will draw the short straw and get more than his fair share of work, using an alphabetical formula like that. I expect there are a lot of names starting with B for instance.
I've done this sort of stuff before by letting users enter a string and splitting it into its substrings, then searching for matches in the product descriptions on the substrings.
This was an effective alternative to multiple combo boxes.
So you enter something like "8 black widget" to reduce...
Is there a report on print event that you can use to reset your internal counters.
I understand the issue, but I can't recall how I fixed the same problem.
I keep seeing "ignored thread" for modules, on the home page.
I imagine I must have accidentally set a thread as "ignore". How can I find the thread please and fix it?
In your city table, I would not store strings for the country. I would store a lookup ID to a country table.
Ah. I can see it's a query on top, and you have that structure. I'm not used to tabbed displays.