RE: Creating expressions

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Eric Butts [MSFT] (ebutts_at_online.microsoft.com)
Date: 03/29/04


Date: Mon, 29 Mar 2004 19:02:35 GMT

Hi,

Here's SQL Syntax that could be the RecordSource for your Form "Books
Available":

       SELECT * FROM [your table name] WHERE [Loan Date] Is Null;

I'm not sure about the "renewed more than twice by the same student" part.
If you have a field in your table that records the renew times maybe.
Example:

Student Name
Book Number
Loan Date
Loan Due
Loan Returned
Days Late
Fine Amount
RENEWED

Use an update query that would increment the field "RENEWED" by one. Then
have a query that would return the records where it was renewed 2x or more

                  SELECT * FROM [your table name] WHERE [RENEWED] >= 2;

I hope this helps! If you have additional questions on this topic, please
respond back to this posting.

Regards,

Eric Butts
Microsoft Access Support
ebutts@online.microsoft.com
"Microsoft Security Announcement: Have you installed the patch for
Microsoft Security Bulletin MS03-026? If not Microsoft strongly advises
you to review the information at the following link regarding Microsoft
Security Bulletin MS03-026
<http://www.microsoft.com/security/security_bulletins/ms03-026.asp> and/or
to visit Windows Update at <http://windowsupdate.microsoft.com/> to install
the patch. Running the SCAN program from the Windows Update site will help
to insure you are current with all security patches, not just MS03-026."

This posting is provided "AS IS" with no warranties, and confers no rights

--------------------
| Content-Class: urn:content-classes:message
| From: "Book Man" <michael.anderson@lineone.net>
| Sender: "Book Man" <michael.anderson@lineone.net>
| Subject: Creating expressions
| Date: Mon, 29 Mar 2004 08:04:05 -0800
| Lines: 24
| Message-ID: <124d901c415a7$75f79ca0$a601280a@phx.gbl>
| MIME-Version: 1.0
| Content-Type: text/plain;
| charset="iso-8859-1"
| Content-Transfer-Encoding: 7bit
| X-Newsreader: Microsoft CDO for Windows 2000
| X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300
| Thread-Index: AcQVp3X1ewghvZ8UT3efzpEThkuysg==
| Newsgroups: microsoft.public.access.queries
| Path: cpmsftngxa06.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.access.queries:195639
| NNTP-Posting-Host: tk2msftngxa14.phx.gbl 10.40.1.166
| X-Tomcat-NG: microsoft.public.access.queries
|
| HI there, I currently have a database which records book
| Loans.
|
| I am creating a Loan query which currently has the
| fields:
|
| Student Name
| Book Number
| Loan Date
| Loan Due
| Loan Returned
| Days Late
| Fine Amount
|
| What expression or form of validation could I use so only
| books not on loan can be borrowed.
|
| and
|
| What expression could I use to prevent a book from being
| renewed more than twice by the same student.
|
| Thanks
|
|



Relevant Pages

  • RE: Creating expressions
    ... Use an update query that would increment the ... same student" part. ... >Loan Date ... >Microsoft Security Bulletin MS03-026? ...
    (microsoft.public.access.queries)
  • Re: Office 2003 upgrade to 2007 through Upgrade Guarantee Program
    ... Dear Microsoft Office Technology Guarantee Program: ... Will the version of Office Home & Student 2007 upgraded from Office ... Student & Teacher 2003 through the Technology (Upgrade) Guarantee ...
    (microsoft.public.office.misc)
  • Re: OT:Am I that old? LOL
    ... against everyone else in the country through national board exams to ... the student benefits aren't _that_ hot. ... either need to work while you study or take a government loan. ...
    (alt.guitar)
  • Re: The References Group: please help me with some problems
    ... It wasn't clear to me that by "student" Microsoft meant only pre-university ... Presumably you got the Home and Student ... Is there any way to totally customize the Reference Groups default ... you want to indent. ...
    (microsoft.public.word.docmanagement)
  • Obama - 2; Forces of Evil - 0
    ... college student lending in a generation passed the House on Sunday ... House approves huge changes to student loan program ... Most of those savings, $36 billion, would go to Pell grants, funding ...
    (alt.politics)