Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4553216
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T16:54:50+00:00 2026-05-21T16:54:50+00:00

I wasn’t sure whether to ask this here or on SuperUser, so I apologize

  • 0

I wasn’t sure whether to ask this here or on SuperUser, so I apologize if it doesn’t belong here.

I created a small PHP/MySQL database app to manage the customer loyalty data for my mom’s shop, intending to set it up locally on her cash register computer with XAMPP. However, I’ve been asked to reimplement the system in a GUI relational database such as MS Access or OpenOffice Base, primarily so that she can do things like mail merge and graphical reports with a GUI (that I don’t have to write).

I can easily replicate my MySQL table structure and relationships, and create a few of the more basic forms and reports, but I’ve never done any scripting, macros etc in Access or Base. My PHP handled a lot more than just form input, there was some scripting involved that I don’t know how to implement in Access / Base. Worth noting: if I end up using Access, it’ll be Access 2007.

Here’s a quick overview of what I’m trying to make, in case it helps. Sorry for the length.

The business is a take & bake food market, and the database is replacing a physical stamp-card loyalty system. Each customer gets a stamp on their card for every $25 they spend. They earn free meals as follows:
– On the 8th stamp, they earn a free side dish.
– On the 16th stamp, they earn a free regular size meal.
– On the 24th stamp, they earn a free family size meal, and their card resets to zero stamps.
The date of each stamp must be recorded (otherwise I’d just increment one field instead of having a stamps table).

I have 3 tables: customers, stamps, and freebies. customers has a 1-to-many relationship with both stamps and freebies.

  • customers is a simple contact list.
    columns: ID, firstname, lastname, email, phone
  • stamps keeps records of each stamp earned.
    columns: ID, customerID, date, index (1-24; the Nth stamp on that customer’s card)
  • freebies keeps records of each free meal they have earned.
    columns: ID, customerID, date, size, is_redeemed

Here’s the magic from my PHP that I don’t know how to implement in Access/Base:

  1. When a user selects a customer and clicks an “add a stamp” button:

    • stamps is queried to grab the index from the last stamp for that customer => local variable N
    • if N == 24, set N = 0. Increment N by 1.
    • a record is inserted to stamps with the current date, customer id and an index of N
    • if N == 8, 16 or 24 a record is inserted into freebies with the appropriate size and an alert appears to notify the user that the customer earned some free shit.
  2. Some kind of “view customer” page (form? report?) that shows all the stamps and freebies they’ve earned, with “redeem” buttons next to the freebies that have not been redeemed.

In general I need to make it fairly idiot-proof and “big-button” — automation wherever possible — cashiers at the shop should be able to use it with no prior knowledge of databases.

Is this practical in a program like Access or Base, or should I just convince her to use my PHP version? If I need to write code, what language(s) do I need to teach myself? Should I be structuring my data differently? I’m not sure where to start here.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T16:54:51+00:00Added an answer on May 21, 2026 at 4:54 pm

    My suggestion: don’t do it. Run a mysql server on the PC in question, have your PHP app as the front end for the cashiers, and then if you want MS Access’s reports feature, just have Access connect to the mysql database with ODBC.

    The best implementation is quite frequently the one you already have.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I wasn't really sure how to phrase the name of this thread, so if
I wasn't even sure how to phrase this so you'll have to forgive me
I wasn't sure how to word this question, so i'll just explain. I want
I've looked at this and it wasn't much help. I have a Ruby program
I've looked at this but it wasn't too much help. Maybe I didn't read
Forgive the vague title, I wasn't sure how to describe it. If you have
I'm a C++ newbie, but I wasn't able to find the answer to this
Wasn't really sure how to word the question ... I have a project and
I wasn't able to find an answer anywhere about this seemingly simple topic: is
I wasn't sure how to word the question but I would like to step

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.