Access 2007-2013
Access 2000-2003
Seminars
Tips & Tricks
Access Forum
Course Index Insider Circle
Collapse Menubar
 
Tutorials   News   Tips   Templates   Forums   Help   Logon   Order  
 

News      User Comments     History     Notify Me

1/1/2008 3:22:00 AM
Microsoft Access 322
 
Recordset options, seek, OpenDatabase, Fields collection, User Logon Form, create a Log table

Permanent Link
Course Link: Microsoft Access 322
Keywords: access
Post Reply

Autoexec Macro Comment from Kenya @ 10/5/2010
Hi Richard, I have purchased a few of your lessons and I love them, you have saved my job on many occasion. THANKS...I have recently run into a problem with autoexec, the module is set up to allow the full Access menu's when certain users are logging in but the problem is when the auto exec crashed it locked everyone out of the database.  We were unable to access any of the menus to check the code of the macro or to remove it. How can I prevent this from happening again or is there another way to block my database menus without running a macro?


Reply from Richard Rost:

Hold the SHIFT key down and restart your database. This will bypass your startup macro and let you get to the database window to figure out what's wrong.
Show Just This Thread        Post Reply
No feedback from your side Comment from Mubeezi Micah @ 7/22/2010
Dear Richard,

You have been very quiet of late. I noticed you approved our comments. Thank you. However, some of the comments were questions and we were expecting some form of expert answer from you. Your replies are however not visible. Would you be kind and reset to VISIBLE or write the responses again?

Best regards,

MICAH


Reply from Richard Rost:

Micah, sorry ive been absent lately. Im working on a big project that is taking all of my time. I have marked many of your questions to follow up on and I will answer them as soon as I can.
Show Just This Thread        Post Reply
Comment from Mubeezi Micah @ 7/12/2010
Dear Richard,

At time index 9:12, you demonstrated how to "inprint" the current user name onto the main menu. I added something cool that i would like to share with you and my fellow students. That is, the Main Menu should greet the current user as "Good morning Richard!" depending on what (PC system) time they they log in. See below what i used for my database:
If Time >= #12:00:00 AM# And Time < #12:00:00 PM# Then
        CurrentUserLabel.Caption = "Good Morning " & CurrentUserName & "!"

    End If
  
    If Time >= #12:00:00 PM# And Time < #5:00:00 PM# Then
        CurrentUserLabel.Caption = "Good Afternoon " & CurrentUserName & "!"

    End If
    
    If Time >= #5:00:00 PM# And Time <= #11:59:00 PM# Then
        CurrentUserLabel.Caption = "Good Evening " & CurrentUserName & "!"
    End If

Doesn't it look cool? Probably the Select Case statement or Elseif would look cooler.

Thank you for the good work and keep it up!

MICAH
Show Just This Thread        Post Reply
forms name Comment from David Richardson @ 5/6/2010
My last question was partially answered. I do not recall which video I was watch, but you have hovered over the control and the full name appeared. How does the full name gets displayed by hoveering over the control?


Thank you for your help


Reply from Richard Rost:

David, look for the Control Tip Text property. Whatever you put in there will appear when you hover over the control.
Show Just This Thread        Post Reply
Comment from  david @ 3/28/2010
in design view of the form. How can you read the full name of the control


Reply from Richard Rost:

You can always open up the properties for that individual control to see its NAME. Once you know that, then it's always:

=Forms!FormName!FieldName
Show Just This Thread        Post Reply
Comment from peter jansen @ 2/23/2010
Dear Richard how can I use
a wildcard in the DAO seek method?I mean instead of choosing 5 I can choose any other value without changing it in the code.
Thanks.time index 2:38


Reply from Richard Rost:

