hey guys (girls) i need to know how to use a fing i want learn how to use a .bas file like have parts of my code in there and what do i type to use the in the form say cmd1_click
.bas modules [generally] contain functions that are available to the whole application. .frm modules are the files in which the code for your Forms appear. All the window click events and the like generally go in here by default.
yea i know that but how do i run one of the .bas file in a form eg if i click a button i want it to run the .bas file
Define a sub or function in a .bas file. Copy following into bas file: Public sub s() msgbox "hello" end sub in the cmd1_click: call s see what happens
The key is to decalre the sub or function as "Public" then calling that sub/function from another form or module will be no problem.
thank you guys so much that just solved my problem now only one more and thats in electronics unless any of you can help