-
WSTwickenhamChris
AskWoody LoungerTaking a flyer….
I believe you need single quotes, not double quotes, around the VAR part of your code (as you’ve declared tham as strings). (Also took out the space before SELECT, but not sure if that’ll make any difference?)So…
SelectionSQL = “SELECT tblStudent.StudentID,tblStudent.Name,tblStudent.StudentPassword FROM tblStudent WHERE (((tblStudent.Name) = ‘” & Var1 & “‘ AND ((tblStudent.StudentPassword) = ‘” & Var2 & “‘)))”
Hope that works
-
WSTwickenhamChris
AskWoody LoungerThinking about it…is there any other control on the form (eg. a Close Form Button), because you could give it the focus on form open (or make it the first item in the Tab order) and thus avoid changing any settings.
-
WSTwickenhamChris
AskWoody LoungerIt sounds like you have specified a format for the txtBeginDate2 control (or the relevant field in your table) and the value of strBeginDate2 doesn’t match this format.
It looks to me (and I may well be wrong, but safe in the knowledge that someone will point it out if I am!
) like the value you are trying to pass to this field is actually only 6 digits, without any formatting (ie 022102 instead of 02/21/02). So, either remove the Date Format from the text box (or field) or try using something like this to make sure that strBeginDate2 is in Date format. Something like:
strBeginDate2 = Format(iMonth, “00”) & “/” & Format(iDay, “00”) & “/” & Format(iYear Mod 100, “00”)
(I’m not sure if you should be declaring strBeginDate2 as a Date instead of a String)
Hope that helps..repost if I’ve sent you off on a wild goose chase.
-
WSTwickenhamChris
AskWoody LoungerThe only option I can think of would be to change the settings in Tools/Options/Keyboard from ‘Select Entire Field’ to ‘Got to Start of Field’ in the Behaviour Entering Field section.
If there’s something else you could do to change it without changing these settings, I’m sure someone else will pipe up…
-
WSTwickenhamChris
AskWoody LoungerThanks chaps,
I’ll try recreating this at home this evening (I’ll set up a long path and try it with and without spaces) and see if I can replicate the problem.
Cheers
-
WSTwickenhamChris
AskWoody LoungerWhere are they ‘dropping off’?
If it is the last few characters in the field, I have had similar experiences in the past, but it was easily resolved by increasing the physical width of the controls in the report.
If it’s something else, repost with some more information.
Cheers
-
WSTwickenhamChris
AskWoody Loungeror put in some error trapping that moves to the next control
-
WSTwickenhamChris
AskWoody Loungerusing Mark’s code:
txtTextBox.Value = txtTextBox.Value & vbCrLf & cboComboBox
where ‘vbCrLf’ gives the carriage return
-
WSTwickenhamChris
AskWoody LoungerI have just duplicated this problem (I think
) in Access 97.
In the Microsoft Graph area set up, where you specify that the value axis should be currency, try ‘un-ticking’ the ‘Linked to source’ tick box.
Not sure how this affects the actual values that are displayed, but it did cause the pound sign (in my case) to be displayed.
-
WSTwickenhamChris
AskWoody LoungerIf you’re new to Access and prefer to keep away from the code, the easiest option is to base your report on a select query (if it isn’t already) and in the design view of the query in the criteria for your unique id field add
Forms![Your_Form_Name]![Unique_ID_Field]Then, as suggested previously, use the wizard to create an Open Report button on your form.
This way the report only shows the record currently visible on your form without you needing to amend any code.
-
WSTwickenhamChris
AskWoody LoungerI started off using Step by Step Access 97 Visual Basic, Microsoft Press, ISBN 1-57231-319-6.
Found it easy to follow an reasonably well laid out.
Try reading reviews on somewhere like Amazon, or failing that, nothing beats paging through the books at your local bookstorelibrary
-
WSTwickenhamChris
AskWoody LoungerTry something like
=”Compiled By ” & [Forms]![master]![compiled by] & ” as of ” & Date()
assuming that the field ‘compiled by’ is on your form ‘Master’ and the form is open.
-
WSTwickenhamChris
AskWoody LoungerI’ve never succeeded in resetting an autonumber field.
The only solution I’ve got is to go into the design view on the table, copy the autonumber field, paste it at the end of the list (in the same table), delete the original autonumber, move the new one back to where the original one was and save.
HTH
-
WSTwickenhamChris
AskWoody LoungerIs the form ‘Master’ open when you’re running the bit of code?
-
WSTwickenhamChris
AskWoody LoungerPaul, correct me if I’m wrong, but it sounds to me like you’re using the File , Save As option within the database in order to try and save the database to the floppy. This will only save whichever object (Table, Query, Form etc) you currently have highlighted. (This is what I assume you mean by copying from “basket” and only getting the “bare bones”)
If this is the case, if you need to copy your whole database to floppy (with all its relationships etc. intact), you need to use Windows Explorer (otherwise you are only going to be exporting 1 table/query/form/etc rather than the whole database).
With regards the copying of data within the tables, are both fields the same format (ie/eg is 1 field a 255 character text field and the other a date field)?
![]() |
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
-
No HP software folders
by
fpefpe
1 hour, 20 minutes ago -
Which antivirus apps and VPNs are the most secure in 2025?
by
B. Livingston
1 hour, 42 minutes ago -
Stay connected anywhere
by
Peter Deegan
1 hour, 34 minutes ago -
Copilot, under the table
by
Will Fastie
3 hours, 19 minutes ago -
The Windows experience
by
Will Fastie
7 hours, 49 minutes ago -
A tale of two operating systems
by
Susan Bradley
59 minutes ago -
Microsoft : Resolving Blue Screen errors in Windows
by
Alex5723
13 hours, 9 minutes ago -
Where’s the cache today?
by
Up2you2
1 day, 4 hours ago -
Ascension says recent data breach affects over 430,000 patients
by
Nibbled To Death By Ducks
21 hours, 15 minutes ago -
Nintendo Switch 2 has a remote killing switch
by
Alex5723
1 hour, 40 minutes ago -
Blocking Search (on task bar) from going to web
by
HenryW
1 day, 5 hours ago -
Windows 10: Microsoft 365 Apps will be supported up to Oct. 10 2028
by
Alex5723
1 day, 21 hours ago -
Add or Remove “Ask Copilot” Context Menu in Windows 11 and 10
by
Alex5723
1 day, 21 hours ago -
regarding april update and may update
by
heybengbeng
1 day, 23 hours ago -
MS Passkey
by
pmruzicka
1 day, 1 hour ago -
Can’t make Opera my default browser
by
bmeacham
2 days, 6 hours ago -
*Some settings are managed by your organization
by
rlowe44
1 day, 17 hours ago -
Formatting of “Forward”ed e-mails
by
Scott Mills
2 days, 5 hours ago -
SmartSwitch PC Updates will only be supported through the MS Store Going Forward
by
PL1
3 days, 1 hour ago -
CISA warns of hackers targeting critical oil infrastructure
by
Nibbled To Death By Ducks
3 days, 10 hours ago -
AI slop
by
Susan Bradley
1 day, 4 hours ago -
Chrome : Using AI with Enhanced Protection mode
by
Alex5723
3 days, 11 hours ago -
Two blank icons
by
CR2
20 hours, 3 minutes ago -
Documents, Pictures, Desktop on OneDrive in Windows 11
by
ThePhoenix
22 hours, 1 minute ago -
End of 10
by
Alex5723
3 days, 23 hours ago -
Single account cannot access printer’s automatic duplex functionality
by
Bruce
2 days, 21 hours ago -
test post
by
gtd12345
4 days, 5 hours ago -
Privacy and the Real ID
by
Susan Bradley
3 days, 19 hours ago -
MS-DEFCON 2: Deferring that upgrade
by
Susan Bradley
1 day, 21 hours ago -
Cant log on to oldergeeks.Com
by
WSJonharnew
4 days, 9 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.