473,467 Members | 1,402 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Access Form Help

2 New Member
I have an access form that combines the information from several tables. In one section of that form it has all my submitter info and an add/edit button. When the user hits that button I want it to take that user to the same record on the submitter form.

Currently I am using this and it is not working it just take me to a blank submitter form..

DoCmd.OpenForm "frmSubmitter", , , "[SB_PK] = " & Me.SBInfo, , acDialog
Nov 9 '06 #1
3 1409
MSeda
159 Recognized Expert New Member
it may be the "data entry" property of frmSubmitter is set to yes. This would cause the form to always open to a new record.
Also I usually use a slightly different syntax in the where statement try:

DoCmd.OpenForm "frmSubmitter", , , "[SB_PK] ='" & Me.SBInfo & "'", acFormEdit, acDialog
Nov 9 '06 #2
chiggler
2 New Member
it may be the "data entry" property of frmSubmitter is set to yes. This would cause the form to always open to a new record.
Also I usually use a slightly different syntax in the where statement try:

DoCmd.OpenForm "frmSubmitter", , , "[SB_PK] ='" & Me.SBInfo & "'", acFormEdit, acDialog
I did have the data entry set to No, However you were right about the code. There was something that it obviously did not like in my code. Your example worked great thank you so much for your help. I find it definately helps to have a fresh pair of eyes on your project from time to time :)

Have a great day.
Nov 9 '06 #3
NeoPa
32,556 Recognized Expert Moderator MVP
MSeda's code put quotes around the value.
If [SB_PK] is a string / text field then they are required (your original code had omitted them).
MSeda looks like they're starting to post some helpful answers - keep it up - all help is appreciated.
Nov 9 '06 #4

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

Similar topics

1
by: mora | last post by:
Hello. I am hoping to get some help here about connecting, directly or not, an Access database with a web site. I have done some research but have not come up with much of use. I am wondering...
5
by: Richard | last post by:
Hi, I have a form that take some time to load due to many comboboxes and at least 8 subforms. When I filter or sort the main form I get an error message and then Access shuts down. They ask if...
7
by: damjanu | last post by:
Hi All; I need little help. I have a datasheet form. I allow user to do 'filter by selection'. My form contains a column with values. As user changes selections, I want to calculate totals....
7
by: Mike Dwyer | last post by:
I need a VB 6 app to automate a microsoft access MDB application. Specifically, it needs to open a form in Access and read information keyed into that form. I know this is "old school" but I'm...
7
by: Mark Thiel | last post by:
I am working on a project for my company, which has a structure of six major areas. Certain people need to have access to all of the data, whereas other people only require access to the...
4
by: Volumstein | last post by:
Hello, I am spoiled coming from programming in word and excel which offer the "record macro" tool that eliminated most basic syntax confusions that I had. unfortunately msaccess doesn't offer...
49
by: Yannick Turgeon | last post by:
Hello, We are in the process of examining our current main application. We have to do some major changes and, in the process, are questionning/validating the use of MS Access as front-end. The...
20
by: Olav.NET | last post by:
I am a .NET/C++ developer who is supposed to do some work with Access. I do not know much about it except for the DB part. Questions: *1* I am looking for INTENSIVE books to get quickly up to...
15
by: Cheryl Langdon | last post by:
Hello everyone, This is my first attempt at getting help in this manner. Please forgive me if this is an inappropriate request. I suddenly find myself in urgent need of instruction on how to...
8
by: Sid | last post by:
I hope someone could help me with this. I am trying to setup a criteria to decide when to allow/not allow user to click on the check box. logically it looks simple but I am not able to...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...

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.