<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://htyp.org/mw/index.php?action=history&amp;feed=atom&amp;title=VbzCart%2Farchive%2Fcode%2FVBA%2FForm_sfrmPackageItems</id>
	<title>VbzCart/archive/code/VBA/Form sfrmPackageItems - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://htyp.org/mw/index.php?action=history&amp;feed=atom&amp;title=VbzCart%2Farchive%2Fcode%2FVBA%2FForm_sfrmPackageItems"/>
	<link rel="alternate" type="text/html" href="https://htyp.org/mw/index.php?title=VbzCart/archive/code/VBA/Form_sfrmPackageItems&amp;action=history"/>
	<updated>2026-08-23T12:35:35Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://htyp.org/mw/index.php?title=VbzCart/archive/code/VBA/Form_sfrmPackageItems&amp;diff=28627&amp;oldid=prev</id>
		<title>Woozle at 12:55, 14 October 2022</title>
		<link rel="alternate" type="text/html" href="https://htyp.org/mw/index.php?title=VbzCart/archive/code/VBA/Form_sfrmPackageItems&amp;diff=28627&amp;oldid=prev"/>
		<updated>2022-10-14T12:55:21Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 12:55, 14 October 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[File:vbzcart-MSAccess-sfrmPackages.png]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[File:vbzcart-MSAccess-sfrmPackages.png]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;VB&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;syntaxhighlight lang=&lt;/ins&gt;VB&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Option Explicit&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Option Explicit&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Public Property Get PkgItem() As clsPackageItem&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Public Property Get PkgItem() As clsPackageItem&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l102&quot;&gt;Line 102:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 102:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     End With&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;     End With&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;End Sub&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;End Sub&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;VB&lt;/del&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;syntaxhighlight&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Woozle</name></author>
	</entry>
	<entry>
		<id>https://htyp.org/mw/index.php?title=VbzCart/archive/code/VBA/Form_sfrmPackageItems&amp;diff=20362&amp;oldid=prev</id>
		<title>Woozle: Woozle moved page VbzCart/code/VBA/Form sfrmPackageItems to VbzCart/archive/code/VBA/Form sfrmPackageItems</title>
		<link rel="alternate" type="text/html" href="https://htyp.org/mw/index.php?title=VbzCart/archive/code/VBA/Form_sfrmPackageItems&amp;diff=20362&amp;oldid=prev"/>
		<updated>2014-12-19T02:08:56Z</updated>

		<summary type="html">&lt;p&gt;Woozle moved page &lt;a href=&quot;/mw/index.php?title=VbzCart/code/VBA/Form_sfrmPackageItems&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;VbzCart/code/VBA/Form sfrmPackageItems (page does not exist)&quot;&gt;VbzCart/code/VBA/Form sfrmPackageItems&lt;/a&gt; to &lt;a href=&quot;/VbzCart/archive/code/VBA/Form_sfrmPackageItems&quot; title=&quot;VbzCart/archive/code/VBA/Form sfrmPackageItems&quot;&gt;VbzCart/archive/code/VBA/Form sfrmPackageItems&lt;/a&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 02:08, 19 December 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Woozle</name></author>
	</entry>
	<entry>
		<id>https://htyp.org/mw/index.php?title=VbzCart/archive/code/VBA/Form_sfrmPackageItems&amp;diff=20011&amp;oldid=prev</id>
		<title>Woozle: form image</title>
		<link rel="alternate" type="text/html" href="https://htyp.org/mw/index.php?title=VbzCart/archive/code/VBA/Form_sfrmPackageItems&amp;diff=20011&amp;oldid=prev"/>
		<updated>2014-05-08T12:11:21Z</updated>

		<summary type="html">&lt;p&gt;form image&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 12:11, 8 May 2014&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[File:vbzcart-MSAccess-sfrmPackages.png]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;VB&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;VB&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Option Explicit&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;Option Explicit&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Woozle</name></author>
	</entry>
	<entry>
		<id>https://htyp.org/mw/index.php?title=VbzCart/archive/code/VBA/Form_sfrmPackageItems&amp;diff=20004&amp;oldid=prev</id>
		<title>Woozle: Created page with &quot;&lt;VB&gt; Option Explicit Public Property Get PkgItem() As clsPackageItem     If IsNull(Me.ID) Then         Set PkgItem = Nothing     Else         Set PkgItem = clsPackageItems.Ite...&quot;</title>
		<link rel="alternate" type="text/html" href="https://htyp.org/mw/index.php?title=VbzCart/archive/code/VBA/Form_sfrmPackageItems&amp;diff=20004&amp;oldid=prev"/>
		<updated>2014-05-08T11:52:07Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;VB&amp;gt; Option Explicit Public Property Get PkgItem() As clsPackageItem     If IsNull(Me.ID) Then         Set PkgItem = Nothing     Else         Set PkgItem = clsPackageItems.Ite...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;VB&amp;gt;&lt;br /&gt;
Option Explicit&lt;br /&gt;
Public Property Get PkgItem() As clsPackageItem&lt;br /&gt;
    If IsNull(Me.ID) Then&lt;br /&gt;
        Set PkgItem = Nothing&lt;br /&gt;
    Else&lt;br /&gt;
        Set PkgItem = clsPackageItems.Item(Me.ID)&lt;br /&gt;
    End If&lt;br /&gt;
