To determine if an environment variable for windows workgroup is available to you, run this bit of code:
dim i as integer
for i = 1 to 100
debug.print environ(i)
next
You can see the list of environment variables for your OS by pressing Ctrl + G to show the Debug window.
Hope this...
Vanleurth,
Sorry for the delayed response. I live in Florida so I was dealing with a hurricane this past weekend.
What you may want to do is place the requery code in the btn_type_Click() section rather than the Type_GotFocus()section to prevent the "overload" for your computer. The trick to...
Schaap,
Your best bet would be to place that code into another event rather than the Form_Load (as PHV is suggesting). You could place a command button (for example) on your form and have the user press that button when they want to perform an action. That way you will give the user enough time...
Hi Schaap!
What you may want to do is use an if..then clause to fill in the variables. For example, if your InvestName is a string variable you can say something like:
If Me.NewInvestmentNaam = "" Then
InvestName = ""
Else
InvestName = Me.NewInvestmentNaam
End If
Continue to do this...
Hi Orion45,
It looks like you may have an issue with the dialog box not closing properly. Try this:
...
strTable = "EssayGrades_temp"
Set xl = New Excel.Application 'instantiate Excel
xl.Dialogs(xlDialogFindFile).Show
strPath = xl.ActiveWorkbook.FullName
xl.Dialogs.Application.Quit...
Vanleurth, do you mean you want to repopulate the combobox with the table's recordset each time the combobox recieves the focus? Also, what do you mean you can't figure out how to choose the first entry? Do you have any code you could show?
Hi everyone,
Is there a way to programmatically locate a database in a directory through VBA? For example, I have two Access 97 databases (front end and back end) that will be converted to XP shortly. As a process of the conversion, my company wants to eliminate any hard coded drive paths in...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.