-
WSsculshaw
AskWoody LoungerNeat
And you can extend it for more choices
-
WSsculshaw
AskWoody LoungerOn the sql question, I wonder if it’s his way to make sure the returned recordset has minimal (i.e. zero) records in it ?
On the missing LogId, tried a new database and table in SQL Server, same problem
Tried an Access 2000 table with Autonumber, works fineThen (with SQL Server connection), tried looking at the LogId after the AddNew, but adding a MoveNext MovePrevious, and now the LogId is there
So quite how/why/what the recordset is doing I’ve no idea
-
WSsculshaw
AskWoody LoungerTry this example
-
WSsculshaw
AskWoody LoungerI assume you mean he’s got a many-to-many relationship between the Names and Languages table, with an intersection table to handle breaking the many-to-many
Depends what the keys are on the two main tables, but if e.g. in the Language table, it’s the actual name, I’d have thought a query on Name joined to Intersection where the language is like English or French ought to get the records he’s after
-
WSsculshaw
AskWoody LoungerI’d go with what pbricker said
create a query, add the table, select the reference field and date field, turn on totals, select group be for reference field, max for the date, run the query
You should then have a list of the maximum date for each unique reference -
WSsculshaw
AskWoody LoungerCharlotte,
to be honest, I’ve no idea why he’s doing that – this is code from another developer, who put together the original DLL. He’s no longer available, so I’ve been given the task of doing the next DLL, so I’m on a crash course to try and learn ADO, XML, ASP and also produce the DLL – stressed, somewhat
I’d seen this and assumed it was needed so the recordset fields would be defined.
I linked the tblLogIn table in an Access 2000 database, and the autonumber works
I’ll have a go at a new SQL Server database, and a new table
-
WSsculshaw
AskWoody LoungerYou could try first splitting your [oldfield]
then formatting as date
e.g.
Format(left([oldfield],2 & “/” & mid([oldfield],3,2) & “/” mid([oldfield],5,2), “mm/dd/yy”)
– I reversed the day/month as your data looks American formatYou could also put a check in that the length of the oldfield is 6 characters
-
WSsculshaw
AskWoody LoungerOctober 23, 2001 at 1:34 pm in reply to: Why is every second page empty? (A2k (9.0.4402) SR-1) #548098Do you have something small, or nearly invisible that is causing the extra page ?
– I had some horizontal lines which were just wide enough to cause a second ‘blank’ page -
WSsculshaw
AskWoody LoungerTry using the Format function,
e.g. Format([oldfield],”dd/mm/yyyy”) to update the new field which is set to a Date/Time -
WSsculshaw
AskWoody LoungerYeap I just get a blank dialog !!
– the code in my test forms buttonDim adoCn As New ADODB.Connection
Dim rsLog As New ADODB.RecordsetDim sql As String
sql = “SELECT * FROM tblLogIn WHERE 1 = 2 ”adoCn.open msGatewayDbConStr
rsLog.open sql, adoCn, adOpenKeyset, adLockOptimistic, adCmdTextrsLog.AddNew
rsLog!OriginatorAddr = “TestAddr”
rsLog.UpdateMsgBox “:” & rsLog!LogId & “:”
MsgBox “:” & rsLog!OriginatorAddr & “:”rsLog.Close
What is weird is that I change the UDL to point at an Access 2000 database with a copy of the tblLogin database in, and the display of the LogId autonumber works
-
WSsculshaw
AskWoody LoungerNot 100% on this, but look at the Startup options, items Menu Bar and Allow Full Menus
-
WSsculshaw
AskWoody LoungerSorry my explanation wasn’t clear, the value I’m after (the rsLog!LogId) isn’t there, so I can’t put it in my audit table
I’ve checked in Watch and the recordset has the values I’ve added in code, e.g. the OriginatorId, but the autonumber LogId (or whatever it’s called in SQL Server speak) isn’t in the recordset, even after the Update
I’m unsure how to refresh the recordset – tried the .Refresh and .Resync and neither did the job -
WSsculshaw
AskWoody LoungerCharlotte,
yes the field increments by one each time I add a new record
The code first does
rsLog.Open sql, adoCn, adOpenKeyset, adLockOptimistic, adCmdTextthen
rsLog.AddNewthen some work on the fields
rsLog!OriginatorID = …. valuethen finally
rsLog.UpdateI can switch to Query Analyzer and the data is in the table, including the new LogId, but the rsLog!LogId is empty – checked with Watch, whereas the other fields have the expected values
Not sure if I’m using client or server cursor – how do I tell that?
I’m sure it’s down to me as two other guys have been using the DLL this code is in, without an problems (or at least no reported problems)
-
WSsculshaw
AskWoody LoungerOctober 22, 2001 at 8:30 am in reply to: 1 mde form shows 2 diff date formats for users (97) #547887Charlotte,
thanks, interesting thread. Think I’ll have to use something like DAW’s code to check the entered date
I’m still baffled as to why this particular user’s site the date changes to the 01/01/01 style, when on other users and mine it changes to 01/01/2001 – I had him check his regional setting and he said is was UK
Do you know of any internal Access setting / registry / whatever that determines what it’s “guess” on a bad date is? -
WSsculshaw
AskWoody LoungerOctober 21, 2001 at 2:11 pm in reply to: Access 2000 Runtime or VB 6 (Access 2000 Developer) #1789257Thanks
I also found Q208730 which details similar for Access 2000
I’ll have to invest some time in working out how to get the best from the Knowledge Base, there is a LOT in there
Cheers,
Steve C.
![]() |
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
-
Seeing BSOD’s on 24H2?
by
Susan Bradley
55 minutes ago -
TUT For Private Llama LLM, Local Installation and Isolated from the Internet.
by
bbearren
4 hours, 21 minutes ago -
Upgrade from Windows 10 to 11
by
Holdsworth8
6 hours, 45 minutes ago -
Microsoft : AI-powered deception: Emerging fraud threats and countermeasures
by
Alex5723
9 hours, 35 minutes ago -
0patch
by
WSjcgc50
6 hours, 3 minutes ago -
Devices might encounter blue screen exception with the recent Windows updates
by
Susan Bradley
2 hours, 57 minutes ago -
Windows 11 Insider Preview Build 22631.5261 (23H2) released to Release Preview
by
joep517
12 hours, 34 minutes ago -
Problem opening image attachments
by
RobertG
14 hours, 9 minutes ago -
advice for setting up a new windows computer
by
routtco1001
1 day, 4 hours ago -
It’s Identity Theft Day!
by
Susan Bradley
9 hours, 11 minutes ago -
Android 15 require minimum 32GB of storage
by
Alex5723
1 day, 9 hours ago -
Mac Mini 2018, iPhone 6s 2015 Are Now Vintage
by
Alex5723
1 day, 9 hours ago -
Hertz says hackers stole customer credit card and driver’s license data
by
Alex5723
1 day, 10 hours ago -
Firefox became sluggish
by
Rick Corbett
1 day, 7 hours ago -
Windows 10 Build 19045.5794 (22H2) to Release Preview Channel
by
joep517
1 day, 14 hours ago -
Windows 11 Insider Preview Build 22635.5235 (23H2) released to BETA
by
joep517
1 day, 14 hours ago -
A Funny Thing Happened on the Way to the Forum
by
bbearren
12 hours, 1 minute ago -
Download speeds only 0.3Mbps after 24H2 upgrade on WiFi and Ethernet
by
John
6 hours, 35 minutes ago -
T-Mobile 5G Wireless Internet
by
WSmmi16
12 hours, 42 minutes ago -
Clock missing above calendar in Windows 10
by
WSCape Sand
13 hours, 54 minutes ago -
Formula to Calculate Q1, Q2, Q3, or Q4 of the Year?
by
WSJon5
2 days, 5 hours ago -
The time has come for AI-generated art
by
Catherine Barrett
1 day, 9 hours ago -
Hackers are using two-factor authentication to infect you
by
B. Livingston
1 day, 19 hours ago -
23 and you
by
Max Stul Oppenheimer
2 days, 2 hours ago -
April’s deluge of patches
by
Susan Bradley
6 hours, 27 minutes ago -
Windows 11 Windows Updater question
by
Tex265
6 hours, 48 minutes ago -
Key, Key, my kingdom for a Key!
by
RetiredGeek
3 days, 11 hours ago -
Registry Patches for Windows 10
by
Drcard:))
3 days, 15 hours ago -
Cannot get line length to NOT wrap in Outlining in Word 365
by
CWBillow
2 days, 22 hours ago -
DDU (Display Driver Uninstaller) updates
by
Alex5723
2 days, 7 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.