473,385 Members | 1,356 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Logging in and problem......

As opposed to my previous post, I have alredy planned what to do but
stuck with a dillema.

Basically, I need to store a boolean value in the db after a user has
logged in. I tried to use an existing recordset and insert the code
there, but when I log in, I receive an error message saying "Incorrect
Password". I didn't show all the code to make the message short and I
am sure of the nature of error, but I need someone to suggest me how I
should update the boolean value. The db has a data type of 'Yes/No',
which is a check box, so a true equals to check and unchecked equals
false. Please help me here, I'll be appreciated.

UserName = txtUsername.Text 'May need in the future project
bStatus = True
If rs!Status <> bStatus Then 'If the status is not true, then make it
'true
rs.AddNew
rs!Status = bStatus
rs.Update
End If
frmInstruction.Show
Unload Me
Jul 17 '05 #1
1 1105
The field you will store the value in must be "Boolean" ........in my
database manager I have the option "Boolean" when I create a field.
If it's to any help for you it's a "Type 1" field !!

"Mohammed Mazid" <ka******@hotmail.com> skrev i en meddelelse
news:7c**************************@posting.google.c om...
As opposed to my previous post, I have alredy planned what to do but
stuck with a dillema.

Basically, I need to store a boolean value in the db after a user has
logged in. I tried to use an existing recordset and insert the code
there, but when I log in, I receive an error message saying "Incorrect
Password". I didn't show all the code to make the message short and I
am sure of the nature of error, but I need someone to suggest me how I
should update the boolean value. The db has a data type of 'Yes/No',
which is a check box, so a true equals to check and unchecked equals
false. Please help me here, I'll be appreciated.

UserName = txtUsername.Text 'May need in the future project
bStatus = True
If rs!Status <> bStatus Then 'If the status is not true, then make it
'true
rs.AddNew
rs!Status = bStatus
rs.Update
End If
frmInstruction.Show
Unload Me

Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Thomas Schulz | last post by:
Hello, I'm using the logging package from python 2.3 on RH linux. Everything in the test program below works fine if we just use the log configuration with 'logging.basicConfig'. For the...
1
by: j vickroy | last post by:
My system: MSW XP professional Python 2.3.3 logging package: 0.4.9.2 My problem: The log_test3.py script, provided with the logging package distribution, generates an unexpected message: No...
0
by: Neil Benn | last post by:
Hello, I'm running a test and having issues with logging, if I call logging.shutdown() and then want to start the logging going again then I get a problem as if I call shutdown, I can't get the...
10
by: Thomas Heller | last post by:
I'm about to add some logging calls to a library I have. How can I prevent that the script that uses the library prints 'No handlers could be found for logger "comtypes.client"' when the script...
6
by: Burkhard Schultheis | last post by:
As I wrote last week, we have a problem with a DB2 V8 on Linux. Here is what is in db2diag.log during online backup: Starting a full database backup. 2004-04-01-02.33.54.760164 ...
6
by: Kevin Jackson | last post by:
Let's say we log exceptions to the windows application event log using the Exception Management Application Block. Is there a pattern that can be used so the exception is logged only once and not...
7
by: Jed Parsons | last post by:
Hi, I'm using the logging module for the first time. I'm using it from within Zope Extensions. My problem is that, for every event logged, the logger is producing multiple identical entries...
5
by: Ritesh Raj Sarraf | last post by:
import os, sys, logging logger = logging.getLogger("my_app") conerr = logging.StreamHandler(sys.stderr) conerr.setLevel(logging.DEBUG) conerr_formatter = logging.Formatter('%(levelname)s...
0
by: RobinS | last post by:
I have sent a message to the apache listserver, but thought I would ask here, too, just in case anyone has seen this problem. I am using log4net to do logging in my .Net 2.0 application. I am...
1
by: ludvig.ericson | last post by:
Quote from the docs: FORMAT = "%(asctime)-15s %(clientip)s %(user)-8s %(message)s" logging.basicConfig(format=FORMAT) d = {'clientip': '192.168.0.1', 'user': 'fbloggs'}...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.