-
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!!
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
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
-
9 Surprisingly Effective Ways To Tonic Greens (Awaiting moderation)
by
joannnall9452
1 hour, 47 minutes ago -
advice for setting up a new windows computer
by
routtco1001
6 hours, 6 minutes ago -
It’s Identity Theft Day!
by
Susan Bradley
2 hours, 44 minutes ago -
Android 15 require minimum 32GB of storage
by
Alex5723
10 hours, 55 minutes ago -
Mac Mini 2018, iPhone 6s 2015 Are Now Vintage
by
Alex5723
11 hours, 5 minutes ago -
Hertz says hackers stole customer credit card and driver’s license data
by
Alex5723
11 hours, 35 minutes ago -
Firefox became sluggish
by
Rick Corbett
8 hours, 29 minutes ago -
Windows 10 Build 19045.5794 (22H2) to Release Preview Channel
by
joep517
15 hours, 34 minutes ago -
Windows 11 Insider Preview Build 22635.5235 (23H2) released to BETA
by
joep517
16 hours, 2 minutes ago -
A Funny Thing Happened on the Way to the Forum
by
bbearren
11 hours, 33 minutes ago -
Download speeds only 0.3Mbps after 24H2 upgrade on WiFi and Ethernet
by
John
12 hours, 57 minutes ago -
T-Mobile 5G Wireless Internet
by
WSmmi16
4 hours, 55 minutes ago -
Clock missing above calendar in Windows 10
by
WSCape Sand
5 hours, 29 minutes ago -
Formula to Calculate Q1, Q2, Q3, or Q4 of the Year?
by
WSJon5
1 day, 6 hours ago -
The time has come for AI-generated art
by
Catherine Barrett
10 hours, 52 minutes ago -
Hackers are using two-factor authentication to infect you
by
B. Livingston
20 hours, 32 minutes ago -
23 and you
by
Max Stul Oppenheimer
1 day, 3 hours ago -
April’s deluge of patches
by
Susan Bradley
7 hours, 5 minutes ago -
Windows 11 Windows Updater question
by
Tex265
7 hours, 33 minutes ago -
Key, Key, my kingdom for a Key!
by
RetiredGeek
2 days, 12 hours ago -
Registry Patches for Windows 10
by
Drcard:))
2 days, 17 hours ago -
Cannot get line length to NOT wrap in Outlining in Word 365
by
CWBillow
1 day, 23 hours ago -
DDU (Display Driver Uninstaller) updates
by
Alex5723
1 day, 9 hours ago -
Align objects on a OneNote page
by
CWBillow
2 days, 22 hours ago -
OneNote Send To button?
by
CWBillow
2 days, 23 hours ago -
WU help needed with “Some settings are managed by your organization”
by
Peobody
3 days, 7 hours ago -
No Newsletters since 27 January
by
rog7
1 day, 12 hours ago -
Linux Mint Debian Edition 7 gets OEM support, death of Ubuntu-based Mint ?
by
Alex5723
2 days, 8 hours ago -
Windows Update “Areca Technology Corporation – System – 6.20.0.41”
by
Bruce
2 days, 7 hours ago -
Google One Storage Questions
by
LHiggins
1 day, 15 hours ago
Recent blog posts
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.