|
-
Sep 10th, 2005, 09:57 PM
#1
Thread Starter
New Member
barcode time in and function
need help! I need to add the function to my database on scanning a barcode to record the time and deduct a value from a client. eg a student purchases a card with 20 lessons each time they enter and scan thier card thier time of entry is recorded and 1 lesson is deducted from thier total, when there is one lesson left a warning is displayed, thanks in advance
Richard
-
Sep 10th, 2005, 10:19 PM
#2
Re: barcode time in and function
Do you have your database table(s) created yet? You are using Access VBA (also, what year/version) or automating from VB6, VB.NET, C#, etc. What code so you have already?
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Sep 10th, 2005, 10:44 PM
#3
Thread Starter
New Member
Re: barcode time in and function
have tables created in access for all the basics not sure exactly what I need to record the time and ID and where to put it . Have a field on the main form which I want to accept the barcode scan, tried a table with IDnumber and TimeIn with the default as time() but whenever opening the main form and scanning barcode the last entry was over written.
-
Sep 10th, 2005, 11:32 PM
#4
Re: barcode time in and function
Are you doing this only in Access VBA or are you connecting to the DB using VB6 or ???
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Sep 11th, 2005, 09:46 AM
#5
Thread Starter
New Member
Re: barcode time in and function
-
Sep 11th, 2005, 01:01 PM
#6
Re: barcode time in and function
Ok, I guess you can have a table for holding each student. Then another table for their transactions. Table tblStudents and table tblTransactions. Table tblStudent would contain all the info about the student like - first name, last name, student id, etc. Table tblTransactions would contain info about each purchase - transactionID, student id, date/time, type, etc.
Then the Form would have a recordsource of either a join query between the two tables or just the transactions. When a student makes a purchase of a new 20 lession card the record will be entered in with a type field value of something like "Credit" and amount field of something like "20". Then when they do a transaction (they took a class or ???) the record entry would be type of "Debit" and amount field of "-1". Then you could easily add a SUM for a particular student to show how many they have left.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Sep 11th, 2005, 01:06 PM
#7
Re: barcode time in and function
You will need a way to enter in each student too. So maybe an "Add" button or maybe a separate Form. This form would link directly to the tblStudents table and is easy to setup. Same with delteing a student on that same form.
Also, on your transaction form you would have an option to either designate it as a Credit (purchase) or a Debit.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Sep 13th, 2005, 05:41 AM
#8
Thread Starter
New Member
Re: barcode time in and function
Ok, after some problems and some rebuilding I now have
tblstudents
tbltransactions
tblproducts
tblemployees
I have assigned a credit value to each of the products e.g card-20 lessons, creditvalue 20. I guess when the card holder scans the card this needs to register as a transaction of some kind reducing the available credit amount by one ,how could I do this? and is it possible to record the ID and entry date at the same time? there will also be employees scanning to enter but only a record of date is required
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|