musclecarlover07
Registered User.
- Local time
- Yesterday, 18:10
- Joined
- May 4, 2012
- Messages
- 236
I have a button when pushed certain data is put into another table. I managed to figure it out for the most part. I ran into the proble if the text box has () or '. I need this for the Ability.Value field.
This is what I tried. Idk if im forgetting another part. Look at the Ability.value
I only need this for Ability and the pilot.
Code:
CurrentDb.Execute "INSERT INTO ship1(Pilot, Skill, Ability, Ship) Values('" & Pilot.Value & "', '" & PilotSkill.Value & "', '" & Ability.Value & "', '" & Ship.Value & "')"
This is what I tried. Idk if im forgetting another part. Look at the Ability.value
Code:
CurrentDb.Execute "INSERT INTO ship1(Pilot, Skill, Ability, Ship) Values('" & Pilot.Value & "', '" & PilotSkill.Value & "', chr(39)" & Ability.Value & "chr(39), '" & Ship.Value & "')"
I only need this for Ability and the pilot.