Click to See Complete Forum and Search --> : Access VB


flyersguy85
06-27-2005, 05:17 PM
Is there something different about VB in Access as opposed to VB other places? I try to copy and paste code that I find people sharing on the internet into access and it can't find half of the data members. It can't find things like SearchFile or it says it doesn't understand Me.Enabled = True to simply enable the current form. What is going on here? Could anyone point me in the right direction of an Access VB reference where I could find things that it actually does know. Thanks alot

rock
06-27-2005, 05:43 PM
VB inside Access is actually "VBA" or Visual Basic for Applications. VB you'll see elsewhere will be VB5 or VB6 code, possibly even VB.NET. There are considerable differences between VBA and other flavors of VB.

You may have some luck searching on "VBA" for example code.

flyersguy85
06-27-2005, 10:22 PM
Can anyone help me by giving me ideas on how i would search a directory (C) for files that begin with a certain Code (123). I want to use a text box and button to search and have all the files appear in a list box. I am doing this in ACCESS so it would need to be VBA i just found out lol. Maybe you know some sites that have good example code for this or you know how to do it yourself. Either works. Thanks for the help.