I'm using C++ with Windows 7. I'm trying FindFirstFile by time, and I want to find a file that is less than 20 seconds old. I have the find part I think, but I am having difficulty doing it by time. any help is appreciated. Thanks.
HANDLE hFile;
LPFILETIME lpCreationTime,
lpLastAccessTime...
Disregard That, I have that figured out, It seems that I need to tie the progress bar to the copying of a file. It needs to progress and finish when the file is copied. How do you know when the file is copied?
Thanks
DS
Thanks, It shouldn't be this hard. I thought that by doing this it would just overwrite the mdb file.
Private Sub Command1_Click()
FileCopy "c:\Proserv\DB\DellSat.mdb", "C:\ProServ\DB\BU.mdb"
Unload Me
End
End Sub
DS
I want to run a Progress Bar in VB6. I need it to run for 40 Seconds and then close the Application. I put the Progress Bar on the form, now I'm lost. this isn't tied to any information or code running, Thanks
DS
Ok Thanks, I'm doing this and it works fine.
FileCopy "c:\Proserv\DB\DellSat.mdb", "C:\ProServ\DB\BU.mdb"
MsgBox "Completed"
A quick question though. Does it Overwrite the exsisting file? How exactly does it work?
Thanks
DS
Hi,
I'm new to VB...I'm using VB6. I need a command button to copy a file and place it into another directory...
Copy C:\ProServ\DB\PS.mdb to C:\ProServ\BackUp
It has to rename the file from PS.mdb to BU.Mdb and overwrite the previous BU.mdb file.
Any help appreciated.
Thanks
DS
Its becoming one. It's Simple. I have a field with Numbers and Alpha...
1
1a
1b
33
33a
343
343a
343b
5
3
etc...
Why when I go to add a record can't I merely check fr the highest alpha that corresponds with the number I've choosen. If I pick 1 then t would be 1b and the new record would become...
Can't quite make out what is happening here. I'm still new!
But I do see the problem with this...
1a
22a
234a
What happens in this situation? With this?
DMax("Right(NumberID,1)
Thanks
DSTR3
I tried this but I get...
1,2,3 instead of 1,1a,1b,1c etc...
Dim strWhere As String
Dim intChar As String
intChar = Asc(Nz(DMax("NumberID", "tblTest", "NumberID = '" & Me.Text3 & "'"), "@"))
Me.TxtNumber = Me.TxtNumber & Chr(intChar + 1)
Thanks
DSTR3
I have a field that contains data like this.
1
1a
1b
2
2a
3
3a
3b
3c
etc... I need a DMax statement that will find the highest value of a series, then add the next alpha to it. For instance if I had a 3, the next value would be 3d, if it's 1 then it would be 1c. The Table is called called...
I'm trying to set the value in a Textbox where the form name changes. I thought this would work.
Dim stWhatForm as String
Forms!stWhatForm!TxtBox = " & Me.TxtBox1 & "
The problem is that the stWhatForm doesn't work.
Help is appreciated.
Thanks
DS
I'm having a problem inserting a record if the date field empty, It only works if there is a Date in the Me.TxtDate, otherwise I get an Error.
I tried this but, it doesn't work.
Thanks
DS
CurrentDb.Execute "INSERT INTO Table1 (ID,DateF) " & _
"VALUES(" & Forms!Form1!TxtID & ", " & _
"" &...
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.