Thanks, I'm also worried about how many the Max is. I've gone with my 1st thought which is a little dirty but it works...
On my form I've created 60 checkboxes and have set them to visible=false, I've then used the code below to make them visible and change the caption...if I ever get more...
Hi,
I'm trying to automatically create a number of checkboxex on a form when it initialises based on data in sheet. The number of checkboxex will vary depending on how many cells in the sheet have values in them.
The only way I can think to do it is to create a whole heap of genric checkboxex...
I'm using the built in "Forms" tool in MS Word to create a report template. The template has several tables in it that could be anywhere from 1 row to 50. Rather than create 50 rows straight off I'm trying to dynamacly create rows as they are needed. The last cell in each row has a Text Form...
We are runnning NW6 with Zen 4 and I'm trying to produce a report that lists users, the application objects that associated to them and the last time the user actually used each application. I have setup the Zenworks ODBC but can not find any tables that give the info I need.
I'm trying to set the default driver settings to include duplex settings etc. I've found a TID on Novell (10083141) that says it can be done through HTML code but to date I'm unbale to get this to work (see below). We are running NW6 and HP printers, has anybody been able to acheive this or...
thanks PH but still doesn't work and I also need to be able to determine if the user has answered NO to any questions.
I'm trying different things but if anybody has got any suggestions it would be great.
many thanks
Dave
I have a form with about 20 questions and Yes/No option buttons...when the user clicks OK I want to call a procedure to check that all questions have been answered and if there are any "No" answers...I have code that will check all the option buttons but it only works if the user has answered...
I'm sure this is very easy but I just can't find a way to do it....I have 4 checkboxes in a frame on a form, 2 lots of YES/NO. I want the user to be only able to check one, ie yes or no. I've tried using if then for the click event but this doesn't seem to work properly and actually crashes my...
I've got a simple form that displays values from cells in an excel workbook and I'm trying to find a simple way of checking to see if a user makes any changes in the form so I can update the workbook if needed. I can think of 2 ways of doing it but both seem long winded any other suggestions...
...ago)...it seems to of fixed all my problems! Thanks everybody for their help..working code is below. Now to work out how to package it!
[wavey3]
***code***[blue]
Private Sub cmdGenerate_Click()
Dim strTemp As String
Dim intFile As Integer
Dim lngRtn As Long
If...
AkutaSame, my problem is that I didn't write the generator.exe, I have no idea where it came from but it's been used to generate passwords based on machine names and I'm just trying to make it so you don't have to go into DOS each time you want to get a password.
Dave
Thanks I guess we hadn't actually posted the answer but Andy's code in the 3rd posting provided the path. I was hoping once I found what directory path was used when calling Shell I could fix my problem by putting the DAT file there but it doesn't so I'm really struggling to workout why I can...
I'm working on XP and have tried that syntax for DEBUG.EXE but get "file not found". I think .Net Studio can open exe files but I only have VB 6.
It runs and finishes almost straight away...If I check the txt file after the code has finished it isn't changed either.
I've been trying to work our how to "load the generator app into DEBUG.EXE" but have never used it before and can't work it out.
Dave
Hi Don, txtMachineName is alphanumeric entry.
eg
txtMachineName = ab12345
strTemp = D:\PGen\Generator ab12345>D:\Pgen\pw.txt
If I go into DOS and change directories to the app path (I've added this line after Andy's suggestions) and copy the value of strTemp it works.
Tried changing to original location too but no go. The generator "app" was emailed to me...I don't know where it came from originally and all it is, is the exe file & dat file.
Dave
Andy thanks for your suggestions. I've already tried having the DAT file in D:\PGen and I tried your suggestion of having in the App.Path folder and changing directory before calling Shell but same result (I added those couple of lines to check the path and I've got it in the directory given in...
...as is it should but I just can't get it working from VB...any suggestions???
C:\SomeDOSPath\>d:\pgen\generator txtmachinename > d:\pgen\pw.txt
***code***
Private Sub cmdGenerate_Click()
Dim strTemp As String
Dim intFile As Integer
If frmMain.txtMachineName = "" Then...
After more testing...
It actually isn't working to well. Originally I was testing the string that was being passed to DOS in DOS and it works like a charm..if pw.txt doesn't exsist it creates it, if it does it overwrites it. But when I run it through VB if the file doesn't exsist it is not...
Sorry my mistake....code does work I just needed to remove the .exe extension in the string that is passed to the shell. Still have a problem if the txt file doesn't exsist and becuase it is killed each time (which is preferable) I can only use it once...any ideas??
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.