hi guys -the code (all capital letters) generates daily packing number,
it is in the on click event of a command button that moves to the next
record.
dpkn is unbound control - i use it to display the last daily packing
number genrated, so when the user moves to a new control they will know
what the last daily packing number was.
PdailyPackingNu mber is bound and is 0 until the user clicks the button.
Private Sub CBfrmPackingSub Packed_Click()
On Error GoTo Err_CBfrmPackin gSubPacked_Clic k
Dim x As Byte
X = NZ(DPKN, 0) + 1
If Nz(Plenght, 0) = 0 Or Nz(Pwidth, 0) = 0 Or Nz(Phight, 0) = 0 Or
Nz(Pweight, 0) = 0 Then
MsgBox "You Must Enter All Package Dimensions in Order to Continue",
vbOKOnly
Plenght.SetFocu s
Else
Packed = True
PDAILYPACKINGNU MBER = x
DPKN = PDAILYPACKINGNU MBER
End If
DoCmd.GoToRecor d , , acNext
PdailyPackingNu mber.Requery
Exit_CBfrmPacki ngSubPacked_Cli ck:
Exit Sub
Err_CBfrmPackin gSubPacked_Clic k:
MsgBox Err.Description
Resume Exit_CBfrmPacki ngSubPacked_Cli ck
End Sub
everything works great until i exit the form - when i come back dpkn is
0
i know why this is hapening - what would the best way to fix this?
and is there a better way of doing what i have done so far?
also, is there a way to open a form and automatically go to the record
that was active when i closed the form?
thank you all for all your help 1 1813
> everything works great until i exit the form - when i come back dpkn
is 0 i know why this is hapening - what would the best way to fix this? and is there a better way of doing what i have done so far?
also, is there a way to open a form and automatically go to the
record that was active when i closed the form?
thank you all for all your help
You have to write the last packing number somewhere and retrieve it or
read the last packing number from the current day from a table. Then
you can increment that. Use the old DMAX(Numberfiel d)+1 trick
Hmm... go to the record that was last active... that's harder. Write
it into the form's filter when you exit the form? Or write it to a
hidden table and read it when you reopen the form. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Paddy McCarthy |
last post by:
I sent the following this morning:
-------- Original Message --------
Subject: Threats to the: Daily Python URL!
Date: Mon, 19 Apr 2004 07:50:04 +0100
From: Donald 'Paddy' McCarthy <paddy3118@netscape.net>
To: daily@pythonware.com
|
by: Taylor Howell |
last post by:
Hello all,
I have a delima. I have 8 5bit numbers that I need to pack into one (or
more) variables. They then must be written (exactly 40bits (5Bytes)) to a
file and have the ability to be put back into memory and then get the 5bit
numbers out again. As I am not by any means proficient in C++ (still
learning) I don't know how to go about...
|
by: poohnie08 |
last post by:
i have a excel spreadsheet showing staff name, date,work hour, ot
hour, slot1, slot2, slot3, slot4 and others). The "()" will keep
repeating from day 1 until end of month.
eg in excel spreadsheet,
==============================================================================
A1 |A2 A3 A4 A5 A6 A7 A8 |A9
A10 ...
|
by: gbb0330 |
last post by:
Hi all
I need some advice.
the daily packing number will be used to match a box with its label.
the guys in the warehouse will get a list of items to pack. they will
find the item - put it in a box and click a button at this
point the daily packing packing number will be genrated. the packing
guy will write it on the box.
|
by: gbb0330 |
last post by:
hi guys -the code (all capital letters) generates daily packing number,
it is in the on click event of a command button that moves to the next
record.
dpkn is unbound control - i use it to display the last daily packing
number genrated, so when the user moves to a new control they will know
what the last daily packing number was.
...
| |
by: Edward Diener |
last post by:
Is the packing alignment of __nogc classes stored as part of the assembly ?
I think it must as the compiler, when referencing the assembly, could not
know how the original data is packed otherwise. Yet, in my understanding,
attributes are only __gc and __value class specific and do not apply to
__nogc classes. Is this correct ? If so, how is...
|
by: fraz |
last post by:
Does anyone have code to solve a 3-d bin packing problem in php? I am
trying to solve the issue of packing various sized rectangular shaped
objects into boxes of three different sizes so as to use as few packing
peanuts as possible (to some reasonable approximation) to fill the
gaps.
I have found some c code and plenty of discussions on the...
|
by: QbProg |
last post by:
Hello,
what I'm saying here is about VS 2005 WITHOUT service pack.
I have two DLL projects, with EXACTLY the same project preferences and
settings. Both have alignment set to "default", it should be 8.
Surpise number one:
In project B I include a file of project A in this way
#include <FILE_FROM_A.h>
|
by: James Arnold |
last post by:
I have a number of different files which I would like to combine into
one file, which can later be separated into the individual files
again. In essence, a zip archive, only without the compression. I do
not wish to use any 3rd party components.
Are there any built-in methods for achieving this? (The VB6 property
bag did something...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| |