Group:  Microsoft Access ยป microsoft.public.access.setupconfig
Thread: Barcode Problem

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

Barcode Problem
Jack 31.07.2006 04:39:01
Hi Everyone,

I am in the process of developing a stocktake program. I can get the barcode
scanner to work well with Access, but what I need to do is have the program
communicate with the scanner so that when a invalid barcode no is scanned, a
sound is emitted. A different sound will also need to be emitted for a valid
barcode no. Is there some way of configuring the barcode scanner to make two
different sounds? I have an item master table in access which records all
valid and invalid barcode numbers.

Cheers
Re: Barcode Problem
Tony Toews <ttoews[ at ]telusplanet.net> 31.07.2006 20:52:45
Jack <Jack[ at ]discussions.microsoft.com> wrote:

[Quoted Text]
>I am in the process of developing a stocktake program. I can get the barcode
>scanner to work well with Access, but what I need to do is have the program
>communicate with the scanner so that when a invalid barcode no is scanned, a
>sound is emitted. A different sound will also need to be emitted for a valid
>barcode no. Is there some way of configuring the barcode scanner to make two
>different sounds? I have an item master table in access which records all
>valid and invalid barcode numbers.

That depends on the bar code scanner. You will need to ask the bar
code vendor how you can do this. They may not know how to do this in
Access so if nothing else ask for the Visual Basic solution which
should work.

Also you might want to have different noises on the PC.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Re: Barcode Problem
Jack 31.07.2006 21:30:02
Cheers Tony,

Do you know how I could implement a sound file which would play upon the
scanning of an invalid part?

The vb code which produces a warning (pop-up) in my application is:

If StrValid = 0 Then
MsgBox "This part does not exist in Item Master: " & _
[Forms] ! [Actual Stocktake]![TxtProd] & Chr (13) & _
"Enter a valid part number", vbInformation,"Invalid Part"
[Forms]![Actual Stocktake].undo
[Forms]![Actual Stocktake]![TxtCarStatus] = " "
[Forms]![Actual Stocktake]![TxtMasterstatus] = " "

What I need is a bit of code which would also produce a warning sound. If
you can help, I would really appreciate it.

Thanks

"Tony Toews" wrote:

[Quoted Text]
> Jack <Jack[ at ]discussions.microsoft.com> wrote:
>
> >I am in the process of developing a stocktake program. I can get the barcode
> >scanner to work well with Access, but what I need to do is have the program
> >communicate with the scanner so that when a invalid barcode no is scanned, a
> >sound is emitted. A different sound will also need to be emitted for a valid
> >barcode no. Is there some way of configuring the barcode scanner to make two
> >different sounds? I have an item master table in access which records all
> >valid and invalid barcode numbers.
>
> That depends on the bar code scanner. You will need to ask the bar
> code vendor how you can do this. They may not know how to do this in
> Access so if nothing else ask for the Visual Basic solution which
> should work.
>
> Also you might want to have different noises on the PC.
>
> Tony
> --
> Tony Toews, Microsoft Access MVP
> Please respond only in the newsgroups so that others can
> read the entire thread of messages.
> Microsoft Access Links, Hints, Tips & Accounting Systems at
> http://www.granite.ab.ca/accsmstr.htm
>
Re: Barcode Problem
"Douglas J. Steele" <NOSPAM_djsteele[ at ]NOSPAM_canada.com> 01.08.2006 00:20:20
http://www.mvps.org/access/api/api0011.htm at "The Access Web" shows how to
play a WAV or MIDI file.

I show how to play an MP3 file in my November, 2004 "Access Answers" column
in Pinnacle Publication's "Smart Access". You can download the column (and
sample database) for free from
http://www.accessmvp.com/djsteele/SmartAccess.html

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)


"Jack" <Jack[ at ]discussions.microsoft.com> wrote in message
news:5E815C99-9712-43C4-8819-246B585E2F89[ at ]microsoft.com...
[Quoted Text]
> Cheers Tony,
>
> Do you know how I could implement a sound file which would play upon the
> scanning of an invalid part?
>
> The vb code which produces a warning (pop-up) in my application is:
>
> If StrValid = 0 Then
> MsgBox "This part does not exist in Item Master: " & _
> [Forms] ! [Actual Stocktake]![TxtProd] & Chr (13) & _
> "Enter a valid part number", vbInformation,"Invalid
> Part"
> [Forms]![Actual Stocktake].undo
> [Forms]![Actual Stocktake]![TxtCarStatus] = " "
> [Forms]![Actual Stocktake]![TxtMasterstatus] = " "
>
> What I need is a bit of code which would also produce a warning sound. If
> you can help, I would really appreciate it.
>
> Thanks
>
> "Tony Toews" wrote:
>
>> Jack <Jack[ at ]discussions.microsoft.com> wrote:
>>
>> >I am in the process of developing a stocktake program. I can get the
>> >barcode
>> >scanner to work well with Access, but what I need to do is have the
>> >program
>> >communicate with the scanner so that when a invalid barcode no is
>> >scanned, a
>> >sound is emitted. A different sound will also need to be emitted for a
>> >valid
>> >barcode no. Is there some way of configuring the barcode scanner to make
>> >two
>> >different sounds? I have an item master table in access which records
>> >all
>> >valid and invalid barcode numbers.
>>
>> That depends on the bar code scanner. You will need to ask the bar
>> code vendor how you can do this. They may not know how to do this in
>> Access so if nothing else ask for the Visual Basic solution which
>> should work.
>>
>> Also you might want to have different noises on the PC.
>>
>> Tony
>> --
>> Tony Toews, Microsoft Access MVP
>> Please respond only in the newsgroups so that others can
>> read the entire thread of messages.
>> Microsoft Access Links, Hints, Tips & Accounting Systems at
>> http://www.granite.ab.ca/accsmstr.htm
>>


Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net