Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old October 3rd, 2006, 03:23 AM
mogmog mogmog is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Oct 2006
Posts: 1 mogmog User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 56 m 4 sec
Reputation Power: 0
How to run user create function in sql script

Database : MsAccess XP
Tabel Name : UserMast
Field UserMast : Name (Chr), Password(Chr), Joint_Dt(Date). Exp_Dt(Date)


rs.open "select rtrim(left(name, 15)) As Name, Format(joint_dt, 'yyyy/mm/dd') as Joint, rtrim(password) as password from UserMast order password", Con,adOpenStatic, adLockOptimistic

this is not problem


but

rs.open "select rtrim(left(name, 15)) As Name, Format(joint_dt, 'yyyy/mm/dd') as Joint, rtrim(decpass(password)) from UserMast order password", Con,adOpenStatic, adLockOptimistic

in vb modul, i create
public function decpass(stPass As String) as string
marr = array("26","25",..."02","01" )

mtem = ""
for i = 1 to len(stPass)
mtem = mtem+marr(i)
next

decpass = mtem

end function


I get error undefined funtion decpass in expression
Can I have same help?

Reply With Quote
  #2  
Old December 5th, 2006, 03:58 AM
hithere's Avatar
hithere hithere is offline
Learner
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Location: India
Posts: 450 hithere User rank is Sergeant (500 - 2000 Reputation Level)hithere User rank is Sergeant (500 - 2000 Reputation Level)hithere User rank is Sergeant (500 - 2000 Reputation Level)hithere User rank is Sergeant (500 - 2000 Reputation Level)hithere User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 5 Days 12 h 13 m 21 sec
Reputation Power: 18
You cannot use a function declared in VB in MS Acess.. what u can do is first select password value from access and then apply the vb function on that value...

Code:
rs.open "select rtrim(left(name, 15)) As Name, Format(joint_dt, 'yyyy/mm/dd') as Joint, rtrim(password) as password from UserMast order password", Con,adOpenStatic, adLockOptimistic 

password1 = decpass(rs(2))

__________________
Do, or do not. There is no 'try'.

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > How to run user create function in sql script


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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 On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump



 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT