NetStumbler.org Forums

Go Back   NetStumbler.org Forums > NetStumbler Community > Scripts
Register Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old 07-15-2004   #1 (permalink)
Shikha
Registered Member
 
Join Date: Jun 2004
Posts: 2
Urgent! - Script to record SS in Pocket Access

Hi,

I need to develop a script to automatically record signal strength information into a Pocket Access table on my iPaq.

I created a table using the following SQL command :


sqlcmd = "CREATE TABLE siteSurvey (position int, MAC1_signal Integer, MAC1_noise int)"

As you can see, the MAC1_signal column is of type Integer and MAC1_noise is of type int. Now, I'm trying to insert a row into this table through the following script..

Sub OnScanResult(SSID, BSSID, CapFlags, Signal, Noise, LastSeen)

rs.Open "INSERT into siteSurvey (position, MAC1_signal, MAC1_noise) VALUES (1,Signal,Noise)"

End Sub


But for both fields I get the error, "A literal value in the command could not be converted to the correct type due to a reason other than data overflow SCode : 80040E07"

I understand the Signal and Noise fields in the OnScanResult Sub are integer values. What could the reason for the error be?

Is there a better way to populate the table with Signal strength info?

Thanks,
Shikha
Shikha is offline   Reply With Quote
Old 09-02-2004   #2 (permalink)
goldfndr
Knight Tooth Puller
 
goldfndr's Avatar
 
Join Date: Aug 2004
Location: Bellevue, WA, USA
Posts: 182
Quote:
Originally Posted by Shikha
Sub OnScanResult(SSID, BSSID, CapFlags, Signal, Noise, LastSeen)

rs.Open "INSERT into siteSurvey (position, MAC1_signal, MAC1_noise) VALUES (1,Signal,Noise)"

End Sub
Assuming you pasted your code into this message exactly, the problem is that you're passing string literals instead of the passed parameters.

Try this (obviously untested) instead:
rs.Open "INSERT into siteSurvey (position, MAC1_signal, MAC1_noise) VALUES (1," & Signal & "," & Noise & ")"
goldfndr is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Google
 
Web NetStumbler.org

All times are GMT -7. The time now is 09:20 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0 ©2007, Crawlability, Inc.


All messages express the views of the author and are for entertainment purposes only. Netstumbler.org cannot be held responsible for the authenticity of the content or the actions of its members. By using this site and its services, you warrant that you will not post any messages that are discriminating, obscene, hateful, threatening, or otherwise violates any laws and you release Netstumbler.org from any future claims of any kind whatsoever including, but not limited to, addiction and loss of productivity. All forum messages, private messages and any other content are properties of Netstumbler.org. Even if publicly available, personal or copyrighted information are not to be posted without the consent of the owner. Distribution of licensed and copyrighted materials in any way not endorsed by the copyright owner is strictly prohibited. You may not use this site and its resources to spam other sites or individuals or perform any action that violates any law. Items sold or bought in the For Sale forum are sold as is and no warranty or insurance of any kind is provided. Netstumbler.org cannot be held responsible for the outcome of any transactions and no warranty of any kind is provided, either express or implied. Vulgar words are not allowed in the subject lines ; they may be used in the message body in any forum. The Administrator, Super Moderators and Moderators of Netstumbler.org have the right to remove, edit, move or close any thread for any reason and to reveal your identity and other known information in the event of a complaint or legal action arising from any message posted by you.