473,385 Members | 1,342 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,385 software developers and data experts.

Running a Macro from Form View

Access 2003 Form view _ Using a check Box to return a 5 in a text box. The check box runs a macro
Expand|Select|Wrap|Line Numbers
  1. "Private" Sub Check0_Click()  
  2.       If Me. Check0 [= -1] Then  
  3.             Me. Text4 [=+5]
  4.       Else 
  5.               Me. Text4  ""
  6.       End If
  7. End Sub
I get a msg wrong syntax
using an operand without an operator
Oct 14 '10 #1
4 1061
MMcCarthy
14,534 Expert Mod 8TB
Not sure what you are trying to do but your code should look like this ...

Expand|Select|Wrap|Line Numbers
  1. Private Sub Check0_Click()  
  2.     If Me.Check0 = -1 Then  
  3.         Me.Text4 = 5
  4.     Else 
  5.         Me.Text4 = ""
  6.     End If
  7. End Sub
Oct 15 '10 #2
Thanks, no help. Thanks for your time.
Oct 15 '10 #3
MMcCarthy
14,534 Expert Mod 8TB
If you give a little more information maybe we could help.
Oct 17 '10 #4
I am trying to run a risk assesment to decide on an audit. Do I use a mailout or onsite. I would like to use a number. The check boxes (5ea)will create a number in the text box. Depending on the final number will determine the action. I need 3 check boxes to be "or" "This one "or" that". Then 3 check boxes will be "Added" to the first boxs' checked.
Oct 18 '10 #5

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

Similar topics

2
by: Simon Pleasants | last post by:
Am something of a newbie at this, so please bear with any stupid questions. I have created a database to track shipments that we import. The information is stored in a table and I have created...
1
by: Bill | last post by:
I'm running an Access database over a network but when one user creates a new record in form view then move on an creates a second record etc none of the other user that have the same form open can...
9
by: David White | last post by:
Hello everyone, I'm new to access, so if this is a dumb question I apologize in advance. I created a query that requires a "parameter value" to be entered. I then created a form to display...
1
by: sasan3 | last post by:
when I set visible=false, then entry is not visible in form view, but still shows up in datasheet view. How do I make a field not to show based on some condition in datasheet view? Tx.
2
by: MLH | last post by:
A97 Am having difficulty displaying graph in Form View that I see fine in graph control on form opened in design view. I know I'm doing something wrong. If I open the form in design view - I...
0
by: Andrew W | last post by:
Hi All. I have a form with a subform. When viewing the form via 'form view' the subform does not appear. But when I go to 'print preview' the subform appears. This leads me to believe that...
0
by: =?Utf-8?B?Ym9iYnk=?= | last post by:
Hi, I have a Griod View and form view in my Asp page. I select a row from Grid view and It shows details of that row in FormView. There is Update button in EditTemplateField in Form view when...
1
by: fiazbfs | last post by:
I would like to know the Keyboard Shortcuts for "Apply Filter", "Filter by Form", "Filter by Selection" in datasheet / form view. It is very annoying to just be able to use the mouse for this...
3
by: mckbill | last post by:
Is there a way I can direct the cursor to a specific field (variable) in a form by typing the field name while in form view? I have a form with many fields, and it would be nice if there were...
3
Ericks
by: Ericks | last post by:
I have a sub Form that is in Datasheet mode. On my Main form I have a button that opens this form but then it shows in Form view. I set both the Default view and Allowed view options to Datasheet but...
1
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...

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.