8
8l2255
Hi Everyone,
I have form 'AddMultipleItems' with fields as follows
CategoryID Number
ProductID Number
Date_Acquired Date/Time
StatusID Number
txtN unbound number
When you click the Create button it adds txtN amount of records to 'Itemtbl'
with (~)fields filled in
Itemtbl has information
~ItemID Autonumber
~CategoryID Number
~ProductID Number
~Date_Acquired Date/Time
~StatusID Number
Serial_Number Text
AssetNo Text
Comments Text
The purpose of this is to allow a person to create multiple items with the
same product details in one hit and then open a form which lists the items
just created with only the Serial Number and Asset No fields to update so a
barcode scanner can be employed.
I was looking at something like the below but am fairly certain i am offroad
with this one.
Dim stDocName As String
Dim stLinkCriteria As String
Dim txtnn As Integer
txtnn = Me!TxtN
stDocName = "multipleitemadddetails"
stoops = "SELECT TOP txtnn ItemID FROM [itemtbl] ORDER BY ItemID DESC;"
DoCmd.openform stDocName, , , , , , stoops
Any help appreciated! Let me know if you need more info -
Lou
I have form 'AddMultipleItems' with fields as follows
CategoryID Number
ProductID Number
Date_Acquired Date/Time
StatusID Number
txtN unbound number
When you click the Create button it adds txtN amount of records to 'Itemtbl'
with (~)fields filled in
Itemtbl has information
~ItemID Autonumber
~CategoryID Number
~ProductID Number
~Date_Acquired Date/Time
~StatusID Number
Serial_Number Text
AssetNo Text
Comments Text
The purpose of this is to allow a person to create multiple items with the
same product details in one hit and then open a form which lists the items
just created with only the Serial Number and Asset No fields to update so a
barcode scanner can be employed.
I was looking at something like the below but am fairly certain i am offroad
with this one.
Dim stDocName As String
Dim stLinkCriteria As String
Dim txtnn As Integer
txtnn = Me!TxtN
stDocName = "multipleitemadddetails"
stoops = "SELECT TOP txtnn ItemID FROM [itemtbl] ORDER BY ItemID DESC;"
DoCmd.openform stDocName, , , , , , stoops
Any help appreciated! Let me know if you need more info -
Lou