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 10, 2025Copper Contributor60Views0likes4CommentsPrimary 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 10, 2025Copper Contributor81Views0likes3CommentsCreating an Inventory System with Bills of Materials
Hi there, I'm new to Access and I'm developing a database for a small business that includes an Inventory table, where all parts are listed. I am hoping to create bills of materials for assembled products (finished goods), which would include some parts from the Inventory table (parts included depend on the finished good). I want to have a front end form where the user simply selects which finished good has been ordered, with a "complete work order" function that will automatically remove the specified part quantities from the current stock in the main Inventory table. I am unsure on how I should approach this, through tables, update queries, etc. Please let me know if anyone has developed a similar system, or any ideas on how I can move forward. All suggestions and expertise are welcome! Thanks in advance.CDuestMar 06, 2025Copper Contributor5.6KViews0likes12CommentsAccess Issues with Windows 11 24H2
I am starting to experience issues with using Access (Microsoft® Access® for Microsoft 365 MSO (Version 2501 Build 16.0.18429.20132) 64-bit), that I have never encountered before. My windows version is Windows 11 24H2. I created a brand new database (to see if my problems occurred on a brand new database and not my existing databases) with two tables, each with 3 records - so a very useful database to have, but anyway... I tried to create a query to join the two tables and saw that: Large areas of the query editor was unavailable for me to drop a table onto - a red circle with a line through it came up Once I dropped the table to an acceptable area (middle of screen), I couldn't create the join by dragging from field to field. I could only create the join by going into SQL mode and writing the join myself I couldn't drag a column to the selection pane to the position i want. I had to double click to put at end of select, then physically move the field to position i wanted. This is definitely not how it should work I have worked with access on and off for 30 years, and haven't come across this. I had totally uninstalled office 365 and reinstalled from the microsoft website. I came across this on reddit but nothing else. Does anyone have any idea on what could be causing this? Many thanks LesSolvedles_lockettMar 03, 2025Copper Contributor764Views0likes22CommentsCant Create form Using 2 x Sharepoint Linked Tables
Hi I have 2 x tables Plant Orders and Plant Orders Details that are linked from Sharepoint. I have a user input Form whereby the Plant Orders Form is the Main Form and Plant Order Details is the Subform. I want to combine the records in these tables as an editable form in a datasheet view. If i use the wizard to create a form between these tables i get the message "one or more of these tables is not related". If i check the relationships on Access it is true there are no links between these tables. However the Master Child Relationship in the database is working correctly as the common field between the two tables - Order Number - updates in the Order Details table on Sharepoint but is not entered in the Subform. Ultimately what i am trying to achieve is a datasheet that can be edited that contains all the records for a particular job without having to scroll through each order number. Any suggestions?SolvedHenryDFeb 24, 2025Copper Contributor106Views0likes7CommentsHow 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 22, 2025Copper Contributor79Views0likes2CommentsQuery 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 21, 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 07, 2025Copper Contributor102Views0likes5CommentsUpdate Query - 3 criteria
Hello Experts, I need to update 3 fields in a table Import_ExcelPC but I am not getting anywhere with it. Let me explain what I need in simple plain english Update: Import_ExcelPC.Notes to the value show in [Import_ExcelPC_Copy].[Notes], Import_ExcelPC.OKToPayYN to the value show in [Import_ExcelPC_Copy].[OKToPayYN], Import_ExcelPC.DABYN to the value show in [Import_ExcelPC_Copy].[DABYN] but its for records where [Import_ExcelPC].[Invoice amount] = [Import_ExcelPC_Copy].[Invoice amount] AND [Import_ExcelPC].[Invoice No Stripped] = Import_ExcelPC_Copy.[Invoice No Stripped] here is my sql: UPDATE Import_ExcelPC INNER JOIN Import_ExcelPC_Copy ON (Import_ExcelPC.[Invoice amount] = Import_ExcelPC_Copy.[Invoice amount]) AND (Import_ExcelPC.[Invoice No Stripped] = Import_ExcelPC_Copy.[Invoice No Stripped]) SET Import_ExcelPC.Notes = [Import_ExcelPC_Copy].[Notes], Import_ExcelPC.OKToPayYN = [Import_ExcelPC_Copy].[OKToPayYN], Import_ExcelPC.DABYN = [Import_ExcelPC_Copy].[DABYN] WHERE (((Import_ExcelPC.Notes) Is Not Null)) OR (((Import_ExcelPC.OKToPayYN)<>0)) OR (((Import_ExcelPC.DABYN)<>0)); DABYN, OKToPayYN are Yes No fields. NOTES is long text. in picture: the ouput is 0 records to update. There should be 198 records being updated though. I run this select query and it shows 198 records based on the criteria SELECT Import_ExcelPC_Copy.Notes, Import_ExcelPC_Copy.OKToPayYN, Import_ExcelPC_Copy.DABYN FROM Import_ExcelPC_Copy WHERE (((Import_ExcelPC_Copy.Notes) Is Not Null)) OR (((Import_ExcelPC_Copy.OKToPayYN)<>0)) OR (((Import_ExcelPC_Copy.DABYN)<>0)); here is a screen shot. Its 198 records. Why wont those 198 records update in Import_ExcelPC instead of showing 0 records to update? I am not sure what I am doing wrong? thank you for the help.SolvedTony2021Feb 06, 2025Steel Contributor61Views0likes3CommentsLabels 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 SalgueiroFeb 02, 2025Copper Contributor56Views0likes2Comments
Resources
Tags
- access1,625 Topics
- office 365355 Topics
- 2016195 Topics
- developer185 Topics
- Access Web Database100 Topics
- Access Web App57 Topics
- sharepoint51 Topics
- 201351 Topics
- 201042 Topics
- admin41 Topics