End Property&lt;br /&gt;
Public Function QtyNotPackedEver() As Variant&lt;br /&gt;
&amp;#039; ACTION:  returns the quantity of the current item which hasn&amp;#039;t yet been packed at all (before or after this package)&lt;br /&gt;
    Dim objPkgItm As clsPackageItem&lt;br /&gt;
    Dim objOrdItm As clsOrderItem&lt;br /&gt;
    &lt;br /&gt;
    If ItemExists Then&lt;br /&gt;
        Set objPkgItm = Me.PkgItem&lt;br /&gt;
        If objPkgItm Is Nothing Then&lt;br /&gt;
            QtyNotPackedEver = &amp;quot;new&amp;quot;&lt;br /&gt;
        Else&lt;br /&gt;
            If objPkgItm.WasOrdered Then&lt;br /&gt;
                Set objOrdItm = objPkgItm.OrderItem&lt;br /&gt;
                If objOrdItm Is Nothing Then&lt;br /&gt;
                    QtyNotPackedEver = &amp;quot;n/a&amp;quot;&lt;br /&gt;
                Else&lt;br /&gt;
                    With objOrdItm&lt;br /&gt;
                        QtyNotPackedEver = .QtyOrd - .QtyDone&lt;br /&gt;
                    End With&lt;br /&gt;
                End If&lt;br /&gt;
            Else&lt;br /&gt;
                QtyNotPackedEver = &amp;quot;n/a&amp;quot;&lt;br /&gt;
            End If&lt;br /&gt;
        End If&lt;br /&gt;
    Else&lt;br /&gt;
        QtyNotPackedEver = Null&lt;br /&gt;
    End If&lt;br /&gt;
End Function&lt;br /&gt;
Public Function QtyNotYetPacked() As Variant&lt;br /&gt;
&amp;#039; ACTION: returns the quantity of the current item which had not been packed as of this package&amp;#039;s timestamp&lt;br /&gt;
    Dim objItem As clsPackageItem  &amp;#039; package item&lt;br /&gt;
    &lt;br /&gt;
    If IsNull(Me.ID) Then&lt;br /&gt;
        QtyNotYetPacked = Null&lt;br /&gt;
    Else&lt;br /&gt;
        Set objItem = Me.PkgItem&lt;br /&gt;
        If objItem Is Nothing Then&lt;br /&gt;
            QtyNotYetPacked = &amp;quot;n/a&amp;quot;&lt;br /&gt;
        Else&lt;br /&gt;
            With objItem&lt;br /&gt;
                If .WasOrdered Then&lt;br /&gt;
                    QtyNotYetPacked = .QtyYetToPack&lt;br /&gt;
                Else&lt;br /&gt;
                    QtyNotYetPacked = &amp;quot;sub&amp;quot;&lt;br /&gt;
                End If&lt;br /&gt;
            End With&lt;br /&gt;
        End If&lt;br /&gt;
    End If&lt;br /&gt;
End Function&lt;br /&gt;
Private Property Get ItemExists() As Boolean&lt;br /&gt;
    ItemExists = Not IsNull(Me.ID)&lt;br /&gt;
End Property&lt;br /&gt;
Private Property Let Status(iText As String)&lt;br /&gt;
    With Me.lblStatus&lt;br /&gt;
        If iText = &amp;quot;&amp;quot; Then&lt;br /&gt;
            .Visible = False&lt;br /&gt;
        Else&lt;br /&gt;
            .Caption = iText&lt;br /&gt;
            .Visible = True&lt;br /&gt;
        End If&lt;br /&gt;
    End With&lt;br /&gt;
    DoEvents&lt;br /&gt;
End Property&lt;br /&gt;
Private Sub btnPullItem_Click()&lt;br /&gt;
&amp;#039; ACTION: Allow user to select quantity to pull and location to pull from.&lt;br /&gt;
    Dim objPLine As clsPackageItem&lt;br /&gt;
&lt;br /&gt;
    Set objPLine = clsPackageItems.Item(Me.ID)&lt;br /&gt;
    With clsForms.Dlg_SelectLocation_andQty&lt;br /&gt;
        .Item_ID = Me.ID_Item&lt;br /&gt;
        Do&lt;br /&gt;
            If .doFetch(&amp;quot;select location and quantity&amp;quot;) Then&lt;br /&gt;
                objPLine.FetchFromLocation .Location, .Qty&lt;br /&gt;
                Status = .Qty &amp;amp; &amp;quot; items fetched; &amp;quot; &amp;amp; objPLine.QtyShipped &amp;amp; &amp;quot; items in pkg to ship&amp;quot;&lt;br /&gt;
                Me.Requery&lt;br /&gt;
            End If&lt;br /&gt;
        Loop Until .isDone&lt;br /&gt;
    End With&lt;br /&gt;
    Status = &amp;quot;&amp;quot;&lt;br /&gt;
End Sub&lt;br /&gt;
Private Sub cbxItem_DblClick(Cancel As Integer)&lt;br /&gt;
    clsForms.ItemView.Locate Me.cbxItem&lt;br /&gt;
End Sub&lt;br /&gt;
Private Sub Form_Resize()&lt;br /&gt;
    Dim glWd As Single&lt;br /&gt;
&lt;br /&gt;
    With Me.editNotes&lt;br /&gt;
        glWd = Me.InsideWidth - .Left - 300&lt;br /&gt;
        If glWd &amp;gt; 0 Then&lt;br /&gt;
            .Width = glWd&lt;br /&gt;
            Me.Width = .Width&lt;br /&gt;
        End If&lt;br /&gt;
    End With&lt;br /&gt;
End Sub&lt;br /&gt;
&amp;lt;/VB&amp;gt;&lt;/div&gt;</summary>
		<author><name>Woozle</name></author>
	</entry>
</feed>