Forum Widgets
Latest Discussions
Trouble identifying 'Primary' phone number
Hi - I'm new...ish to Access. I've used it to cleanup raw data before importing into main SQL db, but have not really 'developed' in it. My SQL is rusty and I've only dabbled with VBA. I'm building a db that has a separate table for 'phonenumber', I'm using a Y/N checkbox with the intent that if the checkbox is checked, then that is the primary phonenumber to use (this is on a continuous form). Since a record can have more than one phonenumber, how do I code it so when someone goes to check an additional checkbox, that it 1)warns them that another phonenumber has already been marked as the primary number (if another one has indeed been checked...if not, then allow the checkbox to be checked), and then 2)if the user wants to change which is the primary phonenumber, then have the update clear the other checkbox and check the current checkbox. Just so you understand, I'm not talking about making the phonenumber the primarykey - I have the primarykey as PhoneID. Thanks in advance for your help! I thought I posted this yesterday but now I can't find it at all so forgive me if this ends up being a duplicate post.ns61Mar 07, 2025Copper Contributor85Views0likes5CommentsPrimary Phone Number
Newish to 'developing' in Access...previous experience w/Access has been importing raw data, using SQL and Macros to process data to put into format to import into SQL db. I'm racking my brain on how to resolve to have only one phone number out of multiple to be the 'primary' phone number (NOT the primary key as most searches take me to. I have 3 tables...CustomerT, PhoneT, and PhoneTypeT - each have their own ID's (CustID, PhoneID, PhoneTypeID). Phone Types could be Cell, Home, Office, Fax, Spouse....and so on. Each customer can have multiple phone numbers...I want one of them to be the 'primary' number (because I'll need to pull in the primary number into another form at some point - same thing can be done with email as well). I've added a Y/N checkbox - when checked, indicates primary...but I can't wrap my head around to allow only one checkbox to be checked (in other words, checkbox for 'Cell' is checked...then later, 'Home' is checked - I'd want to 1) msg user asking if they want to mark 'Home' as the "Primary" number - if yes, then 2) mark 'Home' as primary (checkbox is true) and then make sure all other checkboxes are unchecked (false). I know SQL and somewhat familiar with VBA...just am pretty rusty with both so syntax would be helpful. Thanks!!ns61Mar 07, 2025Copper Contributor86Views0likes3CommentsHow to Create Tile-Style Buttons on MS Access Forms?
Hello everyone, I have come across a user interface in MS Access that features tile-style buttons, as shown in the attached image. These buttons have icons, labels, and a modern appearance, which makes the form look more professional and user-friendly. I would like to implement a similar button style in my MS Access application. However, I am unsure about the best approach to achieve this. Could anyone please share their insights or experience on the following: What control type should be used to create these buttons? How can I add icons or images to the buttons while keeping them responsive? Is there a way to apply custom styling, such as rounded corners and background colors? Are there any VBA techniques or third-party tools that can help with designing such buttons? Any guidance, sample code, or references to tutorials would be greatly appreciated! Thanks in advance.TasadduqKhanFeb 21, 2025Copper Contributor83Views0likes2CommentsQuery re: OLE Object
I need to write a query to update an OLEObject field on a form (Forms!ScheduleFormCont!ColorTextBox), based on a table with the same OLEObject field (SCHEDULE.ColorTextBox). I am updating the form field from another table also with an OLEObject field (ColorsTable!Color). The OLEObject fields are: SCHEDULE!ColorTextBox ColorsTable!Color And [Forms]![ScheduleFormCont]![ColorTextBox] listed on the form as a Bound Object Frame I then need the form to update with the new OLE Object information. I am using code: DoCmd.SetWarnings False DoCmd.OpenQuery "AddColor2" DoCmd.SetWarnings True The AddColor2 query is not working: UPDATE SCHEDULE INNER JOIN ColorsTable ON SCHEDULE.ColorText = ColorsTable.ColorName SET SCHEDULE.ColorTextBox = [ColorsTable]![Color], [Forms]![ScheduleFormCont]![ColorTextBox] = [ColorsTable]![Color] WHERE (((SCHEDULE.SONo)=[Forms]![ScheduleFormCont]![SONo])); SCHEDULE!ColorText and ColorsTable!ColorName are ShortText fields containing the same value. Can you help??Maxine14062Feb 19, 2025Brass Contributor73Views0likes3CommentsTRYING TO BUILD A LOGIN BUTTON/PASSWORD
Hi there, I hope you will be able to help me. I am very new to access and managed to build a small database for my work, mainly from watching you tube videos and reading google information however, I want to start upping the anti a little more by adding a level of security so users need to input a user name and password to gain access to the database. My first stumbling block is the 'build event'. Whenever I right click on my login button, it takes me to the macro screen yet when I watch videos online, you get the option to select code builder, I cannot for the life of me see how to change this, any advise please would be greatly received. Many thanks, AndyJustAndyFeb 03, 2025Copper Contributor102Views0likes5CommentsLabels on Access Report
I have a report that prints 4x2 labels, but when I request multiple copies of the records, they are printed on different pages instead of being consolidated on the same page. This leads to wasted labels. How can I fix this issue?Fernando SalgueiroJan 29, 2025Copper Contributor56Views0likes2CommentsAsset Tracking Template - depreciation
I'm looking for a free/low cost Asset Register app to record a few hundred fixed assets for a NFP. The Asset Tracking Template for MS Access looks OK but doesn't do anything for depreciation. I've had a look at a few spreadsheets but they look even more rudimentary. Can anyone suggest an appropriate tool or updated template? Thanks Stevesedge55Jan 29, 2025Copper Contributor67Views0likes2CommentsReport not opening
I am have a problem when I try to open a report I get OpenReport action was canceled"Lbartz47Jan 23, 2025Copper Contributor19Views0likes2CommentsHow to Uninstall Microsoft Access Database Engine 2016 by COMMAND LINE
Hi Team, I would like to uninstall Microsoft Access Database Engine 2016 by using command line. However, It always show a bellow dialog. Could you please show me how to uninstall it by using command line? Thank you, LyLyJan 10, 2025Copper Contributor416Views0likes8CommentsContinuous forms display broken in various ways when use vertical scrollbar or Page Up/Down
I've been investigating this in the Northwind Traders Developer Edition 2.4 as it was affecting a business application and I wanted to see whether it was something we had done wrong or an Access bug. It seems to be an Access bug so writing it up here. I'm testing with an unaltered frmOrderList, and then with a copy with minor modifications to control anchoring. The symptoms are quite variable depending on whether I'm working on primary laptop monitor (DELL Precision 1920x1200 with 125% scaling) or a second monitor (DELL P2423 1920x1200 with 100% scaling). On the second monitor almost any scrollbar action results in a broken form display, where areas remain blank and partly reappear on hover/click, for example: Everything displays fine if the mouse wheel is used for scrolling; the problem arises only with the scrollbar and/or Page Up/Down. The wider the window/form, the worse this becomes, and the effects seems to be particularly bad if controls are anchored upper right, but in the above example all the controls in the list are anchored upper left. Sometimes the left side of the list updates and the right side does not, meaning that incorrect data is displayed to the user - this is particularly dangerous; here's an example using the same form, after anchoring some controls top right: The record for Robert Zare should say "No stock" but the right-hand columns have remained stuck showing data from the first rows in the form. Please could this be addressed asap? We have a lot of continuous sub-forms and this is making the applications very problematic to use. This issue doesn't appear to affect datasheet view - it's only Continuous Forms. Also, it's been like this for some time - I'd guess at least a year. Environment as follows: Microsoft® Access® for Microsoft 365 MSO (Version 2410) 64-bit (I had to remove build number to publish this post!) Edition Windows 11 Enterprise Version 23H2 OS build 22631.4602 Experience Windows Feature Experience Pack 1000.22700.1055.0 Processor 11th Gen Intel(R) Core(TM) i7-11850H @ 2.50GHz 2.50 GHz Installed RAM 32.0 GB (31.7 GB usable) System type 64-bit operating system, x64-based processorcrispinflowerJan 01, 2025Copper Contributor107Views0likes6Comments
Resources
Tags
- access1,625 Topics
- office 365355 Topics
- 2016195 Topics
- developer185 Topics
- Access Web Database100 Topics
- Access Web App57 Topics
- 201351 Topics
- sharepoint51 Topics
- 201042 Topics
- admin41 Topics