370 Posted Topics

Member Avatar for postonoh

values is a string, try replacing it on line 10 by subsum and delete line 12 Also I don't think you need to convert to an integer. If you are only expecting relatively small integers in the list box why not use integers the whole way through rather than doubles.

Member Avatar for postonoh
0
119
Member Avatar for major_lost
Member Avatar for ChrisPadgham
0
121
Member Avatar for archelle
Member Avatar for moneypro

I am not sure you need a links table for such a simple structure. Ensure each row has a unique id, include a column named something like parentId to hold the id of the parent record.

Member Avatar for ChrisPadgham
0
157
Member Avatar for puneet2
Member Avatar for hkdani
0
249
Member Avatar for AquaNut

I think the problem is more that the spreadsheet is treating the data as numbers if you altered the formating in the spreadsheet to treat it as text it may solve your problem

Member Avatar for Reverend Jim
0
213
Member Avatar for archelle

Presuming you hold year first enrolled in the Student table you are best to use a calculated field in a view that concatenates these to fields YearEnrolled & '-' & StudentId AS StudentNo

Member Avatar for M.Waqas Aslam
0
233
Member Avatar for ChrisPadgham

I have just started using Access 2010 and am experiencing problems with it corrupting the database. To take one example I have a database with one module in it. Today when I open the module in design view Microsoft Access falls over with the error "Microsoft Access has stopped working" …

Member Avatar for ChrisPadgham
0
281
Member Avatar for TylerMTC

Probably cost is never being set. Your code is not robust because it does not cater for all situations, for example it does not cater for weights greater than 100. If you can't accept weights > 100 you should cater for that in the code and display an error message.

Member Avatar for ChrisPadgham
0
139
Member Avatar for Ole Raptor

The error means that the object you are passing to the subroutine is not a combo box or the subrountine declaration is not correct.

Member Avatar for ChrisPadgham
0
170
Member Avatar for vehpurple

can I suggest you download the Core Data lecture from iTunes by Paul Hegarty of Stanford University. I think you will find it helpful.

Member Avatar for ChrisPadgham
0
165
Member Avatar for rraviraj

In Xcode, choose File -> New File. Then, in the dialog window select Core Date in the left pane and select Data Model. Then click next, give you model a name. This is where you create your datamodel, XCode handles the SQLlite interface on your behalf. If you want to …

Member Avatar for ChrisPadgham
0
118
Member Avatar for sha11e

In answer to the first question, drop the statement creating the autorelease pool and [object release] [pool drain] statements NSString is an object NSRange is a foundation data type, ie not an object, and as such does not require the *

Member Avatar for ChrisPadgham
0
107
Member Avatar for OASys1

Place this code in the click event of a button should do the job [CODE]docmd.OutputTo acOutputReport,"Myreport",acFormatPDF,"c:\myreport.pdf"[/CODE]

Member Avatar for ChrisPadgham
0
250
Member Avatar for OASys1

You would be better to put it under a double click event on the list box. ie the user double clicks the name to move it to the other box. it is simple to implement and is faster and easier for the user to use than drag and drop.

Member Avatar for ChrisPadgham
0
559
Member Avatar for Seba Sama

It looks like you are storing the values in a numeric field and it is trying to interpret the values as decimal numbers. Change your field definitions to "Text" and it should bring everything in OK.

Member Avatar for ChrisPadgham
0
174
Member Avatar for gowans07

The relationships between Customer Order and OrderProduct is wrong. The tbl_Order should have the CustomerId as a foreign key not tbl_Order_Product.

Member Avatar for ChrisPadgham
0
80
Member Avatar for ChrisPadgham

Does anyone have any experience using curl from MS Access. I would appreciate some pointers,

0
176
Member Avatar for killbill07

under the File tab click on "Save & Publish" in the right pane you will see .mdb format as one of the options. It will not let you use it however, if you have used any features specific to 2010 in the database

Member Avatar for ChrisPadgham
0
228
Member Avatar for PM312

Use the Alignment property of the text box to specify left or right alignment

Member Avatar for WaltP
0
3K
Member Avatar for jorjah

this forum is to solve specific problems, if you have a specific problem you need help with then provide the details. It is not to do your work for you.

Member Avatar for ChrisPadgham
-1
81
Member Avatar for vin24

if you are talking about writing two files at the same time then it simply a matter of opening them on different file unit numbers [CODE] open "text1.txt" for output on #1 open "text2.txt" for output on #2 print #1, "this will go in text1" print #2, "this will go …

Member Avatar for ChrisPadgham
0
253
Member Avatar for insanity99

What precisely do you want to do, do you want to load an image from a file into an image control?

Member Avatar for debasisdas
0
70
Member Avatar for churva_churva

if you only want an integer [CODE]if isnumeric(txtr.text) then if int(txtr.text)=val(txtr.text) then OK else msgbox "Only integers please" exit sub end if else msgbox "Please enter a number" exit sub end if[/CODE]

Member Avatar for ChrisPadgham
0
176
Member Avatar for pardeep3dec

If you wish to read the contents of a directory you would be better to use the filesystem object.

Member Avatar for ChrisPadgham
0
59
Member Avatar for divakar.it

I presume you are populating from the object MyRecSet1. If you have populated this recordset why not just check the RecordCount property to see if there are any rows returned and disable the remove button if there are no rows.

Member Avatar for divakar.it
0
1K
Member Avatar for jaasaria