Sure. I put in a "5" just as an example. You could substitute a variable or a form field there if you want to.
Show Just This Thread        Post Reply
Comment from Richard Rost @ 10/2/2009
Ray, your SQL code looks fine. Check your field names and make sure they match your form fields exactly. This is usually caused by a misspelling of field name.
Show Just This Thread        Post Reply
Comment from Ray McCain @ 10/1/2009
I am getting a "From" error in the following item:Set rs = db.OpenRecordset("SELECT * From UserT where Username='" & UserName & "' and Password='" & Password & "'")
Apparently the username is getting set to the username field but the password is not getting set to the password field.
What am I doing incorrectly?
Show Just This Thread        Post Reply
Comment from Richard Rost @ 5/27/2009
Bryan, thanks for the update. I don't have SQL Server 2005 Express here, so I would have never caught that.
Show Just This Thread        Post Reply
Comment from BRYAN binkerd @ 5/26/2009
time of class 04:54, I am using Access 2003 front end with SQL Server Express 2005 Backend.  I found the hard way that in order to access the SQL server backend through DSN(ODBC) connection that the OpenRecordset("CustomerT",dbOpenDynaset,dbseechanges) had to be in place due to an error message stating that I was accessing a sql server table with an identity column. (error 3622)
Thought maybe that bit might help.
Thanks
Bryan
Show Just This Thread        Post Reply
Comment from Richard Rost @ 3/9/2009
Harry, go to the page on my web site for that course. At the very bottom of the course description/outline you'll find ALL of the student comments (and my replies) for the entire course. For example, Access 322 is at http://www.599cd.com/site/courselist/access/access322. You can also find it by clicking on the COURSES link on the main menu of the web site. Courses > Microsoft > Access > 322.
Show Just This Thread        Post Reply
Comment from Richard Rost @ 3/9/2009
Harry, instead of using a filter, change the RecordSource of the form with a dynamic SQL statement like I show in Access 311 (Dynamic SQL Form). Personally, I hate filter. They work for VERY basic criteria only.
Show Just This Thread        Post Reply
Comment from  Harry Mullin @ 3/6/2009
Forum question:
Is there a way to review all comments for a group of lessons (eg Advanced Recordsets) without worrying about which specific lesson one is in? I got your comments back on my questions, but now can't find them easily.
Show Just This Thread        Post Reply
Comment from  Harry Mullin @ 3/6/2009
I have a form whose record source is a query and it is filtered by a Primary Key. I'm using an UPDATE SQL statement to add information to a field (can't do it directly as the query won't allow edits (Totals are on).

When I .requery the form, the filter goes away and other data appears. Is there a way around this?

Adding:
        Forms!ChitListF.Filter = "[EvDtID] = " & Forms!ChitListF.EvDtIDtxt
        Forms!ChitListF.FilterOn = True

doesn't work.
Show Just This Thread        Post Reply
Comment from Richard Rost @ 3/6/2009
Harry, in the VB EDITOR go to Tools > Options and on the Editor tab you'll see "Tab Width" which is where you can specify the size of your tabs (4 characters is the default).
Show Just This Thread        Post Reply
Comment from  Harry Mullin @ 3/5/2009
General Access question -  the default indent spacing in code window does not match the tab setting. Hence, wizard created code will set its indents at a different place than hand typed code using the tab key or indent button.

How can the two be sync'd?
Show Just This Thread        Post Reply
Comment from  Harry Mullin @ 3/5/2009
Suggestion: when needing to locate a file with an exact path where the file is in the SAME folder as the currentdb, use -
Set db = OpenDatabase(CurrentProject.Path & "\Orders.mdb")
Show Just This Thread        Post Reply

Add Your Comments or Subscribe
 
If you just want to subscribe to get email updates when the News is updated, then enter your name and email address and check the Notify Me box below. If you would optionally like to add your comments below to be posted, they are welcome.
 
  Your Name:  Shown
  Your Email:  NOT Shown
  Subject:
  Comments:

 

Sorry about this step. It's just to keep the spam bots away:
  Verify: What is 7+4:
  
  Notify me when the News is updated.
  Remember Me for my next comments
  
 
 
Please do not use this form for Customer Service inquiries! If you have questions about your account, shipping info, courses you've ordered, need passwords, etc. please use the Customer Service Center instead.

I value your comments. They will be displayed on this page (above). Your name will be displayed, but your email address will not be. As always, I promise to never give away your personal information to anyone else, ever.

 

 

You may want to read these articles from the 599CD News:

5/14/2013Access Tip: Many-to-Many Relationships
5/14/2013Access Expert 5 Handbook Ready
5/10/2013Access Tip: Email Using Outlook
5/10/2013Microsoft Access Expert 5
5/2/2013Access Amort Handbook
4/29/2013Microsoft Access Expert 4
4/28/2013Access Tip: Toggle Button Colors
4/27/2013Access Expert 4
4/23/2013New Access Tip: Conditional Format Expression
4/15/2013New Access Tip: Grid Lines v. Dots
   
Learn
 
Microsoft Accessindex
Microsoft Excelindex
Microsoft Wordindex
Microsoft Windowsindex
Microsoft PowerPointindex
Adobe Photoshopindex
Visual Basicindex
Active Server Pagesindex
Online Seminars
More...
Customers
 
Account Login
Online Theater
Downloads
Lost Password
Free Upgrades
Insider Circle
Info
 
Latest News
New Releases
User Forums
Tips & Tricks
Search Our Site
Waiting List
Production Schedule
Collapse Menus
Help
 
Live Chat
Customer Support
WalkThru Tutorials
Troubleshooting
FAQs
TechHelp
Consulting Services
About Us
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
Order
 
Video Tutorials
Handbooks
MYOLP Memberships
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Live Chat
General Contact Info
Support Policy
Contact Form
Email Us
Mailing Address
Phone Number
Fax Number
Course Survey