473,320 Members | 2,104 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Macros to Add/Edit data when form opens

Good Day!
I have a macro created to Open my subform and is embedded in the Command Button.
Main Form: frmADD NEW ENTITY NAME
Subform: frmEntityAwards

My macro filters to the specific EntityID and I can view the awards to the particular Entity as follows [EntityID]=[Forms]![frmADD NEW ENTITY NAME]![EntityID]

Now I want to Edit and/or ADD a new Award. Currently it won't let me add anything and I have no locks and everything is set to Edit Data, etc. in the property sheet.

Please help me with the next actions in my macro

Thank you so much!!!
Nov 2 '08 #1
1 2040
PianoMan64
374 Expert 256MB
Good Day!
I have a macro created to Open my subform and is embedded in the Command Button.
Main Form: frmADD NEW ENTITY NAME
Subform: frmEntityAwards

My macro filters to the specific EntityID and I can view the awards to the particular Entity as follows [EntityID]=[Forms]![frmADD NEW ENTITY NAME]![EntityID]

Now I want to Edit and/or ADD a new Award. Currently it won't let me add anything and I have no locks and everything is set to Edit Data, etc. in the property sheet.

Please help me with the next actions in my macro

Thank you so much!!!
Hello lchomany,

From what you describe, it sounds like you have your relationships between the main form and the subform messed up in such a way that it is preventing you from adding any additional information to the tables.

If you can post your table structure, including field types, and size, as well as any relationships between the tables. You also would have to post any detail settings that you setup on the form that you're using to relate the main form to the sub form. if you're currently using a primary key from the parent table with linking value in the child table.

I would need to know all that in order to troubleshoot any of the problems that you're having.

I would also suggest that you include in your post a copy of the macros that you're currently using and also describe what you are seeing as well as what you're trying to achive.

Hope that helps,

Joe P.
Nov 10 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

21
by: Chris Reedy | last post by:
For everyone - Apologies for the length of this message. If you don't want to look at the long example, you can skip to the end of the message. And for the Python gurus among you, if you can...
4
by: Terry | last post by:
I need some help refining an MS 2000 relational databse. I have created a simple relational database using two tables, 'Student Details', 'Exam Details' and two forms, 'Input/Edit Exam Details',...
3
by: Peter Stalder | last post by:
I want to alter a menu bar based on user's actions. My menu bar is established using macros. Is there any way to edit the menu bar macro using Visual Basic, so that the menu name will change. I...
6
by: Reg | last post by:
At present I'm running a number of macros with a schedular on my computer to update and maintain databases within our network. All my backends contain the tables that the macros update. But all the...
13
by: ricky.agrawal | last post by:
I'm really not sure how to go about this in Access. What I've created is a table for each location. Those tables are identical in format but different in information. The tables are named after...
1
by: phamer | last post by:
Hello. My switchbaord contains 2 options: add a record and edit a record. So, of course, if I click add a record, the first form opens in add mode; if I click edit, the first form opens in edit...
0
by: bh | last post by:
I'm trying to edit data in a datagrid through a dropdown list with different id/text values. The problem comes in when I click the edit button & nothing appears to be happening. Did I do...
9
bhcob1
by: bhcob1 | last post by:
Hey guys, 'Update or CancelUpdate without AddNew or Edit' On my database i keep occasionly get this error when i try and edit a field, it is not everytime. It will be working fine and then this...
4
by: Suzette | last post by:
I have an excel file that automatically updates when opened, pulling information from an Access database into into various pivot tables. I created a macro in Access to perform various necessary...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.