Even if you are using five databases, if you ultimately want to consolidate the data you will need a branch identifier in every table. Thus you will have a compound key in every table. eg for Loan Table BranchId LoanId for Customer table BranchId CustomerId The limitation you are building …

Member Avatar for ChrisPadgham
0
220
Member Avatar for vijaybrar
Member Avatar for codeorder
-1
893
Member Avatar for moone009

Investigate a UNION query if you want the data from both tables at once

Member Avatar for adam_k
0
178
Member Avatar for SaaDwTk
Member Avatar for ChrisPadgham
0
190
Member Avatar for vinothmca

In the IDE click on the Project menu item then select References. At the top will be the libraries that are selected for the project. The troublesome one should have "Missing" in the description.

Member Avatar for ChrisPadgham
0
143
Member Avatar for vinothmca

To state the obvious it sounds like the data source is invalid. What type of data source are you trying to connect to.

Member Avatar for ChrisPadgham
0
158
Member Avatar for vishal31

This was my code from a previous post. It uses three if blocks with the same condition because each if block will alter the value of books remaining. The problem is in the Click event, you do not call the function the line Text2.Text = Points should read Text2.text = …

Member Avatar for ChrisPadgham
0
99
Member Avatar for denine
Member Avatar for ChrisPadgham
0
119
Member Avatar for strRusty_gal

The difficulty is that count() works against summarising existing rows in a table. By definition a count of 0 means that no rows exist so nothing will appear. How would SQL know what the missing values were. To address the problem you will need to set up a reference table …

Member Avatar for ChrisPadgham
0
95
Member Avatar for alfredo11

The "Screen" object will give you the size of the screen [CODE] Debug.Print Screen.Height, Screen.Width [/CODE] Sorry that was VB6, try [CODE] Debug.Print(Screen.PrimaryScreen.Bounds.Height) [/CODE]

Member Avatar for ChrisPadgham
0
64
Member Avatar for crazycat503
Member Avatar for jay.barnes

SELECT TransInfo.CustNo, Sum(IIf([RPTDate]=" 5/28/2010",[TransYTD]*-1,[TransYTD])) AS CombinedTrans FROM TransInfo GROUP BY TransInfo.CustNo;

Member Avatar for jay.barnes
0
183
Member Avatar for glucose

use the Ucase$ function to convert a character to its lower case equivalent. eg stName & "." & Ucase$(stAchar)

Member Avatar for WaltP
0
112
Member Avatar for SharedKnowledge

[CODE] Private Sub cmdBook_Click() On Error GoTo Err_cmdBook_Click Dim rsRoomBookings As Recordset Set rsRoomBookings = CurrentDb.OpenRecordset("SELECT * FROM RoomBookings WHERE BookingDate='" & Format$(Me.DesiredDate, "dd-mmm-yyyy") & "' AND BookingTime='" & Format$(Me.DesiredTime, "hh:nn") & "' AND RoomName='" & Me.cboDesiredRoom & "'") If rsRoomBookings.RecordCount > 0 Then MsgBox "I am sorry that room …

Member Avatar for SharedKnowledge
0
244
Member Avatar for zawpai
Member Avatar for zawpai
0
274
Member Avatar for zebnoon

You need to get a username, either display a dialog box and prompt for the user to type it in or retrieve the windows username. Retrieve the record from the database as follows: Set Type_rs = db.OpenRecordset("SELECT * FROM User_Tab Where UserName = '" & stUserName & "'; ") Now …

Member Avatar for ChrisPadgham
-1
126
Member Avatar for chandimak

The former is a better design however Profile should really be Person and you don't need two teacher tables Person PersonId (pk) LastName FirstName Tel Teacher TeacherId (Pk) PersonId (Fk) TeacherQuals Student StudentId (Pk) PersonId (fk)

Member Avatar for chandimak
0
111
Member Avatar for jacksantho
Member Avatar for brisby

[CODE] public function calcPoints(booksRead as integer) as integer dim points as integer dim booksRemaining as integer Points = 0 booksRemaining = booksRead if booksRemaining > 0 then points = min(booksRemaining,3) * 10 booksRemaining = booksRemaining - 3 end if if booksRemaining >0 then points = points + min(booksRemaining,3) * 15 …

Member Avatar for ChrisPadgham
0
514
Member Avatar for Swoop_GB

You can try experimenting with this, it might need some playing with to get it working [CODE] Dim thiscombar As CommandBar For Each thiscombar In Application.CommandBars thiscombar.Visible = False Next thiscombar [/CODE]

Member Avatar for ChrisPadgham
0
146
Member Avatar for JohnHensonInc
Member Avatar for ChrisPadgham
0
44
Member Avatar for NuGG
Member Avatar for ChrisPadgham
0
368
Member Avatar for sid78669

I am not sure why you are doing the filtering in a second step [CODE] Private Sub OpenSeizureForm() dim stFilter as String If Me.NewRecord Then 'Open form in dataentry mode DoCmd.OpenForm "Seizures", acNormal, , , acFormAdd, acWindowNormal, Me.incidentNum & "&Episode" Else ' open and filter form stFilter = "[IncidentNum] = …

Member Avatar for sid78669
0
181
Member Avatar for Jaseem Ahmed

If you change the way you are thinking about the problem. Lets say you can only fit 5 text boxes in the frame. Then you only have 5 text boxes. As the user scrolls up or down simply change the captions and contents of the text boxes in the frame. …

Member Avatar for AndreRet
0
219

The End.