954,535 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Code of File open dialogue box

When button is pressed from Forms of MS-Access, a file open dialogue box is displayed. I need the VB code.

newwin
Newbie Poster
4 posts since Sep 2007
Reputation Points: 10
Solved Threads: 0
 

which vb code u need

anto_nee
Junior Poster in Training
76 posts since Aug 2007
Reputation Points: 12
Solved Threads: 4
 

code to open a File open dialogue box by pressing button. through this, one can load different files in the textbox.

newwin
Newbie Poster
4 posts since Sep 2007
Reputation Points: 10
Solved Threads: 0
 

hI,

Use "Microsoft Common Dialog Control " , add it from Projects>Components:
"Microsoft Common Dialog Control 6.0"

add it to form and in command Click :

CommonDialog1.ShowOpen    
    FileName = CommonDialog1.FileName


Set "Filter" property to filter particular File extensions

Regards
Veena

QVeen72
Posting Shark
950 posts since Nov 2006
Reputation Points: 84
Solved Threads: 143
 

Thanks for ur help.

newwin
Newbie Poster
4 posts since Sep 2007
Reputation Points: 10
Solved Threads: 0
 

thanks for help

amkhyati
Newbie Poster
2 posts since Oct 2006
Reputation Points: 10
Solved Threads: 0
 

What would be the code if log book is maintained by the secretary of the company to calculate and manage the leave days taken by the employees. The secretary is able to view the information of an employee except their salary remuneration. The basic principle of the company is that each employee is allowed to take 30 days of paid leave per annum. The system does not allow an employee to take more than 30 days of leave.

ntuthuzelojames
Newbie Poster
2 posts since Oct 2009
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You