home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

InputBox ---Run time error

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 2640
Discussions: 200,999, Posts: 2,380,009, Members: 246,368
Old December 29th, 2005, 05:27 PM   Digg it!   #1 (permalink)
Member
 
Join Date: Sep 2002
Location: Shirley, New York
Posts: 257
Send a message via AIM to Paluccie
InputBox ---Run time error

I am receiving a run time error on the line specified below when clicking cancel. Everything else works fine but that.

Dim num As Integer, used As String,
Dim access As Single, prompt As String, title As String, password As Single
prompt = "Enter password for override"
title = "Password Override"
Open "c:\counts\password.txt" For Input As #1
Do While Not EOF(1)
Input #1, password
Loop
access = InputBox(prompt, title) --------this line has error
If access = password Then
DoCmd.GoToRecord , , acNext
Else
MsgBox "Invalid Password", vbOKOnly
End If
Paluccie is offline   Reply With Quote
Old December 29th, 2005, 05:29 PM     #2 (permalink)
Perfetc Member
 
VHockey86's Avatar
 
Join Date: Jan 2003
Location: Maryland Suburbia
Posts: 4,334
This is what... VB6? VB.net?
VHockey86 is offline   Reply With Quote
Old December 29th, 2005, 08:58 PM     #3 (permalink)
Member
 
Join Date: Sep 2002
Location: Shirley, New York
Posts: 257
Send a message via AIM to Paluccie
i'm using this in access so vb version really doesn't matter here. concept is still the same
Paluccie is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
MS Access Run time error 2450 Robinz Applications and Operating Systems 1 May 6th, 2005 03:47 PM
R6025 Run Time Error galehickey Applications and Operating Systems 0 March 30th, 2005 09:39 PM
R6025 Run Time Error galehickey Technical Support 1 March 30th, 2005 09:37 PM
Internet explorer run time error Sirnarfness Applications and Operating Systems 4 May 21st, 2004 06:06 PM
run-time error R6003 -integer divide by 0urface Scan Richard Cranium Technical Support 7 October 29th, 2002 07:52 PM


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (3111)
‘Rogue’ or ‘Rouge’? (9)
Charges against non-tippers dropped.. (22)
Foxconn Blackops x48 MoBo (5)
Nvidia GTX 260 problem (14)
Delete an OS (18)
Laptop with wireless problem. (13)
Wireless Televisions. (12)
CPU fan stops spinning randomly (11)
Regular Build (11)
Point and Shoot Camera Suggestions. (9)
windows vista security holes (19)
[F@H SPAM 11/16/09] ! 1/2 months to.. (41)
windows 7 problem (7)
Recent Discussions
add ram to existing (4)
Computer shutting down on its own (6)
EVGA 9800 gtx help with finding a goo.. (13)
"Documents and Settings" fo.. (7)
Delete an OS (18)
Outputing 1080p from my PC to my 720p.. (0)
panasonic dmr ez48veb recorder (0)
Need help getting speakers to work (2)
Nvidia GTX 260 problem (14)
Laptop with wireless problem. (13)
Point and Shoot Camera Suggestions. (9)
Is the PSU I received dead? (16)
FreeAgent drive software not x64 comp.. (1)
Intel 5100 AGN issues fixed yet? (28)
Foxconn Blackops x48 MoBo (5)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (41)
Print spooler problem (17)
Q9650 vs. Q9550 (2)
Desktop Calendar Application (2)
Looking for new motherboard (1)
soundmon.exe (8)
Jedi Academy Problem (3)
Can a page file be "too big".. (1)
Size after cutting 700Mb file is 2.5 .. (0)
windows vista security holes (19)


All times are GMT -4. The time now is 02:33 PM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28