"Option Button" to copy/paste field text

Discuss the database features
Post Reply
Steven88
Posts: 2
Joined: Sat Aug 10, 2024 10:51 pm

"Option Button" to copy/paste field text

Post by Steven88 »

Hello, new member here. I am completely new to databases except the little knowledge I remember from IT at school. I am making a simple database to input customer billing and shipping addresses to populate Invoices, Receipts and envelopes with their details via Mail Merge. I have got the Mail Merge down and working but my issue is, I would like an option button to tick that will copy text from multiple fields to multiple others within the same record for when the billing and shipping addresses remain the same. I.E copy each relevant field of the billing section to the corresponding field in the shipping segment. hope this makes sense. Is this a possible task? Will it need to be done via a Macro? (if so there's another thing I will need to learn). I have included a screenshot of the form which you can see the option button labelled and the 2 columns of info I would like copied from the left column to the right upon selecting the button. Thanks in advance.
Attachments
Database Form.PNG
Database Form.PNG (32.54 KiB) Viewed 1669 times
Open Office Version 4.1.15
Windows 10 Version 10.0.19045 Build 19045
FJCC
Moderator
Posts: 9455
Joined: Sat Nov 08, 2008 8:08 pm
Location: Colorado, USA

Re: "Option Button" to copy/paste field text

Post by FJCC »

I don't think you should do this. One of the rules of database design is to avoid duplicating information. You can handle this in queries by checking if "Shipping same as Billing" is TRUE. A CASE WHEN statement could select whether to use the Billing or the Shipping fields based on the TRUE/FALSE value.
OpenOffice 4.1 on Windows 10 and Linux Mint
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
Steven88
Posts: 2
Joined: Sat Aug 10, 2024 10:51 pm

Re: "Option Button" to copy/paste field text

Post by Steven88 »

Ok, thanks that kind of went over my head, I will start digging on how to use Queries then, thankfully, I like to learn. The geek in me is loving all the cool features I am learning with office software.
Open Office Version 4.1.15
Windows 10 Version 10.0.19045 Build 19045
User avatar
MINTHETNAUNG
Banned
Posts: 25
Joined: Mon Jun 18, 2018 3:33 am

Re: "Option Button" to copy/paste field text

Post by MINTHETNAUNG »

Additionally, consider implementing a view that automatically handles these conditions, so you can simplify both reporting and form management without altering your core data structure
Openoffice 4.1.5 on Windows 10
Post Reply