-
Gwb
AskWoody LoungerI must be missing something:
When I do this:
Set SV=DATE
echo %SV% –I get DATEInstead of Thu 08/25/2005
Does typing these lines at the command prompt give different results than if run in a batch file?
-
Gwb
AskWoody LoungerThe TIME variable is like the DATE variable. However, what I want to do is set a user-defined variable to the system variable DATE. The syntax of: SET SV=DATE sets the variable SV to the word “DATE” instead of the actual system Date. Same way with: SET SV=TIME. I must be overlooking part of the correct syntax.
-
Gwb
AskWoody LoungerDid you ever get your code to work? I’m trying to upload a file to a remote FTP site and I have tried using this code, but get an error message that ActiveX Component Can’t Create Object. Would you be willing to share your code with me (that is if you got it to work)? The following is the code I’m trying to use.
Public Function Uploadtest()
Dim FTP As Inet
Set FTP = New Inet
With FTP
.Protocol = icFTP
.RemoteHost = “???.??.??.???”
.UserName = “kropf”
.Password = “#####”
.Execute .url, “Send C:kropf.txt”
Do While .StillExecuting
DoEvents
Loop
Uploadtest = (.ResponseCode = 0)
End With
Set FTP = Nothing
End FunctionWhen I click on debug it highlights the line “Set FTP = New Inet”
Any help you give would be appreciated.
Thanks.
Gary Becker
Kropf Lumber, Inc.
gwb@kropflumber.com -
Gwb
AskWoody LoungerDid you ever get your code to work? I’m trying to upload a file to a remote FTP site and I have tried using this code, but get an error message that ActiveX Component Can’t Create Object. Would you be willing to share your code with me (that is if you got it to work)? The following is the code I’m trying to use.
Public Function Uploadtest()
Dim FTP As Inet
Set FTP = New Inet
With FTP
.Protocol = icFTP
.RemoteHost = “???.??.??.???”
.UserName = “kropf”
.Password = “#####”
.Execute .url, “Send C:kropf.txt”
Do While .StillExecuting
DoEvents
Loop
Uploadtest = (.ResponseCode = 0)
End With
Set FTP = Nothing
End FunctionWhen I click on debug it highlights the line “Set FTP = New Inet”
Any help you give would be appreciated.
Thanks.
Gary Becker
Kropf Lumber, Inc.
gwb@kropflumber.com -
Gwb
AskWoody LoungerThanks Hans for those threads–I did find some code I think I can use (code as follows).
Public Function Uploadtest()
Dim FTP As Inet
Set FTP = New Inet
With FTP
.Protocol = icFTP
.RemoteHost = “???.??.??.???”
.UserName = “kropf”
.Password = “#####”
.Execute .url, “Send C:kropf.txt”
Do While .StillExecuting
DoEvents
Loop
Uploadtest = (.ResponseCode = 0)
End With
Set FTP = Nothing
End FunctionThe MSINET.OCX wasn’t on my system, but I downloaded it and registered it with regsvr32. Then I could add the reference Microsoft Internet Transfer Control 6.0 (SP4). The code compiles okay now, but when I try to run it, I get this error, Runtime error 429 ActiveX component can’t create object. When I click on debug, it highlights the line, Set FTP = New Inet. What am I doing wrong?
-
Gwb
AskWoody LoungerThanks Hans for those threads–I did find some code I think I can use (code as follows).
Public Function Uploadtest()
Dim FTP As Inet
Set FTP = New Inet
With FTP
.Protocol = icFTP
.RemoteHost = “???.??.??.???”
.UserName = “kropf”
.Password = “#####”
.Execute .url, “Send C:kropf.txt”
Do While .StillExecuting
DoEvents
Loop
Uploadtest = (.ResponseCode = 0)
End With
Set FTP = Nothing
End FunctionThe MSINET.OCX wasn’t on my system, but I downloaded it and registered it with regsvr32. Then I could add the reference Microsoft Internet Transfer Control 6.0 (SP4). The code compiles okay now, but when I try to run it, I get this error, Runtime error 429 ActiveX component can’t create object. When I click on debug, it highlights the line, Set FTP = New Inet. What am I doing wrong?
-
Gwb
AskWoody LoungerNo, they are not sorted. They are order detail lines that I want to import into another program via a text file, but they need to be numbered. I’m thinking of some kind of function where you would say something like, LineNumber = LineNumber + 1 and it just keeps growing.
-
Gwb
AskWoody LoungerNo, they are not sorted. They are order detail lines that I want to import into another program via a text file, but they need to be numbered. I’m thinking of some kind of function where you would say something like, LineNumber = LineNumber + 1 and it just keeps growing.
-
Gwb
AskWoody LoungerThanks, Hans, but I need to export a comma delimited file that has to have line numbers on it.
-
Gwb
AskWoody LoungerThanks, Hans, but I need to export a comma delimited file that has to have line numbers on it.
-
Gwb
AskWoody LoungerThe form frmSalesTaxItems has two text boxes on it for the beginning and ending dates; their control source is a table. At your suggestion, I tried the Between [Beginning date] And [Ending Date] but I get the same type of error message. If there is no other work around, I’ve thought about having the first query make a temporary table, then basing the crosstab off of a table instead of a query. Then deleting the table.
-
Gwb
AskWoody LoungerI don’t believe I can do that–I don’t have any date fields in the cross tab query. The first query is summarizing sales data between two dates by taxed and non-taxed sales in each sales tax jursdiction. So it is supplying the crosstab query with totals for the correct dates.
-
Gwb
AskWoody LoungerI don’t believe I can do that–I don’t have any date fields in the cross tab query. The first query is summarizing sales data between two dates by taxed and non-taxed sales in each sales tax jursdiction. So it is supplying the crosstab query with totals for the correct dates.
-
Gwb
AskWoody LoungerThanks for the help Hans, I did what you suggested–tried importing portions of it at a time. I found the problem–This order detail lines and a couple of lines on an order had the character ~ that I use as a field delimiter, so it was shoving all the data in those records on record too far to the right which tried to put numerical data into text fields. What a mess. It’s been a long day. Thanks again!!
-
Gwb
AskWoody LoungerThanks for the help Hans, I did what you suggested–tried importing portions of it at a time. I found the problem–This order detail lines and a couple of lines on an order had the character ~ that I use as a field delimiter, so it was shoving all the data in those records on record too far to the right which tried to put numerical data into text fields. What a mess. It’s been a long day. Thanks again!!
![]() |
There are isolated problems with current patches, but they are well-known and documented on this site. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Third party add ins reminder
by
Susan Bradley
1 hour, 42 minutes ago -
OTF, which backs Tor, Let’s Encrypt and more, sues to save its funding
by
Nibbled To Death By Ducks
5 hours, 19 minutes ago -
El Canal Maritimo (Awaiting moderation)
by
lourdespinson24
6 hours, 16 minutes ago -
Select multiple emails and they all open up! (Awaiting moderation)
by
CeeJay
11 hours, 39 minutes ago -
How to remove an update preview (Awaiting moderation)
by
Gunny
13 hours, 29 minutes ago -
Updating Windows 10 to Windows 11: 23H2 or 24H2?
by
Still Anonymous
16 hours, 3 minutes ago -
How can I update “Explorer Patcher”
by
WSplanckster
17 hours, 56 minutes ago -
Check out the home page for Signal
by
CAS
15 hours, 49 minutes ago -
Windows 11 and Trial version of MS Office
by
Tex265
14 hours, 52 minutes ago -
Windows 11 Insider Preview build 26120.3585 (24H2) released to BETA
by
joep517
22 hours, 19 minutes ago -
Windows 11 Insider Preview build 26200.5510 released to DEV
by
joep517
22 hours, 23 minutes ago -
Windows 11 Insider Preview Build 26100.3624 (24H2) released to Release Preview
by
joep517
22 hours, 26 minutes ago -
Limits on User Names
by
CWBillow
19 hours, 9 minutes ago -
MS-DEFCON 4: Mixed bag for March
by
Susan Bradley
13 hours, 12 minutes ago -
Non Apple Keyboards
by
pmcjr6142
4 hours, 9 minutes ago -
How to delete your 23andMe data – The Verge
by
AJNorth
17 hours, 6 minutes ago -
7 common myths about Windows 11 (Microsoft AD)
by
EyesOnWindows
14 hours, 42 minutes ago -
Error updating to Win11 0x8024a205
by
bmeacham
1 day, 16 hours ago -
default apps
by
chasfinn
1 day, 16 hours ago -
Will MS Works 4 work in MS Win 11?
by
MileHighFlyer
2 days ago -
Adding links to text in Word 2000
by
sgeneris
21 hours, 23 minutes ago -
FBI warnings are true—fake file converters do push malware
by
Nibbled To Death By Ducks
1 day, 17 hours ago -
Classic and Extended Control Panel — no need to say goodbye
by
Deanna McElveen
20 hours, 5 minutes ago -
Things you can do in 2025 that you couldn’t do in 2024
by
Max Stul Oppenheimer
2 days, 4 hours ago -
Revisiting Windows 11’s File Explorer
by
Will Fastie
1 day, 13 hours ago -
Planning ahead for migration
by
Susan Bradley
13 hours, 58 minutes ago -
Yahoo mail getting ornery
by
Tom in Az
1 day, 16 hours ago -
Is Spectrum discontinuing email service?
by
Peobody
1 day, 19 hours ago -
Practice what you preach! A cautionary tale.
by
RetiredGeek
1 day, 16 hours ago -
Looking for Microsoft Defender Manuals/Tutorial
by
blueboy714
1 day, 20 hours ago
Recent blog posts
- Third party add ins reminder
- MS-DEFCON 4: Mixed bag for March
- Classic and Extended Control Panel — no need to say goodbye
- Things you can do in 2025 that you couldn’t do in 2024
- Revisiting Windows 11’s File Explorer
- Planning ahead for migration
- Woody Leonhard (1951–2025)
- What I learned from Woody Leonhard
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.